/* ============================================================
   RXoptika — avaleht
   Nordic-minimal optician homepage. Calm, airy, trustworthy.
   Palette: white #FFF, cool tint #F4F8FC, ink #1A1A1A, blue #2F6FE0
   ============================================================ */

:root {
  --bg: #ffffff;
  --tint: #f4f8fc;
  --tint-deep: #eaf1fb;
  --ink: #1a1a1a;
  --ink-soft: #41464d;
  --ink-muted: #6b7280;
  --line: #e7ecf3;
  --line-soft: #eef2f7;
  --accent: #2f6fe0;
  --accent-ink: color-mix(in srgb, var(--accent) 80%, #000);   /* hover / pressed */
  --accent-wash: color-mix(in srgb, var(--accent) 11%, #fff);  /* very light accent fill */
  --accent-contrast: #ffffff;

  --font: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --pad: 40px;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --shadow-sm: 0 1px 2px rgba(20,30,55,.04), 0 2px 8px rgba(20,30,55,.04);
  --shadow-md: 0 4px 14px rgba(20,40,80,.06), 0 18px 40px rgba(20,40,80,.07);
  --shadow-lg: 0 10px 30px rgba(20,40,80,.08), 0 30px 70px rgba(20,40,80,.10);

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 18px;
  line-height: 1.6;
}

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

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

::selection { background: var(--accent-wash); }

/* ---- layout helpers ---- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.section { padding: 116px 0; }
.section--tint { background: var(--tint); }
.section--tight { padding: 84px 0; }

.eyebrow {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

.section-head { max-width: 680px; }
.section-head.center { margin: 0 auto; text-align: center; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.08; }
h2.title { font-size: clamp(32px, 4vw, 46px); letter-spacing: -.025em; }
h3 { font-size: 22px; letter-spacing: -.01em; line-height: 1.25; }

p { margin: 0; }
.lead { font-size: 20px; line-height: 1.55; color: var(--ink-soft); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --h: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease),
              box-shadow .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 2px 8px rgba(47,111,224,.28), 0 10px 24px rgba(47,111,224,.22);
}
.btn-primary:hover {
  background: var(--accent-ink);
  box-shadow: 0 4px 14px rgba(47,111,224,.34), 0 16px 34px rgba(47,111,224,.26);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #cfd9e6; background: #fbfdff; }

.btn-soft {
  background: var(--accent-wash);
  color: var(--accent-ink);
}
.btn-soft:hover { background: var(--tint-deep); }

.btn-sm { --h: 46px; padding: 0 20px; font-size: 15.5px; }
.btn-lg { --h: 62px; padding: 0 34px; font-size: 18.5px; }

.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.header[data-scrolled="true"] {
  border-bottom-color: var(--line-soft);
  box-shadow: 0 1px 0 rgba(20,40,80,.02), 0 8px 24px rgba(20,40,80,.04);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 78px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff;
  flex: 0 0 auto;
}
.brand__mark svg { width: 19px; height: 19px; }
.brand__name { font-size: 21px; letter-spacing: -.02em; }
.brand__name b { font-weight: 600; }
.brand__name span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 9px 14px;
  border-radius: 9px;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: var(--tint); }

.header__right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15.5px; font-weight: 600; color: var(--ink);
}
.header__phone svg { width: 16px; height: 16px; color: var(--accent); }
.header__phone span.lbl { color: var(--ink-muted); font-weight: 500; }

/* hamburger toggle — hidden on desktop, shown on mobile via media query */
.navtoggle {
  display: none;
  align-items: center; justify-content: center;
  width: 46px; height: 46px;
  margin-left: 2px;
  border: 0; background: transparent; color: var(--ink);
  border-radius: 12px; cursor: pointer;
  transition: background .15s;
}
.navtoggle:hover { background: var(--tint); }
.navtoggle:active { transform: translateY(1px); }
.navtoggle svg { width: 25px; height: 25px; }

/* ---- mobile menu drawer (rendered as a sibling of <header>) ---- */
.mobilemenu { display: none; position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.mobilemenu[data-open="true"] { pointer-events: auto; }
.mobilemenu__scrim {
  position: absolute; inset: 0;
  background: rgba(16,26,46,.42);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .26s var(--ease);
}
.mobilemenu[data-open="true"] .mobilemenu__scrim { opacity: 1; }
.mobilemenu__panel {
  position: absolute; top: 0; right: 0;
  height: 100%; width: min(380px, 86vw);
  background: #fff;
  box-shadow: var(--shadow-lg);
  padding: 16px 22px calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s var(--ease);
  overflow-y: auto;
}
.mobilemenu[data-open="true"] .mobilemenu__panel { transform: none; }
.mobilemenu__top { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.mobilemenu__top .brand__name { font-size: 21px; letter-spacing: -.02em; }
.mobilemenu__top .brand__name span { color: var(--accent); }
.mobilemenu__close {
  width: 42px; height: 42px; border: 0; background: var(--tint);
  border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  color: var(--ink-soft); transition: background .15s;
}
.mobilemenu__close:hover { background: var(--tint-deep); }
.mobilemenu__close svg { width: 18px; height: 18px; }
.mobilemenu__links { display: flex; flex-direction: column; margin-top: 10px; }
.mobilemenu__links a {
  font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: var(--ink);
  padding: 17px 6px; border-bottom: 1px solid var(--line-soft);
  transition: color .15s;
}
.mobilemenu__links a:hover { color: var(--accent); }
.mobilemenu__foot { margin-top: auto; display: flex; flex-direction: column; gap: 16px; padding-top: 26px; }
.mobilemenu__phone {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 600; color: var(--ink);
}
.mobilemenu__phone svg { width: 18px; height: 18px; color: var(--accent); }
.mobilemenu__foot .btn { width: 100%; }

/* ============================================================
   Hero (shared + variants)
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero__trust {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14.5px; color: var(--ink-muted); font-weight: 500;
  margin-top: 30px;
}
.hero__trust .dot { width: 5px; height: 5px; border-radius: 50%; background: #c6d2e2; }
.hero__cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

.hero h1 {
  font-size: clamp(38px, 5.4vw, 66px);
  letter-spacing: -.03em;
  line-height: 1.04;
}
.hero .sub { font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-soft); line-height: 1.5; margin-top: 22px; max-width: 30ch; }

/* Variant A — split */
.hero--a { padding: 92px 0 104px; }
.hero--a .grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 72px;
  align-items: center;
}
.hero--a .sub { max-width: 34ch; }

/* Variant B — centered editorial */
.hero--b { padding: 88px 0 0; text-align: center; }
.hero--b .inner { max-width: 880px; margin: 0 auto; }
.hero--b h1 { font-size: clamp(40px, 6vw, 76px); }
.hero--b .sub { margin: 24px auto 0; max-width: 56ch; }
.hero--b .hero__cta { justify-content: center; }
.hero--b .hero__trust { margin-top: 26px; }
.hero--b .stage {
  margin-top: 64px;
  background: var(--tint);
  padding-top: 70px;
}

/* Variant C — overlap card */
.hero--c { padding: 64px 0 104px; }
.hero--c .stage { position: relative; }
.hero--c .card {
  position: absolute;
  left: 0; bottom: 48px;
  width: min(540px, 60%);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--r-xl);
  padding: 44px 44px 40px;
  box-shadow: var(--shadow-lg);
}
.hero--c .card h1 { font-size: clamp(30px, 3.4vw, 46px); }
.hero--c .chip {
  position: absolute;
  right: 30px; top: 30px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
}
.hero--c .chip b { display: block; font-size: 16px; letter-spacing: -.01em; }
.hero--c .chip .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--accent-wash); color: var(--accent-ink); display: grid; place-items: center; }
.hero--c .chip .ic svg { width: 20px; height: 20px; }

