:root {
  --bg: #f7f6f1;
  --surface: #ffffff;
  --surface-2: #eef3f1;
  --ink: #17201c;
  --muted: #63706a;
  --line: #d9dfdb;
  --brand: #0f7b62;
  --brand-dark: #085f4a;
  --accent: #f2c94c;
  --blue: #2d6cdf;
  --danger: #b42318;
  --shadow: 0 18px 45px rgba(23, 32, 28, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 10;
}

.skip-link:focus {
  left: 12px;
}

.topbar {
  background: #17201c;
  color: #dbe5e0;
  font-size: 13px;
}

.topbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar__lang {
  display: flex;
  gap: 6px;
}

.topbar__phones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-weight: 800;
}

.topbar__phones a {
  color: #fff;
}

.topbar__lang a {
  min-width: 34px;
  padding: 3px 8px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  text-align: center;
}

.topbar__lang a.is-active {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 246, 241, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  padding: 8px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand__mark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
  flex-shrink: 0;
}

.brand__mark svg {
  display: block;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  white-space: nowrap;
}

.brand__sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand__name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
}

.nav-menu > ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu li {
  position: relative;
  list-style: none;
}

.nav-menu a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 8px;
  border-radius: 8px;
  color: #26302b;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

/* ── Nav icons ──────────────────────────────────────────────────────────── */
.nav-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  opacity: 0.6;
  transition: opacity .15s ease;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
}

.nav-menu a:hover .nav-icon,
.nav-menu li.is-active > a .nav-icon {
  opacity: 1;
}

/* Smaller icons in dropdowns */
.nav-menu li ul .nav-icon {
  width: 16px;
  height: 16px;
}

.nav-menu li.is-active > a,
.nav-menu a:hover {
  background: #e5eee9;
  color: var(--brand-dark);
}

.nav-menu li ul {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  min-width: 230px;
  margin: 0;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 80;
}

.nav-menu li:hover > ul,
.nav-menu li:focus-within > ul {
  display: block;
}

.nav-phones {
  display: none;
  gap: 2px;
  justify-items: end;
  font-size: 14px;
  font-weight: 800;
}

