/* ============================================================
   Easy Linguisie — стили лендинга репетитора
   Современный адаптивный дизайн: CSS-переменные, тёмная тема,
   плавные анимации, mobile-first вёрстка.
   ============================================================ */

/* --- Подключение фирменного шрифта Manrope (переменный, с кириллицей) --- */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-cyr.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-lat.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Дизайн-токены: цвета, тени, радиусы --- */
:root {
  --brand: #4F46E5;          /* индиго — основной акцент */
  --teal: #0D9488;           /* бирюзовый — второй акцент */
  --ink: #1E1B4B;            /* основной цвет текста */
  --muted: #6B7280;          /* приглушённый текст */
  --paper: #F7F7FB;          /* фон страницы */
  --card: #FFFFFF;           /* фон карточек */
  --line: #E5E7EB;           /* линии и границы */
  --grad: linear-gradient(135deg, var(--brand) 0%, var(--teal) 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(30, 27, 75, .08);
  --shadow-lg: 0 24px 60px rgba(30, 27, 75, .16);
  --header-h: 72px;
}

/* --- Автоматическая тёмная тема: подстройка под систему пользователя --- */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EEF0FF;
    --muted: #9CA3AF;
    --paper: #0F0E1E;
    --card: #18162E;
    --line: #2A2749;
    --shadow: 0 10px 30px rgba(0, 0, 0, .4);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  }
}

/* --- Сброс и база --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; display: inline-block; vertical-align: middle; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* Ссылка для перехода сразу к содержимому (доступность) */
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px;
}
.skip-link:focus { left: 8px; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* --- Флаги (SVG) --- */
.flag { width: 44px; height: 26px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.flag--sm { width: 30px; height: 18px; }

/* ============================================================
   Шапка сайта
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; }
.logo:hover { text-decoration: none; }
.logo__mark { width: 42px; height: 42px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; font-size: 1.15rem; }
.logo__text small { font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); font-weight: 600; font-size: .95rem; opacity: .85; }
.nav a:hover { opacity: 1; text-decoration: none; color: var(--brand); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(79, 70, 229, .35); }
.btn--primary:hover { box-shadow: 0 14px 30px rgba(79, 70, 229, .45); }
.btn--ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--sm { padding: 9px 18px; font-size: .9rem; }
/* Значки внутри кнопок (например, самолётик Telegram) */
.btn__icon { width: 18px; height: 18px; flex: none; }
.btn__icon--lg { width: 22px; height: 22px; }
.btn--lg { padding: 17px 34px; font-size: 1.08rem; }
/* ============================================================
   Главный экран (hero)
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 100px);
}
/* Декоративные цветные «пятна» на фоне */
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; pointer-events: none;
}
.hero::before { width: 480px; height: 480px; background: var(--brand); top: -160px; right: -120px; }
.hero::after { width: 380px; height: 380px; background: var(--teal); bottom: -140px; left: -100px; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; z-index: 1; }
.hero__flags { display: inline-flex; gap: 8px; margin-bottom: 18px; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 54ch; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: .85rem; font-weight: 600; color: var(--muted);
}
.chip b { color: var(--ink); }

/* Визуальная карточка с «пузырями» диалога */
/* Облачка — живой поток в колонку (никогда не накладываются) */
.hero__art { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.bubble {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 16px 20px; box-shadow: var(--shadow-lg);
  font-weight: 700; animation: float 6s ease-in-out infinite; max-width: 300px;
}
.bubble small { display: block; font-weight: 600; color: var(--muted); font-size: .75rem; margin-top: 4px; }
.bubble--1 { align-self: flex-start; animation-delay: 0s; }
.bubble--2 { align-self: flex-end; animation-delay: 1.2s; }
.bubble--3 { align-self: flex-end; animation-delay: 2.4s; }
.bubble--4 { align-self: flex-start; animation-delay: 3.6s; }
.bubble--5 { align-self: flex-end; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ============================================================
   Секции и карточки
   ============================================================ */
.section { padding: clamp(48px, 7vw, 90px) 0; }
.section--alt { background: var(--card); border-block: 1px solid var(--line); }
.section__head { max-width: 640px; margin-bottom: 40px; }
.section__head p { color: var(--muted); font-size: 1.05rem; }
.grid { display: grid; gap: 20px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 1.5rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ============================================================
   Цены
   ============================================================ */
.price-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow);
}
.price-card--hit { border: 2px solid var(--brand); box-shadow: 0 20px 50px rgba(79,70,229,.2); }
.price-card__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: .75rem; font-weight: 800;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap; letter-spacing: .03em;
}
.price-card__name { font-weight: 800; font-size: 1.05rem; margin-bottom: 6px; }
.price-card__value { font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-card__unit { color: var(--muted); font-size: .88rem; margin-bottom: 14px; }
.price-card ul { list-style: none; margin: 0 0 20px; padding: 0; color: var(--muted); font-size: .92rem; }
.price-card li { padding: 6px 0 6px 26px; position: relative; }
.price-card li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.price-card .btn { margin-top: auto; }
/* ============================================================
   Шаги обучения, экзамены, блог
   ============================================================ */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step; content: '0' counter(step);
  font-size: 2.6rem; font-weight: 800; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .5;
  display: block; margin-bottom: 8px;
}
.exam-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.exam-tag {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand); font-weight: 700; font-size: .85rem;
  padding: 6px 14px; border-radius: 999px;
}

