/* ============================================================
   Геопроект — v2 «Строгий корпоративный»
   Светлая тема, швейцарская сетка, тонкие линии, один акцент
   ============================================================ */

/* ---------- Токены ---------- */
:root {
  --ink: #0d1f2d;          /* чернильно-синий — основной текст */
  --ink-2: #16324a;
  --paper: #ffffff;
  --paper-2: #f4f7f9;      /* светло-серо-голубой фон секций */
  --line: #dde4ea;         /* тонкие разделительные линии */
  --muted: #5a6b7b;        /* второстепенный текст */
  --accent: #0090bb;       /* сдержанный циан (фирменный) */
  --accent-dark: #007495;
  --error: #c0392b;
  --ok: #1d7a53;

  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 2px;           /* почти прямые углы — строгость */
  --header-h: 74px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 1px 2px rgba(13, 31, 45, 0.05), 0 8px 28px rgba(13, 31, 45, 0.07);
}

/* ---------- Базовое ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 14px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.18; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.012em; color: var(--ink); }
p { margin: 0 0 1em; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: rgba(0, 144, 187, 0.22); }

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  transition: top 0.25s;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.container--narrow { width: min(860px, 92%); }

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--alt { background: var(--paper-2); border-block: 1px solid var(--line); }

/* ---------- Заголовки секций: номер + подпись ---------- */
.section-head {
  display: flex;
  gap: clamp(18px, 3vw, 34px);
  align-items: flex-start;
  margin-bottom: clamp(36px, 5vw, 58px);
}
.section-head__num {
  margin: 6px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  -webkit-text-stroke: 2px #c8d4de;
  paint-order: stroke fill;
  letter-spacing: -0.02em;
  flex: none;
  font-variant-numeric: tabular-nums;
}
.section-head__eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.section-head__title { font-size: clamp(1.65rem, 3.6vw, 2.4rem); margin: 0; }
.section-head__note { color: var(--muted); margin: 12px 0 0; }
.section-head__note a { font-weight: 600; border-bottom: 1px solid currentColor; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.22s, color 0.22s, border-color 0.22s, transform 0.22s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

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

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--paper-2); color: var(--ink); }

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.btn--outline-light:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, 0.12); }

.btn--lg { padding: 17px 40px; font-size: 1.02rem; }
.btn--sm { padding: 10px 20px; font-size: 0.9rem; }

/* ---------- Прогресс скролла ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.header--scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(13, 31, 45, 0.06); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}

.logo { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); }
.logo__mark { width: 44px; height: 44px; flex: none; }
.logo__text {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: 1.14rem;
  line-height: 1.05;
  letter-spacing: 0.005em;
}
.logo__text small {
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: block;
  padding: 9px 15px;
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--ink-2);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav__link:hover { color: var(--accent-dark); }
.nav__link.is-active { color: var(--accent-dark); border-bottom-color: var(--accent); font-weight: 600; }

.nav__cta-mobile { display: none; }

.header__phone {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  white-space: nowrap;
  padding: 10px 18px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  transition: background-color 0.22s, color 0.22s;
}
.header__phone:hover { background: var(--ink); color: #fff; }

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 11px;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  margin-left: auto;
}
.burger span {
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg img { object-fit: cover; will-change: transform; }
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 31, 45, 0.62) 0%, rgba(13, 31, 45, 0.35) 45%, rgba(13, 31, 45, 0.93) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-block: clamp(120px, 18vh, 180px) clamp(110px, 15vh, 150px);
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 22px;
  padding-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9fd8ea;
  border-bottom: 1px solid rgba(159, 216, 234, 0.4);
}

.hero__title {
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 800;
  margin: 0 0 20px;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  max-width: 580px;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.5;
  color: #dbe6ef;
  margin: 0 0 36px;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
}

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

.hero__scroll {
  position: absolute;
  right: clamp(18px, 4vw, 48px);
  bottom: 28px;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  background: rgba(13, 31, 45, 0.35);
  animation: bob 2.6s ease-in-out infinite;
  transition: border-color 0.25s, background-color 0.25s;
}
.hero__scroll:hover { border-color: #fff; background: rgba(13, 31, 45, 0.6); }
.hero__scroll svg { width: 20px; height: 20px; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- Метрики ---------- */
.metrics { position: relative; z-index: 3; margin-top: -64px; }
.metrics__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-soft);
}
.metric {
  padding: clamp(26px, 4vw, 44px) 24px;
  text-align: center;
  border-left: 1px solid var(--line);
  transition: background-color 0.25s;
}
.metric:first-child { border-left: none; }
.metric:hover { background: var(--paper-2); }
.metric__value {
  display: block;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.metric__label {
  display: block;
  margin-top: 8px;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- О компании ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 5vw, 68px);
  align-items: start;
}
.about__text p { color: var(--muted); font-size: 1.06rem; }
.about__text p:first-child {
  font-size: 1.24rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.5;
}
.about__media {
  margin: 0;
  border: 1px solid var(--line);
  background: #fff;
}
.about__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about__media figcaption {
  padding: 13px 18px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  border-top: 1px solid var(--line);
  letter-spacing: 0.02em;
}

