:root {
  --canvas: #fff;
  --ink: #000;
  --navy: #335385;
  --navy-hover: #2a4670;
  --blue: #3e6bb2;
  --slab: #e8eef8;
  --bar: #111;
  --footer: #1b1d24;
  --footer-ink: #fff;
  --legal: #faf8eb;
  --muted: #f3f3f3;
  --line: #d8d8d8;
  --wrap: 1334px;
  --hero: 1600px;
  --prose: 960px;
  --nav-h: 223px;
  --hero-h: 364px;
  --tile-w: 411px;
  --pill-r: 999px;
  --photo-r: 20px;
  --t: 300ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus { left: 8px; top: 8px; z-index: 20; background: #fff; padding: 8px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap--hero { width: min(100%, var(--hero)); }
.prose { width: min(100% - 32px, var(--prose)); margin-inline: auto; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--pill-r);
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t) ease, color var(--t) ease, opacity var(--t) ease;
}
.btn:hover { background: var(--navy-hover); }
.btn--ghost {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn--wide { width: 100%; border-radius: 0 0 10px 10px; }

/* Header — three rows, not sticky */
.header { position: static; background: var(--canvas); }
.util {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  width: min(100% - 32px, var(--hero));
  margin-inline: auto;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.util__soc { display: flex; gap: 10px; }
.util__soc a {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 11px;
}
.util__links { display: flex; flex-wrap: wrap; gap: 14px; }
.util__links a { text-decoration: none; }

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 100px;
  width: min(100% - 32px, var(--hero));
  margin-inline: auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: .04em;
}
.logo img { width: 40px; height: 40px; }
.brand__contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  font-size: 14px;
}
.brand__contacts a { text-decoration: none; }
.icon-btn {
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
  color: var(--navy);
  transition: transform .2s ease;
}
.icon-btn:active { transform: scale(1.12); }

