:root {
  --charcoal-900: #1c1a17;
  --charcoal-800: #2a2723;
  --charcoal-600: #4a453e;
  --cream-50: #faf7f2;
  --cream-100: #f2ede4;
  --wood-500: #c96a1c;
  --wood-600: #a5560f;
  --wood-100: #f7e0c4;
  --clay-500: #d1502e;
  --forest-600: #35623f;
  --forest-100: #dfe9de;
  --sky-500: #3f6e8c;
  --sky-100: #dde8ee;
  --line: #e4ddd0;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 28px rgba(28, 26, 23, 0.10);
  --container: 1160px;
  --font: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Fraunces', 'Georgia', serif;
}

* { box-sizing: border-box; min-width: 0; }
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  color: var(--charcoal-800);
  background: var(--cream-50);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; color: var(--charcoal-900); }
p { margin: 0 0 1em; max-width: 62ch; }
ul { margin: 0; padding: 0; list-style: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.icon { width: 22px; height: 22px; flex-shrink: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--wood-500); color: #fff; }
.btn-primary:hover { background: var(--wood-600); }
.btn-outline { background: transparent; border-color: var(--charcoal-900); color: var(--charcoal-900); }
.btn-outline:hover { background: var(--charcoal-900); color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* Header */
.site-header { background: var(--charcoal-900); color: var(--cream-50); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 20px; height: 76px; overflow: hidden; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; color: var(--white); white-space: nowrap; flex-shrink: 0; }
.logo-icon { color: var(--wood-500); }
.main-nav { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.main-nav a { font-size: 14px; opacity: .85; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { opacity: 1; color: var(--wood-500); }
/* UA/RU перемикач у вигляді "тумблера" — трек з двома підписами і повзунком */
.lang-toggle {
  position: relative; display: inline-flex; align-items: center; flex-shrink: 0;
  width: 62px; height: 28px; border-radius: 999px; padding: 3px;
  background: var(--charcoal-800); border: 1px solid rgba(255,255,255,.14);
  opacity: 1 !important;
}
.lang-toggle-thumb {
  position: absolute; top: 3px; left: 3px; width: 27px; height: 20px; border-radius: 999px;
  background: linear-gradient(180deg, var(--wood-500), var(--wood-600));
  box-shadow: 0 2px 5px rgba(0,0,0,.35); transition: transform .2s ease; z-index: 1;
}
.lang-toggle--ru .lang-toggle-thumb { transform: translateX(28px); }
.lang-toggle-opt {
  position: relative; z-index: 2; flex: 1; text-align: center; font-size: 10.5px; font-weight: 800;
  letter-spacing: .02em; color: rgba(255,255,255,.45); transition: color .2s ease;
}
.lang-toggle--ua .lang-toggle-opt--ua,
.lang-toggle--ru .lang-toggle-opt--ru { color: #fff; }
.lang-toggle:hover { border-color: rgba(255,255,255,.3); }
.main-nav .nav-phone { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.phone-link { display: flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; }

/* Hero */
.hero { padding: 64px 0 56px; background: linear-gradient(180deg, var(--cream-100), var(--cream-50)); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--wood-500); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; margin-bottom: 12px; }
.hero h1 { font-size: 42px; }
/* H1 лишається ключовою фразою для SEO, а візуальний акцент — на обіцянці */
.hero .hero-kicker { font-family: var(--font); font-size: 15px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--wood-500); margin-bottom: 14px; }
.hero-title { font-family: var(--font-display); font-size: 52px; line-height: 1.08; font-weight: 600; color: var(--charcoal-900); margin: 0 0 18px; max-width: none; }
.hero-lead { font-size: 17px; color: var(--charcoal-600); max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.hero-facts { display: flex; gap: 28px; margin-top: 32px; flex-wrap: wrap; }
.hero-fact strong { display: block; font-size: 26px; color: var(--wood-500); }
.hero-fact span { font-size: 13px; color: var(--charcoal-600); }

/* Real photo frame (used once a photo exists in assets/img/houses/) */
.photo-frame { position: relative; overflow: hidden; border-radius: var(--radius); width: 100%; aspect-ratio: 446 / 630; box-shadow: var(--shadow); }
.photo-frame picture { display: block; width: 100%; height: 100%; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.house-card .photo-frame { border-radius: var(--radius) var(--radius) 0 0; box-shadow: none; aspect-ratio: 446 / 630; }

/* Photo placeholder — branded illustrated scene, stands in until real photos exist */
.photo-placeholder {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px;
  border-radius: var(--radius);
  width: 100%; aspect-ratio: 4 / 3; height: auto;
  padding-bottom: 16px;
}
.ph-scene { width: 78%; max-width: 260px; }
.ph-label { font-size: 12.5px; font-weight: 700; text-align: center; padding: 0 14px; letter-spacing: .01em; }

.ph-v0 { background: linear-gradient(160deg, var(--wood-100), #fff 70%); color: var(--wood-600); }
.ph-v0 .ph-sun { fill: var(--wood-500); opacity: .35; }
.ph-v0 .ph-hill { fill: var(--wood-500); opacity: .18; }
.ph-v0 .ph-house-body, .ph-v0 .ph-house-door { fill: var(--white); stroke: var(--wood-600); stroke-width: 2; }
.ph-v0 .ph-house-roof { fill: var(--wood-500); }
.ph-v0 .ph-house-window { fill: var(--wood-100); stroke: var(--wood-600); stroke-width: 1.5; }
.ph-v0 .ph-house-chimney { stroke: var(--wood-600); stroke-width: 2; }

.ph-v1 { background: linear-gradient(160deg, var(--forest-100), #fff 70%); color: var(--forest-600); }
.ph-v1 .ph-sun { fill: var(--wood-500); opacity: .4; }
.ph-v1 .ph-hill { fill: var(--forest-600); opacity: .2; }
.ph-v1 .ph-house-body, .ph-v1 .ph-house-door { fill: var(--white); stroke: var(--forest-600); stroke-width: 2; }
.ph-v1 .ph-house-roof { fill: var(--forest-600); }
.ph-v1 .ph-house-window { fill: var(--forest-100); stroke: var(--forest-600); stroke-width: 1.5; }
.ph-v1 .ph-house-chimney { stroke: var(--forest-600); stroke-width: 2; }

.ph-v2 { background: linear-gradient(160deg, var(--sky-100), #fff 70%); color: var(--sky-500); }
.ph-v2 .ph-sun { fill: var(--wood-500); opacity: .4; }
.ph-v2 .ph-hill { fill: var(--sky-500); opacity: .2; }
.ph-v2 .ph-house-body, .ph-v2 .ph-house-door { fill: var(--white); stroke: var(--sky-500); stroke-width: 2; }
.ph-v2 .ph-house-roof { fill: var(--sky-500); }
.ph-v2 .ph-house-window { fill: var(--sky-100); stroke: var(--sky-500); stroke-width: 1.5; }
.ph-v2 .ph-house-chimney { stroke: var(--sky-500); stroke-width: 2; }

.ph-v3 { background: linear-gradient(160deg, var(--wood-100), var(--sky-100) 130%); color: var(--clay-500); }
.ph-v3 .ph-sun { fill: var(--clay-500); opacity: .35; }
.ph-v3 .ph-hill { fill: var(--clay-500); opacity: .18; }
.ph-v3 .ph-house-body, .ph-v3 .ph-house-door { fill: var(--white); stroke: var(--clay-500); stroke-width: 2; }
.ph-v3 .ph-house-roof { fill: var(--clay-500); }
.ph-v3 .ph-house-window { fill: var(--wood-100); stroke: var(--clay-500); stroke-width: 1.5; }
.ph-v3 .ph-house-chimney { stroke: var(--clay-500); stroke-width: 2; }

/* Section generic */
.section { padding: 64px 0; }
.section-alt { background: var(--cream-100); }
.section-dark { background: var(--charcoal-900); color: var(--cream-100); }
.section-dark .section-head p { color: rgba(250,247,242,.65); }
.section-dark h2 { color: var(--white); }
.section-dark .usp-card { background: var(--charcoal-800); box-shadow: none; border: 1px solid rgba(255,255,255,.08); }
.section-dark .usp-card h3 { color: var(--white); }
.section-dark .usp-card p { color: rgba(250,247,242,.6); }
.section-dark .usp-card-head .icon { color: var(--wood-500); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: 30px; }
.section-head p { color: var(--charcoal-600); }

/* USP grid */
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.usp-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.usp-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.usp-card-head .icon { color: var(--wood-500); flex-shrink: 0; }
.usp-card:nth-child(4n+2) .usp-card-head .icon { color: var(--forest-600); }
.usp-card:nth-child(4n+3) .usp-card-head .icon { color: var(--sky-500); }
.usp-card:nth-child(4n+4) .usp-card-head .icon { color: var(--clay-500); }
.section-dark .usp-card:nth-child(4n+2) .usp-card-head .icon { color: #6fae7f; }
.section-dark .usp-card:nth-child(4n+3) .usp-card-head .icon { color: #7fb4d6; }
.section-dark .usp-card:nth-child(4n+4) .usp-card-head .icon { color: #e2795c; }
.usp-card-head h3 { margin: 0; font-size: 17px; }
.usp-card p { margin: 0; font-size: 15px; color: var(--charcoal-600); max-width: none; }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.process-card { position: relative; padding: 24px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.process-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.process-step { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--wood-500); color: #fff; font-weight: 700; flex-shrink: 0; }
.process-head h3 { margin: 0; font-size: 17px; }
.process-card p { max-width: none; }

/* Catalog grid */
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.house-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.house-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.house-card h3 { font-size: 18px; margin: 0; }
.house-badge { display: inline-block; align-self: flex-start; background: var(--wood-100); color: var(--wood-600); font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.house-meta { display: flex; gap: 16px; font-size: 13.5px; color: var(--charcoal-600); }
.house-meta span { display: flex; align-items: center; gap: 5px; }
.house-meta .icon { width: 17px; height: 17px; }
.house-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.house-price { font-weight: 700; color: var(--wood-600); }

/* Gallery accordion — collapsed teaser that expands into a full photo grid */
.gallery-section { padding: 40px 0; }
.gallery-accordion { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; overflow: hidden; }
.gallery-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 24px; cursor: pointer; list-style: none;
}
.gallery-summary::-webkit-details-marker { display: none; }
.gallery-summary-info { display: flex; align-items: center; gap: 14px; min-width: 0; }
.gallery-summary-icon { color: var(--wood-500); flex-shrink: 0; width: 26px; height: 26px; }
.gallery-summary-info strong { display: block; font-family: var(--font-display); font-size: 18px; color: var(--charcoal-900); }
.gallery-summary-sub { display: block; font-size: 13.5px; color: var(--charcoal-600); margin-top: 2px; }
.gallery-summary-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.gallery-teaser-thumbs { display: flex; align-items: center; }
.gallery-teaser-thumbs img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--white);
  box-shadow: 0 2px 6px rgba(28,26,23,.15); margin-left: -12px; flex-shrink: 0;
}
.gallery-teaser-thumbs img:first-child { margin-left: 0; }
.gallery-teaser-more {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--charcoal-900); color: var(--white); font-size: 12.5px; font-weight: 700;
  margin-left: -12px; border: 2px solid var(--white); flex-shrink: 0;
}
.gallery-toggle-icon { width: 20px; height: 20px; color: var(--wood-500); flex-shrink: 0; transition: transform .2s ease; }
.gallery-accordion[open] .gallery-toggle-icon { transform: rotate(45deg); }
.gallery-grid {
  display: none; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px;
  padding: 0 24px 24px;
}
.gallery-accordion[open] .gallery-grid { display: grid; }
.gallery-item { display: block; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.gallery-item:hover img { transform: scale(1.08); }

.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(20, 18, 16, .92); z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 40px 20px; cursor: zoom-out;
}
.lightbox-overlay img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close {
  position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: none; color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: none; color: #fff; font-size: 34px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; padding-bottom: 4px;
}
.lightbox-nav:hover { background: rgba(255,255,255,.22); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.75); font-size: 13.5px; font-weight: 600; letter-spacing: .02em;
}

/* FAQ accordion */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-caret { width: 18px; height: 18px; color: var(--wood-500); flex-shrink: 0; transform: rotate(90deg); transition: transform .2s ease; }
.faq-item[open] .faq-caret { transform: rotate(-90deg); }
.faq-item p { padding-bottom: 18px; margin: 0; color: var(--charcoal-600); max-width: none; }

.catalog-cta { text-align: center; margin-top: 32px; }

/* Filters */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 14px; cursor: pointer; }
.filter-chip.active { background: var(--charcoal-900); color: #fff; border-color: var(--charcoal-900); }

/* House detail page */
.house-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; padding: 44px 0; }
.house-facts { display: flex; gap: 24px; margin: 18px 0; flex-wrap: wrap; }
.house-fact { display: flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; }
.house-layout-box { background: var(--cream-100); border-radius: var(--radius); padding: 20px 22px; margin: 24px 0; }
.house-layout-box h3 { font-size: 16px; margin-bottom: 6px; }
.house-layout-box p { margin: 0; max-width: none; }
.house-hero .house-card-foot { margin-top: 20px; }
.house-hero .house-price { font-size: 20px; }
.house-nav-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.container-narrow { max-width: 820px; }
.regions-box { margin-top: 40px; }
.breadcrumbs { display: flex; gap: 6px; font-size: 13px; color: var(--charcoal-600); padding-top: 16px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--wood-500); }

/* Calculator */
.calc-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; max-width: 620px; margin: 0 auto; }
.calc-row { margin-bottom: 20px; }
.calc-row label { font-weight: 600; display: block; margin-bottom: 8px; }
.calc-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.calc-option { display: flex; align-items: center; gap: 8px; font-size: 14.5px; background: var(--cream-100); border-radius: var(--radius-sm); padding: 10px 12px; }
.calc-result { text-align: center; background: var(--wood-100); border-radius: var(--radius); padding: 22px; margin-top: 20px; }
.calc-result strong { font-size: 30px; color: var(--wood-600); display: block; }
.calc-disclaimer { font-size: 12.5px; color: var(--charcoal-600); margin-top: 14px; }
.calc-cta { margin-top: 18px; }
/* Мобільна панель звʼязку: завжди під рукою, нижче за шапку (щоб меню її перекривало) */
.mobile-cta-bar { display: none; }
@media (max-width: 720px) {
  body { padding-bottom: 68px; }
  .mobile-cta-bar {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--charcoal-900);
    box-shadow: 0 -6px 20px rgba(0,0,0,.18);
  }
  .mobile-cta-btn {
    flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 5px;
    min-height: 46px; padding: 0 6px; border-radius: 10px; font-size: 13px; font-weight: 700; color: #fff;
    background: rgba(255,255,255,.08); white-space: nowrap;
  }
  .mobile-cta-btn .icon { width: 16px; height: 16px; color: var(--wood-500); }
  .mobile-cta-primary { background: var(--wood-500); }
}
.calc-options-note { margin: 10px auto 0; font-size: 13.5px; color: var(--charcoal-600); max-width: none; }
input[type=range] { width: 100%; accent-color: var(--wood-500); }

/* Forms */
.order-section { padding: 64px 0; }
.order-form, .thanks-banner { max-width: 560px; margin: 0 auto; }
.order-lead { text-align: center; max-width: 560px; margin: 0 auto 28px; color: var(--charcoal-600); }
.order-section h2 { text-align: center; }
.order-form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 32px 28px; }
.form-row { display: flex; gap: 16px; }
.form-row label { flex: 1 1 0; min-width: 0; }
.order-form label { display: block; margin-bottom: 18px; font-weight: 600; font-size: 14px; }
.order-form label > span { display: block; margin-bottom: 6px; color: var(--charcoal-900); }
.order-form input, .order-form select, .order-form textarea {
  width: 100%; padding: 13px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  font-family: inherit; font-size: 15px; background: var(--white); transition: border-color .15s ease;
}
.order-form input:focus, .order-form select:focus, .order-form textarea:focus {
  outline: none; border-color: var(--wood-500);
}
.order-form .consent-row { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 13px; margin-bottom: 22px; color: var(--charcoal-600); }
.order-form .consent-row input { width: auto; margin-top: 3px; accent-color: var(--wood-500); flex-shrink: 0; }
.order-form button[type="submit"] { width: 100%; padding: 15px; font-size: 16px; }
.order-form-trust { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; margin-bottom: 0; font-size: 12.5px; color: var(--charcoal-600); max-width: none; }
.order-form-trust .icon { width: 15px; height: 15px; color: var(--forest-600); flex-shrink: 0; }
.thanks-banner { display: flex; gap: 16px; align-items: center; background: var(--wood-100); border-radius: var(--radius); padding: 24px; }
.thanks-icon { color: var(--wood-600); width: 32px; height: 32px; flex-shrink: 0; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.blog-meta { font-size: 13px; color: var(--wood-600); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.blog-post h1 { font-size: 36px; margin-top: 10px; }
.blog-post-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding-top: 12px; }
.blog-cover { aspect-ratio: 3 / 2; }
.blog-lead { font-size: 17px; color: var(--charcoal-600); max-width: 520px; }
.blog-post-body { margin-top: 32px; max-width: 720px; }
.blog-post-body p { max-width: none; font-size: 16px; }
.blog-post-body a { color: var(--wood-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.blog-post-body a:hover { color: var(--wood-500); }
.blog-intro { font-family: var(--font-display); font-size: 20px; line-height: 1.5; color: var(--charcoal-900); font-weight: 500; }
.blog-point { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 14px; }
.blog-point-icon { color: var(--forest-600); background: var(--forest-100); border-radius: 50%; padding: 4px; width: 26px; height: 26px; flex-shrink: 0; margin-top: 2px; }
.blog-point p { margin: 0; }
.blog-callout { display: flex; gap: 14px; align-items: flex-start; background: var(--wood-100); border-radius: var(--radius); padding: 20px 22px; margin-top: 24px; }
.blog-callout-icon { color: var(--wood-600); background: var(--white); border-radius: 50%; padding: 5px; width: 30px; height: 30px; flex-shrink: 0; }
.blog-callout p { margin: 0; font-weight: 600; color: var(--charcoal-900); }

/* About */
.about-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.about-fact { text-align: center; background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.about-fact strong { display: block; font-size: 28px; color: var(--wood-500); }

/* Contacts */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-item { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.contact-item .icon { color: var(--wood-500); }

/* Delivery steps */
.steps-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 30px; }
.step-item { background: var(--white); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.step-item h3 { font-size: 16px; }

/* Footer */
.site-footer { background: var(--charcoal-900); color: var(--cream-100); padding: 48px 0 0; margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-bottom: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-tag { color: rgba(250,247,242,.6); font-size: 14px; }
.footer-col a { font-size: 14.5px; opacity: .85; }
.footer-col a:hover { opacity: 1; }
.footer-contact { display: flex; align-items: center; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 13px; opacity: .7; }

/* Responsive */

/* Header nav collapses to a drawer well before the general "tablet" breakpoint,
   because 6 links + phone + CTA button don't fit between ~721-1150px. */
@media (max-width: 1180px) {
  .main-nav { position: fixed; inset: 76px 0 0 0; background: var(--charcoal-900); flex-direction: column; align-items: flex-start; padding: 24px 20px; gap: 4px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; margin-left: 0; }
  .main-nav a { width: 100%; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav .lang-toggle { width: 62px; border-bottom: none; margin-top: 8px; padding: 3px; }
  .main-nav .nav-phone { display: flex; color: var(--wood-500); font-weight: 700; }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: block; order: 3; }
  .header-actions .phone-link { display: none; }
  .header-inner { flex-wrap: nowrap; }
  /* .main-nav стає position:fixed і випадає з потоку — його margin-left:auto
     більше нічого не штовхає, тому дублюємо вирівнювання вправо тут. */
  .header-actions { margin-left: auto; }
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .usp-grid, .process-grid, .catalog-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .about-facts, .steps-list { grid-template-columns: repeat(2, 1fr); }
  .house-hero { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .blog-post-head { grid-template-columns: 1fr; }
  .blog-post-head .photo-placeholder { order: -1; max-width: 420px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero h1 { font-size: 32px; }
  .hero-title { font-size: 38px; }
  .usp-grid, .process-grid, .catalog-grid, .blog-grid, .about-facts, .steps-list, .calc-options { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .hero-cta { flex-wrap: nowrap; }
  .hero-cta .btn { flex: 1 1 0; padding: 13px 10px; font-size: 14px; }
  .footer-inner { grid-template-columns: 1fr; }
  .header-actions .btn-sm { padding: 9px 14px; font-size: 13px; }
  .gallery-teaser-thumbs { display: none; }
  .gallery-summary { padding: 16px 18px; gap: 12px; }
  .gallery-grid { padding: 0 18px 18px; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; }
  .lightbox-close { top: 10px; right: 10px; width: 40px; height: 40px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 26px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-overlay { padding: 24px 8px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 27px; }
  .hero-title { font-size: 33px; }
  .section { padding: 44px 0; }
  .calc-box { padding: 22px; }
  .logo span { display: none; }
  .gallery-section { padding: 24px 0; }
}

/* Honeypot для ботів — поле є у формі, але людина його не бачить */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent-row a { color: var(--wood-600); text-decoration: underline; text-underline-offset: 2px; }

/* Реальне фото в hero: горизонтальне, не портретне як у каталозі */
.hero .photo-frame { aspect-ratio: 4 / 3; }

/* 404 */
.notfound { text-align: center; max-width: 560px; }
.notfound p { margin-left: auto; margin-right: auto; }
.notfound .hero-cta { justify-content: center; }

/* Політика конфіденційності */
.privacy h2 { font-size: 20px; margin-top: 28px; }

/* ===== Редизайн: кнопки, футер, блок заявки, картки ===== */

/* Кнопки: обʼєм, тінь, рух на hover */
.btn { transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(135deg, #d9772b 0%, var(--wood-600) 100%); box-shadow: 0 8px 22px rgba(201,106,28,.28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(201,106,28,.38); background: linear-gradient(135deg, #e3812f 0%, var(--wood-600) 100%); }
.btn-outline { border-width: 2px; }
.btn-outline:hover { transform: translateY(-1px); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-telegram { background: #2aabee; color: #fff; box-shadow: 0 6px 18px rgba(42,171,238,.3); padding: 12px 20px; }
.btn-telegram:hover { background: #1f96d6; transform: translateY(-1px); color: #fff; }

/* Каталог: рекламні листівки виробника кадруємо зверху (рендер), без цін і QR-кодів */
.house-card .photo-frame { aspect-ratio: 4 / 3; }
.house-card .photo-frame img { object-position: center top; }

/* Картки блогу з реальними фото */
.blog-card { padding: 0; overflow: hidden; }
.blog-card-cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--cream-100); }
.blog-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.blog-card:hover .blog-card-cover img { transform: scale(1.05); }
.blog-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; }

/* Контакти */
.contact-cards { display: grid; gap: 12px; margin-top: 24px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; transition: box-shadow .15s ease, transform .15s ease; }
.contact-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.contact-card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--wood-100); color: var(--wood-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card strong { display: block; font-size: 15px; }
.contact-card em { display: block; font-style: normal; font-size: 18px; font-weight: 700; color: var(--wood-600); margin: 2px 0; }
.contact-card small { display: block; font-size: 13.5px; color: var(--charcoal-600); }
.contacts-photo { aspect-ratio: 4 / 3; }

/* Блок заявки: темна панель з вигодами + форма */
.order-section { padding: 72px 0; }
.order-card { display: grid; grid-template-columns: 1fr 1.15fr; background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(28,26,23,.12); max-width: 1060px; margin: 0 auto; }
.order-aside { background: var(--charcoal-900); color: var(--cream-100); padding: 44px 40px; }
.order-aside h2 { color: #fff; font-size: 28px; text-align: left; }
.order-aside-lead { color: rgba(250,247,242,.7); font-size: 15px; max-width: none; }
.order-aside h3 { color: var(--wood-500); font-family: var(--font); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; margin: 28px 0 12px; }
.order-benefits li { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; font-size: 15px; color: rgba(250,247,242,.92); }
.order-benefits .icon { color: var(--wood-500); flex-shrink: 0; margin-top: 2px; width: 20px; height: 20px; }
.order-alt { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.order-alt-label { display: block; font-size: 13.5px; color: rgba(250,247,242,.6); margin-bottom: 12px; }
.order-alt-links { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.order-alt-links .btn-telegram { padding: 11px 18px; }
.order-alt-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; white-space: nowrap; }
.order-alt-phone .icon { color: var(--wood-500); }
.order-form { max-width: none; margin: 0; box-shadow: none; border-radius: 0; padding: 40px; }
.order-form input, .order-form select, .order-form textarea { padding: 14px 16px; border-radius: 10px; font-size: 16px; background: var(--cream-50); }
.order-form input::placeholder, .order-form textarea::placeholder { color: #a39c92; }
.order-form input:focus, .order-form select:focus, .order-form textarea:focus { background: var(--white); box-shadow: 0 0 0 3px rgba(201,106,28,.15); }
.order-form .btn-lg { width: 100%; }

/* Передфутер: швидка заявка одним полем */
.prefooter { background: linear-gradient(135deg, var(--wood-600) 0%, #6f380a 100%); color: #fff; padding: 56px 0; margin-top: 60px; }
.prefooter-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.prefooter-text h2 { color: #fff; font-size: 32px; margin-bottom: 10px; }
.prefooter-text p { color: rgba(255,255,255,.85); margin: 0; max-width: 520px; }
.quick-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.quick-field { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 0 20px; height: 58px; margin: 0; }
.quick-field .icon { color: var(--wood-500); flex-shrink: 0; }
.quick-field input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; width: 100%; color: var(--charcoal-900); }
.quick-form .btn-lg { height: 58px; white-space: nowrap; background: var(--charcoal-900); box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.quick-form .btn-lg:hover { background: #000; box-shadow: 0 12px 28px rgba(0,0,0,.3); }
.quick-consent { grid-column: 1 / -1; font-size: 12.5px; color: rgba(255,255,255,.7); margin: 0; max-width: none; }
.quick-consent a { color: #fff; text-decoration: underline; }

/* Футер */
.site-footer { margin-top: 0; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.2fr 1.2fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand .logo { margin-bottom: 4px; }
.footer-about { color: rgba(250,247,242,.65); font-size: 14.5px; margin: 14px 0 22px; max-width: 360px; }
.footer-trust { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-trust li { display: flex; flex-direction: column; }
.footer-trust strong { font-family: var(--font-display); font-size: 28px; color: var(--wood-500); line-height: 1; }
.footer-trust span { font-size: 12.5px; color: rgba(250,247,242,.6); margin-top: 5px; }
.footer-col { gap: 0; }
.footer-col h4 { color: #fff; font-family: var(--font); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
.footer-col a { display: block; font-size: 14.5px; color: rgba(250,247,242,.8); padding: 6px 0; opacity: 1; line-height: 1.4; }
.footer-col a:hover { color: var(--wood-500); }
.footer-model { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-model em { font-style: normal; color: var(--wood-500); font-weight: 700; white-space: nowrap; font-size: 13.5px; }
.footer-all { color: #fff; font-weight: 700; margin-top: 6px; }
.footer-phone { font-family: var(--font-display); font-size: 24px; color: #fff; font-weight: 600; padding: 0 0 4px; }
.footer-reply { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: rgba(250,247,242,.6); margin: 0 0 16px; max-width: none; }
.footer-reply .icon { width: 16px; height: 16px; color: var(--wood-500); }
.footer-contacts .btn-telegram { display: inline-flex; margin-bottom: 14px; color: #fff; }
.footer-order-link { color: var(--wood-500); font-weight: 700; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--wood-500); }

@media (max-width: 980px) {
  .prefooter-inner, .order-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .quick-form { grid-template-columns: 1fr; }
  .quick-form .btn-lg { width: 100%; }
  .prefooter { padding: 44px 0; }
  .prefooter-text h2 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .order-section { padding: 48px 0; }
  .order-aside, .order-form { padding: 28px 22px; }
  .order-aside h2 { font-size: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
