/* ==========================================================================
   GOODALP — промышленный альпинизм в Москве
   Дизайн-система: светлый минимализм + синий акцент
   ========================================================================== */

/* --- 1. Переменные ------------------------------------------------------ */
:root {
  --ink:        #0A1220;
  --ink-2:      #48566B;
  --ink-3:      #8592A6;

  --bg:         #FFFFFF;
  --bg-soft:    #F5F8FC;
  --bg-soft-2:  #ECF1F8;

  --line:       #E4EAF2;
  --line-2:     #D2DCE9;

  --blue:       #1350E0;
  --blue-600:   #0E3FB4;
  --blue-700:   #0A2C82;
  --blue-50:    #EDF3FF;
  --blue-100:   #DCE7FF;

  --amber:      #FF7A1A;

  --radius-sm:  10px;
  --radius:     16px;
  --radius-lg:  26px;
  --radius-xl:  34px;

  --shadow-s: 0 1px 2px rgba(10,18,32,.05), 0 4px 14px rgba(10,18,32,.05);
  --shadow-m: 0 10px 30px -12px rgba(10,18,32,.16);
  --shadow-l: 0 28px 70px -28px rgba(10,18,32,.30);

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);

  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 78px;
}

/* --- 2. Базовые стили ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "liga" 1, "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 5.6vw, 4.7rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); }
h3 { font-size: clamp(1.22rem, 1.9vw, 1.55rem); letter-spacing: -0.02em; line-height: 1.2; }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.3; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
figure { margin: 0; }          /* браузер по умолчанию ставит figure отступ 40px */
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

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

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

