/* ==========================================================================
   MyClothes — лендинг. Дизайн-система на основе токенов мобильного приложения.
   Цвета, типографика и радиусы синхронизированы с UI Kit приложения.
   ========================================================================== */

:root {
  /* Palette (из colors.ts приложения) */
  --gold-10: #fcfaf8;
  --gold-40: #f1e9d9;
  --gold-100: #d7bf8f;
  --gold-120: #c6a769;
  --gold-deep: #b08f52;

  --navy: #262d37;
  --navy-100: #4c5a6f;
  --navy-80: #5e6b80;

  --n0: #ffffff;
  --n05: #f9f8f8;
  --n1: #f3f1f1;
  --n15: #edebe9;
  --n2: #e7e4e2;
  --n3: #dbd6d4;
  --n4: #cfc9c5;
  --n6: #9c9692;
  --n7: #75706e;
  --n8: #4e4b49;
  --n9: #272525;
  --n95: #141312;
  --n10: #000000;

  /* Semantic */
  --text-primary: var(--n95);
  --text-secondary: var(--n7);
  --text-tertiary: var(--n6);
  --text-inverse: var(--n0);
  --bg-primary: var(--n0);
  --bg-secondary: var(--n05);
  --bg-tertiary: var(--n1);
  --bg-accent: var(--gold-40);
  --accent: var(--gold-120);
  --stroke: var(--n2);
  --stroke-2: var(--n15);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(20, 19, 18, 0.04);
  --shadow-md: 0 8px 30px rgba(20, 19, 18, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 19, 18, 0.12);
  --shadow-gold: 0 12px 32px rgba(198, 167, 105, 0.35);

  --font-display: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1180px;
}

/* ------------------------------- Reset ---------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--gold-10);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* --------------------------- Typography --------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.08; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* ----------------------------- Layout ----------------------------------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; }
.section-pad { padding: 96px 0; }

/* ----------------------------- Buttons ---------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500; font-size: 16px;
  height: 56px; padding: 0 28px; border-radius: var(--radius-sm);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-gold { background: var(--gold-120); color: #fff; box-shadow: var(--shadow-gold); }
.btn-gold:hover { background: var(--gold-deep); box-shadow: 0 16px 40px rgba(198,167,105,.45); }
.btn-dark { background: var(--n95); color: #fff; }
.btn-dark:hover { background: var(--n9); }
.btn-outline { background: transparent; border: 1.5px solid var(--n95); color: var(--n95); }
.btn-outline:hover { background: var(--n95); color: #fff; }
.btn-gold-outline { background: transparent; border: 1.5px solid var(--gold-120); color: var(--gold-deep); }
.btn-gold-outline:hover { background: var(--gold-40); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }

/* ----------------------------- Header ----------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(16px);
  background: rgba(252, 250, 248, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.header.scrolled { border-bottom-color: var(--stroke); background: rgba(252,250,248,0.92); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.brand .logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: block; object-fit: cover; box-shadow: var(--shadow-sm);
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 15px; color: var(--n8); font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--n95); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.burger span { display: block; width: 20px; height: 2px; background: var(--n95); position: relative; transition: .2s; }
.burger span::before, .burger span::after { content:""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--n95); transition: .2s; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

/* ------------------------------- Hero ----------------------------------- */
.hero { padding: 100px 0 88px; position: relative; overflow: hidden; }
.hero-glow {
  position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 640px; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(198,167,105,.24), rgba(198,167,105,.06) 42%, transparent 68%);
  filter: blur(10px);
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 860px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--n0); border: 1px solid var(--gold-100); color: var(--gold-deep);
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  margin-bottom: 28px; box-shadow: var(--shadow-sm);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-120); }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.04; }
.hero h1 .accent { color: var(--gold-120); }
.hero-sub { font-size: 19px; color: var(--text-secondary); margin: 26px auto 36px; max-width: 560px; line-height: 1.6; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-trust { display: flex; align-items: center; gap: 28px; margin-top: 52px; flex-wrap: wrap; justify-content: center; }
.hero-trust .stat b { font-family: var(--font-display); font-size: 26px; display: block; line-height: 1; }
.hero-trust .stat span { font-size: 13px; color: var(--text-tertiary); }
.hero-trust .divider { width: 1px; height: 36px; background: var(--stroke); }

/* ------------------------------- Marquee -------------------------------- */
.logos { padding: 34px 0; border-top: 1px solid var(--stroke-2); border-bottom: 1px solid var(--stroke-2); background: var(--n0); }
.logos-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.logos p { font-size: 13px; color: var(--text-tertiary); font-weight: 500; }
.logos .pays { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.logos .pays span { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--n6); }

/* ----------------------------- Section head ----------------------------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin: 14px 0 16px; }
.section-head p { font-size: 18px; color: var(--text-secondary); }

/* ----------------------------- Features --------------------------------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--n0); border: 1px solid var(--stroke-2); border-radius: var(--radius-lg);
  padding: 30px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature .ic {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--gold-40); color: var(--gold-deep); margin-bottom: 20px;
}
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { font-size: 20px; margin-bottom: 10px; }
.feature p { color: var(--text-secondary); font-size: 15px; line-height: 1.6; }
.feature.wide { grid-column: span 1; }

/* ------------------------------ How it works ---------------------------- */
.how { background: var(--n0); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { text-align: left; }
.step .num {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--n95); color: #fff; margin-bottom: 20px;
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--text-secondary); font-size: 15px; line-height: 1.6; }

