/* ==========================================================================
   ELECTRIC ASTANA — main stylesheet
   Mobile-first. No external dependencies (system font stack only).
   ========================================================================== */

:root{
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F6F7;
  --color-bg-dark: #0B0D0F;
  --color-graphite: #22262B;
  --color-text: #15181B;
  --color-text-soft: #4B5157;
  --color-grey: #6B7280;
  --color-grey-light: #9CA3AF;
  --color-border: #E5E7EB;
  --color-accent: #F6C500;
  --color-accent-dark: #D6A800;
  --color-accent-contrast: #15181B;
  --color-eyebrow-text: #7A6000;
  --color-whatsapp: #167D3C;
  --color-whatsapp-dark: #126832;
  --color-danger: #D64545;
  --color-white: #FFFFFF;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --container-w: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11,13,15,0.06), 0 1px 1px rgba(11,13,15,0.04);
  --shadow-md: 0 8px 24px rgba(11,13,15,0.10);
  --shadow-lg: 0 16px 48px rgba(11,13,15,0.16);
  --header-h: 68px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body{
  margin:0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------------
 * Light, non-destructive copy deterrent (TOR §88-90): the page's own
 * text cannot be drag-selected or copied by a casual visitor, while
 * staying fully readable/crawlable and not blocking real accessibility
 * needs — form fields keep normal selection so people can still fix a
 * typo or copy what THEY typed, and screen readers are unaffected since
 * user-select only changes mouse selection, not the accessibility tree.
 * ------------------------------------------------------------------- */
body{
  -webkit-user-select:none; -moz-user-select:none; -ms-user-select:none; user-select:none;
}
input, textarea, [contenteditable="true"]{
  -webkit-user-select:text; -moz-user-select:text; -ms-user-select:text; user-select:text;
}

img{ max-width:100%; display:block; height:auto; }
svg{ display:block; }
a{ color: inherit; text-decoration: none; }
ul, ol{ margin:0; padding:0; list-style: none; }
button{ font-family: inherit; }
h1,h2,h3,h4,p,figure{ margin:0; }
/* overflow-wrap:anywhere (not just break-word) is needed so long unbroken
   runs (long Kazakh compound words, emails, etc.) are excluded from the
   min-content size Chromium's grid/flex layout uses when sizing tracks —
   break-word alone prevents visual overflow at a GIVEN width but does not
   shrink the box's own min-content contribution, which was letting long KZ
   list items force their whole .grid column wider than the viewport at 320px. */
h1,h2,h3,h4,p,a,span,li,td,th{ overflow-wrap: anywhere; word-break: break-word; }

:focus-visible{
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.container{
  width:100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}
@media (max-width: 480px){
  .container{ padding: 0 16px; }
}

.visually-hidden{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

.skip-link{
  position:absolute; left:0; top:-48px; background:var(--color-accent);
  color:var(--color-accent-contrast); padding:12px 20px; z-index:2000;
  font-weight:700; transition: top .15s ease;
}
.skip-link:focus{ top:0; }

/* ---------- Typography ---------- */
h1, .h1{ font-size: clamp(28px, 6vw, 48px); font-weight: 800; line-height:1.12; letter-spacing:-0.01em; }
h2, .h2{ font-size: clamp(24px, 4.2vw, 34px); font-weight: 800; line-height:1.18; letter-spacing:-0.01em; }
h3, .h3{ font-size: clamp(19px, 3vw, 22px); font-weight: 700; line-height:1.3; }
h4, .h4{ font-size: 17px; font-weight: 700; }
.lead{ font-size: clamp(16px, 2.4vw, 19px); color: var(--color-text-soft); }
.eyebrow{
  display:inline-block; font-size:13px; font-weight:700; letter-spacing:0.06em;
  text-transform:uppercase; color: var(--color-eyebrow-text); margin-bottom:10px;
}
.hero .eyebrow{ color: var(--color-accent-dark); }
.section-head{ max-width: 680px; margin: 0 0 32px; }
.section-head p{ margin-top:10px; }
.text-center{ text-align:center; margin-left:auto; margin-right:auto; }

article.prose h2{ margin-top:2em; margin-bottom:.6em; }
article.prose h3{ margin-top:1.6em; margin-bottom:.5em; }
article.prose p{ margin: 0 0 1em; color: var(--color-text); }
article.prose ul, article.prose ol{ margin: 0 0 1.2em; padding-left: 1.3em; }
article.prose ul{ list-style: disc; }
article.prose ol{ list-style: decimal; }
article.prose li{ margin-bottom: .45em; }
article.prose table{ width:100%; border-collapse: collapse; margin: 1.2em 0; font-size:15px; }
article.prose th, article.prose td{ text-align:left; padding:10px 12px; border:1px solid var(--color-border); }
article.prose th{ background: var(--color-bg-alt); font-weight:700; }
article.prose strong{ font-weight:700; }
article.prose blockquote{
  margin: 1.4em 0; padding: 14px 18px; border-left:4px solid var(--color-accent);
  background: var(--color-bg-alt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 13px 22px; border-radius: 999px; font-weight:700; font-size:15px;
  border: 2px solid transparent; cursor:pointer; transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn svg{ width:18px; height:18px; flex:none; }
.btn-primary{ background: var(--color-accent); color: var(--color-accent-contrast); }
.btn-primary:hover{ background: var(--color-accent-dark); }
.btn-dark{ background: var(--color-bg-dark); color:#fff; }
.btn-dark:hover{ background: var(--color-graphite); }
.btn-whatsapp{ background: var(--color-whatsapp); color:#fff; }
.btn-whatsapp:hover{ background: var(--color-whatsapp-dark); }
.btn-outline{ background: transparent; border-color: var(--color-bg-dark); color: var(--color-bg-dark); }
.btn-outline:hover{ background: var(--color-bg-dark); color:#fff; }
.btn-outline-light{ background: transparent; border-color: rgba(255,255,255,.4); color:#fff; }
.btn-outline-light:hover{ background: rgba(255,255,255,.12); }
.btn-block{ width:100%; }
.btn-sm{ padding:9px 16px; font-size:14px; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index:1000; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
  min-height: var(--header-h);
}
.site-header .container{ min-height: var(--header-h); padding-top:10px; padding-bottom:10px; display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:nowrap; }
.header-logo{ flex:none; }
.header-logo img{ height:34px; width:auto; }
.header-nav{ display:none; }
.header-actions{ display:flex; align-items:center; gap:10px; }
.header-lang{ position:relative; }
.header-lang-btn{
  display:flex; align-items:center; gap:6px; padding:8px 10px; border-radius:999px;
  border:1px solid var(--color-border); background:#fff; font-weight:700; font-size:13px; cursor:pointer;
}
.header-lang-list{
  display:none; position:absolute; right:0; top:calc(100% + 6px); background:#fff; border:1px solid var(--color-border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md); min-width:150px; overflow:hidden; z-index: 1200;
}
.header-lang-list.is-open{ display:block; }
.header-lang-list a{ display:block; padding:10px 14px; font-size:14px; font-weight:600; }
.header-lang-list a:hover{ background: var(--color-bg-alt); }
.header-phone{ display:none; align-items:center; gap:7px; font-weight:700; font-size:13.5px; white-space:nowrap; flex:none; padding:9px 12px; border-radius:999px; border:1px solid var(--color-border); color: var(--color-text); }
.header-phone:hover{ background: var(--color-bg-alt); }
.header-phone svg{ width:16px; height:16px; flex:none; color: var(--color-accent-dark); }
.header-burger{
  display:flex; align-items:center; justify-content:center; width:42px; height:42px;
  border-radius: 10px; border:1px solid var(--color-border); background:#fff; cursor:pointer;
}
.header-burger svg{ width:20px; height:20px; }

/* Guard against overflow on very narrow phones (≤359px): shrink the logo
   and lang pill just enough that logo + lang + burger always fit. */
@media (max-width:359px){
  .header-logo img{ height:26px; }
  .header-lang-btn{ padding:6px 8px; font-size:12px; }
  .header-burger{ width:38px; height:38px; }
  .site-header .container{ gap:8px; }
  .header-actions{ gap:6px; }
}

.mobile-menu{
  position: fixed; inset:0; background: rgba(11,13,15,.5); z-index:1500; display:none;
}
.mobile-menu.is-open{ display:block; }
.mobile-menu-panel{
  position:absolute; top:0; right:0; height:100%; width:min(340px, 88vw); background:#fff;
  padding: 18px 20px 24px; overflow-y:auto; box-shadow: var(--shadow-lg);
  display:flex; flex-direction:column; gap:18px;
}
.mobile-menu-top{ display:flex; align-items:center; justify-content:space-between; }
.mobile-menu-close{ width:40px; height:40px; border-radius:10px; border:1px solid var(--color-border); background:#fff; display:flex; align-items:center; justify-content:center; }
.mobile-menu-close svg{ width:18px; height:18px; }
.mobile-nav a{
  display:block; padding:13px 4px; font-weight:700; font-size:17px; border-bottom:1px solid var(--color-border);
}
.mobile-menu-langs{ display:flex; gap:8px; }
.mobile-menu-langs a{
  flex:1; text-align:center; padding:10px; border:1px solid var(--color-border); border-radius:999px; font-weight:700; font-size:14px;
}
.mobile-menu-langs a.is-active{ background: var(--color-accent); border-color: var(--color-accent); }
.mobile-menu-actions{ display:flex; flex-direction:column; gap:10px; margin-top:auto; }

@media (min-width: 1240px){
  .header-nav{ display:flex; align-items:center; gap:0; }
  .header-nav a{ padding:9px 10px; font-weight:600; font-size:13.5px; border-radius:8px; color: var(--color-text-soft); white-space:nowrap; }
  .header-nav a:hover{ color: var(--color-text); background: var(--color-bg-alt); }
  .header-burger{ display:none; }
  .header-cta{ display:flex; gap:8px; }
  .header-actions{ gap:8px; }
  .header-phone{ display:flex; }
}
@media (max-width: 1239px){
  .header-cta{ display:none; }
  .header-phone{ display:none !important; }
}
@media (min-width: 1400px){
  .header-nav a{ padding:10px 13px; font-size:14.5px; }
}

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta-bar{
  position: fixed; left:0; right:0; bottom:0; z-index: 900; display:flex;
  background:#fff; border-top:1px solid var(--color-border); box-shadow: 0 -6px 20px rgba(11,13,15,.08);
  padding: 0 0 env(safe-area-inset-bottom);
  gap:0;
}
.mobile-cta-bar .btn{ flex:1; padding:16px 10px; font-size:14.5px; border-radius:0; }
@media (min-width: 1240px){
  .mobile-cta-bar{ display:none; }
}
body{ padding-bottom: 74px; }
@media (min-width:1240px){ body{ padding-bottom:0; } }

/* ---------- Hero ---------- */
.hero{
  position:relative; background: var(--color-bg-dark); color:#fff; overflow:hidden;
}
.hero .container{
  padding-top:44px; padding-bottom:44px; display:grid; gap:32px; position:relative; z-index:2;
}
.hero h1{ color:#fff; }
.hero .lead{ color: rgba(255,255,255,.78); margin-top:14px; max-width:560px; }
.hero-badges{ display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.hero-badge{
  display:flex; align-items:center; gap:8px; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14);
  padding:9px 14px; border-radius:999px; font-size:13.5px; font-weight:600;
}
.hero-badge svg{ width:16px; height:16px; color: var(--color-accent); }

.hero-contact-box{
  margin-top:20px; background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-md); padding:16px 18px; display:inline-flex; flex-direction:column; gap:6px;
  max-width:100%;
}
.hero-contact-phone{
  display:inline-flex; align-items:center; gap:9px; color:#fff; font-weight:800;
  font-size: clamp(19px, 5vw, 24px); white-space:nowrap; line-height:1.2;
}
.hero-contact-phone svg{ color: var(--color-accent); flex:none; }
.hero-contact-hours{
  display:flex; align-items:center; gap:7px; color: rgba(255,255,255,.68); font-size:13.5px; font-weight:600;
}
.hero-contact-hours svg{ color: rgba(255,255,255,.5); flex:none; }

.hero-actions{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:18px; }
.hero-actions .btn{ padding:14px 8px; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media (min-width:420px){ .hero-actions .btn{ font-size:15px; padding:14px 16px; } }
@media (min-width:640px){ .hero-actions{ grid-template-columns:auto auto; } }
.hero-media{ display:flex; justify-content:center; align-items:center; }
.hero-media svg, .hero-media img{ width:100%; max-width:420px; }
.hero-media-photo img{
  max-width:480px; aspect-ratio: 3 / 2.6; object-fit:cover; object-position: 50% 20%; border-radius: var(--radius-lg);
  border:1px solid rgba(255,255,255,.12); box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

/* ---------- Service page hero photo ---------- */
.service-photo{ margin-top:-14px; margin-bottom:8px; }
.service-photo img{
  width:100%; max-height:420px; object-fit:cover; object-position: 50% 20%; display:block;
  border-radius: var(--radius-lg); border:1px solid var(--color-border);
}
@media (min-width:768px){ .service-photo{ margin-top:-24px; } }
.hero-glow{
  position:absolute; width:520px; height:520px; border-radius:50%; background: radial-gradient(circle, rgba(246,197,0,.18), transparent 65%);
  top:-160px; right:-160px; z-index:1;
}
@media (min-width: 900px){
  .hero .container{ grid-template-columns: 1.1fr 0.9fr; align-items:center; padding-top:64px; padding-bottom:64px; }
}

/* generic page header (non-home) */
.page-hero{
  background: var(--color-bg-dark); color:#fff; padding: 30px 0 34px;
}
.page-hero h1{ color:#fff; }
.page-hero .lead{ color: rgba(255,255,255,.75); margin-top:10px; max-width:640px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs{ padding: 14px 0; }
.breadcrumbs ol{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; font-size:13px; }
.breadcrumbs a{ color: var(--color-text-soft); font-weight:600; }
.breadcrumbs a:hover{ color: var(--color-text); text-decoration:underline; }
.breadcrumbs li:not(:last-child)::after{ content:"/"; margin-left:6px; color: var(--color-grey-light); }
.breadcrumbs li[aria-current]{ color: var(--color-text); font-weight:600; }
.page-hero .breadcrumbs a{ color: rgba(255,255,255,.65); }
.page-hero .breadcrumbs li[aria-current]{ color:#fff; }
.page-hero .breadcrumbs li:not(:last-child)::after{ color: rgba(255,255,255,.35); }

/* ---------- Sections ---------- */
.section{ padding: 52px 0; }
.section-alt{ background: var(--color-bg-alt); }
.section-dark{ background: var(--color-bg-dark); color:#fff; }
.section-dark h2{ color:#fff; }
.section-dark .section-head p{ color: rgba(255,255,255,.7); }
.section-dark .lead{ color: rgba(255,255,255,.78); }
@media (min-width: 768px){ .section{ padding: 76px 0; } }

.grid{ display:grid; gap:20px; }
.grid > *{ min-width:0; }
.grid-2{ grid-template-columns: 1fr; }
.grid-3{ grid-template-columns: 1fr; }
.grid-4{ grid-template-columns: repeat(2,1fr); }
@media (min-width:640px){ .grid-4{ grid-template-columns: repeat(2,1fr);} }
@media (min-width:768px){
  .grid-2{ grid-template-columns: repeat(2,1fr); }
  .grid-3{ grid-template-columns: repeat(3,1fr); }
}
@media (min-width:1024px){
  .grid-4{ grid-template-columns: repeat(4,1fr); }
}

/* ---------- Cards ---------- */
.card{
  background:#fff; border:1px solid var(--color-border); border-radius: var(--radius-md);
  padding:22px; transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
a.card:hover, .card.is-link:hover{ box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: transparent; }
.card-icon{
  width:48px; height:48px; border-radius:12px; background: var(--color-bg-alt);
  display:flex; align-items:center; justify-content:center; margin-bottom:14px; flex:none;
}
.card-icon svg{ width:24px; height:24px; color: var(--color-accent-dark); }
.card h3{ margin-bottom:8px; }
.card p{ color: var(--color-text-soft); font-size:14.5px; }
.card-link{ margin-top:14px; display:inline-flex; align-items:center; gap:6px; font-weight:700; font-size:14px; color: var(--color-text); }
.card-link svg{ width:16px; height:16px; }

.service-card{ display:flex; flex-direction:column; }
.problem-card{ display:flex; flex-direction:column; border-left:4px solid var(--color-accent); }

/* Icon tiles for "why choose us" etc */
.feature{ display:flex; gap:14px; }
.feature-icon{
  width:44px; height:44px; border-radius:12px; background: rgba(246,197,0,.14);
  display:flex; align-items:center; justify-content:center; flex:none;
}
.feature-icon svg{ width:22px; height:22px; color: var(--color-accent-dark); }
.section-dark .feature-icon{ background: rgba(246,197,0,.16); }
.feature h4{ margin-bottom:4px; }
.feature p{ color: var(--color-text-soft); font-size:14.5px; }
.section-dark .feature p{ color: rgba(255,255,255,.68); }

/* ---------- Steps ---------- */
.steps{ counter-reset: step; }
.step{ position:relative; padding-left:56px; }
.step::before{
  counter-increment: step; content: counter(step);
  position:absolute; left:0; top:0; width:40px; height:40px; border-radius:50%;
  background: var(--color-accent); color: var(--color-accent-contrast); font-weight:800;
  display:flex; align-items:center; justify-content:center; font-size:16px;
}

/* ---------- Testimonials ---------- */
.testimonial{ background:#fff; border:1px solid var(--color-border); border-radius: var(--radius-md); padding:22px; }
.testimonial p{ font-size:16px; }
.testimonial-quote{ font-size: 28px; color: var(--color-accent-dark); line-height:1; display:block; margin-bottom:6px; }
.testimonial-meta{ display:flex; align-items:center; justify-content:space-between; margin-top:16px; font-size:13px; color: var(--color-grey); }
.testimonial-name{ font-weight:700; color: var(--color-text); }

/* ---------- FAQ accordion ---------- */
.faq-list{ display:flex; flex-direction:column; gap:10px; }
.faq-item{ border:1px solid var(--color-border); border-radius: var(--radius-sm); overflow:hidden; background:#fff; }
.faq-q{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:16px 18px; background:none; border:none; text-align:left; font-weight:700; font-size:15.5px; cursor:pointer;
}
.faq-q svg{ width:20px; height:20px; flex:none; transition: transform .2s ease; color: var(--color-grey); }
.faq-item[open] .faq-q svg{ transform: rotate(180deg); }
.faq-a{ padding: 0 18px 18px; color: var(--color-text-soft); font-size:15px; }
.faq-a p + p{ margin-top:10px; }
.faq-search{ margin-bottom:24px; }
.faq-cat-tabs{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:24px; }
.faq-cat-tab{
  padding:9px 14px; border-radius:999px; border:1px solid var(--color-border); font-weight:600; font-size:13.5px; background:#fff; cursor:pointer;
}
.faq-cat-tab.is-active{ background: var(--color-bg-dark); color:#fff; border-color: var(--color-bg-dark); }

/* ---------- Forms ---------- */
.form-field{ margin-bottom:16px; }
.form-field label{ display:block; font-weight:700; font-size:14px; margin-bottom:6px; }
.form-field input, .form-field textarea, .form-field select{
  width:100%; padding:13px 14px; border-radius:10px; border:1.5px solid var(--color-border);
  font-family: inherit; font-size:15px; background:#fff; color: var(--color-text);
}
.form-field input:focus, .form-field textarea:focus{ border-color: var(--color-accent-dark); outline: none; box-shadow: 0 0 0 3px rgba(246,197,0,.25); }
.form-field textarea{ min-height:120px; resize:vertical; }
.form-hp{ position:absolute; left:-9999px; top:-9999px; }
.form-note{ font-size:13px; color: var(--color-grey); margin-top:10px; }
.form-photo-drop{
  display:flex; align-items:center; gap:10px; width:100%; padding:13px 14px; border-radius:10px;
  border:1.5px dashed var(--color-border); background:#fff; color: var(--color-grey);
  font-size:14px; font-weight:600; cursor:pointer; transition:border-color .15s, background .15s;
}
.form-photo-drop svg{ flex:none; color: var(--color-accent-dark); }
.form-photo-drop:hover, .form-photo-drop.is-dragover{ border-color: var(--color-accent-dark); background:#FFFBEA; }
.form-photo-list{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.form-photo-list:empty{ margin-top:0; }
.form-photo-chip{
  display:flex; align-items:center; gap:6px; max-width:100%; padding:6px 10px; border-radius:999px;
  background:#F5F6F7; border:1px solid var(--color-border); font-size:12.5px; font-weight:600; color: var(--color-text);
}
.form-photo-chip span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:160px; }
.form-photo-chip button{
  border:none; background:none; cursor:pointer; color: var(--color-grey); font-size:15px; line-height:1; padding:0 0 0 2px;
}
.form-photo-chip button:hover{ color:#B23131; }
.form-photo-note{ font-size:12.5px; color: var(--color-grey); margin-top:6px; }
.form-status{ margin-top:14px; padding:12px 14px; border-radius:10px; font-weight:600; font-size:14px; display:none; }
.form-status.is-success{ display:block; background:#EAF8EE; color:#1C7A34; }
.form-status.is-error{ display:block; background:#FCEBEB; color:#B23131; }

/* ---------- Table of prices ---------- */
.price-table{ width:100%; border-collapse: collapse; }
.price-table th, .price-table td{ padding:14px 16px; text-align:left; border-bottom:1px solid var(--color-border); font-size:15px; }
.price-table th{ font-size:13px; text-transform:uppercase; letter-spacing:.05em; color: var(--color-grey); }
/* No white-space:nowrap here: most price values are short ("4 000 тг") and
   never wrap in practice, but a few rows use a descriptive phrase instead of
   a number (e.g. "quoted after inspection"), and the kk translation of that
   phrase is long enough to force the whole table — and its whole grid column
   — past the viewport at 320px width if it's forbidden from wrapping. */
.price-table td:last-child, .price-table th:last-child{ text-align:right; font-weight:700; }
.price-table-wrap .price-table td:last-child, .price-table-wrap .price-table th:last-child{ min-width:110px; }
.price-note{ margin-top:18px; padding:16px 18px; background: var(--color-bg-alt); border-radius: var(--radius-sm); font-size:14.5px; color: var(--color-text-soft); }

/* ---------- Footer ---------- */
.site-footer{ background: var(--color-bg-dark); color: rgba(255,255,255,.82); padding-top: 56px; }
.footer-grid{ display:grid; gap:32px; grid-template-columns: 1fr; padding-bottom: 40px; border-bottom:1px solid rgba(255,255,255,.1); }
@media (min-width: 768px){ .footer-grid{ grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-logo img{ height:32px; margin-bottom:14px; }
.footer-about p{ font-size:14px; color: rgba(255,255,255,.62); max-width:320px; }
.footer-col h3{ font-size:13px; text-transform:uppercase; letter-spacing:.06em; color: rgba(255,255,255,.5); margin-bottom:14px; }
.footer-col ul{ display:flex; flex-direction:column; gap:10px; }
.footer-col a{ font-size:14.5px; color: rgba(255,255,255,.82); }
.footer-col a:hover{ color: var(--color-accent); }
.footer-contact li{ display:flex; align-items:center; gap:10px; font-size:14.5px; }
.footer-contact svg{ width:17px; height:17px; color: var(--color-accent); flex:none; }
.footer-bottom{ display:flex; flex-wrap:wrap; gap:14px; justify-content:space-between; align-items:center; padding:22px 0; font-size:13px; color: rgba(255,255,255,.5); }
.footer-bottom-links{ display:flex; gap:16px; flex-wrap:wrap; }
.footer-langs{ display:flex; gap:8px; }
.footer-langs a{ padding:6px 10px; border:1px solid rgba(255,255,255,.16); border-radius:999px; font-size:12.5px; font-weight:700; }
.footer-langs a.is-active{ background: var(--color-accent); color:#15181B; border-color: var(--color-accent); }

/* ---------- Trust bar (home, block 02) ---------- */
.trust-bar{ background: var(--color-bg-dark); border-top:1px solid rgba(255,255,255,.08); }
.trust-bar-inner{ display:flex; flex-wrap:wrap; gap:10px 22px; padding:16px 20px; justify-content:center; }
.trust-item{ display:inline-flex; align-items:center; gap:7px; color: rgba(255,255,255,.82); font-size:13.5px; font-weight:600; white-space:nowrap; }
.trust-item svg{ width:15px; height:15px; color: var(--color-accent); flex:none; }
@media (min-width:900px){ .trust-bar-inner{ justify-content:flex-start; } }

/* ---------- Emergency band (home, block 05) ---------- */
.emergency-band{ background: linear-gradient(135deg, #1a1000 0%, var(--color-bg-dark) 55%); }
.emergency-inner{ display:flex; flex-direction:column; gap:24px; }
@media (min-width:900px){
  .emergency-inner{ flex-direction:row; align-items:center; justify-content:space-between; gap:40px; }
  .emergency-inner > div:first-child{ max-width:640px; }
  .emergency-inner .hero-actions{ grid-template-columns:auto auto; flex:none; }
}

/* ---------- Numbered process steps (turnkey / how-we-work) ---------- */
.process-steps{ list-style:none; padding:0; margin:0; display:grid; gap:14px; counter-reset:none; max-width:720px; }
.process-steps li{ display:flex; align-items:flex-start; gap:14px; padding:16px 18px; background:#fff; border:1px solid var(--color-border); border-radius: var(--radius-md); }
.process-step-num{
  flex:none; width:30px; height:30px; border-radius:50%; background: var(--color-bg-dark); color:#fff;
  display:flex; align-items:center; justify-content:center; font-weight:800; font-size:14px;
}
.section-alt .process-steps li{ background:#fff; }

/* ---------- Home price preview ---------- */
.price-table-wrap{ border:1px solid var(--color-border); border-radius: var(--radius-lg); overflow:hidden; background:#fff; overflow-x:auto; }
.price-table-wrap .price-table td{ font-size:14.5px; }

/* ---------- Price calculator (/ceny/) ---------- */
.calc-row{ display:flex; flex-wrap:wrap; gap:14px; align-items:flex-end; margin-bottom:18px; }
.calc-row .form-field{ flex:1 1 220px; margin-bottom:0; }
.calc-row .calc-qty-field{ flex:0 1 110px; }
.calc-row button[data-calc-add]{ flex:none; white-space:nowrap; }
.calc-empty{ font-size:14.5px; color: var(--color-grey); margin-bottom:10px; }
.calc-list{ list-style:none; padding:0; margin:0 0 4px; display:flex; flex-direction:column; gap:8px; }
.calc-item{
  display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px;
  background:#fff; border:1px solid var(--color-border); border-radius: var(--radius-sm); font-size:14.5px;
}
.calc-item-name{ flex:1; min-width:0; }
.calc-item-qty{ color: var(--color-grey); font-weight:600; white-space:nowrap; }
.calc-item-sum{ font-weight:800; white-space:nowrap; }
.calc-item-remove{
  flex:none; border:none; background:none; cursor:pointer; color: var(--color-grey); font-size:18px; line-height:1; padding:0 2px;
}
.calc-item-remove:hover{ color:#B23131; }
.calc-total{
  display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; padding:16px 18px;
  background: var(--color-bg-dark); color:#fff; border-radius: var(--radius-md); font-size:16px; font-weight:700;
}
.calc-total strong{ font-size:20px; color: var(--color-accent); }
.calc-box [data-calc-cta]{ margin-top:16px; }

/* ---------- Hero: 3-button variant (Call / WhatsApp / Send photo) ---------- */
.hero-actions-3{ grid-template-columns:1fr 1fr; }
.hero-actions-3 a:nth-child(3){ grid-column: 1 / -1; }
@media (min-width:640px){ .hero-actions-3{ grid-template-columns:auto auto auto; } .hero-actions-3 a:nth-child(3){ grid-column:auto; } }

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--color-accent); border-radius: var(--radius-lg); padding: 34px 26px;
  display:flex; flex-direction:column; gap:18px; text-align:center;
}
.cta-band h2{ color: var(--color-accent-contrast); }
.cta-band p{ color: rgba(21,24,27,.75); }
.cta-band .hero-actions{ justify-content:center; }
@media (min-width: 768px){
  .cta-band{ flex-direction:row; align-items:center; justify-content:space-between; text-align:left; padding: 40px 44px; }
  .cta-band .hero-actions{ justify-content:flex-end; margin-top:0; }
}

/* ---------- Map / service area ---------- */
.map-wrap{ border-radius: var(--radius-lg); overflow:hidden; border:1px solid var(--color-border); background:#fff; }
.map-embed{ width:100%; line-height:0; background: var(--color-bg-alt); }
.map-embed > svg{ width:100%; height:auto; display:block; }
.map-embed iframe{ width:100%; height:300px; border:0; display:block; pointer-events:none; }
@media (min-width:640px){ .map-embed iframe{ height:360px; } }
@media (min-width:1024px){ .map-embed iframe{ height:440px; } }
.map-note{ font-size:13.5px; color: var(--color-text-soft); line-height:1.6; margin-bottom:10px; }
.map-link{ display:inline-flex; align-items:center; gap:6px; font-weight:700; font-size:14px; }
.map-legend{ display:flex; flex-wrap:wrap; gap:14px; margin-top:14px; font-size:13.5px; color: var(--color-text-soft); }
.map-legend span{ display:inline-flex; align-items:center; gap:8px; }
.dot{ width:10px; height:10px; border-radius:50%; display:inline-block; }
.dot-primary{ background: var(--color-accent); }
.dot-secondary{ background: var(--color-grey-light); }

/* ---------- Blog / list pages ---------- */
.post-card{ display:flex; flex-direction:column; }
.post-card .card-icon{ width:100%; height:150px; border-radius: var(--radius-md); margin-bottom:16px; }
.post-card .card-icon svg{ width:56px; height:56px; }
.post-card .card-photo{ width:100%; height:150px; border-radius: var(--radius-md); margin-bottom:16px; overflow:hidden; flex:none; }
.post-card .card-photo img{ width:100%; height:100%; object-fit:cover; object-position:50% 25%; display:block; }
.post-meta{ display:flex; gap:10px; font-size:12.5px; color: var(--color-grey); margin-bottom:8px; text-transform:uppercase; letter-spacing:.04em; }
.tag{ display:inline-block; padding:5px 10px; border-radius:999px; background: var(--color-bg-alt); font-size:12px; font-weight:700; color: var(--color-text-soft); }

.article-header{ max-width: 760px; margin: 0 auto; }
.article-body{ max-width: 760px; margin: 0 auto; }
.article-cover{ max-width: 900px; margin: 0 auto 8px; border-radius: var(--radius-lg); overflow:hidden; background: var(--color-bg-alt); }

/* Related links block */
.related-box{ background: var(--color-bg-alt); border-radius: var(--radius-md); padding:22px; }
.related-box h3{ margin-bottom:12px; }
.related-list a{ display:flex; align-items:center; justify-content:space-between; padding:11px 0; border-bottom:1px solid var(--color-border); font-weight:600; font-size:14.5px; }
.related-list li:last-child a{ border-bottom:none; }
.related-list a:hover{ color: var(--color-accent-dark); }

/* ---------- 404 ---------- */
.error-page{ min-height:70vh; display:flex; align-items:center; }
.error-page .container{ text-align:center; }
.error-code{ font-size: clamp(80px,20vw,160px); font-weight:800; color: var(--color-accent); line-height:1; }

/* ---------- Search page ---------- */
.search-box{ display:flex; gap:10px; margin-bottom:28px; flex-wrap:wrap; }
.search-box input{ flex:1; min-width:0; }
.search-results{ display:flex; flex-direction:column; gap:14px; }
.search-result{ padding:16px 18px; border:1px solid var(--color-border); border-radius: var(--radius-sm); }
.search-result .type{ font-size:12px; text-transform:uppercase; color: var(--color-accent-dark); font-weight:700; }
.search-empty{ color: var(--color-grey); padding: 20px 0; }

/* ---------- Utility spacing ---------- */
.mt-0{ margin-top:0 !important; }
.stack{ display:flex; flex-direction:column; gap:16px; }
.divider{ height:1px; background: var(--color-border); margin: 40px 0; }

/* ---------- Print ---------- */
@media print{
  .site-header, .mobile-cta-bar, .site-footer, .hero-actions{ display:none !important; }
}
