/* ==========================================================================
   Impararerusso — design system
   Бумага + чернила, бирюза (Россия/старый сайт) и терракота (Италия).
   ========================================================================== */

@font-face { font-family: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("/assets/fonts/literata-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("/assets/fonts/literata-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0300-0303, U+0305-0307, U+0309-0328, U+032A-036F, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("/assets/fonts/literata-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url("/assets/fonts/literata-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url("/assets/fonts/literata-cyrillic-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/onest-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0300-0303, U+0305-0307, U+0309-0328, U+032A-036F, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --paper: #f6f1e7;
  --paper-2: #efe6d5;
  --card: #fffdf8;
  --ink: #15201f;
  --ink-2: #44514f;
  --ink-3: #6b7674;
  --line: #e0d6c4;
  --teal: #1f5c58;
  --teal-d: #123b38;
  --teal-dd: #0c2826;
  --teal-l: #dceae5;
  --terra: #b4532a;
  --terra-d: #93411f;
  --terra-l: #f4e0d3;
  --gold: #c79a4b;

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgba(21, 32, 31, .05), 0 8px 24px -12px rgba(21, 32, 31, .18);
  --shadow-lg: 0 2px 4px rgba(21, 32, 31, .04), 0 24px 60px -24px rgba(21, 32, 31, .35);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--terra); }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--terra-l); color: var(--ink); }
button { font: inherit; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(780px + 2 * var(--gutter)); }
.muted { color: var(--ink-3); }
.ru { font-family: var(--serif); font-style: italic; color: var(--teal-d); }
.center { text-align: center; }