/* ------------------------------- Pricing -------------------------------- */
.pricing { background: linear-gradient(180deg, var(--gold-10), var(--n0)); }
.toggle {
  display: inline-flex; background: var(--n1); border-radius: 999px; padding: 4px; margin: 0 auto 44px; gap: 4px;
}
.toggle-wrap { display: flex; justify-content: center; }
.toggle button {
  border-radius: 999px; padding: 9px 22px; font-size: 14px; font-weight: 600; color: var(--n7);
  transition: .2s; position: relative;
}
.toggle button.active { background: var(--n0); color: var(--n95); box-shadow: var(--shadow-sm); }
.toggle .save { color: var(--gold-deep); font-size: 11px; margin-left: 6px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  background: var(--n0); border: 1px solid var(--stroke); border-radius: var(--radius-lg);
  padding: 32px; display: flex; flex-direction: column; position: relative;
}
.plan.featured {
  border: 1.5px solid var(--gold-120); box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, #fffdf9, #fff);
}
.plan .plan-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold-120); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 16px; border-radius: 999px; box-shadow: var(--shadow-gold);
}
.plan .plan-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.plan .plan-desc { color: var(--text-secondary); font-size: 14px; margin: 6px 0 22px; min-height: 42px; }
.plan .price { display: flex; align-items: flex-end; gap: 4px; margin-bottom: 4px; }
.plan .price .amount { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; }
.plan .price .per { color: var(--text-tertiary); font-size: 15px; margin-bottom: 5px; }
.plan .price-note { font-size: 13px; color: var(--text-tertiary); min-height: 20px; margin-bottom: 24px; }
.plan ul { display: flex; flex-direction: column; gap: 13px; margin-bottom: 28px; flex: 1; }
.plan li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; color: var(--n8); }
.plan li .check {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--gold-40); color: var(--gold-deep);
  display: grid; place-items: center; margin-top: 1px;
}
.plan li.muted { color: var(--text-tertiary); }
.plan li.muted .check { background: var(--n1); color: var(--n6); }
.pricing-note { text-align: center; color: var(--text-tertiary); font-size: 13px; margin-top: 30px; }
.pricing-note a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }

