/* =========================================================
   ООО «ТЕХНОСЕРВИС» — metrology37.ru
   Современная тема: сине-бирюзовый инженерный стиль
   ========================================================= */

:root {
  --navy-900: #101c2b;
  --navy-800: #17283b;
  --navy-700: #24445e;
  --navy-600: #315d78;
  --teal-500: #138b83;
  --teal-400: #35b4a7;
  --teal-600: #0d716b;
  --teal-700: #155e59;
  --ink: #17283b;
  --muted: #607080;
  --bg: #f3f5f4;
  --bg-soft: #eaf0ef;
  --card: #ffffff;
  --line: #dce3e6;
  --danger: #d92d20;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(16, 28, 43, 0.045);
  --shadow: 0 12px 30px rgba(16, 28, 43, 0.09);
  --shadow-lg: 0 24px 54px rgba(16, 28, 43, 0.16);

  --container: 1200px;
  --header-h: 76px;

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 12% 12%, rgba(19, 139, 131, .035), transparent 32rem),
    linear-gradient(145deg, #f5f6f4, var(--bg));
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--teal-600); }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  line-height: 1.22;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

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

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

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .82em 1.6em;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease,
    background-color .25s ease, color .25s ease, border-color .25s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover {
  transform: translateY(-3px);
  color: var(--btn-fg);
  box-shadow: var(--shadow);
}
.btn:active { transform: translateY(-1px); }

.btn--accent { --btn-bg: linear-gradient(135deg, var(--teal-500), var(--navy-600)); background: var(--btn-bg); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy-800);
  border-color: rgba(11, 37, 69, .25);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--teal-500); color: var(--teal-600); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-800); }
.btn--light:hover { --btn-fg: var(--teal-600); }

.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy-900);
  color: #c9d8e6;
  font-size: .8rem;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  padding-block: 6px;
}
.topbar a { color: #c9d8e6; }
.topbar a:hover { color: var(--teal-400); }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item svg { width: 15px; height: 15px; stroke: var(--teal-400); flex: none; }
.topbar__group { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 168px; height: auto; }

.nav { margin-left: auto; }
.nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: block;
  position: relative;
  padding: 10px 11px;
  border-radius: 4px;
  color: var(--navy-800);
  font-weight: 600;
  font-size: .9rem;
  transition: color .2s, background-color .2s;
}
.nav a:hover { background: transparent; color: var(--teal-600); }
.nav a.active {
  background: transparent;
  color: var(--teal-600);
}
.nav a.active::after {
  content: "";
  position: absolute;
  right: 11px;
  bottom: 3px;
  left: 11px;
  height: 2px;
  background: var(--teal-500);
}
.nav__phone { display: none; }

.header__phone {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.25;
  font-weight: 700;
  color: var(--navy-800);
  font-size: .94rem;
  white-space: nowrap;
}
.header__phone small {
  font-weight: 500;
  font-size: .74rem;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.header__phone:hover { color: var(--teal-600); }

.burger {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero slider ---------- */
.hero {
  background: var(--navy-900);
  position: relative;
}
.slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: clamp(420px, 38vw, 540px);
}
.slider__slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.06);
  transition: opacity .9s ease, visibility .9s, transform 7s linear;
}
.slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.slider__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(16, 28, 43, .94) 0%, rgba(16, 28, 43, .78) 47%, rgba(16, 28, 43, .16) 100%);
  pointer-events: none;
}
.slider__content {
  color: #fff;
  max-width: 690px;
  pointer-events: auto;
}
.slider__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin: 0 0 .7em;
  padding: .4em 1em;
  border: 1px solid rgba(25, 207, 197, .55);
  border-radius: 4px;
  background: rgba(19, 139, 131, .2);
  color: var(--teal-400);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.slider__title {
  color: #fff;
  margin: 0 0 .35em;
  text-shadow: 0 3px 20px rgba(0, 0, 0, .32);
}
.slider__text {
  margin: 0 0 1.1em;
  font-size: clamp(1rem, .9rem + .5vw, 1.2rem);
  color: #d7e5f1;
}
.slider__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 7px;
  background: rgba(7, 26, 48, .45);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background-color .25s, transform .25s, border-color .25s;
  z-index: 3;
}
.slider__btn:hover {
  background: var(--teal-500);
  border-color: var(--teal-500);
  transform: translateY(-50%) scale(1.07);
}
.slider__btn svg { width: 22px; height: 22px; }
.slider__btn--prev { left: 22px; }
.slider__btn--next { right: 22px; }

.slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 3;
}
.slider__dot {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.slider__dot::after {
  content: "";
  display: block;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 50%;
  background: transparent;
  transition: background-color .25s, transform .25s, width .25s, border-color .25s;
}
.slider__dot.is-active::after {
  width: 26px;
  border-radius: 999px;
  background: var(--teal-500);
  border-color: var(--teal-500);
}
.slider__dot:hover::after { background: rgba(255, 255, 255, .7); }
.slider__dot.is-active:hover::after { background: var(--teal-500); }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 6vw, 84px) 0; }
.section--white {
  background-color: #f8faf9;
  background-image:
    radial-gradient(ellipse at 8% 0%, rgba(19, 139, 131, .055), transparent 38rem),
    radial-gradient(ellipse at 96% 100%, rgba(49, 93, 120, .045), transparent 34rem);
}
.section--soft {
  background:
    radial-gradient(ellipse at 90% 0%, rgba(19, 139, 131, .055), transparent 32rem),
    linear-gradient(135deg, #edf2f0, #e9efef 52%, #eff2f1);
}

.section__head {
  max-width: 820px;
  margin: 0 auto clamp(30px, 4vw, 50px);
  text-align: center;
}
.section__head--left { margin-inline: 0; text-align: left; }
.section__eyebrow {
  display: block;
  margin-bottom: .55em;
  color: var(--teal-700); /* контраст 4.5:1 на светлом фоне */
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.section__lead {
  color: var(--muted);
  font-size: clamp(1rem, .95rem + .3vw, 1.12rem);
  margin: 0;
}
.section__head--left .section__lead { margin-top: -.2em; }

/* ---------- Feature cards ---------- */
.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.feature {
  position: relative;
  padding: 30px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.feature::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-500), var(--navy-600));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: #cfe2ee;
}
.feature:hover::after { transform: scaleX(1); }

.feature__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 9px;
  background: #e7f2f0;
  color: var(--teal-700);
}
.feature__icon svg { width: 28px; height: 28px; }
.feature h3 { margin-bottom: .45em; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Services preview (index) ---------- */
.svc-preview {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.svc-tile {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  box-shadow: var(--shadow-sm);
  background: var(--navy-800);
}
.svc-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease, filter .4s ease;
}
.svc-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 26, 48, 0) 35%, rgba(7, 26, 48, .88) 100%);
  transition: opacity .35s;
}
.svc-tile__title {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 2;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.svc-tile__title span.arrow {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--teal-500);
  transform: translateX(-6px);
  opacity: 0;
  transition: transform .35s, opacity .35s;
}
.svc-tile:hover img { transform: scale(1.08); }
.svc-tile:hover .arrow { transform: translateX(0); opacity: 1; }

/* ---------- Flip cards (Услуги) ---------- */
.flip-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* все карточки 2×2 — одинаковой высоты (берётся по самому длинному описанию) */
  grid-auto-rows: 1fr;
}

.flipcard {
  position: relative;
  perspective: 1400px;
  border-radius: var(--radius);
  cursor: pointer;
  outline-offset: 4px;
}
.flipcard__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.4, .1, .2, 1);
}
.flipcard:hover .flipcard__inner,
.flipcard:focus-visible .flipcard__inner,
.flipcard.is-flipped .flipcard__inner {
  transform: rotateY(180deg);
}

.flipcard__face {
  border-radius: var(--radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: var(--shadow);
}

.flipcard__front {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--navy-800);
}
/* фото занимает карточку целиком, обрезаясь по бокам */
.flipcard__front img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* мягкая полутень сверху — подпись читается на любом снимке */
.flipcard__front::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(7, 26, 48, .82) 0%,
    rgba(7, 26, 48, .45) 14%,
    rgba(7, 26, 48, 0) 32%);
}
.flipcard__title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 20px 20px 30px;
  text-align: center;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}
