:root {
  --ink: #07111f;
  --graphite: #102033;
  --muted: #667483;
  --paper: #f4f7f8;
  --paper-2: #e9f3f5;
  --white: #ffffff;
  --line: rgba(16, 32, 51, .14);
  --red: #c41230;
  --blue: #007f9f;
  --teal: #35adbb;
  --deep: #003846;
  --shadow: 0 18px 48px rgba(7, 17, 31, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  accent-color: var(--deep);
}

::selection {
  color: var(--white);
  background: var(--blue);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}

a {
  color: inherit;
  text-decoration-color: rgba(196, 18, 48, .45);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration-color: var(--red);
}

h2,
h3,
[id] {
  scroll-margin-top: 92px;
}

img,
video {
  display: block;
  width: 100%;
  height: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 74px;
  padding: 12px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: rgba(0, 56, 70, .94);
  border-bottom: 1px solid rgba(255, 255, 255, .13);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
  text-decoration: none;
}

.brand img {
  width: 150px;
  max-width: 42vw;
}

.brand span {
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.nav a {
  display: inline-block;
  padding: 5px 2px;
  opacity: .84;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  color: #61d2dc;
  opacity: 1;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(100vh - 74px);
  overflow: hidden;
  color: var(--white);
  background: var(--deep);
  isolation: isolate;
}

.hero.short {
  min-height: 46vh;
}

.hero video,
.hero .hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.08);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 50, 64, .94), rgba(0, 50, 64, .24) 58%, rgba(0, 50, 64, .66)),
    linear-gradient(0deg, rgba(7, 17, 31, .9), rgba(7, 17, 31, .05) 50%, rgba(0, 56, 70, .42));
}

.hero-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(56px, 9vh, 104px) 0 clamp(36px, 6vh, 64px);
}

.hero-copy {
  max-width: 820px;
}

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

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  line-height: 1.18;
  letter-spacing: -.01em;
  text-wrap: balance;
}

h1 {
  max-width: 880px;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.12;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.1;
}

h2 {
  margin: 40px 0 12px;
  font-size: clamp(25px, 2.6vw, 32px);
}

h3 {
  margin: 28px 0 8px;
  font-size: 20px;
}

.eyebrow + h1,
.eyebrow + h2,
h2:first-child,
h3:first-child {
  margin-top: 0;
}

p {
  margin: 0;
}

