@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=PT+Serif:wght@400;700&display=swap');
/* ============ Дизайн A-Sky — krematorij-spb.ru ============ */
/* Небо: голубой + белый, воздушно; золото — тонким акцентом (арка-намёк «врата») */
:root{
  --sky-50:#f2f8ff; --sky-100:#e4f1ff; --sky-200:#cfe6fb; --sky-300:#a9d1f2;
  --blue:#3b82c4; --blue-deep:#2b6aa0; --blue-ink:#1e3f5c;
  --ink:#22405a; --ink-soft:#5b7896; --line:#dcebf7;
  --gold:#c9a24b; --gold-deep:#a8862f; --gold-tint:#f7f0dd;
  --white:#ffffff;
  --shadow:0 18px 50px rgba(43,106,160,.14); --shadow-sm:0 8px 24px rgba(43,106,160,.10);
  --radius:20px; --maxw:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);
  background:linear-gradient(180deg,#eaf4ff 0%,#f7fbff 40%,#ffffff 100%);
  font:16px/1.7 'Inter',-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased}
h1,h2,h3{font-family:'PT Serif',Georgia,serif;font-weight:700;letter-spacing:-.2px;color:var(--blue-ink);margin:0}
.serif{font-family:'PT Serif',Georgia,serif}
a{color:var(--blue-deep);text-decoration:none}
a:hover{color:var(--gold-deep)}
img{max-width:100%;display:block}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}
.muted{color:var(--ink-soft)}

/* gold hairline divider */
.goldline{height:2px;width:64px;background:linear-gradient(90deg,var(--gold),transparent);border-radius:2px}

/* ---- topbar ---- */
.topbar{background:transparent;color:var(--ink-soft);font-size:14px}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;height:46px;flex-wrap:wrap;gap:6px}
.topbar a{color:var(--ink-soft)} .topbar .phone{font-weight:700;color:var(--blue-deep)}

/* ---- header ---- */
.header{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.72);backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line)}
.header .wrap{display:flex;align-items:center;gap:28px;height:82px}
.brand{display:flex;align-items:center;gap:14px}
.brand .mark{flex:none;display:inline-flex;align-items:center;justify-content:center}
.brand .mark svg{display:block;filter:drop-shadow(0 1px 1px rgba(120,90,20,.25))}
.brand b{font-family:'PT Serif',Georgia,serif;font-size:17px;line-height:1.1;display:block;color:var(--blue-ink);letter-spacing:.2px}
.brand small{color:var(--ink-soft);font-size:12.5px}
.nav{margin-left:auto;display:flex;gap:22px;flex-wrap:wrap}
.nav a{color:var(--ink-soft);font-size:15px;padding:6px 0;border-bottom:2px solid transparent}
.nav a:hover,.nav a.active{color:var(--blue-ink);border-color:var(--gold)}
.btn{display:inline-block;background:linear-gradient(180deg,var(--blue),var(--blue-deep));color:#fff;
  padding:12px 24px;border-radius:40px;font-weight:600;border:0;cursor:pointer;
  box-shadow:0 8px 20px rgba(43,106,160,.28);transition:.15s}
