/* G-Color theme v2 — "Kindel ja kontrastne" (2026). No framework, no external requests. */

@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/inter-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/inter-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

:root {
  --blue: #004497;
  --navy: #00336f;
  --orange: #ef5f19;
  --orange-dark: #c94a0c;
  --ink: #1a1f2b;
  --muted: #535b6b;
  --paper: #f4f6f9;
  --white: #fff;
  --line: #dfe4ec;
  --line-soft: #edf0f4;
  --foot: #0f1c33;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1240px;
  --gutter: 24px;
  --radius: 3px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--orange-dark); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; hyphens: auto; -webkit-hyphens: auto; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--orange); color: #fff; padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 16px/1.1 var(--font); text-decoration: none; padding: 14px 22px; border: 2px solid var(--blue); border-radius: var(--radius); background: #fff; color: var(--blue); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--blue); color: #fff; }
.btn-orange { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--blue); }
.tag { display: inline-block; font: 700 13px/1 var(--font); background: var(--orange); color: #fff; border-radius: 2px; padding: 6px 10px; }

/* Utility bar */
.util { background: var(--navy); color: #c6d6ee; font-size: 14px; }
.util .wrap { display: flex; justify-content: flex-end; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.langs { display: flex; gap: 2px; }
.langs a { color: #c6d6ee; text-decoration: none; font-weight: 600; padding: 9px 8px; letter-spacing: .02em; }
.langs a:hover { color: #fff; }
.langs a.on { color: var(--orange); }

/* Header */
.head { background: var(--blue); color: #fff; position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.head .wrap { display: flex; align-items: stretch; min-height: 78px; gap: 8px; }
.logo-cell { display: flex; align-items: center; padding-right: 20px; flex: 0 0 auto; }
.logo-cell img { width: 156px; height: auto; display: block; }
.nav { display: flex; margin-left: auto; }
.nav a { position: relative; display: flex; align-items: center; padding: 0 14px; color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 18px; height: 3px; background: var(--orange); }
.head-cta { display: flex; align-items: center; padding-left: 14px; }
.burger { display: none; margin-left: auto; align-self: center; font: 700 15px/1 var(--font); color: #fff; background: transparent; border: 2px solid rgba(255,255,255,.7); border-radius: var(--radius); padding: 11px 14px; cursor: pointer; }
.burger span { display: inline-block; margin-right: 6px; }

/* Hero (header slides on the home page) */
.hero { background: var(--blue); color: #fff; position: relative; }
.hero-track { position: relative; }
.hero-slide { display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 440px; }
.hero-slide.is-on, .hero-track:not(.js) .hero-slide:first-child { display: grid; }
/* With JavaScript all slides share one grid cell: the hero is as tall as its tallest slide, so nothing below
   it moves when the slides change */
.hero-track.js { display: grid; }
.hero-track.js .hero-slide { display: grid; grid-area: 1 / 1; visibility: hidden; }
.hero-track.js .hero-slide.is-on { visibility: visible; }
.hero-text p:empty { display: none; }
.hero-text { padding: 64px 48px 64px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.hero-text h2 { font-size: clamp(28px, 3.6vw + 8px, 56px); font-weight: 800; margin: 0; color: #fff; }
.hero-text p { margin: 0; font-size: 20px; color: #d6e2f3; max-width: 30em; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
/* The picture: product photos (square, on white) are shown whole on white; wide photos (.is-wide, set by site.js
   from the picture's proportions) fill the box, anchored right where their subject is */
.hero-media { position: relative; overflow: hidden; background: #fff; min-height: 300px; }
.hero-media img { position: absolute; top: 28px; left: 28px; width: calc(100% - 56px); height: calc(100% - 56px); max-width: none; object-fit: contain; display: block; }
.hero-slide.is-wide .hero-media img { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero-dots { position: absolute; left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); bottom: 22px; display: flex; gap: 8px; }
.hero-dots button { position: relative; width: 34px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.hero-dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.35); }
.hero-dots button[aria-current="true"]::before { background: var(--orange); }
.hero-dots button:focus-visible { outline-offset: 4px; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--paper); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2, .page-head h1 { font-size: clamp(26px, 3.4vw + 8px, 42px); font-weight: 800; margin: 0; }
.section-head h2::after, .page-head h1::after { content: ""; display: block; width: 56px; height: 4px; background: var(--orange); margin-top: 14px; }
.section-head h2 a { color: inherit; text-decoration: none; }

/* Breadcrumbs */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs i { font-style: normal; margin: 0 8px; color: #9aa3b2; }
.crumbs span { color: var(--ink); font-weight: 600; }

/* Page layout (subpages) */
.page { padding: 36px 0 72px; background: var(--paper); }
.page-head { margin-bottom: 28px; }
.page-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 36px; align-items: start; }
.page-grid.no-side { grid-template-columns: minmax(0, 1fr); }
.page-main { min-width: 0; }
.page-main > * + * { margin-top: 28px; }

/* Section navigation (sidebar) */
.side { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); position: sticky; top: 96px; max-height: calc(100vh - 112px); overflow: auto; }
.side summary { list-style: none; display: none; }
.side summary::-webkit-details-marker { display: none; }
.side-nav { padding: 8px 0; }
.side-nav div { display: flex; flex-direction: column; }
.side-nav a { display: block; padding: 9px 18px; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.35; border-left: 3px solid transparent; }
.side-nav a:hover { background: var(--paper); color: var(--blue); }
.side-nav a.on { border-left-color: var(--orange); color: var(--blue); font-weight: 700; background: #f0f4fa; }
.side-nav div div a { padding-left: 32px; font-size: 14px; }
.side-nav div div div a { padding-left: 46px; }
.side-cta { padding: 16px 18px 18px; border-top: 1px solid var(--line); }
.side-cta .btn { width: 100%; }

/* Rich text from the CMS (text blocks, product descriptions) */
.rte { background: #fff; border: 1px solid var(--line); padding: 32px; font-size: 17px; }
.rte:empty { display: none; }
.rte > :first-child { margin-top: 0; }
.rte > :last-child { margin-bottom: 0; }
.rte h1, .rte h2 { font-size: clamp(21px, 2vw + 14px, 28px); font-weight: 800; color: var(--blue); margin: 1.4em 0 .5em; }
.rte h3 { font-size: clamp(19px, 1.2vw + 14px, 22px); font-weight: 800; color: var(--blue); margin: 1.3em 0 .4em; }
.rte h4, .rte h5 { font-size: 18px; font-weight: 700; margin: 1.2em 0 .4em; }
.rte p { margin: 0 0 1em; }
.rte ul, .rte ol { padding-left: 1.3em; margin: 0 0 1em; }
.rte li + li { margin-top: .3em; }
.rte ul li::marker { color: var(--orange); }
.rte img { height: auto !important; max-width: 100% !important; }
.rte table { border-collapse: collapse; width: 100% !important; margin: 0 0 1em; font-size: 15px; display: block; overflow-x: auto; }
.rte td, .rte th { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.rte th { background: var(--paper); text-align: left; }
.rte iframe, .rte video { max-width: 100%; }
.rte iframe[src*="youtube"], .rte iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.rte hr { border: 0; border-top: 1px solid var(--line); margin: 1.5em 0; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.cols-2 > .rte { height: 100%; }
.home-text { margin-bottom: 40px; }

/* Category tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tile { background: #fff; border: 2px solid var(--line-soft); display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.tile:hover { border-color: var(--blue); color: var(--ink); }
.tile-img { aspect-ratio: 4 / 3; padding: 16px; display: grid; place-items: center; border-bottom: 1px solid var(--line-soft); }
.tile-img img { max-height: 100%; width: auto; object-fit: contain; }
.tile-name { padding: 14px 16px; font-weight: 700; font-size: 16px; line-height: 1.3; display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: auto; }
.tile-name::after { content: "→"; color: var(--orange); font-weight: 700; }

/* Product grid */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); background: #fff; padding: 12px 16px; margin-bottom: 22px; font-weight: 600; font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.no-side .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: #fff; border: 2px solid var(--line-soft); display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.card:hover { border-color: var(--blue); color: var(--ink); }
.card-img { aspect-ratio: 1; padding: 20px; display: grid; place-items: center; border-bottom: 1px solid var(--line-soft); }
.card-img img { max-height: 100%; width: auto; object-fit: contain; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body::before { content: ""; width: 44px; height: 3px; background: var(--orange); }
.card-cat { font-size: 13px; font-weight: 600; color: var(--orange-dark); }
.card-title { font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: 0; margin: 0; }
.card .go { margin-top: auto; border: 2px solid var(--blue); color: var(--blue); border-radius: var(--radius); font-weight: 700; font-size: 15px; text-align: center; padding: 10px; transition: background .15s, color .15s; }
.card:hover .go { background: var(--blue); color: #fff; }

/* Product page */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.gallery { background: #fff; border: 1px solid var(--line); }
.gallery-main { display: grid; place-items: center; aspect-ratio: 1; padding: 32px; border: 0; background: #fff; width: 100%; cursor: zoom-in; }
.gallery-main img { max-height: 100%; width: auto; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.thumbs:empty { display: none; }
.thumbs button { aspect-ratio: 1; padding: 8px; display: grid; place-items: center; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; cursor: pointer; }
.thumbs button:nth-child(5n) { border-right: 0; }
.thumbs button img { max-height: 100%; width: auto; object-fit: contain; }
.thumbs button[aria-current="true"] { outline: 3px solid var(--blue); outline-offset: -3px; }
.p-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.p-head .tag { align-self: start; text-decoration: none; }
.p-head h1 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 800; color: var(--blue); margin: 0; hyphens: manual; }
.p-intro { color: var(--ink); font-size: 17px; }
.p-intro strong, .p-intro b { font-weight: 600; }
.p-intro p { margin: 0 0 .6em; }
.p-intro > :last-child { margin-bottom: 0; }
.sheet { border: 1px solid var(--line); background: #fff; margin-bottom: 24px; }
.sheet-title { background: var(--blue); color: #fff; font-weight: 700; font-size: 15px; padding: 11px 16px; margin: 0; }
.sheet dl { margin: 0; }
.sheet .row { display: flex; align-items: baseline; gap: 8px; padding: 11px 16px; border-bottom: 1px dashed #c7ccd5; font-size: 16px; }
.sheet .row:last-child { border-bottom: 0; }
.sheet dt { color: var(--muted); flex: 1; display: flex; gap: 8px; }
.sheet dt::after { content: ""; flex: 1; min-width: 16px; border-bottom: 1px dotted #c9d0db; transform: translateY(-5px); }
.sheet dd { margin: 0; font-weight: 600; text-align: right; }
.p-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.p-desc { margin-top: 40px; }
.related { margin-top: 48px; }
.related h2 { font-size: 26px; font-weight: 800; }

/* Forms (module_forms) */
.form { background: #fff; border: 1px solid var(--line); padding: 28px; display: grid; gap: 16px; }
.form > div { display: grid; gap: 6px; }
.form label { font-weight: 600; font-size: 15px; }
.form input[type=text], .form input[type=email], .form input:not([type]), .form textarea, .form select { font: 500 17px/1.4 var(--font); border: 1px solid #b9c2cf; border-radius: var(--radius); padding: 12px; background: #fff; width: 100%; max-width: 640px; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.form .error, .form input.error { border-color: #c62828; }
.form button { justify-self: start; font: 700 16px/1 var(--font); padding: 15px 24px; border: 2px solid var(--orange); border-radius: var(--radius); background: var(--orange); color: #fff; cursor: pointer; }
.form button:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.form b { color: #c62828; }
.form-sec { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.form-sec input { width: 120px !important; }
.form-error { border-left: 4px solid #c62828; background: #fdecec; padding: 12px 16px; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(10, 16, 30, .88); }
.lightbox img { display: block; max-width: 92vw; max-height: 86vh; width: auto; height: auto; background: #fff; }
.lightbox-bar { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; }
.lightbox-bar button { font: 700 15px/1 var(--font); color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.4); border-radius: var(--radius); padding: 10px 14px; cursor: pointer; }

/* Footer */
.foot { background: var(--foot); color: #c4cbd7; border-top: 4px solid var(--orange); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 0 32px; padding: 44px var(--gutter) 28px; }
.foot-col { padding: 0 0 20px; }
.foot-col img { width: 150px; height: auto; margin-bottom: 16px; display: block; }
.foot h2 { font-size: 15px; font-weight: 700; color: #fff; margin: 0 0 12px; letter-spacing: 0; }
.foot h2 a { color: #fff; text-decoration: none; }
.foot ul { list-style: none; margin: 0; padding: 0; columns: 1; }
.foot-col:last-child ul { columns: 2; column-gap: 24px; }
.foot li { break-inside: avoid; }
.foot a { color: #c4cbd7; text-decoration: none; line-height: 2; font-size: 15px; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-text { font-size: 15px; line-height: 1.8; }
.foot-text a { line-height: inherit; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; padding: 16px 0; color: #8e97a8; }

/* Tablet / phone */
@media (max-width: 1080px) {
  .nav a { padding: 0 10px; font-size: 15px; }
  .nav a.on::after { left: 10px; right: 10px; }
}
@media (max-width: 960px) {
  :root { --gutter: 20px; }
  .head .wrap { min-height: 66px; }
  .logo-cell img { width: 132px; }
  .nav, .head-cta { display: none; }
  .burger { display: block; }
  .head.open .nav { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--blue); max-height: calc(100vh - 66px); overflow: auto; border-top: 1px solid rgba(255,255,255,.15); }
  .head.open .nav a { padding: 16px var(--gutter); border-bottom: 1px solid rgba(255,255,255,.15); font-size: 17px; }
  .head.open .nav a.on::after { left: var(--gutter); right: auto; width: 40px; bottom: 8px; }
  /* Open menu: the "Küsi pakkumist" button on its own row at the top of the panel, the menu items below it (they
     used to sit under the button), the panel down to the bottom of the screen */
  .head { --cta-row: 72px; }
  .head.open .head-cta { display: flex; position: absolute; top: 100%; left: 0; right: 0; height: var(--cta-row); align-items: center; padding: 0 var(--gutter); background: var(--blue); border-top: 1px solid rgba(255,255,255,.15); z-index: 1; }
  .head.open .head-cta .btn { width: 100%; }
  .head.open .nav { top: calc(100% + var(--cta-row)); max-height: calc(100vh - 66px - var(--cta-row)); max-height: calc(100dvh - 66px - var(--cta-row)); min-height: calc(100dvh - 106px - var(--cta-row)); align-content: flex-start; border-top: 0; }
  .hero-slide { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
  .hero-text { padding: 36px var(--gutter) 32px; }
  /* Phones/tablets: text first, then the picture in a 16:10 box; the dots on a blue strip under it */
  .hero-media { min-height: 0; aspect-ratio: 16 / 10; }
  .hero-media img { top: 14px; left: 14px; width: calc(100% - 28px); height: calc(100% - 28px); }
  .hero-dots { position: static; display: flex; justify-content: flex-start; padding: 6px var(--gutter) 10px; background: var(--blue); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .grid, .no-side .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .page-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .side { position: static; max-height: none; order: 2; }
  .side summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-weight: 700; cursor: pointer; }
  .side summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--blue); }
  .side[open] summary::after { content: "–"; }
  .side[open] summary { border-bottom: 1px solid var(--line); }
  .product { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  .section { padding: 44px 0; }
  .page { padding: 24px 0 48px; }
  .hero-text h2 { font-size: clamp(26px, 7vw, 32px); }
  .hero-text p { font-size: 18px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile-name { font-size: 14px; padding: 10px 12px; }
  .tile-img { padding: 10px; }
  .grid, .no-side .grid { gap: 10px; }
  .card-body { padding: 12px; gap: 8px; }
  .card-title { font-size: 15px; }
  .card .go { font-size: 14px; padding: 9px 6px; }
  .rte { padding: 20px 16px; }
  .cols-2 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .gallery-main { padding: 16px; }
  .thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .thumbs button:nth-child(5n) { border-right: 1px solid var(--line); }
  .thumbs button:nth-child(4n) { border-right: 0; }
  .p-actions .btn { flex: 1 1 100%; }
  .sheet .row { flex-wrap: wrap; }
  .sheet dt::after { display: none; }
  .sheet dd { text-align: left; width: 100%; }
  .form { padding: 20px 16px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-col:last-child ul { columns: 1; }
  .langs a { padding: 9px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .util, .head, .side, .hero-dots, .foot, .p-actions, .skip { display: none !important; }
  .page { background: #fff; }
  .page-grid { grid-template-columns: 1fr; }
}

/* Pages without a section menu (and product pages) use the full width */
.page-grid.no-side > .side { display: none; }
/* Home page text: readable line length */
.home .rte { padding: 36px 40px; }
.home .rte p, .home .rte ul { max-width: 78ch; }
.home .cats { margin-top: 56px; }
@media (min-width: 961px) {
  .product .gallery { position: sticky; top: 96px; }
}
.form label { display: grid; gap: 6px; }
.form label > span:first-child { font-weight: 600; font-size: 15px; }
.form-sec img { display: block; }

/* ---- round 2 ---------------------------------------------------------------------------------------- */

/* Contact bar above the header (theme_org_* settings) */
.util .wrap { justify-content: space-between; }
.util-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.util-contact a { color: #fff; text-decoration: none; padding: 9px 0; }
.util-contact a:hover { text-decoration: underline; }
.util-contact i { font-style: normal; margin: 0 8px; color: #7f9cc7; }

.hero .btn-ghost { white-space: nowrap; }

/* Service boxes (Müük / Rent / Hooldus from existing pages) */
.section-services { padding-bottom: 8px; }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); transition: background .15s; }
.service:hover { background: var(--paper); color: var(--ink); }
.service .num { font-weight: 700; font-size: 13px; color: var(--orange-dark); }
.service h3 { font-size: clamp(20px, 1.2vw + 14px, 24px); font-weight: 800; color: var(--blue); margin: 0; }
.service p { margin: 0; color: var(--muted); font-size: 16px; }
.service .go { margin-top: auto; color: var(--blue); font-weight: 700; font-size: 20px; }

/* Home: 8 tiles; the rest open in place with the "Kõik kategooriad" toggle. .cat-index is the 404 page's category list */
.home .tile.is-extra { display: none; }
.cat-index { columns: 3; column-gap: 0; border: 1px solid var(--line); background: #fff; margin-top: 8px; }
.cat-index a { display: flex; gap: 14px; align-items: baseline; padding: 11px 18px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); break-inside: avoid; font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; }
.cat-index a span { font-size: 12px; font-weight: 700; color: var(--orange-dark); min-width: 22px; }
.cat-index a:hover { background: var(--blue); color: #fff; }
.cat-index a:hover span { color: #fff; }

/* Band: header image left, blue panel right (mock-up) */
.band { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--blue); color: #fff; }
.band-media { background: var(--navy) center / cover no-repeat; min-height: 280px; }
.band-text { padding: 44px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 44px 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; }
.band-text h2 { font-size: clamp(26px, 2.2vw + 10px, 38px); font-weight: 800; margin: 0; color: #fff; }
.band-text p { margin: 0; color: #d4e0f2; font-size: 18px; }

/* Category toolbar: product count + chips from subcategories */
.toolbar { flex-wrap: wrap; }
.toolbar .count { white-space: nowrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; min-height: 36px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Product page (mock-up order) */
.p-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-code { background: #edf1f7; color: var(--blue); }
.p-head .p-intro { margin: 0; font-size: 18px; color: var(--muted); }
.p-actions { margin-bottom: 24px; }
.docs { border: 1px solid var(--line); background: #fff; }
.doc { display: flex; align-items: center; gap: 14px; padding: 14px 16px; font-weight: 700; color: var(--ink); text-decoration: none; }
.doc + .doc { border-top: 1px dashed #c7ccd5; }
.doc .ft { font-size: 11px; font-weight: 800; color: #fff; background: var(--blue); border-radius: 2px; padding: 6px 7px; min-width: 38px; text-align: center; }
.doc .sz { margin-left: auto; color: var(--blue); }
.doc:hover { background: var(--paper); color: var(--ink); }
.p-desc { margin-top: 40px; }

/* 404 */
.nf .search { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.nf .search input { flex: 1 1 260px; font: 500 17px/1.4 var(--font); border: 1px solid #b9c2cf; border-radius: var(--radius); padding: 12px; min-width: 0; }
.nf-contact { display: flex; flex-wrap: wrap; gap: 0 4px; color: var(--muted); }
.nf-contact i { font-style: normal; margin: 0 8px; }
.page-main .cats { margin-top: 40px; }

/* Footer: tap targets */
.foot li a { display: inline-block; padding: 4px 0; line-height: 1.5; }

@media (max-width: 960px) {
  .services { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cat-index { columns: 2; }
  .band { grid-template-columns: minmax(0, 1fr); }
  .band-media { min-height: 220px; }
  .band-text { padding: 32px var(--gutter) 40px; }
}
@media (max-width: 560px) {
  .util-addr, .util-addr + i { display: none; }
  .cat-index { columns: 1; }
  .foot li a { padding: 10px 0; }
  .foot-col { padding-bottom: 12px; }
  .p-actions .btn { flex: 1 1 100%; }
}

/* ---- round 3 ---------------------------------------------------------------------------------------- */

/* Contact parts: dots between the visible ones only */
.dots > * + *::before { content: "·"; display: inline-block; margin: 0 8px; color: #7f9cc7; text-decoration: none; }
.nf-contact.dots > * + *::before { color: var(--muted); }
.util-contact.dots { flex-wrap: nowrap; min-width: 0; }

@media (max-width: 560px) {
  /* One row on phones: the phone number (tel:) and the languages; address and e-mail drop out */
  .util .wrap { flex-wrap: nowrap; gap: 8px; min-height: 40px; }
  .util-contact .c-addr, .util-contact .c-mail { display: none; }
  .util-contact .c-tel::before { content: none; }
  .util-contact .c-tel { white-space: nowrap; font-weight: 600; }
  .langs { flex-wrap: nowrap; margin-left: auto; }
  .langs a { padding: 9px 5px; font-size: 13px; }
}

/* ---- round 4 ---------------------------------------------------------------------------------------- */

/* The hidden attribute always wins (rules like .form > div { display: grid } would otherwise show it) */
[hidden] { display: none !important; }

/* Hero picture: see "round 6" at the end (one box size for every slide) */

/* Home: "Kõik kategooriad" opens the hidden tiles in place (site.js); without JavaScript it links to Tooted */
.home .tiles.is-expanded .tile.is-extra { display: flex; }
.cat-toggle-arrow { display: inline-block; transition: transform .15s; }
.cat-toggle[aria-expanded="true"] .cat-toggle-arrow { transform: rotate(180deg); }

/* ---- Rent (rental machines from 530_rent_*) ------------------------------------------------------------- */
.rent-hero { background: var(--blue); color: #fff; padding: 28px 32px; margin-bottom: 28px; border-left: 6px solid var(--orange); }
.rent-lead { font-size: clamp(20px, 1.4vw + 14px, 26px); font-weight: 800; margin: 0 0 12px; line-height: 1.25; }
.rent-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; color: #d6e2f3; font-size: 16px; }
.rent-points li { position: relative; padding-left: 26px; }
.rent-points li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 800; }

.rent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.rent-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); display: flex; flex-direction: column; min-width: 0; scroll-margin-top: 96px; }
.rent-card-img { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 16px; border-bottom: 1px solid var(--line-soft); background: #fff; }
.rent-card-img img { max-height: 100%; width: auto; object-fit: contain; }
.rent-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.rent-card h2 { font-size: clamp(20px, 0.8vw + 16px, 24px); font-weight: 800; margin: 0; }
.rent-card h2 a { color: var(--blue); text-decoration: none; }
.rent-card h2 a:hover { color: var(--orange-dark); }
.rent-price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.rent-price strong { font-size: clamp(30px, 1.6vw + 22px, 40px); font-weight: 800; color: var(--ink); line-height: 1; }
.rent-price span { color: var(--muted); font-weight: 600; font-size: 15px; }
.rent-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rent-chips li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; line-height: 1.3; }
.rent-chips span { color: var(--muted); }
.rent-chips strong { color: var(--ink); white-space: nowrap; }
.rent-intro { margin: 0; color: var(--muted); font-size: 16px; }
.rent-list h3 { font-size: 15px; font-weight: 700; margin: 0 0 6px; color: var(--ink); }
.rent-list ul { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.rent-included li { position: relative; padding-left: 22px; margin: 4px 0; }
.rent-included li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.rent-extras li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed #c7ccd5; }
.rent-extras li:last-child { border-bottom: 0; }
.rent-extra-price { color: var(--muted); font-size: 14px; text-align: right; }
.rent-specs { border: 1px solid var(--line); }
.rent-specs summary { cursor: pointer; padding: 10px 14px; font-weight: 700; color: var(--blue); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.rent-specs summary::-webkit-details-marker { display: none; }
.rent-specs summary::after { content: "+"; font-size: 20px; line-height: 1; }
.rent-specs[open] summary::after { content: "–"; }
.rent-specs[open] summary { border-bottom: 1px solid var(--line); }
.rent dl { margin: 0; }
.rent dl .row { display: flex; align-items: baseline; gap: 8px; padding: 9px 14px; border-bottom: 1px dashed #c7ccd5; font-size: 15px; }
.rent dl .row:last-child { border-bottom: 0; }
.rent dl dt { color: var(--muted); flex: 1; display: flex; gap: 8px; }
.rent dl dt::after { content: ""; flex: 1; min-width: 12px; border-bottom: 1px dotted #c9d0db; transform: translateY(-5px); }
.rent dl dd { margin: 0; font-weight: 600; text-align: right; }
.rent-card-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.rent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rent-actions .btn { flex: 1 1 auto; }
.rent-card .rent-actions .btn { padding: 13px 16px; }
.btn-quiet { border-color: var(--line); color: var(--ink); }
.rent-more { font-weight: 700; text-decoration: none; }

.rent-how { margin-top: 40px; background: #fff; border: 1px solid var(--line); padding: 28px 32px; }
.rent-how h2 { font-size: clamp(22px, 1.2vw + 16px, 28px); font-weight: 800; margin: 0 0 18px; }
.rent-how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.rent-how li { display: flex; flex-direction: column; gap: 10px; }
.rent-how p { margin: 0; }
.rent-step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; font-size: 18px; }
.rent-contact { display: flex; flex-wrap: wrap; color: var(--muted); font-size: 15px; }

/* Machine page */
.rent-detail .rent-detail-name { font-size: clamp(26px, 2vw + 16px, 38px); font-weight: 800; color: var(--blue); margin: 0; }
.rent-detail .p-head { gap: 12px; }
.rent-detail .rent-chips { margin-bottom: 20px; }
.rent-detail .rent-actions { margin-bottom: 14px; }
.rent-checked { margin: 0 0 18px; color: var(--muted); font-size: 15px; padding-left: 26px; position: relative; }
.rent-checked::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 800; }
.rent-detail .rent-list { margin-bottom: 16px; }
.rent-product { display: inline-block; font-weight: 700; text-decoration: none; margin-top: 4px; }
.rent-sheet { margin-top: 28px; }

@media (max-width: 1100px) {
  .rent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .rent-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .rent-hero { padding: 22px 18px; }
  .rent-how { padding: 22px 18px; }
  .rent-how ol { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .rent-how li { flex-direction: row; align-items: flex-start; }
  .rent-step { flex: 1; min-width: 0; }
  .rent-step-num { flex: 0 0 36px; width: 36px; height: 36px; }
  .rent-card-body { padding: 16px; }
  .rent-actions .btn { flex: 1 1 100%; }
}
.rent-step { display: flex; flex-direction: column; gap: 8px; }

/* ---- round 5: Küsi pakkumist, Kontakt, catalogue, search ------------------------------------------------- */

/* Form card: a heading above the module_forms form (quote page, Kontakt) */
.form-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--orange); min-width: 0; scroll-margin-top: 96px; }
.form-card > .form { border: 0; padding: 24px 28px 28px; }
.form-card > .form-title, .form-card-head { margin: 0; padding: 24px 28px 0; }
.form-title { font-size: clamp(22px, 1vw + 17px, 28px); font-weight: 800; margin: 0; }
.form-card-head p { margin: 8px 0 0; color: var(--muted); max-width: 60ch; }
.form-card .form input[type=text], .form-card .form input[type=email], .form-card .form input:not([type]), .form-card .form textarea, .form-card .form select { max-width: none; }
.form-card .form button { min-width: 180px; }
.form-card-wide .form { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.form-card-wide .form > div:has(textarea), .form-card-wide .form > .form-error, .form-card-wide .form > div:last-child, .form-card-wide .form > .sc_row { grid-column: 1 / -1; }

/* Quote page: colour panel */
.quote-art { position: relative; overflow: hidden; isolation: isolate; background: var(--blue); color: #fff; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: 300px; border-left: 6px solid var(--orange); }
.quote-art::before { content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; border-radius: 50%; background: var(--orange); right: -150px; bottom: -330px; }
.quote-art::after { content: ""; position: absolute; z-index: -1; width: 760px; height: 760px; border-radius: 50%; right: -250px; bottom: -430px; border: 2px solid rgba(255,255,255,.28); box-shadow: 0 0 0 46px rgba(255,255,255,.05), 0 0 0 48px rgba(255,255,255,.18); }
.quote-art-text { padding: 40px 40px 44px; display: flex; flex-direction: column; justify-content: center; gap: 22px; position: relative; }
.quote-art-text::before { content: ""; width: 120px; height: 18px; background: repeating-linear-gradient(135deg, var(--orange) 0 8px, transparent 8px 16px); }
.quote-lead { margin: 0; font-size: clamp(22px, 1.4vw + 15px, 32px); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; max-width: 26ch; }
.quote-item { margin: 0; display: flex; flex-direction: column; gap: 4px; align-self: flex-start; background: #fff; color: var(--ink); padding: 12px 16px; border-left: 4px solid var(--orange); max-width: 100%; }
.quote-item span { font-size: 13px; font-weight: 700; color: var(--orange-dark); text-transform: uppercase; letter-spacing: .04em; }
.quote-item a, .quote-item strong { font-weight: 800; font-size: 17px; line-height: 1.3; color: var(--blue); text-decoration: none; }
.quote-item a:hover { text-decoration: underline; }
.quote-art-media { display: flex; align-items: center; justify-content: center; padding: 32px 40px 32px 0; }
.quote-art-img { width: min(100%, 300px); aspect-ratio: 1; background: #fff; padding: 18px; display: grid; place-items: center; box-shadow: 14px 14px 0 var(--navy); transform: rotate(-2deg); }
.quote-art-img img { width: 100%; height: 100%; object-fit: contain; display: block; }

.quote-extra { margin-top: 28px; }
.quote-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 28px; }
.quote-next { background: #fff; border: 1px solid var(--line); padding: 26px 26px 28px; }
.quote-next h2 { font-size: clamp(20px, .8vw + 16px, 24px); font-weight: 800; margin: 0 0 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps p { margin: 0; }
.step-num { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 800; }
.call-box { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.call-box p { margin: 0; }
/* Booking page (theme_booking_render): the machine's day price in the "Teie valik" card, link to all machines */
.quote-item .rent-price { margin-top: 4px; }
.quote-item .rent-price strong { font-size: 22px; }
.quote-item .rent-price span { font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--muted); }
.booking-all { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 700; }
.booking-all a { text-decoration: none; }
.booking-all a:hover { text-decoration: underline; }
.call-q { font-weight: 700; }
.call-tel { font-size: 28px; font-weight: 800; color: var(--blue); text-decoration: none; letter-spacing: -.01em; justify-self: start; }
.call-tel:hover { color: var(--orange-dark); }
.call-hours { color: var(--muted); font-size: 15px; }
@media (min-width: 961px) { .quote-next { position: sticky; top: 96px; } }

/* Kontakt: company card with the map */
.contact > * + * { margin-top: 36px; }
.company { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); }
.company-info { padding: 30px 32px 32px; display: flex; flex-direction: column; gap: 20px; }
.company-name { font-size: clamp(22px, 1vw + 17px, 28px); font-weight: 800; color: var(--blue); margin: 0; }
.facts { margin: 0; display: grid; gap: 14px; }
.fact { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.fact dt { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.fact dd { margin: 0; font-weight: 600; font-size: 18px; }
.fact dd a { text-decoration: none; }
.fact dd a:hover { text-decoration: underline; }
.fact-note { display: block; font-weight: 400; font-size: 15px; color: var(--muted); }
.company-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

.map { position: relative; min-height: 340px; background: #e8edf3; border-left: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map-facade { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 28px; text-align: center;
  background-color: #e9eef4;
  background-image: linear-gradient(115deg, transparent 46%, #fff 46%, #fff 49%, transparent 49%), linear-gradient(20deg, transparent 58%, #fff 58%, #fff 60.5%, transparent 60.5%),
    linear-gradient(160deg, transparent 30%, #fdf3ec 30%, #fdf3ec 31.5%, transparent 31.5%),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(0,68,151,.06) 46px 48px), repeating-linear-gradient(90deg, transparent 0 46px, rgba(0,68,151,.06) 46px 48px); }
.map-pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; background: var(--orange); transform: rotate(-45deg); box-shadow: 0 0 0 6px rgba(239,95,25,.18); margin-bottom: 6px; position: relative; }
.map-pin::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #fff; }
.map-addr { margin: 0; font-weight: 800; font-size: 18px; color: var(--ink); background: #fff; padding: 4px 10px; }
.map-note { margin: 0; font-size: 13px; color: var(--muted); max-width: 40ch; background: rgba(255,255,255,.85); padding: 4px 8px; }
.map.is-loaded .map-facade { display: none; }

/* Kontakt: people */
.sec-title { font-size: clamp(22px, 1vw + 17px, 28px); font-weight: 800; margin: 0 0 18px; }
.sec-title::after { content: ""; display: block; width: 44px; height: 4px; background: var(--orange); margin-top: 10px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.person { background: #fff; border: 1px solid var(--line); display: flex; gap: 18px; padding: 20px; align-items: flex-start; min-width: 0; }
.person-avatar { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--blue); display: grid; place-items: center; }
.person-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.initials { color: #fff; font-weight: 800; font-size: 24px; letter-spacing: .02em; }
.person:nth-child(3n+2) .person-avatar { background: var(--navy); }
.person:nth-child(3n) .person-avatar { background: var(--orange); }
.person-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.person-role { margin: 0; font-size: 14px; font-weight: 700; color: var(--orange-dark); line-height: 1.35; }
.person-name { margin: 0; font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: 0; }
.person-links { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; font-size: 16px; }
.person-links a { text-decoration: none; color: var(--blue); display: inline-flex; gap: 8px; padding: 3px 0; overflow-wrap: anywhere; }
.person-links a:hover { text-decoration: underline; }
.person-links .k { color: var(--muted); font-size: 13px; font-weight: 700; min-width: 44px; padding-top: 2px; }

@media (max-width: 960px) {
  .quote-art { grid-template-columns: minmax(0, 1fr); }
  .quote-art-media { padding: 0 24px 32px; justify-content: flex-start; }
  .quote-art-img { width: 200px; }
  .quote-body { grid-template-columns: minmax(0, 1fr); }
  .company { grid-template-columns: minmax(0, 1fr); }
  .map { border-left: 0; border-top: 1px solid var(--line); min-height: 300px; }
}
@media (max-width: 560px) {
  .quote-art { border-left-width: 0; border-top: 6px solid var(--orange); }
  .quote-art-text { padding: 26px 18px 24px; gap: 16px; }
  .quote-art-media { padding: 0 18px 28px; }
  .quote-art-img { width: 160px; padding: 12px; box-shadow: 10px 10px 0 var(--navy); }
  .quote-art::before { width: 360px; height: 360px; right: -160px; bottom: -200px; }
  .quote-art::after { width: 480px; height: 480px; right: -220px; bottom: -260px; }
  .form-card > .form { padding: 18px 16px 20px; }
  .form-card > .form-title, .form-card-head { padding: 20px 16px 0; }
  .form-card-wide .form { grid-template-columns: minmax(0, 1fr); }
  .form-card .form button { width: 100%; }
  .quote-next { padding: 22px 16px; }
  .company-info { padding: 22px 16px 24px; }
  .fact { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .person { padding: 16px; gap: 14px; }
  .person-avatar { flex-basis: 56px; width: 56px; height: 56px; }
  .initials { font-size: 19px; }
}

/* Category tiles: one image box size, the picture contained on white, titles aligned, product count */
.tile { border: 1px solid var(--line); position: relative; overflow: hidden; }
.tile-img { position: relative; padding: 0; aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--line-soft); }
.tile-img img { position: absolute; top: 14px; left: 14px; width: calc(100% - 28px); height: calc(100% - 28px); max-width: none; max-height: none; object-fit: contain; transition: transform .2s; }
.tile:hover .tile-img img { transform: scale(1.04); }
.tile-name { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: start; gap: 4px 10px; padding: 12px 14px 14px; margin-top: 0; flex: 1; transition: background .15s, color .15s; }
.tile-name::after { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 18px; transition: transform .15s; }
.tile-title { grid-column: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; line-height: 1.3; }
.tile-count { grid-column: 1; font-size: 13px; font-weight: 600; color: var(--muted); transition: color .15s; }
.tile:hover { border-color: var(--blue); }
.tile:hover .tile-name { background: var(--blue); color: #fff; }
.tile:hover .tile-name::after { color: #fff; transform: translateX(3px); }
.tile:hover .tile-count { color: #c6d6ee; }
.page .tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 16px; }

/* Tooted: number of categories / products and the search field above the tiles */
.catalog-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--orange); padding: 16px 20px; }
.catalog-stats { margin: 0; font-weight: 600; color: var(--muted); }
.catalog-stats strong { color: var(--ink); font-size: 20px; }
.catalog-head .ss-form { flex: 1 1 360px; max-width: 520px; }
.page-main > .rte:empty + .cats, .page-main > .rte:empty { margin-top: 0; }

/* Category pages: the bar above the products (theme_catalog_bar): back to Tooted, search, the categories as chips */
.cn-count { flex: none; min-width: 30px; text-align: center; font-size: 12px; font-weight: 700; line-height: 1; padding: 4px 7px; border-radius: 999px; background: var(--paper); color: var(--muted); }
.cat-bar { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--orange); margin-bottom: 24px; min-width: 0; }
.cat-bar-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.cat-bar-all { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; color: var(--blue); text-decoration: none; }
.cat-bar-all:hover .cn-name { text-decoration: underline; }
.cat-bar-back { font-size: 24px; line-height: 1; margin-top: -3px; }
.cat-bar-all .cn-count { background: var(--blue); color: #fff; }
.cat-bar .ss-form { flex: 1 1 320px; max-width: 460px; }
.cat-chips { position: relative; min-width: 0; }
.cat-chips ul { list-style: none; margin: 0; padding: 12px 20px; display: flex; gap: 8px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #c3ccd9 transparent; overscroll-behavior-x: contain; }
.cat-chips li { flex: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: border-color .15s, background .15s, color .15s; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip.on .cn-count { background: #fff; color: var(--blue); }
/* Arrows (site.js, wide screens with a mouse): shown only on the side that has more chips */
.cc-arrow { position: absolute; top: 0; bottom: 0; z-index: 1; width: 56px; border: 0; padding: 0; cursor: pointer; color: var(--blue); font: 700 26px/1 var(--font); display: none; align-items: center; }
.cc-prev { left: 0; justify-content: flex-start; padding-left: 10px; background: linear-gradient(90deg, #fff 45%, rgba(255,255,255,0)); }
.cc-next { right: 0; justify-content: flex-end; padding-right: 10px; background: linear-gradient(270deg, #fff 45%, rgba(255,255,255,0)); }
.cat-chips.can-prev .cc-prev, .cat-chips.can-next .cc-next { display: flex; }
.cc-arrow:hover { color: var(--orange); }
@media (hover: none) { .cc-arrow { display: none !important; } }
@media (hover: hover) { .cat-chips ul { scrollbar-width: none; } .cat-chips ul::-webkit-scrollbar { display: none; } }
@media (max-width: 560px) {
  .page .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile-name { padding: 10px 10px 12px; gap: 2px 6px; }
  .tile-name::after { display: none; }
  .tile-title { font-size: 14px; }
  .tile-count { font-size: 12px; }
  .tile-img img { top: 8px; left: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
  .catalog-head { padding: 14px 16px; border-left-width: 4px; }
  .catalog-head .ss-form { flex-basis: 100%; max-width: none; }
  .cat-bar { border-left-width: 4px; margin-bottom: 18px; }
  .cat-bar-top { padding: 12px 14px; }
  .cat-bar .ss-form { flex-basis: 100%; max-width: none; }
  .cat-chips ul { padding: 10px 14px; gap: 6px; }
  .chip { font-size: 14px; padding: 6px 7px 6px 12px; }
}

/* ---- Search ---------------------------------------------------------------------------------------------- */
/* Magnifier (CSS only): a ring and a handle */
.ss-icon { display: inline-block; position: relative; width: 18px; height: 18px; flex: none; }
.ss-icon::before { content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; border: 2.5px solid currentColor; border-radius: 50%; }
.ss-icon::after { content: ""; position: absolute; left: 12px; top: 12px; width: 7px; height: 2.5px; background: currentColor; border-radius: 2px; transform-origin: 0 50%; transform: rotate(45deg); }

.search-toggle { display: flex; align-items: center; justify-content: center; align-self: center; width: 46px; height: 46px; margin-left: 6px; color: #fff; border: 2px solid rgba(255,255,255,.45); border-radius: var(--radius); flex: none; }
.search-toggle:hover, .search-toggle[aria-expanded="true"] { background: #fff; color: var(--blue); border-color: #fff; }

/* The bar under the header row */
.head-search { display: none; background: var(--navy); border-top: 1px solid rgba(255,255,255,.12); }
.head.search-open .head-search { display: block; }
.head-search .wrap { display: flex; align-items: flex-start; gap: 10px; padding-top: 12px; padding-bottom: 12px; min-height: 0; }
.head-search .ss-form { flex: 1; }
.ss-close { flex: none; width: 50px; height: 50px; font: 400 30px/1 var(--font); color: #fff; background: transparent; border: 2px solid rgba(255,255,255,.45); border-radius: var(--radius); cursor: pointer; }
.ss-close:hover { background: #fff; color: var(--blue); }

/* The field */
.ss-form { position: relative; min-width: 0; }
.ss-field { display: flex; align-items: center; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); min-height: 50px; transition: border-color .15s; }
.ss-field:focus-within { border-color: var(--blue); }
.head-search .ss-field { border-color: #fff; }
.ss-field .ss-icon { margin: 0 4px 0 14px; color: var(--muted); }
.ss-input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 17px/1.3 var(--font); color: var(--ink); padding: 12px 10px; outline: 0; -webkit-appearance: none; appearance: none; }
.ss-input::-webkit-search-cancel-button { cursor: pointer; }
.ss-input:focus-visible { outline: 0; }
.ss-submit { align-self: stretch; margin: 4px; padding: 0 18px; font: 700 15px/1 var(--font); color: #fff; background: var(--orange); border: 0; border-radius: 2px; cursor: pointer; }
.ss-submit:hover { background: var(--orange-dark); }

/* Results panel */
.ss-panel { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); background: #fff; color: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--orange); box-shadow: 0 18px 40px rgba(10, 20, 40, .22); max-height: min(70vh, 620px); overflow: auto; overscroll-behavior: contain; text-align: left; }
.ss-group { padding: 6px 0; }
.ss-group + .ss-group { border-top: 1px solid var(--line-soft); }
.ss-group-title { margin: 0; padding: 8px 16px 4px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-dark); }
.ss-opt { display: flex; align-items: center; gap: 12px; padding: 8px 16px; color: var(--ink); text-decoration: none; }
.ss-opt[aria-selected="true"] { background: #eef3fa; box-shadow: inset 3px 0 0 var(--blue); color: var(--ink); }
.ss-thumb { flex: none; width: 44px; height: 44px; border: 1px solid var(--line-soft); background: #fff; display: grid; place-items: center; overflow: hidden; }
.ss-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ss-thumb-none { background: var(--paper); }
.ss-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ss-name { font-weight: 600; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.ss-meta { font-size: 13px; color: var(--muted); line-height: 1.3; }
.ss-code { display: inline-block; font-weight: 700; color: var(--blue); background: #edf1f7; border-radius: 2px; padding: 0 5px; margin-right: 6px; }
.ss-panel mark { background: #ffe3d3; color: inherit; padding: 0; border-radius: 1px; }
.ss-none { margin: 0; padding: 14px 16px; color: var(--muted); font-size: 15px; }
.ss-all { display: block; padding: 12px 16px; border-top: 1px solid var(--line); font-weight: 700; font-size: 15px; text-decoration: none; background: var(--paper); position: sticky; bottom: 0; }
.ss-all:hover { background: var(--blue); color: #fff; }

/* Results page */
.search-page > * + * { margin-top: 28px; }
.ss-page { max-width: 760px; }
.search-summary { margin: 18px 0 0; color: var(--muted); font-weight: 600; }
.search-summary q { color: var(--ink); }
.sec-count { display: inline-block; vertical-align: middle; font-size: 13px; font-weight: 700; background: var(--blue); color: #fff; border-radius: 999px; padding: 3px 9px; margin-left: 6px; letter-spacing: 0; }
.search-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.search-cat { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); padding: 10px 14px 10px 10px; text-decoration: none; color: var(--ink); }
.search-cat:hover { border-color: var(--blue); color: var(--ink); }
.search-cat img, .search-cat-ph { flex: none; width: 60px; height: 60px; object-fit: contain; background: var(--paper); }
.search-cat span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.search-cat strong { font-size: 16px; line-height: 1.3; }
.search-cat small { color: var(--muted); font-size: 13px; }
/* Product cards: the code on the picture top left, "Uus" top right (above the picture, which is placed absolutely).
   The code stays on one line; next to "Uus" it leaves room for it (a code too long for that is cut with "…") */
.card-code, .card-new { position: absolute; top: 0; z-index: 1; font-size: 13px; font-weight: 700; line-height: 1.25; padding: 5px 8px; letter-spacing: .02em; white-space: nowrap; }
.card-code { left: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; color: var(--blue); background: #edf1f7; }
.card-img:has(.card-new) .card-code { max-width: calc(100% - 76px); }
.card-new { right: 0; color: #fff; background: var(--orange-dark); }
@media (max-width: 600px) {
  .card-code, .card-new { font-size: 12px; padding: 4px 6px; letter-spacing: 0; }
  .card-img:has(.card-new) .card-code { max-width: calc(100% - 64px); }
}
.search-page .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.nf .ss-form { margin: 20px 0; max-width: 640px; }

@media (max-width: 960px) {
  .search-toggle { margin-left: auto; width: 44px; height: 44px; }
  .burger { margin-left: 8px; }
  .head.search-open .nav, .head.search-open .head-cta { display: none; }
  .head-search .wrap { padding-top: 10px; padding-bottom: 10px; }
  .head-search .ss-panel { position: static; margin-top: 8px; max-height: calc(100vh - 170px); box-shadow: none; }
}
@media (max-width: 560px) {
  .head-search .wrap { gap: 8px; }
  .ss-close { width: 46px; height: 46px; }
  .ss-field { min-height: 46px; }
  .ss-input { font-size: 16px; padding: 10px 6px; }
  .ss-submit { padding: 0 12px; font-size: 14px; }
  .head-search .ss-submit { display: none; }
  .ss-opt { padding: 8px 12px; gap: 10px; }
  .ss-thumb { width: 40px; height: 40px; }
  .search-page .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media print { .search-toggle, .head-search { display: none !important; } }

/* Header on narrow desktops (961–1180px): the longest menus (LV, FI, SE) plus the search button and "Küsi
   pakkumist" no longer fit in one row, so the menu goes behind the burger; the CTA and the search stay visible. */
@media (max-width: 1280px) and (min-width: 1181px) {
  .nav a { padding: 0 10px; font-size: 15px; }
  .nav a.on::after { left: 10px; right: 10px; }
}
@media (max-width: 1180px) and (min-width: 961px) {
  .nav { display: none; }
  .search-toggle { margin-left: auto; }
  .burger { display: block; margin-left: 8px; }
  .head-cta { padding-left: 8px; }
  .head.open .nav { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--blue); max-height: calc(100vh - 78px); overflow: auto; border-top: 1px solid rgba(255,255,255,.15); }
  .head.open .nav a { padding: 16px var(--gutter); border-bottom: 1px solid rgba(255,255,255,.15); font-size: 17px; }
  .head.open .nav a.on::after { left: var(--gutter); right: auto; width: 40px; bottom: 8px; }
}

/* ---- round 6: pre-go-live review fixes ------------------------------------------------------------------ */

/* Long words never push out of their box (Finnish/Latvian compounds have no hyphenation dictionary in Chrome);
   product names are not hyphenated ("Vär-viprits"): they wrap between words, or inside a word only if it can't fit */
h1, h2, h3, h4 { overflow-wrap: break-word; }
.card-title, .tile-title, .rent-card h2, .search-cat strong, .ss-name, .p-head h1, .person-name { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: anywhere; }

/* Picture boxes keep their proportions whatever the picture (portrait photos used to stretch the box and
   misalign the cards in a row): the picture is placed inside the box, as in the category tiles */
.card-img, .rent-card-img { position: relative; display: block; }
.card-img img, .rent-card-img img { position: absolute; top: 20px; left: 20px; width: calc(100% - 40px); height: calc(100% - 40px); max-width: none; max-height: none; object-fit: contain; }
.rent-card-img img { top: 16px; left: 16px; width: calc(100% - 32px); height: calc(100% - 32px); }
.gallery-main { position: relative; display: block; }
.gallery-main img { position: absolute; top: 32px; left: 32px; width: calc(100% - 64px); height: calc(100% - 64px); max-width: none; max-height: none; object-fit: contain; }

/* Readable line length for longer texts (product and rental descriptions, Firmast) */
.rte p, .rte ul, .rte ol, .rte h1, .rte h2, .rte h3, .rte h4, .rte h5 { max-width: 72ch; }

/* Document links: a long label (a whole parts list typed as the link text) stays on two lines */
.doc-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; }

/* Contact lines inside cards: no "·" separators (they started a new line when the line wrapped), a gap instead */
.rent-contact.dots > * + *::before, .nf-contact.dots > * + *::before { content: none; }
.rent-contact, .nf-contact { gap: 2px 18px; }

/* A page with nothing to show (theme_empty_page_html) */
.empty-note .empty-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* Footer: company contact block, "all categories" link, copyright line */
.foot-contact { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 1.5; }
.foot-contact li { padding: 3px 0; }
.foot-contact a { line-height: 1.5; font-size: 15px; }
.foot-all { display: inline-block; margin-top: 10px; font-weight: 700; color: #fff; }
.foot-bottom .wrap { padding-top: 0; padding-bottom: 0; }

/* Phones: product and rental machine pages keep the main action and the phone at the bottom of the screen */
.m-cta { display: none; }
@media (max-width: 960px) {
  .m-cta { display: flex; gap: 8px; position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(10, 20, 40, .12); }
  .m-cta .btn { padding: 13px 14px; }
  .m-cta .btn-orange { flex: 1 1 auto; }
  .m-cta .m-cta-call { flex: 0 0 auto; }
  .has-m-cta .foot { padding-bottom: 76px; }
}

@media (max-width: 560px) {
  /* Spec table: label left, value right also on phones (the values are short) */
  .sheet .row { flex-wrap: nowrap; }
  .sheet dd { text-align: right; width: auto; }
  /* Kontakt buttons: full width, one under the other */
  .company-actions .btn { flex: 1 1 100%; }
  /* Footer on phones: contact block, then the menu and the catalogue link side by side; the category list is on Tooted */
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; }
  .foot-col.foot-about { grid-column: 1 / -1; }
  .foot-cats ul { display: none; }
  .foot li a { padding: 6px 0; }
}