.nav {
  position: relative;
  background: var(--bar);
  color: #fff;
  min-height: 75px;
  display: flex;
  align-items: center;
}
.nav__find {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 20px;
}
.nav__list {
  display: flex;
  justify-content: center;
  gap: 8px 28px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: min(100% - 32px, var(--hero));
  flex-wrap: wrap;
}
.nav__list > li { position: relative; }
.nav__list > li > a,
.nav__list > li > button.nav__top {
  color: #fff;
  text-decoration: none;
  background: none;
  border: 0;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: .04em;
  padding: 22px 0;
  cursor: pointer;
}
.nav__drop {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 8;
  min-width: 240px;
  background: #fff;
  color: var(--ink);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  box-shadow: 0 8px 24px rgb(0 0 0 / .08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--t) ease, transform var(--t) ease, visibility var(--t);
}
.nav__drop a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
}
.nav__list > li:hover > .nav__drop,
.nav__list > li:focus-within > .nav__drop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.nav-bar {
  display: none;
  background: var(--bar);
  color: #fff;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}
.nav-bar button, .nav-bar label { color: #fff; background: none; border: 0; cursor: pointer; text-transform: uppercase; }
.find { display: none; }
.find.is-on { display: block; padding: 8px 16px; background: var(--bar); }
.find input { width: min(100%, 320px); padding: 8px; border: 0; border-radius: 4px; }
.find-list { list-style: none; margin: 8px 0 0; padding: 0; color: #fff; }
.find-list[hidden] { display: none; }

/* Drawer */
.menu {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: #fff;
  overflow: auto;
  padding: 16px;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-100%);
  transition: transform var(--t) ease, visibility var(--t);
}
.menu.is-open {
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.menu a { display: block; padding: 8px 0; text-decoration: none; }
.menu .sub { display: none; padding-left: 12px; }
.menu .sub.is-open { display: block; }

/* Hero */
.hero { position: relative; background: var(--blue); color: #fff; overflow: visible; margin-bottom: 52px; }
.hero__track { display: flex; overflow: hidden; transition: transform var(--t) ease; will-change: transform; }
.hero__slide {
  min-width: 100%;
  min-height: var(--hero-h);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
}
.hero__copy { padding: 40px 8% 40px 10%; }
.hero__copy h2 { margin: 0 0 16px; font-size: 35px; font-weight: 300; text-transform: uppercase; color: #fff; }
.hero__copy ul { margin: 0 0 20px; padding-left: 18px; }
.hero__media { height: var(--hero-h); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__nav, .hero__dots { position: absolute; z-index: 2; }
.hero__nav { top: 50%; transform: translateY(-50%); }
.hero__nav--prev { left: 12px; }
.hero__nav--next { right: 12px; }
.hero__dots { left: 0; right: 0; bottom: -48px; display: flex; justify-content: center; gap: 16px; }
.hero__dots button, .hero__nav button, .slider__nav {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.hero__dots button {
  width: 36px;
  height: 36px;
  background: #e5e5e5;
  transition: background-color var(--t) ease;
}
.hero__dots button.is-on { background: var(--navy); }
.news__dots button {
  width: 14px;
  height: 14px;
  background: #ddd;
  transition: background-color var(--t) ease, transform var(--t) ease;
}
.news__dots button.is-on { background: var(--navy); transform: scale(1.15); }

/* Tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, var(--tile-w)));
  gap: 24px;
  justify-content: center;
  padding: 48px 0 24px;
}
.tile { text-decoration: none; }
.tile__pic {
  position: relative;
  border-radius: var(--photo-r);
  overflow: hidden;
  aspect-ratio: 415 / 300;
  background: var(--muted);
}
.tile__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t) ease;
}
.tile__more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(51 83 133 / .55);
  color: #fff;
  opacity: 0;
  transition: opacity var(--t) ease;
}
.tile:hover .tile__more, .tile:focus-visible .tile__more { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile__pic img, .tile:focus-visible .tile__pic img { transform: scale(1.04); }
  .news-card:hover img, .gallery button:hover img, .letters button:hover img { transform: scale(1.03); }
}
.tile__lbl {
  display: block;
  margin-top: 10px;
  min-height: 58px;
  border-radius: var(--pill-r);
  background: var(--navy);
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  font-size: 14px;
  line-height: 52px;
}

/* Advantages + about */
.section-title {
  margin: 56px 0 24px;
  font-size: 35px;
  font-weight: 300;
  text-align: center;
  text-transform: uppercase;
  color: var(--navy);
}
.adv {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px 40px;
  width: min(100% - 32px, var(--prose));
  margin: 0 auto 24px;
}
.adv h3 { margin: 0 0 6px; font-size: 16px; font-weight: 400; text-transform: uppercase; color: var(--navy); }
.adv p { margin: 0; font-size: 15px; }
.about-btn {
  display: block;
  width: min(100% - 32px, var(--prose));
  margin: 16px auto 40px;
  min-height: 48px;
  border: 0;
  background: var(--muted);
  cursor: pointer;
  text-transform: uppercase;
}
#about[hidden] { display: none; }
#about { padding-bottom: 40px; }
#about .slab {
  background: var(--slab);
  padding: 24px;
  border-radius: 8px;
  margin: 16px 0;
}

/* Consult */
.consult {
  background: var(--blue);
  color: #fff;
  padding: 36px 16px;
  text-align: center;
}
.consult h2 { margin: 0 0 20px; font-size: 22px; font-weight: 300; }
.consult__row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.consult input {
  min-width: 220px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--pill-r);
}

/* Reviews / partners / news */
.reviews, .partners, .news { padding: 8px 0 40px; position: relative; }
.reviews__slide { width: min(100% - 32px, 800px); margin: 0 auto; text-align: center; min-height: 360px; }
.reviews__slide.is-on { animation: fade-in var(--t) ease; }
.reviews__disc {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--blue);
  padding: 16px;
}
.reviews__disc img { width: 100%; height: 100%; object-fit: contain; }
.slider__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.slider__nav--prev { left: 8px; }
.slider__nav--next { right: 8px; }
.partners { overflow: hidden; }
.partners__row {
  display: flex;
  justify-content: flex-start;
  gap: 24px;
  flex-wrap: nowrap;
  width: max-content;
  margin-inline: auto;
  transition: transform var(--t) ease;
  will-change: transform;
}
.partners__row img { width: 88px; height: 88px; border-radius: 50%; background: #fff; flex: 0 0 88px; }
.news__head { display: flex; align-items: center; justify-content: space-between; width: min(100% - 32px, var(--hero)); margin: 0 auto; }
.news__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: min(100% - 32px, var(--hero));
  margin: 0 auto;
}
.news-card { text-decoration: none; }
.news-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--photo-r); transition: transform var(--t) ease; }
.news-card h3 { font-size: 18px; font-weight: 400; }
.news__dots { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.news__dots button { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #ddd; cursor: pointer; }
.news__dots button.is-on { background: var(--navy); }

/* Footer */
.foot {
  background: var(--footer);
  color: var(--footer-ink);
  padding: 48px 0 32px;
  font-size: 14px;
}
.foot a { color: inherit; text-decoration: none; }
.foot__top, .foot__fam {
  width: min(100% - 32px, var(--hero));
  margin-inline: auto;
  display: grid;
  gap: 32px;
}
.foot__top { grid-template-columns: 1.2fr 1fr 1fr; margin-bottom: 40px; }
.foot__fam { grid-template-columns: repeat(4, 1fr); }
.foot h3 { margin: 0 0 12px; font-size: 14px; font-weight: 400; text-transform: uppercase; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 6px 0; }
.foot__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.legal {
  background: var(--legal);
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 5%;
  font-size: 13px;
}
.legal a { color: inherit; }

/* Dialogs */
dialog {
  border: 0;
  padding: 24px;
  width: min(100% - 24px, 420px);
  border-radius: 8px;
}
dialog::backdrop { background: rgb(0 0 0 / .45); }
dialog form { display: grid; gap: 10px; }
dialog input, dialog textarea { padding: 10px; border: 1px solid var(--line); }
.stub { padding: 48px 0 80px; }

.crumbs {
  width: min(100% - 32px, var(--wrap));
  margin: 24px auto 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.crumbs a { text-decoration: none; }
.page-h {
  width: min(100% - 32px, var(--wrap));
  margin: 8px auto 32px;
  font-size: 35px;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--navy);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(100% - 32px, var(--wrap));
  margin: 0 auto 24px;
}
.chips button, .chips a {
  transition: background-color var(--t) ease, color var(--t) ease;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--navy);
  border-radius: var(--pill-r);
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  text-transform: uppercase;
  font-size: 13px;
}
.chips button.is-on, .chips a.is-on { background: var(--navy); color: #fff; }

.ptabs {
  background: var(--navy);
  padding: 16px;
  margin: 0 0 16px;
}
.ptabs__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: min(100% - 16px, var(--wrap));
  margin: 0 auto;
}
.ptabs button {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--pill-r);
  background: var(--muted);
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color var(--t) ease, color var(--t) ease;
}
.ptabs button.is-on { background: #fff; color: var(--navy); }

.acc { width: min(100% - 32px, var(--wrap)); margin: 0 auto 24px; }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%;
  min-height: 59px;
  text-align: left;
  background: var(--muted);
  border: 0;
  border-radius: var(--pill-r);
  margin: 8px 0;
  padding: 0 20px;
  cursor: pointer;
  text-transform: uppercase;
}
.acc__panel { padding: 8px 12px 24px; }
.acc__panel[hidden] { display: none; }
.acc__thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.acc__thumbs img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; }

.help, .quote, .form, .prose {
  width: min(100% - 32px, var(--prose));
  margin: 24px auto;
}
.help { background: var(--slab); padding: 24px; border-radius: 8px; }
.quote, .form { display: grid; gap: 10px; }
.quote input, .quote textarea, .form input, .form textarea {
  padding: 10px;
  border: 1px solid var(--line);
}

.cta-wide {
  display: block;
  width: min(100% - 32px, var(--wrap));
  margin: 16px auto 40px;
  min-height: 52px;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: var(--pill-r);
  text-align: center;
  text-decoration: none;
  line-height: 52px;
  text-transform: uppercase;
}

.letters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(100% - 32px, var(--wrap));
  margin: 0 auto 48px;
  padding: 24px;
  background: var(--slab);
}
.letters button { border: 0; background: none; padding: 0; cursor: pointer; }
.letters img { width: 100%; aspect-ratio: 210 / 297; object-fit: cover; background: #fff; transition: transform var(--t) ease; }

.news-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: center;
  width: min(100% - 32px, var(--wrap));
  margin: 0 auto 32px;
  text-decoration: none;
}
.news-row img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--photo-r); }

