﻿:root {
  color-scheme: dark;
  color: #ffffff;
  background: #0f0f0f;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  --page-gutter: 22px;
  --section-pad-y: 56px;
  --topbar-offset: 12px;
  --topbar-clearance: 76px;
  --scroll-margin: 100px;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden !important; /* Полностью скрываем стандартный скролл браузера */
}

/* ── SIMPLEBAR CUSTOM SCROLLBAR ── */
.main-scroll-container {
  height: 100vh;
  width: 100vw;
  overflow-x: hidden !important;
  padding-top: calc(var(--topbar-clearance) + env(safe-area-inset-top));
}

.simplebar-track.simplebar-vertical {
  width: 14px !important;
  background: transparent !important;
  top: 16px !important;      /* Отступ сверху */
  bottom: 16px !important;   /* Отступ снизу */
  right: 6px !important;     /* Отступ справа */
  height: auto !important;   /* Разрешаем регулировать высоту через top/bottom */
}

.simplebar-track.simplebar-horizontal {
  height: 14px !important;
  background: transparent !important;
}

.simplebar-scrollbar::before {
  background: #ffd700 !important; /* Исходный яркий золотой цвет */
  border-radius: 99px !important;
  left: 3px !important;
  right: 3px !important;
  opacity: 1 !important; /* Исходная полная видимость */
  transition: background-color 0.2s ease, opacity 0.2s ease !important;
}

.simplebar-scrollbar.simplebar-visible::before {
  opacity: 1 !important;
}

/* Делаем потемнение максимально заметным (и цвет темнее, и прозрачность ниже) */
/* Поддерживаем потемнение при наведении, при зажатии (active) и в процессе перетаскивания (dragging) */
.simplebar-scrollbar:hover::before,
.simplebar-track:hover .simplebar-scrollbar::before,
.simplebar-scrollbar:active::before,
.simplebar-track:active .simplebar-scrollbar::before,
.simplebar-track.simplebar-active .simplebar-scrollbar::before,
.simplebar-track.simplebar-dragging .simplebar-scrollbar::before,
.simplebar-scrollbar.simplebar-visible:active::before {
  background: #cca300 !important; /* Насыщенный темно-золотой цвет */
  opacity: 0.8 !important; /* Потемнение на 20%, как у кнопок */
}

.simplebar-track {
  background: transparent !important;
  border: none !important;
  pointer-events: auto !important; /* Включаем события мыши на всей дорожке, чтобы наведение работало стабильно */
}

.simplebar-placeholder {
  max-width: 100vw !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(255, 215, 0, 0.08), transparent 26%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 18%),
    linear-gradient(180deg, #0b0b0d 0%, #09090b 42%, #060607 100%);
}

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--page-gutter);
  padding-left: max(var(--page-gutter), env(safe-area-inset-left));
  padding-right: max(var(--page-gutter), env(safe-area-inset-right));
}

