/* ============================================================
   WebExpert s.r.o. — App Store-style landing
   Дизайн-токены по разделу 3 ТЗ
   ============================================================ */

:root {
  --color-bg: #f5f5f7;
  --color-surface: #ffffff;
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-accent: #0071e3;
  --color-accent-hover: #0077ed;
  --color-border: #d2d2d7;
  --color-status-bg: #e8f2fd;

  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;

  --radius-card: 18px;
  --radius-pill: 980px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.1);

  --container: 1120px;
  --section-gap: 96px;
  --header-h: 60px;
}

/* ---------- Reset / base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-stack);
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 17px;
}

.logo__mark {
  flex-shrink: 0;
  display: block;
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav__link {
  color: var(--color-text);
  font-size: 15px;
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--color-accent);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.lang__btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang__btn.is-active {
  background: var(--color-text);
  color: #fff;
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 0 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-btn__bar {
  height: 2px;
  border-radius: 2px;
  background: var(--color-text);
  transition: transform 0.25s, opacity 0.25s;
}

.menu-btn[aria-expanded="true"] .menu-btn__bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .menu-btn__bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---------- Buttons / chips / cards ---------- */

.btn {
  display: inline-block;
  font-size: 17px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

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

.btn--secondary {
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.btn--secondary:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn--soon {
  background: var(--color-bg);
  color: var(--color-text-secondary);
  font-size: 15px;
  padding: 8px 20px;
  align-self: flex-start;
  cursor: default;
}

.chip {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.chip--status {
  background: var(--color-status-bg);
  border-color: transparent;
  color: var(--color-accent);
  font-weight: 600;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px;
}

/* ---------- Typography helpers ---------- */

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section {
  padding: var(--section-gap) 0;
}

.section--alt {
  background: var(--color-surface);
}

.section--alt .card {
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.section__title {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.section__lead {
  margin-bottom: 40px;
}

.section__intro {
  max-width: 720px;
  color: var(--color-text-secondary);
  margin-bottom: 48px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 80px 0 var(--section-gap);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__title {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 20px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* App Store-style card */

.app-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
}

.app-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-card__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-accent), #4da3f0);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.app-card__titles {
  margin-right: auto;
}

.app-card__name {
  font-size: 19px;
  font-weight: 600;
}

.app-card__meta {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.app-card__divider {
  border: none;
  border-top: 1px solid var(--color-border);
}

.app-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-card__features li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
}

.app-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-status-bg) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230071e3" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / 10px no-repeat;
}

/* ---------- About ---------- */

.about__text {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 48px;
}

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

.stat {
  text-align: center;
  padding: 36px 24px;
}

.stat__value {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.stat__value--sm {
  font-size: 28px;
}

.stat__label {
  font-size: 15px;
  color: var(--color-text-secondary);
}

/* ---------- Product ---------- */

.product__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.product__desc {
  color: var(--color-text-secondary);
  margin-bottom: 28px;
  max-width: 560px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.section--alt .chip {
  background: var(--color-bg);
  border-color: transparent;
}

.section--alt .chip--status {
  background: var(--color-status-bg);
}

.link-arrow {
  font-weight: 500;
}

.link-arrow::after {
  content: " ›";
}

.link-arrow:hover {
  text-decoration: underline;
}

.facts__list {
  display: flex;
  flex-direction: column;
}

.facts__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.facts__row:first-child {
  padding-top: 0;
}

.facts__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.facts__row dt {
  font-size: 15px;
  color: var(--color-text-secondary);
}

.facts__row dd {
  font-size: 15px;
  font-weight: 600;
  text-align: right;
}

/* ---------- App features ---------- */

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

.feature__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-status-bg);
  color: var(--color-accent);
  margin-bottom: 20px;
}

.feature__icon svg {
  width: 24px;
  height: 24px;
}

.feature__title {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature__text {
  font-size: 15px;
  color: var(--color-text-secondary);
}

/* ---------- Contact ---------- */

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

.contact-card {
  display: block;
  color: var(--color-text);
  transition: box-shadow 0.2s, transform 0.2s;
}

a.contact-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.contact-card__label {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.contact-card__value {
  font-size: 17px;
  font-weight: 600;
  word-break: break-word;
}

a.contact-card .contact-card__value {
  color: var(--color-accent);
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__legal,
.footer__copy {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   Breakpoints: 1120px / 860px / 720px (по ТЗ)
   ============================================================ */

@media (max-width: 1120px) {
  .hero__title {
    font-size: 44px;
  }

  .section__title {
    font-size: 38px;
  }

  .hero__inner {
    gap: 48px;
  }
}

@media (max-width: 860px) {
  :root {
    --section-gap: 72px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__visual {
    max-width: 440px;
  }

  .product__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .hero__title {
    font-size: 40px;
  }

  .section__title {
    font-size: 34px;
  }
}

@media (max-width: 720px) {
  :root {
    --section-gap: 56px;
  }

  body {
    font-size: 16px;
  }

  .menu-btn {
    display: flex;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 8px 24px 16px;
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav__link {
    padding: 12px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--color-bg);
  }

  .nav__link:last-child {
    border-bottom: none;
  }

  .hero {
    padding-top: 48px;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__subtitle {
    font-size: 18px;
  }

  .section__title {
    font-size: 28px;
  }

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

  .btn {
    width: 100%;
    text-align: center;
  }

  .btn--soon {
    width: auto;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
