/* Keila Kallur OÜ — fotokeskne minimalism
   Fondid laetakse failist /assets/css/fonts.css (DM Sans + Inter, kohalikud WOFF2). */

:root {
  --white: #FFFFFF;
  --band: #F7F7F5;
  --quiet: #F1F1EE;
  --ink: #140B0B;
  --text: #2A2626;
  --muted: #55514F;
  --line: #E3E3DF;
  --field-line: #8A8684;
  --crimson: #B50000;
  --crimson-dark: #8E0000;
  --night: #101113;
  --ok: #1E5B33;
  --ok-bg: #EEF5F0;
  --err-bg: #FBEFEF;
  --wrap: 1200px;
  --gutter: 20px;
  --font-head: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "calt" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; }
p { margin: 0; }
button, input, select, textarea { font: inherit; font-feature-settings: "calt" 0; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  font-feature-settings: "calt" 0;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  overflow-wrap: break-word;
}

:focus-visible {
  outline: 3px solid var(--crimson);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

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

.label {
  display: block;
  margin-bottom: 20px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson);
}

.icon { width: 18px; height: 18px; flex: none; }

.link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--crimson);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  white-space: nowrap;
}
.link:hover { color: var(--crimson); }

/* Nupud */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: 2px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary,
.btn-primary:visited {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #FFFFFF;
}
.btn-primary:hover { background: var(--crimson-dark); border-color: var(--crimson-dark); color: #FFFFFF; }
.btn-outline-light { border-color: #FFFFFF; color: #FFFFFF; background: transparent; }
.btn-outline-light:hover { background: #FFFFFF; color: var(--ink); }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline-dark:hover { background: var(--ink); color: #FFFFFF; }
.btn[disabled] { opacity: .65; cursor: progress; }
.hero .btn:focus-visible { outline-color: #FFFFFF; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 20px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.text-link > span {
  padding-bottom: 4px;
  border-bottom: 2px solid var(--crimson);
}
.text-link:hover { color: var(--crimson); }
.text-link .arrow { width: 18px; height: 18px; flex: none; color: var(--crimson); transition: transform .2s ease; }
.text-link:hover .arrow { transform: translateX(4px); }
.text-link.back:hover .arrow { transform: translateX(-4px); }

/* Päis */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
}
.logo {
  flex: 0 1 164px;
  min-width: 0;
  margin-right: auto;
  display: flex;
  align-items: center;
  min-height: 44px;
}
.logo img { width: 100%; height: auto; }

.main-nav { display: none; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 2px;
  background: var(--crimson);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav-link:hover::after,
.nav-link[aria-current]::after,
.nav-link.is-active::after,
.nav-toggle[aria-expanded="true"]::after { transform: scaleX(1); }

/* Teenuste rippmenüü (lauaarvuti).
   JavaScriptiga avab nupp paneeli. Ilma JavaScriptita on nupu asemel
   tavaline link /teenused/ ja paneel avaneb hiirega või klaviatuuriga. */
.has-sub { position: relative; }
.nav-toggle {
  display: none;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.js .nav-toggle { display: inline-flex; }
.js .nav-fallback { display: none; }
.nav-toggle[aria-expanded="true"] { color: var(--crimson); }
.chev {
  flex: none;
  width: 14px;
  height: 14px;
  transition: transform .2s ease;
}
[aria-expanded="true"] > .chev { transform: rotate(180deg); }

.subnav {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: -22px;
  z-index: 60;
  min-width: 296px;
  padding: 8px;
  background: #FFFFFF;
  border: 1px solid #E7E5E1;
  border-radius: 2px;
  box-shadow: 0 16px 36px -14px rgba(20, 11, 11, .2), 0 2px 6px rgba(20, 11, 11, .04);
}
.subnav.is-open,
html:not(.js) .has-sub:hover .subnav,
html:not(.js) .has-sub:focus-within .subnav { display: block; }
html:not(.js) .subnav::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -8px;
  height: 8px;
}
.main-nav .subnav ul { display: block; }
.subnav .sub-all {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #E7E5E1;
}
.subnav-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 2px;
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.sub-all .subnav-link { font-weight: 600; }
.subnav-link:hover { background: var(--band); color: var(--crimson); }
.subnav-link:focus-visible { outline-offset: -3px; }
.subnav-link[aria-current] { color: var(--crimson); font-weight: 600; }
.subnav-link[aria-current]::before {
  content: "";
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 2px;
  background: var(--crimson);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--crimson);
  border-radius: 2px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--crimson);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { background: var(--crimson); color: #FFFFFF; }
.header-phone .num { display: none; }

.menu-toggle {
  flex: none;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.js .menu-toggle { display: inline-flex; }
.menu-toggle .bars,
.menu-toggle .bars::before,
.menu-toggle .bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform .2s ease, background-color .2s ease;
}
.menu-toggle .bars { position: relative; }
.menu-toggle .bars::before,
.menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle .bars::before { top: -6px; }
.menu-toggle .bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobiilimenüü.
   Ilma JavaScriptita on menüü päise all alati nähtav lingirida.
   JavaScriptiga (html.js) muutub see nupust avatavaks paneeliks. */
.mobile-menu { border-top: 1px solid var(--line); background: var(--white); }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; column-gap: 24px; }
.menu-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.menu-link[aria-current],
.menu-link.is-active { color: var(--crimson); }

/* Teenuste alammenüü mobiilimenüüs.
   Ilma JavaScriptita jääb nähtavaks ainult link /teenused/. */
.menu-sub-toggle {
  display: none;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.menu-sub-toggle .chev { width: 18px; height: 18px; }
.mobile-menu .menu-sub { display: none; }
.menu-sub-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 6px 0 6px 16px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
  text-decoration: none;
}
.menu-sub .sub-all .menu-sub-link { font-weight: 600; color: var(--ink); }
.menu-sub-link:hover,
.menu-sub .menu-sub-link[aria-current] { color: var(--crimson); }
.menu-sub .menu-sub-link[aria-current] { font-weight: 600; }
.mobile-menu .menu-cta { display: none; }
html:not(.js) .site-header { position: static; }

.js .mobile-menu {
  display: none;
  position: absolute;
  left: 0; right: 0; top: 100%;
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px -18px rgba(20, 11, 11, .25);
}
.js .mobile-menu.is-open { display: block; }
.js .mobile-menu-inner { padding-top: 4px; padding-bottom: 24px; }
.js .mobile-menu ul { display: block; margin-bottom: 20px; }
.js .mobile-menu li { border-bottom: 1px solid var(--line); }
.js .menu-link { min-height: 60px; font-size: 19px; }
.js .menu-fallback { display: none; }
.js .menu-sub-toggle { display: flex; }
.js .mobile-menu .menu-sub { display: none; margin: 0; padding: 0 0 12px; }
.js .mobile-menu .menu-sub.is-open { display: block; }
.js .mobile-menu .menu-sub li { border-bottom: 0; }
.js .mobile-menu .menu-sub .sub-all {
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid #E7E5E1;
}
.js .mobile-menu .menu-cta {
  display: flex;
  width: 100%;
  min-height: 54px;
  padding: 14px 24px;
  font-size: 17px;
}

/* Avalehe hero: mobiilis foto üleval, tekst tumedal plokil all */
.hero {
  position: relative;
  background: var(--night);
  color: #FFFFFF;
}
.hero-media {
  position: relative;
  aspect-ratio: 13 / 10;
  overflow: hidden;
}
.hero-media picture { width: 100%; height: 100%; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% 50%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(16,17,19,0) 62%, rgba(16,17,19,.7) 88%, #101113 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  padding-top: 28px;
  padding-bottom: 48px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFFFFF;
}
.hero-eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 2px;
  background: #E0201B;
}
.hero h1 {
  color: #FFFFFF;
  font-size: clamp(2rem, 8.6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.06;
}
.hero-lead {
  margin-top: 20px;
  max-width: 34em;
  font-size: 17px;
  line-height: 1.6;
  color: #F0F0EE;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

/* Põhifaktid */
.facts { background: var(--band); border-bottom: 1px solid var(--line); }
.facts-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 12px 0;
}
.fact { padding: 22px 0; border-top: 1px solid var(--line); }
.fact:first-child { border-top: 0; }
.fact dt {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.2;
}
.fact dd {
  margin: 8px 0 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* Sektsioonid */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.tinted { background: var(--band); }
.section h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-intro { margin-top: 18px; font-size: 19px; color: var(--muted); }

/* Teenuste 2x2 võrk */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service {
  position: relative;
  background: var(--white);
  padding: 32px 0;
}
.service-num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--crimson);
}
.service h3 { font-size: 24px; letter-spacing: -0.015em; line-height: 1.2; }
/* Nool on alati rea paremas servas ja esimese tekstirea kõrgusel,
   nii et kahele reale murduv pealkiri ei nihuta seda. */
.service h3 a {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
  text-decoration: none;
}
.service h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.service .arrow {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: calc((1.2em - 20px) / 2);
  color: var(--crimson);
  transition: transform .2s ease;
}
.service:hover .arrow { transform: translateX(5px); }
.service:hover h3 a { color: var(--crimson); }
.service p { margin-top: 12px; max-width: 30em; color: var(--muted); }

/* Kaheveeruline tekstiplokk (pealkiri vasakul, tekst paremal) */
.split { display: grid; gap: 24px; }
.split-text { font-size: 19px; line-height: 1.65; color: var(--text); }
.split-text p + p { margin-top: 1em; }

/* Lõpu kontaktriba */
.contact-bar { background: var(--quiet); padding: 64px 0; }
.contact-grid { display: grid; gap: 32px; }
.contact-bar h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.contact-bar p { margin-top: 16px; max-width: 36em; color: #3F3B3A; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; }

/* Alamlehe päiseriba */
.page-head {
  background: var(--band);
  border-bottom: 1px solid var(--line);
  padding: 36px 0 48px;
}
.crumbs { margin-bottom: 20px; }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.crumbs li { display: inline-flex; align-items: center; min-height: 44px; color: var(--crimson); }
.crumbs li + li::before {
  content: "";
  width: 18px;
  height: 1px;
  margin: 0 12px;
  background: #B9B6B2;
}
.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}
.crumbs a:hover { color: var(--crimson); }
.page-head h1 {
  max-width: 18em;
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  letter-spacing: -0.025em;
  line-height: 1.06;
}
.page-lead {
  margin-top: 20px;
  max-width: 36em;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

/* Materjalide tabel */
.materials {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.material {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.material h3 { font-size: 22px; letter-spacing: -0.015em; line-height: 1.25; }
.material h3 a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.material h3 a::after { content: ""; position: absolute; inset: 0; }
.material .arrow { width: 18px; height: 18px; flex: none; color: var(--crimson); transition: transform .2s ease; }
.material:hover h3 a { color: var(--crimson); }
.material:hover .arrow { transform: translateX(4px); }
.material p { color: var(--muted); }

/* Tellimise sammud */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--line);
}
.step { padding: 28px 0; border-bottom: 1px solid var(--line); }
.step-num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--crimson);
}
.step h3 { font-size: 22px; letter-spacing: -0.015em; line-height: 1.25; }
.step p { margin-top: 10px; color: var(--muted); }