/* --- 3. Раскладка -------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 940px; }

.section { padding: clamp(64px, 9vw, 128px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--soft { background: var(--bg-soft); }
.section--soft-2 { background: var(--bg-soft-2); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--blue-100); }
.section--dark .eyebrow::before { background: var(--blue); }

.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p {
  color: var(--ink-2);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  margin-top: 1.1em;
}
.section--dark .section-head p { color: #A9B4C6; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Manrope', sans-serif;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 32px; height: 2px;
  background: var(--blue);
  flex: none;
}

.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-2); }
.muted { color: var(--ink-2); }
.tiny { font-size: .84rem; color: var(--ink-3); line-height: 1.5; }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- 4. Кнопки ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 100px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .22s, color .22s, border-color .22s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(19,80,224,.65);
}
.btn--primary:hover { background: var(--blue-600); box-shadow: 0 16px 34px -12px rgba(19,80,224,.7); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #1B2942; box-shadow: var(--shadow-m); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

.btn--light {
  background: rgba(255,255,255,.12);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35);
  backdrop-filter: blur(8px);
}
.btn--light:hover { background: rgba(255,255,255,.22); }

.btn--sm { padding: 10px 20px; font-size: .9rem; }
.btn--lg { padding: 19px 38px; font-size: 1.06rem; }

/* --- 5. Шапка ------------------------------------------------------------ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(10,18,32,.35);
}
.header__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo { display: flex; align-items: center; gap: 11px; flex: none; }
.logo__mark { width: 36px; height: 36px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -.02em;
}
.logo__tag {
  font-size: .62rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  display: block;
  padding: 9px 14px;
  border-radius: 100px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--ink); background: var(--bg-soft-2); }
.nav__link.is-active { color: var(--ink); font-weight: 700; }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}
.nav__link--accent { color: var(--blue); font-weight: 700; }

.header__actions { display: flex; align-items: center; gap: 14px; flex: none; }
.header__phone {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: color .2s;
}
.header__phone:hover { color: var(--blue); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  align-items: center; justify-content: center;
  flex-direction: column;
  flex: none;
}
.burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.burger span + span { margin-top: 4px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Мобильное меню */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  padding: calc(var(--header-h) + 28px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav a {
  font-family: 'Manrope', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-nav a span { color: var(--ink-3); font-size: .9rem; font-weight: 600; }
.mobile-nav .btn { margin-top: 22px; }

/* --- 6. Первый экран ----------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(32px, 5vw, 72px));
  padding-bottom: clamp(40px, 6vw, 80px);
  background:
    radial-gradient(900px 520px at 88% -8%, var(--blue-50), transparent 62%),
    linear-gradient(180deg, #FBFCFE 0%, #fff 100%);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  background: var(--bg);
  border-radius: 100px;
  box-shadow: var(--shadow-s);
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 26px;
}
.hero__badge b {
  background: var(--blue);
  color: #fff;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 100px;
  font-weight: 700;
}
.hero__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #12B76A;
  box-shadow: 0 0 0 4px rgba(18,183,106,.16);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(18,183,106,.2); }
  50%     { box-shadow: 0 0 0 7px rgba(18,183,106,0); }
}

.hero h1 { margin-bottom: 22px; }
.hero h1 em {
  font-style: normal;
  color: var(--blue);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .06em;
  height: .11em;
  background: var(--blue-100);
  z-index: -1;
}
.hero__text {
  font-size: clamp(1.04rem, 1.35vw, 1.2rem);
  color: var(--ink-2);
  max-width: 540px;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  font-size: .88rem;
  color: var(--ink-3);
  font-weight: 500;
}
.hero__meta li { display: flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 16px; height: 16px; color: var(--blue); flex: none; }

.hero__visual { position: relative; }
.hero__photo {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-l);
  /* 20:21 = ровно пропорции файла hero-tall.jpg (1000x1050) — кадр не режется */
  aspect-ratio: 20 / 21;
  background: var(--bg-soft-2);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

/* Стикер целиком внутри фотографии: отступ от края кадра, без выхода за границы.
   Размер уменьшен в 1,5 раза относительно исходного (padding, кегль, max-width). */
.hero__card {
  position: absolute;
  left: clamp(16px, 2.2vw, 26px);
  bottom: clamp(16px, 2.2vw, 26px);
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  box-shadow: var(--shadow-m);
  max-width: 170px;
}
.hero__card b {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 1.03rem;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--blue);
}
.hero__card span { font-size: .84rem; color: var(--ink-2); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
}
.hero__scroll::before {
  content: "";
  width: 1px; height: 38px;
  background: linear-gradient(180deg, var(--ink-3), transparent);
  animation: scrollHint 2.2s var(--ease) infinite;
}
@keyframes scrollHint {
  0%,100% { transform: scaleY(.4); transform-origin: top; opacity: .4; }
  50%     { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

/* Лента с цифрами */
.stats {
  background: var(--ink);
  color: #fff;
  padding: clamp(38px, 5vw, 58px) 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
/* Полоса с двумя показателями (главная страница) */
.stats__grid--2 { grid-template-columns: repeat(2, 1fr); }
.stat__num {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
  display: block;
}
.stat__num sup { font-size: .45em; top: -.9em; }
.stat__label {
  display: block;
  margin-top: 10px;
  font-size: .89rem;
  color: #93A1B8;
  line-height: 1.45;
}
.stats__grid .stat:nth-child(2) .stat__num { color: #6FA0FF; }

/* --- 7. Услуги ----------------------------------------------------------- */
.service {
  position: relative;
  padding: 30px 28px 32px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s;
  overflow: hidden;
}
.service::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 3px; width: 100%;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.service:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-m), inset 0 0 0 1px var(--blue-100);
}
.service:hover::after { transform: scaleX(1); }
.service__num {
  font-family: 'Manrope', sans-serif;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--blue);
  display: block;
  margin-bottom: 18px;
}
.service h3 { margin-bottom: 10px; }
.service p { font-size: .95rem; color: var(--ink-2); margin-bottom: 18px; }
.service__price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  width: 100%;
}
.service__price span { font-size: .82rem; font-weight: 500; color: var(--ink-3); }
.service__link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* --- 8. Шаги ------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.step { position: relative; }
.step__num {
  font-family: 'Manrope', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-2);
  margin-bottom: 14px;
  transition: color .3s, -webkit-text-stroke-color .3s;
}
.step:hover .step__num { color: var(--blue-100); -webkit-text-stroke-color: var(--blue); }
.step h3 { font-size: 1.16rem; margin-bottom: 9px; }
.step p { font-size: .95rem; color: var(--ink-2); }
.section--dark .step p { color: #9FAABC; }
.section--dark .step__num { -webkit-text-stroke-color: #2A3648; }
.section--dark .step:hover .step__num { color: rgba(19,80,224,.35); }

/* --- 9. Прайс ------------------------------------------------------------ */
.price-group {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  margin-bottom: 18px;
}
.price-group__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px clamp(20px, 3vw, 32px);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.price-group__icon {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--blue);
  display: grid;
  place-items: center;
  color: #fff;
}
.price-group__icon svg { width: 21px; height: 21px; }
.price-group__head h3 { margin: 0; font-size: 1.18rem; }
.price-group__head p { margin: 2px 0 0; font-size: .86rem; color: var(--ink-3); }

.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td {
  padding: 13px clamp(20px, 3vw, 32px);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.price-table tr:last-child td { border-bottom: 0; }
.price-table thead th {
  font-family: 'Manrope', sans-serif;
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  padding-top: 14px;
  padding-bottom: 14px;
}
.price-table td:nth-child(2) { color: var(--ink-2); font-size: .89rem; width: 46%; }
.price-table td:last-child {
  text-align: right;
  white-space: nowrap;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: var(--ink);
}
.price-table td:last-child small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: .76rem;
  color: var(--ink-3);
  margin-top: 2px;
}
.price-table tbody tr { transition: background .2s; }
.price-table tbody tr:hover { background: var(--blue-50); }
.price-table .is-from { color: var(--blue); }

.price-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--blue-50);
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: .93rem;
}
.price-note svg { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 2px; }
.price-note b { color: var(--ink); }

