/* =====================================================================
   KARMORIX — site styles
   Desktop: 1440px design frame, centred, full-width colour bands.
            Between 1024–1439px the frame is scaled to the viewport (main.js).
   Mobile:  ≤1023px (phones + tablets), fluid flow layout.
   ===================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Sofia Pro";
  src: url("../fonts/SofiaPro-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sofia Pro";
  src: url("../fonts/SofiaPro-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sofia Pro";
  src: url("../fonts/SofiaPro-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Stara (licensed, Yukita Creative) — the body/content font. The family ships no Regular
   (lightest cut is Medium, usWeightClass 500), so Medium serves both 400 and 500 to avoid
   browser-synthesised faux-light. Sofia Pro stays in the stack only as a fallback. */
@font-face {
  font-family: "Stara";
  src: url("../fonts/Stara-Medium.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Stara";
  src: url("../fonts/Stara-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Stara";
  src: url("../fonts/Stara-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Stand-in for Microgramma Extd D until the licensed files are added: Michroma for the
   Medium weight (nav, header button), Russo One for Bold (headings, stats, pill buttons).
   Both are Google Fonts (OFL), self-hosted so one family name carries both weights.
   To switch to the real font, add @font-face rules for "Microgramma Extd D" here and set
   --display-scale to 1 below; the stacks already list it first. */
@font-face {
  font-family: "Karmorix Display";
  src: url("../fonts/michroma.ttf") format("truetype");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Karmorix Display";
  src: url("../fonts/russo-one.ttf") format("truetype");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

/* Navbar + header button: Michroma only (single weight), so the bold active item is
   a synthesised bold of the same face instead of jumping to Russo One — in Figma the
   whole menu is one family (Microgramma Extd D Medium, active item Bold). */
@font-face {
  font-family: "Karmorix Nav";
  src: url("../fonts/michroma.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* 2026-10-21 palette update (Figma "muudatustega" frames): the sage #95b38d
     bands became brand green #045903, with a lime→green gradient on the heroes,
     CTA/footer and inquiry bands, and lime #b7f86e for buttons and accents. */
  --green-800: #045903;
  --green-200: #cce0cd;
  --green-900: #12260d;
  --lime: #d2f6a4;
  --accent: #b7f86e;
  --brand-gradient: linear-gradient(180deg, #d2f6a4 0%, #045903 100%);
  --text-primary: #050505;
  --text-muted: #a0a0a0;
  --text-inverse: #ffffff;
  --background-subtle: #ffffff;
  --border-input: #c8c4b0;

  /* Figma (Oct 2026): display = Microgramma Extd D, body = Stara. Stara is licensed and
     self-hosted (@font-face above, 2026-10-23); Microgramma is not licensed yet, so
     Michroma (Google Fonts) stands in for it. Drop @font-face rules for the real
     Microgramma files above and the display stack picks them up unchanged. Cabinet Grotesk stays where the Figma still uses it
     (form headings, send button, table header, list items, topic tabs). */
  --font-display: "Microgramma Extd D", "Karmorix Display", "Cabinet Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-display-alt: "Cabinet Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-nav: "Microgramma Extd D", "Karmorix Nav", "Cabinet Grotesk", "Helvetica Neue", Arial, sans-serif;
  --nav-size: 12.5px; /* Figma 15px Microgramma Extd D; Michroma is wider, see .navbar__item */
  --font-body: "Stara", "Sofia Pro", "Helvetica Neue", Arial, sans-serif;
  /* Russo One sets a little narrower than Microgramma Extd D, so display sizes are the Figma
     values × this factor. Set it to 1 once the real Microgramma files are in place. */
  --display-scale: 1.05;
  --font-logo: "Encode Sans", Arial, sans-serif;
  --font-wordmark: "Source Sans Pro", "Source Sans 3", Arial, sans-serif;
}

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

html, body { margin: 0; padding: 0; }

body {
  background: #fff;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

p, h1, h2, h3 { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; }
button { font: inherit; }

/* Breakpoint helpers: desktop by default, mobile overrides at the bottom */
.mobile-only,
.mobile-header,
.mobile-menu,
.round-button__mobile,
.footer__divider-m,
.footer__contact-divider { display: none; }

body.menu-open { overflow: hidden; }

.page {
  width: 100%;
  min-width: 1440px;
  zoom: var(--page-scale, 1);
  display: flex;
  flex-direction: column;
  gap: 110px;
}

/* Sub-pages manage their own vertical rhythm */
.page--flow { gap: 0; }

/* 1440px design frame, centred inside full-width bands */
.hero__inner,
.intro,
.stats,
.facilities,
.contact__content,
.footer,
.frame {
  width: 1440px;
  margin: 0 auto;
}

/* =====================================================================
   HERO / HEADER
   ===================================================================== */
.hero {
  width: 100%;
  /* Landing hero runs green → lime top-down (dark to light); the contact band and
     footer at the end of the page run the other way (lime → green). */
  background: linear-gradient(180deg, var(--green-800) 0%, var(--lime) 100%);
  overflow: hidden;
}

/* Kontakt hero keeps lime → green so its form labels stay on the green end. */
.hero:has(.hero__inner--kontakt) { background: var(--brand-gradient); }

.hero__inner {
  position: relative;
  height: 943px;
}

.hero__visual { display: contents; }

.hero__pattern {
  position: absolute;
  top: 0;
  right: -20px;
  width: 872px;
  height: 773px;
}

.logo {
  position: absolute;
  left: 89.1px;
  top: 38px;
  padding-right: 24px;
  line-height: 0;
}

.logo img {
  display: block;
  width: auto;
  height: 50px;
}

.navbar {
  position: absolute;
  left: calc(50% - 0.45px);
  top: 37.8px;
  transform: translateX(-50%);
  width: max-content;
  height: 50.4px;
  padding: 0 8px;
  background: var(--background-subtle);
  border-radius: 100px;
  display: flex;
  align-items: center;
  z-index: 5;
}

/* Items are sized by their text + 12px side padding (Figma "Navbar item": padding 0 12,
   height 34, Microgramma Extd D 15). Michroma sets wider than Microgramma, so 12.5px
   gives the same item widths and the same 575px pill as the Figma frame. */
.navbar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 34.4px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: var(--nav-size);
  line-height: 1;
  color: var(--text-primary);
  white-space: nowrap;
  transition: border-color 0.15s;
}

.navbar__item--active {
  border-color: var(--text-primary);
  font-weight: 700;
  font-size: var(--nav-size);
}

/* Hover ring moves to the hovered item (Figma "menu / hover" states) */
.navbar__item:hover { border-color: var(--text-primary); }
.navbar:hover .navbar__item--active:not(:hover) { border-color: transparent; }

.navbar__item--dropdown img {
  width: 5.98px;
  height: 3.45px;
}

/* Ettevõttest → Tule tööle dropdown */
.navbar__group { position: relative; }
.navbar__group > .navbar__item { width: 100%; }
.navbar__group:hover > .navbar__item { border-color: var(--text-primary); }

/* invisible bridge so the pointer can travel from the item to the dropdown */
.navbar__group::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 16px;
}

.navbar__dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 16px);
  display: none;
}

.navbar__group:hover .navbar__dropdown {
  display: block;
  animation: fade-up 0.2s ease both;
}

.navbar__dropdown .navbar__item {
  min-width: 100%;
  background: var(--background-subtle);
  border-color: var(--text-primary);
}

.hero--light .navbar__dropdown .navbar__item { background: var(--lime); }

.cta-group {
  position: absolute;
  left: calc(83.33% - 57px);
  top: 37.5px;
  width: 207px;
  height: 51px;
  padding: 8.1px;
}

.cta-group__bg {
  position: absolute;
  inset: 0;
  width: 207px;
  height: 51px;
}

.cta-group__button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 138.6px;
  height: 34.2px;
  background: var(--text-primary);
  border-radius: 100px;
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: var(--nav-size);
  line-height: 1;
  color: var(--text-inverse);
  transition: background-color 0.15s;
}

.cta-group__button:hover { background: var(--green-800); }

/* Language (globe) hit-area over the right end of the container */
.cta-group__lang {
  position: absolute;
  right: 0;
  top: 0;
  width: 57px;
  height: 51px;
  border-radius: 0 25.5px 25.5px 0;
}

.hero:not(.hero--light) .cta-group:has(.cta-group__lang:hover) .cta-group__bg {
  content: url("../img/button-container-hover.svg");
}

.hero__title {
  position: absolute;
  left: calc(37.5% - 451px);
  top: 159px;
  width: 938px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(84px * var(--display-scale));
  line-height: 1.2;
  letter-spacing: 0.5px;
  background: linear-gradient(137.43deg, #ffffff 55.426%, var(--green-200) 87.88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  overflow-wrap: break-word;
}

.hero__lead {
  position: absolute;
  left: 6.18%;
  top: 63.1%;
  width: 374px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-inverse);
}

/* Dark gradient under the photo (multiply). Level pill, measured from the
   Figma render: centre 11px left and 75.5px below the photo's centre. */
.hero__shadow {
  position: absolute;
  left: 600.5px;
  top: 515.75px;
  width: 769.4px;
  height: 347.5px;
  border-radius: 194.9px;
  background: linear-gradient(178.09deg, rgba(211, 233, 213, 0) 22.745%, rgba(3, 3, 3, 0.8) 100.92%);
  mix-blend-mode: multiply;
}

/* Pill photo (level, no rotation) */
.hero__image {
  position: absolute;
  left: 608px;
  top: 392.5px;
  width: 776.5px;
  height: 443px;
  border-radius: 221.5px;
  overflow: hidden;
}

.hero__image img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  translate: -50% -50%;
}

/* 138px circle button; the SVG includes its drop shadow so it overflows the box */
.round-button {
  position: absolute;
  width: 138px;
  height: 138px;
}

.round-button img {
  position: absolute;
  left: -50%;
  top: -30%;
  width: 276px;
  height: 276px;
  max-width: none;
}

.hero__button {
  left: calc(83.33% - 3px);
  top: 355px;
}

/* Hover: circle turns white (Figma "btn-arrow / hover"), with a slight lift */
.round-button { transition: scale 0.25s ease; }
.round-button:hover { scale: 1.05; }
.round-button:hover .round-button__desktop { content: url("../img/hero-button-hover.svg"); }

/* --- Light header variant (sub-pages: white hero, green nav) --- */
.hero--light { background: #fff; }
.hero--light .navbar { background: var(--lime); }
.hero--light .navbar__item--active { border-color: #000; }
.hero--light .cta-group__button {
  background: #fff;
  color: var(--text-primary);
}

.hero--light .cta-group__button:hover { background: var(--lime); }

.hero__title--dark {
  top: 160px;
  background: linear-gradient(133.35deg, #050505 59.291%, #ffffff 98.391%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* =====================================================================
   HOME — intro
   ===================================================================== */
.intro {
  display: flex;
  gap: 350.1px;
  align-items: flex-start;
  height: 427px;
  padding: 0 90px;
}

.intro__aside {
  display: flex;
  flex-direction: column;
  gap: 14.8px;
  width: 187.2px;
  flex-shrink: 0;
}

.intro__aside-inner {
  display: flex;
  flex-direction: column;
  gap: 186px;
  width: 334px;
  height: 331px;
}

.intro__spacer { height: 23.4px; }

.intro__note {
  width: 294.3px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
}

.pill-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  padding: 18px 32px;
  background: var(--accent);
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  color: var(--text-primary);
  white-space: nowrap;
  transition: background-color 0.15s;
}

.pill-button:hover { background: var(--lime); }

.intro__main {
  display: flex;
  flex-direction: column;
  gap: 60px;
  width: 706.5px;
  flex-shrink: 0;
}

.intro__title {
  width: 738px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(52px * var(--display-scale));
  line-height: 1.2;
}

.intro__text {
  width: 702.9px;
  font-size: 20px;
  line-height: 1.5;
}

/* =====================================================================
   HOME — statistics
   ===================================================================== */
.stats {
  position: relative;
  height: 309px;
  text-align: center;
  color: var(--green-800);
}

.stats__column {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stats__column--a { left: 90.9px;  top: 0.5px;  width: 396px;   padding: 80px; }
.stats__column--b { left: 505px;   top: 80px;   width: 419.4px; padding: 0 80px; }
.stats__column--c { left: 950.4px; top: -0.4px; width: 400.5px; padding: 80px; }

.stats__number {
  font-family: var(--font-display);
  font-weight: 700;
  white-space: nowrap;
  font-size: calc(63px * var(--display-scale));
  line-height: 1.2;
}

.stats__label {
  font-size: 20px;
  line-height: 1.5;
}

/* =====================================================================
   Pill photo band (home facilities / sub-page photo)
   ===================================================================== */
.facilities {
  position: relative;
  height: 598.5px;
  overflow: hidden;
}

.facilities__shadow {
  position: absolute;
  right: 110.2px;
  top: 164.3px;
  width: 1220px;
  height: 430px;
  border-radius: 194.9px;
  background: linear-gradient(180deg, var(--lime) 53.365%, var(--green-800) 100%);
}

.facilities--light .facilities__shadow {
  background: linear-gradient(178.51deg, var(--lime) 22.745%, var(--green-800) 100.92%);
}

.facilities__image {
  position: absolute;
  left: 80px;
  top: 0;
  width: 1280px;
  height: 535px;
  border-radius: 268px;
  overflow: hidden;
}

.facilities__image img {
  position: absolute;
  left: -6px;
  top: -162px;
  width: 1286px;
  height: 858px;
  object-fit: cover;
}

.facilities__image--sae img { top: -310px; }

/* Slider variant (main photo + "Lisafotod" gallery): slides are stacked in the
   pill and cross-fade; arrows and dots sit inside the pill so every breakpoint's
   pill geometry applies to them unchanged. */
.facilities--slider .facilities__slide {
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.facilities--slider .facilities__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.facilities__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 70px;
  height: 70px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  translate: 0 -50%;
  transition: background-color 0.15s, scale 0.25s ease;
}

.facilities__arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  border-right: 3px solid var(--text-primary);
  border-top: 3px solid var(--text-primary);
  border-radius: 1px;
}

.facilities__arrow--prev { left: 50px; }
.facilities__arrow--next { right: 50px; }
.facilities__arrow--prev::before { translate: -30% -50%; rotate: -135deg; }
.facilities__arrow--next::before { translate: -70% -50%; rotate: 45deg; }

.facilities__arrow:hover {
  background: #fff;
  scale: 1.05;
}

.facilities__arrow:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.facilities__dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  display: flex;
  gap: 10px;
  translate: -50% 0;
}

.facilities__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.15s;
}

.facilities__dot.is-active { background: #fff; }

/* =====================================================================
   HOME — contact / CTA band
   ===================================================================== */
.contact {
  width: 100%;
  background: var(--brand-gradient);
}

/* The inquiry band and the Kontakt hero carry the gradient themselves, so the
   footer that follows them continues in solid green instead of restarting. */
.inquiry + .contact,
.hero + .contact { background: var(--green-800); }

.contact__content {
  position: relative;
  height: 692.1px;
  padding-top: 99.2px;
}

.gradient-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(84px * var(--display-scale));
  line-height: 1.2;
  text-align: center;
  background: linear-gradient(180.06deg, #ffffff 41.019%, var(--green-200) 120.17%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contact__title {
  position: absolute;
  left: calc(50% + 0.2px);
  top: 98.3px;
  transform: translateX(-50%);
  width: 1210px;
  background: none;
  color: var(--green-800); /* solid green on the lime end of the gradient (desktop) */
}

.contact__lead {
  position: absolute;
  left: 50%;
  top: calc(99.2px + 333px);
  transform: translateX(-50%);
  width: 532.8px;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.5;
  text-align: center;
  color: var(--green-800);
}

.contact__button {
  left: 1026.9px;
  top: calc(99.2px + 366.3px);
}

/* =====================================================================
   SAEMATERJAL — hero copy, product list, prices, inquiry form
   ===================================================================== */
.hero__inner--sae { height: 714px; }

.hero__pattern--sae {
  top: -13px;
  right: auto;
  left: 914px;
  transform: rotate(-8.6deg);
}

.hero__lead--sae {
  left: 520px;
  top: 484px;
  width: 618px;
  color: var(--text-primary);
}

/* "Meie saematerjalivalikust leiad:" */
.valik {
  position: relative;
  width: 100%;
  height: 629px;
  margin-top: 110px;
  background: var(--green-800);
  color: var(--text-inverse);
}

.valik__title {
  position: absolute;
  left: 90px;
  top: 110px;
  width: 610px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(52px * var(--display-scale));
  line-height: 1.2;
  hyphens: manual; /* content carries a soft hyphen: saematerjali&shy;valikust */
}

.valik__list {
  position: absolute;
  left: 384.5px;
  top: 363px;
  display: grid;
  grid-template-columns: repeat(3, 321px);
  row-gap: 60px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.valik__item {
  display: flex;
  align-items: flex-start;
  gap: 21.5px;
  font-family: var(--font-display-alt);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  white-space: nowrap;
}

.valik__item img {
  flex-shrink: 0;
  width: 5px;
  height: 48px;
}

/* "Mõõdud ja hinnad" */
.measure {
  display: flex;
  flex-direction: column;
  gap: 60px;
  width: 618px;
  margin: 110px 0 0 518px;
}

.measure__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(52px * var(--display-scale));
  line-height: 1.2;
}

.measure__text {
  height: 150px;
  font-size: 20px;
  line-height: 1.5;
}

.price-section { padding-top: 110px; }

.price-table {
  width: 619px;
  margin-left: 517px;
  border-collapse: collapse;
  color: var(--green-800);
  font-size: 20px;
  text-align: center;
}

.price-table th,
.price-table td {
  width: 33.333%;
  height: 60px;
  padding: 0;
  font-weight: 400;
}

.price-table th {
  font-family: var(--font-display-alt);
  font-weight: 700;
  border-bottom: 3px solid var(--green-800);
}

.price-table td { border-bottom: 1px solid var(--green-800); }
.price-table tr:last-child td { border-bottom: 0; }

/* Inquiry form band */
.inquiry {
  width: 100%;
  margin-top: 110px;
  padding: 114px 0 110px;
  background: var(--brand-gradient);
  color: var(--text-inverse);
}

.inquiry__title {
  width: 1210px;
  margin: 0 auto;
  font-size: calc(85px * var(--display-scale));
  line-height: 1.1;
  background-image: linear-gradient(180.05deg, #ffffff 41.019%, var(--lime) 120.17%);
}

.inquiry__form {
  width: 1054px;
  margin: 109px auto 0;
}

.inquiry__heading {
  padding-left: 4px;
  margin-bottom: 46px;
  font-family: var(--font-display-alt);
  font-weight: 700;
  font-size: 43px;
  line-height: 1.2;
}

.inquiry__contact { margin-top: 82px; }
.inquiry__contact .inquiry__heading { padding-left: 0; }

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 46px;
  width: 1046px;
  margin-left: 8px;
}

.inquiry__contact .form-fields { margin-left: 0; }

.form-row {
  display: flex;
  gap: 24px;
}

.form-row > * { flex: 1 1 0; min-width: 0; }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field label {
  font-weight: 600;
  font-size: 22px;
  line-height: 28.66px;
}

.form-control {
  display: block;
  width: 100%;
  height: 70px;
  padding: 0 30.57px;
  border: 1.91px solid var(--border-input);
  border-radius: 50px;
  background: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  color: var(--text-primary);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.form-control::placeholder { color: var(--text-muted); }
.form-control:focus { border-color: var(--accent); }

select.form-control {
  padding-right: 70px;
  background: #fff url("../img/chevron-down.svg") no-repeat right 30.57px center / 20px 20px;
}

select.form-control:invalid,
select.form-control.is-placeholder { color: var(--text-muted); }

textarea.form-control {
  height: 160px;
  padding: 24px 30.57px;
  resize: vertical;
}

.send-button {
  position: relative;
  display: block;
  width: 288px;
  height: 90px;
  margin: 50px auto 0;
  padding: 0 0 0 31px;
  border: 0;
  border-radius: 45px;
  background: #fff;
  font-family: var(--font-display-alt);
  font-weight: 700;
  font-size: 43px;
  line-height: 1.2;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s;
}

.send-button:hover { background: var(--lime); }

.send-button span {
  display: inline-block;
  width: 117px;
  text-align: center;
}

.send-button img {
  position: absolute;
  left: 129px;
  top: -41.4px;
  width: 228px;
  height: 228px;
  max-width: none;
  pointer-events: none;
}

/* =====================================================================
   SUB-PAGE VARIANTS — Palgi kokkuost, Ettevõttest, Tule tööle, Kontakt
   ===================================================================== */
.hero__inner--palgi { height: 685px; }
.hero__inner--ette  { height: 925px; }
.hero__inner--tule  { height: 656px; }

.hero__lead--ette { top: 365px; }
.hero__lead--tule { top: 364px; }

.hero__lead a {
  text-decoration: underline;
  text-underline-position: from-font;
}

.facilities__image--tule img { top: -243px; }

/* Plain text block after the photo (Palgi kokkuost) */
.textblock {
  width: 725px;
  margin: 100px 0 0 518px;
  padding-bottom: 110px;
  font-size: 20px;
  line-height: 1.5;
}

.inquiry--flush { margin-top: 0; }

/* Ettevõttest — sales points */
.points {
  width: 832px;
  margin: 110px 0 0 518px;
  padding: 0;
  list-style: none;
  color: var(--green-800);
}

.points__row {
  display: grid;
  grid-template-columns: 535px 1fr;
  align-items: center;
  height: 153px;
  border-bottom: 2px solid var(--green-800);
}

.points__row:last-child { border-bottom: 0; }

.points__title {
  width: 510px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(30px * var(--display-scale));
  line-height: 1.2;
}

.points__info {
  width: 297px;
  font-size: 15px;
  line-height: 1.5;
}

/* Ettevõttest — "Tootmine ja tehas" */
.tootmine {
  position: relative;
  height: 795px;
  margin-top: 80px;
}

.tootmine__title {
  position: absolute;
  left: 92px;
  top: 51px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(52px * var(--display-scale));
  line-height: 1.2;
  white-space: nowrap;
}

.tootmine__text {
  position: absolute;
  left: 91px;
  top: 263px;
  width: 512px;
  font-size: 20px;
  line-height: 1.5;
}

.tootmine__image {
  position: absolute;
  left: 738px;
  top: 0;
  width: 612px;
  height: 716px;
  border-radius: 306px;
  overflow: hidden;
}

.tootmine__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% center;
}

.contact--spaced { margin-top: 110px; }

/* Kontakt — centred hero copy, topic tabs, switchable forms */
.hero__inner--kontakt {
  height: auto;
  padding: 671px 0 111px;
}

.hero__title--center {
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  background: linear-gradient(148.51deg, #ffffff 55.426%, var(--green-200) 87.88%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__lead--center {
  left: 50%;
  top: 483px;
  transform: translateX(-50%);
  width: 511px;
  text-align: center;
}

.topic-tabs {
  display: flex;
  gap: 24px;
  width: 1046px;
  margin-left: 201px;
}

.topic-tab {
  flex: 1 1 0;
  height: 90px;
  padding: 0;
  border: 1.91px solid var(--lime);
  border-radius: 50px;
  background: #fff;
  font-family: var(--font-display-alt);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.2;
  color: var(--text-primary);
  cursor: pointer;
}

.topic-tab { transition: background-color 0.15s; }
.topic-tab:hover { background: var(--lime); }
.topic-tab.is-active,
.topic-tab.is-active:hover { background: var(--accent); }

.kontakt-panel { display: none; color: var(--text-inverse); } /* forms sit in the green hero here, not in .inquiry */
.kontakt-panel.is-active { display: block; }
.kontakt .inquiry__form { margin-top: 110px; }

/* File picker styled like the other inputs */
.file-input {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 70px;
  padding: 0 30.57px;
  border: 1.91px solid var(--border-input);
  border-radius: 50px;
  background: #fff;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
}

.file-input img { width: 18px; height: 18px; }
.file-input input { display: none; }

textarea.form-control--tall { height: 310.6px; }

/* Form feedback + honeypot */
.form-notice {
  margin-bottom: 40px;
  padding: 20px 30px;
  border-radius: 50px;
  background: var(--accent);
  font-weight: 600;
  font-size: 20px;
  color: var(--text-primary);
}

.form-notice--error { background: #f3d6d0; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Cloudflare Turnstile widget (WordPress only — rendered by km_turnstile_widget()) */
.turnstile-field {
  margin-top: 30px;
  /* reserve the widget's box before Cloudflare's script replaces it, to avoid layout jump */
  min-height: 65px;
}

.cf-turnstile { width: 300px; max-width: 100%; }

@media (max-width: 1023px) {
  .turnstile-field { margin-top: 24px; }
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  position: relative;
  height: 504px;
  overflow: hidden;
  color: var(--text-inverse);
}

.footer--semibold .footer__contact,
.footer--semibold .footer__social-label,
.footer--semibold .footer__links { font-weight: 600; }

.footer__wordmark {
  position: absolute;
  left: calc(20.83% - 219.9px);
  top: 40px;
  width: 492.3px;
  line-height: 0;
}

.footer__wordmark img {
  display: block;
  width: 100%;
  height: auto;
}

.footer__contact {
  position: absolute;
  left: 80.1px;
  top: 229.7px;
  display: flex;
  gap: 50.4px;
  font-size: 20px;
  line-height: 1.5;
}

.footer__company { width: 172.8px; }
.footer__address { width: 292.5px; }

.footer__divider-v {
  position: absolute;
  left: calc(62.5% - 44.2px);
  top: 208.1px;
  width: 2px;
  height: 130.5px;
}

.footer__social {
  position: absolute;
  left: calc(66.67% + 57.9px);
  top: 229.7px;
  width: 342px;
}

.footer__social-label {
  font-size: 20px;
  line-height: 1.5;
  text-align: right;
}

.footer__social-icon {
  position: absolute;
  top: 42.3px;
  width: 38px;
  height: 38px;
}

.footer__social-icon--fb { left: 225.9px; }
.footer__social-icon--ig { left: 296.9px; }

.footer__social-icon { transition: scale 0.2s ease; }
.footer__social-icon:hover { scale: 1.08; }
.footer__social-icon--fb:hover img { content: url("../img/facebook-hover.svg"); }
.footer__social-icon--ig:hover img { content: url("../img/instagram-hover.svg"); }

.footer__divider-h {
  position: absolute;
  left: 50%;
  top: 391.5px;
  transform: translateX(-50%);
  width: 1280px;
  height: 2px;
}

.footer__links {
  position: absolute;
  left: 80.1px;
  top: 431.3px;
  width: 1279.8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

.footer__links a {
  text-decoration: underline;
  text-underline-position: from-font;
}

/* =====================================================================
   MOBILE + TABLET  (≤1023px) — fluid flow layout from the 393px frames
   ===================================================================== */
@media (max-width: 1023px) {
  .desktop-only { display: none; }
  .mobile-only { display: inline; }

  .page {
    min-width: 0;
    gap: 0;
    zoom: 1;
    /* Clip on the wrapper, not just <body>: mobile browsers ignore overflow-x on
       body for touch panning, so anything poking past the edge (e.g. the "Saada"
       button's shadow-padded arrow SVG) would otherwise let the page scroll sideways. */
    overflow-x: hidden;
    overflow-x: clip;
  }

  .hero__inner,
  .intro,
  .stats,
  .facilities,
  .contact__content,
  .footer,
  .frame {
    width: 100%;
  }

  /* ---------- Mobile header pill (hero + menu overlay) ---------- */
  .mobile-header {
    display: block;
    position: relative;
    height: 70px;
    margin: 20px 24px 0;
    background: var(--background-subtle);
    border-radius: 100px;
    overflow: hidden;
    z-index: 2;
  }

  .mobile-header__brand {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    line-height: 0;
  }

  /* 70px pill minus the 50px menu button and side insets */
  .mobile-header__brand img {
    display: block;
    width: min(203px, calc(100vw - 148px));
    height: auto;
  }

  .mobile-header__menu {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .mobile-header__menu img { width: 50px; height: 50px; }

  /* Close state (menu open): green circle with a white × */
  .mobile-header__menu--close {
    background: var(--green-800);
    border-radius: 50%;
  }

  .close-icon {
    position: absolute;
    inset: 0;
  }

  .close-icon::before,
  .close-icon::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 24px;
    width: 30px;
    height: 2px;
    border-radius: 1px;
    background: var(--text-inverse);
  }

  .close-icon::before { transform: rotate(45deg); }
  .close-icon::after { transform: rotate(-45deg); }

  .mobile-header--green { background: var(--accent); }

  /* ---------- Hero (flow) ---------- */
  /* Mobile hero runs green → lime top-down (Esileht / Mobile); Kontakt keeps the
     desktop direction so its form labels stay on the green end. */
  .hero { background: linear-gradient(180deg, #045903 0%, #d2f6a4 100%); }
  .hero:has(.hero__inner--kontakt) { background: var(--brand-gradient); }
  .hero--light { background: #fff; }

  .hero__inner { height: auto; }

  .hero__pattern {
    top: -130px;
    right: auto;
    left: 40px;
    transform: rotate(-30.47deg);
  }

  .hero__pattern--sae {
    top: -60px;
    left: auto;
    right: -300px;
    transform: rotate(-8.6deg);
  }

  .logo,
  .navbar,
  .cta-group { display: none; }

  .hero__title {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    max-width: 322px;
    margin: 40px 24px 0;
    font-size: calc(34px * var(--display-scale));
    line-height: 1.1;
    letter-spacing: 0.5px;
    background: none;
    color: var(--text-inverse);
  }

  .hero__lead {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    max-width: 252px;
    margin: 20px 24px 0 114px;
    font-size: 18px;
    line-height: 1.4;
    opacity: 0.9;
  }

  .hero__visual {
    display: block;
    position: relative;
    height: 364px;
    margin-top: 20px;
  }

  .hero__shadow {
    left: 37.6px;
    top: 94.65px;
    width: 480.8px;
    height: 217.2px;
    border-radius: 121.8px;
  }

  .hero__image {
    left: 47px;
    top: 17px;
    width: 486px;
    height: 278.5px;
    border-radius: 139.25px;
  }

  .hero__image img {
    position: static;
    width: 100%;
    height: 100%;
    translate: none;
  }

  .round-button {
    width: 70px;
    height: 70px;
  }

  .round-button__desktop { display: none; }

  .round-button__mobile {
    display: block;
    position: absolute;
    max-width: none;
  }

  .hero__button {
    left: 36px;
    top: 46px;
  }

  .hero__button .round-button__mobile {
    left: -69px;
    top: -41.4px;
    width: 208px;
    height: 208px;
  }

  /* Light (sub-page) hero */
  .hero--light .hero__title {
    max-width: 345px;
    margin: 66px 23px 0 25px; /* same title offset on every sub-page (was 35, Tule tööle 66) */
    color: var(--text-primary);
  }

  .hero--light .hero__lead {
    max-width: none;
    margin: 35px 24px 50px 112px;
    color: var(--text-primary);
    opacity: 1;
  }

  /* ---------- Home: intro (DOM order is aside-first; reorder visually) ---------- */
  .intro {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: auto;
    padding: 50px 24px;
    background: #fff;
  }

  .intro__aside,
  .intro__aside-inner,
  .intro__main { display: contents; }

  .intro__spacer { display: none; }

  .intro__title {
    order: 1;
    width: auto;
    font-size: calc(40px * var(--display-scale));
    line-height: 1;
  }

  .intro__text {
    order: 2;
    width: auto;
    margin: 30px 0 0 90px;
    font-size: 18px;
    line-height: 1.4;
    opacity: 0.8;
  }

  .intro__note {
    order: 3;
    width: auto;
    margin: 50px 90px 0 0;
    font-size: 15px;
    line-height: 1.4;
  }

  .intro .pill-button {
    order: 4;
    align-self: flex-start;
    width: 181px;
    margin-top: 20px;
  }

  /* ---------- Home: statistics ---------- */
  .stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    height: auto;
    padding: 50px 24px;
    background: var(--green-800);
    color: var(--text-inverse);
  }

  .stats__column {
    position: static;
    width: 236px;
    padding: 0;
    gap: 20px;
  }

  .stats__column--a { order: 1; }
  .stats__column--b { order: 2; }
  .stats__column--c { order: 3; }

  .stats__number {
    font-weight: 700;
    font-size: calc(34px * var(--display-scale));
    line-height: 1.1;
    letter-spacing: 0.5px;
  }

  .stats__label {
    font-size: 18px;
    line-height: 1.4;
  }

  /* ---------- Pill photo band ---------- */
  .facilities {
    height: 303px;
    background: var(--green-800);
  }

  .facilities--light {
    height: 228px;
    margin-bottom: 50px;
    background: #fff;
  }

  .facilities__shadow,
  .facilities--light .facilities__shadow {
    right: auto;
    left: 50%;
    top: 127.3px;
    width: min(328.7px, 100% - 56px);
    height: 150.9px;
    border-radius: 200px;
    transform: translateX(-50%);
    background: linear-gradient(178.06deg, rgba(211, 233, 213, 0) 22.745%, var(--green-900) 100.92%);
    mix-blend-mode: multiply;
  }

  .facilities__image {
    left: 50%;
    top: 50px;
    width: min(344px, 100% - 44px);
    height: 200px;
    border-radius: 100px;
    transform: translateX(-50%);
  }

  .facilities--light .facilities__shadow { top: 77.3px; }
  .facilities--light .facilities__image { top: 0; }

  .facilities__image img {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-position: center 60%;
  }

  .facilities__arrow {
    width: 44px;
    height: 44px;
  }

  .facilities__arrow::before {
    width: 11px;
    height: 11px;
    border-width: 2px;
  }

  .facilities__arrow--prev { left: 16px; }
  .facilities__arrow--next { right: 16px; }

  .facilities__dots {
    bottom: 14px;
    gap: 8px;
  }

  .facilities__dot {
    width: 9px;
    height: 9px;
  }

  /* ---------- Home: contact band ---------- */
  .contact__content {
    height: 473px;
    padding: 0;
  }

  .gradient-title {
    font-size: calc(40px * var(--display-scale));
    line-height: 1;
  }

  .contact__title {
    left: 50%;
    top: 30px;
    width: min(345px, 100% - 48px);
    background: linear-gradient(180.14deg, #ffffff 41.019%, var(--green-200) 120.17%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; /* mobile frame keeps the white gradient title */
  }

  .contact__lead {
    top: 220.7px;
    width: min(345px, 100% - 48px);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.4;
    color: var(--text-inverse);
  }

  .contact__button {
    left: 50%;
    top: 345px;
    margin-left: -35px;
  }

  .contact__button .round-button__mobile {
    left: -40px;
    top: -12.4px;
    width: 150px;
    height: 150px;
  }

  /* ---------- Saematerjal ---------- */
  .valik {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 50px;
    height: auto;
    margin-top: 0;
    padding: 60px 24px;
  }

  .valik__title {
    position: static;
    width: 100%;
    font-size: calc(40px * var(--display-scale));
    line-height: 1;
  }

  .valik__list {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 256px;
  }

  .valik__item {
    gap: 20px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.4;
    white-space: normal;
  }

  .measure {
    width: 100%;
    margin: 0;
    gap: 0;
  }

  .measure__title {
    display: flex;
    align-items: center;
    min-height: 200px;
    padding: 50px 24px 35px;
    font-size: calc(40px * var(--display-scale));
    line-height: 1;
  }

  .measure__text {
    height: 225px;
    padding: 0 24px 0 114px;
    font-size: 18px;
    line-height: 1.4;
  }

  .price-section { padding: 60px 24px 100px; }

  .price-table {
    width: 100%;
    margin: 0;
  }

  .price-table th {
    font-family: var(--font-display);
    font-size: 16px;
  }

  .inquiry {
    margin-top: 0;
    padding: 60px 24px;
  }

  .inquiry__title {
    width: 100%;
    font-size: calc(40px * var(--display-scale));
    line-height: 1;
  }

  .inquiry__form {
    width: 100%;
    margin: 50px 0 0;
  }

  .inquiry__heading {
    padding-left: 0;
    margin-bottom: 30px;
    font-size: 32px;
  }

  .inquiry__contact { margin-top: 60px; }

  /* Mobile form controls (Kontakt / Mobile frame) */
  .form-fields {
    gap: 30px;
    width: 100%;
    margin-left: 0;
  }

  .form-field { gap: 8px; }

  .form-field label {
    font-weight: 400;
    font-size: 18px;
    line-height: 1.4;
  }

  .form-control {
    height: 54px;
    padding: 0 24px;
    font-weight: 400;
    font-size: 18px;
  }

  select.form-control {
    padding-right: 52px;
    background-position: right 20px center;
  }

  textarea.form-control {
    height: 120px;
    padding: 14px 24px;
  }

  textarea.form-control--tall { height: 200px; }

  .form-row { gap: 24px; }

  .form-row--stack {
    flex-direction: column;
    gap: 30px;
  }

  .file-input {
    height: 54px;
    padding: 0 24px;
    font-size: 18px;
  }

  .send-button { margin-top: 40px; }

  /* ---------- Sub-page variants ---------- */
  .hero__inner--palgi,
  .hero__inner--ette,
  .hero__inner--tule { height: auto; }

  /* Palgi kokkuost: Figma stacks lead → photo → text with 50px each, same as the
     shared .hero--light / .facilities--light values, so no page override needed. */

  .hero__inner--tule .hero__lead { margin-top: 46px; margin-bottom: 50px; }

  .hero__inner--ette .hero__title {
    background: linear-gradient(146.79deg, #050505 59.291%, #ffffff 98.391%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .hero__inner--ette .hero__lead {
    margin: 80px 24px 34px 114px;
  }

  .textblock {
    width: auto;
    margin: 0;
    padding: 0 24px 50px 112px;
    font-size: 18px;
    line-height: 1.4;
  }

  .points {
    width: auto;
    margin: 0;
    padding: 60px 24px;
    background: var(--green-800);
    color: var(--text-inverse);
  }

  .points__row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    height: auto;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 2px solid var(--text-inverse);
    text-align: center;
  }

  .points__row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .points__title {
    width: 100%;
    font-size: calc(24px * var(--display-scale));
  }

  .points__info {
    width: 100%;
    font-size: 18px;
    line-height: 1.4;
  }

  .tootmine {
    height: auto;
    margin: 50px 0 0;
    padding: 0 24px;
  }

  .tootmine__title {
    position: static;
    display: flex;
    align-items: center;
    height: 100px;
    font-size: calc(40px * var(--display-scale));
    line-height: 1;
  }

  .tootmine__text {
    position: static;
    width: auto;
    min-height: 600px;
    margin: 50px 0 0 90px;
    font-size: 18px;
    line-height: 1.4;
  }

  .tootmine__image {
    position: relative;
    left: auto;
    top: auto;
    width: min(344px, 100%);
    height: 402.6px;
    margin: 50px auto 0;
    border-radius: 172px;
  }

  .tootmine + .contact { margin-top: 50px; }

  .contact--spaced { margin-top: 0; }

  .hero__inner--kontakt { padding: 0 0 60px; }

  .hero__title--center {
    position: relative;
    left: auto;
    transform: none;
    max-width: 345px;
    margin: 70px auto 0;
    text-align: center;
    background: linear-gradient(142.88deg, #ffffff 55.426%, var(--green-200) 87.88%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .hero__lead--center {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    max-width: 344px;
    margin: 39px auto 0;
    text-align: center;
    opacity: 1;
  }

  .topic-tabs {
    flex-direction: column;
    gap: 16px;
    width: min(300px, 100% - 48px);
    margin: 51px auto 0;
  }

  .topic-tab {
    flex: none;
    height: 70px;
    font-size: 32px;
  }

  .kontakt .inquiry__form {
    width: 100%;
    margin: 60px 0 0;
    padding: 0 24px;
  }

  /* ---------- Footer ---------- */
  .footer {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .footer > * {
    position: static;
    transform: none;
    width: 100%;
  }

  .footer__wordmark {
    padding: 40px 24px 0;
    line-height: 0;
  }

  .footer__wordmark img {
    width: min(345px, 100%);
    margin: 0 auto;
  }

  .footer__contact {
    padding: 51px 24px 0 25px;
    gap: 0;
    font-weight: 600;
    font-size: 18px;
  }

  .footer__company { width: 164px; }
  .footer__address { width: 152px; }

  .footer__contact-divider {
    display: block;
    position: relative;
    flex-shrink: 0;
    width: 28px;
    height: 108px;
  }

  .footer__contact-divider::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    width: 2px;
    height: 108px;
    background: var(--text-inverse);
  }

  .footer__divider-v,
  .footer__divider-h { display: none; }

  .footer__divider-m {
    display: block;
    height: 40px;
  }

  .footer__social {
    display: flex;
    align-items: center;
    padding: 40px 24px 0;
  }

  .footer__social-label {
    width: 181px;
    height: 54px;
    margin-right: auto;
    font-weight: 600;
    font-size: 18px;
    text-align: left;
  }

  .footer__social-icon {
    position: static;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
  }

  .footer__social-icon--ig { margin-left: 33px; }

  .footer__links {
    flex-direction: column-reverse;
    gap: 30px;
    padding: 40px 24px;
    font-weight: 600;
    text-align: center;
  }

  /* ---------- Mobile menu overlay ---------- */
  .mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 100px;
    position: fixed;
    inset: 0;
    z-index: 100;
    padding: 0 0 30px;
    background: var(--brand-gradient);
    overflow-y: auto;
  }

  .mobile-menu[hidden] { display: none; }

  .mobile-menu .mobile-header {
    flex-shrink: 0;
    width: calc(100% - 48px);
  }

  /* Grows to fill the space between the header and the bottom bar, then
     centers the links within that space — so the menu balances vertically
     instead of hugging the top with a big gap above the bottom bar. */
  .mobile-menu__links {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    min-height: 0;
    font-weight: 500;
    font-size: 32px;
    line-height: 0.75;
    text-align: center;
    color: var(--text-inverse);
  }

  .mobile-menu__bottom {
    display: flex;
    align-items: flex-end;
    gap: 90px;
    flex-shrink: 0;
    padding: 33px 24px 0;
  }

  .mobile-menu__lang {
    font-size: 20px;
    line-height: 55px;
    letter-spacing: 0.2px;
    white-space: nowrap;
    color: var(--text-inverse);
  }

  .mobile-menu__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 164px;
    height: 50px;
    border: 1px solid var(--text-inverse);
    border-radius: 30px;
    font-weight: 500;
    font-size: 20px;
    letter-spacing: 0.4px;
    color: var(--text-inverse);
  }
}

/* Phones: Puuliik/Materjali seisukord and Pikkus/Kogus stay side by side, so each
   column is ~160px. Keep the labels on one line (the full placeholders are swapped
   for data-short="Vali" by main.js at this width). */
@media (max-width: 599px) {
  .form-row:not(.form-row--stack) .form-field label {
    font-size: 16px;
    white-space: nowrap;
  }
}

/* Small phones: let fixed-width pieces breathe */
@media (max-width: 400px) {
  .mobile-menu__bottom { gap: 40px; }
  .valik__list { width: 100%; }
  .measure__text { padding-left: 80px; }
}

/* Short viewports (small-screen phones, or any phone in landscape): the overlay's
   generous spacing is tuned for a tall screen and pushes .mobile-menu__bottom below
   the fold. Compact the gaps/padding only — sizes and type stay the same — so the
   language switcher and "Saada päring" stay on screen without scrolling. */
@media (max-width: 1023px) and (max-height: 700px) {
  .mobile-menu {
    gap: 28px;
    padding-bottom: 16px;
  }

  .mobile-menu .mobile-header { margin-top: 12px; }

  .mobile-menu__links { gap: 20px; }

  .mobile-menu__bottom { padding-top: 16px; }
}

/* =====================================================================
   TABLET (600–1023px) — refines the mobile layout: wider gutters, larger
   type, multi-column rows and bigger photo compositions.
   ===================================================================== */
@media (min-width: 600px) and (max-width: 1023px) {
  /* ---------- Header + hero ---------- */
  .mobile-header { margin: 24px 48px 0; }

  .hero__title {
    max-width: 620px;
    margin: 40px 48px 0;
    font-size: calc(54px * var(--display-scale));
  }

  .hero__lead {
    max-width: 560px;
    margin: 48px 48px 0 25%;
    font-size: 20px;
    line-height: 1.5;
  }

  .hero--light .hero__title {
    max-width: 620px;
    margin: 60px 48px 0;
  }

  .hero--light .hero__lead { margin: 48px 48px 60px 25%; }
  .hero__inner--palgi .hero__lead { margin-bottom: 20px; }
  .hero__inner--ette .hero__lead { margin-top: 60px; margin-bottom: 40px; }
  .hero__inner--tule .hero__lead { margin-top: 48px; margin-bottom: 60px; }

  /* Home hero: larger pill composition, centred */
  .hero__visual {
    height: 580px;
    margin-top: 40px;
  }

  .hero__image {
    left: 50%;
    top: 50px;
    width: min(680px, calc(100% - 64px));
    height: auto;
    aspect-ratio: 776.5 / 443;
    border-radius: 200px;
    transform: translateX(-50%);
  }

  .hero__shadow {
    left: calc(50% - 10px);
    top: calc(50px + min(680px, 100vw - 64px) * 0.1587);
    width: min(674px, calc((100% - 64px) * 0.991));
    height: auto;
    aspect-ratio: 769.4 / 347.5;
    border-radius: 999px;
    transform: translateX(-50%);
  }

  .hero__button {
    left: calc(50% - 320px);
    top: 70px;
    width: 100px;
    height: 100px;
  }

  .hero__button .round-button__mobile {
    left: -99px;
    top: -59px;
    width: 297px;
    height: 297px;
  }

  /* ---------- Home sections ---------- */
  .intro { padding: 70px 48px; }

  .intro__title {
    max-width: 620px;
    font-size: calc(44px * var(--display-scale));
  }

  .intro__text {
    max-width: 560px;
    margin: 50px 0 0 25%;
    font-size: 20px;
    line-height: 1.5;
  }

  .intro__note {
    max-width: 420px;
    margin: 80px 0 0;
  }

  .stats {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-around;
    gap: 24px;
    padding: 70px 48px;
  }

  .stats__column {
    flex: 1 1 0;
    width: auto;
  }

  .facilities { height: 480px; }

  .facilities--light {
    height: 420px;
    margin-bottom: 70px;
  }

  .facilities__image {
    top: 70px;
    width: calc(100% - 96px);
    height: 340px;
    border-radius: 170px;
  }

  .facilities__shadow {
    top: 200px;
    width: calc(100% - 150px);
    height: 260px;
    border-radius: 200px;
  }

  .facilities--light .facilities__image { top: 0; }
  .facilities--light .facilities__shadow { top: 130px; }

  .contact__content {
    height: auto;
    padding: 70px 48px 170px;
  }

  .gradient-title { font-size: calc(54px * var(--display-scale)); }
  .inquiry__title { font-size: calc(54px * var(--display-scale)); }

  .contact__title {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: auto;
    max-width: 620px;
    margin: 0 auto;
  }

  .contact__lead {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: auto;
    max-width: 520px;
    margin: 40px auto 0;
    font-size: 20px;
    line-height: 1.5;
  }

  .contact__button {
    top: auto;
    bottom: 50px;
  }

  /* ---------- Footer ---------- */
  .footer__wordmark img { width: 440px; }

  .footer__contact {
    gap: 40px;
    padding: 51px 48px 0;
  }

  .footer__company,
  .footer__address {
    width: auto;
    max-width: 300px;
  }

  .footer__social {
    padding-left: 48px;
    padding-right: 48px;
  }

  .footer__social-label {
    width: auto;
    height: auto;
  }

  .footer__links {
    flex-direction: row;
    justify-content: space-between;
    padding: 40px 48px;
  }

  /* ---------- Saematerjal ---------- */
  .valik {
    align-items: stretch;
    padding: 70px 48px;
  }

  .valik__title {
    max-width: 620px;
    font-size: calc(44px * var(--display-scale));
  }

  .valik__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
    width: auto;
  }

  .measure__title {
    min-height: 0;
    padding: 70px 48px 30px;
    font-size: calc(44px * var(--display-scale));
  }

  .measure__text {
    height: auto;
    max-width: 760px;
    padding: 0 48px 60px 25%;
    font-size: 20px;
    line-height: 1.5;
  }

  .price-section { padding: 20px 48px 90px; }

  .price-table {
    max-width: 620px;
    margin: 0 auto;
  }

  .inquiry { padding: 80px 48px; }
  .inquiry__form { margin-top: 60px; }
  .inquiry__heading { font-size: 40px; }

  .form-row--stack {
    flex-direction: row;
    gap: 24px;
  }

  .form-control { height: 64px; }
  textarea.form-control { height: 150px; }
  textarea.form-control--tall { height: 260px; }
  .send-button { margin-top: 50px; }

  /* ---------- Palgi kokkuost ---------- */
  .textblock {
    max-width: 760px;
    padding: 0 48px 70px 25%;
    font-size: 20px;
    line-height: 1.5;
  }

  /* ---------- Ettevõttest ---------- */
  .points { padding: 70px 48px; }

  .points__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 24px;
    margin-bottom: 0;
    padding: 40px 0;
    text-align: left;
  }

  .points__row:first-child { padding-top: 0; }
  .points__row:last-child { padding-bottom: 0; }

  .points__title {
    width: auto;
    font-size: calc(26px * var(--display-scale));
  }

  .points__info {
    width: auto;
    font-size: 16px;
  }

  .tootmine { padding: 70px 48px 0; }

  .tootmine__title {
    height: auto;
    font-size: calc(44px * var(--display-scale));
    line-height: 1.2;
  }

  .tootmine__text {
    min-height: 0;
    max-width: 560px;
    margin: 40px 0 0 25%;
    font-size: 20px;
    line-height: 1.5;
  }

  .tootmine__image {
    width: min(480px, 100%);
    height: 560px;
    margin: 60px auto 0;
    border-radius: 240px;
  }

  .tootmine + .contact { margin-top: 70px; }

  /* ---------- Kontakt ---------- */
  .hero__inner--kontakt { padding-bottom: 80px; }

  .hero__title--center {
    max-width: 620px;
    margin: 70px auto 0;
    font-size: calc(54px * var(--display-scale));
  }

  .hero__lead--center {
    max-width: 520px;
    margin: 40px auto 0;
    font-size: 20px;
    line-height: 1.5;
  }

  .topic-tabs {
    flex-direction: row;
    gap: 16px;
    width: calc(100% - 96px);
    margin: 60px auto 0;
  }

  .topic-tab {
    flex: 1 1 0;
    font-size: 26px;
  }

  .kontakt .inquiry__form {
    margin-top: 70px;
    padding: 0 48px;
  }

  /* ---------- Menu overlay ---------- */
  .mobile-menu .mobile-header { width: calc(100% - 96px); }
  .mobile-menu__links { font-size: 40px; }
}

/* =====================================================================
   MOTION — subtle entrances, hover lifts, menu opening
   (uses the `translate` / `scale` properties so it never fights the
   layout transforms used for centring and rotation)
   ===================================================================== */
@keyframes fade-up {
  from { opacity: 0; translate: 0 18px; }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Hero entrance on page load */
.hero__title { animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__lead  { animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
.hero__image,
.hero__shadow,
.hero__button,
.topic-tabs { animation: fade-in 0.9s ease 0.3s both; }

/* Scroll reveal (class added by main.js only when JS + motion are available) */
.reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.7s ease, translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

/* Hover transitions */
.pill-button,
.send-button,
.cta-group__button,
.topic-tab,
.mobile-menu__cta {
  transition: background-color 0.2s ease, scale 0.2s ease;
}

.send-button:hover { scale: 1.02; }
.mobile-menu__cta:hover { background: rgba(255, 255, 255, 0.12); }
.mobile-menu__links a { transition: opacity 0.2s ease; }
.mobile-menu__links a:hover { opacity: 0.75; }

/* Mobile menu opening: panel fades, links cascade in */
.mobile-menu:not([hidden]) { animation: fade-in 0.25s ease both; }

.mobile-menu:not([hidden]) .mobile-menu__links a {
  animation: fade-up 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.mobile-menu__links a:nth-child(1) { animation-delay: 0.08s; }
.mobile-menu__links a:nth-child(2) { animation-delay: 0.14s; }
.mobile-menu__links a:nth-child(3) { animation-delay: 0.20s; }
.mobile-menu__links a:nth-child(4) { animation-delay: 0.26s; }
.mobile-menu__links a:nth-child(5) { animation-delay: 0.32s; }
.mobile-menu__links a:nth-child(6) { animation-delay: 0.38s; }

.mobile-menu:not([hidden]) .mobile-menu__bottom {
  animation: fade-up 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) 0.45s both;
}

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

  .reveal {
    opacity: 1;
    translate: 0 0;
  }
}
