/* MaxClean — design tokens and components adapted from the diivanipuhastaja.ee design system */
:root {
  color-scheme: light;
  --font-body: "Inter", Arial, sans-serif;
  --font-accent: "Outfit", "Inter", Arial, sans-serif;
  --ink: #333333;
  --muted: #6b6b6b;
  --line: #ececec;
  --paper: #ffffff;
  --canvas: #f5f5f5;
  --accent: #f40011;
  --accent-dark: #c4000d;
  --accent-soft: #fdeced;
  --dark: #181818;
  --ok: #16a34a;
  --wa: #1fa855;
  --wrap: min(1160px, calc(100% - 48px));
}
* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: var(--font-body); line-height: 1.65; overflow-x: hidden; text-rendering: optimizeLegibility; }
img { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 3000; padding: 10px 16px; border-radius: 8px; color: #fff; background: var(--dark); }
.skip-link:focus { top: 12px; }
h1, h2, h3 { font-weight: 700; line-height: 1.22; color: #222; }
h1 { margin: 0 0 16px; font-size: 38px; }
h2 { margin: 0 0 14px; font-size: 28px; }
h3 { margin: 0 0 10px; font-size: 21px; }
p { margin: 0 0 16px; }
.wrap { width: var(--wrap); margin-inline: auto; }

/* notice bar + header */
.notice-bar { padding: 10px 24px; color: #fff; background: var(--dark); font-size: 14px; }
.notice-bar .wrap { text-align: left; }
.notice-bar a { color: #fff; font-weight: 600; white-space: nowrap; }
.site-header { position: relative; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #222; text-decoration: none; flex: 0 0 auto; }
.brand img { display: block; width: 260px; max-width: none; height: auto; margin-block: -14px; object-fit: contain; }
.brand span { font-family: var(--font-accent); font-size: 28px; font-weight: 700; letter-spacing: -0.01em; }
.primary-nav { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: clamp(12px, 1.6vw, 26px); }
.primary-nav a { position: relative; padding-block: 8px; color: var(--ink); font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.primary-nav a:hover, .primary-nav a.is-active { color: var(--accent); }
.primary-nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.lang-switch { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.lang-switch:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--paper); text-decoration: none; cursor: pointer; padding: 0; }
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }
.header-phone { display: none; }
.menu-toggle { flex-direction: column; gap: 5px; display: inline-flex; }
.menu-toggle span { display: block; width: 19px; height: 2px; background: currentColor; border-radius: 1px; transition: transform .16s, opacity .16s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

/* buttons */
.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; padding: 10px 24px; border: 1px solid var(--accent); border-radius: 999px; color: #fff; background: var(--accent); font: inherit; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.btn:hover { color: #fff; background: var(--accent-dark); border-color: var(--accent-dark); }
.btn svg { flex: 0 0 auto; width: 22px; height: 22px; }
.btn-wa { background: var(--wa); border-color: var(--wa); }
.btn-wa:hover { background: #178a46; border-color: #178a46; }
.btn-ghost { color: var(--ink); background: #fff; border-color: var(--ink); }
.btn-ghost:hover { color: var(--accent); background: #fff; border-color: var(--accent); }
.btn-sm { min-height: 42px; padding: 6px 18px; font-size: 15px; }

/* drawer */
.menu-scrim { position: fixed; z-index: 1998; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgb(0 0 0 / 55%); opacity: 0; pointer-events: none; transition: opacity .28s; }
.menu-scrim.is-open { opacity: 1; pointer-events: auto; }
.menu-drawer { position: fixed; z-index: 1999; inset: 0 0 0 auto; width: min(420px, 92vw); overflow-y: auto; padding: 20px 24px 28px; background: var(--paper); box-shadow: -12px 0 32px rgb(0 0 0 / 12%); transform: translateX(105%); visibility: hidden; transition: transform .32s cubic-bezier(.22,1,.36,1), visibility .32s; }
.menu-drawer.is-open { transform: none; visibility: visible; }
body.menu-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.drawer-head strong { font-size: 22px; }
.drawer-contact { margin: 18px 0; padding: 18px; border-radius: 14px; background: var(--accent-soft); }
.drawer-contact p { margin: 0 0 6px; font-weight: 700; }
.drawer-contact .phone { display: block; margin-bottom: 12px; font-family: var(--font-accent); font-size: 20px; font-weight: 700; text-decoration: none; }
.drawer-group { border-bottom: 1px solid var(--line); }
.drawer-group summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px; font-size: 15px; font-weight: 800; cursor: pointer; list-style: none; }
.drawer-group summary::-webkit-details-marker { display: none; }
.drawer-group summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.drawer-group[open] summary::after { content: "–"; }
.drawer-links { display: flex; flex-direction: column; padding-bottom: 8px; }
.drawer-links a { padding: 10px 2px 10px 14px; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.drawer-links a:hover, .drawer-links a.is-active { color: var(--accent); }

/* breadcrumb */
.breadcrumb { padding-block: 18px 6px; color: var(--muted); font-size: 14px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #bbb; }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--ink); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 48px; padding-block: 34px 56px; }
.hero--text { grid-template-columns: minmax(0, 1fr); padding-block: 22px 28px; }
.hero--text .hero-copy { max-width: 820px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { font-size: 40px; line-height: 1.14; }
.hero .lead { max-width: 560px; font-size: 19px; color: #444; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-meta { margin-top: 16px; color: var(--muted); font-size: 14px; }
.hero-meta a { font-weight: 700; text-decoration: none; }
.ba { display: grid; gap: 12px; margin: 0; }
.ba figure { position: relative; margin: 0; overflow: hidden; border-radius: 22px; background: #ddd; line-height: 0; }
.ba img { display: block; width: 100%; height: 230px; object-fit: cover; }
.ba .tag { position: absolute; top: 0; left: 0; padding: 10px 18px; border-radius: 0 0 14px 0; color: #fff; background: var(--dark); font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; line-height: 1.3; }
.ba .tag.after { background: var(--ok); }
.ba-note { margin: 8px 4px 0; color: var(--muted); font-size: 13px; }
.ba.is-tall { grid-template-columns: 1fr 1fr; }
.ba.is-tall img { height: 340px; }

/* proof strip */
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 56px; }
.proof div { padding: 18px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-align: center; }
.proof strong { display: block; color: var(--accent); font-family: var(--font-accent); font-size: 26px; line-height: 1.2; }
.proof span { color: var(--muted); font-size: 14px; }

/* sections */
.section { margin-bottom: 64px; }
.section-head { max-width: 680px; margin: 0 auto 28px; text-align: center; }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.card h3 { margin: 0 0 4px; font-size: 22px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card .price { margin: 0 0 8px; color: var(--accent); font-family: var(--font-accent); font-size: 21px; font-weight: 700; }
.card p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.card .more::after { content: " →"; }
/* Before/after photographs inside homepage service cards. */
.service-card { overflow: hidden; }
.service-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; margin: -26px -26px 22px; }
.service-pair figure { position: relative; margin: 0; background: #eee; }
.service-pair img { display: block; width: 100%; height: 180px; object-fit: cover; }
.service-pair .tag { position: absolute; top: 0; left: 0; padding: 7px 10px; border-radius: 0 0 10px 0; color: #fff; background: var(--dark); font-size: 11px; font-weight: 700; text-transform: uppercase; line-height: 1.3; }
.service-pair .tag.after { background: var(--ok); }
.cards.is-small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.results-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.result-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.result-card .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #fff; }
.result-card .pair figure { position: relative; margin: 0; line-height: 0; }
.result-card .pair img { width: 100%; height: 230px; object-fit: cover; display: block; }
.result-card .pair .tag { position: absolute; top: 0; left: 0; padding: 7px 12px; border-radius: 0 0 10px 0; color: #fff; background: var(--dark); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; line-height: 1.3; }
.result-card .pair .tag.after { background: var(--ok); }
.result-card dl { margin: 0; padding: 16px 20px 20px; font-size: 15px; }
.result-card dt { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.result-card dd { margin: 0 0 8px; }

/* reviews */
.reviews { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.review { margin: 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.review blockquote { margin: 0 0 14px; font-size: 16px; line-height: 1.6; }
.review figcaption { font-size: 14px; color: var(--muted); }
.review figcaption strong { display: block; color: var(--ink); font-family: var(--font-accent); font-size: 16px; }
.review-note { margin: 16px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.reviews-all { text-align: center; margin-top: 18px; }

/* areas */
.area-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.area-badges a { display: inline-flex; padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: #fff; font-weight: 600; text-decoration: none; }
.area-badges a:hover { color: var(--accent); border-color: var(--accent); }

/* page layout (content + sidebar) */
.page-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; gap: 40px; padding-bottom: 64px; }
.content { min-width: 0; }
.content > section { margin-bottom: 38px; }
.content h2 { margin: 0 0 12px; font-size: 27px; }
.content h3 { margin: 22px 0 8px; font-size: 20px; }
.content ul, .content ol { margin: 0 0 18px; padding-left: 22px; }
.content li { margin-bottom: 7px; }
.content ol.steps { list-style: none; padding: 0; counter-reset: step; }
.content ol.steps li { position: relative; margin-bottom: 10px; padding: 14px 16px 14px 62px; border: 1px solid var(--line); border-radius: 14px; background: #fff; counter-increment: step; }
.content ol.steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: var(--accent); font-weight: 700; }
.content blockquote { margin: 0 0 18px; padding: 14px 18px; border-left: 3px solid var(--accent); background: #fff; }
.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table-wrap th, .table-wrap td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.table-wrap th { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: #fafafa; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td.right, .table-wrap th.right { text-align: right; white-space: nowrap; font-weight: 700; }
.cta-block { margin: 6px 0 30px; padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.cta-block .btn { width: 100%; max-width: 520px; }
.cta-block .cta-sub { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.faq-list details { margin-bottom: 10px; padding: 18px 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: 0 0 auto; color: var(--accent); font-size: 24px; line-height: 1; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 10px 0 0; }
.sidebar { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 18px; }
.panel { padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.panel h2 { margin: 0 0 8px; font-size: 22px; }
.panel p { margin: 0 0 14px; font-size: 15px; }
.panel .btn { width: 100%; }
.panel .meta { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.panel ul { margin: 0; padding: 0; list-style: none; }
.panel li a { display: block; padding: 6px 0; color: var(--ink); text-decoration: none; }
.panel li a:hover { color: var(--accent); }
.panel .phone { display: block; margin-top: 12px; font-family: var(--font-accent); font-size: 19px; font-weight: 700; text-decoration: none; }

/* quote form */
.quote-form { padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.quote-form h2 { margin-top: 0; }
.quote-form .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quote-form label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #d6d6d6; border-radius: 12px; color: var(--ink); background: #fff; font: inherit; }
.quote-form textarea { min-height: 90px; resize: vertical; }
.quote-form .full { grid-column: 1 / -1; }
.quote-form .btn { margin-top: 16px; width: 100%; max-width: 360px; }
.quote-form .hint { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

/* final cta band */
.cta-band { margin-bottom: 64px; padding: 38px 32px; border-radius: 26px; color: #fff; background: var(--dark); text-align: center; }
.cta-band h2 { margin: 0 0 8px; color: #fff; font-size: 30px; }
.cta-band p { margin: 0 0 20px; color: rgb(255 255 255 / 78%); }
.cta-band .btn-ghost { color: #fff; background: transparent; border-color: rgb(255 255 255 / 60%); }
.cta-band .btn-ghost:hover { color: #fff; border-color: #fff; }
.cta-band .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* footer */
.site-footer { color: #f5f6f3; background: var(--dark); }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; padding-block: 44px 28px; }
.site-footer h2 { margin: 0 0 12px; color: #fff; font-size: 16px; font-weight: 700; }
.site-footer p { margin: 0 0 8px; color: rgb(255 255 255 / 72%); font-size: 14px; }
.site-footer a { color: #f5f6f3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; font-size: 14px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { display: block; width: 260px; height: auto; object-fit: contain; }
.footer-brand span { color: #fff; font-family: var(--font-accent); font-size: 26px; font-weight: 700; }
.copyright { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / 20%); font-size: 13px; color: rgb(255 255 255 / 65%); }
.legal-line { margin: 0 0 6px; color: rgb(255 255 255 / 65%); font-size: 13px; }

/* sticky mobile bar + cookie */
.sticky-cta { display: none; }
.cookie-banner { position: fixed; z-index: 2400; left: 16px; right: 16px; bottom: 16px; display: none; max-width: 640px; margin-inline: auto; padding: 16px 18px; border-radius: 16px; color: #fff; background: var(--dark); box-shadow: 0 10px 30px rgb(0 0 0 / 25%); font-size: 14px; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 12px; }
.cookie-banner a { color: #fff; }
.cookie-banner .row { display: flex; gap: 10px; }
.cookie-banner button { min-height: 40px; padding: 6px 18px; border: 1px solid #fff; border-radius: 999px; color: #fff; background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.cookie-banner button.primary { color: var(--dark); background: #fff; }

/* chooser + 404 */
.chooser { display: grid; min-height: 100vh; place-items: center; padding: 24px; text-align: center; }
.chooser-box { width: min(560px, 100%); padding: 40px 28px; border: 1px solid var(--line); border-radius: 26px; background: #fff; }
.chooser-box img { width: 260px; height: auto; object-fit: contain; }
.chooser-box h1 { margin: 14px 0 8px; }
.chooser-actions { display: grid; gap: 12px; margin-top: 24px; }
.chooser-actions a { font-size: 18px; }

@media (max-width: 1000px) {
  .cards, .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .primary-nav { display: none; }
  .header-phone { display: inline-flex; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-block: 18px 40px; }
  .hero h1 { font-size: 32px; }
  .page-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sidebar { position: static; }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --wrap: min(100% - 32px, 1160px); }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .notice-bar { padding: 8px 16px; font-size: 13px; line-height: 1.4; }
  .brand span { font-size: 24px; }
  .brand img { width: 210px; height: auto; margin-block: -10px; }
  .header-actions .lang-switch { padding: 0 11px; }
  .header-actions .btn-wa, .header-actions .header-phone { display: none; }
  .cards, .results-grid, .reviews, .quote-form .grid, .ba.is-tall { grid-template-columns: minmax(0, 1fr); }
  .ba img { height: 190px; }
  .ba.is-tall img { height: 260px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .section { margin-bottom: 48px; }
  .hero-actions .btn { width: 100%; }
  .cta-band { padding: 30px 20px; }
  .cta-band .actions { flex-direction: column; align-items: stretch; }
  .cta-band .actions .btn { width: 100%; }
  body { padding-bottom: 76px; }
  .sticky-cta { position: fixed; z-index: 1500; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / 96%); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(0 0 0 / 8%); }
  .sticky-cta .btn { flex: 1 1 auto; min-height: 52px; }
  .sticky-cta .btn-call { flex: 0 0 auto; min-width: 56px; padding-inline: 14px; }
  .cookie-banner { bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu-drawer, .menu-scrim, .menu-toggle span { transition: none; }
}