.btn:hover{transform:translateY(-2px);color:#fff;box-shadow:0 12px 26px rgba(43,106,160,.35)}
.btn.ghost{background:transparent;color:var(--blue-deep);border:1.5px solid var(--sky-300);box-shadow:none}
.btn.ghost:hover{border-color:var(--gold);color:var(--gold-deep)}

/* ---- hero (небо + арка-намёк) ---- */
.hero{position:relative;overflow:hidden;
  background:linear-gradient(180deg,#dcefff 0%,#eef7ff 55%,#ffffff 100%)}
.hero::before{content:"";position:absolute;inset:0;z-index:0;
  background:
   radial-gradient(60% 40% at 15% 20%,rgba(255,255,255,.9),transparent 60%),
   radial-gradient(50% 35% at 85% 15%,rgba(255,255,255,.85),transparent 60%),
   radial-gradient(45% 30% at 70% 80%,rgba(255,255,255,.8),transparent 60%)}
/* золотая арка-намёк */
.hero .arch{position:absolute;z-index:0;top:40px;left:50%;transform:translateX(-50%);
  width:520px;height:520px;border:1.5px solid var(--gold);border-radius:50%;
  opacity:.35;mask:linear-gradient(180deg,#000 0 55%,transparent 60%)}
.hero .wrap{position:relative;z-index:1;display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center;padding:76px 24px}
.hero h1{font-size:44px;line-height:1.14;font-weight:600;color:var(--blue-ink)}
.hero .lead{font-size:19px;color:var(--ink-soft);margin:18px 0 28px;max-width:46ch}
.hero .cta{display:flex;gap:14px;flex-wrap:wrap}
.hero .media{position:relative;border-radius:24px;overflow:hidden;box-shadow:var(--shadow);border:6px solid #fff}
.hero .media img{width:100%;height:400px;object-fit:cover}
.kicker{display:inline-flex;align-items:center;gap:10px;font-size:13px;letter-spacing:2px;text-transform:uppercase;
  color:var(--blue-deep);margin-bottom:18px}
.kicker::before{content:"";width:26px;height:2px;background:var(--gold)}

/* clouds strip */
.cloudsep{height:60px;background:linear-gradient(180deg,transparent,#fff);margin-top:-60px;position:relative;z-index:1}

/* ---- alert ---- */
.alert{background:rgba(255,255,255,.8);border:1px solid var(--gold-tint);border-left:4px solid var(--gold);
  border-radius:14px;padding:16px 20px;margin:28px auto;color:#6a5626;font-size:14.5px;box-shadow:var(--shadow-sm)}
.alert b{color:#584418}

/* ---- sections ---- */
.section{padding:70px 0}
.section.tint{background:linear-gradient(180deg,#f2f8ff,#ffffff)}
.section-head{max-width:720px;margin:0 auto 42px;text-align:center}
.section-head .goldline{margin:0 auto 16px}
.section-head h2{font-size:32px;margin:0 0 12px}
.section-head p{color:var(--ink-soft);margin:0}

/* ---- service numbered ---- */
.svc-list{display:grid;grid-template-columns:repeat(2,1fr);gap:14px 40px}
.svc-list .it{display:flex;gap:16px;align-items:flex-start;padding:16px;border-radius:14px;background:#fff;
  border:1px solid var(--line);box-shadow:var(--shadow-sm)}
.svc-list .n{width:36px;height:36px;border-radius:50%;background:linear-gradient(180deg,var(--sky-100),var(--sky-200));
  color:var(--blue-deep);display:grid;place-items:center;font-weight:700;flex:none;border:1px solid var(--gold-tint)}
.svc-list h4{margin:0 0 3px;font-size:16px;color:var(--blue-ink)}
.svc-list p{margin:0;font-size:14px;color:var(--ink-soft)}

/* ---- cards ---- */
.grid{display:grid;gap:24px}
.grid.g3{grid-template-columns:repeat(3,1fr)} .grid.g4{grid-template-columns:repeat(4,1fr)}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-sm);transition:.18s}
.card:hover{transform:translateY(-6px);box-shadow:var(--shadow)}
.card .ph{height:172px;overflow:hidden}
.card .ph img{width:100%;height:100%;object-fit:cover}
.card .bd{padding:22px}
.card h3{font-size:18px;margin:0 0 8px}
.card p{margin:0 0 14px;color:var(--ink-soft);font-size:14.5px}
.card a.more{font-weight:600;font-size:14px;color:var(--gold-deep)}
div.card{position:relative}
div.card a.more::after{position:absolute;inset:0;content:"";z-index:1}

/* ---- price ---- */
.ptable{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-sm)}
.ptable .grouphd{background:linear-gradient(180deg,var(--blue),var(--blue-deep));color:#fff;padding:14px 24px;font-weight:600;letter-spacing:.3px}
.ptable .row{display:flex;justify-content:space-between;gap:20px;padding:15px 24px;border-bottom:1px solid var(--sky-50)}
.ptable .row:last-child{border-bottom:0}
.ptable .row:nth-child(even){background:var(--sky-50)}
.ptable .row .price{font-weight:700;white-space:nowrap;color:var(--gold-deep)}

/* ---- contacts ---- */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:36px}
.info-block{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px;box-shadow:var(--shadow-sm)}
.info-row{display:flex;gap:14px;padding:14px 0;border-bottom:1px solid var(--sky-50)}
.info-row:last-child{border-bottom:0}
.info-row .ic{width:40px;height:40px;border-radius:12px;background:linear-gradient(180deg,var(--sky-100),var(--sky-200));
  display:grid;place-items:center;flex:none;color:var(--blue-deep);font-size:18px}
.info-row .lbl{font-size:12.5px;text-transform:uppercase;letter-spacing:1px;color:var(--ink-soft)}
.info-row .val{font-size:16px;color:var(--blue-ink)}
.form label{display:block;font-size:13px;color:var(--ink-soft);margin:12px 0 5px}
.form input,.form textarea{width:100%;padding:13px 15px;border:1px solid var(--line);border-radius:12px;background:var(--sky-50);font:inherit;color:var(--ink)}
.form input:focus,.form textarea:focus{outline:none;border-color:var(--blue);background:#fff}
.form .btn{margin-top:18px;width:100%;text-align:center}
.map{border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);min-height:260px;
  background:linear-gradient(135deg,var(--sky-100),#fff);display:grid;place-items:center;color:var(--ink-soft)}

/* ---- faq ---- */
.faq{max-width:820px;margin:0 auto}
.faq .q{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px 22px;margin-bottom:12px;box-shadow:var(--shadow-sm)}
.faq .q h4{margin:0 0 6px;font-size:17px;color:var(--blue-ink)}
.faq .q p{margin:0;color:var(--ink-soft);font-size:14.5px}

/* ---- pagehero ---- */
.pagehero{background:linear-gradient(180deg,#dcefff,#f2f8ff);padding:52px 0;position:relative;overflow:hidden}
.pagehero .wrap{position:relative;z-index:1}
.pagehero h1{font-size:34px;margin:0 0 10px}
.pagehero p{margin:0;color:var(--ink-soft);max-width:70ch}
.crumbs{font-size:13.5px;color:var(--ink-soft);padding:0 0 16px}
.crumbs a{color:var(--ink-soft)}

/* ---- footer ---- */
.footer{background:linear-gradient(180deg,#1e3f5c,#16324a);color:#bcd3e6;padding:56px 0 26px;margin-top:20px}
.footer .cols{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:32px}
.footer h5{color:#fff;font-size:15px;margin:0 0 14px}
.footer a{color:#bcd3e6;display:block;padding:4px 0;font-size:14px}
.footer a:hover{color:var(--gold)}
.footer .brand b{color:#fff}.footer .brand small{color:#8fabc4}
.footer .bottom{border-top:1px solid #2c5170;margin-top:34px;padding-top:18px;font-size:13px;color:#7f9cb5;
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}

@media(max-width:900px){
  .hero .wrap{grid-template-columns:1fr;padding:48px 24px}
  .hero .media img{height:300px}.hero .arch{width:360px;height:360px}
  .grid.g3,.grid.g4,.svc-list,.contact-grid,.footer .cols{grid-template-columns:1fr}
  .nav{display:none}
}

/* ============ Анимированная сцена героя: облака + золотые врата + лестница ============ */
.scene{background:linear-gradient(180deg,#bfe0fb 0%,#e2f1ff 55%,#f4faff 100%);border:6px solid #fff;
  perspective:1100px}
.sky-scene{position:relative;width:100%;height:400px;overflow:hidden}
/* солнце-сияние за вратами */
.sky-scene .sun{position:absolute;top:38%;left:50%;transform:translate(-50%,-50%);
  width:150px;height:150px;border-radius:50%;
  background:radial-gradient(circle,#fff 0%,#fff7df 35%,rgba(255,236,179,.5) 60%,transparent 72%);
  animation:sunPulse 4s ease-in-out infinite}
@keyframes sunPulse{0%,100%{opacity:.7;transform:translate(-50%,-50%) scale(1)}50%{opacity:1;transform:translate(-50%,-50%) scale(1.12)}}
/* свет из-за врат, разгорается когда открываются */
.sky-scene .gate-glow{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  width:230px;height:330px;border-radius:120px 120px 0 0;
  background:radial-gradient(ellipse at 50% 40%,#ffffff 0%,#fff6db 45%,rgba(255,240,200,.4) 70%,transparent 80%);
  opacity:0;animation:glowIn 2.6s ease-out 1s forwards}
@keyframes glowIn{to{opacity:1}}
/* лестница в свет */
.sky-scene .stairway{position:absolute;left:50%;bottom:0;transform:translateX(-50%);
  width:200px;height:150px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;z-index:2}
.sky-scene .stairway i{display:block;height:11px;margin-top:3px;border-radius:3px;
  background:linear-gradient(180deg,#fff,#e9d9a8);box-shadow:0 2px 4px rgba(120,90,20,.18)}
.sky-scene .stairway i:nth-child(1){width:60px;opacity:.95}
.sky-scene .stairway i:nth-child(2){width:80px;opacity:.9}
.sky-scene .stairway i:nth-child(3){width:100px;opacity:.85}
.sky-scene .stairway i:nth-child(4){width:122px;opacity:.8}
.sky-scene .stairway i:nth-child(5){width:146px;opacity:.75}
.sky-scene .stairway i:nth-child(6){width:172px;opacity:.7}
.sky-scene .stairway i:nth-child(7){width:200px;opacity:.65}
/* золотые врата (две створки) */
.gates{position:absolute;top:70px;left:50%;transform:translateX(-50%);
  width:220px;height:290px;transform-style:preserve-3d;z-index:3}
.leaf{position:absolute;top:0;width:110px;height:290px;
  background:
    repeating-linear-gradient(90deg,#e9c976 0 3px,#c9a24b 3px 6px,#b8912f 6px 9px,transparent 9px 22px),
    linear-gradient(180deg,#f2dfa0,#c9a24b);
  border:3px solid #a8862f;box-shadow:0 6px 18px rgba(120,90,20,.3);backface-visibility:hidden}
.leaf::after{content:"";position:absolute;inset:6px;border:2px solid rgba(168,134,47,.6);border-radius:2px}
.leaf.left{left:0;transform-origin:left center;border-radius:0;border-top-left-radius:90px;
  animation:openL 2.4s cubic-bezier(.6,.02,.3,1) 1s forwards}
.leaf.right{right:0;transform-origin:right center;border-top-right-radius:90px;
  animation:openR 2.4s cubic-bezier(.6,.02,.3,1) 1s forwards}
@keyframes openL{0%,18%{transform:rotateY(0)}100%{transform:rotateY(-108deg)}}
@keyframes openR{0%,18%{transform:rotateY(0)}100%{transform:rotateY(108deg)}}
/* золотая арка над вратами */
.gates .arch-top{position:absolute;top:-2px;left:50%;transform:translateX(-50%);z-index:4;
  width:226px;height:120px;border:4px solid #c9a24b;border-bottom:none;border-radius:113px 113px 0 0;
  box-shadow:0 0 14px rgba(201,162,75,.5)}
/* облака по бокам */
.cloud{position:absolute;background:#fff;border-radius:50%;filter:blur(1px);opacity:.95;
  box-shadow:24px 6px 0 -4px #fff,48px 0 0 -6px #fff,-24px 6px 0 -6px #fff}
.cloud.l1{width:56px;height:56px;top:40px;left:-70px;animation:driftL 9s ease-in-out infinite}
.cloud.l2{width:40px;height:40px;top:150px;left:-60px;animation:driftL 11s ease-in-out .8s infinite}
.cloud.r1{width:58px;height:58px;top:60px;right:-70px;animation:driftR 10s ease-in-out infinite}
.cloud.r2{width:42px;height:42px;top:170px;right:-60px;animation:driftR 12s ease-in-out 1s infinite}
@keyframes driftL{0%,100%{transform:translateX(0)}50%{transform:translateX(34px)}}
@keyframes driftR{0%,100%{transform:translateX(0)}50%{transform:translateX(-34px)}}
@media(max-width:900px){.sky-scene{height:300px}.gates{top:50px;height:230px}.leaf{height:230px}}

/* ============ Киношный герой: реалистичный фон + наплыв ============ */
.hero-cine{position:relative;min-height:640px;display:flex;align-items:center;overflow:hidden;
  background:#dce9f6}
.hero-cine .bg{position:absolute;inset:-6%;z-index:0;background-size:cover;background-repeat:no-repeat;
  will-change:transform,opacity;backface-visibility:hidden}
.hero-cine .bg.closed{background-image:url(/img/heaven-closed.png);background-position:center 52%;
  transform-origin:50% 46%;animation:cineClosed 13s ease-in-out infinite}
.hero-cine .bg.open{background-image:url(/img/heaven-open.png);background-position:center 46%;
  transform-origin:50% 44%;opacity:0;animation:cineOpen 13s ease-in-out infinite}
@keyframes cineClosed{
  0%{opacity:1;transform:scale(1.02)}
  38%{opacity:1;transform:scale(1.18)}
  55%{opacity:0;transform:scale(1.30)}
  92%{opacity:0;transform:scale(1.02)}
  100%{opacity:1;transform:scale(1.02)}}
@keyframes cineOpen{
  0%{opacity:0;transform:scale(1.22)}
  38%{opacity:0;transform:scale(1.14)}
  60%{opacity:1;transform:scale(1.05)}
  86%{opacity:1;transform:scale(1.0)}
  94%{opacity:0;transform:scale(1.14)}
  100%{opacity:0;transform:scale(1.22)}}
/* пульсирующие лучи света у врат */
.hero-cine .rays{position:absolute;inset:0;z-index:1;pointer-events:none;mix-blend-mode:screen;
  background:radial-gradient(circle at 61% 40%,rgba(255,246,214,.6),rgba(255,246,214,.15) 26%,transparent 46%);
  animation:rayPulse 5.5s ease-in-out infinite}
@keyframes rayPulse{0%,100%{opacity:.45}50%{opacity:.95}}
/* белая дымка слева — читаемость текста */
.hero-cine .scrim{position:absolute;inset:0;z-index:2;pointer-events:none;
  background:linear-gradient(95deg,rgba(247,251,255,.96) 0%,rgba(247,251,255,.82) 30%,rgba(247,251,255,.35) 50%,rgba(247,251,255,0) 66%)}
.hero-cine .wrap{position:relative;z-index:3;padding:70px 24px}
.hero-cine .hero-copy{max-width:560px}
.hero-cine h1{font-size:46px;line-height:1.12;text-shadow:0 1px 0 rgba(255,255,255,.6)}
.hero-cine .lead{font-size:19px;color:var(--ink-soft);margin:18px 0 28px;max-width:44ch}
@media(max-width:900px){
  .hero-cine{min-height:560px}
  .hero-cine .scrim{background:linear-gradient(180deg,rgba(247,251,255,.9) 0%,rgba(247,251,255,.5) 40%,rgba(247,251,255,.7) 100%)}
  .hero-cine h1{font-size:34px}
}

/* ============ Видео-фон героя: проигрывается 1 раз при загрузке → замирает ============ */
.hero-cine .hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;
  background:#dce9f6}
/* лёгкое золотистое свечение поверх для «тепла» */
.hero-cine::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:radial-gradient(circle at 66% 46%,rgba(255,240,205,.25),transparent 45%)}

/* ============ Шапка внутри героя, поверх видео (без границы) ============ */
.hero-cine{display:block;min-height:0;padding-bottom:72px}
.hero-cine .hero-video{object-position:center right}
/* верхняя светлая вуаль под топбар/меню — для читаемости */
.hero-cine .topscrim{position:absolute;top:0;left:0;right:0;height:190px;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,rgba(244,250,255,.9) 0%,rgba(244,250,255,.55) 45%,rgba(244,250,255,0) 100%)}
/* топбар и шапка — прозрачные, поверх видео, без рамки */
.hero-cine .topbar.over,.hero-cine .header.over{position:relative;z-index:3;background:transparent;
  border:0;box-shadow:none;backdrop-filter:none}
.hero-cine .topbar.over,.hero-cine .topbar.over a{color:var(--blue-ink)}
.hero-cine .topbar.over .phone{color:var(--blue-deep)}
.hero-cine .header.over .nav a{color:var(--blue-ink)}
.hero-cine .header.over .nav a:hover,.hero-cine .header.over .nav a.active{color:var(--gold-deep);border-color:var(--gold)}
/* контент героя ниже шапки */
.hero-cine .hero-wrap{position:relative;z-index:3;padding-top:52px;padding-bottom:20px}
.hero-cine .hero-copy{max-width:560px}
@media(max-width:900px){ .hero-cine .hero-wrap{padding-top:24px} }

/* ============ Навигация компактнее (уже) ============ */
.hero-cine .topbar.over .wrap,.hero-cine .header.over .wrap{max-width:1080px}
.hero-cine .header.over{height:auto}
.hero-cine .header.over .wrap{height:68px;gap:20px}
.hero-cine .header.over .nav{gap:16px}
.hero-cine .header.over .nav a{font-size:14px}
.hero-cine .header.over .brand b{font-size:17px}
.hero-cine .header.over .btn{padding:9px 18px;font-size:14px}
.hero-cine .topbar.over .wrap{height:40px;font-size:13px}

/* ============ ФИНАЛ: навигация отдельно (компактно), видео только в героe, всё ужато ============ */
.topbar.compact{background:var(--sky-50)}
.topbar.compact .wrap{height:34px;font-size:12.5px}
.header.compact{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.header.compact .wrap{max-width:1120px;height:58px;gap:20px}
.header.compact .brand .mark{width:38px;height:38px}
.header.compact .brand b{font-size:16px}
.header.compact .brand small{font-size:11.5px}
.header.compact .nav{gap:16px}
.header.compact .nav a{font-size:14px}
.header.compact .btn{padding:8px 16px;font-size:14px}

/* герой: только видео, компактная высота */
.hero-cine{min-height:0;padding-bottom:0;display:block}
.hero-cine .hero-video{object-position:center right}
.hero-cine .hero-wrap{padding-top:44px;padding-bottom:52px;max-width:1120px}
.hero-cine .hero-copy{max-width:540px}
.hero-cine h1{font-size:38px;line-height:1.12}
.hero-cine .lead{font-size:17px;margin:14px 0 22px;max-width:42ch}
.hero-cine .kicker{margin-bottom:12px}
@media(max-width:900px){ .hero-cine .hero-wrap{padding-top:28px;padding-bottom:36px} }

/* ============ ФИНАЛ v2: видео под навигацией (слито), топбар отдельно, низ героя — плавный переход ============ */
/* шапка прозрачная поверх видео, компактная */
.hero-cine .header.over{position:relative;z-index:3;background:transparent;border:0;box-shadow:none;backdrop-filter:none;height:auto}
.hero-cine .header.over .wrap{max-width:1120px;height:60px;gap:20px}
.hero-cine .header.over .brand .mark{width:38px;height:38px}
.hero-cine .header.over .brand b{font-size:16px;color:var(--blue-ink)}
.hero-cine .header.over .brand small{font-size:11.5px}
.hero-cine .header.over .nav{gap:16px}
.hero-cine .header.over .nav a{font-size:14px;color:var(--blue-ink)}
.hero-cine .header.over .nav a:hover,.hero-cine .header.over .nav a.active{color:var(--gold-deep);border-color:var(--gold)}
.hero-cine .header.over .btn{padding:8px 16px;font-size:14px}
/* верхняя светлая вуаль под меню — длинная и мягкая, стык с топбаром растворён */
.hero-cine .topscrim{position:absolute;top:0;left:0;right:0;height:300px;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,
    var(--sky-50) 0%,
    rgba(242,248,255,.9) 15%,
    rgba(242,248,255,.68) 32%,
    rgba(242,248,255,.42) 50%,
    rgba(242,248,255,.2) 70%,
    rgba(242,248,255,.05) 86%,
    rgba(242,248,255,0) 100%)}
/* контент героя ниже шапки */
.hero-cine .hero-wrap{padding-top:34px;padding-bottom:92px}
/* нижний плавный градиент — длинный, мягкий переход в следующий блок */
.hero-cine .herofade{position:absolute;left:0;right:0;bottom:0;height:260px;z-index:2;pointer-events:none;
  background:linear-gradient(180deg,
    rgba(244,250,255,0) 0%,
    rgba(244,250,255,.1) 24%,
    rgba(244,250,255,.28) 44%,
    rgba(244,250,255,.52) 62%,
    rgba(244,250,255,.78) 80%,
    #f4faff 100%)}

/* топбар тоже поверх видео — прозрачный, сливается через верхнюю вуаль */
.hero-cine .topbar.over{position:relative;z-index:3;background:transparent}
.hero-cine .topbar.over .wrap{height:38px;font-size:12.5px}
.hero-cine .topbar.over,.hero-cine .topbar.over span{color:var(--blue-ink)}
.hero-cine .topbar.over .phone{color:var(--blue-deep)}
/* верхняя вуаль повыше плотностью у самого верха — чтобы адрес читался и стык растворился */
.hero-cine .topscrim{height:330px;background:linear-gradient(180deg,
  var(--sky-50) 0%,
  var(--sky-50) 8%,
  rgba(242,248,255,.9) 20%,
  rgba(242,248,255,.66) 36%,
  rgba(242,248,255,.4) 54%,
  rgba(242,248,255,.18) 72%,
  rgba(242,248,255,.04) 88%,
  rgba(242,248,255,0) 100%)}

/* ФИКС высот верха — форс компактно */
.hero-cine .topbar.over .wrap{height:36px !important;min-height:0 !important;align-items:center}
.hero-cine .header.over .wrap{height:56px !important;min-height:0 !important;align-items:center}
.hero-cine .hero-wrap{padding-top:18px !important;padding-bottom:64px !important}

/* ФИКС: у топбара и шапки убрать вертикальный padding (его вешал общий .hero-cine .wrap) */
.hero-cine .topbar.over > .wrap{padding:0 24px !important}
.hero-cine .header.over > .wrap{padding:0 24px !important}

/* ============ Правки: логотип, кнопки, читаемость на видео ============ */
/* новый логотип — золотое пламя + чистый серифный логотайп, без «кружка Ⓒ» */
.hero-cine .header.over .brand .mark{width:auto;height:auto;background:none;border:0;border-radius:0;
  display:inline-flex;align-items:center;justify-content:center}
.hero-cine .header.over .brand .mark::before{display:none}
.hero-cine .header.over .brand .mark svg{display:block;filter:drop-shadow(0 1px 1px rgba(120,90,20,.25))}
.hero-cine .header.over .brand b{font-family:'PT Serif',Georgia,serif;font-weight:700;font-size:17px;letter-spacing:.2px}
.hero-cine .header.over .brand small{letter-spacing:.3px}

/* кнопки — голубые, воздушные */
.btn{background:linear-gradient(180deg,#5aa7dd,#3b82c4);box-shadow:0 8px 20px rgba(59,130,196,.28)}
.btn:hover{background:linear-gradient(180deg,#4f9fd6,#2f74b4);box-shadow:0 12px 26px rgba(59,130,196,.36)}
.btn.ghost{background:rgba(255,255,255,.55);color:var(--blue-ink);border:1.5px solid rgba(201,162,75,.6);
  box-shadow:none;backdrop-filter:blur(4px)}
.btn.ghost:hover{background:#fff;border-color:var(--gold);color:var(--gold-deep)}

/* читаемость текста в героe — слева плотная светлая подложка, мягко уходящая вправо */
.hero-cine .scrim{background:linear-gradient(95deg,
  #f4faff 0%,
  rgba(244,250,255,.98) 24%,
  rgba(244,250,255,.9) 38%,
  rgba(244,250,255,.6) 52%,
  rgba(244,250,255,.2) 66%,
  rgba(244,250,255,0) 78%)}
.hero-cine .hero-copy .lead{color:var(--ink)}

/* ============ Подвал — переработанный ============ */
/* мягкий переход из светлой страницы в тёмный футер */
.footfade{height:120px;background:linear-gradient(180deg,#ffffff 0%,#eaf1f7 40%,#24455f 100%)}
.footer{background:linear-gradient(180deg,#24455f,#16324a);color:#c3d4e2;padding:14px 0 26px;margin-top:0}
.footer .wrap{max-width:1120px}
/* верхняя золотая линия */
.footer .foot-top{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;
  padding:22px 0 26px;border-bottom:1px solid rgba(216,183,106,.25);margin-bottom:34px}
.footer .foot-brand{display:flex;align-items:center;gap:14px}
.footer .foot-brand .fmark{display:inline-flex}
.footer .foot-brand b{font-family:'PT Serif',Georgia,serif;color:#fff;font-size:20px;display:block;letter-spacing:.3px}
.footer .foot-brand small{color:#9fb6c8;font-size:12.5px}
.footer .foot-phone{font-family:'PT Serif',Georgia,serif;font-size:26px;color:#fff;letter-spacing:.5px}
.footer .foot-phone:hover{color:var(--gold)}
.footer .cols{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:32px}
.footer h5{font-family:'PT Serif',Georgia,serif;color:#fff;font-size:15px;margin:0 0 16px;position:relative;padding-bottom:10px}
.footer h5::after{content:"";position:absolute;left:0;bottom:0;width:28px;height:2px;background:var(--gold)}
.footer a{color:#c3d4e2;display:block;padding:5px 0;font-size:14px}
.footer a:hover{color:var(--gold)}
.footer .foot-contacts p{margin:0 0 14px;font-size:14px;line-height:1.5;color:#c3d4e2}
.footer .foot-contacts span{display:block;font-size:11.5px;text-transform:uppercase;letter-spacing:1px;color:#84a0b6;margin-bottom:3px}
.footer .bottom{border-top:1px solid rgba(255,255,255,.08);margin-top:36px;padding-top:20px;font-size:12.5px;color:#7f9cb2;
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}
.footer .bottom a{display:inline;color:#9fb6c8}.footer .bottom a:hover{color:var(--gold)}
@media(max-width:900px){.footer .cols{grid-template-columns:1fr 1fr}.footer .foot-phone{font-size:22px}}

/* ============ Подвал — светлый (A) + компактный переход ============ */
.footfade{height:64px;background:linear-gradient(180deg,#ffffff 0%,#f2f7fd 55%,#e7eef7 100%)}
.footer{background:linear-gradient(180deg,#e7eef7,#dbe6f2);color:#3d556b;padding:6px 0 22px}
.footer .foot-top{padding:20px 0 20px;border-bottom-color:rgba(201,162,75,.35);margin-bottom:28px}
.footer .foot-brand b{color:var(--blue-ink)} .footer .foot-brand small{color:#7d94ab}
.footer .foot-phone{color:var(--blue-ink)} .footer .foot-phone:hover{color:var(--gold-deep)}
.footer h5{color:var(--blue-ink)} .footer a{color:#4a637a} .footer a:hover{color:var(--gold-deep)}
.footer .foot-contacts p{color:#4a637a} .footer .foot-contacts span{color:#8aa0b6}
.footer .bottom{border-top-color:rgba(30,63,92,.12);color:#6d859b;margin-top:28px}
.footer .bottom a{color:#5b7085} .footer .bottom a:hover{color:var(--gold-deep)}
.footer .fmark svg{stroke:#a8862f}
/* меньше воздуха у последней секции перед подвалом */
.section#form{padding-bottom:44px}

/* ============ Фон страницы ровный + бесшовный нижний градиент героя ============ */
body{background:#f1f7fe !important}
.hero-cine .herofade{background:linear-gradient(180deg,
  rgba(241,247,254,0) 0%,
  rgba(241,247,254,.12) 24%,
  rgba(241,247,254,.32) 44%,
  rgba(241,247,254,.55) 62%,
  rgba(241,247,254,.8) 80%,
  #f1f7fe 100%) !important}
/* секции без своих заливок пусть показывают ровный фон */
.section{background:transparent}
.section.tint{background:linear-gradient(180deg,#e9f2fc,#f1f7fe)}
/* топбар убран — чуть больше воздуха сверху под меню */
.hero-cine .hero-wrap{padding-top:22px !important}

/* воздух сверху над навигацией (топбара больше нет) */
.hero-cine .header.over{padding-top:22px}
.hero-cine .topscrim{height:360px}

/* градиент героя уходит в цвет блока под ним (голубой), а не в белый */
body{background:#e6eef8 !important}
.hero-cine .herofade{background:linear-gradient(180deg,
  rgba(230,238,248,0) 0%,
  rgba(230,238,248,.12) 24%,
  rgba(230,238,248,.34) 44%,
  rgba(230,238,248,.58) 62%,
  rgba(230,238,248,.82) 80%,
  #e6eef8 100%) !important}
.section.tint{background:linear-gradient(180deg,#dfe9f6,#e6eef8)}

/* ============ Подвал (A) под голубой фон #e6eef8 — бесшовно ============ */
.footfade{height:64px !important;background:linear-gradient(180deg,#e6eef8 0%,#e1ebf6 55%,#dae6f3 100%) !important}
.footer{background:linear-gradient(180deg,#dae6f3,#cfddee) !important;color:#3d556b}
.footer .bottom{border-top-color:rgba(30,63,92,.14)}

/* ============ Последний блок (форма) + подвал — светлая слитая зона (как footer_A_final) ============ */
.section#form{background:linear-gradient(180deg,#e6eef8 0%,#eff5fc 14%,#f5f9ff 34%,#f5f9ff 100%) !important;padding-bottom:44px}
.footfade{height:64px !important;background:linear-gradient(180deg,#f4f9ff 0%,#eef4fb 55%,#e7eef7 100%) !important}
.footer{background:linear-gradient(180deg,#e7eef7,#dbe6f2) !important;color:#3d556b}

/* ============ Ритмика секций: чередование светлый ↔ голубой ============ */
body{background:#f5f9ff !important}                 /* база светлая */
.hero-cine .herofade{background:linear-gradient(180deg,
  rgba(245,249,255,0),rgba(245,249,255,.5) 60%,#f5f9ff 100%) !important}
.section{background:transparent}                     /* Услуги — на светлой базе */
.section.tint{background:#e3ecf7 !important;position:relative}  /* Направления — голубой блок */
/* мягкие кромки у голубого блока, чтобы не резал */
.section.tint::before,.section.tint::after{content:"";position:absolute;left:0;right:0;height:160px;pointer-events:none}
.section.tint::before{top:0;background:linear-gradient(180deg,#f5f9ff 0%,rgba(227,236,247,0) 100%)}
.section.tint::after{bottom:0;background:linear-gradient(0deg,#f5f9ff 0%,rgba(227,236,247,0) 100%)}
/* последний блок форма + подвал остаются светлыми (уже заданы выше) */
.section#form{background:#f5f9ff !important}
.footfade{background:linear-gradient(180deg,#f5f9ff 0%,#eef4fb 55%,#e7eef7 100%) !important}

/* заголовок героя — первая строка в одну линию */
.hero-cine .hero-copy{max-width:640px}
.hero-cine h1{font-size:35px;line-height:1.14}
@media(max-width:760px){.hero-cine h1{font-size:28px}}

/* герой шире, текст распределить свободнее */
.hero-cine .hero-wrap{max-width:1280px}
.hero-cine .header.over .wrap{max-width:1280px}
.hero-cine .hero-copy{max-width:720px}
.hero-cine h1{font-size:40px;line-height:1.12}
.hero-cine .lead{font-size:18px;max-width:56ch}
@media(max-width:1320px){.hero-cine .hero-wrap,.hero-cine .header.over .wrap{max-width:1180px}}
@media(max-width:760px){.hero-cine h1{font-size:29px}}

/* герой выше по высоте */
.hero-cine{min-height:660px;display:flex;flex-direction:column}
.hero-cine .hero-wrap{padding-top:46px !important;padding-bottom:120px !important;margin-top:auto;margin-bottom:auto}
@media(max-width:760px){.hero-cine{min-height:520px}.hero-cine .hero-wrap{padding-bottom:70px !important}}

/* откат ширины текста (растягивали зря) — колонку сузить, высоту оставить */
.hero-cine .hero-wrap{max-width:1120px !important}
.hero-cine .header.over .wrap{max-width:1120px !important}
.hero-cine .hero-copy{max-width:560px !important}
.hero-cine h1{font-size:35px !important}
.hero-cine .lead{font-size:18px !important;max-width:44ch !important}

/* вернуть текст к левому краю: без flex-центрирования, высота через отступы */
.hero-cine{display:block !important;min-height:0 !important}
.hero-cine .hero-wrap{margin:0 auto !important;padding-top:92px !important;padding-bottom:130px !important;
  max-width:1120px !important}
.hero-cine .hero-video{object-position:center right}

/* компактная шапка на внутренних страницах (базовый .header) */
.header .wrap{height:66px}
.header .nav{gap:16px}.header .nav a{font-size:14px}
.header .btn{padding:8px 16px;font-size:14px}
.header .brand b{font-size:16px}
/* pagehero чуть воздушнее */
.pagehero{padding:56px 0 48px}

/* ============ Внутренние страницы: прозрачная шапка на подложке ============ */
.pagehero{position:relative;padding-top:0;overflow:hidden;
  background:linear-gradient(180deg,#e3ecf7 0%,#eef4fb 70%,#f5f9ff 100%)}
.pagehero .header.over-light{background:transparent;border:0;box-shadow:none;position:relative;z-index:2}
.pagehero .header.over-light .wrap{height:66px}
.pagehero .pagehero-body{padding-top:26px;padding-bottom:12px}
.pagehero .crumbs{color:var(--ink-soft)}
/* карточка "Как доехать" вместо пустой карты */
.wayto{display:flex;align-items:center;gap:16px;margin-top:30px;background:#fff;border:1px solid var(--line);
  border-radius:16px;padding:20px 24px;box-shadow:var(--shadow-sm);transition:.18s}
.wayto:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:var(--gold-tint)}
.wayto .wayto-ic{width:48px;height:48px;flex:none;border-radius:12px;display:grid;place-items:center;font-size:22px;
  background:linear-gradient(180deg,var(--sky-100),var(--sky-200));color:var(--blue-deep);border:1px solid var(--gold-tint)}
.wayto .wayto-tx{display:flex;flex-direction:column}
.wayto .wayto-tx b{font-family:'PT Serif',Georgia,serif;font-size:18px;color:var(--blue-ink)}
.wayto .wayto-tx small{color:var(--ink-soft);font-size:14px;margin-top:2px}
.wayto .wayto-arr{margin-left:auto;color:var(--gold-deep);font-size:22px;font-weight:700}

/* ============ Единое положение навигации на всех страницах ============ */
.hero-cine .header.over{padding-top:22px !important}
.hero-cine .header.over .wrap{height:64px !important;max-width:1120px !important}
.pagehero .header.over-light{padding-top:22px !important}
.pagehero .header.over-light .wrap{height:64px !important;max-width:1120px !important}
.pagehero .wrap{max-width:1120px}

/* телефон в шапке */
.nav-phone{display:inline-flex;align-items:center;gap:7px;font-weight:700;font-size:15px;white-space:nowrap;
  color:var(--blue-ink)}
.nav-phone::before{content:"☎";color:var(--gold-deep);font-size:14px}
.nav-phone:hover{color:var(--gold-deep)}
.hero-cine .header.over .nav-phone,.pagehero .header.over-light .nav-phone{color:var(--blue-ink)}
@media(max-width:1100px){.nav-phone{display:none}}

/* внутренние: белый верх за навигацией → плавный градиент в след. блок (как на главной) */
.pagehero{background:linear-gradient(180deg,
  #ffffff 0%,
  #f7fbff 26%,
  #eef4fb 55%,
  #e7eff8 78%,
  #f5f9ff 100%) !important}

/* одинаковый gap в шапке на всех страницах — чтобы меню не съезжало */
.pagehero .header.over-light .wrap{gap:20px !important}
.hero-cine .header.over .wrap{gap:20px !important}

/* карточки услуг — иконки вместо фото */
.card .ph.ico{height:120px;display:grid;place-items:center;overflow:visible;
  background:linear-gradient(180deg,#eef5fc,#e3ecf7);border-bottom:1px solid var(--line)}
.card .ph.ico svg{filter:drop-shadow(0 1px 1px rgba(120,90,20,.15))}

/* ============ Выпадающие меню ============ */
.hero-cine, .pagehero{overflow:visible}
.nav{align-items:center}
.ndrop{position:relative;display:inline-flex;align-items:center}
.ndrop>.ntop{display:inline-flex;align-items:center;gap:5px;color:var(--ink-soft);font-size:14px;
  padding:6px 0;border-bottom:2px solid transparent;cursor:pointer;white-space:nowrap}
.ndrop>.ntop::after{content:"";width:6px;height:6px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;
  transform:rotate(45deg) translateY(-1px);transition:.15s;opacity:.7}
.ndrop:hover>.ntop{color:var(--blue-ink);border-color:var(--gold)}
.ndrop:hover>.ntop::after{transform:rotate(225deg);opacity:1}
.hero-cine .header.over .ndrop>.ntop,.pagehero .header.over-light .ndrop>.ntop{color:var(--blue-ink)}
.ndrop>.ntop.active{color:var(--blue-ink);border-color:var(--gold)}
.nmenu{position:absolute;top:calc(100% + 12px);left:50%;transform:translateX(-50%) translateY(8px);
  min-width:250px;background:#fff;border:1px solid var(--line);border-radius:14px;
  box-shadow:0 18px 44px rgba(30,63,92,.16);padding:8px;opacity:0;visibility:hidden;transition:.18s;z-index:60}
.nmenu::before{content:"";position:absolute;top:-16px;left:0;right:0;height:16px}   /* мостик для ховера */
.ndrop:hover .nmenu{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}
.nmenu a{display:block;padding:9px 14px;border-radius:9px;color:var(--ink-soft);font-size:14px;border:0;white-space:nowrap}
.nmenu a:hover{background:var(--sky-50);color:var(--blue-ink)}
@media(max-width:1100px){.nmenu{display:none}}

/* шапка (и её выпадашки) выше контента героя, чтобы меню не просвечивало */
.hero-cine .header.over{z-index:40 !important}
.pagehero .header.over-light{z-index:40 !important}
.hero-cine .hero-wrap{z-index:3}

/* иконки контактов (SVG вместо emoji) */
.info-row .ic svg,.wayto .wayto-ic svg{display:block}
.wayto .wayto-ic{color:var(--gold-deep)}
/* длинные мягкие кромки остаются включены на всех viewport */

/* ============ Контакты — стили для вариантов макета ============ */
.cmap{position:relative;border-radius:18px;overflow:hidden;border:1px solid var(--line);min-height:340px;
  background:repeating-linear-gradient(0deg,rgba(59,130,196,.07) 0 1px,transparent 1px 44px),
    repeating-linear-gradient(90deg,rgba(59,130,196,.07) 0 1px,transparent 1px 44px),
    linear-gradient(160deg,#e8f1fb,#dae7f5);box-shadow:var(--shadow-sm)}
.cmap .road{position:absolute;background:rgba(255,255,255,.7)}
.cmap .r1{top:44%;left:0;right:0;height:14px}
.cmap .r2{top:0;bottom:0;left:38%;width:12px}
.cmap .pin{position:absolute;top:38%;left:37%;transform:translate(-50%,-100%);color:var(--gold-deep)}
.cmap .pin svg{filter:drop-shadow(0 3px 4px rgba(120,90,20,.35))}
.cmap .lbl{position:absolute;left:18px;bottom:18px;background:#fff;border-radius:12px;padding:10px 16px;
  box-shadow:var(--shadow-sm);font-weight:600;color:var(--blue-ink);font-size:14px;display:flex;gap:8px;align-items:center}
.cmap .zoom{position:absolute;right:16px;top:16px;background:#fff;border-radius:10px;box-shadow:var(--shadow-sm);
  display:flex;flex-direction:column;overflow:hidden}
.cmap .zoom span{padding:6px 12px;color:var(--ink-soft);border-bottom:1px solid var(--line);font-weight:700}
.cmap .zoom span:last-child{border:0}
.ctiles{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:8px}
.ctile{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px 20px;text-align:center;box-shadow:var(--shadow-sm);transition:.18s}
.ctile:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.ctile .tic{width:52px;height:52px;margin:0 auto 14px;border-radius:14px;display:grid;place-items:center;
  background:linear-gradient(180deg,var(--sky-100),var(--sky-200));border:1px solid var(--gold-tint)}
.ctile .tlbl{font-size:12px;text-transform:uppercase;letter-spacing:1px;color:var(--ink-soft);margin-bottom:5px}
.ctile .tval{font-size:15px;color:var(--blue-ink);font-weight:600;line-height:1.4}
.contact-hero{display:grid;grid-template-columns:1fr 1fr;gap:0;border-radius:20px;overflow:hidden;box-shadow:var(--shadow);border:1px solid var(--line)}
.contact-hero .left{background:#fff;padding:40px}
.contact-hero .left .bigphone{font-family:'PT Serif',Georgia,serif;font-size:30px;color:var(--blue-ink);margin:6px 0 4px;display:block}

/* ============ FAQ-аккордеон (Контакты) ============ */
.faq-acc details{background:#fff;border:1px solid var(--line);border-radius:14px;margin-bottom:12px;box-shadow:var(--shadow-sm)}
.faq-acc summary{list-style:none;cursor:pointer;padding:17px 22px;font-family:'PT Serif',Georgia,serif;font-weight:700;
  color:var(--blue-ink);font-size:16px;display:flex;justify-content:space-between;align-items:center;gap:14px}
.faq-acc summary::-webkit-details-marker{display:none}
.faq-acc summary::after{content:"";width:9px;height:9px;border-right:2px solid var(--gold-deep);border-bottom:2px solid var(--gold-deep);
  transform:rotate(45deg);transition:.2s;flex:none}
.faq-acc details[open] summary::after{transform:rotate(-135deg)}
.faq-acc details[open] summary{border-bottom:1px solid var(--sky-50)}
.faq-acc details p{margin:0;padding:15px 22px;color:var(--ink-soft);font-size:14.5px;animation:faqIn .25s ease}
@keyframes faqIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}

/* ровный градиент шапки внутренних страниц — без тёмного дипа под h1 */
.pagehero{background:linear-gradient(180deg,#ffffff 0%,#f8fb ff 40%,#f5f9ff 100%) !important}
.pagehero{background:linear-gradient(180deg,#ffffff 0%,#f8fbff 45%,#f5f9ff 100%) !important}

/* Контакты: плотнее между шапкой и контентом */
.pagehero .pagehero-body{padding-bottom:6px !important}
body .section:first-of-type{padding-top:34px}
/* реальная карта в контейнере */
.cmap.ymap{padding:0;background:#e8f1fb;overflow:hidden}
.cmap.ymap iframe{display:block;width:100%;height:100%;min-height:360px;border:0}
/* FAQ: убрать расстояние между вопросом и ответом */
.faq-acc details[open] summary{border-bottom:0}
.faq-acc summary{padding-bottom:14px}
.faq-acc details p{padding-top:0;padding-bottom:18px}

/* ещё плотнее зазор под шапкой Контактов */
.pagehero{padding-bottom:14px !important}
body .section:first-of-type{padding-top:16px !important}

/* Контакты: минимальный зазор шапка→карточки */
.pagehero{padding-bottom:0 !important}
.pagehero .pagehero-body{padding-bottom:0 !important}
body .section:first-of-type{padding-top:8px !important}

/* точный зазор: секция сразу после шапки внутренней страницы */
.pagehero + section.section{padding-top:22px !important}

/* кликабельные телефон/email — цвет как у текста, ховер золотой */
.clink{color:inherit;text-decoration:none;transition:.15s}
.clink:hover{color:var(--gold-deep)}
.info-row .val .clink,.ctile .tval .clink{color:var(--blue-ink)}

/* ============ Цены — варианты ============ */
.tariffs{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:24px}
.tcard{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px 22px;box-shadow:var(--shadow-sm);transition:.18s}
.tcard:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.tcard.hl{background:linear-gradient(180deg,#eaf3fc,#e0ecf8);border-color:var(--sky-300)}
.tcard .tct{font-size:13px;text-transform:uppercase;letter-spacing:1px;color:var(--ink-soft);margin-bottom:8px}
.tcard .tprice{font-family:'PT Serif',Georgia,serif;font-size:26px;color:var(--blue-ink);font-weight:700}
.tcard .tdesc{font-size:13.5px;color:var(--ink-soft);margin-top:8px;line-height:1.45}
.dlcard{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;
  background:linear-gradient(180deg,#fff,#f5f9ff);border:1px solid var(--gold-tint);border-radius:16px;padding:22px 26px;box-shadow:var(--shadow-sm)}
.dlcard b{font-family:'PT Serif',Georgia,serif;font-size:18px;color:var(--blue-ink);display:block}
.dlcard small{color:var(--ink-soft);font-size:14px}
.dlbtns{display:flex;gap:12px;flex-wrap:wrap}
.dlbtns .btn{display:inline-flex;align-items:center;gap:8px}
/* аккордеон групп прайса */
.pgroup{background:#fff;border:1px solid var(--line);border-radius:14px;margin-bottom:14px;overflow:hidden;box-shadow:var(--shadow-sm)}
.pgroup summary{list-style:none;cursor:pointer;padding:16px 24px;font-family:'PT Serif',Georgia,serif;font-weight:700;
  color:#fff;background:linear-gradient(180deg,var(--blue),var(--blue-deep));display:flex;justify-content:space-between;align-items:center}
.pgroup summary::-webkit-details-marker{display:none}
.pgroup summary .cnt{font-family:'Inter';font-weight:500;font-size:13px;opacity:.85}
.pgroup summary::after{content:"";width:9px;height:9px;border-right:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(45deg);transition:.2s;margin-left:14px}
.pgroup[open] summary::after{transform:rotate(-135deg)}
@media(max-width:900px){.tariffs{grid-template-columns:1fr 1fr}}

/* ============ Шаблон страницы услуги (статья + сайдбар) ============ */
.art-grid{display:grid;grid-template-columns:1fr 340px;gap:44px;align-items:start}
.article .lead-p{font-size:18px;color:var(--ink);line-height:1.7;margin:0 0 26px}
.article h2{font-size:23px;color:var(--blue-ink);margin:28px 0 12px;padding-top:4px}
.article p{margin:0 0 14px;color:var(--ink);line-height:1.7}
.article .checklist{list-style:none;padding:0;margin:0 0 10px;display:grid;gap:10px}
.article .checklist li{position:relative;padding-left:30px;color:var(--ink);line-height:1.5}
.article .checklist li::before{content:"";position:absolute;left:0;top:3px;width:18px;height:18px;border-radius:50%;
  background:linear-gradient(180deg,var(--sky-100),var(--sky-200));border:1px solid var(--gold-tint)}
.article .checklist li::after{content:"";position:absolute;left:5px;top:8px;width:7px;height:4px;border-left:1.6px solid var(--gold-deep);border-bottom:1.6px solid var(--gold-deep);transform:rotate(-45deg)}
.aside{position:sticky;top:90px}
.aside-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:26px;box-shadow:var(--shadow-sm)}
@media(max-width:900px){.art-grid{grid-template-columns:1fr}.aside{position:static}}

/* карточки услуг: одинаковая высота, "Подробнее" прижат вниз */
.grid .card{display:flex;flex-direction:column;height:100%}
.card .bd{display:flex;flex-direction:column;flex:1 1 auto}
.card .bd .price{display:block;color:var(--blue-ink);font-weight:600;margin-top:10px}
.card .bd .more{margin-top:auto;padding-top:10px}

/* внутренние текстовые страницы: компактный верх */
.pagesec{padding-top:26px}
/* фото-галерея */
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.gitem{display:block;border-radius:14px;overflow:hidden;border:1px solid var(--line);box-shadow:var(--shadow-sm);aspect-ratio:4/3;transition:.18s}
.gitem:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.gitem img{width:100%;height:100%;object-fit:cover;display:block}
@media(max-width:760px){.gallery{grid-template-columns:1fr 1fr}}

/* фото-полоса под h1 на страницах услуг */
.pphotos{grid-template-columns:repeat(3,1fr);margin:18px 0 26px}
.pphotos .gitem{aspect-ratio:1/1}
@media(max-width:760px){.pphotos{grid-template-columns:1fr 1fr}}

/* герой-текст по левому краю в один край с текстом статьи */
.pagehero .wrap.pagehero-body{max-width:var(--maxw)}

/* лид-баннер под h1 на подстраницах */
.plead{margin:18px 0 26px;border-radius:16px;overflow:hidden;border:1px solid var(--line);box-shadow:var(--shadow-sm);aspect-ratio:16/7}
.plead img{width:100%;height:100%;object-fit:cover;display:block}

/* улучшенная галерея: крупное первое фото + сетка */
.gallery-rich{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:1fr;gap:14px;margin:20px 0 28px}
.gallery-rich .gitem{position:relative;border-radius:14px;overflow:hidden;border:1px solid var(--line);box-shadow:var(--shadow-sm);aspect-ratio:1/1;transition:.2s}
.gallery-rich .gitem:first-child{grid-column:span 2;grid-row:span 2}
.gallery-rich .gitem img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}
.gallery-rich .gitem:hover{box-shadow:var(--shadow);border-color:var(--blue)}
.gallery-rich .gitem:hover img{transform:scale(1.06)}
@media(max-width:760px){.gallery-rich{grid-template-columns:1fr 1fr}.gallery-rich .gitem:first-child{grid-column:span 2;grid-row:auto;aspect-ratio:16/9}}

/* таблица цен внутри страницы услуги */
.svc-price{margin:14px 0 10px}
.svc-price .row{display:flex;justify-content:space-between;gap:18px;padding:12px 16px;border-bottom:1px solid var(--line)}
.svc-price .row:last-child{border-bottom:0}
.svc-price .name{color:var(--ink)}
.svc-price .price{color:var(--blue-ink);font-weight:600;white-space:nowrap}

/* галерея B: баннер + лента миниатюр */
.galB{margin:6px 0 28px}
.galB .ghero{display:block;border-radius:18px;overflow:hidden;box-shadow:0 8px 26px rgba(30,63,92,.14);aspect-ratio:16/7;margin-bottom:12px}
.galB .ghero img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s}
.galB .ghero:hover img{transform:scale(1.04)}
.galB .gstrip{display:grid;gap:10px}
.galB .gthumb{border-radius:12px;overflow:hidden;box-shadow:0 3px 12px rgba(30,63,92,.10);aspect-ratio:1/1}
.galB .gthumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s}
.galB .gthumb:hover img{transform:scale(1.08)}
/* ценник на карточке услуги */
.pricetag{display:inline-block;background:#eef5fc;color:var(--blue-ink);font-weight:600;font-size:14px;padding:5px 12px;border-radius:999px;margin:0 0 12px}

/* лайтбокс */
.lb-ov{position:fixed;inset:0;background:rgba(16,32,48,.92);z-index:9999;display:none;align-items:center;justify-content:center}
.lb-ov.on{display:flex}
.lb-img{max-width:88vw;max-height:86vh;border-radius:10px;box-shadow:0 20px 60px rgba(0,0,0,.5);cursor:zoom-out}
.lb-close{position:absolute;top:22px;right:32px;color:#fff;font-size:42px;line-height:1;cursor:pointer;opacity:.85}
.lb-nav{position:absolute;top:50%;transform:translateY(-50%);color:#fff;font-size:40px;cursor:pointer;padding:18px;opacity:.8;user-select:none}
.lb-nav:hover,.lb-close:hover{opacity:1}
.lb-prev{left:14px}.lb-next{right:14px}
.lb-count{position:absolute;bottom:24px;left:0;right:0;text-align:center;color:#fff;font-size:15px;opacity:.85}
/* карточки услуг — вся плитка кликабельна, ровные высоты */
.grid.g3{align-items:stretch}
a.card{display:flex;flex-direction:column;height:100%;text-decoration:none;color:inherit;transition:.2s}
a.card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
a.card .ph{aspect-ratio:16/10;overflow:hidden}
a.card .ph img{width:100%;height:100%;object-fit:cover;display:block}
a.card .bd{display:flex;flex-direction:column;flex:1}
a.card .more{margin-top:auto}

/* цена в сайдбаре услуги (как на кремации) */
.aside-price{margin:0 0 16px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.aside-price .ap-lbl{font-size:12px;letter-spacing:.08em;color:var(--ink-soft);text-transform:uppercase}
.aside-price .ap-amt{font-family:'PT Serif',Georgia,serif;font-size:28px;color:var(--blue-ink);font-weight:700;margin-top:2px}
.aside-price .ap-sub{font-size:13.5px;color:var(--ink-soft);margin:2px 0 0}

/* список телефонов на контактах */
.phones-list div{margin:2px 0;line-height:1.5}
.phones-list a{font-weight:600}

/* категории в галерее фото */
.gcat{font-family:'PT Serif',Georgia,serif;color:var(--blue-ink);font-size:24px;margin:28px 0 14px}
.gcat:first-child{margin-top:6px}
/* каталог (кладбища/морги) */
.dir-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin:6px 0 10px}
.dir-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px 22px;box-shadow:var(--shadow-sm);display:flex;flex-direction:column}
.dir-card h3{font-family:'PT Serif',Georgia,serif;color:var(--blue-ink);font-size:19px;margin:0 0 6px;line-height:1.3}
.dir-addr{color:var(--ink-soft);font-size:14.5px;margin:0 0 14px;flex:1}
.dir-actions{display:flex;gap:16px;flex-wrap:wrap;align-items:center}
.dir-site{color:#fff;background:var(--blue);padding:7px 16px;border-radius:999px;font-size:14px;font-weight:600;text-decoration:none}
.dir-site:hover{background:var(--blue-ink)}
.dir-map{color:var(--blue);font-size:14px;font-weight:600;text-decoration:none}
.dir-map:hover{text-decoration:underline}
@media(max-width:760px){.dir-grid{grid-template-columns:1fr}}

/* фото-галерея 4 колонки (без пустот) */
.fotopage .gallery{grid-template-columns:repeat(4,1fr)}
@media(max-width:900px){.fotopage .gallery{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.fotopage .gallery{grid-template-columns:1fr 1fr}}
/* цены цветов — компактная строка с точками-лидерами */
.flower-price .name{color:var(--ink)}
.flower-price .price{color:var(--blue-ink);font-weight:600;white-space:nowrap}

/* карточки-статы (вместимость залов) */
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:16px 0 24px}
.stat-card{background:linear-gradient(180deg,#f4f9ff,#ffffff);border:1px solid var(--line);border-radius:14px;padding:18px 16px;text-align:center;box-shadow:var(--shadow-sm)}
.stat-cap{font-family:'PT Serif',Georgia,serif;font-size:22px;color:var(--blue-ink);font-weight:700;line-height:1.15}
.stat-name{font-size:13.5px;color:var(--ink-soft);margin-top:6px}
@media(max-width:760px){.stat-grid{grid-template-columns:1fr 1fr}}

/* кликабельные заголовки колонок подвала */
.cols h5 a{color:inherit;text-decoration:none;transition:.15s}
.cols h5 a:hover{color:var(--gold,#c9a24b)}

/* карта справа от блока контактов */
.contact-grid .cmap.ymap{min-height:420px;border-radius:16px;overflow:hidden;border:1px solid var(--line)}
.contact-grid .cmap.ymap iframe{display:block}
@media(max-width:860px){.contact-grid{grid-template-columns:1fr}.contact-grid .cmap.ymap{min-height:320px}}