/* Мини-прайс на главной */
.mini-price {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
}
.mini-price__item { background: var(--bg); padding: 28px 26px; }
.mini-price__item h4 { margin-bottom: 6px; }
.mini-price__item p { font-size: .87rem; color: var(--ink-3); margin-bottom: 14px; }
.mini-price__from {
  font-family: 'Manrope', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--blue);
}
.mini-price__from span { font-size: .82rem; color: var(--ink-3); font-weight: 600; }

/* --- 10. Галерея --------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.gallery__item {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft-2);
  aspect-ratio: 4 / 5;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 20px 18px;
  background: linear-gradient(180deg, transparent, rgba(6,12,24,.86));
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.35;
  transform: translateY(6px);
  opacity: 0;
  transition: opacity .35s, transform .35s;
}
.gallery__item:hover .gallery__cap { opacity: 1; transform: none; }
.gallery__item--wide { grid-column: span 2; aspect-ratio: 16 / 10; }

/* Лайтбокс */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6,10,20,.94);
  display: grid;
  place-items: center;
  padding: 4vh 4vw;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: 0 40px 100px -30px #000;
}
.lightbox__cap {
  position: absolute;
  left: 0; right: 0; bottom: 24px;
  text-align: center;
  color: #fff;
  font-size: .92rem;
  opacity: .85;
  padding-inline: 20px;
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.12);
  color: #fff;
  transition: background .2s, transform .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.26); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.06); }

/* --- 11. Кейсы ----------------------------------------------------------- */
.case {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--line);
}
.case:last-child { border-bottom: 0; }
.case:nth-child(even) .case__media { order: -1; }
.case__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-m);
  background: var(--bg-soft-2);
}
.case__media img { width: 100%; height: 100%; object-fit: cover; }
/* Кадрирование вертикальных снимков в формате 4:3 — важные детали не срезаются */
#moyka .case__media img { object-position: 50% 35%; }
#montazh .case__media img { object-position: 50% 100%; }
#svet .case__media img { object-position: 50% 40%; }
.case__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tag {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--blue-50);
  color: var(--blue-700);
}
.case__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .87rem;
  color: var(--ink-3);
}
.case__meta b { color: var(--ink); font-weight: 600; }

