/* ============================================================
   DomGorod — design tokens & shared styles
   ============================================================ */
:root {
  --bg: #F7F4EE;
  --ink: #2B2924;
  --ink-soft: #3D392F;
  --muted: #5C564B;
  --muted-2: #6B6559;
  --muted-3: #8A8171;
  --muted-4: #9A9182;
  --border: #E7E1D4;
  --border-2: #E2DCCF;
  --border-3: #DDD5C4;
  --border-4: #E2DBCB;
  --card: #FFFDF8;
  --panel: #EFE9DC;
  --green: #3E5B40;
  --green-dark: #2F4732;
  --green-pale: #E3EADF;
  --green-pale-2: #D8E3D2;
  --gold: #C9A227;
  --brown: #7C5C3E;
  --footer-bg: #262B25;
  --footer-text: #C9C4B7;
  --footer-head: #F3EFE6;
  --footer-border: #3B423A;
  --footer-link-hover: #F3EFE6;
  --calc-bg: #2F3A2F;
  --calc-panel: #39463A;
  --calc-border: #4C5B4C;
  --calc-muted: #C8C3B6;
  --calc-accent: #B6C7AE;
  --serif: 'Marcellus', serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); text-decoration: underline; }
::selection { background: var(--green-pale-2); }
button { font-family: inherit; }
h1, h2, h3 { font-family: var(--serif); letter-spacing: -0.01em; margin: 0; }
input, textarea { font-family: var(--sans); }

@keyframes dgFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dgSlide { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.dg-fade { animation: dgFade 0.6s ease both; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brown); margin-bottom: 14px;
}

/* ---------- buttons & chips ---------- */
.btn {
  cursor: pointer; display: inline-block; border: none; font-weight: 600; font-size: 15px;
  padding: 15px 28px; border-radius: 11px; text-align: center; font-family: var(--sans);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--green); color: #F3EFE6; }
