
:root {
  --primary: #78909C;         /* GreenGrey40 вместо Green40 */
  --secondary: #43888a;       /* Grey40 вместо GreenGrey40 */
  --tertiary: #C62828;        /* Red40 */
  --surface-variant: #bedada; /* Grey40 */
  --background: #dde7e7;
  --surface: #ebecf0;
  --on-primary: #e6eded;
  --on-secondary: #264343;
  --on-tertiary: #fcf4f5;
  --on-background: #292937;
  --on-surface: #292937;
  --on-surface-variant: #1d6163;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--on-background);
  line-height: 1.6;
  min-width: 360px;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  width: 100%;
}

.header-container {
  height: 72px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--on-surface);
  color: var(--surface);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h2 {
  font-size: 2.4em;
}
p {
  margin: .5rem 0rem .5rem 0rem;
}

li::marker {
  color: #b40b22;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #dee7e6;
}

.logo-svg {
  width: 40px; /* Настрой размер по необходимости */
  height: 40px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}

.logo-path {
  fill: currentColor; /* Наследует цвет от родительского элемента */
}


a.rule-link {
  font-weight: bold;
  text-decoration: none;
  color: #b40b22;
}
a.rule-link:hover {
  color: #cc233a;
  text-decoration: underline;
}

a.policy-link {
  font-weight: bold;
  text-decoration: none;
  color: var(--on-surface-variant);
}

a.policy-link:hover {
  /* color: var(--secondary); */
  color: #b40b22;
  text-decoration: underline;
}


/* Стили для пункта Telegram */
.telegram-item {
  display: flex;
  align-items: center; /* Вертикальное выравнивание */
  justify-content: center;
}

.telegram-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit; /* Наследует цвет текста от родителя */
  transition: color 0.3s ease;
  /*font-size: x-large;*/
}

.telegram-icon {
  fill: currentColor;
  background: transparent;
  transition: fill 0.3s ease;
  margin-left: 0.5rem;
}

/* Иконка Telegram - цвет текста */
.telegram-link i {
  color: currentColor; /* Берет цвет у родительской ссылки */
  background: none; /* Убираем фон */
  font-size: xx-large;
  margin-left: 0.5rem;
}

/* При наведении можно изменить цвет */
.telegram-link:hover i {
  color: #0088cc; /* Цвет Telegram при наведении */
}


/* Десктопное меню */
.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--surface);
  text-decoration: none;
  transition: opacity 0.3s ease;
  padding: 0.5rem 0.5rem;
  border-radius: 4px;
}

.nav-menu a:hover {
  opacity: 0.8;
  background: rgba(255,255,255,0.1);
}

/* Гамбургер-меню */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  margin-left: auto;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--surface);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Hero Section */
.hero {
  color: var(--surface);
  min-height: 653px;
  background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.16)), url(/.pixmaps/hero/hero-3-1980x1033.jpg);
  background-position: 50% 50%;
  background-size: cover;
}

.title {
  padding: 180px 0 80px;
  text-align: center;
}

.title h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.title p {
  font-size: 1.6rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}