/* ---------- FAQ ---------- */
.faq__list { display: grid; gap: 0; border-top: 1px solid var(--line); }

.faq__item { border-bottom: 1px solid var(--line); background: #fff; transition: background-color 0.25s; }
.faq__item[open] { background: var(--paper-2); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 6px;
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent-dark); }

.faq__icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s, background-color 0.25s;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: var(--ink);
  translate: -50% -50%;
  transition: rotate 0.3s var(--ease), background-color 0.25s;
}
.faq__icon::after { rotate: 90deg; }
.faq__item[open] .faq__icon { border-color: var(--accent); background: var(--accent); }
.faq__item[open] .faq__icon::before,
.faq__item[open] .faq__icon::after { background: #fff; }
.faq__item[open] .faq__icon::after { rotate: 0deg; }

.faq__body { padding: 0 6px; }
.faq__body p { color: var(--muted); margin: 0 0 22px; max-width: 68ch; }
.faq__item[open] .faq__body { animation: faqOpen 0.35s var(--ease); }
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Услуги ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  position: relative;
  padding: 34px 28px 32px;
  background: #fff;
  border-top: 2px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.service-card:hover { border-top-color: var(--accent); background: var(--paper-2); }

.service-card__num {
  position: absolute;
  top: 26px;
  right: 26px;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  -webkit-text-stroke: 1.6px #c8d4de;
  paint-order: stroke fill;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s, -webkit-text-stroke-color 0.3s;
}
.service-card:hover .service-card__num {
  color: var(--accent);
  -webkit-text-stroke-color: var(--accent);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: var(--accent-dark);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  transition: border-color 0.3s, background-color 0.3s;
}
.service-card:hover .service-card__icon { border-color: var(--accent); background: #fff; }
.service-card__icon svg { width: 28px; height: 28px; }

.service-card h3 { font-size: 1.16rem; margin-bottom: 10px; padding-right: 40px; }
.service-card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* Шестая плитка услуг: фото с призывом */
.service-card--promo {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0;
  min-height: 240px;
  background: var(--ink);
  overflow: hidden;
  border-top-color: transparent;
}
.service-card--promo:hover { background: var(--ink); }
.service-card--promo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95);
  transition: transform 0.55s var(--ease);
}
.service-card--promo:hover img { transform: scale(1.05); }
.service-card--promo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 31, 45, 0.08) 25%, rgba(13, 31, 45, 0.55) 60%, rgba(13, 31, 45, 0.92) 100%);
}
.service-card__promo-body {
  position: relative;
  z-index: 2;
  padding: 26px 28px 30px;
}
.service-card__promo-body h3 {
  color: #fff;
  margin-bottom: 6px;
  padding-right: 0;
}
.service-card__promo-body p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 14px;
  font-size: 0.95rem;
  max-width: 30ch;
}
.service-card__promo-link {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  color: #7fd0e8;
  padding-bottom: 3px;
  border-bottom: 1.5px solid rgba(127, 208, 232, 0.5);
  transition: color 0.22s, border-color 0.22s;
}
.service-card--promo:hover .service-card__promo-link { color: #fff; border-color: #fff; }

/* ---------- Кейсы ---------- */
.cases__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.case-card {
  display: grid;
  grid-template-columns: clamp(180px, 34%, 250px) 1fr;
  background: #fff;
  border: 1px solid var(--line);
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.case-card:hover {
  border-color: #c8d4de;
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}
.case-card__media {
  overflow: hidden;
  border-right: 1px solid var(--line);
  min-height: 212px;
}
.case-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 0.55s var(--ease), filter 0.4s;
}
.case-card:hover .case-card__media img { transform: scale(1.05); filter: saturate(1.05); }
.case-card__body {
  padding: 26px 30px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.case-card__num {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  -webkit-text-stroke: 1.8px #c8d4de;
  paint-order: stroke fill;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s, -webkit-text-stroke-color 0.3s;
}
.case-card:hover .case-card__num {
  color: var(--accent);
  -webkit-text-stroke-color: var(--accent);
}
.case-card__body h3 { font-size: 1.14rem; margin-bottom: 8px; }
.case-card__body p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ---------- CTA ---------- */
.cta { background: var(--ink); border-block: 1px solid var(--ink); }
.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(56px, 8vw, 88px) 0;
  position: relative;
}
.cta__inner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 56px;
  height: 1px;
  background: var(--accent);
}
.cta__title {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  color: #fff;
  letter-spacing: -0.015em;
}

