:root {
  --navy: #0e2543;
  --navy-deep: #081729;
  --red: #c1121f;
  --ink: #1c1c1c;
  --muted: #5d6470;
  --line: #dfe3e8;
  --tint: #f2f4f7;
  --paper: #ffffff;
  --wrap: 1120px;
  --serif: "Georgia", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 20px;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--red);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand__mark { width: 26px; height: auto; }

.brand__text {
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: .01em;
}

.nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nav__link {
  color: #d8dee8;
  text-decoration: none;
  font-size: 15px;
  padding: 6px 10px;
  border-radius: 4px;
}

.nav__link:hover { color: #fff; background: rgba(255,255,255,.1); }

.nav__link--accent { color: #fff; background: var(--red); }
.nav__link--accent:hover { background: #a50e19; }

/* ---------- герой ---------- */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding-block: 64px 72px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

.hero__kicker {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  color: #93a4bd;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(30px, 6vw, 62px);
  overflow-wrap: break-word;
  line-height: 1.05;
  margin: 0 0 14px;
  font-weight: 700;
}

.hero__subtitle {
  font-family: var(--serif);
  font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.3;
  margin: 0 0 22px;
  color: #e7ecf4;
}

.hero__subtitle::after {
  content: "";
  display: block;
  width: 92px;
  height: 3px;
  background: var(--red);
  margin-top: 20px;
}

.hero__lead {
  margin: 0 0 30px;
  color: #c3ccdb;
  max-width: 46ch;
}

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 16px;
  border: 1px solid transparent;
}

.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: #a50e19; }

.btn--ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); }

.hero__media img {
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}

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

.section { padding-block: 64px; }
.section--tint { background: var(--tint); }

.section--dark {
  background: var(--navy);
  color: #fff;
}

.section__title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.2;
  margin: 0 0 12px;
}

.section__title::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  background: var(--red);
  margin: 18px 0 30px;
}

.subhead {
  font-family: var(--serif);
  font-size: 21px;
  margin: 32px 0 12px;
}

.lead { font-size: 18px; margin: 0 0 8px; max-width: 68ch; }

/* ---------- карточки ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: 6px;
  padding: 24px;
}

.card p { margin: 0; }

.card__title {
  font-family: var(--serif);
  font-size: 20px;
  margin: 0 0 10px;
  color: var(--navy);
}

.cards--onDark .card {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
  border-top-color: var(--red);
  color: #e7ecf4;
}

/* ---------- списки ---------- */

.list { margin: 0; padding: 0; list-style: none; max-width: 72ch; }

.list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}

.list--dash li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 2px;
  background: var(--red);
}

.list--check li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 7px;
  height: 13px;
  border: solid var(--red);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- цели ---------- */

.goals {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.goal {
  border-left: 3px solid var(--red);
  padding: 4px 0 4px 20px;
}

.goal__num {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--line);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.goal__text { margin: 0; font-size: 18px; }

/* ---------- механизм ---------- */

.deflist { margin: 0; }

.deflist__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.deflist__row:last-child { border-bottom: 1px solid var(--line); }

.deflist dt {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--navy);
}

.deflist dd { margin: 0; }

/* ---------- галерея ---------- */

.gallery {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.slide {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper);
  cursor: zoom-in;
}

.slide:hover { border-color: var(--red); }
.slide:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

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

.contacts {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

.contacts__name {
  font-family: var(--serif);
  font-size: 21px;
  margin: 0 0 12px;
  color: var(--navy);
}

.contacts__about { margin: 0; color: var(--muted); }

.contacts__list { list-style: none; margin: 0; padding: 0; }

.contacts__list li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.contacts__list li:last-child { border-bottom: 1px solid var(--line); }

.contacts__label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 4px;
}

.contacts__list a {
  font-size: 19px;
  text-decoration: none;
  border-bottom: 1px solid var(--red);
}

.contacts__list a:hover { color: var(--red); }

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

.footer {
  background: var(--navy-deep);
  color: #b8c2d2;
  padding-block: 28px;
  font-size: 15px;
}

.footer__inner p { margin: 0 0 4px; }
.footer__muted { color: #7d8ba2; }

/* ---------- лайтбокс ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(6, 12, 22, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox[hidden] { display: none; }

.lightbox__img {
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  width: auto;
  border-radius: 4px;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  line-height: 1;
}

.lightbox__close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 30px;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 72px;
  font-size: 38px;
}

.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }

.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255,255,255,.26); }

.lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  color: #b8c2d2;
  font-size: 14px;
  margin: 0;
}

/* ---------- адаптив ---------- */

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding-block: 44px 52px; }
  .contacts { grid-template-columns: 1fr; gap: 28px; }
  .deflist__row { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding-block: 44px; }
  .brand__text { font-size: 11px; }
  .brand__mark { width: 22px; }
  .nav__link { font-size: 14px; padding: 5px 8px; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
  .lightbox__nav { width: 40px; height: 60px; font-size: 30px; }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
}