.nav-phones a {
  color: var(--brand-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.icon-burger {
  width: 22px;
  height: 16px;
  display: block;
  color: var(--ink);
}

/* Animate burger → × when menu is open */
.icon-burger .b1,
.icon-burger .b2,
.icon-burger .b3 {
  transform-origin: center;
  transition: transform .22s ease, opacity .18s ease;
}

.nav-toggle[aria-expanded="true"] .b1 {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .b2 {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .b3 {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: 56px 0 34px;
  background: linear-gradient(180deg, #fbfaf6 0%, var(--bg) 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  gap: 36px;
  align-items: center;
}

.kicker {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  font-size: clamp(36px, 5vw, 62px);
  letter-spacing: 0;
}

h2 {
  font-size: 40px;
  letter-spacing: 0;
}

h3 {
  font-size: 21px;
}

.hero__lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.hero__media {
  min-height: 430px;
  overflow: hidden;
  border-radius: 8px;
  background: #dfe9ec;
  box-shadow: var(--shadow);
}

.hero__media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.hero-stat {
  position: relative;
  min-height: 120px;
  padding: 22px 22px 20px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background .2s;
  overflow: hidden;
}

.hero-stat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74,133,96,.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .25s;
}

.hero-stat:hover::before {
  opacity: 1;
}

.stat-icon {
  width: 28px;
  height: 28px;
  color: var(--brand-dark);
  opacity: .55;
  margin-bottom: 8px;
  transition: opacity .2s, transform .2s;
}

.hero-stat:hover .stat-icon {
  opacity: .9;
  transform: scale(1.1);
}

.stat-value {
  display: block;
  font-size: 36px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
}

.hero-stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

/* Entrance animation — items slide up when entering viewport */
@keyframes statIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-stat.is-visible {
  animation: statIn .5s ease both;
}

.hero-stat.is-visible:nth-child(2) { animation-delay: .1s; }
.hero-stat.is-visible:nth-child(3) { animation-delay: .2s; }

.section {
  padding: 72px 0;
}

.section-muted {
  background: var(--surface-2);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.service-grid,
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service-card,
.price-card,
.step,
.lead-box,
.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.service-card {
  min-height: 178px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.sc-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  color: var(--brand-dark);
  opacity: .75;
  flex-shrink: 0;
  transition: opacity .18s ease;
}

.service-card:hover .sc-icon {
  opacity: 1;
}

.service-card span {
  display: block;
  font-size: 18px;
  font-weight: 850;
  overflow-wrap: break-word;
}

.service-card p,
.price-card p,
.step p {
  margin: 10px 0 0;
  color: var(--muted);
  overflow-wrap: break-word;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.step {
  padding: 24px;
}

.step span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--brand-dark);
  font-weight: 900;
}

.price-card {
  padding: 24px;
}

.price-card strong {
  display: block;
  margin-top: 18px;
  font-size: 26px;
  color: var(--brand-dark);
}

.price-old {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: line-through;
}

/* ══════════════════════════════════════════════════════════════════════
   Window Price Cards (fancy cards layout like competitor)
   ══════════════════════════════════════════════════════════════════════ */
.wpc-section {
  background: #f5f7f5;
}

.wpc-card {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.wpc-card:last-child {
  margin-bottom: 0;
}

/* ── Left panel: name + scheme + CTA ─────────────────────────────── */
.wpc-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 28px 20px 24px;
  background: #f0f4f1;
  border-right: 1px solid var(--line);
  gap: 20px;
}

.wpc-name {
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  color: #26302b;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.wpc-scheme {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.wpc-scheme svg {
  max-height: 90px;
  width: auto;
  color: var(--brand-dark);
  opacity: .75;
}

.wpc-cta {
  width: 100%;
  text-align: center;
  font-size: 13px;
  padding: 10px 12px;
  white-space: nowrap;
}

/* ── Middle panel: brand prices ───────────────────────────────────── */
.wpc-prices {
  padding: 20px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.wpc-brand-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid #eef0ec;
}

.wpc-brand-row:last-child {
  border-bottom: none;
}

.wpc-brand-name {
  font-size: 15px;
  font-weight: 700;
  color: #26302b;
  white-space: nowrap;
}

.wpc-brand-logo {
  max-height: 28px;
  max-width: 76px;
  object-fit: contain;
}

.wpc-old-price {
  font-size: 14px;
  color: #9aa59a;
  text-align: center;
  text-decoration: line-through;
}

.wpc-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-dark);
  text-align: right;
  white-space: nowrap;
}

/* ── Right panel: what's included ────────────────────────────────── */
.wpc-includes {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wpc-includes h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6a7a6a;
  margin: 0 0 12px;
}

.wpc-includes ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wpc-includes li {
  font-size: 14px;
  color: #37423d;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wpc-includes li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .wpc-card {
    grid-template-columns: 160px 1fr;
    grid-template-rows: auto auto;
  }

  .wpc-prices {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .wpc-includes {
    grid-column: 2;
  }
}

@media (max-width: 600px) {
  .wpc-card {
    grid-template-columns: 1fr;
  }

  .wpc-left {
    border-right: none;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 20px;
  }

  .wpc-scheme {
    flex: unset;
    width: 80px;
  }

  .wpc-prices {
    border-bottom: 1px solid var(--line);
  }

  .wpc-includes {
    grid-column: unset;
  }

  .wpc-brand-row {
    grid-template-columns: 70px 1fr 1fr;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   Price Catalog Block
   ══════════════════════════════════════════════════════════════════════ */
.price-catalog {
  background: #1b2a3b;
  color: #fff;
  padding: 60px 0;
}

.price-catalog h2 {
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -.01em;
}

.pc-head {
  margin-bottom: 36px;
}

.pc-head p {
  color: rgba(255,255,255,.6);
  font-size: 16px;
  margin-top: 4px;
}

/* ── Window type selector ─────────────────────────────────────────────── */
.pc-selector {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.pc-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.65);
  cursor: pointer;
  transition: all .2s ease;
  min-width: 110px;
}

.pc-thumb svg {
  height: 48px;
  width: auto;
  display: block;
}

.pc-thumb span {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.pc-thumb:hover {
  border-color: rgba(255,255,255,.5);
  color: #fff;
  background: rgba(255,255,255,.1);
}

.pc-thumb.is-active {
  border-color: var(--brand);
  background: rgba(72,168,100,.15);
  color: #fff;
}

/* ── Panels ───────────────────────────────────────────────────────────── */
.pc-panel {
  display: none;
}

.pc-panel.is-active {
  display: block;
}

.pc-panel__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.pc-panel__photo {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.05);
}

.pc-panel__photo img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* ── Size label ─────────────────────────────────────────────────────── */
.pc-size {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: .06em;
  color: rgba(255,255,255,.55);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

/* ── Brand price rows ──────────────────────────────────────────────── */
.pc-brands {
  margin-bottom: 0;
}

.pc-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.75);
  font-size: 16px;
}

.pc-brand-row.is-bold {
  color: #fff;
  font-weight: 700;
  font-size: 17px;
}

.pc-brand-row.is-bold span:last-child {
  color: #4ba86e;
  font-size: 18px;
}

/* ── Accessories ──────────────────────────────────────────────────── */
.pc-accessories {
  margin-top: 4px;
  padding-top: 4px;
}

.pc-acc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,.5);
  font-size: 14px;
}