.map-art { width: 100%; max-height: 385px; overflow: hidden; background: var(--slab); }
.map-art img { width: 100%; height: 385px; object-fit: cover; }
.addr-bar {
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 72px;
  padding: 12px 16px;
}
.map { width: min(100% - 32px, 560px); height: 315px; margin: 24px auto; background: var(--muted); }
.map iframe, .map img { width: 100%; height: 100%; border: 0; object-fit: cover; }
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: min(100% - 32px, var(--wrap));
  margin: 0 auto 32px;
}
.facts div { background: var(--muted); padding: 20px; min-height: 120px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(100% - 32px, var(--wrap));
  margin: 24px auto;
}
.gallery button { border: 0; background: none; padding: 0; cursor: pointer; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--photo-r); transition: transform var(--t) ease; }
.related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(100% - 32px, var(--wrap));
  margin: 16px auto 48px;
}
.related a {
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--pill-r);
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  display: inline-grid;
  place-items: center;
  text-transform: uppercase;
  font-size: 13px;
}
.stages { width: min(100% - 32px, var(--prose)); margin: 0 auto 32px; }
.stages li { margin: 8px 0; }
#lb { border: 0; padding: 0; background: transparent; max-width: 90vw; }
#lb img { max-width: 90vw; max-height: 90vh; animation: fade-in 250ms ease; }
#lb::backdrop { background: rgb(0 0 0 / .7); }

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 79.99em) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adv { grid-template-columns: 1fr 1fr; }
  .hero__slide { grid-template-columns: 1fr; }
  .hero__media { height: 220px; }
  .news__grid { grid-template-columns: repeat(2, 1fr); }
  .letters { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .news-row { grid-template-columns: 200px 1fr; }
  .foot__top, .foot__fam { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 63.99em) {
  .letters { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 47.99em) {
  .util__links { display: none; }
  .nav, .nav__find { display: none; }
  .nav-bar { display: flex; }
  .brand { flex-direction: column; align-items: flex-start; min-height: auto; padding: 12px 0; }
  .tiles, .adv, .news__grid, .foot__top, .foot__fam, .letters, .gallery, .facts { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 1fr; }
  .page-h, .section-title { font-size: 26px; }
  .legal { flex-direction: column; text-align: center; }
  .partners__row { flex-wrap: wrap; width: auto; transform: none; }
}