/* Materjalilehe sisu */
.detail-grid { display: grid; gap: 48px; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.prose h2:not(:first-child) { margin-top: 56px; }
.prose > p { margin-top: 20px; max-width: 36em; font-size: 18px; }
.uses {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.uses li {
  position: relative;
  padding: 16px 0 16px 34px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  color: var(--text);
}
.uses li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(16px + .82em);
  width: 18px;
  height: 2px;
  background: var(--crimson);
}
.cta-card {
  align-self: start;
  padding: 28px 24px 24px;
  background: var(--band);
  border: 1px solid var(--line);
  border-top: 2px solid var(--crimson);
}
.cta-card h2 { font-size: 26px; letter-spacing: -0.015em; }
.cta-card p { margin-top: 12px; color: #3F3B3A; }
.cta-card .cta-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.cta-card .btn { width: 100%; padding-left: 16px; padding-right: 16px; }
.back-row { margin-top: 48px; }
.back-row .text-link { margin-top: 0; }

/* Võti-väärtus tabel */
.details { margin: 0; border-top: 1px solid var(--line); }
.details > div {
  display: grid;
  gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.details dt {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.details dd { margin: 0; font-size: 18px; color: var(--ink); overflow-wrap: anywhere; }
.details dd .link { display: inline-flex; align-items: center; min-height: 44px; }

/* Firmast: panoraamfoto */
.panorama { margin-top: 0; margin-bottom: 0; }
.panorama img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: 50% 50%;
}

/* Kontakt */
.contact-layout { display: grid; gap: 56px; }
.contact-info h2 { font-size: clamp(1.5rem, 2.6vw, 1.85rem); margin-bottom: 20px; }
.contact-info h2:not(:first-child) { margin-top: 48px; }
.big-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.big-phone + .details { margin-top: 20px; }
.big-phone .icon { width: 24px; height: 24px; color: var(--crimson); }
.big-phone:hover { color: var(--crimson); }

.form-card {
  padding: 28px 20px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--crimson);
}
.form-card h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.form-note { margin-top: 10px; font-size: 15px; color: var(--muted); }
.form { margin-top: 28px; display: grid; gap: 22px; }
.form .row-2 { display: grid; gap: 22px; min-width: 0; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.field .req { color: var(--crimson); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid var(--field-line);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.4;
}
.field textarea { min-height: 148px; resize: vertical; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23140B0B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.field ::placeholder { color: #6B6765; opacity: 1; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--ink); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--crimson);
  outline-offset: 1px;
  border-color: var(--crimson);
}
.field .hint { font-size: 14.5px; color: var(--muted); }
.field [aria-invalid="true"] { border-color: var(--crimson); border-width: 2px; padding: 12px 13px; }
.field-error { font-size: 15px; font-weight: 500; color: var(--crimson); }
.field-error:empty { display: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: grid; gap: 18px; }
.form-footer .btn { width: 100%; }
.form-status:empty { display: none; }
.form-status {
  padding: 16px 18px;
  border-left: 3px solid var(--ok);
  background: var(--ok-bg);
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 500;
}
.form-status.is-error { border-left-color: var(--crimson); background: var(--err-bg); }
.form-status:focus { outline: none; }
.noscript-note { font-size: 15px; color: var(--muted); }

/* Vealeht */
.error-page { padding: 72px 0 96px; }
.error-page h1 { font-size: clamp(2.3rem, 7vw, 4rem); letter-spacing: -0.025em; }
.error-page p { margin-top: 20px; max-width: 34em; font-size: 19px; color: var(--muted); }
.error-page .btn { margin-top: 32px; }

/* Jalus */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  font-size: 15.5px;
  line-height: 1.6;
  color: #3F3B3A;
}
.footer-grid { display: grid; gap: 28px; }
.footer-logo { width: 190px; height: auto; }
.footer-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-top: 4px; }
.site-footer .footer-contacts li { margin-top: 0; }
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--crimson);
  text-underline-offset: 4px;
}
.site-footer a:hover { color: var(--crimson); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: #4A4645;
}

