/* ===========================================================
   Территория Воды — публичное оформление.
   Файл подключается ПОСЛЕ base.css и переопределяет только
   публичную часть сайта. Стили редактора (rt-*) остаются в base.css.
   =========================================================== */

/* ----------------------------------------------------------- токены */

:root {
  --tv-navy-900: #071e36;
  --tv-navy-800: #0c2b4a;
  --tv-navy: #0e2f52;
  --tv-blue: #17457d;
  --tv-teal-700: #0b6e8c;
  --tv-teal: #1fa8bc;
  --tv-teal-300: #7fd7e4;
  --tv-ice: #eaf4f9;
  --tv-ice-2: #f2f9fc;
  --tv-paper: #f6fafd;
  --tv-ink: #10273f;
  --tv-muted: #566e8b;
  --tv-muted-2: #7f95ae;
  --tv-line: #d9e7f0;
  --tv-white: #ffffff;
  --tv-radius: 20px;
  --tv-radius-lg: 28px;
  --tv-shadow: 0 18px 40px rgba(14, 47, 82, 0.07);
  --tv-shadow-lg: 0 30px 70px rgba(14, 47, 82, 0.14);
  --tv-font: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* переменные движка: перекрашиваем тёплую палитру в водную */
  --sage: var(--tv-blue);
  --gold: var(--tv-teal-700);
  --rose: var(--tv-teal-700);
  --ink: var(--tv-ink);
  --nav: var(--tv-muted);
  --btn: var(--tv-teal);
  --btn-hover: var(--tv-teal-700);
  --line: var(--tv-line);
  --surface: #ffffff;
  --surface-line: var(--tv-line);
  --shadow: var(--tv-shadow);
  --bg-color: var(--tv-paper);
  --bg-image: none;
}

/* ----------------------------------------------------------- фон и база */

html {
  min-height: 100%;
  background-color: var(--tv-paper);
  background-image:
    radial-gradient(1100px 760px at -12% -10%, rgba(31, 168, 188, 0.1), transparent 62%),
    radial-gradient(920px 640px at 112% -6%, rgba(23, 69, 125, 0.08), transparent 58%),
    radial-gradient(980px 720px at 50% 118%, rgba(31, 168, 188, 0.07), transparent 62%),
    linear-gradient(180deg, #f7fbfd 0%, #f3f9fc 52%, #eef6fa 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

body {
  margin: 0;
  padding: 0;
  color: var(--tv-ink);
  font-family: var(--tv-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: rgba(31, 168, 188, 0.24);
  color: var(--tv-navy);
}

a {
  color: var(--tv-teal-700);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--tv-teal);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 18px;
  border-radius: 0 0 12px 0;
  background: var(--tv-navy);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

.page {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 40px;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* ----------------------------------------------------------- шапка */

.site-header {
  position: sticky;
  top: 14px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 16px;
  padding: 10px 16px 10px 14px;
  border: 1px solid rgba(217, 231, 240, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 12px 32px rgba(14, 47, 82, 0.07);
}

body.is-editing .site-header {
  position: static;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-align: left;
  text-decoration: none;
  color: var(--tv-navy);
}

.brand svg {
  width: 42px;
  height: 42px;
  flex: none;
}

.brand-name {
  font-family: var(--tv-font);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--tv-navy);
}

.brand-role {
  margin-top: 3px;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tv-muted-2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--tv-navy-800);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav a:hover {
  background: var(--tv-ice);
  color: var(--tv-teal-700);
}

.nav a.active {
  color: var(--tv-teal-700);
  background: var(--tv-ice);
}

.nav a.active::after {
  display: none;
}

/* последний пункт меню — кнопка «Связаться» */
.nav a.nav-cta {
  margin-left: 8px;
  padding: 10px 18px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--tv-teal), var(--tv-teal-700));
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(11, 110, 140, 0.22);
}

.nav a.nav-cta:hover {
  background: linear-gradient(135deg, #25b5ca, #0a6179);
  color: #ffffff;
}

.nav a.nav-cta.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--tv-teal), var(--tv-teal-700));
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--tv-line);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--tv-navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ----------------------------------------------------------- первый экран */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(28px, 4.5vw, 64px);
  margin-top: clamp(34px, 5vw, 62px);
}

.hero[data-side="none"] {
  grid-template-columns: minmax(0, 1fr);
}

