/* ─────────────────────────────────────────────────────────────
   БАЗА — стили. Тёмная «горная» тема: чёрная скала, снег, закатный
   оранжевый из логотипа.
   ───────────────────────────────────────────────────────────── */

:root{
  --rock:      #0B0D0F;   /* скала — основной фон */
  --rock-2:    #12161A;   /* панель */
  --rock-3:    #1A2026;   /* панель светлее */
  --line:      #262E36;
  --snow:      #F2F5F7;   /* основной текст */
  --snow-dim:  #9AA7B2;   /* вторичный текст */
  --snow-far:  #67757F;   /* третичный */
  --accent:    #E8552A;   /* закат на вершине */
  --accent-2:  #FF6E44;
  --ice:       #9EC9E2;   /* лёд — редкий акцент */
  --radius:    14px;
  --wrap:      1180px;
  --shadow:    0 18px 50px rgba(0,0,0,.5);
}

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

html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--rock);
  color:var(--snow);
  font-family:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

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

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

/* ── типографика ───────────────────────────────────────────── */
h1,h2,h3,h4{ font-weight:800; line-height:1.1; margin:0 0 .5em; letter-spacing:-.02em; }
h1{ font-size:clamp(32px,5vw,56px); letter-spacing:-.03em; }
h2{ font-size:clamp(26px,3.6vw,40px); }
h3{ font-size:clamp(19px,2vw,23px); }
p{ margin:0 0 1em; }

.eyebrow{
  font-size:12px; font-weight:800; letter-spacing:.22em; text-transform:uppercase;
  color:var(--accent); margin:0 0 14px;
}
.lead{ font-size:clamp(17px,1.8vw,20px); color:var(--snow-dim); max-width:62ch; }
.quote{
  font-family:'PT Serif',Georgia,serif; font-style:italic; font-weight:400;
  font-size:clamp(20px,2.6vw,28px); line-height:1.4; color:var(--snow);
}

/* ── шапка ─────────────────────────────────────────────────── */
.hdr{
  position:sticky; top:0; z-index:60;
  background:rgba(11,13,15,.82);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.hdr-in{ display:flex; align-items:center; gap:22px; height:68px; }
.brand{ display:flex; align-items:center; gap:11px; text-decoration:none; flex:0 0 auto; }
.brand img{ height:34px; width:auto; }
.brand b{ font-size:19px; font-weight:800; letter-spacing:.16em; }
.brand span{ display:block; font-size:10px; letter-spacing:.12em; color:var(--snow-far); text-transform:uppercase; font-weight:700; margin-top:1px; }
.nav{ display:flex; gap:26px; margin-left:auto; }
.nav a{ text-decoration:none; color:var(--snow-dim); font-size:15px; font-weight:600; transition:color .15s; }
.nav a:hover,.nav a[aria-current="page"]{ color:var(--snow); }
.hdr-cta{ display:flex; align-items:center; gap:12px; }
.hdr-phone{ text-decoration:none; font-weight:800; font-size:16px; white-space:nowrap; }
.burger{ display:none; background:none; border:0; color:var(--snow); padding:8px; cursor:pointer; }
.burger svg{ display:block; }

/* ── кнопки ────────────────────────────────────────────────── */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  padding:14px 24px; border-radius:10px; border:1px solid transparent;
  font:inherit; font-weight:800; font-size:15px; letter-spacing:.01em;
  text-decoration:none; cursor:pointer; transition:transform .12s, background .15s, border-color .15s;
}
.btn:active{ transform:translateY(1px); }
.btn-primary{ background:var(--accent); color:#fff; }
.btn-primary:hover{ background:var(--accent-2); }
.btn-ghost{ background:transparent; color:var(--snow); border-color:var(--line); }
.btn-ghost:hover{ border-color:var(--snow-far); }
.btn-sm{ padding:10px 16px; font-size:14px; }
.btn-wide{ width:100%; }

/* ── герой ─────────────────────────────────────────────────── */
.hero{ position:relative; overflow:hidden; border-bottom:1px solid var(--line); }
.hero-bg{ position:absolute; inset:0; }
.hero-bg img{ width:100%; height:100%; object-fit:cover; opacity:.34; filter:grayscale(.35) contrast(1.05); }
.hero-bg::after{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(232,85,42,.16), transparent 55%),
    linear-gradient(180deg, rgba(11,13,15,.72) 0%, rgba(11,13,15,.86) 55%, var(--rock) 100%);
}
.hero-in{ position:relative; padding:78px 22px 92px; }
.hero-logo{ width:min(150px,34vw); margin-bottom:26px; opacity:.96; }
.hero h1{ max-width:20ch; }
.hero h1 em{ font-style:normal; color:var(--accent); }
.hero .lead{ margin-top:18px; }
.hero-btns{ display:flex; flex-wrap:wrap; gap:12px; margin-top:32px; }