/* Features Grid */
.features {
  padding: 80px 0;
  background: #fefefe;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: #e7e7e7; /*var(--surface);*/
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-left: 4px solid var(--on-surface-variant);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card h3 {
  color: var(--on-surface-variant);
  margin-bottom: 1rem;
}

.feature-card h3 i {
  font-size: 1.2em; /* Размер относительно текста */
  margin-right: 10px; /* Отступ справа */
  color: var(--on-surface-variant); /* Цвет иконок */
}

/* Если нужно изменить размер всех иконок */
.feature-card h3 i {
  font-size: 1.3em;
}

/* Или индивидуально для разных иконок */
.feature-card h3 .fa-shield-alt {
  font-size: 1.4em;
}

.feature-card h3 .fa-store {
  font-size: 1.2em;
}

.feature-card.security {
  border-left-color: var(--surface-variant);
}

.feature-card.archive {
  border-left-color: var(--tertiary);
}

.feature-card.convenience {
  border-left-color: var(--secondary);
}


/* About application Section */
.pipeline {
  padding: 20px 0 80px;
  background: #fefefe;
}

.pipeline-scene {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  background-color: #fefefe;
  flex-wrap: wrap;
  font-size: larger;
}

.text-box h2 {
  color: var(--primary);
}

.text-box li {
  /* top right bottom left */
  margin: 2rem 1rem 1rem 2rem;
  padding-left: 9px;
}

.text-box .btn {
  /* top right bottom left */
  margin-top: 3.5rem;
  text-align: center;
}

.text-box {
  flex: 1;
  max-width: max-content;
  min-width: 360px;
  margin: 0 auto;
}

.text-box-wrapper {
  width: max-content;
}

.image-box {
  flex: 1;
  max-width: 500px;
  max-height: 500px;
  min-width: 360px;

  text-align: center;
}

.image-box .picture {
  margin: 20px 0 20px;
}

.image-box img{
  height: 480px;
}

.pipeline-scene.active .image-box {
  opacity: 1;
  transform: rotate(0deg);
}

.pipeline-btn {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 2rem;
  text-transform: uppercase;
  text-decoration: none;
  padding-left: 2rem;
  padding-right: 2rem;
}

.pipeline-btn:hover {
  background: var(--primary);
  color: var(--on-primary);
}



/* Video Tutorials Section */
.tutorials {
  padding: 80px 0;
  background: #f2f2f2; /*var(--surface-variant);*/
}

.tutorials h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.video-card {
  background: #fefefe; /*var(--surface);*/
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
}

.video-container {
  display: flex;
  justify-content: center;
  background: #000;
  border-radius: 8px;
  padding: 36px 10px 36px 10px;
}

.video-preview {
  background: url('/.pixmaps/screenshots/start-screen-1080x2400.png') center/cover;
  height: 600px;
  width: 270px;
  border-radius: 8px;
  display: flex; 
  align-items: center;
  justify-content: center;
  color: #b40b22;
  position: relative;
  cursor: pointer;
}

.youtube-play-btn {
  position: absolute;
  left: 50%;
  top: 70%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background: #b40b22;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  z-index: 2;
}

.video-player {
  max-width: 300px;
  height: 350px;
  object-fit: contain;
}

.video-info {
  padding: 1.5rem;
}

.video-info h3 {
  color: var(--on-surface-variant);
  margin-bottom: 0.5rem;
}

.video-info p {
  color: var(--on-surface);
  font-size: 0.9rem;
  opacity: 0.8;
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* App Screenshots */
.screenshots {
  padding: 80px 0;
  text-align: center;
  background: #fefefe;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.screenshot {
  background: #f2f2f2; /*var(--surface);*/
  padding: 1rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.screenshot .video-info {
  padding-bottom: 1rem;
}

.screenshot img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
  background: linear-gradient(45deg, var(--surface-variant), var(--surface));
}

/* Download Section */
.download {
  padding: 80px 0;
  text-align: center;
  background: #f2f2f2; /*var(--surface);*/
}

.download-btn {
  background: var(--on-surface-variant);
  color: var(--surface);
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 1rem;
}

.download-btn:hover {
  background: var(--on-surface);
  transform: scale(1.05);
}

.download-btn.secondary {
  background: var(--surface-variant);
  color: var(--on-surface);
}

/* Donation Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background: var(--surface);
  margin: 10% auto;
  padding: 2rem;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.close {
  position: absolute;
  right: 1.5rem;
  top: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--on-surface-variant);
}

.donate-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: var(--on-surface);
}

.form-group input,
.form-group select {
  padding: 1rem;
  border: 2px solid var(--surface-variant);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--background);
  color: var(--on-background);
}

.submit-btn {
  background: var(--on-surface-variant);
  color: var(--surface);
  border: none;
  padding: 1.2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background: var(--on-surface);
}

.donation-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.donation-option {
  padding: 1rem;
  background: var(--background);
  border: 2px solid var(--surface-variant);
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
}

.donation-option:hover,
.donation-option.selected {
  border-color: var(--on-surface-variant);
  background: var(--surface);
}

/* Footer */
.footer {
  background: var(--on-surface);
  color: var(--surface);
  padding: 3rem 0 8rem;
  text-align: center;
}

.support-btn {
  background: transparent;
  color: var(--surface);
  border: 2px solid var(--surface);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.support-btn:hover {
  background: var(--surface);
  color: var(--on-surface);
}

/* Мобильное меню */
@media (max-width: 920px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 70px);
    background: var(--on-surface);
    flex-direction: column;
    gap: 0;
    transition: 0.3s;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    padding: 2rem 0;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-menu a {
    display: flex;
    padding: 0.5rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: left;
  }

  .nav-menu a:hover {
    background: rgba(255,255,255,0.2);
  }

  /* Анимация гамбургера */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .title {
    padding: 180px 0 80px;
  }

  .title h1 {
    font-size: 4rem;
  }

  .title p {
    font-size: 1.6rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .donation-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 600px;
  }

  .title {
    padding: 160px 0 80px;
  }

  .title h1 {
    font-size: 3rem;
  }

  .title p {
    font-size: 1.5rem;
  }

  .text-box li {
    /* top right bottom left */
    margin: 1rem 1rem 1rem 2rem;
  }
}


@media (max-width: 520px) {
  .hero {
    min-height: 490px;
  }

  .title {
    padding: 140px 0 40px;
  }

  .title h1 {
    font-size: 2rem;
  }

  .title p {
    font-size: 1.2rem;
  }
}


/* Для очень маленьких экранов */
@media (max-width: 480px) {
  .nav-menu {
    width: 100%;
    max-width: none;
  }

  .logo {
    font-size: 1.3rem;
  }

  .hero {
    min-height: 490px;
  }

  .title {
    padding: 140px 0 80px;
  }


  .title h1 {
    font-size: 2rem;
  }

  .title p {
    font-size: 1.2rem;
  }

  .text-box {
    width: unset;
  }

  .text-box-wrapper {
    width: unset;
    margin: 0 20px;
  }

}