.btn-primary:hover { background: var(--green-dark); color: #F3EFE6; }
.btn-outline { border: 1.5px solid #C6BCA8; color: var(--ink); background: var(--card); }
.btn-outline:hover { border-color: var(--brown); color: var(--ink); }
.btn-gold { background: var(--gold); color: #2B2924; }
.btn-gold:hover { color: #2B2924; opacity: 0.92; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 14px; border-radius: 9px; font-size: 13.5px; }

.chip {
  cursor: pointer; padding: 10px 18px; border-radius: 24px; font-size: 14px; font-weight: 600;
  background: var(--card); color: var(--muted); border: 1px solid var(--border-3); display: inline-block;
}
.chip.active { background: var(--green); color: #F3EFE6; border-color: var(--green); }
.chip-sm { padding: 9px 15px; border-radius: 22px; font-size: 13.5px; }
.chip-dark { cursor: pointer; padding: 10px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; background: transparent; color: var(--calc-muted); border: 1px solid #5A6959; display: inline-block; }
.chip-dark.active { background: var(--gold); color: #2B2924; border-color: var(--gold); }
.chip-dark-sm { padding: 9px 14px; border-radius: 9px; font-size: 13.5px; }

/* ---------- promo + header ---------- */
.promo-bar {
  background: var(--green); color: #EDE6D8; font-size: 13.5px; letter-spacing: 0.02em;
  text-align: center; padding: 9px 20px; font-weight: 500;
}
.promo-bar a { color: #EDE6D8; text-decoration: underline; }

header.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(247,244,238,0.94);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-2);
}
.header-row { max-width: 1240px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; cursor: pointer; flex-shrink: 0; color: inherit; }
.brand:hover { text-decoration: none; color: inherit; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(145deg,#7C5C3E,#4A6B4C);
  display: flex; align-items: center; justify-content: center; color: #F7F4EE; font-family: var(--serif); font-size: 19px;
  flex-shrink: 0;
}
.brand-name { line-height: 1.15; }
.brand-name .t { font-family: var(--serif); font-size: 20px; letter-spacing: 0.01em; color: var(--ink); }
.brand-name .s { font-family: var(--mono); font-size: 10px; color: var(--muted-3); letter-spacing: 0.08em; }

nav.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-left: auto; }
nav.main-nav a {
  cursor: pointer; font-size: 14.5px; font-weight: 500; color: var(--muted-2);
  padding: 8px 12px; border-radius: 8px; white-space: nowrap;
}
nav.main-nav a:hover { text-decoration: none; background: var(--border); color: var(--ink); }
nav.main-nav a.active { font-weight: 700; color: var(--ink); background: var(--border); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cart-btn {
  cursor: pointer; position: relative; display: flex; align-items: center; gap: 8px; background: var(--green);
  color: #F3EFE6; padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; border: none;
}
.cart-btn:hover { background: var(--green-dark); }
.cart-count {
  background: var(--gold); color: #2B2924; border-radius: 20px; min-width: 22px; text-align: center;
  font-size: 12px; font-weight: 700; padding: 1px 6px;
}
.nav-toggle {
  display: none; cursor: pointer; background: none; border: 1px solid var(--border-3); border-radius: 8px;
  width: 40px; height: 40px; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 18px; height: 2px; background: var(--ink); position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- hero ---------- */
.hero {
  padding: 56px 24px 24px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.hero h1 { font-size: 58px; line-height: 1.05; margin: 0 0 22px; text-wrap: balance; }
.hero p.lead { font-size: 18px; color: var(--muted); margin: 0 0 30px; max-width: 520px; text-wrap: pretty; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats .n { font-family: var(--serif); font-size: 32px; }
.hero-stats .l { font-size: 13px; color: var(--muted-3); }
.hero-media {
  height: 520px; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px -30px rgba(60,50,35,0.5);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* generic photo tile (used when no caption chip needed) */
.photo-tile { border-radius: 20px; overflow: hidden; background: var(--border-3); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- sections ---------- */
section { padding: 40px 0; }
section.tight { padding: 24px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head h2 { font-size: 40px; }
.section-link { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--green); border-bottom: 1.5px solid #B9C7B4; padding-bottom: 3px; }
.section-link:hover { text-decoration: none; border-color: var(--green); }

.section-alt { background: var(--panel); }

/* ---------- grids ---------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); gap: 14px; }
.grid-18 { gap: 18px; }
.grid-20 { gap: 20px; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 26px 22px; }
.card-lg { border-radius: 18px; padding: 32px; }
.icon-dot { width: 34px; height: 34px; border-radius: 9px; background: var(--green-pale); margin-bottom: 16px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--muted); margin: 0; text-wrap: pretty; }

.service-card {
  cursor: pointer; background: var(--card); border: 1px solid var(--border-4); border-radius: 16px;
  padding: 28px; display: flex; flex-direction: column; gap: 12px; color: inherit;
}
.service-card:hover { text-decoration: none; border-color: var(--brown); transform: translateY(-3px); color: inherit; }
.service-card .n { font-family: var(--mono); font-size: 11px; color: var(--muted-4); }
.service-card h3 { font-size: 22px; }
.service-card .price { margin-top: auto; padding-top: 14px; font-size: 13.5px; color: var(--brown); font-weight: 600; }

.product-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.product-card .thumb { height: 170px; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card .cat { font-size: 11px; font-family: var(--mono); color: var(--muted-4); }
.product-card h3 { font-size: 18px; line-height: 1.25; font-weight: normal; }
.product-card .desc { font-size: 13.5px; color: var(--muted-2); text-wrap: pretty; }
.product-card .foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-card .price { font-weight: 700; font-size: 17px; }
.product-card .unit { font-size: 11.5px; color: var(--muted-3); }
.product-card.big .thumb { height: 180px; }

.project-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.project-card .thumb { height: 230px; overflow: hidden; }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-card .body { padding: 24px; }
.project-card h3 { font-size: 22px; margin-bottom: 6px; }
.project-card .meta { font-family: var(--mono); font-size: 11.5px; color: var(--brown); margin-bottom: 14px; }
.project-card p { font-size: 14.5px; color: var(--muted); margin: 0; text-wrap: pretty; }

.review-card { background: var(--card); border: 1px solid var(--border-4); border-radius: 16px; padding: 28px; }
.review-card .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 14px; }
.review-card .text { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 18px; text-wrap: pretty; }
.review-card .who { display: flex; align-items: center; gap: 12px; }
.review-card .avatar { width: 40px; height: 40px; border-radius: 50%; background: #DDD5C4; }
.review-card .name { font-weight: 700; font-size: 14.5px; }
.review-card .city { font-size: 12.5px; color: var(--muted-3); }

.team-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.team-card .thumb { height: 190px; overflow: hidden; }
.team-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 20%; }
.team-card .body { padding: 20px; }
.team-card h3 { font-size: 19px; }
.team-card .role { font-size: 13px; color: var(--brown); margin-bottom: 8px; }
.team-card p { font-size: 13.5px; color: var(--muted-2); margin: 0; }

/* ---------- FAQ ---------- */
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 10px; }
.faq-q {
  cursor: pointer; padding: 18px 22px; display: flex; justify-content: space-between; gap: 16px;
  font-weight: 600; font-size: 16px; background: none; border: none; width: 100%; text-align: left; color: var(--ink);
}
.faq-q .sign { color: var(--brown); }
.faq-a { padding: 0 22px 20px; font-size: 15px; color: var(--muted); text-wrap: pretty; display: none; }
.faq-item.open .faq-a { display: block; }

/* ---------- blog ---------- */
.post-item { background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; margin-bottom: 14px; }
.post-head {
  cursor: pointer; padding: 28px 32px; display: grid; grid-template-columns: 0.24fr 1fr auto; gap: 26px; align-items: center;
  background: none; border: none; width: 100%; text-align: left; color: inherit;
}
.post-head .meta { font-family: var(--mono); font-size: 11.5px; color: var(--brown); }
.post-head h3 { font-size: 24px; margin-bottom: 6px; }
.post-head .lead { font-size: 14.5px; color: var(--muted-2); }
.post-head .cta { font-size: 14px; color: var(--brown); font-weight: 600; white-space: nowrap; }
.post-body { display: none; padding: 0 32px 30px; grid-template-columns: 0.24fr 1fr; gap: 26px; }
.post-item.open .post-body { display: grid; }
.post-body .txt { font-size: 15.5px; color: #4A453C; max-width: 760px; text-wrap: pretty; white-space: pre-line; }

/* ---------- calculator ---------- */
.calc-section { background: var(--calc-bg); color: #EFE9DC; padding: 74px 0; }
.calc-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.calc-section .eyebrow { color: var(--calc-accent); }
.calc-section h2 { font-size: 38px; margin: 0 0 16px; line-height: 1.15; color: #EFE9DC; }
.calc-section p { color: var(--calc-muted); font-size: 16px; margin: 0; text-wrap: pretty; }
.calc-panel { background: var(--calc-panel); border: 1px solid var(--calc-border); border-radius: 20px; padding: 30px; }
.calc-row-label { display: flex; justify-content: space-between; font-size: 14px; color: var(--calc-muted); margin-bottom: 10px; }
.calc-row-label b { color: #EFE9DC; font-weight: 700; }
input[type=range] { width: 100%; accent-color: var(--gold); margin-bottom: 24px; }
.calc-group-label { font-size: 14px; color: var(--calc-muted); margin-bottom: 10px; }
.calc-chip-row { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.calc-chip-row.extras { margin-bottom: 26px; }
.calc-result-wrap { border-top: 1px solid var(--calc-border); padding-top: 22px; }
.calc-result-label { font-size: 13px; color: var(--calc-accent); margin-bottom: 6px; }
.calc-result { font-family: var(--serif); font-size: 34px; color: #F3EFE6; }
.calc-cta { cursor: pointer; margin-top: 20px; text-align: center; background: var(--gold); color: #2B2924; padding: 14px; border-radius: 11px; font-weight: 700; font-size: 15px; border: none; width: 100%; }
.calc-cta:hover { text-decoration: none; opacity: 0.92; }

/* ---------- steps ---------- */
.step { border-top: 2px solid var(--brown); padding-top: 18px; }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--brown); margin-bottom: 10px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); margin: 0; text-wrap: pretty; }

/* ---------- generic page header ---------- */
.page-head { padding: 56px 0 0; }
.page-head h1 { font-size: 50px; margin: 0 0 18px; line-height: 1.08; }
.page-head p.lead { font-size: 17.5px; color: var(--muted); max-width: 720px; margin: 0 0 40px; text-wrap: pretty; }

/* ---------- services page ---------- */
.service-row { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 32px; display: grid; grid-template-columns: 0.4fr 1fr 0.32fr; gap: 32px; align-items: start; margin-bottom: 16px; }
.service-row .n { font-family: var(--mono); font-size: 11px; color: var(--muted-4); margin-bottom: 10px; }
.service-row h3 { font-size: 27px; line-height: 1.15; }
.service-row .long { font-size: 15.5px; color: var(--muted); margin-bottom: 18px; text-wrap: pretty; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: #EDE7DA; border-radius: 20px; padding: 6px 13px; font-size: 13px; color: var(--muted); }
.service-price { text-align: right; }
.service-price .lbl { font-size: 13px; color: var(--muted-3); }
.service-price .val { font-family: var(--serif); font-size: 26px; margin-bottom: 14px; }

.guarantee-box { margin-top: 56px; background: var(--panel); border-radius: 20px; padding: 44px; }
.guarantee-box h2 { font-size: 32px; margin: 0 0 8px; }
.guarantee-box > p { color: var(--muted); max-width: 760px; margin: 0 0 26px; text-wrap: pretty; }
.guarantee-item { background: var(--card); border-radius: 14px; padding: 24px; }
.guarantee-item .val { font-family: var(--serif); font-size: 20px; margin-bottom: 8px; }
.guarantee-item p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- shop ---------- */
.cat-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.shop-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; flex-wrap: wrap; }
.shop-toolbar input { flex: 1; min-width: 260px; }
.result-count { font-size: 14px; color: var(--muted-3); }
.shop-info-item { background: var(--panel); border-radius: 16px; padding: 26px; }
.shop-info-item h3 { font-size: 20px; margin-bottom: 8px; }
.shop-info-item p { font-size: 14.5px; color: var(--muted); margin: 0; text-wrap: pretty; }

/* ---------- forms ---------- */
.field-label { font-size: 13px; color: var(--muted-3); margin-bottom: 6px; }
.text-input, textarea.text-input {
  width: 100%; padding: 13px 16px; border-radius: 10px; border: 1px solid var(--border-3);
  background: var(--bg); font-family: var(--sans); font-size: 15px; color: var(--ink);
}
textarea.text-input { resize: vertical; }
.form-note { font-size: 12.5px; color: var(--muted-3); text-wrap: pretty; }
.form-error { font-size: 13.5px; color: #A23B3B; display: none; }
.form-error.show { display: block; }
.form-success { background: var(--green-pale); border-radius: 14px; padding: 28px; text-align: center; }
.form-success h2 { font-size: 24px; margin-bottom: 8px; }
.form-success p { color: var(--muted); font-size: 15px; margin: 0; }
.honeypot { position: absolute; left: -9999px; top: -9999px; }

.contact-box { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 34px; }
.contact-side { background: var(--panel); border-radius: 18px; padding: 28px; }
.contact-side h3 { font-size: 21px; margin-bottom: 16px; }
.contact-row { padding: 9px 0; border-bottom: 1px solid var(--border-4); }
.contact-row .k { font-size: 12.5px; color: var(--muted-3); }
.contact-row .v { font-size: 15px; }
.map-embed { height: 230px; border-radius: 18px; overflow: hidden; border: 0; width: 100%; }

/* ---------- footer ---------- */
footer.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 64px 0 30px; margin-top: 20px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid var(--footer-border); }
.footer-brand { font-family: var(--serif); font-size: 24px; color: var(--footer-head); margin-bottom: 12px; }
.footer-desc { font-size: 14.5px; max-width: 320px; text-wrap: pretty; }
.footer-legal-line { margin-top: 20px; font-size: 14px; color: #9FA79B; }
.footer-col-title { font-size: 12px; font-family: var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: #7E8779; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 14.5px; color: var(--footer-text); }
.footer-links a:hover { color: var(--footer-link-hover); text-decoration: none; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: #7E8779; }
.footer-bottom a { color: #7E8779; }

/* ---------- cart drawer ---------- */
.cart-overlay { position: fixed; inset: 0; z-index: 60; display: none; justify-content: flex-end; }
.cart-overlay.open { display: flex; }
.cart-scrim { position: absolute; inset: 0; background: rgba(38,43,37,0.5); border: none; cursor: pointer; padding: 0; }
.cart-drawer {
  position: relative; width: 440px; max-width: 92vw; background: var(--bg); height: 100%; display: flex;
  flex-direction: column; animation: dgSlide 0.25s ease both; box-shadow: -20px 0 60px -20px rgba(0,0,0,0.4);
}
.cart-head { padding: 24px 26px; border-bottom: 1px solid var(--border-2); display: flex; justify-content: space-between; align-items: center; }
.cart-head h2 { font-size: 24px; }
.cart-close { cursor: pointer; font-size: 22px; color: var(--muted-3); line-height: 1; background: none; border: none; }
.cart-body { flex: 1; overflow-y: auto; padding: 20px 26px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted-3); }
.cart-empty h3 { font-size: 22px; color: var(--ink); margin-bottom: 8px; }
.cart-empty p { font-size: 14.5px; margin-bottom: 22px; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-line .thumb { height: 64px; width: 64px; border-radius: 10px; overflow: hidden; background: var(--border-3); }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .name { font-size: 15px; font-weight: 600; line-height: 1.25; }
.cart-line .meta { font-size: 12.5px; color: var(--muted-3); margin-bottom: 8px; }
.cart-line .qty-row { display: flex; align-items: center; gap: 8px; }
.qty-btn { cursor: pointer; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--border-3); display: flex; align-items: center; justify-content: center; background: var(--card); font-weight: 600; }
.qty-val { min-width: 22px; text-align: center; font-weight: 600; font-size: 14px; }
.cart-remove { cursor: pointer; font-size: 12.5px; color: var(--muted-4); margin-left: 6px; text-decoration: underline; background: none; border: none; }
.cart-line .total { font-weight: 700; font-size: 15px; white-space: nowrap; }
.cart-foot { border-top: 1px solid var(--border-2); padding: 22px 26px; background: var(--card); }
.cart-sum-row { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--muted); margin-bottom: 6px; }
.cart-sum-total { display: flex; justify-content: space-between; font-size: 20px; font-weight: 700; margin: 12px 0 4px; }
.cart-hint { font-size: 12px; color: var(--muted-3); margin-bottom: 16px; }

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 20px; bottom: 20px; z-index: 70; width: 420px; max-width: calc(100vw - 40px);
  background: var(--card); border: 1px solid var(--border-3); border-radius: 18px; padding: 24px;
  box-shadow: 0 24px 60px -24px rgba(43,41,36,0.5); display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner h2 { font-size: 20px; margin-bottom: 8px; }
.cookie-banner p { font-size: 14px; color: var(--muted); margin-bottom: 18px; text-wrap: pretty; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cookie-link { cursor: pointer; padding: 12px 8px; font-size: 14px; color: var(--brown); text-decoration: underline; background: none; border: none; }

/* ---------- legal pages ---------- */
.legal-layout { padding: 56px 0 80px; display: grid; grid-template-columns: 0.28fr 1fr; gap: 44px; align-items: start; }
.legal-nav { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 4px; }
.legal-nav-title { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-4); margin-bottom: 10px; }
.legal-nav a { cursor: pointer; padding: 10px 14px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: var(--muted-2); }
.legal-nav a:hover { background: var(--border); text-decoration: none; color: var(--ink); }
.legal-nav a.active { font-weight: 700; background: var(--border); color: var(--ink); }
.legal-content { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 46px; max-width: 860px; }
.legal-content h1 { font-size: 38px; margin: 0 0 10px; line-height: 1.12; }
.legal-updated { font-family: var(--mono); font-size: 11.5px; color: var(--muted-4); margin-bottom: 32px; }
.legal-block { margin-bottom: 28px; }
.legal-block h2 { font-size: 21px; margin-bottom: 10px; }
.legal-block p { font-size: 15.5px; color: #4A453C; white-space: pre-line; text-wrap: pretty; margin: 0; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 48px; align-items: start; }
.about-grid p { font-size: 16.5px; color: var(--muted); text-wrap: pretty; }
.about-photo { height: 300px; border-radius: 18px; overflow: hidden; margin-bottom: 18px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.company-box { background: var(--panel); border-radius: 16px; padding: 26px; }
.company-box h3 { font-size: 20px; margin-bottom: 14px; }
.company-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--border-4); font-size: 14px; }
.company-row .k { color: var(--muted-3); }
.company-row .v { text-align: right; }

/* ---------- 404 ---------- */
.err-page { padding: 120px 24px; text-align: center; }
.err-page .code { font-family: var(--serif); font-size: 96px; color: var(--brown); }
.err-page h1 { font-size: 32px; margin: 10px 0 16px; }
.err-page p { color: var(--muted); margin-bottom: 26px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .hero h1 { font-size: 42px; }
  .hero-media { height: 320px; order: -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .calc-grid { grid-template-columns: 1fr; gap: 30px; }
  .service-row { grid-template-columns: 1fr; gap: 16px; }
  .service-price { text-align: left; }
  .about-grid { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .legal-content { padding: 32px 26px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-box, .contact-side-wrap { width: 100%; }
  section.contact-layout .grid-2 { grid-template-columns: 1fr; }
  .post-head { grid-template-columns: 1fr; gap: 8px; }
  .post-head .meta { order: 1; }
  .post-body { grid-template-columns: 1fr; }
  .post-body .empty-col { display: none; }
}

@media (max-width: 720px) {
  nav.main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg);
    border-bottom: 1px solid var(--border-2); flex-direction: column; align-items: stretch; padding: 10px 16px 16px; gap: 2px;
    box-shadow: 0 20px 30px -20px rgba(0,0,0,0.2);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 12px 14px; }
  .nav-toggle { display: flex; }
  header.site-header { position: sticky; }
  .header-row { position: relative; flex-wrap: wrap; }
  .brand-name .t { font-size: 18px; }
  .hero h1 { font-size: 32px; }
  .hero-stats { gap: 22px; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .section-head h2, .page-head h1 { font-size: 30px; }
  .calc-section h2 { font-size: 28px; }
  .footer-top { grid-template-columns: 1fr; }
  .cart-drawer { width: 100vw; max-width: 100vw; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px; }
  .legal-content { padding: 26px 18px; }
  .page-head h1 { font-size: 28px; }
}