.trust{ display:flex; flex-wrap:wrap; gap:0; margin-top:44px; border-top:1px solid var(--line); }
.trust div{ flex:1 1 150px; padding:18px 20px 4px 0; }
.trust b{ display:block; font-size:26px; font-weight:800; letter-spacing:-.02em; }
.trust b span{ font-size:inherit; color:inherit; }
.trust b i{ font-style:normal; font-size:17px; color:var(--accent); margin-left:2px; }
.trust > div > span{ font-size:13px; color:var(--snow-far); }

/* ── горный разделитель ────────────────────────────────────── */
.ridge{ display:block; width:100%; height:auto; color:var(--rock-2); }
.ridge-flip{ transform:scaleY(-1); }

/* ── секции ────────────────────────────────────────────────── */
section{ padding:78px 0; }
.sec-head{ max-width:66ch; margin-bottom:44px; }
.sec-alt{ background:var(--rock-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }

/* ── карточки услуг ────────────────────────────────────────── */
.pillars{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.pillars-4{ grid-template-columns:repeat(4,1fr); }
.pillar{
  position:relative; display:flex; flex-direction:column;
  background:var(--rock-2); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; text-decoration:none; transition:border-color .18s, transform .18s;
}
.pillar:hover{ border-color:var(--accent); transform:translateY(-3px); }
.pillar-img{ aspect-ratio:4/3; overflow:hidden; background:var(--rock-3); }
.pillar-img img{ width:100%; height:100%; object-fit:cover; opacity:.85; transition:opacity .25s, transform .4s; }
.pillar:hover .pillar-img img{ opacity:1; transform:scale(1.04); }
.pillar-txt{ padding:22px 22px 24px; flex:1; display:flex; flex-direction:column; }
.pillar-txt p{ color:var(--snow-dim); font-size:15px; flex:1; }
.pillar-more{ color:var(--accent); font-weight:800; font-size:14px; margin-top:8px; }

/* ── кейсы до/после ────────────────────────────────────────── */
.case{
  background:var(--rock-2); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; margin-bottom:22px;
}
.case-head{ padding:26px 26px 20px; border-bottom:1px solid var(--line); }
.case-head .tag{
  display:inline-block; font-size:11px; font-weight:800; letter-spacing:.16em;
  text-transform:uppercase; color:var(--snow-far); border:1px solid var(--line);
  border-radius:999px; padding:4px 11px; margin-bottom:12px;
}
.case-head h3{ margin-bottom:10px; }
.case-body{ padding:22px 26px 26px; }
.case-shots{ display:grid; gap:12px; grid-template-columns:repeat(var(--n,2),1fr); padding:22px 26px 0; }
.shot{ position:relative; border-radius:10px; overflow:hidden; background:var(--rock-3); }
.shot img{ width:100%; aspect-ratio:4/3; object-fit:cover; }
.shot figcaption{
  position:absolute; left:10px; top:10px;
  background:rgba(11,13,15,.82); backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.14);
  font-size:11px; font-weight:800; letter-spacing:.14em; text-transform:uppercase;
  padding:5px 11px; border-radius:999px;
}
.shot.is-after figcaption{ background:var(--accent); border-color:transparent; color:#fff; }
.case-cols{ display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.case-cols h4{ font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--snow-far); margin-bottom:8px; }
.case-cols p{ margin:0; color:var(--snow-dim); font-size:15px; }

/* ── прайс-таблица ─────────────────────────────────────────── */
.price-list{ border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:var(--rock-2); }
.price-row{
  display:flex; gap:20px; align-items:baseline;
  padding:20px 24px; border-bottom:1px solid var(--line);
}
.price-row:last-child{ border-bottom:0; }
.price-row > div:first-child{ flex:1; }
.price-row b{ display:block; font-size:17px; font-weight:800; }
.price-row span{ display:block; color:var(--snow-dim); font-size:14.5px; margin-top:3px; }
.price-val{ font-weight:800; font-size:19px; white-space:nowrap; color:var(--snow); }
.price-val.soft{ font-size:14px; font-weight:700; color:var(--snow-far); }
.price-val small{ font-size:13px; font-weight:700; color:var(--snow-far); display:block; text-align:right; }

/* ── список правил ─────────────────────────────────────────── */
.rules{ list-style:none; padding:0; margin:0; }
.rules li{ position:relative; padding:0 0 14px 30px; color:var(--snow-dim); }
.rules li::before{
  content:""; position:absolute; left:2px; top:9px; width:9px; height:9px;
  background:var(--accent); clip-path:polygon(50% 0,100% 100%,0 100%);
}

/* ── две колонки ───────────────────────────────────────────── */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:52px; align-items:center; }
.split-media{ border-radius:var(--radius); overflow:hidden; border:1px solid var(--line); }
.split-media img{ width:100%; aspect-ratio:4/3; object-fit:cover; }
/* для вертикальных снимков — кадр под них, иначе обрежет половину */
.split-media.is-tall img{ aspect-ratio:4/5; }

/* ── каталог ───────────────────────────────────────────────── */
.cat-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.cat{ background:var(--rock-2); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; display:flex; flex-direction:column; }
.cat-img{ aspect-ratio:4/5; overflow:hidden; background:var(--rock-3); }
.cat-img img{ width:100%; height:100%; object-fit:cover; opacity:.9; }
.cat-txt{ padding:20px; flex:1; display:flex; flex-direction:column; }
.cat-txt p{ color:var(--snow-dim); font-size:14.5px; flex:1; }
.cat-price{ font-weight:800; color:var(--accent); font-size:16px; margin-top:6px; }

/* ── галерея ───────────────────────────────────────────────── */
.gal{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.gal img{ width:100%; aspect-ratio:1; object-fit:cover; border-radius:10px; border:1px solid var(--line); opacity:.9; transition:opacity .2s, transform .3s; }
.gal img:hover{ opacity:1; transform:scale(1.02); }

/* ── отзывы ────────────────────────────────────────────────── */
.revs{ display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.rev{ background:var(--rock-2); border:1px solid var(--line); border-radius:var(--radius); padding:26px; }
.rev .stars{ color:var(--accent); letter-spacing:.16em; font-size:14px; margin-bottom:12px; }
.rev p{ font-family:'PT Serif',Georgia,serif; font-size:16.5px; line-height:1.55; }
.rev footer{ color:var(--snow-far); font-size:13.5px; }
.rev footer b{ color:var(--snow-dim); font-weight:700; }

/* ── формы ─────────────────────────────────────────────────── */
.forms{ display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.form-card{
  background:var(--rock-2); border:1px solid var(--line); border-radius:var(--radius);
  padding:30px; position:relative; overflow:hidden;
}
.form-card::before{
  content:""; position:absolute; left:0; right:0; top:0; height:3px; background:var(--accent);
}
.form-card.is-rent::before{ background:var(--ice); }
.form-card h3{ margin-bottom:6px; }
.form-card > p{ color:var(--snow-dim); font-size:15px; }
.field{ margin-bottom:14px; }
.field label{ display:block; font-size:13px; font-weight:700; color:var(--snow-dim); margin-bottom:6px; }
.field input,.field select,.field textarea{
  width:100%; padding:13px 15px; border-radius:9px;
  background:var(--rock); border:1px solid var(--line); color:var(--snow);
  font:inherit; font-size:15.5px; transition:border-color .15s;
}
.field textarea{ min-height:90px; resize:vertical; }
.field input:focus,.field select:focus,.field textarea:focus{ outline:none; border-color:var(--accent); }
.field-2{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.agree{ display:flex; gap:10px; align-items:flex-start; font-size:13px; color:var(--snow-far); margin:14px 0 18px; }
.agree input{ margin-top:3px; flex:0 0 auto; }
.agree a{ color:var(--snow-dim); }
.form-done{ padding:34px 4px; text-align:center; }
.form-done b{ display:block; font-size:20px; margin-bottom:8px; }
.form-done p{ color:var(--snow-dim); margin:0; }
.form-err{ color:var(--accent-2); font-size:14px; margin-top:10px; }
.trap{ position:absolute; left:-9999px; }

/* ── фото повреждения в заявке на ремонт ───────────────────── */
.ph-opt{ font-weight:600; color:var(--snow-far); }
.ph-zone{
  display:flex; flex-direction:column; align-items:center; gap:4px;
  padding:22px 18px; text-align:center; cursor:pointer;
  border:1px dashed var(--line); border-radius:10px;
  background:var(--rock); color:var(--snow-dim);
  transition:border-color .15s, background .15s, color .15s;
}
.ph-zone:hover,.ph-zone.is-over{ border-color:var(--accent); color:var(--snow); }
.ph-zone:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.ph-zone svg{ color:var(--accent); margin-bottom:4px; }
.ph-zone b{ font-size:15px; font-weight:800; color:var(--snow); }
.ph-zone span{ font-size:13px; line-height:1.4; max-width:34ch; }
.ph-zone.is-full{ opacity:.5; }

.ph-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(84px,1fr)); gap:8px; margin-top:10px; }
.ph-item{ position:relative; margin:0; border-radius:8px; overflow:hidden; border:1px solid var(--line); background:var(--rock-3); }
.ph-item img{ width:100%; aspect-ratio:1; object-fit:cover; }
.ph-del{
  position:absolute; top:4px; right:4px; width:22px; height:22px;
  display:flex; align-items:center; justify-content:center;
  border:0; border-radius:50%; cursor:pointer;
  background:rgba(11,13,15,.78); color:var(--snow);
}
.ph-del:hover{ background:var(--accent); }
.ph-del:focus-visible{ outline:2px solid var(--accent); outline-offset:1px; }

.ph-note{ font-size:13px; color:var(--snow-far); margin-top:8px; min-height:1.2em; }
.ph-note.is-warn{ color:var(--accent-2); }

/* ── контакты ──────────────────────────────────────────────── */
.contacts{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.contact b{ display:block; font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--snow-far); margin-bottom:8px; }
.contact p{ margin:0 0 6px; }
.contact a{ color:var(--snow); text-decoration:none; border-bottom:1px solid var(--line); }
.contact a:hover{ border-color:var(--accent); }

/* ── подвал ────────────────────────────────────────────────── */
.foot{ border-top:1px solid var(--line); padding:44px 0 60px; color:var(--snow-far); font-size:14px; background:var(--rock); }
.foot-in{ display:flex; flex-wrap:wrap; gap:26px; justify-content:space-between; align-items:flex-start; }
.foot img{ height:52px; opacity:.7; margin-bottom:12px; }
.foot a{ color:var(--snow-dim); text-decoration:none; }
.foot a:hover{ color:var(--snow); }
.foot-nav{ display:flex; flex-direction:column; gap:8px; }

/* ── мелочи ────────────────────────────────────────────────── */
.center{ text-align:center; }
.mt-32{ margin-top:32px; }
.mb-0{ margin-bottom:0; }
.hide{ display:none !important; }

/* ── адаптив ───────────────────────────────────────────────── */
@media (max-width:960px){
  .pillars,.cat-grid{ grid-template-columns:1fr 1fr; }
  .split{ grid-template-columns:1fr; gap:30px; }
  .forms{ grid-template-columns:1fr; }
  .contacts{ grid-template-columns:1fr 1fr; }
  .gal{ grid-template-columns:repeat(3,1fr); }
}
@media (max-width:860px){
  body{ font-size:16px; }
  section{ padding:56px 0; }
  .nav{
    display:none; position:absolute; left:0; right:0; top:68px;
    flex-direction:column; gap:0; background:var(--rock-2);
    border-bottom:1px solid var(--line); padding:8px 0;
  }
  .nav.open{ display:flex; }
  .nav a{ padding:13px 22px; font-size:16px; }
  .burger{ display:block; margin-left:auto; order:3; }
  .hdr-cta{ margin-left:auto; }
  .hdr-phone{ font-size:15px; }
  .hdr-cta .btn{ display:none; }
  .pillars,.cat-grid,.revs,.contacts{ grid-template-columns:1fr; }
  .case-shots{ grid-template-columns:1fr !important; }
  .case-cols{ grid-template-columns:1fr; gap:16px; }
  .field-2{ grid-template-columns:1fr; }
  .gal{ grid-template-columns:repeat(2,1fr); }
  .hero-in{ padding:52px 22px 64px; }
  .trust div{ flex-basis:120px; }
  .trust b{ font-size:21px; }
  .form-card,.case-head,.case-body{ padding-left:20px; padding-right:20px; }
  .case-shots{ padding-left:20px; padding-right:20px; }
  .price-row{ padding:16px 18px; }
}

/* очень узкие экраны: подпись под логотипом не помещается рядом с бургером */
@media (max-width:400px){
  .brand span span{ display:none; }
  .brand img{ height:30px; }
  .hdr-in{ gap:12px; }
}

/* ═════════════════════════════════════════════════════════════
   КАНАТКА
   Трос вдоль правого края, по нему едут кабинки гондолы.
   Захват кабинки нарисован по правому краю картинки и встаёт ровно
   на трос. Опоры стоят на месте — кабинки проезжают мимо них.
   Оранжевая кабинка — это читатель: где она, там он и находится
   на странице. Насечки — разделы, по ним можно кликать.
   ═════════════════════════════════════════════════════════════ */
.lift{
  position:fixed; top:0; right:0; bottom:0; width:88px; z-index:20;
  pointer-events:none; opacity:0; transition:opacity .5s ease;
  --cable:62px;                 /* где проходит трос внутри полосы */
  --cabin:42px;                 /* ширина кабинки */
}
.lift.is-ready{ opacity:1; }

.lift-cable{
  position:absolute; top:68px; bottom:0; left:var(--cable); width:1px;
  background:linear-gradient(180deg, transparent, var(--line) 8%, var(--line) 92%, transparent);
}

/* опоры */
.lift-towers{ position:absolute; inset:0; }
.lift-tower{
  position:absolute; left:calc(var(--cable) - 4px); margin-top:-17px;
  color:var(--snow-far); opacity:.38;
}
.lift-tower svg{ display:block; }

/* кабинки */
.lift-chairs{ position:absolute; top:-150px; left:0; right:0; height:100%; will-change:transform; }
/* постоянный ход канатки: 150px — ровно шаг между кабинками,
   поэтому цикл замыкается незаметно */
@keyframes lift-run{ from{ transform:translateY(0); } to{ transform:translateY(-150px); } }
.lift-run{ position:absolute; inset:0; animation:lift-run 13s linear infinite; }
.lift-chair{
  position:absolute; left:calc(var(--cable) - var(--cabin) + 3px);
  color:var(--snow-dim); opacity:.5;
}
/* корпус и стекло залиты — иначе контур теряется на фотографии в шапке */
.lift .cab-body,.lift .cab-grip{ fill:var(--rock); fill-opacity:.85; }
.lift .cab-glass{ fill:var(--rock-3); fill-opacity:.75; }
.lift-chair svg,.lift-rider svg{ display:block; width:var(--cabin); height:auto; }

.lift-rider{
  position:absolute; left:calc(var(--cable) - var(--cabin) + 3px);
  color:var(--accent);
  filter:drop-shadow(0 0 10px rgba(232,85,42,.45));
  transition:top .12s linear;
}

.lift-nav{ position:absolute; inset:0; }
.lift-stop{
  position:absolute; left:0; width:88px; height:22px; margin-top:-11px;
  display:flex; align-items:center; text-decoration:none; pointer-events:auto;
}
.lift-dot{
  position:absolute; left:calc(var(--cable) - 5px); width:11px; height:11px; border-radius:50%;
  background:var(--rock); border:1px solid var(--line);
  transition:border-color .2s, background .2s, transform .2s;
}
.lift-stop:hover .lift-dot,
.lift-stop:focus-visible .lift-dot{ border-color:var(--accent); transform:scale(1.25); }
.lift-stop.is-on .lift-dot{ background:var(--accent); border-color:var(--accent); }
.lift-stop:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; border-radius:6px; }

.lift-label{
  position:absolute; right:38px; white-space:nowrap;
  font-size:11.5px; font-weight:800; letter-spacing:.08em; text-transform:uppercase;
  color:var(--snow-dim); background:var(--rock-2);
  border:1px solid var(--line); border-radius:999px; padding:5px 12px;
  opacity:0; transform:translateX(8px); transition:opacity .18s, transform .18s;
  max-width:230px; overflow:hidden; text-overflow:ellipsis;
}
.lift-stop:hover .lift-label,
.lift-stop:focus-visible .lift-label{ opacity:1; transform:translateX(0); }

/* Пока экран широкий, канатка помещается в поле за текстом.
   Как только запаса нет — отводим ей отдельную полосу справа,
   иначе кабинки поедут прямо по словам. */
@media (max-width:1359px){
  .wrap{ padding-right:58px; }
  .hero-in{ padding-right:58px; }
  .lift{ width:48px; --cable:36px; --cabin:34px; }
  .lift-towers,.lift-label{ display:none; }
  .lift-stop{ width:48px; }
  .lift-dot{ width:9px; height:9px; left:calc(var(--cable) - 4px); }
}

/* телефоны: кабинки едут у самого края, в поле от текста.
   Насечки убираем — на узком экране по ним всё равно не попасть,
   а перехватывать касания рядом с краем они не должны. */
@media (max-width:860px){
  .wrap{ padding-right:46px; }
  .hero-in{ padding-right:46px; }
  .lift{ width:40px; --cable:30px; --cabin:30px; }
  .lift-cable{ top:60px; }
  .lift-chair{ opacity:.55; }
  .lift-nav{ display:none; }
}

@media (prefers-reduced-motion: reduce){
  .lift-chairs{ transform:none !important; }
  .lift-run{ animation:none; }
  .lift-rider{ transition:none; }
}

/* ═════════════════════════════════════════════════════════════
   ХРЕБТЫ В ШАПКЕ — дальние двигаются медленнее ближних
   ═════════════════════════════════════════════════════════════ */
.range{ position:absolute; left:0; right:0; bottom:-1px; height:66%; pointer-events:none; z-index:1; }
.range-layer{ position:absolute; left:-4%; right:-4%; bottom:0; width:108%; will-change:transform; }
.range-layer svg{ width:100%; height:auto; display:block; }
.range-1{ opacity:.55; color:#171E25; bottom:20%; }
.range-2{ opacity:.8;  color:#101619; bottom:8%; }
.range-3{ opacity:1;   color:var(--rock); }
.hero-in{ z-index:2; }

/* ═════════════════════════════════════════════════════════════
   ПУТЬ ИЗ ТРЁХ ШАГОВ — «отметить → сфотографировать → узнать цену»
   Шаги соединены пунктиром: видно, что это последовательность,
   а не три разных предложения.
   ═════════════════════════════════════════════════════════════ */
.path3{
  list-style:none; margin:0 0 44px; padding:0;
  display:grid; grid-template-columns:repeat(3,1fr); gap:0;
  position:relative;
}
.path3-step{
  position:relative; padding:0 26px 0 0;
  display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto auto;
  column-gap:14px; align-items:center;
}
/* пунктир между шагами */
.path3-step:not(:last-child)::after{
  content:""; position:absolute; left:76px; right:14px; top:25px; height:1px;
  background:repeating-linear-gradient(90deg,var(--line) 0 6px,transparent 6px 12px);
}
.path3-num{
  grid-row:1; grid-column:1;
  width:52px; height:52px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:19px; font-weight:800; color:var(--accent);
  background:var(--rock); border:1.5px solid var(--accent);
  position:relative; z-index:1;
}
.path3-ico{ grid-row:1; grid-column:2; color:var(--snow-far); justify-self:start; }
.path3-step b{ grid-row:2; grid-column:1 / -1; font-size:18px; font-weight:800; margin-top:16px; }
.path3-txt{ grid-row:3; grid-column:1 / -1; font-size:14.5px; line-height:1.5; color:var(--snow-dim); margin-top:6px; padding-right:12px; }

@media (max-width:860px){
  .path3{ grid-template-columns:1fr; gap:24px; margin-bottom:34px; }
  .path3-step{ padding:0; grid-template-columns:auto 1fr; }
  .path3-step:not(:last-child)::after{
    left:25px; right:auto; top:58px; bottom:-24px; width:1px; height:auto;
    background:repeating-linear-gradient(180deg,var(--line) 0 6px,transparent 6px 12px);
  }
  .path3-num{ width:50px; height:50px; grid-row:1 / span 2; }
  .path3-ico{ display:none; }
  .path3-step b{ grid-row:1; grid-column:2; margin-top:0; align-self:end; }
  .path3-txt{ grid-row:2; grid-column:2; margin-top:4px; align-self:start; }
}

/* ═════════════════════════════════════════════════════════════
   ОЦЕНКА ПО ФОТО
   ═════════════════════════════════════════════════════════════ */
.est{ display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:28px; align-items:start; }
.est-steps{ display:flex; flex-direction:column; gap:14px; min-width:0; }

.est-block{
  background:var(--rock-2); border:1px solid var(--line);
  border-radius:var(--radius); padding:24px 26px 26px;
}
.est-h{
  font-size:12px; font-weight:800; letter-spacing:.18em; text-transform:uppercase;
  color:var(--snow-far); margin:0 0 16px; padding-bottom:12px;
  border-bottom:1px solid var(--line);
}
.est-hint{ color:var(--snow-dim); font-size:14.5px; margin:-4px 0 16px; }

/* что чиним — крупные карточки, а не мелкие пилюли */
.est-kinds{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.est-kind{
  font:inherit; cursor:pointer; text-align:center;
  display:flex; flex-direction:column; align-items:center; gap:10px;
  padding:20px 12px; border-radius:12px;
  background:var(--rock); color:var(--snow-dim);
  border:1px solid var(--line); transition:border-color .15s, background .15s, color .15s;
}
.est-kind:hover{ color:var(--snow); border-color:var(--snow-far); }
.est-kind.is-on{ border-color:var(--accent); background:rgba(232,85,42,.09); color:var(--snow); }
.est-kind:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.est-kind-ico{ display:block; color:var(--snow-far); transition:color .15s; }
.est-kind-ico svg{ display:block; width:34px; height:34px; }
.est-kind.is-on .est-kind-ico{ color:var(--accent); }
.est-kind-name{ font-size:15px; font-weight:700; line-height:1.2; }

/* что не так — список отметок */
.est-list{ display:flex; flex-direction:column; gap:8px; }
.est-item{
  display:flex; align-items:center; gap:14px; cursor:pointer;
  padding:14px 16px; border-radius:11px;
  background:var(--rock); border:1px solid var(--line);
  transition:border-color .15s, background .15s;
}
.est-item:hover{ border-color:var(--snow-far); }
.est-item.is-on{ border-color:var(--accent); background:rgba(232,85,42,.08); }
.est-item input{ position:absolute; opacity:0; width:0; height:0; }
.est-tick{
  flex:0 0 auto; width:22px; height:22px; border-radius:7px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--line); background:var(--rock-2); color:transparent; transition:all .15s;
}
.est-item.is-on .est-tick{ background:var(--accent); border-color:var(--accent); color:#fff; }
.est-item input:focus-visible + .est-tick{ outline:2px solid var(--accent); outline-offset:2px; }
.est-item-txt{ flex:1; min-width:0; }
.est-item-txt b{ display:block; font-size:15.5px; font-weight:700; line-height:1.3; }
.est-item-txt i{ display:block; font-style:normal; font-size:13px; color:var(--snow-far); margin-top:3px; }
.est-item-price{ font-size:13.5px; font-weight:800; color:var(--snow-far); white-space:nowrap; }
.est-item.is-on .est-item-price{ color:var(--accent); }

/* карточка со сметой */
.est-card{ position:sticky; top:88px; }
.est-card-in{
  background:var(--rock-2); border:1px solid var(--line); border-radius:var(--radius);
  padding:26px; position:relative; overflow:hidden;
}
.est-card-in::before{ content:""; position:absolute; left:0; right:0; top:0; height:3px; background:var(--accent); }
.est-card-label{ font-size:11px; font-weight:800; letter-spacing:.2em; text-transform:uppercase; color:var(--snow-far); margin:0 0 10px; }
.est-sum{ font-size:20px; font-weight:800; line-height:1.15; letter-spacing:-.02em; color:var(--snow-dim); }
.est-sum.is-num{ font-size:clamp(28px,3.4vw,38px); color:var(--snow); font-variant-numeric:tabular-nums; }
.est-sum span{ color:var(--accent); }
.est-card-note{ font-size:13.5px; color:var(--snow-far); margin:10px 0 0; }
.est-picked{ list-style:none; padding:0; margin:18px 0 0; border-top:1px solid var(--line); }
.est-picked li{ display:flex; gap:14px; justify-content:space-between; padding:10px 0 0; font-size:13.5px; color:var(--snow-dim); }
.est-picked li b{ color:var(--snow-far); font-weight:700; white-space:nowrap; }
.est-card-foot{ margin-top:18px; padding-top:16px; border-top:1px solid var(--line); }
.est-card-foot p{ margin:0; font-size:13px; line-height:1.5; color:var(--snow-far); }

@media (max-width:1050px){
  .est{ grid-template-columns:1fr; }
  .est-card{ position:static; order:-1; }
}
@media (max-width:720px){
  .est-block{ padding:20px 18px 22px; }
  .est-kinds{ grid-template-columns:1fr; gap:8px; }
  .est-kind{ flex-direction:row; justify-content:flex-start; gap:14px; padding:14px 16px; text-align:left; }
  .est-kind-ico svg{ width:26px; height:26px; }
  .est-item{ padding:12px 14px; gap:11px; }
  .est-item-price{ display:none; }
}

/* ═════════════════════════════════════════════════════════════
   БЛОК-УТП «пришлите фото — назовём цену»
   ═════════════════════════════════════════════════════════════ */
.utp{ position:relative; overflow:hidden; }
.utp::before{
  content:""; position:absolute; inset:0;
  background:radial-gradient(90% 70% at 78% 0%, rgba(232,85,42,.13), transparent 62%);
  pointer-events:none;
}
.utp .wrap{ position:relative; }
.utp-head{ margin-bottom:34px; max-width:72ch; }
.utp-badge{
  display:inline-flex; align-items:center; gap:9px;
  font-size:12px; font-weight:800; letter-spacing:.14em; text-transform:uppercase;
  color:var(--accent); border:1px solid rgba(232,85,42,.4);
  border-radius:999px; padding:7px 15px; margin-bottom:18px;
}
.utp-badge svg{ flex:0 0 auto; }

/* ═════════════════════════════════════════════════════════════
   ТЕЛЕФОН
   Номер должен ловиться глазом сразу: в шапке с трубкой,
   на первом экране — крупно, чтобы с телефона нажимали не думая.
   ═════════════════════════════════════════════════════════════ */
.hdr-phone{
  display:inline-flex; align-items:center; gap:8px;
  font-size:18px; font-weight:800; letter-spacing:-.01em;
  text-decoration:none; white-space:nowrap;
  font-variant-numeric:tabular-nums; transition:color .15s;
}
.hdr-phone svg{ color:var(--accent); flex:0 0 auto; }
.hdr-phone:hover{ color:var(--accent); }

.hero-call{ display:flex; flex-direction:column; gap:6px; margin-top:34px; }
.hero-call-label{
  font-size:12px; font-weight:800; letter-spacing:.18em;
  text-transform:uppercase; color:var(--snow-far);
}
.phone-big{
  display:inline-flex; align-items:center; gap:13px; width:max-content; max-width:100%;
  font-size:clamp(24px,5vw,40px); font-weight:800; letter-spacing:-.02em; line-height:1.1;
  text-decoration:none; color:var(--snow); white-space:nowrap;
  font-variant-numeric:tabular-nums; transition:color .15s;
}
.phone-big svg{ color:var(--accent); flex:0 0 auto; }
.phone-big:hover{ color:var(--accent); }
.phone-mid{ font-size:clamp(22px,3vw,28px); gap:10px; }

.foot-phone{
  display:inline-block; margin-top:2px;
  font-size:18px; font-weight:800; color:var(--snow);
  text-decoration:none; font-variant-numeric:tabular-nums;
}
.foot-phone:hover{ color:var(--accent); }

/* мессенджеры — шапка, контакты, подвал */
.hdr-msg{ display:inline-flex; align-items:center; color:var(--accent); }
.hdr-msg:hover{ opacity:.75; }
.msg-link{ display:inline-flex !important; align-items:center; gap:8px; }
.msg-link svg{ color:var(--accent); flex:0 0 auto; }
.foot-msg{ display:flex; gap:14px; margin-top:10px; }
.foot-msg a{ display:inline-flex; color:var(--snow-dim); }
.foot-msg a:hover{ color:var(--accent); }

@media (max-width:860px){
  .hdr-phone{ font-size:16px; gap:6px; }
  .hdr-phone svg{ width:15px; height:15px; }
  .phone-big svg{ width:24px; height:24px; }
}
/* совсем узкие экраны: в шапке оставляем только трубку,
   номер целиком всё равно виден на первом экране */
@media (max-width:420px){
  .hdr-phone span{ display:none; }
  .hdr-phone{ gap:0; padding:6px; }
  .hdr-phone svg{ width:20px; height:20px; }
}

/* ═════════════════════════════════════════════════════════════
   ТРИ ДЕЙСТВИЯ НА ПЕРВОМ ЭКРАНЕ
   Раньше это были тонкие контуры поверх фотографии — на снимке
   они терялись. Теперь плотные карточки с иконкой и пояснением:
   видно, куда жать, ещё до чтения текста.
   ═════════════════════════════════════════════════════════════ */
.hero-acts{
  display:grid; grid-template-columns:repeat(3,1fr); gap:12px;
  margin-top:34px; max-width:960px;
}
.hero-act{
  display:flex; align-items:center; gap:14px;
  padding:16px 16px 16px 15px; border-radius:13px;
  text-decoration:none; color:var(--snow);
  background:rgba(18,22,26,.92);
  border:1px solid var(--line);
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  transition:border-color .16s, transform .16s, background .16s;
}
.hero-act:hover{ border-color:var(--snow-far); transform:translateY(-2px); }
.hero-act:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }

.hero-act-ico{
  flex:0 0 auto; width:42px; height:42px; border-radius:11px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(232,85,42,.14); color:var(--accent);
}
.hero-act-txt{ flex:1; min-width:0; }
.hero-act-txt b{ display:block; font-size:15.5px; font-weight:800; line-height:1.25; }
.hero-act-txt i{ display:block; font-style:normal; font-size:13px; color:var(--snow-dim); margin-top:3px; line-height:1.3; }
.hero-act-go{ flex:0 0 auto; color:var(--snow-far); transition:transform .16s, color .16s; }
.hero-act:hover .hero-act-go{ color:var(--snow); transform:translateX(3px); }

/* главное действие — оценка ремонта по фото */
.hero-act.is-key{ background:var(--accent); border-color:var(--accent); }
.hero-act.is-key:hover{ background:var(--accent-2); border-color:var(--accent-2); }
.hero-act.is-key .hero-act-ico{ background:rgba(255,255,255,.18); color:#fff; }
.hero-act.is-key .hero-act-txt i{ color:rgba(255,255,255,.82); }
.hero-act.is-key .hero-act-go{ color:rgba(255,255,255,.85); }

@media (max-width:960px){
  .hero-acts{ grid-template-columns:1fr; gap:10px; max-width:520px; }
}
@media (max-width:420px){
  .hero-act{ padding:14px; gap:12px; }
  .hero-act-ico{ width:38px; height:38px; }
  .hero-act-txt b{ font-size:15px; }
}