/* Väiksed tahvlid */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .hero-media { aspect-ratio: 16 / 9; }
  .hero-actions, .contact-actions { flex-direction: row; flex-wrap: wrap; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
  .fact:nth-child(2) { border-top: 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service { padding: 40px 32px 44px 0; }
  .service:nth-child(even) { padding-left: 32px; padding-right: 0; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .page-head { padding: 44px 0 64px; }
  .material { grid-template-columns: 220px 1fr; gap: 32px; align-items: baseline; padding: 24px 0; }
  .details > div { grid-template-columns: 180px 1fr; gap: 24px; align-items: baseline; padding: 16px 0; }
  .details dd .link { min-height: 0; }
  .cta-card { padding: 36px 32px 32px; }
  .cta-card .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .cta-card .btn { width: auto; }
  .form-card { padding: 40px 36px 44px; }
  .form .row-2 { grid-template-columns: 1fr 1fr; gap: 22px 20px; }
  .form-footer .btn { width: auto; justify-self: start; }
  .panorama img { aspect-ratio: 1920 / 547; }
  .site-footer a { min-height: 0; }
  .site-footer li,
  .site-footer .footer-contacts li { margin-top: 4px; }
}

/* Lauaarvuti */
@media (min-width: 960px) {
  :root { --gutter: 40px; }
  html { scroll-padding-top: 96px; }

  .header-row { min-height: 80px; gap: 36px; }
  .logo { flex-basis: 222px; margin-right: auto; }
  .main-nav { display: block; }
  .main-nav ul {
    display: flex;
    align-items: center;
    gap: 34px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .header-phone {
    min-height: 48px;
    padding: 0 0 0 28px;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
  }
  .header-phone:hover { background: transparent; color: var(--crimson); }
  .header-phone .icon { color: var(--crimson); }
  .header-phone .num { display: inline; }
  .header-phone .short { display: none; }
  .menu-toggle, .mobile-menu { display: none !important; }
  html:not(.js) .site-header { position: sticky; }

  /* Täislaiuses fotoga hero.
     Tume kate on seotud tekstiveeru parema servaga (--edge), mitte
     protsendiga: nii jääb sissejuhatava teksti kontrast igal laiusel
     valge veoki kohal vähemalt 7:1. */
  .hero {
    --text-w: 480px;
    --edge: calc(var(--gutter) + var(--text-w));
    display: flex;
    align-items: flex-end;
    min-height: clamp(580px, 84vh, 800px);
  }
  .hero-media {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }
  .hero-media img { object-position: 60% 42%; }
  .hero-media::after {
    background:
      linear-gradient(to right,
        rgba(12,13,15,.93) 0,
        rgba(12,13,15,.9) calc(var(--edge) - 90px),
        rgba(12,13,15,.8) var(--edge),
        rgba(12,13,15,.34) calc(var(--edge) + 130px),
        rgba(12,13,15,0) calc(var(--edge) + 280px)),
      linear-gradient(to top, rgba(12,13,15,.5) 0%, rgba(12,13,15,0) 34%);
  }
  .hero-content { padding-top: 120px; padding-bottom: 76px; }
  .hero-text { max-width: var(--text-w); }
  .hero h1 { font-size: clamp(2.6rem, 4.3vw, 3.6rem); }
  .hero-lead { font-size: 18px; max-width: 30em; }
  .hero-actions { margin-top: 36px; gap: 14px; }

  .facts-grid { grid-template-columns: repeat(4, 1fr); column-gap: 0; padding: 0; }
  .fact { padding: 44px 32px; border-top: 0; border-left: 1px solid var(--line); }
  .fact:first-child { padding-left: 0; border-left: 0; }
  .fact:last-child { padding-right: 0; }

  .section { padding: 120px 0; }
  .section.compact { padding: 96px 0; }
  .section-head { margin-bottom: 56px; }
  .service { padding: 52px 56px 56px 0; }
  .service:nth-child(even) { padding-left: 56px; padding-right: 0; }
  .service h3 { font-size: 28px; }

  .split { grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; }
  .split-text { font-size: 21px; }
  .split-text.plain { font-size: 19px; }

  .contact-bar { padding: 88px 0; }
  .contact-grid { grid-template-columns: 1fr auto; gap: 64px; align-items: center; }
  .contact-actions { flex-wrap: nowrap; }

  .page-head { padding: 56px 0 88px; }
  .crumbs { margin-bottom: 28px; }
  .crumbs li, .crumbs a { min-height: 32px; }
  .page-lead { font-size: 20px; }

  .material { grid-template-columns: 300px 1fr; padding: 28px 0; }
  .material h3 { font-size: 24px; }
  .steps { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .step { padding: 44px 40px 48px; border-bottom: 0; border-left: 1px solid var(--line); }
  .step:first-child { padding-left: 0; border-left: 0; }
  .step:last-child { padding-right: 0; }

  .detail-grid { grid-template-columns: 7fr 5fr; gap: 80px; align-items: start; }
  .cta-card { position: sticky; top: 112px; }
  .cta-card .cta-actions { flex-direction: column; }
  .cta-card .btn { width: 100%; }
  .back-row { margin-top: 72px; }

  .contact-layout { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .form-card { padding: 48px 48px 52px; }

  .error-page { padding: 120px 0 160px; }

  .site-footer { padding: 64px 0 36px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
}

@media (min-width: 1200px) {
  .hero {
    --text-w: 560px;
    --edge: calc(max(40px, (100vw - 1200px) / 2 + 40px) + var(--text-w));
  }
  .hero h1 { font-size: clamp(2.9rem, 4.3vw, 3.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