/* -------------------------------- FAQ ----------------------------------- */
.faq { background: var(--n0); }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--stroke); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 4px; text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--n95);
}
.faq-q .pm { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--n1); display: grid; place-items: center; transition: .25s; font-size: 18px; color: var(--n8); }
.faq-item.open .pm { background: var(--gold-120); color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 4px 24px; color: var(--text-secondary); font-size: 16px; line-height: 1.65; max-width: 92%; }

/* ------------------------------- CTA band ------------------------------- */
.cta-band { padding: 40px 0 100px; }
.cta-inner {
  background: linear-gradient(135deg, var(--navy), #171c24);
  border-radius: var(--radius-xl); padding: 64px 56px; text-align: center; position: relative; overflow: hidden;
}
.cta-inner::after { content:""; position: absolute; top: -40%; right: -10%; width: 420px; height: 420px; background: radial-gradient(circle, rgba(198,167,105,.35), transparent 60%); }
.cta-inner h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); position: relative; }
.cta-inner p { color: rgba(255,255,255,.72); font-size: 18px; margin: 16px auto 32px; max-width: 520px; position: relative; }
.cta-inner .hero-actions { justify-content: center; position: relative; }
.cta-inner .btn-outline { border-color: rgba(255,255,255,.4); color: #fff; }
.cta-inner .btn-outline:hover { background: #fff; color: var(--n95); }

/* ------------------------------- Footer --------------------------------- */
.footer { background: var(--gold-10); border-top: 1px solid var(--stroke); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer .brand { margin-bottom: 18px; }
.footer-about p { color: var(--text-secondary); font-size: 14px; max-width: 300px; line-height: 1.6; }
.footer-col h4 { font-family: var(--font-body); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-tertiary); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 15px; color: var(--n8); transition: color .15s; }
.footer-col a:hover { color: var(--gold-deep); }
.footer-req { border-top: 1px solid var(--stroke); padding-top: 28px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-req p { font-size: 13px; color: var(--text-tertiary); line-height: 1.7; max-width: 640px; }
.footer-req .copy { font-size: 13px; color: var(--text-tertiary); white-space: nowrap; }
.pay-icons { display: flex; gap: 10px; margin-top: 14px; align-items: center; }
.pay-icons span { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--n6); border: 1px solid var(--stroke); border-radius: 8px; padding: 5px 10px; }

/* ------------------------------- Legal page ----------------------------- */
.legal { padding: 56px 0 80px; background: var(--n0); }
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal .back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--gold-deep); font-weight: 600; margin-bottom: 28px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 8px; }
.legal .updated { color: var(--text-tertiary); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 22px; margin: 40px 0 14px; }
.legal h3 { font-size: 18px; margin: 26px 0 10px; }
.legal p, .legal li { color: var(--n8); font-size: 16px; line-height: 1.7; margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 12px; }
.legal ul li { list-style: disc; } .legal ol li { list-style: decimal; }
.legal .callout { background: var(--gold-10); border: 1px solid var(--gold-100); border-radius: var(--radius-md); padding: 20px 22px; margin: 24px 0; }
.legal .callout p { margin: 0; font-size: 15px; color: var(--n8); }
.legal strong { color: var(--n95); }
.legal .req-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.legal .req-table td { border: 1px solid var(--stroke); padding: 12px 16px; font-size: 15px; vertical-align: top; }
.legal .req-table td:first-child { color: var(--text-secondary); width: 38%; }
.legal .req-table td:last-child { font-weight: 500; }

/* ------------------------------ Reveal anim ----------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 980px) {
  .hero { padding: 72px 0 64px; }
  .features-grid, .steps, .plans { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-pad { padding: 72px 0; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav-cta .btn:not(.burger) { display: none; }
  .header.menu-open .nav-links {
    display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: var(--n0); padding: 20px 24px; gap: 20px; border-bottom: 1px solid var(--stroke); box-shadow: var(--shadow-md);
  }
  .hero-trust { gap: 16px; }
  .hero-trust .divider { display: none; }
  .cta-inner { padding: 48px 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-req { flex-direction: column; }
  .plans { gap: 32px; }
}
