/* Мурашки AI — лендинг «Разбор архива». Токены: бренд-кит tokens.css */

:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --surface: #F6EFE9;
  --berry: #6D2E46;
  --berry-hover: #572236;
  --link: #8E4F52;
  --rose: #A26769;
  --ink: #2B2226;
  --muted: #6E6167;
  --on-berry: #FFFFFF;
  --border: rgba(43, 34, 38, .10);
  --shadow: 0 2px 10px rgba(43, 34, 38, .07);
  --radius-btn: 12px;
  --radius-card: 18px;
  --font-display: 'Unbounded', Georgia, serif;
  --font-text: 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  --max: 1120px;
  --gutter: 20px;
  --section-y: clamp(48px, 8vw, 96px);
}

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/unbounded-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/unbounded-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--font-text);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { list-style: none; padding: 0; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

::selection { background: var(--berry); color: var(--on-berry); }

:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.site-header :focus-visible,
.section--berry :focus-visible,
.site-footer :focus-visible { outline-color: var(--surface); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--cream { background: var(--surface); }
.section--berry { background: var(--berry); color: var(--on-berry); }

h1 {
  font: 600 clamp(28px, 5vw, 44px)/1.15 var(--font-display);
  letter-spacing: -0.01em;
}
h2 {
  font: 600 clamp(22px, 3.4vw, 31px)/1.2 var(--font-display);
  letter-spacing: -0.005em;
}
h3 {
  font: 600 clamp(16px, 2vw, 18px)/1.35 var(--font-display);
  font-weight: 600;
}
.section h2 { margin-bottom: clamp(28px, 5vw, 44px); }
.section--berry h2 { color: var(--on-berry); }

.mono-label {
  font: 400 11px/1.6 var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--link);
}
.mono-label--light { color: var(--surface); }
.section--berry .mono-label { color: var(--surface); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 600 15px/1 var(--font-text);
  letter-spacing: .01em;
  -webkit-tap-highlight-color: transparent;
  min-height: 52px;
  padding: 15px 26px;
  border-radius: var(--radius-btn);
  border: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--berry); color: var(--on-berry); }
.btn--primary:hover { background: var(--berry-hover); }
.btn--outline-light {
  background: transparent;
  color: var(--on-berry);
  border: 1.5px solid var(--on-berry);
}
.btn--outline-light:hover { background: var(--on-berry); color: var(--berry); }
.btn--invert { background: var(--bg); color: var(--berry); }
.btn--invert:hover { background: var(--surface); }

.site-header { background: var(--berry); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px;
}
.header-logo { height: 32px; width: auto; }
.header-inner .btn {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
}

.hero { padding-block: clamp(56px, 9vw, 104px); }
.hero .mono-label { display: block; margin-bottom: 20px; }
.hero h1 { max-width: 640px; margin-bottom: 20px; }
.lead {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 36px;
}
.hero .btn { width: 100%; max-width: 420px; }
.hero__note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

.numbers {
  display: grid;
  gap: 20px;
  margin-bottom: 44px;
}
.num {
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.num__value {
  font: 600 clamp(40px, 11vw, 72px)/1 var(--font-display);
  color: var(--rose);
  flex: none;
}
.num__label { font-size: 15px; line-height: 1.45; color: var(--muted); }
.numbers__caption {
  font-weight: 600;
  font-size: clamp(18px, 2.4vw, 22px);
}

.points { display: grid; gap: 36px; }
.point h3 { margin-top: 10px; }
.point p { margin-top: 8px; max-width: 60ch; color: var(--muted); }
.points__closing {
  margin-top: 32px;
  max-width: 60ch;
  font-weight: 600;
  color: var(--berry);
}

.cards { display: grid; gap: 16px; }
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 10px; }
.card p { margin-top: 8px; color: var(--muted); }

.steps { display: grid; gap: 28px; }
.step h3 { margin-top: 10px; max-width: 24ch; }
.steps__mech {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  max-width: 62ch;
}

.next__text {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 24px;
}
.action-link {
  display: inline-block;
  padding: 12px 2px;
  color: var(--link);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  -webkit-tap-highlight-color: transparent;
}
.action-link:hover { color: var(--berry); text-decoration-thickness: 2px; }
.action-link:active { transform: translateY(1px); }

.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--berry); }
.faq-chevron {
  flex: none;
  color: var(--berry);
  transition: transform .2s ease;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item p { padding-bottom: 20px; max-width: 62ch; color: var(--muted); }

.final .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.final h2 { max-width: 660px; }
.final-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 36px 0 44px;
}
.final-step {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--on-berry);
}
.final-steps__arrow { display: none; color: var(--surface); }

.site-footer {
  background: var(--berry);
  color: var(--surface);
  padding-block: 44px 36px;
}
.footer-logo { height: 32px; width: auto; margin-bottom: 24px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-bottom: 24px;
}
.footer-links a {
  color: var(--on-berry);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-links a:hover { text-decoration-thickness: 2px; }
.footer-requisites { font-size: 13.5px; }

.doc-header { border-bottom: 1px solid var(--border); }
.doc-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 14px;
}
.doc-header img { height: 28px; width: auto; }
.doc-back {
  color: var(--link);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.doc-back:hover { color: var(--berry); text-decoration-thickness: 2px; }
.doc { padding-block: clamp(40px, 6vw, 72px); }
.doc-article { max-width: 720px; }
.doc-article h1 {
  font-size: clamp(24px, 4vw, 34px);
  margin-bottom: 12px;
}
.doc-meta { margin-bottom: 8px; }
.doc-article h2 {
  font-size: clamp(18px, 2.6vw, 22px);
  margin: 36px 0 12px;
}
.doc-article p { margin-bottom: 12px; }
.doc-article ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }
.doc-article li { margin-bottom: 6px; }
.doc-article strong { font-weight: 600; }

@media (min-width: 768px) {
  .header-logo { height: 36px; }
  .header-inner .btn {
    min-height: 48px;
    padding: 12px 20px;
    font-size: 15px;
  }
  .btn { min-height: 48px; }
  .hero .btn { width: auto; }
  .numbers {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
  }
  .num { display: block; border-top: 0; padding-top: 0; }
  .num__value { font-size: clamp(56px, 7vw, 88px); }
  .num__label { display: block; margin-top: 12px; max-width: 22ch; }
  .points { gap: 44px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .final-steps {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px 0 48px;
  }
  .final-steps__arrow { display: inline; align-self: center; }
  .footer-logo { height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