/* hero media */
.hero-media { width: 100%; }
.hero-media--a { aspect-ratio: 4/4.4; }
.hero-media--b { width: 100%; aspect-ratio: 16/8; }
.hero-media--c { width: 100%; aspect-ratio: 16/8.4; }

.slot-img { width: 100%; height: 100%; object-fit: cover; display: block; background: linear-gradient(140deg, #eef4fc 0%, #e1ebf8 100%); }
.hero-media .slot-img { border-radius: 24px; }
.person .photo .slot-img { border-radius: 50%; }

/* small floating stat for hero A */
.hero--a .media-wrap { position: relative; }
.hero--a .floatcard {
  position: absolute;
  left: -28px; bottom: 34px;
  background: #fff;
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 14px;
}
.hero--a .floatcard .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-wash); color: var(--accent-ink); display: grid; place-items: center; }
.hero--a .floatcard .ic svg { width: 22px; height: 22px; }
.hero--a .floatcard b { display: block; font-size: 17px; letter-spacing: -.01em; }
.hero--a .floatcard span { font-size: 13.5px; color: var(--ink-muted); }

/* ============================================================
   Services
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 56px;
}
.scard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.scard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.scard .ic {
  width: 58px; height: 58px; border-radius: 16px;
  background: var(--accent-wash); color: var(--accent-ink);
  display: grid; place-items: center; margin-bottom: 26px;
}
.scard .ic svg { width: 28px; height: 28px; }
.scard h3 { margin-bottom: 12px; }
.scard p { color: var(--ink-soft); font-size: 16.5px; line-height: 1.55; }
.scard .links { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; gap: 20px; }
.scard .links a.more { color: var(--ink-muted); font-weight: 500; font-size: 15px; }
.scard .links a.more:hover { color: var(--ink); }
.linkbtn {
  background: none; border: 0; font-family: inherit; cursor: pointer;
  color: var(--accent); font-weight: 600; font-size: 15.5px;
  display: inline-flex; align-items: center; gap: 7px; padding: 0;
}
.linkbtn .arrow { transition: transform .2s var(--ease); }
.linkbtn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   Trust / Meist
   ============================================================ */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.meist p + p { margin-top: 18px; }
.meist .quote { font-size: 21px; line-height: 1.5; color: var(--ink); letter-spacing: -.01em; }
.meist .body { color: var(--ink-soft); font-size: 17px; }

.person {
  display: flex; align-items: center; gap: 18px;
  margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line);
}
.person .photo { width: 76px; height: 76px; flex: 0 0 auto; }
.person .name { font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.person .role { color: var(--ink-muted); font-size: 15px; }

.trust-aside { display: flex; flex-direction: column; gap: 20px; }
.factcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 28px;
}
.factcard.stat { display: flex; align-items: center; gap: 16px; }
.factcard.stat .num { font-size: 46px; font-weight: 600; letter-spacing: -.03em; color: var(--accent); line-height: 1; }
.factcard.stat .txt { color: var(--ink-soft); font-size: 16px; }
.factrow { display: flex; align-items: flex-start; gap: 14px; }
.factrow .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--tint); color: var(--accent-ink); display: grid; place-items: center; flex: 0 0 auto; }
.factrow .ic svg { width: 20px; height: 20px; }
.factrow h4 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.factrow .meta { color: var(--ink-muted); font-size: 15px; line-height: 1.5; }
.factrow .meta a.maplink { color: var(--accent); font-weight: 500; }
.hours { display: grid; grid-template-columns: auto auto; gap: 6px 22px; margin-top: 4px; font-size: 15px; }
.hours .d { color: var(--ink-soft); }
.hours .t { color: var(--ink); font-weight: 500; text-align: right; }
.badge-row { display: flex; align-items: center; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent-wash); color: var(--accent-ink);
  border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 600;
}
.badge svg { width: 16px; height: 16px; }

/* trust points as a card with icon rows (matches the factcards above) */
.trust-badges { display: flex; flex-direction: column; gap: 16px; }
.tbadge { display: flex; align-items: center; gap: 13px; font-size: 15.5px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.tbadge .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-wash); color: var(--accent-ink); display: grid; place-items: center; flex: 0 0 auto; }
.tbadge .ic svg { width: 20px; height: 20px; }

/* map placeholder */
.mapbox { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); height: 200px; background: var(--tint-deep); }
.mapbox .pin { position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%); }
.mapbox .pin .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(47,111,224,.18); }
.mapbox .grid-lines { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 38px 38px; opacity: .6; }
.mapbox .roads { position: absolute; inset: 0; }
.mapbox .addr { position: absolute; left: 14px; bottom: 12px; background: #fff; border-radius: 10px; padding: 8px 12px; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-sm); }

/* ============================================================
   Steps — kuidas broneerimine käib
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
  counter-reset: step;
  position: relative;
}
/* one continuous line behind the circles, centred on them; the white
   number circles mask it so it reads as clean segments between them */
.steps::before {
  content: "";
  position: absolute;
  top: 26px;                       /* = the circles' vertical centre */
  left: 16.667%; right: 16.667%;   /* first circle centre → last */
  height: 1.5px;
  background: var(--line);
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; }
.step .n {
  width: 52px; height: 52px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--accent);
  color: var(--accent-ink); font-weight: 600; font-size: 20px;
  display: grid; place-items: center; margin: 0 auto 22px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 16.5px; }