.pc-acc-row.is-bold {
  color: rgba(255,255,255,.85);
  font-weight: 600;
  font-size: 16px;
  border-bottom-color: rgba(255,255,255,.12);
}

/* ── CTA ────────────────────────────────────────────────────────────── */
.pc-cta {
  display: block;
  margin-top: 28px;
  padding: 16px 24px;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  letter-spacing: .02em;
  transition: background .2s ease, border-color .2s ease;
}

.pc-cta:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pc-panel__body {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pc-panel__photo img {
    height: 240px;
  }
}

@media (max-width: 600px) {
  .pc-selector {
    gap: 8px;
  }

  .pc-thumb {
    min-width: calc(50% - 4px);
    flex-grow: 1;
    padding: 12px;
  }

  .pc-thumb svg {
    height: 38px;
  }
}

/* ── Brands / profile logos ─────────────────────────────────────────── */
.brands-text {
  max-width: 820px;
  color: #37423d;
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 28px;
}

.brands-text p {
  margin: 0 0 12px;
}

.brands-text p:last-child {
  margin-bottom: 0;
}

/* ══════════════════════════════════════════════════════════════════════
   Reviews carousel
   ══════════════════════════════════════════════════════════════════════ */
.reviews-section {
  background: #f5f7f5;
}

.reviews-intro {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.reviews-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviews-carousel {
  flex: 1;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.reviews-carousel::-webkit-scrollbar {
  display: none;
}

.rv-card {
  scroll-snap-align: start;
  flex: 0 0 calc(33.33% - 14px);
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rv-stars {
  color: #f0b429;
  font-size: 18px;
  letter-spacing: 2px;
  line-height: 1;
}

.rv-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  flex: 1;
}

.rv-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.rv-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rv-name {
  font-size: 14px;
  font-weight: 700;
  color: #26302b;
}

.rv-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background .15s, color .15s;
}

.rv-btn:hover {
  background: var(--brand-dark);
  color: #fff;
  border-color: var(--brand-dark);
}

@media (max-width: 960px) {
  .rv-card {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (max-width: 600px) {
  .rv-card {
    flex: 0 0 calc(100% - 2px);
  }

  .rv-btn {
    display: none;
  }
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: box-shadow .18s ease, transform .18s ease;
}

.brand-logo:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.brand-logo img {
  max-height: 64px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.prose {
  max-width: 850px;
}

.prose h2 {
  margin-bottom: 18px;
}

.prose div {
  color: #37423d;
  font-size: 18px;
  overflow-wrap: break-word;
}

.prose p {
  margin: 0 0 14px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-item {
  position: relative;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #dfe9e5;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform .24s ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.gallery-item figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(23, 32, 28, .78);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
}

.faq {
  max-width: 900px;
}

.faq details {
  margin: 10px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.faq summary {
  cursor: pointer;
  font-weight: 850;
}

.faq p {
  color: var(--muted);
}

.lead-section {
  background: #17201c;
  color: #fff;
}

.lead-box {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 420px);
  gap: 28px;
  padding: 30px;
  background: #213029;
  border-color: rgba(255,255,255,.12);
}

.lead-box p {
  color: #d8e0dc;
}

.lead-form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 750;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 12px;
}

textarea {
  resize: vertical;
}

.success,
.admin-success {
  padding: 12px 14px;
  border-radius: 8px;
  background: #dff6ea;
  color: #095a39;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-phones {
  display: grid;
  gap: 12px;
  align-content: center;
}

.contact-phones a {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 24px;
  font-weight: 900;
  color: var(--brand-dark);
}

.site-footer {
  padding: 34px 0;
  background: #111815;
  color: #dce5e0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-grid p {
  margin-bottom: 0;
  color: #aeb9b4;
}

.footer-brand .brand__sub {
  color: #6a7a6a;
}

.footer-brand .brand__name {
  color: #dce5e0;
}

.footer-address {
  margin: 10px 0 0;
  color: #8a9a94;
  font-size: 13px;
}

.footer-phones {
  display: grid;
  gap: 4px;
}

.admin-body {
  background: #edf1ef;
}

.admin-auth {
  width: min(520px, calc(100% - 32px));
  margin: 70px auto;
}

.admin-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px;
  background: #17201c;
  color: #fff;
}

.admin-sidebar strong {
  margin-bottom: 18px;
}

.admin-sidebar a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #dce5e0;
}

.admin-sidebar a:hover {
  background: rgba(255,255,255,.1);
}

.admin-main {
  padding: 30px;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
}

.admin-table {
  display: grid;
  gap: 10px;
}

.admin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.admin-row span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 800;
}

.admin-form {
  display: grid;
  gap: 16px;
  max-width: 1050px;
}

.admin-card {
  padding: 18px;
}

.narrow {
  max-width: 420px;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.admin-error {
  padding: 12px 14px;
  border-radius: 8px;
  background: #fee4e2;
  color: var(--danger);
}

.admin-note {
  color: var(--muted);
}

.codearea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
}

.block-editor {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.block-editor__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.block-editor__head h2 {
  font-size: 24px;
}

.block-editor__head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.block-editor__tools {
  display: flex;
  gap: 10px;
  align-items: center;
}

.block-list {
  display: grid;
  gap: 12px;
}

.block-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.block-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #eef3f1;
}

.block-card__head strong,
.block-card__head span {
  display: block;
}

.block-card__head span {
  max-width: 520px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.block-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.block-card__actions .btn {
  min-height: 38px;
  padding: 8px 10px;
}

.block-card__actions select {
  min-height: 38px;
  padding: 8px 10px;
}

.block-card__body {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.block-items {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.block-items__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.block-items__head .btn {
  width: 38px;
  min-height: 38px;
  padding: 0;
}

.block-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.block-item__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.raw-json {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.raw-json summary {
  padding: 14px;
  cursor: pointer;
  font-weight: 850;
}

.raw-json textarea {
  border-width: 1px 0 0;
  border-radius: 0 0 8px 8px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.media-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.media-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.media-item code {
  overflow-wrap: anywhere;
  font-size: 12px;
}

/* ── Mobile phone-dropdown & nav-actions ────────────────────────────── */
.nav-actions {
  display: none;
  align-items: center;
  gap: 6px;
}

.nav-phone-wrap {
  position: relative;
}

.nav-phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand-dark);
  cursor: pointer;
}

.nav-phone-btn:hover {
  background: var(--surface-2);
}

.phone-drop {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  flex-direction: column;
  gap: 2px;
  min-width: 210px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.phone-drop.is-open {
  display: flex;
}

.phone-drop__item {
  display: block;
  padding: 13px 16px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-dark);
}

.phone-drop__item:hover,
.phone-drop__item:active {
  background: var(--surface-2);
}

.mobile-lang {
  display: none;
}

/* ── Medium: tablet-landscape / narrow desktop ──────────────────────── */
@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr minmax(0, .85fr);
    gap: 24px;
  }

  .service-grid,
  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  /* Topbar is replaced by phone-btn dropdown on mobile */
  .topbar {
    display: none;
  }

  .nav {
    grid-template-columns: auto auto;
  }

  /* nav-actions (phone-btn + hamburger) only shown on mobile */
  .nav-actions {
    display: flex;
    justify-self: end;
  }

  .nav-toggle {
    display: flex;
  }

  /* site-header must allow absolute child to overflow it */
  .site-header {
    overflow: visible;
  }

  .nav-menu,
  .nav-phones {
    display: none;
  }

  /* Overlay menu: drops below the header, scrolls independently */
  .nav-menu.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100svh - var(--header-h, 78px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(0,0,0,.14);
    z-index: 90;
    /* 16px matches .container side padding */
    padding: 0 16px 32px;
  }

  /* Prevent page scroll behind the overlay */
  body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  /* ── Mobile nav list ───────────────────────────────────────────── */
  .nav-menu > ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
  }

  .nav-menu > ul > li {
    width: 100%;
  }

  /* Top-level items */
  .nav-menu > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(8px, 2.5vw, 14px);
    padding: clamp(12px, 3vw, 16px) 0;
    font-size: clamp(17px, 4.5vw, 22px);
    font-weight: 700;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: none !important;
    white-space: normal;
    width: 100%;
  }

  .nav-menu > ul > li:last-child > a {
    border-bottom: none;
  }

  .nav-menu > ul > li.is-active > a {
    color: var(--brand-dark);
    background: none !important;
  }

  /* Top-level nav icon: same size for all */
  .nav-menu > ul > li > a .nav-icon {
    width: clamp(20px, 5vw, 26px);
    height: clamp(20px, 5vw, 26px);
    opacity: 0.5;
    flex-shrink: 0;
  }

  .nav-menu > ul > li.is-active > a .nav-icon,
  .nav-menu > ul > li > a:hover .nav-icon {
    opacity: 1;
  }

  /* Sub-menu: flat indented list, no box */
  .nav-menu li ul {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0 0 6px clamp(28px, 7vw, 38px);
    margin: 0;
  }

  .nav-menu li ul li {
    width: 100%;
  }

  .nav-menu li ul li a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(6px, 2vw, 10px);
    padding: clamp(8px, 2.5vw, 11px) 0;
    font-size: clamp(14px, 3.8vw, 17px);
    font-weight: 500;
    color: #5a6a5e;
    border-bottom: 1px solid #f0f2f0;
    border-radius: 0;
    background: none !important;
    white-space: normal;
    width: 100%;
  }

  .nav-menu li ul li:last-child a {
    border-bottom: none;
  }

  .nav-menu li ul li.is-active a {
    color: var(--brand-dark);
    font-weight: 700;
  }

  .nav-menu li ul .nav-icon {
    width: clamp(14px, 3.5vw, 18px);
    height: clamp(14px, 3.5vw, 18px);
    opacity: 0.4;
  }

  /* Language switcher */
  .mobile-lang {
    display: flex;
    gap: 8px;
    padding: 16px 4px 4px;
    margin-top: 6px;
    border-top: 1px solid var(--line);
  }

  .mobile-lang a {
    padding: 7px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--ink);
  }

  .mobile-lang a.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
  }

  .hero__grid,
  .lead-box,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .price-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .topbar__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 8px 0;
  }

  .hero {
    padding-top: 36px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px;
  }

  .hero__grid {
    gap: 24px;
  }

  .hero__media,
  .hero__media img {
    min-height: 280px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-stat {
    min-height: auto;
    padding: 14px 12px;
    gap: 2px;
  }

  .stat-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 4px;
  }

  .stat-value {
    font-size: 26px;
  }

  .steps,
  .service-grid,
  .price-grid,
  .gallery-grid,
  .admin-grid-2 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }

  .lead-box {
    padding: 20px;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-main {
    padding: 18px;
  }

  .admin-row {
    grid-template-columns: 1fr;
  }

  .block-editor__head,
  .block-card__head,
  .block-item {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .block-editor__tools,
  .block-card__actions {
    justify-content: stretch;
  }

  .block-editor__tools > *,
  .block-card__actions > * {
    flex: 1 1 auto;
  }
}