.topbar {
  position: fixed;
  top: max(var(--topbar-offset), env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(960px, calc(100vw - max(24px, env(safe-area-inset-left) + env(safe-area-inset-right))));
  max-width: 960px;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.topbar-inner {
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

section {
  position: relative;
  scroll-margin-top: var(--scroll-margin);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.brand:hover {
  color: #ffd700;
}

.brand-icon {
  width: 40px;
  height: 40px;
}

.brand-label {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-subtitle {
  margin: 4px 0 0;
  color: #cbd5e1;
  font-size: 14px;
}

.nav-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #ffd700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 30px;
  align-items: center;
  padding: 60px 0 48px;
}

.hero-copy {
  max-width: 600px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #ffd700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero-text {
  margin: 0 0 28px;
  color: #d6d9e0;
  font-size: 1.05rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.2s ease;
}

.button:hover {
  opacity: 0.8;
}

.button-primary {
  background: linear-gradient(135deg, #ffd700, #f8c72d);
  color: #0a0a0a;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
}

.button-tertiary {
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.14);
  color: #ffd700;
}

.button-tertiary:hover {
  background: rgba(255, 215, 0, 0.08);
}

.hero-card {
  background: rgba(34, 34, 34, 0.95);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 28px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  width: 100%;
  max-width: 520px;
  justify-self: end;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 215, 0, 0.18), transparent 30%);
  pointer-events: none;
}

.card-header {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #ffd700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.12);
  color: #ffd700;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.status-note {
  margin: 0 0 20px;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.card-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

.status-item {
  display: grid;
  gap: 4px;
}

.status-label {
  margin: 0;
  color: #a1a9b8;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.status-value {
  margin: 6px 0 16px;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.features,
.about,
.download {
  padding: var(--section-pad-y) 0;
}

.features {
  text-align: left;
}

.features-subtitle {
  margin: 0 0 48px;
  color: #a1a9b8;
  font-size: 1.05rem;
  max-width: 520px;
}

.features h2,
.about h2,
.download h2,
.team h2,
.contacts h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 1.6rem + 1vw, 3rem);
}

.feature-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}

.feature-card {
  background: rgba(25, 25, 25, 0.9);
  border: 1px solid rgba(255, 215, 0, 0.08);
  border-radius: 24px;
  padding: 30px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(255, 215, 0, 0.35);
  background: rgba(30, 30, 30, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.feature-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.feature-card p {
  margin: 0;
  color: #a1a9b8;
  line-height: 1.7;
}

.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.about-text p {
  margin: 0 0 18px;
  color: #d6d9e0;
}

.about-preview {
  display: grid;
  gap: 18px;
}

.preview-card {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.about-icon-img {
  width: 300px;
  height: 300px;
  border-radius: 28px;
}

.about-download-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 420px;
}

.about-download-buttons .button {
  width: 100%;
  padding: 14px 12px;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #ffd700, #f8c72d);
  color: #0a0a0a;
  border: none;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.about-download-buttons .button:hover,
.about-download-buttons .button:focus {
  opacity: 0.9;
}

.about-icon-label {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
}

.about-icon-sub {
  margin: 0;
  color: #a1a9b8;
  font-size: 0.95rem;
  text-align: center;
}

.preview-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.12);
  color: #ffd700;
  font-size: 11px;
  font-weight: 700;
}

.preview-title {
  margin: 0 0 8px;
}

.preview-description {
  margin: 0;
  color: #cbd5e1;
}

.team {
  padding: var(--section-pad-y) 0;
}

.team-header {
  margin-bottom: 32px;
}

.team-carousel {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-nav-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.team-nav-btn:hover {
  border-color: rgba(255, 215, 0, 0.4);
  background: rgba(255, 215, 0, 0.08);
  color: #ffd700;
}

.team-track-wrap {
  flex: 1;
  overflow: hidden;
}

.team-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
}

.team-subtitle,
.contacts-subtitle {
  margin: 0 0 8px;
  color: #a1a9b8;
  font-size: 1.05rem;
  max-width: 520px;
}

.team-card {
  flex: 0 0 calc(25% - 15px);
  background: rgba(25, 25, 25, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.team-card:hover {
  border-color: rgba(255, 215, 0, 0.2);
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.5));
  color: #ffd700;
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.team-name {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.team-role {
  margin: 0 0 12px;
  font-size: 13px;
  color: #ffd700;
  font-weight: 600;
}

.team-bio {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
}

.contacts {
  padding: var(--section-pad-y) 0;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-card {
  background: rgba(25, 25, 25, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: border-color 0.2s ease;
}

.contact-card:hover {
  border-color: rgba(255, 215, 0, 0.2);
}

.contact-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.contact-value {
  display: block;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-value:hover {
  color: #ffd700;
}

.download {
  text-align: center;
}

.download p {
  margin: 0 0 24px;
  color: #d6d9e0;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.download-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer {
  padding: 56px 0 24px;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.footer-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-brand {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.footer-desc {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  max-width: 280px;
  text-align: left;
}

.footer-socials {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  justify-content: flex-start;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.social-icon:hover {
  color: #ffd700;
  border-color: rgba(255, 215, 0, 0.3);
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-group-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
}

.footer-links-group a {
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links-group a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: #475569;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
  color: #ffd700;
  border-color: rgba(255, 215, 0, 0.3);
}

/* terms.html, privacy.html — обычный скролл без Simplebar */
html.legal-doc,
html.legal-doc body {
  overflow: auto !important;
  height: auto !important;
  min-height: 100%;
}

.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 22px 80px;
  padding-bottom: max(80px, env(safe-area-inset-bottom));
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 40px;
  transition: color 0.2s;
}

.legal-back:hover {
  color: #ffd700;
}

.legal-page h1 {
  font-size: clamp(1.8rem, 1.4rem + 1vw, 2.6rem);
  margin: 0 0 8px;
}

.legal-date {
  color: #64748b;
  font-size: 14px;
  margin: 0 0 48px;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin: 40px 0 12px;
  color: #fff;
}

.legal-page p {
  color: #a1a9b8;
  line-height: 1.8;
  margin: 0 0 16px;
}

.legal-page ul {
  color: #a1a9b8;
  line-height: 1.8;
  padding-left: 20px;
  margin: 0 0 16px;
}

.legal-page ul li {
  margin-bottom: 8px;
}

.legal-page a {
  color: #ffd700;
}

/* ── Узкий ноутбук / большой планшет — только отступы, layout как на десктопе ── */
@media (max-width: 1024px) {
  :root {
    --page-gutter: 20px;
    --section-pad-y: 48px;
    --scroll-margin: 110px;
  }

  .team-card {
    flex: 0 0 calc(33.333% - 14px);
  }
}

/* ── Планшет: компактнее типографика и сетки, но layout как на ПК ── */
@media (min-width: 768px) and (max-width: 959px) {
  :root {
    --topbar-clearance: 104px;
  }

  .topbar-inner {
    flex-wrap: wrap;
    row-gap: 10px;
    padding: 10px 18px 12px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 8px 16px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .hero {
    padding: 44px 0 40px;
    gap: 24px;
  }

  .hero-card {
    min-height: auto;
    max-width: 100%;
    justify-self: stretch;
  }

  .about-icon-img {
    width: min(100%, 240px);
    height: min(100%, 240px);
  }

  .team-card {
    flex: 0 0 calc(50% - 10px);
  }

  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand-block {
    align-items: center;
    text-align: center;
  }

  .footer-brand-row {
    justify-content: center;
  }

  .footer-desc {
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-links-group {
    align-items: center;
    text-align: center;
  }
}

@media (min-width: 960px) and (max-width: 1199px) {
  .team-card {
    flex: 0 0 calc(33.333% - 14px);
  }
}

/* ── Телефон и узкий планшет ── */
@media (max-width: 767px) {
  :root {
    --page-gutter: 16px;
    --section-pad-y: 40px;
    --topbar-offset: 12px;
    --topbar-clearance: calc(env(safe-area-inset-top) + var(--topbar-offset) + 56px);
    --scroll-margin: 100px;
  }

  html, body {
    overflow: auto !important;
    height: auto;
    min-height: 100%;
    overscroll-behavior-y: auto;
  }

  .main-scroll-container {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible !important;
    padding-top: var(--topbar-clearance);
    transition: padding-top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  body.nav-open {
    --topbar-clearance: calc(env(safe-area-inset-top) + var(--topbar-offset) + 200px);
  }

  /* Native scroll: убираем обёртку Simplebar, не трогаем стили скроллбара на десктопе */
  body.native-scroll .main-scroll-container .simplebar-wrapper,
  body.native-scroll .main-scroll-container .simplebar-height-auto-observer-wrapper,
  body.native-scroll .main-scroll-container .simplebar-mask,
  body.native-scroll .main-scroll-container .simplebar-offset,
  body.native-scroll .main-scroll-container .simplebar-content-wrapper,
  body.native-scroll .main-scroll-container .simplebar-content,
  body.native-scroll .main-scroll-container .simplebar-placeholder {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    position: static !important;
    transform: none !important;
    inset: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: none !important;
  }

  body.native-scroll .simplebar-track {
    display: none !important;
  }

  .topbar-inner {
    flex-wrap: wrap;
    align-items: center;
    padding: 15px 20px 0px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
  }

  .brand-label {
    font-size: 18px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 8px;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-top: 0;
    border-top: 1px solid transparent;
    pointer-events: none;
    transition:
      max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.25s ease,
      padding 0.25s ease,
      border-color 0.25s ease;
  }

  body.nav-open .nav-links {
    max-height: 220px;
    opacity: 1;
    padding: 10px 0 12px;
    border-top-color: rgba(255, 255, 255, 0.08);
    pointer-events: auto;
  }

  .nav-links a {
    padding: 11px 12px;
    border-radius: 12px;
    font-size: 14px;
    white-space: normal;
    text-align: left;
  }

  .nav-links a:active {
    background: rgba(255, 215, 0, 0.08);
  }

  .page-shell {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 28px 0 32px;
    gap: 24px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-card {
    max-width: none;
    justify-self: stretch;
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
  }

  .hero-text {
    margin-bottom: 22px;
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 48px;
    padding: 14px 20px;
  }

  .hero-card {
    padding: 20px;
    border-radius: 22px;
  }

  .card-header {
    letter-spacing: 0.18em;
    font-size: 10px;
  }

  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
  }

  .status-value {
    margin-bottom: 0;
    font-size: 15px;
  }

  .features h2,
  .about h2,
  .team h2,
  .contacts h2 {
    font-size: clamp(1.55rem, 6vw, 2rem);
  }

  .features-subtitle,
  .team-subtitle,
  .contacts-subtitle {
    margin-bottom: 28px;
    font-size: 0.98rem;
    max-width: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature-card {
    padding: 20px;
    border-radius: 18px;
    gap: 14px;
  }

  .feature-icon {
    width: 46px;
    height: 46px;
  }

  .about-text p {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-app-icon {
    gap: 24px;
    width: 100%;
    order: 0;
    margin-top: 8px;
  }

  .about-icon-img {
    width: min(72vw, 240px);
    height: min(72vw, 240px);
    border-radius: 28px;
  }

  .about-download-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    gap: 8px;
  }

  .about-download-buttons .button {
    min-height: 44px;
    width: 100%;
    padding: 12px 8px;
    font-size: 0.82rem;
    flex: none;
  }

  .team-header {
    margin-bottom: 20px;
  }

  .team-carousel {
    gap: 0;
  }

  .team-nav-btn {
    display: none;
  }

  .team-track-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 calc(-1 * max(var(--page-gutter), env(safe-area-inset-left)));
    padding: 4px max(var(--page-gutter), env(safe-area-inset-left)) 8px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: max(var(--page-gutter), env(safe-area-inset-left));
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .team-track-wrap::-webkit-scrollbar {
    display: none;
  }

  .team-track {
    transform: none !important;
    gap: 14px;
    width: max-content;
  }

  .team-card {
    flex: 0 0 min(82vw, 300px);
    min-width: min(82vw, 300px);
    scroll-snap-align: start;
    padding: 24px 20px;
    border-radius: 18px;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contacts-grid .contact-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .contact-card {
    padding: 20px;
    border-radius: 18px;
    align-items: flex-start;
  }

  .footer {
    padding: 40px 0 max(20px, env(safe-area-inset-bottom));
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 28px;
  }

  .footer-brand-block {
    text-align: center;
    align-items: center;
  }

  .footer-brand-row {
    justify-content: center;
  }

  .footer-desc {
    max-width: none;
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-links-group {
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .footer-bottom {
    text-align: center;
  }

  .hero-actions .button,
  .contact-card .button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .status-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.65rem;
  }
}

