/* ==========================================================================
   MyMaid.ee — global stylesheet
   Clean, light, mint/teal accent cleaning-service design system.
   ========================================================================== */

:root {
  --bg: #f7faf9;
  --bg-alt: #eef7f5;
  --card: #ffffff;
  --text: #17262a;
  --text-muted: #56696c;
  --text-soft: #7c8c8e;
  --primary: #12b3a0;
  --primary-dark: #0b8c7d;
  --primary-darker: #086b60;
  --primary-light: #e3f9f4;
  --primary-light-2: #d0f3ec;
  --border: #e1e9e6;
  --border-soft: #eef2f0;
  --danger: #d64545;
  --success: #1f9d6f;
  --shadow-sm: 0 2px 10px -4px rgba(15, 45, 40, 0.08);
  --shadow-md: 0 12px 30px -12px rgba(15, 45, 40, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(15, 45, 40, 0.25);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --container: 1180px;
  --header-h: 78px;
  --mobile-cta-h: 66px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}

body.has-mobile-cta { padding-bottom: var(--mobile-cta-h); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

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

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--primary-dark);
  color: #fff; padding: 10px 16px; z-index: 2000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid var(--primary-dark);
  outline-offset: 2px;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: #fff; color: var(--primary-darker); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #0d1a1c; }
.btn-whatsapp { background: #22a55b; color: #fff; }
.btn-whatsapp:hover { background: #1c8a4b; }
.btn-call { background: var(--primary-darker); color: #fff; }
.btn-call:hover { background: #064f47; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 17px 30px; font-size: 16px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none !important; }

.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(247, 250, 249, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
  height: var(--header-h);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 44px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
.nav-link:hover, .nav-link:focus-visible { background: var(--primary-light); color: var(--primary-darker); }
.nav-link.is-active { color: var(--primary-darker); background: var(--primary-light-2); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; align-items: center; gap: 2px; border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang-switch a {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .02em;
}
.lang-switch a.is-active { background: var(--primary); color: #fff; }
.lang-switch a:hover:not(.is-active) { background: var(--bg-alt); color: var(--text); }

.header-phone { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; color: var(--primary-darker); white-space: nowrap; }
.header-phone svg { flex-shrink: 0; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
}
.burger span, .burger::before, .burger::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: #fff;
  z-index: 890;
  padding: 20px;
  overflow-y: auto;
}
.mobile-menu.is-open { display: block; }
.mobile-menu .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
.mobile-menu .nav-link { display: block; padding: 16px; font-size: 18px; border-bottom: 1px solid var(--border-soft); border-radius: 0; }
.mobile-menu .lang-switch { margin: 20px 0; justify-content: center; }
.mobile-menu .header-phone { justify-content: center; margin-bottom: 16px; font-size: 20px; }

/* ---------- Mobile bottom CTA bar ---------- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 950;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px -12px rgba(15,45,40,.2);
  height: var(--mobile-cta-h);
}
.mobile-cta-bar-inner { display: flex; height: 100%; }
.mobile-cta-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  border-right: 1px solid var(--border-soft);
}
.mobile-cta-bar a:last-child { border-right: none; }
.mobile-cta-bar a.mcta-primary { background: var(--primary); color: #fff; }
.mobile-cta-bar a.mcta-call { background: var(--primary-darker); color: #fff; }
.mobile-cta-bar svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-light); color: var(--primary-darker);
  padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 13px;
  margin-bottom: 18px;
}
.hero h1 { font-size: 42px; letter-spacing: -0.01em; max-width: 620px; }
.hero-subtitle { font-size: 18px; color: var(--text-muted); max-width: 560px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.hero-cta .btn { flex: 1 1 240px; max-width: 260px; text-align: center; }
.hero-trust-mini { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--text-muted); }
.hero-trust-mini li { display: flex; align-items: center; gap: 6px; }
.hero-visual {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  border: 1px solid var(--border-soft);
}
.hero-image-card {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
}
.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head.align-left { margin: 0 0 36px; text-align: left; }
.eyebrow {
  display: inline-block; color: var(--primary-darker); font-weight: 700;
  font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px;
}
.section h2 { font-size: 32px; }
.section-subtitle { color: var(--text-muted); font-size: 17px; }

/* ---------- Trust grid ---------- */
.trust-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
}
.trust-item {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 22px 18px; text-align: center; box-shadow: var(--shadow-sm);
}
.trust-item .icon { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--primary); }
.trust-item p { margin: 0; font-weight: 600; font-size: 14.5px; }

/* ---------- Cards / services ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service-card .card-icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center; color: var(--primary-darker);
  margin-bottom: 16px;
}
.service-card h3 { font-size: 19px; display: flex; align-items: center; gap: 6px; }
.service-card p { color: var(--text-muted); font-size: 14.5px; flex-grow: 1; }
.price-from { font-weight: 700; color: var(--primary-darker); font-size: 16px; margin-bottom: 14px; }
.card-cta { margin-top: auto; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--card); border-radius: var(--radius); padding: 26px; border: 1px solid var(--border-soft); box-shadow: var(--shadow-sm); }
.step-number {
  width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 14px;
}
.step h3 { font-size: 17px; }
.step p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

/* ---------- Calculator ---------- */
.calculator {
  background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-soft); padding: 36px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px;
}
.calc-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.calc-form .form-group { display: flex; flex-direction: column; gap: 6px; }
.calc-form .form-group.full { grid-column: 1 / -1; }
label {
  font-weight: 600; font-size: 14px; color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
select, input[type="text"], input[type="tel"], input[type="email"], input[type="number"],
input[type="date"], input[type="time"], textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  font-size: 15px; font-family: inherit; background: #fff; color: var(--text);
}
select:focus, input:focus, textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light);
}
textarea { resize: vertical; min-height: 90px; }
fieldset { border: none; padding: 0; margin: 0 0 16px; }
legend { font-weight: 700; font-size: 15px; margin-bottom: 10px; padding: 0; }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkbox-item { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14.5px; }
.checkbox-item input { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }
.radio-item { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14.5px; }
.radio-item input { accent-color: var(--primary); width: 18px; height: 18px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 14px; }

.calc-result {
  background: var(--bg-alt); border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; align-self: start; position: sticky; top: calc(var(--header-h) + 20px);
}
.calc-result-label { font-weight: 700; font-size: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
.calc-price { font-size: 40px; font-weight: 800; color: var(--primary-darker); margin: 8px 0 4px; }
.calc-note { font-size: 13.5px; color: var(--text-muted); margin-bottom: 20px; }
.calc-actions { display: flex; flex-direction: column; gap: 10px; }
.calc-breakdown { margin: 16px 0; font-size: 13.5px; color: var(--text-muted); border-top: 1px dashed var(--border); padding-top: 14px; }
.calc-breakdown li { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.calc-explanation { font-size: 13px; color: var(--text-muted); border-top: 1px dashed var(--border); padding-top: 14px; margin-top: 4px; }
.calc-hint { font-size: 13px; color: var(--text-muted); margin: -8px 0 12px; }
.calc-extra-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); flex-wrap: wrap; }
.calc-extra-item:last-child { border-bottom: none; }
.calc-extra-item .checkbox-item { flex: 1 1 auto; min-width: 180px; }
.calc-extra-name { font-weight: 500; }
.calc-extra-price { color: var(--text-muted); font-size: 13px; margin-left: 6px; }
.calc-stepper { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.calc-stepper button {
  width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--border); background: #fff;
  font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer; color: var(--primary-darker);
}
.calc-stepper button:hover { border-color: var(--primary); }
.calc-stepper input[type="number"] { width: 52px; text-align: center; padding: 6px 4px; }
.calc-assessment-message {
  background: #fff4e5; border: 1.5px solid #f5c26b; border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 13.5px; color: #7a4a00; margin-top: 10px;
}
.calc-form button[type="submit"]:disabled,
.calc-actions button:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Accessible info tooltip ("i" button) ---------- */
.info-tip { position: relative; display: inline-flex; margin-left: 4px; }
.info-tip-btn {
  width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--primary);
  background: #fff; color: var(--primary-darker); font-size: 12px; font-weight: 700;
  font-style: italic; line-height: 1; cursor: pointer; padding: 0; flex-shrink: 0;
}
.info-tip-btn:hover, .info-tip-btn[aria-expanded="true"] { background: var(--primary); color: #fff; }
.info-tip-panel {
  position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; width: 280px; max-width: 80vw;
  background: var(--text); color: #fff; font-size: 13px; line-height: 1.5; font-weight: 400;
  border-radius: var(--radius-sm); padding: 12px 34px 12px 14px; box-shadow: var(--shadow-lg);
}
.info-tip-panel[hidden] { display: none; }
.info-tip-text { display: block; word-break: normal; overflow-wrap: anywhere; }
.info-tip-close {
  position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.18); color: #fff; font-size: 15px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.info-tip-close:hover { background: rgba(255,255,255,.32); }
.info-tip-backdrop { display: none; }
/* Below 768px the popover becomes a fixed bottom-sheet anchored above the
   mobile CTA bar (--mobile-cta-h), not anchored to the small "i" icon —
   anchoring to the icon is what let it overflow the viewport edge before. */
@media (max-width: 768px) {
  .info-tip-backdrop.is-open {
    display: block; position: fixed; inset: 0; background: rgba(10, 26, 24, .4); z-index: 1000;
  }
  .info-tip-panel {
    position: fixed; left: 12px; right: 12px; top: auto;
    bottom: calc(var(--mobile-cta-h) + env(safe-area-inset-bottom) + 12px);
    width: auto; max-width: none; max-height: calc(100dvh - var(--mobile-cta-h) - 96px);
    overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; touch-action: pan-y;
    margin: 0; transform: none; z-index: 1001; border-radius: 16px;
    padding: 16px 42px 16px 16px;
  }
  .info-tip-close { top: 10px; right: 10px; width: 28px; height: 28px; font-size: 18px; }
}

/* ---------- Quick-pick extras + condition rows ---------- */
.calc-condition-row { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.calc-qty-field-label { font-size: 12.5px; color: var(--text-muted); flex-basis: 100%; }
.calc-quick-extras { margin-bottom: 6px; }

/* ---------- "Add extra services" accordion ---------- */
.calc-accordion-toggle {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-alt); border: 1.5px dashed var(--border); border-radius: var(--radius-sm);
  padding: 12px 16px; font-weight: 700; font-size: 14.5px; color: var(--primary-darker); cursor: pointer; margin-top: 4px;
}
.calc-accordion-toggle:hover { border-color: var(--primary); }
.calc-accordion-toggle::after { content: "+"; font-size: 18px; font-weight: 700; }
.calc-accordion-toggle[aria-expanded="true"]::after { content: "−"; }
.calc-accordion-panel { margin-top: 14px; display: flex; flex-direction: column; gap: 22px; }
.calc-accordion-panel[hidden] { display: none; }
.calc-accordion-category h4 { font-size: 14.5px; margin: 0 0 8px; }
.calc-extra-summary { margin-bottom: 10px; }
.calc-extra-summary-count { font-size: 13.5px; font-weight: 700; color: var(--primary-darker); margin: 0 0 6px; }
.calc-extra-summary-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.calc-chip {
  background: var(--primary-light); color: var(--primary-darker); font-size: 12.5px; font-weight: 600;
  border-radius: 999px; padding: 4px 10px;
}

/* ---------- Price list: compact rows with short description + info icon ---------- */
.price-item-name-wrap { display: flex; flex-direction: column; gap: 2px; }
.price-item-short-desc { font-size: 12.5px; color: var(--text-muted); font-weight: 400; }
.price-plain-list { margin: 0 0 10px; padding-left: 20px; color: var(--text-muted); font-size: 14.5px; }
.price-plain-list li { margin-bottom: 4px; }

/* ---------- Video block ---------- */
.video-block {
  background: linear-gradient(135deg, var(--primary-darker), var(--primary));
  border-radius: var(--radius-lg); padding: 44px; color: #fff; display: grid;
  grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.video-block h2 { color: #fff; font-size: 28px; }
.video-block p { color: rgba(255,255,255,.9); }
.video-steps { display: flex; flex-direction: column; gap: 10px; }
.video-steps li { display: flex; gap: 10px; background: rgba(255,255,255,.12); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; }
.video-steps .num { font-weight: 800; flex-shrink: 0; }
.video-block .btn-group { margin-top: 22px; }
.video-block .btn-outline { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); color: #fff; }
.video-block .btn-outline:hover { background: rgba(255,255,255,.22); }

/* ---------- Price tables ---------- */
.price-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border-soft); box-shadow: var(--shadow-sm); background: #fff; }
table.price-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.price-table th, .price-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border-soft); font-size: 15px; }
.price-table th { background: var(--bg-alt); font-weight: 700; }
.price-table tr:last-child td { border-bottom: none; }
.price-table td.price-cell, .price-table th.price-cell { text-align: right; font-weight: 700; color: var(--primary-darker); white-space: nowrap; }
.price-block { margin-bottom: 44px; }
.price-block-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.price-block-head h2 { font-size: 24px; margin: 0; }
.price-factors { background: var(--bg-alt); border-radius: var(--radius); padding: 20px 24px; margin-top: 16px; font-size: 14.5px; color: var(--text-muted); }
.price-factors strong { color: var(--text); }
.price-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.disclaimer-box {
  background: #fff; border: 1.5px dashed var(--border); border-radius: var(--radius);
  padding: 20px 24px; font-size: 14.5px; color: var(--text-muted); margin: 30px 0;
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; padding: 18px 22px;
  font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--text);
}
.faq-question:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.faq-question .faq-icon { flex-shrink: 0; transition: transform .2s ease; color: var(--primary); }
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; color: var(--text-muted); font-size: 15px; }
.faq-item.is-open .faq-answer { padding: 0 22px 20px; max-height: 600px; }