.hero-copy,
.hero[data-side="right"] .hero-copy,
.hero[data-side="left"] .hero-copy {
  order: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding-top: 0;
  text-align: left;
}

.portrait,
.hero[data-side="left"] .portrait,
.hero[data-side="right"] .portrait {
  order: 2;
  justify-self: end;
  width: min(100%, var(--photo-size, 560px));
  max-width: 100%;
  margin: 0;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  padding: 7px 14px;
  border: 1px solid #cfe6ef;
  border-radius: 999px;
  background: rgba(234, 244, 249, 0.85);
  color: var(--tv-teal-700);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tv-teal);
  box-shadow: 0 0 0 4px rgba(31, 168, 188, 0.16);
}

h1 {
  margin: 0;
  max-width: 100%;
  font-family: var(--tv-font);
  font-weight: 800;
  font-size: clamp(34px, 4.9vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.028em;
  color: var(--tv-navy);
  text-align: left;
}

h1 .line {
  display: block;
  overflow-wrap: break-word;
}

h1 .line.sage {
  color: var(--tv-navy);
}

h1 .line.gold {
  color: var(--tv-teal-700);
}

h1 .line.rose {
  color: var(--tv-blue);
}

.hero[data-align="left"] .hero-copy,
.hero-copy {
  align-items: flex-start;
}

.hero-bottom {
  width: 100%;
  text-align: left;
}

.rule {
  width: 56px;
  height: 3px;
  margin: 24px 0 20px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--tv-teal), rgba(31, 168, 188, 0.15));
}

.lede {
  max-width: 34em;
  margin: 0;
  color: var(--tv-muted);
  font-family: var(--tv-font);
  font-size: clamp(16px, 1.25vw, 18px);
  font-weight: 500;
  line-height: 1.62;
  text-align: left;
  white-space: pre-line;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 0;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--tv-teal), var(--tv-teal-700));
  color: #ffffff;
  font-family: var(--tv-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(11, 110, 140, 0.24);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 18px 34px rgba(11, 110, 140, 0.28);
}

.btn:active {
  transform: translateY(0);
}

.btn-ghost {
  background: #ffffff;
  color: var(--tv-navy);
  border-color: var(--tv-line);
  box-shadow: none;
}

.btn-ghost:hover {
  background: #ffffff;
  border-color: var(--tv-teal);
  color: var(--tv-teal-700);
  box-shadow: 0 10px 24px rgba(14, 47, 82, 0.08);
}

/* фото первого экрана */
.portrait-ring {
  padding: 0;
  border-radius: 26px;
  background: linear-gradient(135deg, #dbedf5, #eef7fb);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.7),
    0 34px 70px rgba(11, 110, 140, 0.18),
    0 8px 24px rgba(14, 47, 82, 0.08);
  overflow: hidden;
}

.portrait-inner {
  border-radius: 26px;
  background: #eaf4f9;
}

.portrait[data-shadow="off"] .portrait-ring {
  box-shadow: none;
}

.portrait.is-over .portrait-ring,
body.is-editing .portrait:hover .portrait-ring {
  box-shadow:
    0 0 0 2px rgba(31, 168, 188, 0.65),
    0 34px 70px rgba(11, 110, 140, 0.2);
}

.portrait:focus-visible {
  outline: 2px solid var(--tv-teal);
  outline-offset: 4px;
}

/* декоративная подсветка под фото */
.hero .portrait::after {
  content: "";
  position: absolute;
  inset: 10% -8% -12% -8%;
  z-index: -1;
  border-radius: 40px;
  background: radial-gradient(closest-side, rgba(31, 168, 188, 0.22), transparent 72%);
  filter: blur(6px);
  pointer-events: none;
}

/* ----------------------------------------------------------- секции */

.paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(48px, 6vw, 88px);
}