.flipcard__back {
  position: relative;
  flex: 1 1 auto;
  transform: rotateY(180deg);
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
  color: #dbe8f3;
  display: flex;
  flex-direction: column;
  padding: 26px 28px 30px;
}
.flipcard__back h3 {
  color: #fff;
  font-size: 1.2rem;
  margin: 0 0 .7em;
  padding-bottom: .6em;
  border-bottom: 2px solid rgba(25, 207, 197, .55);
  flex: none;
}
.flipcard__text {
  font-size: .88rem;
  line-height: 1.6;
}
.flipcard__text p { margin: 0; }
.flipcard__text p + p { margin-top: .75em; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 76% 12%, rgba(53, 180, 167, .2), transparent 34%),
    radial-gradient(ellipse at 100% 110%, rgba(49, 93, 120, .38), transparent 42%),
    linear-gradient(115deg, #101c2b 0%, #1a3042 56%, #203b50 100%);
  color: #fff;
  padding: clamp(40px, 5vw, 66px) 0;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(58%, 760px);
  background:
    radial-gradient(circle at 72% 54%, transparent 0 74px, rgba(210, 233, 229, .13) 75px 76px, transparent 77px 112px, rgba(210, 233, 229, .09) 113px 114px, transparent 115px 154px, rgba(210, 233, 229, .06) 155px 156px, transparent 157px),
    radial-gradient(ellipse at 76% 54%, rgba(53, 180, 167, .08), transparent 52%);
  opacity: .8;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 28%);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 8%, rgba(53, 180, 167, .65) 50%, rgba(210, 233, 229, .15) 92%, transparent);
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p {
  margin: 0;
  max-width: 760px;
  color: #c6d8e8;
  font-size: clamp(1rem, .95rem + .35vw, 1.13rem);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  font-size: .85rem;
  color: #8fabc4;
}
.breadcrumb a { color: var(--teal-400); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: #5f7f9c; }

/* ---------- Content / prose ---------- */
.prose {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.4vw, 44px);
  box-shadow: var(--shadow-sm);
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--navy-800); }

.layout-2 {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr);
  align-items: start;
}
.media-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.media-card img { width: 100%; height: auto; }
.media-card figcaption {
  padding: 14px 18px;
  font-size: .9rem;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

.stats {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-top: 28px;
}
.stat {
  padding: 22px 18px;
  text-align: center;
  background: linear-gradient(160deg, #fff, #f7fbfd);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.stat b {
  display: block;
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem);
  color: var(--navy-800);
  line-height: 1.1;
}
.stat span { font-size: .87rem; color: var(--muted); }

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--muted);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .32em;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--teal-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- Price table ---------- */
.price-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.price-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 320px;
  max-width: 460px;
}
.price-search svg {
  position: absolute;
  left: 15px;
  width: 19px;
  height: 19px;
  color: var(--muted);
  pointer-events: none;
}
.price-search input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: .97rem;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.price-search input:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(18, 179, 171, .16);
}
.price-count {
  font-size: .88rem;
  color: var(--muted);
  font-weight: 600;
}
.price-empty {
  margin-top: 18px;
  padding: 18px 22px;
  background: #fff7ed;
  border: 1px dashed #f4c68a;
  border-radius: var(--radius-sm);
  color: #92400e;
}

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
table.price {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: .97rem;
}
table.price thead th {
  position: sticky;
  top: 0;
  background: var(--navy-800);
  color: #fff;
  text-align: left;
  padding: 16px 18px;
  font-size: .87rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-weight: 700;
}
table.price tbody td {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  color: var(--muted);
}
table.price tbody tr:hover td { background: #f6fbfd; }
table.price tbody td:first-child { color: var(--ink); }
table.price .price__group td {
  background: var(--bg-soft);
  color: var(--navy-800);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .86rem;
}
table.price tbody tr:hover .price__group td { background: var(--bg-soft); }
table.price .price__value {
  white-space: nowrap;
  font-weight: 700;
  color: var(--navy-800);
}
.note {
  margin-top: 22px;
  padding: 20px 24px;
  border-left: 4px solid var(--teal-500);
  background: #fff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow-sm);
  color: var(--muted);
  font-size: .95rem;
}
.note ol { margin: 0; padding-left: 20px; }
.note li + li { margin-top: 6px; }

/* ---------- Contacts ---------- */
.contact-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.contact-card {
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.contact-card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal-500), var(--navy-600));
  color: #fff;
}
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1.02rem; margin-bottom: .4em; }
.contact-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.contact-card a { color: var(--navy-700); font-weight: 600; }

.requisites {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px 24px;
  margin-top: 8px;
  font-size: .95rem;
  color: var(--muted);
}
.requisites b { color: var(--navy-800); }

.map-frame {
  margin-top: 30px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-soft);
  min-height: 320px;
}

