/* ==================================================================
   GOLDI — shared catalog page shell.
   Mirrors the inline styles of catalog/index.html and
   catalog/metalloprokat/armatura/index.html so every catalog level
   renders identically. Pair with assets/header.css.
   ================================================================== */
:root{
  --ink:#0e1e35;
  --ink-soft:#28405e;
  --muted:#607086;
  --blue:#2457d6;
  --blue-deep:#173d9e;
  --blue-light:#7fa3e8;
  --orange:#f2740f;
  --orange-deep:#c85e0c;
  --orange-soft:rgba(242,116,15,.12);
  --line:rgba(20,50,100,.12);
  --glass:rgba(255,255,255,.66);
  --glass-strong:rgba(255,255,255,.86);
  --radius-lg:26px;
  --radius-md:18px;
  --radius-sm:14px;
  --shadow:0 1px 1px rgba(20,50,100,.05), 0 18px 38px -20px rgba(20,60,140,.22);
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;font-family:'Inter',sans-serif;color:var(--ink);
  background:
    radial-gradient(1100px 650px at 10% -10%, #d9e6fa 0%, transparent 55%),
    radial-gradient(950px 700px at 105% 10%, #e2ecfb 0%, transparent 60%),
    linear-gradient(180deg, #f4f8fd 0%, #eef3fb 40%, #f6f9fd 100%);
  background-attachment:fixed;
  min-height:100vh;
  overflow-x:hidden;
}
h1,h2,h3,h4{font-family:'Golos Text',sans-serif;margin:0;color:var(--ink);}
p{margin:0;line-height:1.55;}
a{color:inherit;text-decoration:none;}
img{display:block;max-width:100%;}

/* ---------- Cursor: the browser's own, a hand only on what can be clicked ---------- */
a, button, .btn, .soc, .menu-toggle, select, [role="button"], .faqitem, .reset-link { cursor:pointer; }

.wrap{width:calc(100% - 48px);max-width:1280px;margin-inline:auto;}
@media(min-width:1600px){
  .wrap{width:calc(100% - 64px);max-width:1440px;}
}
@media(max-width:620px){
  .wrap{width:calc(100% - 32px);}
}

/* ---------- Page head ---------- */
.pagehead{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-top:26px;flex-wrap:wrap;}
.crumbs{font-size:13px;color:var(--muted);margin-bottom:10px;}
.crumbs a:hover{color:var(--blue-deep);}
.crumbs span{margin:0 6px;opacity:.5;}
.pagehead h1{font-size:38px;font-weight:800;}
.pagehead .sub{color:var(--muted);font-size:15.5px;margin-top:10px;max-width:560px;}

/* ---------- Category cards (levels 1–2) ---------- */
.catalog3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:34px;padding-bottom:70px;}
.subgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:34px;padding-bottom:70px;}
.catcard,.subcard{
  border-radius:var(--radius-md);overflow:hidden;display:block;
  background:var(--glass);backdrop-filter:blur(18px) saturate(140%);border:1px solid rgba(255,255,255,.8);
  box-shadow:var(--shadow);transition:transform .18s ease, box-shadow .18s ease;
}
.catcard:hover,.subcard:hover{transform:translateY(-4px);box-shadow:0 26px 46px -20px rgba(20,60,140,.3);}
.catcard .img{height:210px;background-size:cover;background-position:center;position:relative;}
.subcard .img{height:180px;background-size:cover;background-position:center;position:relative;}
.catcard .img:after,.subcard .img:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg, rgba(20,50,110,.05), rgba(10,25,60,.35));}
.catcard .body{padding:22px 22px 24px;display:flex;justify-content:space-between;align-items:center;gap:14px;}
.subcard .body{padding:20px 22px 22px;display:flex;justify-content:space-between;align-items:center;gap:14px;}
.catcard h4{font-size:19px;font-weight:800;}
.subcard h4{font-size:17.5px;font-weight:800;}
.catcard .count{font-size:13px;color:var(--muted);margin-top:4px;}
.subcard .count{font-size:12.5px;color:var(--muted);margin-top:4px;}
.catcard .arrow,.subcard .arrow{
  border-radius:50%;background:linear-gradient(110deg, #FF872D 0%, #FF671A 100%);color:#14243B;box-shadow:0 9px 20px rgba(250,116,25,.18);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:transform .2s ease;
}
.catcard .arrow{width:38px;height:38px;font-size:16px;}
.subcard .arrow{width:36px;height:36px;font-size:15px;}
.catcard .arrow:hover,.subcard .arrow:hover{transform:translate(3px,-3px);}

/* ---------- Category page layout (sidebar + content) ---------- */
.layout{display:grid;grid-template-columns:290px 1fr;gap:22px;margin-top:30px;padding-bottom:70px;align-items:start;}
.sidebar-card{
  background:var(--glass);backdrop-filter:blur(18px) saturate(140%);border:1px solid rgba(255,255,255,.8);
  border-radius:var(--radius-lg);box-shadow:var(--shadow);padding:26px 24px;position:sticky;top:20px;
}
.sidebar-card h3{font-size:19px;font-weight:800;margin-bottom:20px;}
.field-label{font-size:12.5px;font-weight:700;color:var(--ink-soft);margin-bottom:8px;display:block;}
.select-wrap{position:relative;margin-bottom:6px;}
.select-wrap select{
  width:100%;appearance:none;padding:13px 40px 13px 16px;border-radius:13px;border:1px solid var(--line);
  background:rgba(255,255,255,.85);font-size:14.5px;font-family:'Inter';color:var(--ink);outline:none;font-weight:600;
  transition:border-color .15s, box-shadow .15s;cursor:pointer;
}
.select-wrap select:focus{border-color:var(--orange);box-shadow:0 0 0 4px var(--orange-soft);}
.select-wrap::after{content:"⌄";position:absolute;right:16px;top:50%;transform:translateY(-50%);color:var(--muted);font-size:15px;pointer-events:none;}
.reset-link{display:inline-block;margin-top:14px;font-size:13px;font-weight:600;color:var(--muted);text-decoration:underline;text-underline-offset:3px;cursor:pointer;}
.reset-link:hover{color:var(--orange-deep);}
.sb-divider{height:1px;background:var(--line);margin:22px 0;}
.help-title{font-weight:700;font-size:15px;}
.help-text{font-size:13.5px;color:var(--muted);margin-top:8px;line-height:1.5;}
.help-phone{font-family:'Golos Text';font-weight:800;font-size:17px;margin-top:12px;color:var(--ink);}

.content-top{display:flex;justify-content:flex-start;align-items:baseline;margin-bottom:20px;flex-wrap:wrap;gap:6px 16px;}
.found-count{font-size:15px;font-weight:700;color:var(--ink-soft);}
.price-note{font-size:13.5px;color:var(--muted);}

/* ---------- Variant cards ---------- */
.type-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;}
.typecard{
  background:var(--glass-strong);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.85);
  border-radius:var(--radius-md);box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column;
  transition:opacity .2s, transform .2s, box-shadow .2s;
}
.typecard:hover{transform:translateY(-4px);box-shadow:0 26px 46px -20px rgba(20,60,140,.3);}
.typecard.hidden{display:none;}
.typecard .img{height:210px;background-size:cover;background-position:center;}
.typecard .body{padding:20px 22px 22px;display:flex;flex-direction:column;gap:6px;flex:1;}
.typecard .eyebrow{font-size:12px;font-weight:700;letter-spacing:.05em;color:var(--orange-deep);}
.typecard h4{font-size:20px;font-weight:800;line-height:1.2;margin-top:2px;}
.typecard .specs{margin-top:8px;font-size:14px;color:var(--ink-soft);display:flex;flex-direction:column;gap:3px;}
.typecard .specs b{font-weight:700;color:var(--ink);}
.typecard .divider{height:1px;background:var(--line);margin:16px 0 14px;}
.typecard .pick{
  display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:14.5px;
  border:none;background:none;padding:0;color:var(--ink);
}
.typecard .pick .arrow{
  width:34px;height:34px;border-radius:50%;background:linear-gradient(110deg, #FF872D 0%, #FF671A 100%);color:#14243B;box-shadow:0 9px 20px rgba(250,116,25,.18);
  display:flex;align-items:center;justify-content:center;font-size:15px;transition:transform .15s;
}
.typecard .pick .arrow:hover{transform:translate(2px,-2px);}
.typecard .card-actions{margin-top:auto;padding-top:14px;}

.empty-state{padding:60px 20px;text-align:center;color:var(--muted);font-size:15px;display:none;}
.empty-state.show{display:block;}

/* ---------- Characteristics block ---------- */
.spec-card{
  margin-top:22px;background:var(--glass);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.8);
  border-radius:var(--radius-md);box-shadow:var(--shadow);padding:24px 26px;
}
.spec-card h3{font-size:18px;font-weight:800;}
.spec-card .note{font-size:13.5px;color:var(--muted);margin-top:8px;}
.p-specs{margin-top:20px;display:grid;grid-template-columns:1fr 1fr;gap:16px 24px;}
.p-specs .row .l{font-size:11.5px;font-weight:700;letter-spacing:.05em;color:var(--muted);}
.p-specs .row .v{font-family:'Golos Text';font-weight:700;font-size:15.5px;margin-top:4px;}
.p-specs .row .v.tbd{color:var(--ink-soft);font-weight:600;}
.p-body{margin-top:22px;display:flex;flex-direction:column;gap:14px;}
.p-body p{color:var(--ink-soft);font-size:15px;line-height:1.6;}
.p-cta{margin-top:26px;display:flex;gap:12px;flex-wrap:wrap;}