.blk {
  position: relative;
  min-width: 0;
  padding: 30px 30px 28px;
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius);
  background: #ffffff;
  box-shadow: var(--tv-shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blk.is-in {
  animation: tv-rise 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes tv-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blk h2 {
  margin: 0;
  font-family: var(--tv-font);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.012em;
  text-transform: none;
  color: var(--tv-navy);
  overflow-wrap: break-word;
}

.blk-body {
  max-width: none;
  margin: 10px 0 0;
  color: var(--tv-muted);
  font-family: var(--tv-font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  text-align: left;
  white-space: pre-line;
}

/* абзацы внутри карточек: движок выводит их без класса blk-body */
.card p {
  max-width: none;
  margin: 10px 0 0;
  color: var(--tv-muted);
  font-family: var(--tv-font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  text-align: left;
  white-space: pre-line;
}

.card[data-inner="center"] p {
  margin-top: 6px;
  color: rgba(226, 240, 248, 0.78);
  font-size: 13.5px;
  line-height: 1.5;
}

.card[data-inner="row"] .card-copy p {
  margin-top: 8px;
}

.blk-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--tv-ice);
  color: var(--tv-teal-700);
}

.blk .blk-icon svg {
  width: 24px;
  height: 24px;
}

.card-rule {
  display: none;
}

/* карточки */
.card {
  display: flex;
  flex-direction: column;
}

.card .card-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin: 0 0 14px;
}

.card[data-inner="center"] .card-head {
  flex-direction: column;
  gap: 12px;
  margin: 0 0 14px;
}

.card[data-inner="center"] .card-head > div {
  text-align: left;
}

.card[data-inner="row"] {
  padding: 26px 28px;
}

.card[data-inner="row"] .card-row {
  gap: 16px;
}

.card[data-inner="row"] .card-copy p {
  margin-top: 8px;
}

.card[data-inner="plain"] .card-head {
  display: block;
}

/* метрики: тёмная карточка «цифра + подпись» */
.card[data-inner="center"] {
  border-color: rgba(12, 43, 74, 0.9);
  background:
    radial-gradient(420px 260px at 110% -20%, rgba(31, 168, 188, 0.4), transparent 65%),
    linear-gradient(150deg, #0c2b4a 0%, #0e2f52 55%, #0b3f63 100%);
  color: #ffffff;
}

.card[data-inner="center"] .blk-icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--tv-teal-300);
}