/* ---------- Галерея ---------- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gallery__item {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: none;
  aspect-ratio: 4 / 3;
  transition: border-color 0.25s, box-shadow 0.3s;
}
.gallery__item:hover { border-color: var(--accent); box-shadow: var(--shadow-soft); }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 0.55s var(--ease), filter 0.4s;
}
.gallery__item:hover img { transform: scale(1.05); filter: saturate(1.05); }
.gallery__item::after {
  content: "+";
  position: absolute;
  top: 8px;
  right: 13px;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s;
  text-shadow: 0 1px 6px rgba(13, 31, 45, 0.7);
}
.gallery__item:hover::after { opacity: 1; }

/* ---------- Параллакс ---------- */
.parallax {
  position: relative;
  min-height: clamp(340px, 50vh, 520px);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}
.parallax__bg, .parallax__bg img { position: absolute; inset: -12% 0; width: 100%; height: 124%; }
.parallax__bg img { object-fit: cover; will-change: transform; }
.parallax__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--paper) 0%, rgba(13, 31, 45, 0.62) 22%, rgba(13, 31, 45, 0.62) 78%, var(--paper-2) 100%);
}
.parallax__caption { position: relative; z-index: 2; text-align: center; }
.parallax__caption p {
  margin: 0;
  font-size: clamp(1.35rem, 3.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  text-transform: uppercase;
}

/* ---------- Форма ---------- */
.form {
  padding: clamp(28px, 4vw, 46px);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  box-shadow: var(--shadow-soft);
}

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form__field { margin-bottom: 22px; }
.form__field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}
.form__field label span { color: var(--accent-dark); }

.form__field input,
.form__field textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.22s, background-color 0.22s, box-shadow 0.22s;
}
.form__field textarea { resize: vertical; min-height: 132px; }
.form__field input::placeholder,
.form__field textarea::placeholder { color: #9aa8b5; }
.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 144, 187, 0.14);
}
.form__field.has-error input,
.form__field.has-error textarea { border-color: var(--error); background: #fdf5f4; }

.form__error {
  display: block;
  min-height: 20px;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--error);
}

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.form__hint { flex: 1 1 260px; margin: 0; font-size: 0.84rem; color: var(--muted); }

.form__status {
  margin: 20px 0 0;
  padding: 14px 18px;
  font-weight: 500;
  border-radius: var(--radius);
}
.form__status--success {
  color: var(--ok);
  background: #eef7f2;
  border: 1px solid #bcdccb;
}
.form__status--error {
  color: var(--error);
  background: #fdf3f2;
  border: 1px solid #ecc8c3;
}
.form__status a { color: inherit; text-decoration: underline; }

