/* ---------- Шрифты (локально, без Google Fonts) ---------- */
@font-face { font-family: "Manrope"; src: url(../fonts/manrope-cyrillic.woff2) format("woff2"); font-weight: 400 700; 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-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; 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: "Playfair Display"; src: url(../fonts/playfairdisplay-cyrillic.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; src: url(../fonts/playfairdisplay-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; 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; }

/* ---------- Токены ---------- */
:root {
  --navy: #17365d;
  --navy-dark: #0f2643;
  --navy-soft: rgba(23, 54, 93, .08);
  --ink: #404040;
  --ink-strong: #1d1d1d;
  --muted: #6b6b6b;
  --bg: #fff;
  --tint: #f7f7f7;
  --line: #e5e3df;
  --dark: #0f0f0f;
  --danger: #b3261e;
  --ok: #2e7d4f;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --radius: 4px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --header-h: 72px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font: 400 16px/1.6 var(--sans); color: var(--ink); background: var(--bg); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.15; margin: 0 0 .5em; overflow-wrap: break-word; hyphens: manual; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 16px; background: var(--navy); color: #fff; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 860px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 28px;
  font: 500 15px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  color: #fff; background: var(--navy); border: 1px solid var(--navy); border-radius: var(--radius);
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: #fff; color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--outline { background: transparent; color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--wide { width: 100%; }

/* ---------- WhatsApp ---------- */
.wa { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.wa svg { flex: none; color: #25d366; }
.wa:hover { text-decoration: underline; }
.wa--light { color: #fff; font-weight: 600; font-size: 18px; }
.wa--light svg { color: #fff; }
.wa--btn { min-height: 44px; padding: 0 16px; font-size: 15px; font-weight: 600; color: #fff; background: #1fa855; border-radius: var(--radius); }
.wa--btn svg { color: #fff; }
.wa--btn:hover { background: #178a45; text-decoration: none; }
.contacts__list .wa--btn, .contacts__list .wa--btn:hover { color: #fff; text-decoration: none; }
.tg svg { color: #229ed9; }
.tg.wa--light svg { color: #fff; }
.tg.wa--btn { background: #229ed9; }
.tg.wa--btn svg { color: #fff; }
.tg.wa--btn:hover { background: #1b84b8; }
.msgr, .nav__msgr { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: #fff; border-bottom: 1px solid var(--line);
  transition: background-color .25s, border-color .25s;
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { font: 600 20px/1 var(--serif); color: var(--navy); text-decoration: none; white-space: nowrap; }
.logo--light { color: #fff; }
.nav { margin-right: auto; }
.nav__list { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.nav__list a { color: var(--ink); text-decoration: none; font-size: 15px; }
.nav__list a:hover { color: var(--navy); }
.nav__phone, .nav__msgr { display: none !important; }
.header__actions { display: flex; align-items: center; gap: 14px; }
.header__phone { color: var(--ink-strong); font-weight: 600; text-decoration: none; white-space: nowrap; }
.lang { display: inline-flex; flex: none; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.lang a { display: grid; place-items: center; min-width: 34px; min-height: 32px; font-size: 12px; font-weight: 600; color: var(--ink); text-decoration: none; transition: background-color .2s, color .2s; }
.lang a:hover { color: var(--navy); background: var(--tint); }
.lang a[aria-current] { color: #fff; background: var(--navy); }
.header--over:not(.is-scrolled) .lang { border-color: rgba(255,255,255,.55); }
.header--over:not(.is-scrolled) .lang a { color: #fff; }
.header--over:not(.is-scrolled) .lang a:hover { background: rgba(255,255,255,.16); }
.header--over:not(.is-scrolled) .lang a[aria-current] { color: var(--navy); background: #fff; }

/* шапка поверх тёмного первого экрана, пока страницу не прокрутили */
.header--over:not(.is-scrolled) { position: fixed; inset: 0 0 auto; background: transparent; border-color: transparent; }
.header--over:not(.is-scrolled) .logo,
.header--over:not(.is-scrolled) .nav__list a,
.header--over:not(.is-scrolled) .header__phone { color: #fff; }
.header--over:not(.is-scrolled) .burger span { background: #fff; }
.header--over:not(.is-scrolled) .header__actions .btn { background: #fff; color: var(--navy); border-color: #fff; }
.header--over.is-scrolled { position: fixed; inset: 0 0 auto; }

.burger { display: none; width: 44px; height: 44px; padding: 11px 10px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; height: 2px; margin: 4px 0; background: var(--ink-strong); transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .header__phone { display: none; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 49; margin: 0;
    padding: 24px var(--gutter) 40px; background: #fff; overflow-y: auto;
    display: none; flex-direction: column; gap: 24px;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: 14px 0; font-size: 20px; color: var(--ink) !important; border-bottom: 1px solid var(--line); }
  .nav__phone { display: block !important; font: 600 20px/1.2 var(--sans); color: var(--navy); text-decoration: none; }
  .nav__msgr { display: flex !important; }
  .header__actions { margin-left: auto; gap: 8px; }
  .header--over:has(.nav.is-open) { background: #fff; }
  .header--over:has(.nav.is-open) .logo { color: var(--navy); }
  .header--over:has(.nav.is-open) .burger span { background: var(--ink-strong); }
}
@media (max-width: 520px) {
  .header__actions .btn { display: none; }
}
@media (max-width: 400px) {
  .header__inner { gap: 8px; }
  .header__actions { gap: 4px; }
  .logo { font-size: 16px; }
  .lang a { min-width: 30px; min-height: 36px; }
}

/* ---------- Первый экран ---------- */
.hero { position: relative; isolation: isolate; min-height: min(100svh, 860px); display: flex; align-items: center; background: var(--dark); color: #fff; }
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.85) 100%); }
.hero__inner { padding-top: calc(var(--header-h) + 48px); padding-bottom: 64px; }
.hero__tag { margin-bottom: 20px; font-size: 15px; font-weight: 300; letter-spacing: .02em; opacity: .85; }
.hero__title { max-width: 760px; margin-bottom: 24px; color: #fff; font-size: clamp(36px, 7vw, 72px); font-weight: 600; }
.hero__lead { max-width: 560px; margin-bottom: 36px; font-size: clamp(16px, 2vw, 19px); opacity: .9; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-bottom: 56px; }
.hero__call { color: #fff; font-weight: 600; font-size: 18px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); }
.hero__call:hover { border-color: #fff; }
.hero__steps { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 0; padding: 0; list-style: none; font-size: 15px; font-weight: 600; }
.hero__steps li { display: flex; align-items: center; gap: 10px; }
.hero__steps li::before { content: ""; flex: none; width: 20px; height: 20px; background: url(../img/icon-hero-1.svg) center / contain no-repeat; }

/* ---------- Лента-объявление ---------- */
.ribbon { display: block; padding: 14px 0; background: var(--navy); color: #fff; font-size: 14px; text-align: center; text-decoration: none; }
.ribbon:hover { background: var(--navy-dark); }

/* ---------- Секции ---------- */
.section { padding: var(--section) 0; }
.section--tint { background: var(--tint); }
.section__head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__title { font-size: clamp(32px, 5vw, 48px); }
.section__subtitle { margin: clamp(56px, 7vw, 88px) 0 32px; font-size: clamp(26px, 3.5vw, 36px); }
.section__lead { font-size: 17px; }
.note { margin: 40px 0 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); }

/* ---------- Карточки услуг ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--tint); border-radius: var(--radius); overflow: hidden; }
.card__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 28px; }
.card__title { font-size: clamp(24px, 2.4vw, 28px); }
.card__text { flex: 1; margin-bottom: 24px; }
.card .btn { align-self: flex-start; }

.card__link { display: block; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--navy); }
/* Фото кота с монитором показываем целиком, без обрезки */
img[src$="/svc-it-full.webp"] { aspect-ratio: 719 / 1280; }
.split > img[src$="/svc-it-full.webp"] { max-width: 400px; justify-self: center; }
.card__img[src$="/svc-it-full.webp"] { max-width: 400px; margin-inline: auto; }
@media (min-width: 720px) {
  .card--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .card--wide .card__link { flex: 0 0 auto; }
  .card--wide .card__img { width: auto; height: 480px; }
  .card--wide .card__body { align-self: stretch; justify-content: center; }
  .card--wide .card__text { flex: none; }
  .card--wide .card__body { padding: 36px; }
  .card--wide .card__text { max-width: 62ch; }
}

/* ---------- Внутренние страницы ---------- */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(40px, 6vw, 64px); background: var(--tint); border-bottom: 1px solid var(--line); }
.page-hero__title { max-width: 820px; margin-bottom: 20px; font-size: clamp(28px, 7.5vw, 56px); }
.page-hero__lead { max-width: 680px; margin-bottom: 0; font-size: clamp(16px, 2vw, 19px); }
.page-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.page-hero__call { color: var(--ink-strong); font-weight: 600; font-size: 18px; text-decoration: none; border-bottom: 1px solid var(--line); }
.page-hero__call:hover { border-color: var(--navy); color: var(--navy); }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 24px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: #b5b2ac; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }

.section--first { padding-top: clamp(48px, 7vw, 88px); }
.muted { color: var(--muted); font-size: 15px; }

.ticks { display: grid; gap: 14px; margin: 8px 0 28px; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 40px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps__item { position: relative; padding-top: 56px; counter-increment: step; }
.steps__item::before { content: "0" counter(step); position: absolute; top: 0; left: 0; font: 500 40px/1 var(--serif); color: var(--navy); }
.steps__title { font-size: 22px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.cta { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.cta__phone { display: block; margin-top: 8px; font-size: clamp(24px, 3vw, 30px); font-weight: 600; color: var(--ink-strong); text-decoration: none; }
.cta__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 16px; }
.cta__mail { color: var(--navy); }
.cta__form { padding: clamp(24px, 4vw, 40px); background: #fff; border-radius: var(--radius); }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } .cta__form { padding: 24px 20px; } }

.prose { font-size: 16px; line-height: 1.7; }
.prose h2 { margin: 2em 0 .6em; font-size: clamp(22px, 3vw, 28px); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin: 0 0 .9em; }
.prose ul { padding-left: 1.4em; }
.prose a { overflow-wrap: anywhere; }

.notfound { text-align: center; }
.notfound__code { margin: 0; font: 500 clamp(80px, 16vw, 140px)/1 var(--serif); color: var(--navy); }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ---------- О компании ---------- */
.section__title + .why { margin-top: 40px; }
.note--left { margin-top: 24px; text-align: left; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: center; }
.facts__num { display: block; font: 500 clamp(40px, 6vw, 56px)/1 var(--serif); color: var(--navy); }
.facts__label { display: block; margin-top: 8px; color: var(--muted); }
.leader { display: grid; grid-template-columns: minmax(200px, 360px) 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.leader__photo img, .leader__initials { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius); object-fit: cover; }
.leader__initials { display: grid; place-items: center; background: var(--navy); color: #fff; font: 500 120px/1 var(--serif); }
.leader__name { margin: 0; font: 500 26px/1.3 var(--serif); color: var(--ink-strong); }
.leader__role { color: var(--muted); }
.leader__quote { margin: 24px 0; padding-left: 20px; border-left: 3px solid var(--navy); font: italic 400 19px/1.55 var(--serif); color: var(--ink-strong); }
.leader__quote p { margin: 0; }
@media (max-width: 760px) { .leader { grid-template-columns: 1fr; } .leader__photo { max-width: 280px; } }
.requisites { display: grid; grid-template-columns: max-content 1fr; gap: 12px 32px; margin: 32px 0 0; }
.requisites dt { color: var(--muted); }
.requisites dd { margin: 0; color: var(--ink-strong); }
.requisites a { color: inherit; }
@media (max-width: 560px) { .requisites { grid-template-columns: 1fr; gap: 2px; } .requisites dd { margin-bottom: 12px; } }

/* ---------- Блог ---------- */
.section__head--row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; max-width: none; }
.link-more { font-weight: 600; text-decoration: none; }
.link-more:hover { text-decoration: underline; }
.empty { color: var(--muted); }
.ru-note { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; margin: 0 0 24px; padding: 8px 14px 8px 8px; font-size: 14px; line-height: 1.4; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.ru-note b { flex: none; display: grid; place-items: center; min-width: 30px; height: 24px; font-size: 11px; font-weight: 600; color: #fff; background: var(--navy); border-radius: 3px; }

.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.section:not(.section--tint) .post-card { background: var(--tint); border-color: transparent; }
.post-card__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card__body { padding: 24px 24px 28px; }
.post-card__meta { margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.post-card__title { font-size: 22px; }
.post-card__title a { color: inherit; text-decoration: none; }
.post-card__title a:hover { color: var(--navy); }
.post-card__text { margin: 0; font-size: 15px; }

.epigraph { max-width: 720px; margin: 0 0 32px; }
.epigraph blockquote { margin: 0; padding-left: 24px; border-left: 3px solid var(--navy); font: italic 400 clamp(18px, 2.2vw, 22px)/1.5 var(--serif); color: var(--ink-strong); }
.epigraph p { margin: 0; }
.author { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; }
.author__photo { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; }
.author__photo--initials { display: grid; place-items: center; background: var(--navy); color: #fff; font: 500 28px/1 var(--serif); }
.author__name { margin: 0; font-weight: 600; color: var(--ink-strong); }
.author__role { margin: 0; font-size: 14px; color: var(--muted); }

.article__head { padding: clamp(40px, 6vw, 72px) 0 8px; }
.article__meta { font-size: 14px; color: var(--muted); }
.article__title { font-size: clamp(30px, 5vw, 48px); }
.article__lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-strong); }
.article__head .author { margin: 28px 0 0; }
.article__cover { width: 100%; margin-top: 32px; border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; }
.article__body { padding: 40px 0 8px; font-size: 18px; }
.article__body h2 { font-size: clamp(24px, 3vw, 30px); }
.article__body h3 { margin-top: 1.6em; font-size: 22px; }
.article__body img { margin: 1.5em 0; border-radius: var(--radius); }
.article__body blockquote { margin: 1.5em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--navy); font-family: var(--serif); font-size: 20px; color: var(--ink-strong); }
.article__share { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 24px 0 64px; border-top: 1px solid var(--line); margin-top: 32px; font-size: 15px; color: var(--muted); }
.article__share a { font-weight: 600; }

/* ---------- Блок «картинка + текст» ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split__img { width: 100%; border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; }
.split__img--tall { aspect-ratio: 4 / 5; }
.split__img.split__img--discount { aspect-ratio: 3 / 4; max-width: 520px; justify-self: center; } /* фото целиком */
.split--reverse > .split__img { order: 2; }
.split .btn { margin-top: 12px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > .split__img { order: 0; }
  .split__img--tall { aspect-ratio: 3 / 2; }
}

/* ---------- Тарифы ---------- */
.tariffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.tariff { position: relative; display: flex; flex-direction: column; padding: 40px 32px 32px; background: var(--tint); border-radius: var(--radius); text-align: center; }
.tariff__name { margin-bottom: 4px; font-size: 40px; }
.tariff__sub { margin-bottom: 24px; font-family: var(--serif); font-style: italic; color: var(--muted); }
.tariff__text { flex: 1; text-align: left; }
.tariff__price { margin: 8px 0 24px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink-strong); }
.tariff--featured { background: var(--navy); color: rgba(255,255,255,.88); }
.tariff--featured .tariff__name, .tariff--featured .tariff__price { color: #fff; }
.tariff--featured .tariff__sub { color: rgba(255,255,255,.7); }
.tariff--featured .tariff__price { border-color: rgba(255,255,255,.2); }
.tariff__badge { position: absolute; top: 16px; right: 16px; padding: 4px 10px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); background: #fff; border-radius: 99px; }
@media (max-width: 900px) { .tariffs { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* ---------- Почему мы ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.why__icon { display: block; width: 56px; height: 56px; margin-bottom: 20px; background: var(--navy); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.why__title { font-size: 24px; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Отзывы ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; align-items: start; }
.review { margin: 0; padding: 32px; background: var(--tint); border-radius: var(--radius); }
.review__text { margin: 0; position: relative; }
.review__text::before { content: "“"; display: block; height: 32px; font: 64px/1 var(--serif); color: var(--navy); }
.review__text p { margin: 0; }
.review__text.is-clamped p { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.review__more { margin-top: 8px; padding: 0; background: none; border: 0; color: var(--navy); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.review__author { margin-top: 20px; font: 500 19px/1.3 var(--serif); color: var(--ink-strong); }
.review__about { display: block; margin-top: 2px; font: 400 14px/1.4 var(--sans); color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { position: relative; padding: 24px 48px 24px 0; font: 500 clamp(18px, 2.2vw, 22px)/1.3 var(--serif); color: var(--ink-strong); cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .2s; }
.faq__item[open] .faq__q::after { transform: rotate(-135deg); margin-top: -3px; }
.faq__a { margin: 0; padding: 0 48px 24px 0; }

/* ---------- Контакты и форма ---------- */
.contacts { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 80px); }
.contacts__info { padding: 36px; background: var(--tint); border-radius: var(--radius); align-self: start; }
.contacts__title { font-size: 30px; }
.contacts__list { margin: 0 0 24px; }
.contacts__list dt { margin-top: 16px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.contacts__list dd { margin: 4px 0 0; }
.contacts__list a { color: var(--ink-strong); text-decoration: none; }
.contacts__list a:hover { color: var(--navy); text-decoration: underline; }
.contacts__big { font-size: 22px; font-weight: 600; }
.map { position: relative; height: 280px; border-radius: var(--radius); overflow: hidden; background: var(--navy-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2317365d'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center 40% / 40px no-repeat; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map__load { white-space: nowrap; position: absolute; left: 50%; bottom: 28%; transform: translateX(-50%); padding: 10px 18px; background: #fff; color: var(--navy); border: 1px solid var(--navy); border-radius: var(--radius); cursor: pointer; font-weight: 500; }
@media (max-width: 960px) { .contacts { grid-template-columns: 1fr; } .contacts__info { padding: 28px 20px; } }

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field__label { padding: 0; font-size: 14px; font-weight: 600; color: var(--ink-strong); }
.field__opt { font-weight: 400; color: var(--muted); }
.field__input { width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; color: var(--ink-strong); background: #fff; border: 1px solid #cfccc6; border-radius: var(--radius); }
.field__input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-soft); }
textarea.field__input { resize: vertical; min-height: 96px; }
.field__input[aria-invalid="true"] { border-color: var(--danger); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 9px 16px; font-size: 14px; border: 1px solid #cfccc6; border-radius: 99px; background: #fff; cursor: pointer; }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.check { display: flex; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--navy); }
.check.is-invalid { color: var(--danger); }
.form__status { margin: 0; min-height: 1.5em; font-size: 14px; }
.form__status.is-ok { color: var(--ok); font-weight: 600; }
.form__status.is-error { color: var(--danger); }

/* ---------- Модальное окно ---------- */
.modal { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 40px 36px 32px; border: 0; border-radius: var(--radius); color: var(--ink); }
.modal::backdrop { background: rgba(10, 20, 35, .6); }
.modal__title { font-size: 30px; }
.modal__text { margin-bottom: 24px; }
.modal__close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; background: none; border: 0; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; }
@media (max-width: 560px) { .modal { padding: 36px 20px 24px; } }

/* ---------- Подвал ---------- */
.footer { padding: 56px 0 32px; background: var(--dark); color: rgba(255,255,255,.85); font-size: 15px; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__nav { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer__contacts { display: grid; gap: 8px; align-content: start; }
.footer__muted { margin-top: 12px; color: rgba(255,255,255,.55); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 13px; color: rgba(255,255,255,.55); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,.12);
  font-size: 14px;
}
.cookie[hidden] { display: none; }
.cookie p { flex: 1 1 240px; margin: 0; }
.cookie__btns { display: flex; gap: 8px; }