/* connector is now drawn on .steps::before (single masked line) */

/* ============================================================
   Brands (supporting)
   ============================================================ */
.brands { text-align: center; }
.brands .label { font-size: 14.5px; color: var(--ink-muted); font-weight: 500; }
.brands .row {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 14px 40px;
}
.brands .row span {
  font-size: 22px; font-weight: 600; letter-spacing: .02em;
  color: #9aa6b6;
  font-variant: small-caps;
  line-height: 1.3;
  transition: color .2s;
}
.brands .row span:hover { color: var(--ink-soft); }
.brands .note { margin-top: 26px; font-size: 14.5px; color: var(--ink-muted); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; text-align: left;
  font-size: 18.5px; font-weight: 600; color: var(--ink); letter-spacing: -.01em;
}
.faq-q .pm { flex: 0 0 auto; width: 26px; height: 26px; position: relative; }
.faq-q .pm::before, .faq-q .pm::after {
  content: ""; position: absolute; background: var(--accent); border-radius: 2px;
  left: 50%; top: 50%; transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.faq-q .pm::before { width: 14px; height: 2px; transform: translate(-50%,-50%); }
.faq-q .pm::after { width: 2px; height: 14px; transform: translate(-50%,-50%); }
.faq-item[data-open="true"] .pm::after { transform: translate(-50%,-50%) scaleY(0); opacity: 0; }
.faq-a { overflow: hidden; height: 0; transition: height .3s var(--ease); }
.faq-a .inner { padding: 0 4px 26px; color: var(--ink-soft); font-size: 17px; line-height: 1.6; max-width: 60ch; }

/* ============================================================
   Final CTA
   ============================================================ */
.finalcta { text-align: center; }
.finalcta .box {
  background: var(--accent);
  border-radius: var(--r-xl);
  padding: 80px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.finalcta .box::before, .finalcta .box::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.finalcta .box::before { width: 420px; height: 420px; right: -120px; top: -160px; }
.finalcta .box::after { width: 320px; height: 320px; left: -120px; bottom: -180px; }
.finalcta h2 { color: #fff; font-size: clamp(30px, 3.8vw, 48px); position: relative; }
.finalcta p { color: rgba(255,255,255,.86); font-size: 19px; margin-top: 18px; position: relative; }
.finalcta .actions { margin-top: 38px; display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; position: relative; }
.finalcta .btn-white { background: #fff; color: var(--accent-ink); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.finalcta .btn-white:hover { background: #f4f8ff; transform: translateY(-1px); }
.finalcta .phone {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 600; font-size: 19px;
}
.finalcta .phone svg { width: 19px; height: 19px; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--ink); color: #c8cdd6; padding: 76px 0 40px; }
.footer a { color: #c8cdd6; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand__name { color: #fff; }
.footer .brand__mark { background: var(--accent); }
.footer .blurb { margin-top: 20px; font-size: 15.5px; line-height: 1.6; max-width: 30ch; color: #98a0ac; }
.footer h5 { color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 15.5px; }
.footer .contact-line { font-size: 15.5px; line-height: 1.65; color: #c8cdd6; }
.footer .contact-line a { font-weight: 500; }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.07); display: grid; place-items: center; transition: background .2s; }
.footer__social a:hover { background: rgba(255,255,255,.14); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 20px; font-size: 13.5px; color: #818a97; flex-wrap: wrap; }
.cookie__reopen { background: none; border: 0; padding: 0; font-family: inherit; font-size: 13.5px; color: inherit; cursor: pointer; transition: color .15s; }
.cookie__reopen:hover { color: #fff; }

/* ============================================================
   Cookie consent
   ============================================================ */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  display: flex; justify-content: center;
  padding: 18px;
  pointer-events: none;
}
.cookie__card {
  pointer-events: auto;
  width: 100%; max-width: 560px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px 24px;
  animation: cookie-in .35s var(--ease);
}
@keyframes cookie-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cookie__title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 7px; }
.cookie__text { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.cookie__text a { color: var(--accent); font-weight: 500; }
.cookie__cats { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.cookie__cat {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; cursor: pointer;
}
.cookie__cat > span { display: flex; flex-direction: column; gap: 2px; }
.cookie__cat b { font-size: 14.5px; font-weight: 600; }
.cookie__cat > span > span { font-size: 13px; color: var(--ink-muted); }
.cookie__cat input { width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; cursor: pointer; }
.cookie__cat input:disabled { cursor: not-allowed; opacity: .7; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; justify-content: flex-end; }

@media (max-width: 560px) {
  .cookie { padding: 0; }
  .cookie__card {
    max-width: none;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  }
  .cookie__actions { justify-content: stretch; }
  .cookie__actions .btn { flex: 1 1 auto; }
}

/* ============================================================
   Booking modal
   ============================================================ */
.modal-scrim {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(16,26,46,.42);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
  opacity: 0; pointer-events: none;
  transition: opacity .26s var(--ease);
}
.modal-scrim[data-open="true"] { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 620px;
  background: #fff; border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(16px) scale(.98);
  transition: transform .3s var(--ease);
  max-height: calc(100vh - 56px);        /* fallback for older browsers */
  max-height: calc(100dvh - 56px);       /* dynamic vh: keeps footer on-screen on mobile */
  display: flex; flex-direction: column;
}
.modal-scrim[data-open="true"] .modal { transform: none; }
.modal__head { padding: 26px 30px 0; }
.modal__topbar { display: flex; align-items: center; justify-content: space-between; }
.modal__title { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.modal__close { width: 38px; height: 38px; border: 0; background: var(--tint); border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--ink-soft); transition: background .15s; }
.modal__close:hover { background: var(--tint-deep); }
.modal__close svg { width: 18px; height: 18px; }

.steps-bar { display: flex; align-items: center; gap: 10px; margin: 22px 0 4px; }
.steps-bar .s { flex: 1; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.steps-bar .s i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .35s var(--ease); }
.steps-bar .s.done i, .steps-bar .s.active i { width: 100%; }
.steps-bar .s.active i { width: 100%; }

.modal__body { padding: 24px 30px 4px; overflow-y: auto; }
.modal__body h3 { font-size: 24px; letter-spacing: -.02em; }
.modal__body .step-sub { color: var(--ink-muted); font-size: 15.5px; margin-top: 8px; }

.choice { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.choice button {
  display: flex; align-items: center; gap: 16px; width: 100%;
  background: #fff; border: 1.5px solid var(--line); border-radius: 16px;
  padding: 18px 20px; cursor: pointer; font-family: inherit; text-align: left;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.choice button:hover { border-color: #cdd9ea; background: #fcfdff; }
.choice button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-wash); box-shadow: 0 0 0 3px rgba(47,111,224,.12); }
.choice .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-wash); color: var(--accent-ink); display: grid; place-items: center; flex: 0 0 auto; }
.choice button[aria-pressed="true"] .ic { background: #fff; }
.choice .ic svg { width: 23px; height: 23px; }
.choice .t b { display: block; font-size: 17px; letter-spacing: -.01em; }
.choice .t span { font-size: 14.5px; color: var(--ink-muted); }
.choice .check { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; flex: 0 0 auto; transition: background .15s, border-color .15s; }
.choice button[aria-pressed="true"] .check { background: var(--accent); border-color: var(--accent); }
.choice .check svg { width: 14px; height: 14px; color: #fff; opacity: 0; transition: opacity .15s; }
.choice button[aria-pressed="true"] .check svg { opacity: 1; }

/* step 1: prescription follow-up (Uued prillid) */
.rx-q { margin-top: 16px; padding: 16px 18px; background: var(--tint); border-radius: 16px; }
.rx-q p { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.rx-opts { display: flex; gap: 10px; flex-wrap: wrap; }
.rx-opts button { flex: 1 1 160px; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-family: inherit; font-size: 14.5px; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.rx-opts button:hover { border-color: #cdd9ea; }
.rx-opts button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-wash); font-weight: 600; box-shadow: 0 0 0 3px rgba(47,111,224,.12); }

/* step 1: non-bookable info note (raamiringlus) */
.modal-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border: 1.5px dashed var(--line); border-radius: 14px; color: var(--ink-muted); font-size: 14px; line-height: 1.5; }
.modal-note .ic { color: var(--accent-ink); flex: 0 0 auto; display: grid; place-items: center; margin-top: 1px; }
.modal-note .ic svg { width: 20px; height: 20px; }

.daypick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 22px; }
.daypick button {
  padding: 12px 6px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-family: inherit;
  text-align: center; transition: border-color .15s, background .15s;
}
.daypick button .dow { font-size: 13px; color: var(--ink-muted); text-transform: capitalize; }
.daypick button .dnum { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-top: 2px; }
.daypick button .mon { font-size: 12px; color: var(--ink-muted); }
.daypick button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-wash); color: var(--accent-ink); }
.daypick button:disabled { opacity: .38; cursor: not-allowed; }

.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.slots button {
  padding: 13px 0; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  cursor: pointer; font-family: inherit; font-size: 16px; font-weight: 500;
  transition: border-color .15s, background .15s;
}
.slots button:hover:not(:disabled) { border-color: #cdd9ea; }
.slots button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.slots button:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

.field { margin-top: 18px; }
.field label { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 13px; padding: 14px 16px;
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,111,224,.12); }
.field input[aria-invalid="true"] { border-color: #e0556b; }
.field .err { color: #d23a55; font-size: 13.5px; margin-top: 7px; }
.summ { background: var(--tint); border-radius: 16px; padding: 18px 20px; margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.summ .r { display: flex; justify-content: space-between; gap: 16px; font-size: 15.5px; }
.summ .r .k { color: var(--ink-muted); }
.summ .r .v { font-weight: 600; text-align: right; }

.modal__foot { padding: 20px 30px 26px; display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line-soft); margin-top: 22px; }
.modal__foot .spacer { flex: 1; }
.btn-back { background: none; border: 0; font-family: inherit; cursor: pointer; color: var(--ink-soft); font-weight: 600; font-size: 16px; padding: 10px 6px; display: inline-flex; align-items: center; gap: 7px; }
.btn-back:hover { color: var(--ink); }

.confirm { text-align: center; padding: 26px 30px 40px; }
.confirm .tick { width: 84px; height: 84px; border-radius: 50%; background: var(--accent-wash); color: var(--accent); display: grid; place-items: center; margin: 8px auto 24px; animation: pop .4s var(--ease); }
.confirm .tick svg { width: 40px; height: 40px; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.confirm h3 { font-size: 26px; }
.confirm p { color: var(--ink-soft); margin-top: 12px; font-size: 16.5px; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  :root { --pad: 26px; }
  .section { padding: 80px 0; }
  /* Every section + footer carries a fixed inline pixel height tuned for desktop.
     On mobile the stacked content is taller than those boxes, so it overflows and
     the next section overlaps it. Let them grow to fit their content. */
  main > section,
  .footer { height: auto !important; }
  /* Hero A — drop the fixed desktop height so stacked content can breathe */
  .hero--a { height: auto !important; padding: 52px 0 64px !important; }
  .hero--a .grid { grid-template-columns: 1fr; gap: 44px; }
  .hero--a .media-wrap { max-width: 540px; }
  .hero--a .floatcard { left: 14px; bottom: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .trust-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav { display: none; }
  .navtoggle { display: inline-flex; }
  .mobilemenu { display: block; }
  .header__right { gap: 12px; }
  .header__phone { display: none; } /* phone lives in the drawer on mobile */
  /* Hero B — tighten vertical rhythm */
  .hero--b { padding-top: 64px; }
  .hero--b .stage { margin-top: 44px; padding-top: 52px; }
  /* Hero C — unlock the fixed-size card so it stops overflowing the screen */
  .hero--c { padding: 48px 0 64px; }
  .hero--c .card {
    position: static;
    width: 100% !important;
    height: auto !important;
    margin-top: -48px;
    padding: 32px 26px !important;
    border-width: 1px !important;
  }
  .hero--c .chip { right: 14px; top: 14px; padding: 11px 14px; }
}
@media (max-width: 560px) {
  .slots { grid-template-columns: repeat(3, 1fr); }
  /* 5 day columns stay on one row — tighten gap/padding so they fit without scroll */
  .daypick { gap: 6px; }
  .daypick button { padding: 10px 2px; }
  .daypick button .dnum { font-size: 19px; }
  .daypick button .mon { font-size: 11px; }
  .footer__top { grid-template-columns: 1fr; }
  /* collapse logo to its icon mark so the booking button always fits */
  .header .brand__name { display: none; }
  /* hero CTAs stack full-width instead of cramming side by side */
  .hero--a { padding: 40px 0 52px !important; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__cta .btn { width: 100%; }
  /* long Estonian words (e.g. "nägemiskontroll") shouldn't overflow narrow screens */
  h1, h2, h3, .meist .quote {
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
  }
  /* trim the heaviest desktop spacing on phones */
  .section { padding: 60px 0; }
  .section--tight { padding: 48px 0; }
  .scard { padding: 28px 24px 26px; }
  .finalcta .box { padding: 52px 26px; }
  .footer { padding: 56px 0 36px; }
  .footer__bottom { margin-top: 40px; }
}

/* ============================================================
   Multi-page additions (2026-06-10): grouped nav, subpage
   template, pricing page. Same tokens, same voice.
   ============================================================ */

/* ---- grouped nav dropdowns ---- */
.nav__group { position: relative; }
.nav__group > button {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 0; cursor: pointer; font-family: inherit;
  font-size: 15.5px; font-weight: 500; color: var(--ink-soft);
  padding: 9px 14px; border-radius: 9px;
  transition: color .15s, background .15s;
}
.nav__group > button:hover, .nav__group:focus-within > button { color: var(--ink); background: var(--tint); }
.nav__caret { width: 14px; height: 14px; opacity: .55; transition: transform .18s var(--ease); }
.nav__group:hover .nav__caret, .nav__group:focus-within .nav__caret { transform: rotate(180deg); }
.nav__drop {
  position: absolute; top: 100%; left: 0; padding-top: 8px;
  display: none; flex-direction: column; z-index: 70; min-width: 232px;
}
.nav__drop::before { content: ""; position: absolute; inset: 8px 0 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-md); z-index: -1; }
.nav__group:hover .nav__drop, .nav__group:focus-within .nav__drop { display: flex; padding: 16px 8px 8px; }
.nav__drop a { padding: 10px 12px; border-radius: 9px; font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.nav__drop a:hover { background: var(--tint); color: var(--ink); }

/* ---- mobile menu groups ---- */
.mobilemenu__section { display: flex; flex-direction: column; }
.mobilemenu__label {
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-muted); margin: 16px 0 4px;
}
.mobilemenu__section a { padding-left: 10px; }

/* ---- subpage header strip ---- */
.pagehead { background: var(--tint); padding: 64px 0 56px; border-bottom: 1px solid var(--line-soft); }
.pagehead__title { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -0.02em; margin: 14px 0 0; }
.pagehead__lead { font-size: 19px; color: var(--ink-soft); max-width: 62ch; margin: 18px 0 0; }
.page-section { padding: 72px 0 96px; }
.page-cta { margin-top: 48px; display: flex; justify-content: center; }

/* ---- pricing page ---- */
.pricegroup { margin-bottom: 56px; }
.pricegroup:last-of-type { margin-bottom: 0; }
.pricegroup h2 { font-size: 24px; margin: 0 0 18px; }
.pricelist { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.pricerow {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 18px 22px; border-bottom: 1px solid var(--line-soft);
}
.pricerow:last-child { border-bottom: 0; }
.pricerow__main { display: flex; flex-direction: column; gap: 4px; }
.pricerow__name { font-weight: 600; font-size: 16.5px; }
.pricerow__desc { font-size: 14.5px; color: var(--ink-muted); line-height: 1.5; }
.pricerow__price { font-weight: 700; font-size: 16.5px; white-space: nowrap; color: var(--accent-ink); font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .pagehead { padding: 44px 0 40px; }
  .page-section { padding: 52px 0 72px; }
  .pricerow { flex-direction: column; gap: 6px; }
  .pricerow__price { font-size: 16px; }
}

/* ---- subpage prose + shared pieces ---- */
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; letter-spacing: -0.01em; margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose p { margin: 0 0 16px; color: var(--ink-soft); }
.prose a { color: var(--accent); font-weight: 600; }
.prose a:hover { color: var(--accent-ink); }

.checklist { list-style: none; padding: 0; margin: 4px 0 28px; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; align-items: flex-start; gap: 11px; color: var(--ink-soft); }
.checklist__ic { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-wash); color: var(--accent); display: grid; place-items: center; margin-top: 2px; }
.checklist__ic svg { width: 13px; height: 13px; }

.ctaband {
  margin-top: 56px; background: var(--tint); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 34px 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.ctaband p { margin: 0; font-size: 18px; font-weight: 600; color: var(--ink); max-width: 44ch; }
.ctaband__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ctaband__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.ctaband__phone svg { width: 17px; height: 17px; color: var(--accent); }
.ctaband__phone:hover { color: var(--ink); }

.coating { margin-bottom: 8px; }
.coating__meta { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 10px; padding: 14px 18px; background: var(--tint); border-radius: var(--r-md); font-size: 15px; color: var(--ink-soft); }
.coating__meta b { color: var(--ink); }

.brandcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 8px 0 24px; }
.brandcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.brandcard h3 { margin: 0 0 8px; font-size: 17px; }
.brandcard p { margin: 0; font-size: 14.5px; color: var(--ink-muted); line-height: 1.55; }

.tintgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.tintcard { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; }
.tintcard img { width: 100%; height: auto; display: block; border-radius: 8px; }
.tintcard figcaption { margin-top: 10px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }

.framegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.framecard { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.framecard img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; background: var(--tint); }
.framecard figcaption { padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.framegrid__note { margin: 26px 0 0; font-size: 15px; color: var(--ink-muted); max-width: 70ch; }

@media (max-width: 640px) {
  .ctaband { padding: 26px 22px; }
  .prose h2 { font-size: 22px; margin-top: 38px; }
}

/* ============================================================
   Admin (standalone layout: sidebar + topbar + cards)
   ============================================================ */
.adm { display: flex; min-height: 100vh; background: #f3f5f9; }

/* sidebar */
.adm-side {
  width: 232px; flex: 0 0 auto; background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.adm-side__brand { padding: 22px 22px 18px; font-size: 18px; border-bottom: 1px solid var(--line-soft); }
.adm-side__brand b { color: var(--accent); }
.adm-side__brand span { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin-top: 2px; }
.adm-side__nav { display: flex; flex-direction: column; gap: 2px; padding: 14px 12px; }
.adm-side__nav button {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: none; border: 0; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 500;
  color: var(--ink-soft); padding: 11px 12px; border-radius: 10px;
}
.adm-side__nav button svg { width: 19px; height: 19px; opacity: .65; flex: 0 0 auto; }
.adm-side__nav button:hover { background: var(--tint); color: var(--ink); }
.adm-side__nav button[data-active="true"] { background: var(--accent-wash); color: var(--accent-ink); font-weight: 600; }
.adm-side__nav button[data-active="true"] svg { opacity: 1; color: var(--accent); }
.adm-side__foot { margin-top: auto; padding: 16px 22px 20px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 10px; }
.adm-side__foot a, .adm-side__foot button {
  background: none; border: 0; cursor: pointer; font-family: inherit; font-size: 14px;
  color: var(--ink-muted); text-align: left; padding: 0;
}
.adm-side__foot a:hover, .adm-side__foot button:hover { color: var(--ink); }

/* main + topbar */
.adm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-top {
  position: sticky; top: 0; z-index: 40; background: rgba(243,245,249,.92); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 32px 16px; border-bottom: 1px solid var(--line-soft);
}
.adm-top h1 { font-size: 22px; margin: 0; letter-spacing: -0.01em; }
.adm-top p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-muted); }
.adm-top__actions { display: flex; align-items: center; gap: 14px; }
.adm-dirty { font-size: 13.5px; font-weight: 600; color: #9a6700; background: #fff3d6; border: 1px solid #f0dfae; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.adm-saved { font-size: 13.5px; font-weight: 600; color: #1d7a4f; }
.adm-err { color: #b04a4a; font-size: 14px; font-weight: 600; }

/* content + cards */
.adm-content { padding: 26px 32px 60px; max-width: 880px; width: 100%; }
.adm-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 22px; overflow: hidden; }
.adm-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 22px 14px; border-bottom: 1px solid var(--line-soft); }
.adm-card__head h2 { font-size: 16.5px; margin: 0; }
.adm-card__head p { margin: 3px 0 0; font-size: 13px; color: var(--ink-muted); }
.adm-card__body { padding: 18px 22px 20px; }

/* fields + rows */
.adm-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.adm-field span { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.adm-field input, .adm-field textarea, .adm-row input, .adm-subinput,
.adm-gitem input, .adm-login__card input {
  font-family: inherit; font-size: 14.5px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 9px; padding: 9px 11px; background: #fff; width: 100%;
}
.adm-field input:focus, .adm-field textarea:focus, .adm-row input:focus, .adm-subinput:focus,
.adm-gitem input:focus, .adm-login__card input:focus { outline: none; border-color: var(--accent); }
.adm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.adm-cols { display: grid; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px; }
.adm-cols--hours { grid-template-columns: 130px 1fr 112px; }
.adm-cols--price { grid-template-columns: 1fr 120px 112px; }

.adm-row { display: grid; gap: 8px; margin-bottom: 8px; align-items: center; }
.adm-row--hours { grid-template-columns: 130px 1fr 112px; }
.adm-row--price { grid-template-columns: 1fr 120px 112px; }
.adm-row--faq { grid-template-columns: 1fr 112px; }
.adm-pricerow { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.adm-pricerow:first-of-type { padding-top: 0; }
.adm-subinput { display: block; font-size: 13.5px !important; color: var(--ink-soft) !important; }
.adm-rowctl { display: flex; gap: 4px; justify-content: flex-end; }
.adm-rowctl button {
  width: 33px; height: 33px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff;
  cursor: pointer; font-size: 13px; color: var(--ink-soft); flex: 0 0 auto;
}
.adm-rowctl button:hover { border-color: #cdd9ea; color: var(--ink); }
.adm-rowctl button.del:hover { border-color: #e3b8b8; color: #b04a4a; }
.adm-add {
  background: none; border: 1.5px dashed var(--line); border-radius: 9px; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink-soft);
  padding: 9px 15px; margin-top: 10px;
}
.adm-add:hover { border-color: var(--accent); color: var(--accent); }

/* gallery */
.adm-upload {
  display: inline-block; cursor: pointer; background: var(--accent); color: #fff; font-weight: 600;
  font-size: 14px; padding: 9px 15px; border-radius: 10px; white-space: nowrap;
}
.adm-upload:hover { background: var(--accent-ink); }
.adm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.adm-gitem { border: 1px solid var(--line); border-radius: 11px; padding: 9px; display: flex; flex-direction: column; gap: 8px; }
.adm-gitem img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 7px; background: var(--tint); }

/* login */
.adm-login { min-height: 100vh; display: grid; place-items: center; background: #f3f5f9; padding: 20px; }
.adm-login__card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-md);
  padding: 38px; width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 10px;
}
.adm-login__brand { font-size: 21px; }
.adm-login__brand b { color: var(--accent); }
.adm-login__card h1 { font-size: 15px; font-weight: 600; color: var(--ink-muted); margin: 0 0 14px; }
.adm-login__card label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.adm-login__card .btn { margin-top: 10px; }

@media (max-width: 860px) {
  .adm { flex-direction: column; }
  .adm-side { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .adm-side__brand { border: 0; padding: 14px 18px; }
  .adm-side__nav { flex-direction: row; padding: 0 12px; overflow-x: auto; }
  .adm-side__nav button span { white-space: nowrap; }
  .adm-side__foot { margin: 0 0 0 auto; border: 0; flex-direction: row; gap: 16px; padding: 14px 18px; }
  .adm-top, .adm-content { padding-left: 18px; padding-right: 18px; }
  .adm-grid2 { grid-template-columns: 1fr; }
  .adm-cols { display: none; }
  .adm-row--hours, .adm-row--price { grid-template-columns: 1fr; }
}

/* ---- real street map (MasinaMap, data © OpenStreetMap) ---- */
.osmmap { position: absolute; inset: 0; width: 100%; height: 100%; }
.osmmap path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.osmmap .bld { fill: #dde6f2; stroke: #cfdbeb; stroke-width: .6; }
.osmmap .bld-rx { fill: var(--accent); opacity: .9; stroke: none; }
.osmmap .rx-pin__halo { fill: rgba(47,111,224,.18); }
.osmmap .rx-pin__dot { fill: var(--accent); stroke: #fff; stroke-width: 2.5; }
.osmmap .walk { fill: none; stroke: #3f9d6e; stroke-width: 2.2; stroke-dasharray: .1 5.5; stroke-linecap: round; opacity: .95; }
.osmmap .walk-label { font-family: var(--font); font-size: 9.5px; font-weight: 700; fill: #2f7d57; }
.osmmap .stop circle { fill: #fff; stroke: #7e98c4; stroke-width: 1.6; }
.osmmap .stop text { font-family: var(--font); font-size: 9.5px; font-weight: 600; fill: #7287a8; }
.osmmap .rd-res { stroke: #e8eef7; stroke-width: 3.5; }
.osmmap .rd-sec { stroke: #e2eaf5; stroke-width: 5; }
.osmmap .rd-pri { stroke: #d7e1f0; stroke-width: 7.5; }
.osmmap .rd-tram { stroke: #9db6dd; stroke-width: 1.4; stroke-dasharray: 6 4; }
.osmmap__label { font-family: var(--font); font-size: 10.5px; font-weight: 600; fill: #93a5c0; letter-spacing: .04em; }
.mapbox__attrib { position: absolute; right: 9px; bottom: 6px; font-size: 9px; color: var(--ink-muted); opacity: .75; }

/* ---- admin calendar (read-only week view, Phase A) ---- */
.adm-content--wide { max-width: none; padding: 22px 28px 48px; }
.adm-cal { display: flex; align-items: flex-start; gap: 22px; }
.adm-cal__main { flex: 1; min-width: 0; }

.adm-cal__bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.adm-cal__today {
  height: 38px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; font-family: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer;
}
.adm-cal__today:hover { border-color: var(--accent); color: var(--accent); }
.adm-cal__nav { display: flex; gap: 6px; }
.adm-cal__nav button {
  width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff;
  font-size: 20px; line-height: 1; color: var(--ink-soft); cursor: pointer;
}
.adm-cal__nav button:hover { border-color: var(--accent); color: var(--accent); }
.adm-cal__range { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }

.adm-cal__state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 220px; color: var(--ink-muted); font-size: 15px; text-align: center;
}

.adm-cal__scroll { position: relative; overflow-x: auto; }
.adm-cal__grid {
  display: grid; grid-template-columns: 52px repeat(6, minmax(116px, 1fr));
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; min-width: 720px;
}
.adm-cal__colhead {
  height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border-bottom: 1px solid var(--line); border-left: 1px solid var(--line-soft); background: #fbfdff;
}
.adm-cal__gutterhead { border-left: 0; }
.adm-cal__dow { font-size: 12px; font-weight: 700; color: var(--ink-muted); letter-spacing: .04em; }
.adm-cal__dnum { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.adm-cal__colhead[data-today] { background: var(--accent-wash); }
.adm-cal__colhead[data-today] .adm-cal__dow { color: var(--accent-ink); }
.adm-cal__colhead[data-today] .adm-cal__dnum { color: var(--accent); }

.adm-cal__gutterbody { position: relative; height: var(--grid-h); }
.adm-cal__hour { position: absolute; right: 7px; margin-top: 1px; font-size: 11px; color: var(--ink-muted); }
.adm-cal__col { min-width: 0; }
.adm-cal__colbody {
  position: relative; height: var(--grid-h); border-left: 1px solid var(--line-soft);
  background-image: repeating-linear-gradient(to bottom, var(--line-soft) 0, var(--line-soft) 1px, transparent 1px, transparent var(--hour-px));
}

.adm-cal__card {
  position: absolute; left: 4px; right: 4px; box-sizing: border-box; overflow: hidden; z-index: 2;
  display: flex; flex-direction: column; gap: 1px; padding: 4px 7px; border-radius: 7px;
  text-align: left; font-family: inherit; cursor: pointer; border: 1px solid transparent;
}
.adm-cal__cline { display: flex; align-items: center; gap: 6px; }
.adm-cal__ctime { font-size: 11px; font-weight: 700; }
.adm-cal__cname { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-cal__csvc { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.adm-cal__badge {
  margin-left: auto; font-size: 9.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  padding: 1px 6px; border-radius: 999px; background: #f3c969; color: #5c4310; white-space: nowrap;
}
.adm-cal__card[data-status="pending"] { background: #fff7e6; border: 1.5px dashed #e0b24a; color: #6b4e16; }
.adm-cal__card[data-status="confirmed"],
.adm-cal__card[data-status="rescheduled"] { background: var(--accent); border-color: var(--accent-ink); color: #fff; }
.adm-cal__card[data-selected] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.adm-cal__card:hover { filter: brightness(0.98); }

.adm-cal__block {
  position: absolute; left: 0; right: 0; box-sizing: border-box; overflow: hidden; z-index: 1;
  background-image: repeating-linear-gradient(45deg, #eef1f5 0, #eef1f5 7px, #e6eaf1 7px, #e6eaf1 14px);
  border-top: 1px solid #dfe4ec; border-bottom: 1px solid #dfe4ec; border-left: 0; border-right: 0;
  font-family: inherit; font-size: 10.5px; color: #8a93a3; text-align: left; padding: 3px 6px;
  display: flex; align-items: center; cursor: pointer;
}
.adm-cal__now { position: absolute; left: 0; right: 0; height: 0; border-top: 2px solid #e0556b; z-index: 5; pointer-events: none; }
.adm-cal__now::before { content: ""; position: absolute; left: -1px; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: #e0556b; }

.adm-cal__empty {
  position: absolute; top: 60px; left: 0; right: 0; margin: 0 auto; width: max-content; max-width: 80%;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 20px;
  font-size: 14.5px; color: var(--ink-muted); box-shadow: 0 6px 20px rgba(20,40,80,.08); pointer-events: none;
}

.adm-cal__panel {
  flex: 0 0 332px; width: 332px; align-self: flex-start; position: sticky; top: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.adm-cal__panelhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 13px; border-bottom: 1px solid var(--line-soft); }
.adm-cal__panelhead h3 { font-size: 16.5px; margin: 0; letter-spacing: -.01em; }
.adm-cal__panelclose { background: none; border: 0; font-size: 16px; color: var(--ink-muted); cursor: pointer; line-height: 1; padding: 2px 4px; }
.adm-cal__panelclose:hover { color: var(--ink); }
.adm-cal__panelbody { padding: 14px 18px 20px; }
.adm-cal__pbadge {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 6px;
}
.adm-cal__pbadge[data-status="pending"] { background: #fff3d6; color: #9a6700; border: 1px solid #f0dfae; }
.adm-cal__pbadge[data-status="confirmed"],
.adm-cal__pbadge[data-status="rescheduled"] { background: var(--accent-wash); color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--accent) 30%, #fff); }
.adm-cal__prow { display: flex; flex-direction: column; gap: 3px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.adm-cal__prow:last-child { border-bottom: 0; }
.adm-cal__plabel { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted); }
.adm-cal__pval { font-size: 14.5px; color: var(--ink); word-break: break-word; }
.adm-cal__pval a { color: var(--accent); text-decoration: none; }
.adm-cal__pval a:hover { text-decoration: underline; }

/* B1 newly exposes rejected/cancelled in the panel badge (Phase A never let them be clicked). */
.adm-cal__pbadge[data-status="rejected"] { background: #fdeaed; color: #b02a40; border: 1px solid #f5d2d9; }
.adm-cal__pbadge[data-status="cancelled"] { background: #eef1f5; color: #687283; border: 1px solid #e0e6ee; }

/* Phase B1 — status actions in the panel */
.adm-cal__actions { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.adm-cal__abtn { width: 100%; }
.adm-cal__danger-ghost { color: #b02a40; }
.adm-cal__danger-ghost:hover { box-shadow: inset 0 0 0 1.5px #f0c2cb; background: #fdf5f6; }
.adm-cal__danger { background: #d23a55; color: #fff; box-shadow: 0 2px 8px rgba(210,58,85,.24); }
.adm-cal__danger:hover { background: #b02a40; transform: translateY(-1px); }
.adm-cal__confirm { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid #f0d2d8; background: #fdf5f6; border-radius: 12px; }
.adm-cal__confirmq { font-size: 14px; font-weight: 600; color: var(--ink); }
.adm-cal__confirmbtns { display: flex; gap: 9px; }
.adm-cal__confirmbtns .btn { flex: 1; }
.adm-cal__perror { color: #d23a55; font-size: 13.5px; margin-top: 2px; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }

/* Phase B2 — inline customer/notes edit form in the panel */
.adm-cal__edit { padding-top: 2px; }
.adm-cal__field { margin-top: 13px; }
.adm-cal__field:first-child { margin-top: 4px; }
.adm-cal__field label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 5px; }
.adm-cal__field input, .adm-cal__field textarea {
  width: 100%; font-family: inherit; font-size: 14.5px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 11px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.adm-cal__field textarea { resize: vertical; min-height: 62px; }
.adm-cal__field input:focus, .adm-cal__field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,111,224,.12); }
.adm-cal__field input[aria-invalid="true"], .adm-cal__field textarea[aria-invalid="true"] { border-color: #e0556b; }
.adm-cal__ferr { color: #d23a55; font-size: 12.5px; margin-top: 5px; }

/* Phase B3 — reschedule (day strip + slot grid) in the panel */
.adm-cal__resch { padding-top: 2px; }
.adm-cal__days { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.adm-cal__day { flex: 0 0 auto; width: 44px; padding: 7px 0; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: border-color .15s, background .15s; }
.adm-cal__day:hover { border-color: #cdd9ea; }
.adm-cal__day[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-wash); color: var(--accent-ink); }
.adm-cal__ddow { font-size: 11px; color: var(--ink-muted); }
.adm-cal__day[aria-pressed="true"] .adm-cal__ddow { color: var(--accent-ink); }
.adm-cal__ddnum { font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.adm-cal__slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 12px; }
.adm-cal__slot { padding: 9px 0; border-radius: 9px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 500; transition: border-color .15s, background .15s; }
.adm-cal__slot:hover { border-color: #cdd9ea; }
.adm-cal__slot[data-current] { border-style: dashed; border-color: var(--accent); } /* the booking's current time */
.adm-cal__slot[aria-pressed="true"] { border-style: solid; border-color: var(--accent); background: var(--accent); color: #fff; }
.adm-cal__rmsg { font-size: 13.5px; color: var(--ink-muted); margin-top: 14px; display: flex; flex-direction: column; align-items: flex-start; }

/* RXOP-5 — block-time toolbar button, clickable blocks, create form + conflict list */
.adm-cal__addblock {
  margin-left: auto; height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--accent); background: var(--accent-wash); color: var(--accent-ink);
  font-family: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.adm-cal__addblock:hover { background: var(--accent); color: #fff; }

.adm-cal__block:hover { filter: brightness(0.97); }
.adm-cal__block[data-selected] { box-shadow: inset 0 0 0 2px var(--accent); }

.adm-cal__check { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14.5px; color: var(--ink); cursor: pointer; }
.adm-cal__check input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.adm-cal__timerow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.adm-cal__field select {
  width: 100%; font-family: inherit; font-size: 14.5px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 11px; background: #fff; cursor: pointer;
}
.adm-cal__field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,111,224,.12); }
.adm-cal__opt { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-muted); }

.adm-cal__conflicts { margin-top: 16px; padding: 12px; border: 1px solid #f0dfae; background: #fffaf0; border-radius: 12px; }
.adm-cal__conflicthead { font-size: 14px; font-weight: 700; color: #9a6700; }
.adm-cal__conflictnote { font-size: 12.5px; color: var(--ink-muted); margin: 4px 0 10px; }
.adm-cal__conflictlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.adm-cal__conflictitem {
  width: 100%; display: flex; align-items: center; gap: 8px; text-align: left; cursor: pointer;
  font-family: inherit; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px;
}
.adm-cal__conflictitem:hover { border-color: var(--accent); }
.adm-cal__conflicttime { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.adm-cal__conflictname { font-size: 13px; color: var(--ink); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-cal__conflictstatus { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--ink-muted); white-space: nowrap; }

/* RXOP-5 — collapsible "Blokeeritud ajad" upcoming list above the grid */
.adm-cal__blocks { margin-bottom: 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.adm-cal__blockstoggle {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 12px 16px; cursor: pointer;
  background: #fbfdff; border: 0; font-family: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink);
}
.adm-cal__blockstoggle:hover { background: var(--accent-wash); }
.adm-cal__blockscount { color: var(--ink-muted); font-weight: 500; }
.adm-cal__blockschev { margin-left: auto; color: var(--ink-muted); font-size: 11px; }
.adm-cal__blockstable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.adm-cal__blockstable th, .adm-cal__blockstable td { text-align: left; padding: 9px 16px; border-top: 1px solid var(--line-soft); }
.adm-cal__blockstable th { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.adm-cal__blockstable td:last-child, .adm-cal__blockstable th:last-child { text-align: right; width: 44px; }
.adm-cal__blocksdel { background: none; border: 0; color: var(--ink-muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 3px 7px; border-radius: 6px; }
.adm-cal__blocksdel:hover { color: #d23a55; background: #fdf5f6; }
.adm-cal__blocksdel:disabled { opacity: .5; cursor: default; }
.adm-cal__blocksempty { padding: 14px 16px; font-size: 13.5px; color: var(--ink-muted); border-top: 1px solid var(--line-soft); }

@media (max-width: 900px) {
  .adm-cal__panel {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(360px, 92vw); z-index: 50;
    border-radius: 0; border-left: 1px solid var(--line); box-shadow: -12px 0 34px rgba(20,40,80,.16);
  }
}