/* ---------- Tooltip ---------- */
.tooltip { position: relative; display: inline-flex; align-items: center; }
.tooltip-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; background: var(--primary-light);
  color: var(--primary-darker); font-size: 12px; font-weight: 700; border: none; margin-left: 4px; cursor: help;
  flex-shrink: 0;
}
.tooltip-icon:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.tooltip-text {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--text); color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 13px;
  font-weight: 400; width: 240px; line-height: 1.5; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transition: opacity .15s ease; z-index: 500; pointer-events: none;
}
.tooltip-text::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--text);
}
.tooltip:hover .tooltip-text, .tooltip:focus-within .tooltip-text, .tooltip.is-open .tooltip-text {
  opacity: 1; visibility: visible;
}

/* ---------- Forms (contact / lead) ---------- */
.contact-form-wrap {
  background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-soft); padding: 36px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .form-group.full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.required-mark { color: var(--danger); }
.contact-form-wrap textarea { min-height: 110px; }
/* ---------- Contact form: "additional details" collapsible card ---------- */
.contact-details-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px;
  background: var(--bg-alt); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 18px 20px; box-sizing: border-box; max-width: 100%;
}
.contact-details-panel .form-group.full { grid-column: 1 / -1; }
.contact-details-panel .calc-hint { margin: -4px 0 0; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-muted); margin: 16px 0; }
.consent-row input { margin-top: 3px; accent-color: var(--primary); width: 18px; height: 18px; flex-shrink: 0; }
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14.5px; margin-top: 16px; display: none; }
.form-msg.is-visible { display: block; }
.form-msg.success { background: #e5f8ee; color: var(--success); border: 1px solid #bce9d1; }
.form-msg.error { background: #fdecec; color: var(--danger); border: 1px solid #f5c6c6; }
.form-success-actions {
  margin-top: 20px;
  display: none;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.form-success-actions.is-visible { display: block; }
.form-success-heading {
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--text);
}
.form-success-text {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0 0 18px;
}
.form-success-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form-success-buttons .btn { width: 100%; }
.form-success-copy {
  margin: 14px 0 0;
  text-align: center;
}
@media (max-width: 760px) {
  .form-success-buttons { grid-template-columns: 1fr; }
}
.loader {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff;
  border-radius: 50%; display: none; animation: spin .7s linear infinite;
}
.is-loading .loader { display: inline-block; }
.is-loading .btn-label { opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }

.contact-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.contact-method {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 24px; text-align: center; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.contact-method .icon { width: 44px; height: 44px; color: var(--primary-darker); }

/* ---------- Footer ---------- */
.site-footer { background: #10201f; color: #cfe0dc; padding: 56px 0 24px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-logo img { height: 40px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #cfe0dc; font-size: 14.5px; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-desc { font-size: 14px; color: #9db3ae; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: 13px; color: #8ea69f; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: #8ea69f; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--text); color: #fff; border-radius: var(--radius-lg); padding: 52px;
  text-align: center; margin: 0 20px;
}
.final-cta h2 { color: #fff; font-size: 30px; }
.final-cta p { color: #b8c8c5; font-size: 17px; }
.final-cta .btn-group { justify-content: center; margin-top: 22px; }
.final-cta .btn-outline { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.final-cta .btn-outline:hover { background: rgba(255,255,255,.1); }

/* ---------- Misc page bits ---------- */
.badge { display: inline-block; background: var(--primary-light); color: var(--primary-darker); font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.breadcrumbs { font-size: 13.5px; color: var(--text-soft); margin-bottom: 18px; }
.breadcrumbs a { color: var(--text-soft); }
.breadcrumbs a:hover { color: var(--primary-darker); }
.page-hero { padding: 44px 0 40px; background: var(--bg-alt); }
.page-hero h1 { font-size: 34px; max-width: 780px; }
.page-hero p { color: var(--text-muted); font-size: 17px; max-width: 700px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.principle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.principle-card { background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.principle-card h3 { font-size: 17px; }
.principle-card p { color: var(--text-muted); font-size: 14.5px; margin: 0; }
.service-detail { background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 32px; margin-bottom: 28px; box-shadow: var(--shadow-sm); }
.service-detail-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.service-detail-head h2 { margin: 0; font-size: 24px; }
.service-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 18px 0; }
.service-detail-grid h4 { font-size: 14.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-soft); margin-bottom: 10px; }
.service-detail-grid ul { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.service-detail-grid li { padding-left: 20px; position: relative; }
.service-detail-grid li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.service-detail-grid ul.not-included li::before { content: "–"; color: var(--text-soft); }
.anchor-jump { margin-bottom: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.anchor-jump a { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; }
.anchor-jump a:hover { background: var(--primary-light); border-color: var(--primary); }

/* ---------- Service landing pages (/xx/services/<slug>/) — shared by all
   30 pages, nothing page-specific lives here. ---------- */
.service-included ul, .service-excluded ul {
  display: flex; flex-direction: column; gap: 10px; font-size: 15px; margin: 18px 0 0;
}
.service-included li, .service-excluded li { padding-left: 24px; position: relative; }
.service-included li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.service-excluded li::before { content: "–"; position: absolute; left: 0; color: var(--text-soft); font-weight: 700; }
.service-price .price-table-wrap { margin: 18px 0 10px; }
.service-steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: svc-step;
  margin: 20px 0 0; list-style: none; padding: 0;
}
.service-steps li {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 20px 16px; box-shadow: var(--shadow-sm); font-size: 13.5px; color: var(--text-muted);
}
.service-steps li::before {
  counter-increment: svc-step; content: counter(svc-step);
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff;
  font-weight: 700; font-size: 14px; margin-bottom: 12px;
}
.related-services .cards-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .service-steps { grid-template-columns: repeat(2, 1fr); }
  .related-services .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .service-steps { grid-template-columns: 1fr; }
  .related-services .cards-grid { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-text { order: 1; }
  .hero-visual { order: 2; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .calculator { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .video-block { grid-template-columns: 1fr; padding: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .service-detail-grid { grid-template-columns: 1fr; }
  .contact-methods { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .header-phone { display: none; }
  .header-actions .lang-switch { display: none; }
  .burger { display: flex; }
  .mobile-cta-bar { display: block; }
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: 30px; }
  .hero-subtitle { font-size: 16px; }
  .hero-cta { flex-direction: column; align-items: center; gap: 10px; width: 100%; }
  .hero-cta .btn {
    flex: none;
    width: 100%;
    max-width: 300px;
    height: auto;
    min-height: 46px;
    aspect-ratio: auto;
    padding: 12px 18px;
    font-size: 14px;
    line-height: 1.2;
    border-radius: 999px;
    text-align: center;
  }
  .section { padding: 48px 0; }
  .section h2 { font-size: 26px; }
  .cards-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .calc-form .form-row { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-details-panel { grid-template-columns: 1fr; padding: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .principle-grid { grid-template-columns: 1fr; }
  .contact-methods { grid-template-columns: 1fr; }
  .final-cta { padding: 36px 22px; margin: 0 12px; }
  .final-cta h2 { font-size: 24px; }
  .calculator { padding: 22px; }
  .contact-form-wrap { padding: 22px; }
  .page-hero h1 { font-size: 26px; }
  .video-block h2 { font-size: 22px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- 404 page ---------- */
.notfound-header .header-inner { justify-content: center; }
.notfound-section { padding: 72px 0 64px; }
.notfound-code {
  display: block;
  text-align: center;
  color: var(--primary);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .08em;
  margin-bottom: 32px;
}
.notfound-blocks { display: grid; gap: 22px; max-width: 720px; margin: 0 auto; }
.notfound-block {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px 36px;
  text-align: center;
}
.notfound-block h1, .notfound-block h2 { font-size: 23px; margin-bottom: 10px; }
.notfound-block p { color: var(--text-muted); max-width: 480px; margin: 0 auto 20px; }
.notfound-block .btn-group { justify-content: center; }
.notfound-footer { text-align: center; padding: 28px 0 40px; color: var(--text-soft); font-size: 13px; }

@media (max-width: 600px) {
  .notfound-block { padding: 26px 20px; }
  .notfound-block .btn-group { flex-direction: column; }
  .notfound-block .btn-group .btn { width: 100%; }
}