/* ---------- Контакты ---------- */
.contacts__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: stretch;
}

.contacts__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  background: #fff;
}
.contacts__item {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s;
}
.contacts__item:last-child { border-bottom: none; }
.contacts__item:hover { background: var(--paper-2); }
.contacts__icon {
  flex: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--accent-dark);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}
.contacts__icon svg { width: 24px; height: 24px; }
.contacts__item b {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.contacts__item a, .contacts__item span {
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 500;
}
.contacts__item a:hover { color: var(--accent-dark); }

.contacts__map {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: #fff;
  min-height: 380px;
}
.contacts__map iframe { flex: 1; width: 100%; min-height: 340px; border: 0; }
.contacts__map-link {
  padding: 14px;
  text-align: center;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink);
  border-top: 1px solid var(--line);
  transition: background-color 0.25s, color 0.25s;
}
.contacts__map-link:hover { background: var(--ink); color: #fff; }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: #c6d3de; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(48px, 6vw, 76px) 0 44px;
}
.footer__col h3 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.footer__col p { color: #b3c2cf; font-size: 0.94rem; line-height: 1.85; margin: 0; }
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 0.96rem;
  color: #b3c2cf;
}
.footer__list a { color: #c6d3de; transition: color 0.2s; }
.footer__list a:hover { color: #7fd0e8; }

.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 22px 0; }
.footer__bottom p { margin: 0; font-size: 0.88rem; color: #8ea0b0; text-align: center; }

/* ---------- Кнопка наверх ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s, background-color 0.25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent-dark); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Лайтбокс ---------- */
.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 92vw;
  max-height: 92vh;
}
.lightbox::backdrop { background: rgba(13, 31, 45, 0.9); }
.lightbox[open] { animation: lbIn 0.28s var(--ease); display: block; }
@keyframes lbIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}
.lightbox__figure { margin: 0; position: relative; }
.lightbox__figure img {
  max-width: 92vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox__caption {
  margin-top: 14px;
  text-align: center;
  color: #c6d3de;
  font-size: 0.94rem;
}
.lightbox__close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s;
}
.lightbox__close:hover { background: var(--accent); border-color: var(--accent); }
.lightbox__close svg { width: 20px; height: 20px; }
.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s;
}
.lightbox__nav:hover { background: var(--accent); border-color: var(--accent); }
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }

/* ---------- Reveal-анимации ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

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

/* ---------- Адаптив ---------- */
@media (max-width: 992px) {
  .about__grid { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cases__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .case-card { grid-template-columns: 1fr; }
  .case-card__media {
    border-right: none;
    border-bottom: 1px solid var(--line);
    min-height: 0;
  }
  .case-card__media img { height: auto; aspect-ratio: 16 / 10; }
  .case-card__body { padding: 22px 24px 26px; }
}

@media (max-width: 768px) {
  .header__phone { display: none; }
  .burger { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 99;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(13, 31, 45, 0.12);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path 0.4s var(--ease), visibility 0.4s;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 5% 14px;
  }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list li:last-child { border-bottom: none; }
  .nav__link { padding: 15px 8px; font-size: 1.05rem; border-bottom: none; }
  .nav__cta-mobile { display: block; padding: 16px 0; }
  .nav__cta-mobile .btn { width: 100%; }

  .section-head { flex-direction: column; gap: 10px; }
  .section-head__num { margin: 0; }

  .hero__content { padding-block: 130px 110px; }
  .metrics { margin-top: -48px; }
  .metrics__grid { grid-template-columns: 1fr; }
  .metric { border-left: none; border-top: 1px solid var(--line); }
  .metric:first-child { border-top: none; }

  .form__row { grid-template-columns: 1fr; }
  .cta__inner { flex-direction: column; text-align: center; }
  .cta__inner::before { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .form__actions .btn { width: 100%; }
}
