/* vet-sonoscape.ru — цвет бренда SonoScape (#009FA8), типографика как у rus-endo.ru (РуСкейп) */

:root {
  --teal: #009FA8;      /* цвет логотипа SonoScape */
  --teal-d: #00868E;    /* наведение */
  --teal-ink: #00747A;  /* текст бирюзой на белом — контрастнее */
  --teal-bg: #E5F5F6;
  --teal-bg2: #CCECEE;
  --ink: #1D1D1B;
  --ink2: #3A403E;
  --muted: #54605D;
  --muted2: #6A736F;
  --muted3: #7A847F;
  --line: #E8ECEC;
  --line2: #EEF2F2;
  --soft: #F4F8F8;
  --err: #C8473F;
  --err-line: #E3A8A4;

  --hdr: 72px;
  --wrap: 1220px;
  --pad: 36px;          /* вертикальный отступ внутри блока; между блоками отступов нет */
  --r-lg: 20px;
  --r-md: 16px;
  --r-sm: 11px;
  --shadow: 0 22px 50px -22px rgba(29, 29, 27, .28);
  --shadow-sm: 0 18px 44px -26px rgba(29, 29, 27, .25);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--hdr);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* Футер прижат к низу окна, даже если контента мало: body — колонка на всю высоту,
   main забирает свободное место. Нижняя полоса (.band-cta) уходит вниз вместе с футером. */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
main { flex: 1 0 auto; display: flex; flex-direction: column; }
.ftr { flex-shrink: 0; }

[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.025em; line-height: 1.08; }
p { margin: 0; }
:focus-visible { outline: 3px solid rgba(0, 159, 168, .55); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; }

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal);
}
.accent { color: var(--teal); }

/* ── Кнопки ─────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px;
  border: 1.5px solid transparent; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn svg { flex: none; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(0, 159, 168, .3); }
.btn-primary:hover { background: var(--teal-d); }
.btn-primary:disabled { opacity: .65; cursor: progress; }
.btn-ghost { background: #fff; border-color: #D8DEDE; color: var(--ink); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
/* на яркой полосе цвета бренда */
.btn-onBrand { background: #fff; color: var(--teal-ink); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .3); }
.btn-onBrand:hover { background: var(--teal-bg); }
.btn-onBrandLine { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-onBrandLine:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ── Шапка ──────────────────────────────────────────────── */

.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { height: var(--hdr); display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  font-size: 20px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; color: var(--ink);
}
.logo-img { display: block; width: auto; height: 26px; }
.logo-sub {
  margin-left: 2px; padding: 3px 7px; border-radius: 6px;
  background: var(--teal-bg); color: var(--teal-ink);
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  position: relative; padding: 6px 0;
  font-size: 15px; font-weight: 600; color: var(--ink2); text-decoration: none; white-space: nowrap;
}
.nav a:hover { color: var(--teal); }
.nav a[aria-current] { color: var(--teal); }
.nav a[aria-current]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--teal);
}

.phone-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px;
  background: var(--teal-bg); color: var(--teal-ink);
  font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.phone-chip:hover { background: var(--teal-bg2); }

.burger {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; border-radius: 10px; cursor: pointer; color: var(--ink);
}
.burger .i-close { display: none; }
.burger[aria-expanded="true"] .i-open { display: none; }
.burger[aria-expanded="true"] .i-close { display: block; }

.mnav {
  position: absolute; top: 100%; left: 0; right: 0;
  padding: 8px 24px 22px;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px -8px rgba(29, 29, 27, .16);
}
.mnav a:not(.phone-chip) {
  display: block; padding: 14px 0; border-bottom: 1px solid #F0F2F2;
  font-size: 16px; font-weight: 600; color: var(--ink2); text-decoration: none;
}
.mnav a[aria-current]:not(.phone-chip) { color: var(--teal); }
.mnav .phone-chip { margin-top: 16px; }

@media (max-width: 960px) {
  .nav, .hdr-in > .phone-chip { display: none; }
  .burger { display: inline-flex; }
}
@media (min-width: 961px) {
  .mnav { display: none !important; }
}

/* ── Заголовок страницы ─────────────────────────────────── */