.tagline {
  max-width: 720px;
  margin-top: 12px;
  color: var(--teal);
  font-size: clamp(19px, 2.2vw, 23px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
}

.lead {
  max-width: 720px;
  margin-top: 16px;
  color: rgba(255, 255, 255, .88);
  font-size: 18px;
}

.section-lead {
  max-width: 720px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 6px;
  color: var(--white);
  background: rgba(255, 255, 255, .08);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}

.button:hover {
  background: rgba(255, 255, 255, .18);
}

.button:active {
  transform: translateY(1px);
}

.button.primary {
  border-color: var(--red);
  background: var(--red);
}

.button.primary:hover {
  border-color: #a80f29;
  background: #a80f29;
}

.button.light {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.button.light:hover {
  border-color: rgba(16, 32, 51, .3);
  background: var(--paper);
}

.button.dark {
  color: var(--white);
  border-color: var(--deep);
  background: var(--deep);
}

.button.dark:hover {
  border-color: #00506a;
  background: #00506a;
}

.next-hint {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 24px;
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.band {
  padding: clamp(48px, 6vw, 88px) 0;
  background: var(--white);
}

.band.tint {
  background: var(--paper);
}

.band.deep {
  color: var(--white);
  background: var(--graphite);
}

.wrap {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

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

.card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.tint .card {
  background: rgba(255, 255, 255, .82);
}

.card h3 {
  margin-bottom: 8px;
  color: var(--graphite);
  font-size: 20px;
}

.card p,
.card li {
  color: var(--muted);
  font-size: 16px;
}

.card p + p {
  margin-top: 10px;
}

.media-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.split > .media-frame {
  position: sticky;
  top: 94px;
}

.article .media-frame,
figure.article-media {
  margin: 28px 0;
}

.media-frame img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-frame img.focus-bottom {
  object-position: center bottom;
}

.media-frame img.focus-top {
  object-position: center top;
}

.caption {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 14px;
}

.steps {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 14px 18px;
  border-left: 3px solid var(--teal);
  background: var(--paper);
  font-size: 16px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.fact {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.fact strong {
  display: block;
  margin-bottom: 6px;
  color: var(--graphite);
  font-size: 24px;
  line-height: 1.1;
}

.fact span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.tint .fact {
  background: var(--white);
}

.deep .fact {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .07);
}

.deep .fact strong {
  color: var(--white);
}

.deep .fact span {
  color: rgba(255, 255, 255, .74);
}

.timeline {
  position: relative;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 30px 36px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 10px;
  height: 10px;
  border: 3px solid var(--teal);
  border-radius: 50%;
  background: var(--white);
}

.timeline .year {
  display: block;
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
}

.timeline h3 {
  margin: 2px 0 6px;
}

.timeline p {
  margin: 0;
  color: #4b5866;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.gallery img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery figcaption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 14px;
}

.archive-pages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.archive-page {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.archive-page img {
  background: #eef1f3;
}



.form-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-title {
  margin: 0 0 4px;
  font-size: 19px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--graphite);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 13px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 127, 159, .18);
}

::placeholder {
  color: #93a0ad;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 22px;
  color: var(--muted);
  font-size: 14px;
}

.form-status.ok {
  color: #087c4c;
}

.form-status.error {
  color: var(--red);
}

.breadcrumbs {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a {
  color: var(--muted);
}

.article {
  max-width: 760px;
}

.article p,
.article li {
  color: #4b5866;
  font-size: 16px;
  text-wrap: pretty;
}

.article p {
  margin: 0 0 16px;
}

.article p:last-child {
  margin-bottom: 0;
}

.article p.article-slogan {
  margin: 4px 0 18px;
  padding-left: 16px;
  border-left: 3px solid var(--teal);
  color: var(--deep);
  font-size: 19px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
}

.article h2 {
  color: var(--graphite);
}

.article h3 {
  color: var(--graphite);
}

.article ul,
.article ol {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding-left: 22px;
}

.article .facts {
  margin-bottom: 8px;
}

.footer {
  padding: 30px 0;
  color: rgba(255, 255, 255, .72);
  background: #07111f;
  font-size: 14px;
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}

.footer a {
  text-decoration-color: rgba(255, 255, 255, .3);
}

.footer a:hover {
  color: var(--white);
  text-decoration-color: var(--teal);
}

@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .split {
    grid-template-columns: 1fr;
  }

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

  .split > .media-frame {
    position: static;
  }

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

  .hero {
    min-height: 82vh;
  }

  h2,
  h3,
  [id] {
    scroll-margin-top: 130px;
  }
}

@media (max-width: 700px) {
  .grid,
  .grid.two,
  .archive-pages,
  .gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar {
    min-height: 0;
  }

  .brand {
    min-width: 0;
  }

  .brand span {
    display: none;
  }

  .hero-inner {
    padding-top: 48px;
  }

  .hero h1 {
    font-size: 30px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 22px;
  }

  .facts {
    gap: 10px;
  }

  .fact {
    padding: 14px;
  }

  .fact strong {
    font-size: 19px;
  }

  .card,
  .form-panel {
    padding: 20px;
  }
}


/* Чекбокс согласия на обработку персональных данных (152-ФЗ) */
.consent-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.consent-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--deep);
  cursor: pointer;
}
.consent-check a {
  color: var(--blue);
  text-decoration-color: rgba(0, 127, 159, .5);
}

.legal-note {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #4b5866;
  background: var(--paper);
  font-size: 15px;
  line-height: 1.6;
}

/* Карусель фото (scroll-snap, без JS) */
.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 620px);
  gap: 14px;
  margin-top: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.carousel figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  scroll-snap-align: start;
}

.carousel img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.carousel figcaption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 14px;
}

/* Нумерованные карточки с крупной полупрозрачной цифрой */
.grid.numbered {
  counter-reset: reason;
}

.grid.numbered .card {
  position: relative;
  overflow: hidden;
  counter-increment: reason;
}

.grid.numbered .card::before {
  content: counter(reason);
  position: absolute;
  top: -18px;
  right: 6px;
  z-index: 0;
  color: var(--deep);
  opacity: .08;
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.grid.numbered .card > * {
  position: relative;
  z-index: 1;
}

/* Список преимуществ с иконками */
.icon-list {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.icon-list li {
  position: relative;
  padding-left: 44px;
}

.icon-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background-color: var(--paper-2);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 17px;
}

.icon-list li.i-scan::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007f9f' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 8V5a1 1 0 0 1 1-1h3M16 4h3a1 1 0 0 1 1 1v3M20 16v3a1 1 0 0 1-1 1h-3M8 20H5a1 1 0 0 1-1-1v-3'/%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3C/svg%3E");
}

.icon-list li.i-path::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007f9f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 17c3-6 5 4 8-2s5-8 8-6'/%3E%3Ccircle cx='4' cy='17' r='1.6' fill='%23007f9f'/%3E%3Ccircle cx='20' cy='9' r='1.6' fill='%23007f9f'/%3E%3C/svg%3E");
}

.icon-list li.i-check::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007f9f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.icon-list li.i-shield::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007f9f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 5-3.5 8-7 10-3.5-2-7-5-7-10V6z'/%3E%3C/svg%3E");
}

/* Акценты в статьях: линия + жирный */
.article a {
  font-weight: 600;
}