/* Карточки блога */
.post-card { display: flex; flex-direction: column; gap: 10px; }
.post-card__meta { display: flex; gap: 10px; align-items: center; font-size: .8rem; color: var(--muted); font-weight: 600; }
.post-card__tag { background: color-mix(in srgb, var(--teal) 12%, transparent); color: var(--teal); padding: 3px 10px; border-radius: 999px; }
.post-card h3 { font-size: 1.12rem; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--brand); text-decoration: none; }
.post-card p { font-size: .92rem; margin: 0; }
.post-card__more { font-weight: 700; font-size: .9rem; margin-top: auto; }

/* ============================================================
   FAQ (аккордеон на <details> без JS)
   ============================================================ */
.faq { max-width: 780px; margin-inline: auto; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--brand); transition: transform .25s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__body { padding: 0 22px 20px; color: var(--muted); }
.faq .faq__body :last-child { margin-bottom: 0; }

/* ============================================================
   Форма заявки
   ============================================================ */
.contact { position: relative; overflow: hidden; }
.contact__wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; position: relative; z-index: 1; }
.contact__aside h2 { margin-bottom: 14px; }
.contact__aside p { color: var(--muted); }
.contact__channels { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.channel {
  display: flex; align-items: center; gap: 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px;
  color: var(--ink); font-weight: 700; transition: transform .2s, border-color .2s;
}
.channel:hover { text-decoration: none; transform: translateX(4px); border-color: var(--brand); }
.channel__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #fff; flex: none; }
.channel small { display: block; font-weight: 600; color: var(--muted); font-size: .78rem; }

.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.form-row .req { color: var(--de-red); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  font: inherit; transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79,70,229,.12);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--muted); margin-bottom: 18px; }
.form-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
/* Скрытое поле от ботов (заполняется только роботами) */
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; }
.form-status { display: none; margin-top: 16px; padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; }
.form-status--ok { display: block; background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal); }
.form-status--err { display: block; background: color-mix(in srgb, var(--de-red) 12%, transparent); color: #B91C1C; }
/* ============================================================
   Подвал, cookie-баннер, служебные страницы
   ============================================================ */
.site-footer { background: var(--ink); color: #C7CBE8; padding: 52px 0 30px; margin-top: 40px; }
.site-footer .logo, .site-footer .logo__text { color: #fff; }
.site-footer .logo__text small { color: #9CA3FF; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer__title { font-size: .95rem; color: #fff; margin-bottom: 14px; }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 9px; }
.footer__list a { color: #C7CBE8; font-size: .93rem; }
.footer__list a:hover { color: #fff; }
.footer__note { font-size: .9rem; margin: 12px 0 16px; }
.footer__legal { font-size: .8rem; opacity: .75; margin: 0; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
  margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14);
}
.footer__bottom a { color: #C7CBE8; font-size: .88rem; }
.footer__bottom a:hover { color: #fff; }

/* Cookie-баннер */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 90;
  max-width: 560px; margin-inline: auto;
  display: flex; gap: 16px; align-items: center; justify-content: space-between;
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px 20px; font-size: .88rem;
}
.cookie-banner p { margin: 0; }
.cookie-banner[hidden] { display: none; }

/* ============================================================
   Типографика внутренних страниц (блог, документы)
   ============================================================ */
.page-head { padding: clamp(36px, 6vw, 64px) 0 8px; }
.page-head h1 { margin-bottom: 10px; }
.page-head .page-head__meta { color: var(--muted); font-size: .9rem; display: flex; gap: 14px; flex-wrap: wrap; }
.prose { max-width: 760px; padding-bottom: 60px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; color: var(--ink); }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  margin: 1.2em 0; padding: 14px 20px; border-left: 4px solid var(--teal);
  background: color-mix(in srgb, var(--teal) 8%, transparent); border-radius: 0 12px 12px 0; color: var(--ink);
}
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: color-mix(in srgb, var(--brand) 8%, transparent); }
.prose .cta-box {
  margin-top: 2em; padding: 22px 26px; border-radius: var(--radius);
  background: var(--grad); color: #fff; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.prose .cta-box p { margin: 0; font-weight: 700; }
.prose .cta-box .btn { background: #fff; color: var(--brand); box-shadow: none; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; max-width: 760px; padding-bottom: 60px; font-weight: 700; }

/* Страница 404 */
.notfound { text-align: center; padding: clamp(60px, 12vw, 140px) 20px; }
.notfound__code { font-size: clamp(5rem, 18vw, 10rem); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.notfound p { color: var(--muted); max-width: 46ch; margin-inline: auto; }
.notfound__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ============================================================
   Анимация появления при прокрутке и адаптивность
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bubble { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Планшеты */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__art { display: none; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .price-cards { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact__wrap { grid-template-columns: 1fr; }
}
/* Телефоны */
@media (max-width: 720px) {
  body { font-size: 16px; overflow-x: hidden; }
  /* На телефоне в шапке остаются только логотип и бургер:
     кнопки-CTA дублируются в меню и в блоке героя */
  .header__actions .btn { display: none; }
  /* Прижать бургер к правому краю — выталкивающих элементов в потоке больше нет */
  .header__actions { margin-left: auto; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; gap: 0; background: var(--card);
    border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
    transform: translateY(-130%); transition: transform .3s ease; margin: 0;
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:last-child { border-bottom: 0; }
  .burger { display: block; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .grid--4, .grid--3, .price-cards { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .hero__cta .btn { width: 100%; }
  .cookie-banner { flex-direction: column; text-align: center; }
  .container { width: calc(100% - 32px); }
}
/* ============================================================
   Фильтр рубрик блога (на главной) и подзаголовок в ценах
   ============================================================ */
.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-chip {
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  font: inherit; font-weight: 700; font-size: .88rem;
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.filter-chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.filter-chip.is-active {
  background: var(--grad); border-color: transparent; color: #fff;
  box-shadow: 0 8px 20px rgba(79, 70, 229, .3);
}
.prices__subtitle { margin: 42px 0 18px; font-size: 1.2rem; }
/* ============================================================
   Контакты в подвале со значками + значки каналов на главной
   ============================================================ */
.f-contact { display: flex; align-items: center; gap: 12px; color: #C7CBE8; margin-bottom: 12px; }
.f-contact:hover { text-decoration: none; color: #fff; }
.f-contact:hover .f-ico { transform: scale(1.1); }
.f-ico {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, #4F46E5, #0D9488); transition: transform .2s;
}
.f-ico svg { width: 19px; height: 19px; }
.f-ico--tg { background: #FFFFFF; }
.f-ico--max { background: #FFFFFF; }
.f-contact__text { display: flex; flex-direction: column; font-size: .92rem; font-weight: 700; line-height: 1.3; }
.f-contact__text small { font-weight: 600; font-size: .75rem; color: #9AA0C8; }
.channel__icon svg { width: 20px; height: 20px; }
.channel__icon--tg { background: #FFFFFF; }
.channel__icon--max { background: #FFFFFF; }
/* ============================================================
   Ошибки валидации формы и экран успешной отправки
   ============================================================ */
.form-row input.is-invalid, .form-row select.is-invalid, .form-row textarea.is-invalid {
  border-color: #DC2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, .1);
}
.form-consent input.is-invalid { outline: 2px solid #DC2626; outline-offset: 2px; }
.field-error-msg { color: #DC2626; font-size: .8rem; font-weight: 600; margin-top: 5px; }
.form-success { text-align: center; padding: 26px 10px; }
.form-success__icon {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #0D9488); color: #fff;
  font-size: 2rem; font-weight: 800; display: grid; place-items: center;
}
.form-success h3 { margin-bottom: 6px; }
.form-success p { color: var(--muted); margin-bottom: 18px; }
.form-success[hidden] { display: none; }
/* Официальный логотип MAX (цветной, на белой подложке) */
.max-logo { width: 22px; height: 22px; display: block; }
.f-ico .max-logo { width: 24px; height: 24px; }
/* Официальный логотип Telegram (цветной, на белой подложке) */
.tg-logo { width: 22px; height: 22px; display: block; }
.f-ico .tg-logo { width: 24px; height: 24px; }
/* Ссылка «показать все статьи» под сеткой блога */
.blog-show-all { text-align: center; margin-top: 28px; }
.form-success__hint { font-size: .85rem; color: var(--muted); }
.form-success__hint a { color: var(--brand); font-weight: 700; }
/* Атрибут hidden всегда сильнее любых display из классов */
[hidden] { display: none !important; }
/* Чтобы липкая шапка не перекрывала список при прокрутке к нему */
#blog-grid { scroll-margin-top: 90px; }

/* Мобильная адаптация: таблицы прокручиваются, длинные слова переносятся */
.prose table { display: block; overflow-x: auto; }
.prose, .card, .price-card { overflow-wrap: break-word; }

/* Перенос длинных слов с дефисом (конфиденциальности и т.п.) на мобильных */
.form-consent__text, .prose { hyphens: auto; }