/* ---------- Type ---------- */
.h1, .h2, .h3, .display { font-family: var(--serif); font-weight: 450; letter-spacing: -.015em; line-height: 1.08; margin: 0 0 .5em; color: var(--ink); font-optical-sizing: auto; }
.display { font-size: clamp(2.5rem, 5.2vw, 4.3rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.02; }
.h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
.h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.2; }
.display em, .h1 em, .h2 em { font-style: italic; color: var(--teal); font-weight: 400; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.eyebrow { font: 600 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--terra); margin: 0 0 1rem; display: inline-flex; align-items: center; gap: .6em; }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.eyebrow-light { color: #f0b48f; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.45em; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg); font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { --bg: var(--terra); box-shadow: 0 10px 24px -12px rgba(180, 83, 42, .8); }
.btn-primary:hover { --bg: var(--terra-d); }
.btn-dark { --bg: var(--teal-d); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn-ghost:hover { --fg: var(--ink); border-color: var(--ink); }
.btn-light { --bg: var(--paper); --fg: var(--ink); }
.btn-wa { --bg: #25d366; --fg: #08311a; margin-top: 1.4rem; }
.btn-lg { padding: 1.05em 1.8em; font-size: 1.05rem; }
.btn-sm { padding: .6em 1.1em; font-size: .92rem; }
.btn-block { width: 100%; }
.arrow::after { content: "→"; transition: transform .25s var(--ease); }
.btn:hover .arrow::after, .btn.arrow:hover::after { transform: translateX(3px); }
.linklike { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 241, 231, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.site-header.is-scrolled { border-color: var(--line); }
.header-in { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo:hover { color: var(--ink); }
.logo-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--teal); color: var(--paper);
  font: 600 1.55rem/1 var(--serif); position: relative; flex: none;
}
.logo-mark::after { content: ""; position: absolute; top: 6px; right: 10px; width: 7px; height: 2.5px; background: var(--terra); transform: rotate(-50deg); border-radius: 2px; }
.logo-text { font: 600 1.12rem/1 var(--serif); letter-spacing: -.01em; display: flex; flex-direction: column; gap: 5px; }
.logo-sub { font: 500 .7rem/1 var(--sans); letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; }
.logo-light { color: var(--paper); }
.logo-light:hover { color: var(--paper); }
.logo-light .logo-mark { background: var(--paper); color: var(--teal-d); }
.logo-light .logo-sub { color: rgba(246, 241, 231, .6); }

.nav { display: flex; align-items: center; gap: 20px; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list > li > a { padding: 10px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; transition: background .2s; }
.nav-list > li > a:hover, .nav-list > li > a.is-active { background: var(--paper-2); color: var(--ink); }
.sub-toggle { display: none; }
.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-3px) rotate(45deg); opacity: .6; }
.sub {
  position: absolute; top: calc(100% + 8px); left: -12px; width: 330px; list-style: none; margin: 0; padding: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.sub::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.sub a:hover { background: var(--paper); }
.sub strong { font-weight: 600; font-size: .96rem; }
.sub span { font-size: .84rem; color: var(--ink-3); }
.nav-cta { padding: .7em 1.2em; font-size: .94rem; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: var(--ink); border-radius: 50%; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--paper); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.nav-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Breadcrumbs ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 18px 0 0; font-size: .86rem; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--terra); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-alt { background: var(--paper-2); }
.section-card { background: var(--card); }
.section-dark { background: var(--teal-dd); color: #e9efe9; }
.section-dark .h2, .section-dark .h3 { color: #fff; }
.section-dark .lead, .section-dark .muted { color: rgba(233, 239, 233, .72); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head .lead { margin-top: 0; }

/* ---------- Home hero ---------- */
.hero { padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy .lead { margin: 1.4rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 2.4rem 0 0; padding: 1.6rem 0 0; border-top: 1px solid var(--line); list-style: none; }
.hero-proof li { display: flex; flex-direction: column; font-size: .9rem; color: var(--ink-3); line-height: 1.35; }
.hero-proof strong { font: 500 1.5rem/1.15 var(--serif); color: var(--ink); }
.hero-visual { position: relative; }
.hero-photo { position: relative; border-radius: 240px 240px var(--r-lg) var(--r-lg); overflow: hidden; background: #0d0f0e; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-letter { position: absolute; z-index: -1; right: -6%; top: -9%; font: 300 clamp(14rem, 30vw, 26rem)/1 var(--serif); color: var(--paper-2); user-select: none; pointer-events: none; }
.float-card {
  position: absolute; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 14px 18px;
  display: flex; flex-direction: column; gap: 2px; font-size: .88rem; color: var(--ink-3); border: 1px solid rgba(224, 214, 196, .7);
}
.float-card .ru { font-size: 1.5rem; font-style: normal; color: var(--ink); }
.float-card b { color: var(--terra); font-weight: 600; }
.fc-1 { left: -8%; bottom: 14%; animation: bob 7s ease-in-out infinite; }
.fc-2 { right: -5%; top: 12%; animation: bob 8s ease-in-out -3s infinite; }
.fc-badge { flex-direction: row; align-items: center; gap: 12px; color: var(--ink); font-weight: 500; }
.fc-badge i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--teal-l); color: var(--teal); font-style: normal; font: 600 1rem var(--serif); }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- Inner page hero ---------- */
.page-hero { padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 6vw, 88px); position: relative; overflow: hidden; }
.page-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.page-hero .lead { margin: 1.2rem 0 1.8rem; }
.page-hero-letter { position: absolute; right: max(var(--gutter), calc(50% - 600px)); top: 50%; transform: translateY(-50%); font: 300 clamp(12rem, 28vw, 24rem)/1 var(--serif); color: var(--paper-2); pointer-events: none; user-select: none; z-index: -1; }
.page-hero-aside { position: relative; }
.page-hero-img { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hero-facts li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.hero-facts b { font: 500 1.35rem/1.1 var(--serif); color: var(--teal); min-width: 3.4ch; }
.hero-facts span { color: var(--ink-2); font-size: .97rem; line-height: 1.45; }

/* ---------- Ticks / lists ---------- */
.ticks { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 2rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--teal-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231f5c58' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }
.ticks-light li::before { background-color: rgba(255, 255, 255, .12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23f0b48f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .92rem; color: var(--ink-2); }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-top { align-items: start; }

/* Три опоры УТП */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.pillar { padding: 32px 32px 8px 0; position: relative; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line); }
.pillar-num { font: 400 .95rem var(--serif); color: var(--terra); display: block; margin-bottom: 26px; }
.pillar-ru { font: 400 2.6rem/1 var(--serif); color: var(--teal); display: block; margin-bottom: 18px; }
.pillar h3 { font: 500 1.4rem/1.25 var(--serif); margin: 0 0 .6rem; }
.pillar p { color: var(--ink-2); margin: 0; }

/* Карточки направлений */
.path-card {
  display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); position: relative; overflow: hidden; min-height: 230px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.path-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); border-color: transparent; }
.path-card .ru-big { font: 400 3rem/1 var(--serif); color: var(--paper-2); position: absolute; right: 18px; top: 14px; transition: color .35s; }
.path-card:hover .ru-big { color: var(--teal-l); }
.path-card h3 { font: 500 1.35rem/1.2 var(--serif); margin: 52px 0 0; position: relative; }
.path-card p { margin: 0; color: var(--ink-2); font-size: .97rem; position: relative; }
.path-card .go { font-weight: 600; color: var(--terra); font-size: .92rem; margin-top: 6px; }

/* ---------- Letters game ---------- */
.letters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; perspective: 1000px; }
.letter-card { aspect-ratio: 3 / 4; border: 0; padding: 0; background: none; cursor: pointer; position: relative; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.letter-card.is-flipped { transform: rotateY(180deg); }
.letter-face { position: absolute; inset: 0; border-radius: var(--r); backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px; }
.letter-front { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: #fff; }
.letter-front .l { font: 400 clamp(2.6rem, 5vw, 3.8rem)/1 var(--serif); }
.letter-front small { font-size: .78rem; color: rgba(233, 239, 233, .55); }
.letter-back { background: var(--paper); color: var(--ink); transform: rotateY(180deg); text-align: center; }
.letter-back .snd { font: 500 1.9rem/1 var(--serif); color: var(--terra); }
.letter-back .ex { font-size: .85rem; line-height: 1.35; color: var(--ink-2); }
.letter-back .ex span { font-family: var(--serif); color: var(--ink); font-size: 1rem; display: block; }
.read-test { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.read-word { font: 400 clamp(1.6rem, 3vw, 2.2rem)/1 var(--serif); letter-spacing: .04em; color: #fff; padding: 14px 22px; border-radius: 14px; border: 1px dashed rgba(255, 255, 255, .25); background: none; cursor: pointer; transition: background .25s; }
.read-word:hover { background: rgba(255, 255, 255, .06); }
.read-word[data-shown="1"] { color: #f0b48f; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; padding: 26px 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 400 1rem var(--serif); color: var(--terra); margin-bottom: 36px; }
.steps h3 { font: 500 1.2rem/1.25 var(--serif); margin: 0 0 .5rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.steps-time { display: inline-block; margin-top: 14px; font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--teal); background: var(--teal-l); padding: 4px 10px; border-radius: 999px; }

/* Lesson anatomy (60 min) */
.timeline { display: flex; border-radius: var(--r); overflow: hidden; margin: 28px 0 14px; height: 54px; }
.timeline span { display: flex; align-items: center; justify-content: center; font-size: .82rem; font-weight: 600; color: #fff; padding: 0 6px; text-align: center; line-height: 1.15; }
.tl-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tl-legend li { display: grid; grid-template-columns: 54px 1fr; gap: 14px; }
.tl-legend b { font: 500 1.05rem var(--serif); color: var(--teal); }

/* ---------- Can-do list ---------- */
.cando { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.cando li { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; align-items: baseline; }
.cando .ru { color: #f0b48f; font-size: 1.12rem; }
.cando span:last-child { color: rgba(233, 239, 233, .85); }

/* ---------- Price ---------- */
.price-card { background: var(--teal-d); color: #e9efe9; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.price-card::after { content: "₽€"; position: absolute; right: -10px; bottom: -40px; font: 300 9rem/1 var(--serif); color: rgba(255, 255, 255, .05); }
.price-tag { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 4px; }
.price-tag strong { font: 400 clamp(4rem, 8vw, 5.6rem)/1 var(--serif); color: #fff; letter-spacing: -.03em; }
.price-tag span { font-size: 1.05rem; color: rgba(233, 239, 233, .75); }
.price-card .ticks { margin: 24px 0 30px; }
.price-card .ticks li { color: #e9efe9; }
.price-note { font-size: .9rem; color: rgba(233, 239, 233, .6); margin: 14px 0 0; }

/* ---------- Reviews ---------- */
.reviews-grid { columns: 3 300px; column-gap: 20px; }
.review { break-inside: avoid; margin: 0 0 20px; padding: 28px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.review blockquote { margin: 0 0 22px; }
.review blockquote p { margin: 0; font: 400 1.05rem/1.6 var(--serif); color: var(--ink); }
.review-lg { background: var(--teal-d); border-color: var(--teal-d); }
.review-lg blockquote p { color: #fff; font-size: 1.22rem; line-height: 1.55; }
.review-lg figcaption strong { color: #fff; }
.review-lg figcaption small { color: rgba(233, 239, 233, .65); }
.review blockquote p::before { content: "«"; color: var(--terra); }
.review blockquote p::after { content: "»"; color: var(--terra); }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review figcaption > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.review figcaption small { color: var(--ink-3); font-size: .85rem; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--terra-l); color: var(--terra-d); font: 600 1rem var(--serif); flex: none; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 0; font: 500 1.15rem/1.35 var(--serif); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background .25s, transform .3s var(--ease); }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.faq-item summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq-item[open] summary i { background: var(--ink); }
.faq-item[open] summary i::before, .faq-item[open] summary i::after { background: var(--paper); }
.faq-item[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { padding: 0 56px 24px 0; color: var(--ink-2); }
.faq-a p { margin: 0 0 .8em; }
.faq-a p:last-child { margin: 0; }

/* ---------- CTA band + form ---------- */
.cta-band { background: var(--teal-dd); color: #e9efe9; overflow: hidden; }
.cta-band .h2 { color: #fff; }
.cta-band .lead { color: rgba(233, 239, 233, .78); }
.cta-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.cta-ru { font: italic 400 clamp(2rem, 4vw, 3rem)/1.1 var(--serif); color: rgba(255, 255, 255, .1); margin: 2.4rem 0 0; }
.cta-form { color: var(--ink); }
.lead-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.field em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1.5px solid transparent; border-radius: 12px; padding: 13px 14px;
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--teal); background: #fff; }
.field input:user-invalid { border-color: var(--terra); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); line-height: 1.45; }
.check input { margin-top: 3px; accent-color: var(--teal); width: 18px; height: 18px; flex: none; }
.form-note { margin: 0; text-align: center; font-size: .85rem; color: var(--ink-3); }
.form-error { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--terra-l); color: var(--terra-d); font-size: .92rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--ink); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.post-card-cat { font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--terra); }
.post-card-title { font: 500 1.3rem/1.25 var(--serif); }
.post-card-text { color: var(--ink-2); font-size: .96rem; }
.post-card-meta { margin-top: auto; padding-top: 10px; font-size: .88rem; font-weight: 600; color: var(--teal); }
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.blog-cats button { border: 1px solid var(--line); background: var(--card); padding: 8px 16px; border-radius: 999px; cursor: pointer; color: var(--ink-2); font-size: .93rem; transition: background .2s, color .2s; }
.blog-cats button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Article ---------- */
.post-head { padding-top: clamp(28px, 4vw, 56px); padding-bottom: 32px; }
.post-head .lead { margin: 1rem 0 1.6rem; }
.byline { display: flex; align-items: center; gap: 14px; font-size: .92rem; }
.byline-img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; background: #111; }
.byline a { color: var(--ink); text-decoration: none; }
.byline span { display: block; color: var(--ink-3); }
.post-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: 56px; justify-content: center; padding-bottom: 72px; }
.toc { position: sticky; top: 100px; align-self: start; font-size: .9rem; }
.toc-h { font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; color: var(--ink-3); margin: 8px 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover, .toc a.is-current { color: var(--teal); border-left-color: var(--teal); }
.post-layout:not(:has(.toc)) { grid-template-columns: minmax(0, 760px); }

.prose { font-size: 1.1rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2 { font: 450 clamp(1.6rem, 2.6vw, 2rem)/1.2 var(--serif); letter-spacing: -.01em; margin: 2.2em 0 .1em; }
.prose h3 { font: 500 1.3rem/1.3 var(--serif); margin: 1.8em 0 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 0; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--terra); }
.prose strong { font-weight: 600; }
.prose .ru { font-size: 1.04em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--terra); font: italic 400 1.2rem/1.55 var(--serif); color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: .97rem; line-height: 1.45; margin: 1.6em 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; border-bottom: 1.5px solid var(--ink); }
.prose td [lang="ru"], .prose td .ru { font-family: var(--serif); }
.prose tbody tr:hover { background: var(--card); }
.box { padding: 22px 26px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.box > * + * { margin-top: .7em; }
.box-title { font-weight: 600; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.box-tip { background: var(--teal-l); border-color: transparent; }
.box-warn { background: var(--terra-l); border-color: transparent; }
.box-warn .box-title { color: var(--terra-d); }
.ex-list { list-style: none !important; padding: 0 !important; display: grid; gap: 10px; }
.ex-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 12px 16px; background: var(--card); border-radius: 12px; border: 1px solid var(--line); margin: 0 !important; }
.ex-list li > [lang="ru"] { font-family: var(--serif); font-size: 1.08rem; color: var(--teal-d); }
.ex-list li > span:last-child { color: var(--ink-2); }
.wrong { color: var(--terra-d); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.right { color: var(--teal); font-weight: 600; }
.post-cta { margin-top: 3em !important; padding: 30px; border-radius: var(--r-lg); background: var(--teal-dd); color: #e9efe9; position: relative; overflow: hidden; }
.post-cta p { margin: 0 0 1.1em; }
.post-cta strong { color: #fff; }
.post-cta-ru { font: italic 400 2rem/1 var(--serif); color: #f0b48f; }
.author-box { margin-top: 2.4em !important; display: flex; gap: 20px; align-items: flex-start; padding-top: 28px; border-top: 1px solid var(--line); font-size: .97rem; }
.author-img { width: 96px; height: 120px; object-fit: cover; object-position: 50% 25%; border-radius: 14px; flex: none; background: #111; }
.author-name { font: 500 1.15rem var(--serif); margin: 0 0 .3em !important; }
.author-box p { margin: 0; color: var(--ink-2); }

/* ---------- Text blocks for inner pages ---------- */
.text-block > * + * { margin-top: 1em; }
.text-block p { margin: 0; color: var(--ink-2); }
.text-block h3 { font: 500 1.3rem/1.3 var(--serif); margin: 1.6em 0 0; color: var(--ink); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare > div { padding: 28px; border-radius: var(--r-lg); }
.compare .bad { background: var(--paper-2); }
.compare .good { background: var(--teal-d); color: #e9efe9; }
.compare h3 { font: 500 1.3rem var(--serif); margin: 0 0 1rem; }
.compare .good h3 { color: #fff; }
.compare ul { margin: 0; padding-left: 1.2em; display: grid; gap: .55em; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 28px 24px 28px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat strong { display: block; font: 400 clamp(2rem, 3.6vw, 2.8rem)/1 var(--serif); color: var(--teal); margin-bottom: 8px; }
.stat span { color: var(--ink-2); font-size: .95rem; }
.img-frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.quote-big { font: 400 clamp(1.6rem, 3vw, 2.3rem)/1.3 var(--serif); letter-spacing: -.01em; margin: 0; }
.quote-big em { color: var(--terra); }
.sign { margin-top: 1.4rem; font: italic 400 1.6rem var(--serif); color: var(--teal); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(246, 241, 231, .72); padding: 72px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { max-width: 36ch; margin: 1.2rem 0 0; }
.footer-ru { font: italic 400 1.2rem var(--serif); color: #f0b48f; }
.footer-h { font-weight: 600; color: var(--paper); margin: 4px 0 14px; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: rgba(246, 241, 231, .72); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(246, 241, 231, .12); font-size: .86rem; }
.footer-bottom p { margin: 0; }

/* ---------- Consent + WhatsApp ---------- */
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 18px 20px; font-size: .9rem; }
.consent p { margin: 0 0 12px; color: var(--ink-2); }
.consent-btns { display: flex; gap: 8px; justify-content: flex-end; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 55; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- 404 / thanks ---------- */
.center-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.center-page .display { font-size: clamp(5rem, 14vw, 9rem); color: var(--teal); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-list > li > a { padding: 10px 9px; font-size: .92rem; }
  .logo-sub { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-layout { grid-template-columns: minmax(0, 760px); }
  .toc { display: none; }
}
@media (max-width: 960px) {
  .burger { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 76px 0 0 0; background: var(--paper); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 18px;
    padding: 20px var(--gutter) 40px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-list > li > a { flex: 1; padding: 16px 0; font: 400 1.4rem var(--serif); border-radius: 0; }
  .nav-list > li > a:hover, .nav-list > li > a.is-active { background: none; color: var(--teal); }
  .has-sub > a::after { display: none; }
  .sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; }
  .sub-toggle svg { width: 14px; height: 14px; transition: transform .25s; }
  .sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .sub { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 12px; display: none; }
  .sub.is-open { display: block; }
  .sub a { padding: 8px 0; }
  .nav-cta { width: 100%; padding: 1em; }
  .hero-grid, .page-hero-grid, .split, .cta-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; margin: 0 auto; width: 100%; }
  .page-hero-aside { max-width: 560px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .grid-3, .post-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cando li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .header-in { height: 68px; }
  .nav { inset: 68px 0 0 0; }
  .logo-mark { width: 38px; height: 38px; font-size: 1.4rem; }
  .grid-2, .grid-3, .post-grid, .compare, .field-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li::before { margin-bottom: 14px; }
  .fc-1 { left: -2%; bottom: 8%; }
  .fc-2 { right: -2%; top: 6%; }
  .float-card { padding: 10px 14px; }
  .float-card .ru { font-size: 1.2rem; }
  .letters { gap: 10px; }
  .hero-proof { gap: 14px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-a { padding-right: 0; }
  .ex-list li { grid-template-columns: 1fr; gap: 2px; }
  .author-box { flex-direction: column; }
  .prose { font-size: 1.04rem; }
  .consent { left: 8px; right: 8px; bottom: 8px; max-width: none; }
  .wa-float { bottom: 90px; }
  .stat, .stat + .stat { padding: 20px 12px 20px 0; }
  .stat:nth-child(even) { padding-left: 16px; }
}