/* --- 12. О компании ------------------------------------------------------ */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}
.about__photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-l);
  aspect-ratio: 4 / 5;
  background: var(--bg-soft-2);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__list { display: grid; gap: 16px; margin-top: 26px; }
.about__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: .97rem;
  color: var(--ink-2);
}
.about__list svg { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 3px; }
.about__list b { color: var(--ink); }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.team-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.team-card__num {
  font-family: 'Manrope', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -.03em;
}
.team-card h4 { margin: 8px 0 5px; }
.team-card p { font-size: .88rem; color: var(--ink-2); margin: 0; }

/* --- 13. Преимущества --------------------------------------------------- */
.feature {
  display: flex;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.feature:last-child { border-bottom: 0; }
.feature__icon {
  width: 46px; height: 46px;
  flex: none;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue);
  display: grid;
  place-items: center;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h4 { margin-bottom: 6px; }
.feature p { font-size: .93rem; color: var(--ink-2); margin: 0; }

/* --- 14. Аккордеон FAQ --------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  text-align: left;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  font-weight: 700;
  letter-spacing: -.02em;
  transition: color .2s;
}
.faq__q:hover { color: var(--blue); }
.faq__q svg { width: 22px; height: 22px; flex: none; color: var(--ink-3); transition: transform .3s var(--ease), color .3s; }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); color: var(--blue); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .38s var(--ease);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  color: var(--ink-2);
  font-size: .97rem;
  max-width: 760px;
  padding-bottom: 22px;
  margin: 0;
}

/* --- 15. Форма ----------------------------------------------------------- */
.form-wrap {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.form {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.5vw, 40px);
  box-shadow: var(--shadow-m);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 7px;
  letter-spacing: .01em;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--bg-soft);
  font: inherit;
  font-size: .97rem;
  color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--bg);
  box-shadow: 0 0 0 4px var(--blue-50);
}
.field textarea { resize: vertical; min-height: 108px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }

.consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: .82rem;
  color: var(--ink-3);
  margin: 4px 0 20px;
}
.consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--blue); flex: none; }
.consent a { color: var(--blue); text-decoration: underline; }

.form__note {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #E9F9F1;
  color: #0B7A4B;
  font-size: .9rem;
  font-weight: 600;
  margin-top: 16px;
}
.form__note.is-visible { display: flex; }
.form__note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }

.form__channels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
}
.form__channels a {
  color: var(--blue-700);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.form__channels a:hover { color: var(--blue); }
.form__channels a.is-hidden { display: none !important; }

.contact-list { display: grid; gap: 22px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item__icon {
  width: 46px; height: 46px;
  flex: none;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue);
  display: grid;
  place-items: center;
}
.contact-item__icon svg { width: 21px; height: 21px; }
.contact-item span { display: block; font-size: .8rem; color: var(--ink-3); margin-bottom: 3px; }
.contact-item a, .contact-item b {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -.01em;
}
.contact-item a:hover { color: var(--blue); }

/* --- 16. CTA-полоса ----------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
  padding: clamp(56px, 8vw, 96px) 0;
}
.cta::before {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 62%);
}
.cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.cta h2 { margin-bottom: 16px; }
.cta p { color: rgba(255,255,255,.86); font-size: 1.06rem; max-width: 560px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.cta .btn--light:hover { background: #fff; color: var(--blue); }

/* --- 17. Подвал ---------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: #fff;
  padding: clamp(52px, 6vw, 80px) 0 30px;
  font-size: .93rem;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 50px);
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer .logo__name { color: #fff; }
.footer .logo__tag { color: #7E8CA3; }
.footer__about { color: #93A1B8; max-width: 320px; margin-top: 18px; font-size: .9rem; }
.footer h4 {
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #7E8CA3;
  margin-bottom: 16px;
}
.footer__list { display: grid; gap: 10px; }
.footer__list a { color: #C7D0DE; transition: color .2s; }
.footer__list a:hover { color: #fff; }
.footer__contacts { display: grid; gap: 12px; }
.footer__contacts a { color: #fff; font-family: 'Manrope', sans-serif; font-weight: 700; }
.footer__contacts a:hover { color: var(--blue-100); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: .82rem;
  color: #6F7D93;
}
.footer__bottom a { text-decoration: underline; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  color: #C7D0DE;
  transition: background .2s, color .2s;
}
.footer__social a:hover { background: var(--blue); color: #fff; }
.footer__social svg { width: 17px; height: 17px; }

/* --- 18. Анимации появления --------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

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

/* --- 19. Хлебные крошки -------------------------------------------------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: .82rem;
  color: var(--ink-3);
  margin-bottom: 22px;
}
.crumbs a:hover { color: var(--blue); }
.crumbs span { color: var(--line-2); }

/* --- 19a. Шапка внутренней страницы -------------------------------------- */
.page-head {
  padding: calc(var(--header-h) + clamp(36px, 5vw, 68px)) 0 clamp(30px, 4vw, 52px);
  background:
    radial-gradient(760px 420px at 82% -10%, var(--blue-50), transparent 62%),
    linear-gradient(180deg, #FBFCFE 0%, #fff 100%);
}
.page-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.page-head h1 { margin-bottom: 20px; }
.page-head .lead { max-width: 640px; }

.price-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-m);
  border-top: 3px solid var(--blue);
}
.price-card h3 { margin-bottom: 18px; }
.price-card__list { display: grid; gap: 12px; margin-bottom: 24px; }
.price-card__list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: .93rem;
  color: var(--ink-2);
}
.price-card__list svg { width: 18px; height: 18px; color: var(--blue); flex: none; margin-top: 3px; }

/* --- 19b. Навигация по разделам прайса ----------------------------------- */
.ptoc-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.ptoc {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}
.ptoc::-webkit-scrollbar { display: none; }
.ptoc a {
  flex: none;
  padding: 8px 15px;
  border-radius: 100px;
  font-size: .87rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--bg-soft);
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.ptoc a:hover { background: var(--blue); color: #fff; }

/* --- 19c. Поля формы с ошибкой ------------------------------------------- */
.field.has-error input,
.field.has-error textarea,
.field.has-error select { border-color: #E5484D; background: #FFF5F5; }
.form__mail-link.is-hidden { display: none !important; }

/* --- 20. Адаптив --------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header__phone { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  /* Фото оставляем в пропорциях 20:21 на всех экранах: в кадре сразу два объекта
     (альпинисты наверху и стеклопакет на верёвке внизу), резать его нельзя */
  .hero__photo { aspect-ratio: 20 / 21; }
  .hero__card { left: 16px; right: auto; bottom: 16px; }
  .hero__scroll { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .mini-price { grid-template-columns: 1fr; }
  .form-wrap { grid-template-columns: 1fr; }
  .cta__inner { grid-template-columns: 1fr; }
  .cta__actions { justify-content: flex-start; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 460px; }
  .case { grid-template-columns: 1fr; }
  .case:nth-child(even) .case__media { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--wide { grid-column: span 2; }
  .page-head__grid { grid-template-columns: 1fr; }
  .price-card { max-width: 480px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  /* Кнопка в шапке не помещается вместе с бургером — прячем её,
     в мобильном меню есть своя заметная кнопка «Оставить заявку» */
  .header__actions .btn { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .price-table thead { display: none; }
  .price-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .price-table td { border: 0 !important; padding: 0; }
  .price-table td:first-child { grid-row: 1; grid-column: 1; font-weight: 600; }
  .price-table td:last-child { grid-row: 1; grid-column: 2; text-align: right; }
  .price-table td:nth-child(2) { grid-row: 2; grid-column: 1 / -1; width: auto; }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: 12px; }
  .lightbox__nav--next { right: 12px; }
}

/* Печать */
@media print {
  .header, .footer, .cta, .mobile-nav, .lightbox { display: none !important; }
  body { color: #000; font-size: 12pt; }
  .price-table td:last-child { color: #000; }
}