.card[data-inner="center"] h2 {
  margin: 0;
  font-size: clamp(30px, 3.1vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.card[data-inner="center"] .blk-body {
  margin-top: 6px;
  color: rgba(226, 240, 248, 0.78);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ----------------------------------------------------------- текстовый блок */

.blk-text {
  grid-column: 1 / -1;
  padding: 12px 0 4px;
  border: 0;
  background: none;
  box-shadow: none;
  text-align: left;
}

.blk-text h2 {
  max-width: 22em;
  font-size: clamp(25px, 2.9vw, 38px);
  line-height: 1.16;
  letter-spacing: -0.022em;
}

.blk-text .blk-body {
  max-width: 46em;
  margin-top: 16px;
  font-size: 16.5px;
  line-height: 1.68;
}

.blk-text.is-left h2,
.blk-text.is-left .blk-body {
  text-align: left;
}

/* ----------------------------------------------------------- цитата / манифест */

.blk-quote {
  grid-column: 1 / -1;
  padding: clamp(34px, 4.5vw, 58px);
  border: 0;
  border-radius: var(--tv-radius-lg);
  background:
    radial-gradient(680px 340px at 108% -10%, rgba(31, 168, 188, 0.34), transparent 62%),
    linear-gradient(135deg, #0b2743 0%, #0e2f52 52%, #0b3a5c 100%);
  box-shadow: 0 30px 70px rgba(7, 30, 54, 0.26);
  text-align: left;
}

.blk-quote blockquote {
  margin: 0;
  max-width: 34em;
  color: #ffffff;
  font-family: var(--tv-font);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(21px, 2.5vw, 32px);
  line-height: 1.34;
  letter-spacing: -0.018em;
}

.blk-quote cite {
  display: block;
  margin-top: 18px;
  color: var(--tv-teal-300);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.blk-quote.is-left {
  text-align: left;
}

/* ----------------------------------------------------------- медиа-блоки */

.blk-media {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(26px, 4vw, 56px);
  padding: clamp(18px, 3vw, 34px) 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.blk-media[data-layout="media-left"] {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
}

.blk-media[data-layout="media-right"] {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
}

.blk-media[data-layout="media-right"] .blk-pic {
  order: 2;
}

.blk-media[data-layout="media-top"] {
  grid-template-columns: minmax(0, 1fr);
}

.blk-media .blk-pic {
  aspect-ratio: 1.32;
  border-radius: 24px;
  background: linear-gradient(135deg, #dbeef6, #eef8fc);
  box-shadow: 0 26px 60px rgba(11, 110, 140, 0.16);
  overflow: hidden;
}

.blk-media .blk-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blk-media .blk-copy h2 {
  max-width: 18em;
  text-align: left;
  font-size: clamp(25px, 2.7vw, 36px);
  line-height: 1.16;
  letter-spacing: -0.022em;
}

.blk-media .blk-body {
  max-width: 34em;
  margin-top: 16px;
  text-align: left;
  font-size: 16px;
  line-height: 1.66;
}

.blk-media[data-layout="media-top"] .blk-copy h2,
.blk-media[data-layout="media-top"] .blk-body {
  text-align: left;
}

.blk-media[data-layout="media-top"] .blk-pic {
  width: 100%;
  max-width: 100%;
}

.blk-media.is-center .blk-copy h2,
.blk-media.is-center .blk-body {
  text-align: left;
}

/* ----------------------------------------------------------- фото с подписью */

.blk-image {
  grid-column: 1 / -1;
  padding: 10px 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.blk-image .frame {
  width: 100%;
  max-width: 100%;
  border-radius: 24px;
  box-shadow: 0 26px 60px rgba(11, 110, 140, 0.16);
}

.blk-image .frame-inner {
  border-radius: 24px;
  background: linear-gradient(135deg, #dbeef6, #eef8fc);
}

.blk-image figcaption {
  color: var(--tv-muted-2);
  font-family: var(--tv-font);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* ----------------------------------------------------------- баннер */

.blk-banner {
  grid-column: 1 / -1;
  min-height: clamp(300px, 34vw, 430px);
  align-items: center;
  padding: clamp(30px, 4.5vw, 62px);
  border-radius: var(--tv-radius-lg);
  background-color: var(--tv-navy);
  color: #ffffff;
  box-shadow: 0 30px 70px rgba(7, 30, 54, 0.28);
}

.blk-banner::before {
  background:
    linear-gradient(90deg, rgba(6, 27, 49, 0.94) 0%, rgba(6, 27, 49, 0.72) 48%, rgba(6, 27, 49, 0.18) 100%),
    linear-gradient(180deg, rgba(6, 27, 49, 0.2), rgba(6, 27, 49, 0.55));
}

.blk-banner h2 {
  max-width: 15em;
  color: #ffffff;
  font-family: var(--tv-font);
  font-size: clamp(27px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-transform: none;
}

.blk-banner .blk-body {
  max-width: 34em;
  margin-top: 14px;
  color: rgba(224, 240, 248, 0.82);
  font-size: 16px;
  line-height: 1.62;
}

.blk-banner.is-plain {
  background: linear-gradient(135deg, #eef7fb, #e3f2f8);
  color: var(--tv-navy);
}

.blk-banner.is-plain h2 {
  color: var(--tv-navy);
}

.blk-banner.is-plain .blk-body {
  color: var(--tv-muted);
}

.blk-banner.is-center h2,
.blk-banner.is-center .blk-body {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ----------------------------------------------------------- кнопка */

.blk-button {
  grid-column: 1 / -1;
  display: flex;
  padding: 4px 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.blk-button[data-align="left"] {
  justify-content: flex-start;
}

.blk-button[data-align="center"] {
  justify-content: center;
}

.blk-button[data-align="right"] {
  justify-content: flex-end;
}

.blk-button .btn-el {
  padding: 15px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--tv-teal), var(--tv-teal-700));
  color: #ffffff;
  font-family: var(--tv-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 14px 28px rgba(11, 110, 140, 0.24);
}

.blk-button .btn-el:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.blk-button[data-btn-style="ghost"] .btn-el {
  padding: 8px 0;
  background: transparent;
  color: var(--tv-teal-700);
  font-size: 15px;
  font-weight: 700;
  box-shadow: none;
}

.blk-button[data-btn-style="ghost"] .btn-el:hover {
  color: var(--tv-navy);
}

.blk-button[data-underline="true"] .btn-el {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* ----------------------------------------------------------- статьи (служебное) */

.blk-articles {
  grid-column: 1 / -1;
}

.art-title {
  font-family: var(--tv-font);
  font-size: 26px;
  font-weight: 800;
  color: var(--tv-navy);
  margin: 0 0 18px;
}

.art-card {
  border: 1px solid var(--tv-line);
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  text-decoration: none;
}

.art-name {
  font-weight: 800;
  color: var(--tv-navy);
}

.art-excerpt,
.art-date {
  color: var(--tv-muted);
}

.art-archive {
  color: var(--tv-teal-700);
  font-weight: 700;
}

/* ----------------------------------------------------------- форма заявки */

.blk-form {
  grid-column: 1 / -1;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.form-card {
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-radius-lg);
  background:
    radial-gradient(720px 380px at 110% -20%, rgba(31, 168, 188, 0.14), transparent 62%),
    #ffffff;
  box-shadow: var(--tv-shadow-lg);
}

.form-head {
  max-width: 44em;
  margin-bottom: 26px;
}

.form-head h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.14;
  letter-spacing: -0.022em;
}

.form-intro {
  margin: 14px 0 0;
  color: var(--tv-muted);
  font-size: 16px;
  line-height: 1.62;
  white-space: pre-line;
}

.lead-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lead-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.lead-field--wide {
  grid-column: 1 / -1;
}

.lead-label {
  color: var(--tv-navy);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lead-label b {
  color: var(--tv-teal-700);
}

.lead-field input,
.lead-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--tv-line);
  border-radius: 11px;
  background: #f8fbfd;
  color: var(--tv-ink);
  font-family: var(--tv-font);
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.lead-field input::placeholder,
.lead-field textarea::placeholder {
  color: var(--tv-muted-2);
}

.lead-field input:focus,
.lead-field textarea:focus {
  outline: none;
  border-color: var(--tv-teal);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(31, 168, 188, 0.14);
}

.lead-field textarea {
  resize: vertical;
  min-height: 110px;
}

.lead-field input.is-invalid,
.lead-field textarea.is-invalid {
  border-color: #d9534f;
  background: #fff7f7;
}

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

.lead-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: var(--tv-muted);
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}

.lead-consent input {
  flex: none;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--tv-teal-700);
}

.lead-consent a {
  color: var(--tv-teal-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lead-consent--optional {
  margin-top: 10px;
  color: var(--tv-muted-2);
}

.lead-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.lead-bottom .btn-el {
  padding: 15px 30px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--tv-teal), var(--tv-teal-700));
  color: #ffffff;
  font-family: var(--tv-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 14px 28px rgba(11, 110, 140, 0.24);
  cursor: pointer;
}

.lead-bottom .btn-el:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.lead-form.is-sending .btn-el {
  opacity: 0.7;
  pointer-events: none;
}

.lead-status {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tv-teal-700);
}

.lead-status.is-error {
  color: #b93a3a;
}

.lead-note {
  margin: 16px 0 0;
  color: var(--tv-muted-2);
  font-size: 12.5px;
  line-height: 1.55;
}

.lead-note a {
  color: var(--tv-teal-700);
}

/* ----------------------------------------------------------- подвал */

.site-footer {
  margin-top: 64px;
  padding: 56px 24px 34px;
  padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px));
  border-top: 0;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(31, 168, 188, 0.22), transparent 62%),
    linear-gradient(155deg, #071e36 0%, #0b2743 46%, #0c2f4e 100%);
  color: rgba(226, 240, 248, 0.78);
}

.footer-inner {
  width: min(1240px, 100%);
  margin: 0 auto;
  text-align: left;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(226, 240, 248, 0.14);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
}

.footer-brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.footer-brand-role {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(226, 240, 248, 0.6);
}

.footer-contacts {
  justify-self: start;
}

.footer-title {
  margin: 0;
  font-family: var(--tv-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tv-teal-300);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.footer-links a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #ffffff;
  font-family: var(--tv-font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: var(--tv-teal-300);
}

.footer-links a .lbl {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(226, 240, 248, 0.52);
}

.footer-links a .val {
  color: #ffffff;
  white-space: pre-line;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(226, 240, 248, 0.18);
  border-radius: 11px;
  color: rgba(226, 240, 248, 0.85);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.footer-social:hover {
  border-color: var(--tv-teal-300);
  background: rgba(31, 168, 188, 0.18);
  color: #ffffff;
}

.footer-social svg {
  width: 19px;
  height: 19px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.footer-legal a,
.footer-cookie {
  padding: 0;
  border: 0;
  background: none;
  color: rgba(226, 240, 248, 0.74);
  font-family: var(--tv-font);
  font-size: 13px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s ease;
}

.footer-legal a:hover,
.footer-cookie:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-meta {
  max-width: 44em;
  text-align: right;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(226, 240, 248, 0.55);
}

.footer-meta p {
  margin: 0 0 6px;
}

.footer-skolkovo {
  color: rgba(226, 240, 248, 0.72);
}

.footer-note-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-name {
  margin: 0;
  color: rgba(226, 240, 248, 0.5);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-edit {
  color: rgba(226, 240, 248, 0.35);
  font-size: 12px;
  text-decoration: none;
}

.footer-edit:hover {
  color: #ffffff;
}

/* ----------------------------------------------------------- cookie-баннер */

.tv-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.tv-consent__inner {
  width: min(1080px, 100%);
  padding: 22px 24px;
  border: 1px solid var(--tv-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 28px 70px rgba(7, 30, 54, 0.24);
  pointer-events: auto;
}

.tv-consent__title {
  margin: 0 0 8px;
  color: var(--tv-navy);
  font-family: var(--tv-font);
  font-size: 17px;
  font-weight: 800;
}

.tv-consent__text {
  max-width: 76em;
  margin: 0;
  color: var(--tv-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.tv-consent__text a,
.tv-consent__link {
  color: var(--tv-teal-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.tv-consent__link {
  border: 0;
  background: none;
  padding: 0;
  font-family: var(--tv-font);
  font-size: 13.5px;
  text-decoration: underline;
}

.tv-consent__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.tv-consent__actions .tv-btn {
  flex: 1 1 auto;
  min-width: 150px;
  justify-content: center;
}

.tv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--tv-line);
  border-radius: 11px;
  background: #ffffff;
  color: var(--tv-navy);
  font-family: var(--tv-font);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.tv-btn:hover {
  border-color: var(--tv-teal);
  color: var(--tv-teal-700);
}

.tv-btn--primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--tv-teal), var(--tv-teal-700));
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(11, 110, 140, 0.22);
}

.tv-btn--primary:hover {
  color: #ffffff;
  filter: brightness(1.05);
}

.tv-btn--ghost {
  background: #f4fafc;
  border-color: var(--tv-line);
  color: var(--tv-navy);
}

/* модалка настроек cookie */
.tv-consent__modal {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(7, 30, 54, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.tv-consent__modal[hidden] {
  display: none;
}

.tv-consent__modal-card {
  width: min(580px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: 26px 26px 22px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 34px 90px rgba(7, 30, 54, 0.34);
}

.tv-consent__modal-card h2 {
  margin: 0 0 10px;
  color: var(--tv-navy);
  font-family: var(--tv-font);
  font-size: 20px;
  font-weight: 800;
}

.tv-consent__modal-card > p {
  margin: 0 0 16px;
  color: var(--tv-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.tv-consent__cat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--tv-line);
}

.tv-consent__cat:first-of-type {
  border-top: 0;
}

.tv-consent__cat input[type="checkbox"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--tv-teal-700);
}

.tv-consent__cat strong {
  display: block;
  color: var(--tv-navy);
  font-size: 14px;
  font-weight: 800;
}

.tv-consent__cat span {
  display: block;
  margin-top: 3px;
  color: var(--tv-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.tv-consent__cat em {
  display: block;
  margin-top: 4px;
  color: var(--tv-muted-2);
  font-size: 11.5px;
  font-style: normal;
}

.tv-consent__modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tv-consent__modal-actions .tv-btn {
  flex: 1 1 140px;
}

.tv-consent__revoke {
  margin-top: 14px;
  border: 0;
  background: none;
  color: #a33a3a;
  font-family: var(--tv-font);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* ----------------------------------------------------------- мелкое */

.rt-shape i.wd {
  width: 22px;
  height: 14px;
  border-radius: 3px;
}

/* ----------------------------------------------------------- редактор: аккуратная страница рядом с панелью */

body.rt-panel-open h1 {
  font-size: clamp(28px, 3.7vw, 54px);
}

body.rt-panel-open .hero {
  gap: clamp(20px, 2.6vw, 40px);
}

body.rt-panel-open .site-header {
  gap: 12px;
}

body.rt-panel-open .brand-role {
  display: none;
}

body.rt-panel-open .brand-name {
  white-space: nowrap;
  font-size: 14.5px;
}

body.rt-panel-open .nav a {
  padding: 8px 9px;
  font-size: 12.5px;
}

body.rt-panel-open .nav a.nav-cta {
  padding: 9px 14px;
}

/* ----------------------------------------------------------- редактор: не мешаем служебными баннерами */

body.is-editing .tv-consent,
body.is-preview .tv-consent {
  display: none !important;
}

body.is-editing .skip-link {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ----------------------------------------------------------- планшет */

@media (max-width: 1080px) {
  .brand-role {
    display: none;
  }

  .nav a {
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* ----------------------------------------------------------- мобильные */

@media (max-width: 900px) {
  .page {
    width: min(720px, calc(100% - 32px));
    padding-top: 0;
  }

  .site-header {
    top: 8px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 10px;
    padding: 8px 12px;
  }

  .hero,
  .hero[data-side="left"],
  .hero[data-side="right"] {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 26px;
    margin-top: 28px;
  }

  .hero-copy,
  .hero[data-side="left"] .hero-copy,
  .hero[data-side="right"] .hero-copy {
    order: 1;
    align-items: flex-start;
    width: 100%;
    padding-top: 0;
  }

  .portrait,
  .hero[data-side="left"] .portrait,
  .hero[data-side="right"] .portrait {
    order: 2;
    justify-self: center;
    width: min(100%, 560px);
    margin: 0;
  }

  .hero-tag {
    margin-bottom: 16px;
    font-size: 10px;
  }

  h1 {
    font-size: clamp(30px, 8.4vw, 46px);
    text-align: left;
  }

  .lede {
    font-size: 16px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 210px;
    justify-content: center;
  }

  .paths {
    gap: 14px;
    margin-top: 38px;
  }

  .blk {
    padding: 24px 20px 22px;
    border-radius: 16px;
  }

  .blk h2 {
    font-size: 18px;
  }

  .blk-text {
    padding: 6px 0 2px;
  }

  .blk-text h2 {
    font-size: clamp(23px, 6.6vw, 30px);
  }

  .blk-media,
  .blk-media[data-layout="media-left"],
  .blk-media[data-layout="media-right"],
  .blk-media[data-layout="media-top"] {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 10px 0;
  }

  .blk-media[data-layout="media-right"] .blk-pic,
  .blk-media[data-layout="media-right"] .blk-copy {
    order: 0;
  }

  .blk-media .blk-copy h2 {
    font-size: clamp(23px, 6.4vw, 30px);
  }

  .blk-media .blk-pic {
    aspect-ratio: 1.5;
    border-radius: 18px;
  }

  .blk-banner {
    min-height: 300px;
    padding: 26px 22px;
    border-radius: 20px;
  }

  .blk-banner::before {
    background: linear-gradient(180deg, rgba(6, 27, 49, 0.82) 0%, rgba(6, 27, 49, 0.9) 100%);
  }

  .blk-quote {
    border-radius: 20px;
    padding: 28px 22px;
  }

  .blk-quote blockquote {
    font-size: 20px;
  }

  .form-card {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .lead-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lead-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .lead-bottom .btn-el {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .footer-meta {
    max-width: none;
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
  }

  /* мобильное меню */
  .nav-toggle {
    display: flex;
    flex: none;
  }

  .brand {
    flex: 1 1 auto;
  }

  .nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-top: 6px;
    border-top: 1px solid var(--tv-line);
  }

  .site-header.is-nav-open .nav {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 11px 10px;
    font-size: 15px;
  }

  .nav a.nav-cta {
    margin: 8px 0 4px;
    padding: 12px 16px;
    text-align: center;
  }

  .tv-consent {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .tv-consent__inner {
    position: relative;
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
    padding: 8px 12px 8px;
    border-radius: 14px;
  }

  .tv-consent__title {
    margin-bottom: 4px;
    padding-right: 82px;
    font-size: 14px;
  }

  .tv-consent__link {
    position: absolute;
    top: 15px;
    right: 14px;
    font-size: 12px;
  }

  .tv-consent__text,
  .tv-consent__link,
  .tv-consent__text a {
    font-size: 11px;
    line-height: 1.36;
  }

  .tv-consent__actions {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 5px;
    margin-top: 7px;
  }

  .tv-consent__actions .tv-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 5px;
    font-size: 10.5px;
    line-height: 1.2;
  }
}

@media (max-width: 460px) {
  .page {
    width: calc(100% - 24px);
  }

  .brand svg {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 14px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .card[data-inner="row"] {
    padding: 22px 18px;
  }

  .footer-meta {
    font-size: 12px;
  }
}