/* ---------- Form ---------- */
.form {
  display: grid;
  gap: 16px;
}
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: grid; gap: 7px; }
.field label {
  font-size: .87rem;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: .03em;
}
.field label span { color: var(--danger); }
.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  font-size: .98rem;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(18, 179, 171, .16);
}
.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.form__hint { font-size: .85rem; color: var(--muted); margin: 0; }
.form__status {
  display: none;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  background: rgba(18, 179, 171, .12);
  border: 1px solid rgba(18, 179, 171, .45);
  color: var(--teal-600);
  font-size: .94rem;
  font-weight: 600;
}
.form__status.is-visible { display: block; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(52px, 7vw, 96px) 0;
  background: var(--navy-900) url("../img/sli.jpg") center / cover no-repeat;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(16, 28, 43, .96) 10%, rgba(16, 28, 43, .76) 70%, rgba(13, 113, 107, .48));
}
.cta .container { position: relative; z-index: 2; }
.cta h2 { color: #fff; margin-bottom: .4em; }
.cta p { color: #c9dbe9; max-width: 660px; margin-bottom: 1.5em; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #a9c0d4;
  font-size: .95rem;
  padding-top: 54px;
}
.footer__grid {
  display: grid;
  gap: 34px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  padding-bottom: 40px;
}
.footer__title {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.site-footer p { margin: 0 0 .7em; }
.site-footer a { color: #a9c0d4; }
.site-footer a:hover { color: var(--teal-400); }
.footer__brand img {
  width: 190px;
  height: auto;
  background: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__contacts li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contacts svg { width: 17px; height: 17px; flex: none; margin-top: 5px; stroke: var(--teal-400); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  align-items: center;
  font-size: .87rem;
  color: #7e97ad;
}
.footer__bottom p { margin: 0; }
.footer__metrics {
  display: flex;
  justify-content: flex-end;
  padding: 0 0 20px;
}
.footer__metrics a,
.footer__metrics img { display: block; }
.footer__metrics img { width: 88px; height: 31px; }
.ym-noscript { position: absolute; left: -9999px; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .header__phone { display: none; }
  .nav a { padding: 9px 11px; font-size: .94rem; }
}

@media (max-width: 920px) {
  .burger { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav.is-open { max-height: 420px; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 18px; }
  .nav a { padding: 13px 16px; border-radius: 10px; }
  .nav li + li { margin-top: 4px; }
  .nav__phone {
    display: block;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .nav__phone a {
    background: linear-gradient(135deg, var(--teal-500), var(--navy-600));
    color: #fff;
    text-align: center;
    font-weight: 700;
    letter-spacing: .02em;
  }
  .nav__phone a:hover {
    background: linear-gradient(135deg, var(--teal-600), var(--navy-700));
    color: #fff;
  }
  .header__inner { min-height: 66px; }
  .brand img { width: 148px; }
  .layout-2 { grid-template-columns: 1fr; }
  .topbar { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .slider { height: 420px; }
  .slider__overlay { background: linear-gradient(180deg, rgba(16, 28, 43, .48), rgba(16, 28, 43, .94)); }
  .slider__btn { width: 42px; height: 42px; }
  .slider__btn--prev { left: 10px; }
  .slider__btn--next { right: 10px; }
  .slider__btn svg { width: 18px; height: 18px; }
  .slider__content { text-align: left; }
  .slider__dots { bottom: 10px; }
}

@media (max-width: 900px) {
  .flip-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .flipcard { aspect-ratio: 1452 / 882; }
  .flipcard__inner { height: 100%; min-height: 0; }
  .flipcard__back { position: absolute; inset: 0; flex: none; overflow-y: auto; }
  .flipcard:hover .flipcard__inner,
  .flipcard:focus-visible .flipcard__inner { transform: none; }
  .flipcard.is-flipped { aspect-ratio: auto; }
  .flipcard.is-flipped .flipcard__inner {
    display: block;
    height: auto;
    min-height: 0;
    transform: rotateY(180deg);
  }
  .flipcard.is-flipped .flipcard__front {
    position: absolute;
    inset: 0 0 auto;
    aspect-ratio: 1452 / 882;
  }
  .flipcard.is-flipped .flipcard__back {
    position: relative;
    inset: auto;
    flex: none;
    overflow: visible;
  }
}

@media (max-width: 600px) {
  .flip-grid { grid-template-columns: 1fr; }
  .flipcard__back { padding: 22px 20px 26px; }
}

@media (max-width: 640px) {
  .slider { height: 345px; }
  .slider__text { display: none; }
  .slider__eyebrow { font-size: .7rem; letter-spacing: .1em; padding: .35em .8em; }
}

@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .btn { width: 100%; justify-content: center; }
  .slider__actions .btn { width: auto; }
  .footer__bottom { justify-content: center; text-align: center; }
  .footer__metrics { justify-content: center; }
}
