/* Clyde — reklaam, kleebised, esitlusvahendid
   Kujunduse alus: trükikoja protsessivärvid (C/M/Y) ja registrimärgid. */

:root {
  --paper: #F3F4F6;      /* kleebise taustapaber */
  --white: #FFFFFF;
  --ink: #142037;        /* trükivärvi tume sinine */
  --ink-2: #3A4560;
  --muted: #6A7389;
  --line: #D9DDE5;
  --cyan: #009FE3;
  --magenta: #ED1875;
  --yellow: #FFE500;
  --magenta-dark: #C40F5E;

  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: hidden;
  overflow-x: clip; /* „clip” ei lõhu kleepuvat päist (Safari) */
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; line-height: 1.15; }
p { margin: 0; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--muted); }

/* ---------- Registrimärk (väike dekoratiivne, kasutatakse sektsiooni algust märkimas) ---------- */
.reg { display: inline-block; width: 22px; height: 22px; position: relative; flex: none; }
.reg::before, .reg::after { content: ""; position: absolute; background: currentColor; }
.reg::before { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
.reg::after { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.reg i { position: absolute; inset: 4px; border: 1.5px solid currentColor; border-radius: 50%; }

/* ---------- Päis ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; margin-right: auto; }
.logo-mark { width: 30px; height: 30px; position: relative; }
.logo-mark span { position: absolute; width: 18px; height: 18px; border-radius: 50%; mix-blend-mode: multiply; }
.logo-mark span:nth-child(1) { background: var(--cyan); left: 0; top: 0; }
.logo-mark span:nth-child(2) { background: var(--magenta); right: 0; top: 0; }
.logo-mark span:nth-child(3) { background: var(--yellow); left: 6px; bottom: 0; }
.logo b { font: 800 1.6rem/1 var(--display); letter-spacing: -0.04em; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { text-decoration: none; padding: .5rem .7rem; border-radius: 999px; font-size: .97rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--white); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.nav-cta { margin-left: .5rem; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
.nav a.btn-primary:hover { background: var(--magenta-dark); }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: .45rem .9rem; font-weight: 600; cursor: pointer; }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: .75rem var(--gutter) 1.5rem; border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: .85rem .25rem; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav a[aria-current="page"] { box-shadow: none; background: none; color: var(--magenta); }
  .nav-cta { margin: 1rem 0 0; text-align: center; }
}

/* ---------- Nupud ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.35rem; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.1;
  transition: transform .15s ease, background-color .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--magenta); color: #fff; }
.btn-primary:hover { background: var(--magenta-dark); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { padding: .55rem .95rem; font-size: .93rem; }
.on-dark .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.on-dark .btn-ghost:hover { background: #fff; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 4rem); position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.hero-kicker { display: flex; align-items: center; gap: .6rem; color: var(--ink-2); font-weight: 500; margin-bottom: 1.4rem; }

/* CMYK registri-pealkiri: kolm värvikihti + must, mis laadimisel joonduvad */
.cmyk { position: relative; font: 800 clamp(3rem, 9.2vw, 7.6rem)/.92 var(--display); letter-spacing: -0.045em; margin: 0 0 1.6rem; }
.cmyk .k { position: relative; z-index: 2; color: var(--ink); display: block; }
.cmyk .ch { position: absolute; inset: 0; z-index: 1; mix-blend-mode: multiply; pointer-events: none; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.cmyk .ch.c { color: var(--cyan); transform: translate(var(--cx, -14px), var(--cy, -10px)); }
.cmyk .ch.m { color: var(--magenta); transform: translate(var(--mx, 12px), var(--my, 6px)); }
.cmyk .ch.y { color: var(--yellow); transform: translate(var(--yx, -6px), var(--yy, 14px)); }
.cmyk.registered .ch { transition: transform .25s ease-out; }
.cmyk .k { transition: opacity .6s .35s; }
.cmyk:not(.ready) .k { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .cmyk .ch { transition: none; } .cmyk:not(.ready) .k { opacity: 1; } }

.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-points { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.5rem; max-width: 640px; }
.hero-points li { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; line-height: 1.35; color: var(--ink-2); }
.hero-points b { display: block; color: var(--ink); font-weight: 700; font-size: .98rem; margin-bottom: .1rem; }
.hp-ico { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
.hp-ico svg { width: 20px; height: 20px; }
@media (max-width: 640px) { .hero-points { grid-template-columns: 1fr; } }

.hero-stack { position: relative; aspect-ratio: 4 / 5; }
.hero-stack figure { margin: 0; position: absolute; z-index: 1; border-radius: var(--r-md); overflow: hidden; background: var(--ink-2); box-shadow: 0 24px 50px -24px rgba(20, 32, 55, .55); cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.hero-stack img { width: 100%; height: 100%; object-fit: cover; }
.hero-stack figure:nth-child(1) { inset: 0 18% 30% 0; transform: rotate(-2.5deg); }
.hero-stack figure:nth-child(2) { inset: 34% 0 6% 26%; transform: rotate(2deg); z-index: 2; }
.hero-stack figure:nth-child(3) { width: 38%; aspect-ratio: 1; left: 2%; bottom: 0; border-radius: 50%; transform: rotate(-8deg); border: 6px solid var(--white); z-index: 3; }
/* hiirega peale: pilt tuleb ette, sirgub ja läheb veidi suuremaks */
.hero-stack figure:hover { z-index: 6; transform: rotate(0deg) scale(1.08); box-shadow: 0 40px 70px -28px rgba(20, 32, 55, .7); }
.hero-stack figure:nth-child(3):hover { transform: rotate(0deg) scale(1.15); }
.hero-stack figcaption { position: absolute; z-index: 1; background: var(--ink); color: #fff; padding: .35rem .75rem; border-radius: 999px; font-size: .82rem; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 16px -8px rgba(0,0,0,.6); }
.hero-stack figure:nth-child(1) figcaption { left: .8rem; top: .8rem; }
.hero-stack figure:nth-child(2) figcaption { right: .8rem; bottom: .8rem; }
.hero-stack figure:nth-child(3) figcaption { display: none; }
.peel { position: absolute; right: -10px; top: 6%; z-index: 7; width: 132px; height: 132px; padding: 14px; border-radius: 50%; background: var(--yellow); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font: 800 .95rem/1.05 var(--display); letter-spacing: -0.01em; text-decoration: none; color: var(--ink); transform: rotate(10deg); transition: transform .2s; box-shadow: 0 10px 24px -12px rgba(20,32,55,.5); }
.peel:hover { transform: rotate(0deg) scale(1.08); }
.peel small { display: block; font: 500 .76rem/1.2 var(--body); margin-top: .3rem; }
@media (prefers-reduced-motion: reduce) { .hero-stack figure { transition: none; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stack { aspect-ratio: 5 / 4; max-width: 520px; }
  .peel { width: 108px; height: 108px; padding: 10px; font-size: .82rem; right: 0; }
}

/* ---------- Sektsioonid ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { max-width: 14ch; }
.section-head .lead { justify-self: start; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }
.section-mark { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.white { background: var(--white); }
.on-dark { background: var(--ink); color: #fff; }
.on-dark .lead, .on-dark .muted { color: #B9C1D4; }

/* Teenuste loend: read, mis hoveril näitavad tööpilti */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.svc {
  display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.4fr) auto; gap: 1.5rem; align-items: center;
  padding: 1.6rem 0; border-bottom: 1px solid var(--line); position: relative; text-decoration: none;
}
.svc-dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.svc-dot svg { width: 22px; height: 22px; }
.svc h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.svc p { color: var(--ink-2); }
.svc-go { font-weight: 600; white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.svc-peek { position: absolute; right: 9rem; top: 50%; width: 180px; aspect-ratio: 4/3; border-radius: var(--r-md); overflow: hidden; transform: translateY(-50%) rotate(-3deg) scale(.85); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s; z-index: 2; box-shadow: 0 20px 40px -20px rgba(20,32,55,.6); }
.svc-peek img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (min-width: 1000px) {
  .svc:hover .svc-peek { opacity: 1; transform: translateY(-50%) rotate(-3deg) scale(1); }
}
@media (max-width: 760px) {
  .svc { grid-template-columns: 44px minmax(0, 1fr); gap: .4rem 1rem; }
  .svc p, .svc-go { grid-column: 2; }
  .svc-peek { display: none; }
}

/* Kalkulaatori tiiser */
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .teaser { grid-template-columns: 1fr; } }

/* ---------- Kalkulaator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 920px) { .calc { grid-template-columns: 1fr; } }
.panel { background: var(--white); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(20,32,55,.35); color: var(--ink); }
.field { display: grid; gap: .45rem; margin-bottom: 1.15rem; }
.field > label, .field > legend, .label { font-weight: 600; font-size: .95rem; }
fieldset.field { border: 0; padding: 0; margin-inline: 0; }
.input, select.input, textarea.input {
  width: 100%; padding: .8rem .9rem; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--paper);
  transition: border-color .15s, background .15s;
}
.input:hover { border-color: #BCC3D0; }
.input:focus { outline: none; border-color: var(--cyan); background: var(--white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 22%, transparent); }
textarea.input { min-height: 140px; resize: vertical; }
.dims { display: grid; grid-template-columns: 1fr auto 1fr; gap: .5rem; align-items: center; }
.dims span { color: var(--muted); }
.unit { position: relative; }
.unit .input { padding-right: 2.8rem; }
.unit::after { content: attr(data-unit); position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .9rem; pointer-events: none; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { border: 1.5px solid var(--line); background: var(--white); padding: .45rem .8rem; border-radius: 999px; cursor: pointer; font-size: .9rem; font-weight: 500; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; }
.seg button { border: 1.5px solid var(--line); background: var(--white); border-radius: var(--r-md); padding: .55rem .3rem .45rem; cursor: pointer; font-size: .82rem; display: grid; justify-items: center; gap: .25rem; }
.seg button svg { width: 26px; height: 26px; }
.seg button[aria-pressed="true"] { border-color: var(--magenta); box-shadow: inset 0 0 0 1px var(--magenta); color: var(--magenta-dark); }

.range-row { display: flex; align-items: center; gap: .8rem; }
.range-row input[type="range"] { flex: 1; accent-color: var(--magenta); }

.result { display: grid; gap: 1rem; }
.price-card { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2rem); position: relative; overflow: hidden; }
.price-card .big { font: 800 clamp(2.8rem, 6vw, 4.4rem)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price-card .big small { font: 500 1rem var(--body); color: #B9C1D4; letter-spacing: 0; margin-left: .4rem; }
.price-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.18); }
.price-rows div { font-size: .85rem; color: #B9C1D4; }
.price-rows b { display: block; font: 700 1.2rem/1.2 var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.price-note { font-size: .88rem; color: #B9C1D4; margin-top: 1rem; }
.price-card .actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.4rem; }
.min-flag { display: inline-block; margin-top: .6rem; background: var(--yellow); color: var(--ink); font-size: .8rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; }
.min-flag[hidden] { display: none; }

.roll { background: var(--white); border-radius: var(--r-lg); padding: 1.25rem; box-shadow: 0 1px 0 var(--line); }
.roll-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-bottom: .8rem; font-size: .9rem; color: var(--muted); }
.roll-head b { color: var(--ink); font-weight: 600; }
.roll svg { width: 100%; height: auto; display: block; }
.roll-legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .82rem; color: var(--muted); margin-top: .7rem; }
.roll-legend i { display: inline-block; width: 14px; height: 3px; vertical-align: middle; margin-right: .35rem; }

/* ---------- Tööde galerii ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }
.gallery { columns: 4 220px; column-gap: 12px; }
.gallery button { all: unset; display: block; break-inside: avoid; margin-bottom: 12px; border-radius: var(--r-md); overflow: hidden; cursor: zoom-in; position: relative; background: #DDE1E8; width: 100%; }
.gallery button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.gallery img { width: 100%; height: auto; transition: transform .35s ease; }
.gallery button:hover img { transform: scale(1.04); }
.gallery button[hidden] { display: none; }
.gallery .tag { position: absolute; left: .5rem; bottom: .5rem; background: rgba(255,255,255,.92); font-size: .75rem; font-weight: 600; padding: .15rem .5rem; border-radius: 999px; opacity: 0; transition: opacity .2s; }
.gallery button:hover .tag, .gallery button:focus-visible .tag { opacity: 1; }
.gallery-count { color: var(--muted); font-size: .92rem; margin: -0.6rem 0 1.4rem; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 16, 30, .94); display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; padding: 1rem; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: .8rem; max-height: 100%; }
.lightbox img { max-height: calc(100vh - 120px); max-width: 100%; object-fit: contain; border-radius: var(--r-sm); }
.lightbox figcaption { color: #B9C1D4; font-size: .9rem; }
.lb-btn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { position: absolute; top: 1rem; right: 1rem; }
@media (max-width: 600px) { .lightbox { grid-template-columns: 1fr; } .lb-prev, .lb-next { position: absolute; bottom: 1.2rem; } .lb-prev { left: 1.2rem; } .lb-next { right: 1.2rem; } }

/* Avalehe valikgalerii */
.featured { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 12px; }
.featured a { border-radius: var(--r-md); overflow: hidden; background: #DDE1E8; display: block; }
.featured img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.featured a:hover img { transform: scale(1.04); }
.featured a:nth-child(1) { grid-column: span 5; grid-row: span 3; }
.featured a:nth-child(2) { grid-column: span 4; grid-row: span 2; }
.featured a:nth-child(3) { grid-column: span 3; grid-row: span 2; }
.featured a:nth-child(4) { grid-column: span 3; grid-row: span 2; }
.featured a:nth-child(5) { grid-column: span 4; grid-row: span 2; }
.featured a:nth-child(6) { grid-column: span 5; grid-row: span 1; }
@media (max-width: 760px) {
  .featured { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .featured a:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .featured a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
}

/* ---------- Esitlusvahendid ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.product { background: var(--white); padding: 1.5rem; display: grid; grid-template-rows: 120px auto 1fr auto; gap: .7rem; position: relative; }
.product svg.art { width: 100%; height: 120px; }
.product p { color: var(--ink-2); font-size: .97rem; }
.product .use { font-size: .85rem; color: var(--muted); }
.add { justify-self: start; display: inline-flex; align-items: center; gap: .45rem; background: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: .5rem .9rem; font-weight: 600; font-size: .9rem; cursor: pointer; transition: background .15s, color .15s; }
.add:hover { background: var(--ink); color: #fff; }
.add[aria-pressed="true"] { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.add .plus { display: inline-block; transition: transform .2s; }
.add[aria-pressed="true"] .plus { transform: rotate(45deg); }
.product.picked { box-shadow: inset 0 0 0 2px var(--magenta); }

.basket { position: fixed; left: 50%; bottom: 1rem; transform: translate(-50%, 140%); z-index: 60; background: var(--ink); color: #fff; border-radius: 999px; padding: .6rem .6rem .6rem 1.3rem; display: flex; align-items: center; gap: 1rem; box-shadow: 0 20px 40px -16px rgba(0,0,0,.5); transition: transform .3s cubic-bezier(.2,.8,.2,1); max-width: calc(100% - 2rem); }
.basket { visibility: hidden; }
.basket.show { transform: translate(-50%, 0); visibility: visible; }
.basket span { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .basket { transition: none; } }

.partner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding: 1.5rem; border: 1.5px dashed var(--line); border-radius: var(--r-lg); margin-top: 2rem; }
.partner p { max-width: 70ch; color: var(--ink-2); }

/* ---------- Meist ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); }
.about p + p { margin-top: 1rem; }
.about .lead { margin-bottom: 1.5rem; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.facts li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts b { font-weight: 600; }
.countries { display: flex; gap: .4rem; flex-wrap: wrap; }
.countries span { padding: .2rem .65rem; border-radius: 999px; background: var(--paper); font-size: .9rem; }

/* ---------- Kontakt / vorm ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.check-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.check-chips label { cursor: pointer; }
.check-chips input { position: absolute; opacity: 0; pointer-events: none; }
.check-chips span { display: inline-block; border: 1.5px solid var(--line); background: var(--white); padding: .45rem .85rem; border-radius: 999px; font-size: .92rem; font-weight: 500; transition: all .15s; }
.check-chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.check-chips input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.form-msg { margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--r-md); font-size: .95rem; }
.form-msg.ok { background: #E3F5EC; color: #0B5132; }
.form-msg.err { background: #FDE8EF; color: #8A0A45; }
.form-msg[hidden] { display: none; }
.req { color: var(--magenta); }
.hint { font-size: .85rem; color: var(--muted); }

.contact-card { display: grid; gap: 1.4rem; }
.contact-line { display: grid; gap: .15rem; }
.contact-line span { font-size: .88rem; color: var(--muted); }
.contact-line a, .contact-line strong { font: 700 1.45rem/1.2 var(--display); text-decoration: none; letter-spacing: -0.01em; }
.contact-line a:hover { color: var(--magenta); }
.map { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3; background: #DDE1E8; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Lehe päis alamlehtedel ---------- */
.page-head { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); letter-spacing: -0.04em; max-width: 16ch; margin-bottom: 1.2rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1.2rem; display: flex; gap: .5rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Teenuste detailplokid */
.svc-blocks { display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.svc-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, .9fr); gap: 1.5rem 3rem; padding: clamp(2rem, 4vw, 3rem) 0; border-bottom: 1px solid var(--line); align-items: start; scroll-margin-top: 90px; }
.svc-block h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.svc-block ul { margin: .8rem 0 0; padding-left: 1.1rem; color: var(--ink-2); }
.svc-block li { margin: .25rem 0; }
.svc-block figure { margin: 0; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4/3; background: #DDE1E8; }
.svc-block figure img { width: 100%; height: 100%; object-fit: cover; }
.svc-block .btn { margin-top: 1.2rem; }
.badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: var(--yellow); margin-bottom: .8rem; }
@media (max-width: 900px) { .svc-block { grid-template-columns: 1fr; } }

/* ---------- CTA riba + jalus ---------- */
.cta-band { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.cta-band h2 { font-size: clamp(2.2rem, 6vw, 4.6rem); max-width: 18ch; margin-bottom: 1.2rem; }
.cta-band .lead { margin-bottom: 2rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.site-footer { background: var(--ink); color: #C8CFDE; padding: 3.5rem 0 2rem; font-size: .95rem; border-top: 1px solid rgba(255,255,255,.08); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font: 700 1rem var(--display); margin: 0 0 .8rem; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer a { text-decoration: none; color: #C8CFDE; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .logo b { color: #fff; }
.site-footer .logo-mark span { mix-blend-mode: screen; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: #8F98AE; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-content: center; gap: 1rem; }
.notfound h1 { font-size: clamp(5rem, 18vw, 12rem); }

/* ---------- Riidetrükk ---------- */
.places { display: grid; gap: .4rem; }
.place { display: grid; grid-template-columns: 1fr 9rem; gap: .6rem; align-items: center; padding: .35rem .35rem .35rem .8rem; border: 1.5px solid var(--line); border-radius: var(--r-md); }
.place label { display: flex; align-items: center; gap: .55rem; cursor: pointer; font-weight: 500; }
.place input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--magenta); }
.place select { padding: .5rem .6rem; }
.place select:disabled { opacity: .45; }
.place:has(input:checked) { border-color: var(--ink); }
.qty { display: grid; grid-template-columns: 48px 1fr 48px; gap: .5rem; align-items: center; }
.qty .lb-btn { background: var(--paper); color: var(--ink); width: 48px; height: 48px; border: 1.5px solid var(--line); }
.qty .lb-btn:hover { background: var(--ink); color: #fff; }
.seg button b { display: block; }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { text-align: left; padding: 1rem .5rem; border-bottom: 1px solid var(--line); }
.price-table thead th { font-size: .88rem; color: var(--muted); font-weight: 500; border-bottom: 1.5px solid var(--ink); }
.price-table tbody th { font-weight: 600; }
.price-table td { font: 800 1.6rem/1 var(--display); letter-spacing: -0.02em; }

.product.garment { grid-template-rows: 170px auto 1fr; }
.product.garment svg.art { height: 170px; background: var(--paper); border-radius: var(--r-md); padding: .5rem; }
.products.garments { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .products.garments { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .products.garments { grid-template-columns: 1fr; } }

.toggle { display: flex; gap: .75rem; align-items: flex-start; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--r-md); cursor: pointer; }
.toggle input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--magenta); flex: none; }
.toggle b { display: block; font-weight: 600; font-size: .95rem; }
.toggle small { color: var(--muted); font-size: .85rem; }
.toggle:has(input:checked) { border-color: var(--magenta); }
.seg + .hint { display: block; margin-top: .45rem; }
@media (min-width: 921px) { [data-calc] .result, [data-tex] .result { position: sticky; top: 92px; } }

.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.strip a { display: block; aspect-ratio: 3 / 4; border-radius: var(--r-md); overflow: hidden; background: #DDE1E8; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.strip a:hover img { transform: scale(1.04); }

.featured a, .strip a { transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.featured a:hover, .strip a:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 24px 40px -24px rgba(20,32,55,.55); position: relative; z-index: 2; }
.gallery button { transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.gallery button:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -22px rgba(20,32,55,.6); }
@media (prefers-reduced-motion: reduce) { .featured a, .strip a, .gallery button { transition: none; } }

/* ---------- Logo ---------- */
.logo-img { display: block; height: 30px; width: auto; }
.site-footer .logo-img { height: 34px; }
@media (max-width: 520px) { .logo-img { height: 26px; } }

/* ---------- Valikud ja liugur ühtemoodi kõigis brauserites (ka Safari) ---------- */
select.input {
  -webkit-appearance: none; appearance: none; height: 48px; padding-right: 2.6rem; line-height: 1.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%23142037' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 16px; cursor: pointer;
}
input[type="number"].input { -moz-appearance: textfield; appearance: textfield; }
input[type="number"].input::-webkit-inner-spin-button, input[type="number"].input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="range"] { -webkit-appearance: none; appearance: none; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(var(--magenta), var(--magenta)) 0 / var(--fill, 40%) 100% no-repeat, var(--line); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--magenta); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 3px solid var(--magenta); box-shadow: 0 2px 6px rgba(20,32,55,.25); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--magenta); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 35%, transparent); }

/* ---------- Avalehe pildid ---------- */
.hero-stack figure > a { display: block; width: 100%; height: 100%; }
.hero-stack figure img { transition: opacity .38s ease; }
.hero-stack figure.swap img { opacity: 0; }
.hero-stack figure figcaption { transition: opacity .38s ease; }
.hero-stack figure.swap figcaption { opacity: 0; }
.hero-stack figure:nth-child(3) figcaption { display: block; left: 50%; bottom: .9rem; transform: translateX(-50%); font-size: .72rem; padding: .25rem .6rem; opacity: 0; }
.hero-stack figure:nth-child(3):hover figcaption { opacity: 1; }

/* Logo avalehe ülaosas */
.hero-logo { display: block; width: auto; height: clamp(84px, 9vw, 120px); margin: 0 0 1.6rem; }
@media (max-width: 860px) { .hero-logo { height: 76px; margin-bottom: 1.2rem; } }

/* Galerii ridade kaupa (uuemad tööd ees), ühtlased ruudud */
.gallery { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.gallery button { margin-bottom: 0; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr 1fr; gap: 8px; } }

/* Galerii allkiri: klient ja töö (nähtav tekst aitab ka otsingus) */
.gallery .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .7rem .55rem; font-size: .8rem; font-weight: 600; line-height: 1.25; color: #fff;
  background: linear-gradient(transparent, rgba(10,16,30,.82)); text-align: left; }
.gallery .tag { display: none; }
.clients { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.clients li { padding: .4rem .85rem; border-radius: 999px; background: var(--paper); font-weight: 600; font-size: .92rem; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1.5px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font: 500 1.6rem/1 var(--display); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--magenta); }
.faq details p { padding: 0 0 1.2rem; color: var(--ink-2); max-width: 65ch; }