.phead { background: linear-gradient(180deg, var(--soft) 0%, #fff 100%); border-bottom: 1px solid var(--line2); }
.phead-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 40px; flex-wrap: wrap; padding-block: 32px 28px; }
.phead h1 { font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -.03em; }
.phead-lead { max-width: 520px; font-size: 16px; line-height: 1.55; color: var(--muted2); }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted3); }
.crumbs a { color: var(--teal); text-decoration: none; }
.crumbs a:hover { color: var(--teal-d); }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 20px; }
.sec-head h2 { font-size: clamp(22px, 2.1vw, 30px); }

/* ── Строки контента: текст и картинка, сторона картинки чередуется ── */

.feat { border-bottom: 1px solid var(--line2); }
.feat > .wrap { padding-block: var(--pad); }
.feat-rev { background: var(--soft); }
.feat-intro { background: linear-gradient(180deg, var(--soft) 0%, #fff 100%); }

.feat h1 { margin: 0 0 16px; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.08; letter-spacing: -.03em; }
.feat h3 { margin: 0 0 12px; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.2; letter-spacing: -.02em; }
.hero-logo { display: block; width: auto; height: 34px; margin-bottom: 20px; }

.feat-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.feat-rev .feat-media { order: -1; }

.feat-text p { font-size: 16px; line-height: 1.65; color: var(--muted); }
.feat-text p + p { margin-top: 10px; }
.feat-text .lead-strong { font-weight: 700; color: var(--ink2); }
.feat-text > .btn { margin-top: 20px; }
/* приписка-акцент под текстом блока («Вам обязательно это нужно увидеть…») */
.feat-text .see-note {
  margin-top: 18px; padding: 12px 16px;
  border-left: 3px solid var(--teal); border-radius: 0 10px 10px 0;
  background: #fff; box-shadow: inset 0 0 0 1px var(--teal-bg2);
  font-size: 15.5px; line-height: 1.5; color: var(--ink2);
}
.feat-text .see-note b { color: var(--teal-ink); }
.feat-text .see-note a { font-weight: 700; color: var(--teal-ink); text-decoration: none; white-space: nowrap; }
.feat-text .see-note a:hover { color: var(--teal); }

.feat-media {
  position: relative; min-width: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  height: 320px; padding: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
}
/* картинка масштабируется под рамку целиком: img на всю рамку + object-fit: contain
   (надёжнее max-height: 100%, которое часть браузеров, в т.ч. Safari, не применяет к flex-элементам) */
.feat-media img { display: block; flex: 1 1 auto; min-width: 0; min-height: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.feat-intro .feat-media { height: 480px; border-radius: var(--r-lg); box-shadow: var(--shadow); }

/* «На что стоит обратить внимание» — общий заголовок над строками */
.feats-head { border-bottom: 1px solid var(--line2); }
.feats-head .wrap { padding-block: var(--pad) calc(var(--pad) * .7); text-align: center; }
.feats-head h2 { font-size: clamp(24px, 2.5vw, 34px); }

/* Нет картинки → крупная цифра. Файл появится — подхватится сам. */
.fb {
  display: none;
  width: 100%; height: 100%;
  flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 20px; border-radius: 12px; text-align: center;
  background: radial-gradient(circle at 30% 20%, var(--teal-bg) 0%, #fff 70%);
  color: var(--teal-ink);
}
.is-empty > img { display: none; }
.is-empty > .fb { display: flex; }
.fb-v { font-size: clamp(38px, 3.8vw, 56px); font-weight: 800; letter-spacing: -.035em; line-height: 1; color: var(--ink); }
.fb-v.sm { font-size: clamp(28px, 2.5vw, 36px); letter-spacing: -.025em; }
.fb-l { max-width: 300px; font-size: 15px; font-weight: 600; color: var(--muted2); }

.feat-media.is-px { background: var(--ink); border-color: var(--ink); }
.feat-media.is-px .fb {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(0, 159, 168, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 159, 168, .16) 1px, transparent 1px);
  background-size: 18px 18px;
}
.feat-media.is-px .fb-v { font-size: clamp(30px, 3vw, 46px); color: #fff; }
.feat-media.is-px .fb-l { font-size: 16px; font-weight: 700; color: #3CC4CC; }

/* ── Видео: обложка и кнопка, сам плеер RuTube/VK/YouTube грузится по клику ── */

.feat-media.is-video { padding: 0; background: #0E1414; border-color: #0E1414; }
.vid { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: inherit; background: #0E1414; }
.feat-media .vid { height: 100%; aspect-ratio: auto; }
.vid-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  width: 100%; padding: 0; border: 0; cursor: pointer; color: #fff;
  background: radial-gradient(circle at 50% 45%, #1F3B3D 0%, #0E1414 70%);
}
.vid-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.vid-play:hover img { opacity: 1; }
.vid-btn {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .15s;
}
.vid-btn svg { margin-left: 4px; }
.vid-play:hover .vid-btn { transform: scale(1.06); }
.vid-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 28px 18px 14px; text-align: left;
  background: linear-gradient(0deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0));
  font-size: 14px; font-weight: 700; line-height: 1.35;
}
.vid iframe, .vid video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

.vids > .wrap { padding-block: var(--pad); }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.vcard { margin: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.vcard .vid { border-radius: 0; }
.vcard figcaption { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.vcard figcaption b { font-size: 15.5px; line-height: 1.35; }
.vcard figcaption a { font-size: 14px; font-weight: 700; color: var(--teal-ink); text-decoration: none; }

/* ── Баннер согласия на cookies (показывается, только если подключена Метрика) ── */

.consent-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -12px rgba(29, 29, 27, .25);
}
.consent-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-block: 14px; }
.consent-in p { max-width: 760px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-actions .btn { padding: 11px 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 7px 12px; border-radius: 999px;
  background: var(--teal-bg); color: var(--teal-ink);
  font-size: 13px; font-weight: 700; line-height: 1.3;
}
.feat-rev .chips li { background: #fff; box-shadow: inset 0 0 0 1px var(--teal-bg2); }

.stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; margin: 24px 0 0; padding: 0; list-style: none; }
.stat { padding: 0 20px; border-left: 1px solid #E4E9E9; }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat-v { font-size: 22px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.stat-l { margin-top: 2px; font-size: 13px; color: var(--muted3); white-space: nowrap; }

@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(2, auto); gap: 16px 0; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 900px) {
  :root { --pad: 28px; }
  .feat-grid { grid-template-columns: 1fr; gap: 20px; }
  /* на телефоне: картинка над текстом (кроме первого блока — там текст первым) */
  .feat-media, .feat-rev .feat-media { order: -1; height: 250px; }
  .feat-intro .feat-media { order: 0; height: 340px; }
  .hero-logo { height: 28px; margin-bottom: 14px; }
}
@media (max-width: 600px) {
  .btn-row .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat, .stat:first-child, .stat:nth-child(3) { padding: 0 0 0 12px; border-left: 2px solid var(--teal-bg2); }
  .stat-v { font-size: 20px; }
}

/* ── Яркая полоса цвета бренда: «Получить КП», «Хотите увидеть поближе?» ── */

.band { position: relative; overflow: hidden; background: var(--teal); color: #fff; }
.band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 220% at 100% 0%, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 55%);
}
.band-in { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; padding-block: 28px; }
.band-title { margin: 0; font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: #fff; }
.band-sub { max-width: 640px; margin-top: 6px; font-size: 15.5px; line-height: 1.55; color: rgba(255, 255, 255, .9); }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.band-cta { margin-top: auto; }

@media (max-width: 600px) {
  .band-actions { width: 100%; }
  .band-actions .btn { flex: 1 1 100%; }
}

/* ── Каталог ────────────────────────────────────────────── */

.cat > .wrap { padding-block: var(--pad); }
/* одна карточка — на всю ширину, две и больше — в ряд */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 20px; }

.card {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  color: inherit; text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.card-media {
  display: grid; place-items: center;
  min-height: 320px; padding: 20px;
  background: var(--soft); border-right: 1px solid var(--line2);
}
.card-media img { width: auto; height: 280px; object-fit: contain; }
.card-media .fb { background: none; }
.card-media .fb-v { font-size: clamp(22px, 2vw, 30px); white-space: nowrap; color: var(--muted3); }
.card-body { display: flex; flex-direction: column; padding: 26px 26px 22px; }
.card-kicker { margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.card h2 { margin-bottom: 10px; font-size: 24px; }
.card-body > p:not(.card-kicker) { font-size: 15px; line-height: 1.55; color: var(--muted2); }
.card .chips { margin-top: 14px; }
.card-link { margin-top: auto; padding-top: 18px; font-size: 15px; font-weight: 700; color: var(--teal-ink); }
.card:hover .card-link { color: var(--teal); }

@media (max-width: 560px) {
  .card { grid-template-columns: 1fr; }
  .card-media { min-height: 0; height: 240px; border-right: 0; border-bottom: 1px solid var(--line2); }
  .card-media img { height: 200px; }
}

/* ── Таблица эндоскопов ─────────────────────────────────── */

.specs { background: var(--soft); border-bottom: 1px solid var(--line2); }
.specs > .wrap { padding-block: var(--pad); }

.specs-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 16px; }
.specs-lead { font-size: 15.5px; font-weight: 600; color: var(--muted2); }

.seg { display: inline-flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.seg button {
  padding: 9px 16px; border: 0; border-radius: 9px; background: none; cursor: pointer;
  font-size: 14px; font-weight: 700; color: var(--muted2); white-space: nowrap;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.tbl-wrap {
  overflow-x: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.tbl { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 14.5px; }
.tbl th {
  padding: 14px;
  background: var(--soft); border-bottom: 1px solid var(--line);
  font-size: 11.5px; font-weight: 700; line-height: 1.35; letter-spacing: .04em; text-transform: uppercase;
  text-align: left; vertical-align: bottom; color: var(--muted3);
}
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line2); vertical-align: middle; font-variant-numeric: tabular-nums; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tr.row:hover td { background: #FAFCFC; }
.tbl .model { font-size: 15.5px; font-weight: 800; white-space: nowrap; }
.tbl .num { font-weight: 600; }
.tbl .yes { font-weight: 700; color: var(--teal-ink); }
.tbl .no { color: var(--muted3); }
.tbl .ang { font-size: 13.5px; line-height: 1.45; white-space: nowrap; }
.tbl .ang span { display: block; }
.tbl tr.grp td {
  padding: 9px 14px;
  background: #FAFCFC;
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink);
}

.tbl-note { margin-top: 16px; }
.specs .chips li { background: #fff; box-shadow: inset 0 0 0 1px var(--teal-bg2); }
.tbl-hint { display: none; margin-top: 10px; font-size: 13px; color: var(--muted3); }

/* На телефоне таблица листается вбок, колонка «Модель» закреплена */
@media (max-width: 760px) {
  .tbl { min-width: 860px; font-size: 13.5px; }
  .tbl th, .tbl td { padding: 11px 10px; }
  .tbl th:first-child, .tbl td.model {
    position: sticky; left: 0; z-index: 1;
    background: #fff; box-shadow: 1px 0 0 var(--line);
  }
  .tbl th:first-child { background: var(--soft); }
  .tbl .model { font-size: 14.5px; }
  .tbl-hint { display: block; }
}

/* ── Подвал ─────────────────────────────────────────────── */

.ftr { background: var(--ink); color: #fff; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; padding-block: 40px 28px; }
.ftr .logo { color: #fff; margin-bottom: 16px; }
.ftr .logo-sub { background: rgba(0, 159, 168, .2); color: #3CC4CC; }
.ftr-about { max-width: 340px; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .6); }
.ftr-h { margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.ftr-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ftr-links a { font-size: 15px; color: rgba(255, 255, 255, .78); text-decoration: none; }
.ftr-links a:hover { color: #3CC4CC; }
.ftr-links a.strong { font-weight: 600; color: #fff; }
.ftr-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.ftr-bottom .wrap { padding-block: 18px; font-size: 13px; color: rgba(255, 255, 255, .45); }

@media (max-width: 720px) {
  .ftr-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ── Отзывы ─────────────────────────────────────────────── */

.rev > .wrap { padding-block: var(--pad); }
.rev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.rev-card { display: flex; flex-direction: column; gap: 16px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.rev-text { font-size: 15.5px; line-height: 1.6; color: var(--ink2); }
.rev-who b { display: block; font-size: 15px; }
.rev-who span { font-size: 13px; color: var(--muted3); }

.rev-empty {
  display: flex; align-items: center; flex-wrap: wrap; gap: 18px 24px;
  padding: 26px 28px;
  background: var(--soft); border: 1px solid var(--line2); border-radius: var(--r-md);
}
.rev-empty-text { flex: 1 1 320px; }
.rev-empty h2 { margin-bottom: 6px; font-size: 20px; letter-spacing: -.01em; }
.rev-empty p { font-size: 15px; line-height: 1.55; color: var(--muted2); }

/* ── Контакты ───────────────────────────────────────────── */

.contact-sec { background: linear-gradient(180deg, var(--soft) 0%, #fff 70%); border-bottom: 1px solid var(--line2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; padding-block: var(--pad); }
.contact-sec h1 { font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -.03em; line-height: 1.04; }
.contact-lead { max-width: 460px; margin: 12px 0 26px; font-size: 16.5px; line-height: 1.55; color: var(--muted2); }

.info { display: flex; flex-direction: column; gap: 16px; }
.info-row { display: flex; align-items: flex-start; gap: 16px; }
.ico {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--teal-bg); color: var(--teal);
}
.info-l { margin-bottom: 4px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted3); }
.info-v { font-size: 19px; font-weight: 700; color: var(--ink); text-decoration: none; }
a.info-v:hover { color: var(--teal); }

.talk { margin-top: 24px; padding: 22px 24px; background: var(--soft); border: 1px solid var(--line2); border-radius: var(--r-md); }
.talk h2 { margin-bottom: 12px; font-size: 18px; letter-spacing: -.01em; }
.talk ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.talk li { display: flex; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.talk li svg { flex: none; margin-top: 2px; color: var(--teal); }

.form-card {
  padding: 32px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.form-card h2 { font-size: 26px; letter-spacing: -.02em; }
.form-card .form-lead { margin: 8px 0 22px; font-size: 15.5px; line-height: 1.55; color: var(--muted2); }

.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.fld > span { font-size: 13px; font-weight: 700; color: var(--ink2); }
.fld input, .fld textarea {
  width: 100%; padding: 12px 14px;
  background: #fff; border: 1.5px solid #D8DEDE; border-radius: 10px;
  font-size: 15px; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
.fld textarea { resize: vertical; min-height: 64px; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0, 159, 168, .15); }
.fld.is-err input { border-color: var(--err-line); background: #FFF8F7; }

.topics { margin: 0 0 14px; padding: 0; border: 0; }
.topics legend { margin-bottom: 8px; padding: 0; font-size: 13px; font-weight: 700; color: var(--ink2); }
/* три варианта всегда в одну строку: делят ширину, на узком экране текст переносится внутри кнопки */
.topics-row { display: flex; gap: 8px; }
.topic { display: flex; flex: 1 1 auto; min-width: 0; }
.topic input { position: absolute; opacity: 0; pointer-events: none; }
.topic span {
  display: flex; flex: 1; align-items: center; justify-content: center;
  min-height: 42px; padding: 7px 12px; border-radius: 12px;
  border: 1.5px solid #D8DEDE; background: #fff;
  font-size: 13.5px; font-weight: 700; line-height: 1.25; text-align: center; color: var(--muted2); cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.topic span:hover { border-color: var(--teal); }
.topic input:checked + span { border-color: var(--teal); background: var(--teal-bg); color: var(--teal-ink); }
.topic input:focus-visible + span { outline: 3px solid rgba(0, 159, 168, .55); outline-offset: 2px; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: 13.5px; line-height: 1.5; color: var(--muted2); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--teal); }

.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; }
.form-hint { font-size: 13px; color: var(--muted3); }
.form-msg { margin-top: 12px; font-size: 14px; font-weight: 600; }
.form-msg:empty { display: none; }
.form-msg.is-err { color: var(--err); }
.form-fail { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: #FFF4F3; border: 1px solid var(--err-line); font-size: 14px; line-height: 1.55; color: var(--ink2); }
.form-fail a { font-weight: 700; color: var(--ink); }

.form-ok { padding: 12px 0; }
.form-ok .ico { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 20px; }
.form-ok h2 { margin-bottom: 10px; }
.form-ok p { font-size: 16px; line-height: 1.6; color: var(--muted2); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .f2 { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 24px 18px; }
  .form-actions .btn { flex: 1 1 100%; }
  .topics-row { gap: 6px; }
  .topic span { padding: 8px 6px; border-radius: 12px; font-size: 13px; }
}

/* ── 404 ────────────────────────────────────────────────── */

.nf { margin-block: auto; text-align: center; }
.nf .wrap { padding-block: 72px; }
.nf h1 { font-size: clamp(56px, 10vw, 120px); color: var(--teal); letter-spacing: -.05em; }
.nf p { margin: 12px 0 28px; font-size: 18px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