/* ---------- Buttons ---------- */
.btn{padding:15px 24px;border-radius:999px;font-weight:700;font-size:14.5px;display:inline-flex;align-items:center;gap:8px;border:none;font-family:'Inter';}
.btn-dark{background:linear-gradient(110deg, #FF872D 0%, #FF671A 100%);color:#14243B;box-shadow:0 9px 20px rgba(250,116,25,.18);}
.btn-outline{background:rgba(255,255,255,.7);border:1px solid var(--line);color:var(--ink);}
.btn-sm{padding:11px 18px;font-size:13.5px;}

/* ---------- Request / lead-form section ---------- */
.request-card{
  background:
    linear-gradient(150deg, rgba(80,130,230,.25), transparent 45%),
    linear-gradient(165deg,#0d1c42,#122a63 55%,#0a1735);
  border-radius:var(--radius-lg);
  padding:54px;
  display:grid;grid-template-columns:1fr 1fr;
  grid-template-areas:"intro form" "cities form";
  gap:56px;
  color:#fff;
  box-shadow:0 30px 60px -24px rgba(10,25,60,.5);
  margin-top:20px;margin-bottom:56px;
}
.r-intro{grid-area:intro;}
.r-formcard{grid-area:form;}
.request-card h2{color:#fff;font-size:28px;font-weight:800;line-height:1.15;}
.request-card .r-sub{color:#aebde0;font-size:14.5px;margin-top:14px;max-width:420px;}
.r-cities{grid-area:cities;display:flex;flex-direction:column;gap:14px;margin-top:24px;}
.r-city{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:var(--radius-sm);padding:18px 20px;}
.r-city h5{font-family:'Golos Text';font-size:15px;font-weight:700;color:#fff;margin-bottom:7px;}
.r-city .addr{font-size:13px;color:#aebde0;margin-bottom:7px;}
.r-city .tel{font-weight:700;font-size:14px;color:#fff;}
.r-city .mail{font-weight:600;font-size:13px;color:#8fb2f5;margin-top:5px;}
.r-formcard{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:var(--radius-md);padding:28px 28px 30px;}
.r-formcard h3{color:#fff;font-size:19px;font-weight:800;}
.r-formcard .r-note{color:#aebde0;font-size:13px;margin-top:8px;line-height:1.5;}
.rform{margin-top:22px;display:flex;flex-direction:column;gap:14px;}
.rform label{font-size:12.5px;font-weight:700;color:#c3cfe8;margin-bottom:7px;display:block;}
.rform input,.rform textarea{
  width:100%;padding:13px 15px;border-radius:14px;border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.07);font-family:'Inter';font-size:14px;color:#fff;outline:none;
  transition:border-color .15s, box-shadow .15s;
}
.rform input::placeholder,.rform textarea::placeholder{color:#7c88a8;}
.rform input:focus,.rform textarea:focus{border-color:var(--blue-light);box-shadow:0 0 0 4px rgba(95,140,232,.2);}
.rform textarea{resize:none;min-height:70px;}
.rform .submit{
  margin-top:4px;border:none;
  background:linear-gradient(110deg, #FF872D 0%, #FF671A 100%);color:#14243B;font-weight:700;font-size:14.5px;
  padding:15px 22px;border-radius:999px;box-shadow:0 9px 20px rgba(250,116,25,.18);
  display:flex;align-items:center;justify-content:center;gap:8px;font-family:'Inter';
}
.rform .r-success{display:none;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:10px 0 4px;}
.rform .r-success.show{display:flex;}
.rform.hide-fields > *:not(.r-success){display:none;}
.r-success .check{width:46px;height:46px;border-radius:50%;background:linear-gradient(135deg,#2457d6,#5f8ce8);color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:800;}
.r-success h4{color:#fff;font-size:16px;font-weight:700;}
.r-success p{color:#aebde0;font-size:13px;}

/* ---------- Footer ---------- */
footer{background:linear-gradient(180deg,#0e1e35,#0a1730);color:#dfe6f5;border-radius:36px 36px 0 0;margin-top:20px;padding:56px 0 26px;}
.footgrid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:34px;}
.footgrid h5{font-family:'Golos Text';font-size:15px;font-weight:700;color:#fff;margin-bottom:16px;}
.footgrid .brand2{display:flex;align-items:center;gap:12px;margin-bottom:16px;}
.footgrid .brand2 .mark{height:34px;width:auto;object-fit:contain;flex-shrink:0;display:block;filter:brightness(0) invert(1);}
.footgrid p{color:#95a2bf;font-size:14px;line-height:1.6;}
.footgrid a{display:block;color:#c3ccdf;font-size:14.5px;margin-bottom:10px;}
.footgrid a:hover{color:#fff;}
.footbottom{display:flex;justify-content:space-between;align-items:center;margin-top:44px;padding-top:24px;border-top:1px solid rgba(255,255,255,.09);font-size:13px;color:#7684a3;flex-wrap:wrap;gap:12px;}
.social{display:flex;gap:10px;}
.social a{width:36px;height:36px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(0,0,0,.2);}
.social svg{width:18px;height:18px;display:block;}

@media(max-width:900px){
  .layout{grid-template-columns:1fr;}
  .sidebar-card{position:static;}
  .type-grid{grid-template-columns:1fr;}
  .request-card{grid-template-columns:1fr;grid-template-areas:"intro" "cities" "form";padding:34px 26px;gap:32px;}
}
@media(max-width:820px){
  .catalog3,.subgrid{grid-template-columns:1fr;}
  .footgrid{grid-template-columns:1fr 1fr;}
}
@media(max-width:620px){
  .request-card{
    grid-template-areas:"intro" "form" "cities";
    margin-left:-16px;margin-right:-16px;
    border-radius:16px;
    padding:32px 20px 30px;
    gap:26px;
    box-shadow:none;
  }
  .request-card h2{font-size:25px;}
  .r-city{padding:14px 16px;border-radius:12px;}
  .r-formcard{padding:22px 18px 24px;border-radius:14px;}
  .rform .submit{width:100%;}
  .p-specs{grid-template-columns:1fr;}
  .p-cta .btn{width:100%;justify-content:center;}
}
@media(max-width:520px){
  .pagehead h1{font-size:29px;}
  .footgrid{grid-template-columns:1fr;}
  .spec-card{padding:20px 18px;}
}

/* ==================================================================
   DESKTOP SCALE-UP — genuine desktop only (>1080px).
   ================================================================== */
@media(min-width:1081px){
  header{padding:clamp(20px, 14px + 0.5vw, 21px) 0 clamp(6px, 2px + 0.3vw, 6.2px);}
  .brand .mark{height:clamp(46px, 32px + 1.3vw, 50.2px);width:auto;}
  .brand .name{font-size:clamp(17px, 12.4px + 0.43vw, 18.4px);}
  .brand .sub{font-size:clamp(12px, 10.2px + 0.17vw, 12.6px);}
  nav{gap:clamp(26px, 18px + 0.75vw, 28.5px);font-size:clamp(14.5px, 12px + 0.23vw, 15.2px);}
  .btn-request{padding:clamp(11px, 7px + 0.4vw, 12.6px) clamp(19px, 13px + 0.55vw, 20.7px);font-size:clamp(14px, 11.6px + 0.22vw, 14.7px);}

  .pagehead{margin-top:clamp(26px, 16px + 0.9vw, 28.6px);}
  .pagehead h1{font-size:clamp(38px, 17.4px + 1.907vw, 44.1px);}
  .pagehead .sub{font-size:clamp(15.5px, 11px + 0.417vw, 16.8px);max-width:clamp(560px, 420px + 6.5vw, 560px);margin-top:clamp(10px, 6px + 0.35vw, 10.9px);}

  footer{padding:clamp(56px, 36px + 2vw, 64px) 0 clamp(26px, 18px + 0.8vw, 29.2px);}
  .footgrid{gap:clamp(34px, 20px + 1.4vw, 39.6px);}

  .layout{grid-template-columns:clamp(290px, 240px + 4vw, 296px) 1fr;gap:clamp(22px, 10px + 1.1vw, 25.4px);margin-top:clamp(30px, 18px + 1.1vw, 33.4px);}
  .sidebar-card{padding:clamp(26px, 16px + 0.9vw, 28.6px) clamp(24px, 14px + 0.9vw, 26.6px);}
  .sidebar-card h3{font-size:clamp(19px, 15.5px + 0.32vw, 20px);}
  .type-grid{gap:clamp(18px, 8px + 1vw, 22px);}
  .typecard .img{height:clamp(210px, 130px + 7vw, 228px);}
  .typecard .body{padding:clamp(20px, 10px + 1vw, 24px);}
  .typecard h4{font-size:clamp(20px, 16px + 0.37vw, 21.2px);}
  .p-specs{gap:clamp(16px, 10px + 0.55vw, 17.7px) clamp(24px, 14px + 0.9vw, 26.6px);}
  .p-specs .row .v{font-size:clamp(15.5px, 11.6px + 0.358vw, 16.6px);}
  .btn{padding:clamp(15px, 9px + 0.55vw, 16.7px) clamp(24px, 15px + 0.85vw, 26.9px);font-size:clamp(14.5px, 11.3px + 0.3vw, 15.5px);}
  .btn-sm{padding:11px 18px;font-size:13.5px;}

  .request-card{padding:clamp(54px, 30px + 2.4vw, 63.6px);gap:clamp(56px, 32px + 2.4vw, 65.6px);}
  .request-card h2{font-size:clamp(32px, 16.5px + 1.43vw, 36.5px);}
}

/* ---------- Button hover lift ---------- */
.btn, .btn-request, .rform .submit, .ol-dock {
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover, .btn-request:hover, .rform .submit:hover {
  transform: translateY(-3px);
}
.btn-dark:hover, .btn-request:hover, .rform .submit:hover {
  box-shadow: 0 16px 32px -10px rgba(250,116,25,.42);
}
.btn-outline:hover {
  background:#fff;
  box-shadow: 0 12px 26px -12px rgba(20,50,100,.28);
}
.btn:active, .btn-request:active, .rform .submit:active {
  transform: translateY(-1px);
}

/* ---------- Product detail layout (level 4) ---------- */
.product{display:grid;grid-template-columns:1fr 1.15fr;gap:40px;align-items:start;margin-top:20px;padding-bottom:56px;}
.p-imgwrap{border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow);position:sticky;top:24px;}
.p-imgwrap img{height:420px;width:100%;object-fit:cover;}
.p-eyebrow{font-size:12.5px;font-weight:700;letter-spacing:.06em;color:var(--orange-deep);}
.product h1{font-size:clamp(32px, 14px + 1.669vw, 37.4px);font-weight:800;margin-top:10px;line-height:1.15;}
.p-lead{color:var(--ink-soft);font-size:clamp(15.5px, 11px + 0.417vw, 16.8px);margin-top:16px;line-height:1.6;}
.product .p-specs{
  margin-top:26px;background:var(--glass);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.8);
  border-radius:var(--radius-md);box-shadow:var(--shadow);padding:22px 24px;
}
.product .p-body{margin-top:26px;}
.product .p-cta{margin-top:30px;}
@media(max-width:1000px){
  .product{grid-template-columns:1fr;}
  .p-imgwrap{position:static;}
  .p-imgwrap img{height:280px;}
}
@media(min-width:1081px){
  .product{gap:clamp(40px, 22px + 1.8vw, 47.2px);margin-top:clamp(20px, 10px + 0.9vw, 22.6px);}
  .p-imgwrap img{height:clamp(420px, 290px + 12vw, 458px);}
  .product .p-specs{padding:clamp(22px, 12px + 0.9vw, 24.6px) clamp(24px, 14px + 0.9vw, 26.6px);}
}

/* ---------- Material group chips (Будівельні матеріали) ---------- */
.matchips{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px;}
.matchip{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 16px;border-radius:999px;
  background:rgba(255,255,255,.75);border:1px solid var(--line);
  color:var(--ink);font-family:'Inter';font-size:13.5px;font-weight:600;line-height:1.3;
  text-align:left;
  transition:background .15s ease, border-color .15s ease, transform .15s ease;
}
.matchip::before{
  content:"+";flex-shrink:0;font-size:15px;font-weight:700;line-height:1;color:var(--orange-deep);
}
.matchip:hover{background:#fff;border-color:rgba(242,116,15,.45);transform:translateY(-2px);}
.matchip.added{background:var(--orange-soft);border-color:rgba(242,116,15,.5);}
.matchip.added::before{content:"✓";font-size:13px;}
@media(max-width:520px){
  .matchip{font-size:13px;padding:9px 14px;}
}

/* ---------- Доставка і оплата ---------- */
.sec-head{margin-top:44px;}
.sec-head h2{font-size:26px;font-weight:800;}
.sec-head p{color:var(--muted);font-size:15px;margin-top:8px;max-width:640px;}
.type-grid.three{grid-template-columns:repeat(3,1fr);margin-top:20px;}
.type-grid.two{margin-top:20px;}
.typecard .txt{margin-top:8px;font-size:14.5px;color:var(--ink-soft);line-height:1.55;}
.typecard .txt b{color:var(--ink);font-weight:700;}
.note-card{
  margin-top:24px;display:flex;gap:18px;align-items:flex-start;
  background:var(--orange-soft);border:1px solid rgba(242,116,15,.3);
  border-left:4px solid var(--orange);border-radius:var(--radius-md);padding:20px 24px;
}
.note-card h3{font-size:17px;font-weight:800;}
.note-card p{margin-top:6px;font-size:14.5px;color:var(--ink-soft);line-height:1.55;}
@media(max-width:1000px){.type-grid.three{grid-template-columns:repeat(2,1fr);}}
@media(max-width:700px){.type-grid.three{grid-template-columns:1fr;}}
@media(max-width:620px){
  .sec-head h2{font-size:22px;}
  .note-card{padding:18px 20px;}
}

/* ---------- Контакти ---------- */
.branch{
  margin-top:24px;display:grid;grid-template-columns:1fr 1.25fr;gap:0;
  background:var(--glass-strong);border:1px solid rgba(255,255,255,.85);
  border-radius:var(--radius-lg);box-shadow:var(--shadow);overflow:hidden;
}
.branch-info{padding:30px 32px;}
.branch-info .eyebrow{font-size:12px;font-weight:700;letter-spacing:.05em;color:var(--orange-deep);}
.branch-info h2{font-size:24px;font-weight:800;margin-top:6px;}
.c-rows{margin-top:22px;display:flex;flex-direction:column;gap:18px;}
.c-row .l{font-size:11.5px;font-weight:700;letter-spacing:.05em;color:var(--muted);}
.c-row .v{font-family:'Golos Text';font-weight:700;font-size:16px;margin-top:5px;line-height:1.5;}
.c-row .v a{display:block;color:var(--ink);}
.c-row .v a:hover{color:var(--orange-deep);}
.c-row .v .hint{display:block;font-family:'Inter';font-size:12.5px;font-weight:500;color:var(--muted);margin-top:-1px;margin-bottom:8px;}
.branch-map{min-height:100%;}
.branch-map iframe{display:block;width:100%;height:100%;min-height:420px;border:0;}
@media(max-width:900px){
  .branch{grid-template-columns:1fr;}
  .branch-info{padding:26px 24px;}
  .branch-map iframe{min-height:300px;}
}

/* ---------- Sidebar: write to us ---------- */
.help-write{margin-top:16px;}
.help-write .l{font-weight:700;font-size:14px;color:var(--ink);}
.help-msg{margin-top:10px;display:flex;gap:9px;flex-wrap:wrap;}
.help-msg a{
  display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border-radius:999px;
  background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);
  font-family:'Inter';font-size:13.5px;font-weight:600;color:var(--ink);
  transition:transform .15s ease, border-color .15s ease;
}
.help-msg a:hover{transform:translateY(-2px);border-color:rgba(242,116,15,.45);}
.help-msg svg{width:18px;height:18px;display:block;flex-shrink:0;}

.r-city .tel a{color:inherit;border-bottom:1px solid rgba(255,255,255,.35);}
.r-city .tel a:hover{border-bottom-color:#fff;}

/* the product layout's left column can carry the help card under the photo */
.p-col{position:sticky;top:24px;}
.p-col .p-imgwrap{position:static;}
.p-col .sidebar-card{position:static;margin-top:20px;}
@media(max-width:1000px){
  /* stacked: photo, then the page itself, and the help card after it */
  .p-col{display:contents;}
  .p-col .sidebar-card{order:3;margin-top:0;}
}

/* ---------- Footer socials: hover ---------- */
.social a{
  transition:transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s ease;
  will-change:transform;
}
.social a:hover{transform:translateY(-4px) scale(1.08);box-shadow:0 12px 24px rgba(0,0,0,.34);}
.social a:active{transform:translateY(-1px) scale(1.02);}
.social a svg{transition:transform .22s cubic-bezier(.2,.8,.3,1);}
.social a:hover svg{transform:scale(1.12);}
.social a:focus-visible{outline:2px solid var(--orange);outline-offset:3px;}
@media(prefers-reduced-motion:reduce){
  .social a,.social a svg{transition:none;}
  .social a:hover,.social a:hover svg,.social a:active{transform:none;}
}

/* ---------- Video block ---------- */
/* The frame is capped in height and hugs whatever shape the file turns out to
   be, so a portrait clip is never cropped and never leaves a wide empty band. */
.v-stage{
  --v-cap:min(72vh,620px);
  margin:24px auto 0;border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow);
  background:#0b1730;display:flex;align-items:center;justify-content:center;
  max-height:var(--v-cap);
}
.v-stage video{
  display:block;width:auto;height:auto;
  max-width:100%;max-height:var(--v-cap);
}
@media(max-width:620px){
  .v-stage{--v-cap:78vh;}
}

/* the Послуги page puts the video straight after the listing, with no gap to spare */
.layout.layout-tight{padding-bottom:0;}
.v-stage.v-tight{margin-top:14px;}

/* ---------- Bullet points inside a product/service page ---------- */
.p-points{margin:22px 0 0;padding:0;display:grid;gap:9px;}
.p-points li{list-style:none;position:relative;padding-left:26px;color:var(--ink-soft);font-size:15px;line-height:1.55;}
.p-points li::before{content:"✓";position:absolute;left:0;top:0;color:var(--orange-deep);font-weight:800;}
.p-points b{color:var(--ink);font-weight:700;}
