/* СМАРТДЕЛО — ndfl-help.ru
   Палитра взята из логотипа: тёмный петроль + бирюза. */
:root {
  --bg: #F1F5F6;
  --surface: #FFFFFF;
  --ink: #0E1F26;
  --muted: #4A5D66;
  --line: #D2DDE0;
  --accent: #007C84;
  --accent-hover: #00626A;
  --bright: #02CDC9;
  --dark: #0E1F26;
  --dark-2: #16313B;
  --dark-line: #2A4651;
  --dark-text: #E6EEF0;
  --dark-muted: #A9BCC2;
  --ok-bg: #DDF3F1;
  --ok-text: #0B4F52;
  --err-bg: #FBE4E1;
  --err-text: #8A2B1E;

  --font-display: 'Oswald', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --font-body: 'Golos Text', 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, 'Courier New', monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 5vw, 48px);
  --section: clamp(64px, 9vw, 104px);
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--bright); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: 0.005em; }
h1 { font-size: clamp(36px, 5.2vw, 64px); text-transform: uppercase; }
h2 { font-size: clamp(30px, 3.6vw, 44px); text-transform: uppercase; }
h3 { font-size: 22px; font-family: var(--font-body); font-weight: 600; line-height: 1.3; }
p { margin: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--white { background: var(--surface); }
.section--dark { background: var(--dark); color: var(--dark-text); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 620px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 100; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: background .15s; }
.btn--primary { background: var(--accent); color: #FFFFFF; }
.btn--primary:hover { background: var(--accent-hover); color: #FFFFFF; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #FFFFFF; }
.btn--light { background: var(--dark-text); color: var(--ink); }
.btn--light:hover { background: #FFFFFF; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Шапка */
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(241, 245, 246, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo img { width: 44px; height: 44px; }
.logo__name { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: 0.02em; line-height: 1; }
.logo__sub { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 16px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav .btn { min-height: 44px; padding: 0 20px; color: #FFFFFF; }
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; border: 0; }
  .nav.is-open { display: flex; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; }
}

/* Первый экран */
.hero { padding-block: clamp(48px, 7vw, 88px) var(--section); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__text { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 20px 40px; padding-top: 22px; border-top: 1px solid var(--line); list-style: none; margin: 0; padding-left: 0; }
.facts li { display: flex; flex-direction: column; }
.facts b { font-family: var(--font-display); font-size: 24px; font-weight: 500; line-height: 1.2; }
.facts span { font-size: 14px; color: var(--muted); }
.calendar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.calendar__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calendar__head strong { font-size: 17px; }
.calendar ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.calendar li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); align-items: baseline; }
.calendar time { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--accent); }
.calendar li span { font-size: 15px; }
.calendar__rate { padding: 16px; border-radius: 12px; background: var(--bg); display: flex; flex-direction: column; gap: 2px; }
.calendar__rate b { font-family: var(--font-display); font-size: 21px; font-weight: 500; }
.small { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); } }

/* Сетки */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head p { max-width: 460px; }

/* Шаги */
.step { padding-top: 20px; border-top: 2px solid var(--ink); display: flex; flex-direction: column; gap: 10px; }
.step__n { font-family: var(--font-mono); font-size: 14px; color: var(--muted); }

/* О компании */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__visual { aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--radius); background: var(--dark); color: var(--dark-text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; }
/* Исходник логотипа 288 px: показываем не крупнее 160 px, чтобы на Retina картинка оставалась чёткой */
.about__visual img { width: 160px; height: 160px; }
.about__name { font-family: var(--font-display); font-weight: 600; font-size: 34px; letter-spacing: 0.03em; }
.about__tags { font-family: var(--font-mono); font-size: 13px; color: var(--dark-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; }
@media (max-width: 900px) { .about { grid-template-columns: minmax(0, 1fr); } .about__visual { aspect-ratio: auto; padding-block: 40px; } .about__visual img { width: 120px; height: 120px; } }

/* Вспомогательные классы (вместо inline-стилей — для строгой CSP) */
.section-bottom { padding-bottom: var(--section); }
.h2-gap { margin-bottom: 36px; }
.text-lg { font-size: 18px; }
.link-strong { font-weight: 600; }
.list-reset { list-style: none; margin: 0; padding: 0; }
.btn--start { align-self: flex-start; }
.h1-sm { font-size: clamp(32px, 4.4vw, 52px); }
.h1-doc { font-size: clamp(30px, 4vw, 44px); }
.page-head--tall { padding-block: 96px; }
.topic { padding-top: 20px; border-top: 2px solid var(--accent); display: flex; flex-direction: column; gap: 10px; }
.topic p { color: #33454D; }
.blog-intro { margin-top: var(--section); }
.page-head--tall p:not(.lead):not(.eyebrow) { max-width: 680px; color: #33454D; }

/* Карточки услуг */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card p { color: var(--muted); font-size: 16px; flex-grow: 1; }
.card__price { font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.card svg { width: 32px; height: 32px; stroke: var(--accent); }

/* Тёмная полоса: брокеры */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.section--dark .muted, .section--dark p { color: var(--dark-muted); }
.kv { list-style: none; margin: 0; padding: 0; }
.kv li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--dark-line); font-size: 16px; }
.kv li span:first-child { color: var(--dark-muted); }
.brokers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.brokers li { padding: 18px 20px; border-radius: 12px; background: var(--dark-2); border: 1px solid var(--dark-line); font-weight: 500; }
.brokers li small { display: block; font-weight: 400; font-size: 13px; color: var(--dark-muted); }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .brokers { grid-template-columns: minmax(0, 1fr); } }

/* Процесс */
.proc { display: flex; flex-direction: column; gap: 14px; }
.proc__top { display: flex; align-items: center; gap: 12px; }
.proc__n { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--accent); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 18px; }
.proc__line { flex-grow: 1; height: 1px; background: var(--line); }

/* Статьи */
.post { background: var(--bg); border-radius: 14px; padding: 26px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 14px; min-height: 220px; transition: transform .15s; }
.section--white .post { background: var(--bg); }
.post--card { background: var(--surface); border: 1px solid var(--line); }
.post:hover { color: var(--ink); transform: translateY(-2px); }
.post__cat { align-self: flex-start; padding: 4px 10px; border-radius: 6px; background: var(--surface); font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.post--card .post__cat { background: var(--bg); }
.post__title { font-size: 20px; font-weight: 600; line-height: 1.35; }
.post__text { font-size: 16px; color: var(--muted); flex-grow: 1; }
.post__meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .post { transition: none; } .post:hover { transform: none; } }

/* Отзывы */
.review { margin: 0; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 18px; }
.review blockquote { margin: 0; font-size: 18px; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 48px; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; font-size: 19px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 12px; color: #33454D; max-width: 680px; }
@media (max-width: 900px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* Форма */
.lead-form { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; }
.checks li::before { content: '✓'; color: var(--accent); font-weight: 700; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-size: 15px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 10px; border: 1px solid #A9B9BF; font: inherit; font-size: 16px; background: var(--surface); color: var(--ink); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 2px solid var(--bright); outline-offset: 0; }
.opt { color: var(--muted); font-weight: 400; }
.agree { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.agree input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form__status { padding: 14px 16px; border-radius: 10px; font-size: 15px; }
.form__status.is-ok { background: var(--ok-bg); color: var(--ok-text); }
.form__status.is-err { background: var(--err-bg); color: var(--err-text); }
.form button[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 900px) { .lead-form { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .form__row { grid-template-columns: minmax(0, 1fr); } }

/* Подвал */
.footer { background: var(--dark); color: var(--dark-text); padding-block: 64px 40px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.5fr)); gap: 32px; }
.footer h2 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--dark-muted); font-weight: 400; margin-bottom: 12px; text-transform: uppercase; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer a { color: var(--dark-text); text-decoration: none; }
.footer a:hover { color: var(--bright); }
.footer .logo { color: var(--dark-text); }
.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__about { color: var(--dark-muted); font-size: 15px; }
.footer__contacts { color: var(--dark-muted); }
.footer__note { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--dark-line); font-size: 13px; color: var(--dark-muted); max-width: 960px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* Страницы блога и документов */
.crumbs { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: '/'; margin-right: 8px; }
.crumbs a { color: var(--muted); }
.page-head { padding-block: 48px 40px; display: flex; flex-direction: column; gap: 18px; max-width: 860px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters button { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid #A9B9BF; background: transparent; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.cta-band { margin-block: 24px var(--section); padding: clamp(28px, 4vw, 48px); border-radius: 20px; background: var(--dark); color: var(--dark-text); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band strong { font-family: var(--font-display); font-size: 28px; font-weight: 500; text-transform: uppercase; display: block; }
.cta-band p { color: var(--dark-muted); }

.article-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: var(--section); }
.prose { font-size: 18px; max-width: 720px; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 20px; scroll-margin-top: 96px; }
.prose ul, .prose ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.prose .note { padding: 20px 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.table-wrap th, .table-wrap td { padding: 12px 16px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.table-wrap thead th { border-top: 0; color: var(--muted); font-weight: 500; font-size: 14px; }
.toc { position: sticky; top: 100px; padding: 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.author { display: flex; align-items: center; gap: 14px; }
.author img { width: 44px; height: 44px; }
.author span { display: block; font-size: 14px; color: var(--muted); font-family: var(--font-mono); }
.inline-cta { padding: 32px; border-radius: 16px; background: var(--dark); color: var(--dark-text); display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.inline-cta strong { font-family: var(--font-display); font-size: 24px; font-weight: 500; text-transform: uppercase; }
.inline-cta p { color: var(--dark-muted); }
@media (max-width: 900px) { .article-layout { grid-template-columns: minmax(0, 1fr); } .toc { position: static; order: -1; } }

.doc { max-width: 820px; padding-bottom: var(--section); font-size: 16px; display: flex; flex-direction: column; gap: 14px; }
.doc h2 { font-size: 22px; text-transform: none; font-family: var(--font-body); margin-top: 16px; }
.doc ul { margin: 0; padding-left: 22px; }
.placeholder-note { padding: 14px 18px; border-radius: 10px; background: #FFF4D6; color: #6B4A00; font-size: 14px; }
.footer__hint { display: block; font-size: 13px; color: var(--dark-muted); }

/* ---- Тематика «Налоги частного капитала» ---- */
.calendar li { grid-template-columns: 104px minmax(0, 1fr); }
.calendar time { font-size: 21px; }
.calendar__rate b { font-size: 26px; }

.about2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.stats { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stats li { display: flex; flex-direction: column; }
.stats b { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; color: var(--accent); line-height: 1.2; }
.stats span { font-size: 14px; color: var(--muted); }
.team-title { font-family: var(--font-display); text-transform: uppercase; font-size: 30px; margin: clamp(48px, 6vw, 72px) 0 24px; }
.person { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.person img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); background: #E4EBED; }
.person figcaption { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.person figcaption b { font-size: 21px; }
.person__role { color: var(--accent); font-weight: 500; }
.card__n { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.card__price { padding-top: 14px; border-top: 1px solid var(--line); font-size: 19px; }
.contacts { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.contacts__phone { font-weight: 600; font-size: 18px; color: var(--ink); text-decoration: none; }
.nav__phone { font-weight: 600; white-space: nowrap; }
@media (max-width: 900px) { .about2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .stats { grid-template-columns: minmax(0, 1fr); } }

/* Шапка: без переносов; телефон прячем на средних экранах, меню-гамбургер до 1024 px */
.nav a { white-space: nowrap; }
@media (max-width: 1240px) { .nav { gap: 20px; } .nav__phone { display: none; } }
@media (min-width: 901px) and (max-width: 1024px) {
  .nav { display: none; position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; border: 0; }
  .nav.is-open { display: flex; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; }
}
@media (max-width: 1024px) { .nav.is-open .nav__phone { display: block; } }

/* ---- Ссылка на чат с микроподсказкой ---- */
.chat-link { position: relative; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.chat-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.chat-link::after {
  content: attr(data-hint); position: absolute; left: 0; bottom: calc(100% + 8px); transform: translateY(4px);
  padding: 5px 9px; border-radius: 6px; background: var(--ink); color: #FFFFFF; font-size: 12px; font-weight: 400; line-height: 1.3;
  white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s, transform .15s; z-index: 5;
}
.chat-link:hover::after, .chat-link:focus-visible::after { opacity: 1; transform: translateY(0); }
.footer .chat-link { font-weight: 400; color: var(--dark-text); }
.footer .chat-link::after { background: var(--dark-text); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .chat-link::after { transition: none; } }

/* ---- Действия после блока «Услуги» ---- */
.services-cta { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* ---- Обязательные поля ---- */
.req { color: var(--accent); font-weight: 600; }
.form__note { font-size: 13px; color: var(--muted); margin: -6px 0 0; }
.field input[aria-invalid="true"] { border-color: var(--err-text); }

/* ---- Всплывающее уведомление ---- */
.toast {
  position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 100;
  max-width: 360px; display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 16px 16px 18px; border-radius: 14px; background: var(--dark); color: var(--dark-text);
  box-shadow: 0 12px 32px rgba(14, 31, 38, .28); font-size: 15px; line-height: 1.45;
  opacity: 0; transform: translateY(12px); transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast__icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--bright); margin-top: 1px; }
.toast__text { flex-grow: 1; }
.toast__close { flex-shrink: 0; width: 28px; height: 28px; margin: -4px -6px 0 0; border: 0; border-radius: 8px; background: transparent; color: var(--dark-muted); font-size: 20px; line-height: 1; cursor: pointer; }
.toast__close:hover { color: #FFFFFF; background: var(--dark-2); }
@media (max-width: 560px) { .toast { left: 16px; right: 16px; max-width: none; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* ---- Уведомление о cookies ---- */
.cookie {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 90;
  width: min(960px, calc(100% - 32px)); box-sizing: border-box;
  display: flex; align-items: center; gap: 16px 24px;
  padding: 16px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(14, 31, 38, .18);
}
.cookie[hidden] { display: none; }
.cookie__text { margin: 0; flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 1.5; color: #33454D; }
.cookie__text a { white-space: nowrap; font-weight: 500; }
.cookie__btn { flex-shrink: 0; min-height: 44px; padding: 0 28px; }
@media (max-width: 640px) {
  .cookie { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .cookie__text { font-size: 13px; }
  .cookie__btn { width: 100%; }
}
/* пока плашка открыта, всплывающее уведомление о заявке поднимается над ней */
.cookie-open .toast { bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 640px) { .cookie-open .toast { bottom: calc(200px + env(safe-area-inset-bottom, 0px)); } }
/* место под плашку, чтобы она не закрывала конец страницы */
body.cookie-open { padding-bottom: 104px; }
@media (max-width: 640px) { body.cookie-open { padding-bottom: 196px; } }
