:root {
  --paper: #f3f4ef;
  --white: #ffffff;
  --ink: #171b18;
  --muted: #59625b;
  --sage: #62695f;
  --sage-dark: #50574f;
  --soft: #e4e9e1;
  --mist: #dce7eb;
  --line: #cbd1c9;
  --radius: 22px;
  --shell: min(calc(100% - 64px), 1500px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.5; margin: 0; }
body.menu-open { overflow: hidden; }
body, button, input, select, textarea { font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-size: 16px; }
button, a, summary, select { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, blockquote, dl, dd, ol { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.045em; line-height: 0.98; }
h2 { font-size: clamp(44px, 5.2vw, 78px); }
h3 { font-size: 24px; }
.shell { margin-inline: auto; width: var(--shell); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow-light { color: #e8ede7; }
.button { align-items: center; border: 1px solid var(--ink); border-radius: 999px; display: inline-flex; font-size: 15px; font-weight: 700; justify-content: center; min-height: 48px; padding: 0 22px; transition: background 160ms ease, color 160ms ease; }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: transparent; color: var(--ink); }
.button-light { background: rgba(255,255,255,0.84); }
.button-light:hover { background: var(--white); }

.notice { align-items: center; background: var(--soft); display: flex; font-size: 13px; font-weight: 700; gap: 10px; justify-content: center; min-height: 30px; padding: 5px 20px; }
.site-header { align-items: center; background: rgba(243,244,239,0.94); backdrop-filter: blur(12px); display: grid; grid-template-columns: 1fr auto 1fr; min-height: 78px; padding: 0 max(32px, calc((100vw - 1620px) / 2)); position: sticky; top: 0; z-index: 50; }
.brand { align-items: flex-start; display: inline-flex; flex-direction: column; justify-self: start; line-height: 1; }
.brand strong, .footer-logo { font-size: 27px; letter-spacing: 0.12em; }
.brand span { font-size: 12px; font-weight: 700; letter-spacing: 0.09em; margin-top: 5px; text-transform: uppercase; }
.desktop-nav { align-items: center; background: rgba(255,255,255,0.58); border: 1px solid rgba(23,27,24,0.16); border-radius: 999px; display: flex; gap: 2px; justify-content: center; padding: 3px; }
.desktop-nav a { align-items: center; border-radius: 999px; display: inline-flex; font-size: 15px; font-weight: 700; min-height: 42px; padding: 0 17px; }
.desktop-nav a:hover { background: var(--white); }
.header-cta { align-items: center; background: var(--ink); border: 1px solid var(--ink); border-radius: 999px; color: var(--white); display: inline-flex; font-size: 15px; font-weight: 700; justify-self: end; min-height: 46px; padding: 0 21px; }
.header-cta:hover { background: transparent; color: var(--ink); }
.menu-toggle, .mobile-menu { display: none; }

.hero { border-radius: var(--radius); height: min(72vw, 820px); margin: 0 auto; max-width: 1800px; min-height: 630px; overflow: hidden; position: relative; width: calc(100% - 32px); }
.hero > img { height: 100%; object-fit: cover; width: 100%; }
.hero-copy { left: clamp(34px, 6vw, 108px); max-width: 570px; position: absolute; top: 49%; transform: translateY(-50%); }
.hero-copy h1 { font-size: clamp(58px, 6.4vw, 104px); margin: 18px 0 24px; }
.hero-copy > p:not(.eyebrow) { font-size: 18px; max-width: 500px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-note { align-items: center; bottom: 26px; display: flex; gap: 8px; position: absolute; right: 26px; }
.hero-note span { background: rgba(255,255,255,0.88); border-radius: 999px; font-size: 13px; font-weight: 700; padding: 10px 14px; }

.intro { display: grid; gap: 100px; grid-template-columns: 1.15fr 0.85fr; padding-block: clamp(100px, 12vw, 180px); }
.intro h2 { max-width: 900px; }
.intro .eyebrow { margin-bottom: 22px; }
.intro-copy { align-self: end; color: var(--muted); font-size: 18px; max-width: 620px; }
.intro-copy p + p { margin-top: 20px; }

.models { padding-bottom: clamp(110px, 13vw, 190px); }
.section-heading { max-width: 900px; }
.section-heading .eyebrow { margin-bottom: 20px; }
.section-heading > p:last-child { color: var(--muted); font-size: 18px; margin-top: 22px; max-width: 650px; }
.model-grid { align-items: start; display: grid; gap: clamp(18px, 2vw, 32px); grid-template-columns: repeat(12, 1fr); margin-top: 66px; }
.model-card:nth-child(1) { grid-column: 1 / span 4; margin-top: 70px; }
.model-card:nth-child(2) { grid-column: 5 / span 5; }
.model-card:nth-child(3) { grid-column: 10 / span 3; margin-top: 118px; }
.model-image { border-radius: 16px; display: block; overflow: hidden; }
.model-image img { height: 100%; object-fit: cover; transition: transform 300ms ease; width: 100%; }
.model-card:nth-child(1) .model-image { aspect-ratio: 4 / 5; }
.model-card:nth-child(2) .model-image { aspect-ratio: 5 / 4; }
.model-card:nth-child(3) .model-image { aspect-ratio: 4 / 5.2; }
.model-card:hover .model-image img { transform: scale(1.02); }
.model-card-head { align-items: flex-start; display: flex; gap: 14px; justify-content: space-between; margin: 20px 0 14px; }
.model-card-head h3 { font-size: clamp(25px, 2.4vw, 38px); }
.model-card-head p { color: var(--muted); font-size: 14px; margin-top: 7px; }
.model-card-head > a { align-items: center; border: 1px solid var(--ink); border-radius: 50%; display: inline-flex; flex: 0 0 44px; font-size: 20px; height: 44px; justify-content: center; }
.model-card > p { color: var(--muted); }

.factory { background: var(--sage); color: var(--white); padding-block: clamp(110px, 12vw, 180px); }
.factory-grid { display: grid; gap: 110px; grid-template-columns: 1.05fr 0.95fr; }
.factory-copy h2 { font-size: clamp(48px, 6.3vw, 92px); margin: 22px 0 30px; max-width: 940px; }
.factory-copy > p:last-child { color: #e4e9e2; font-size: 18px; max-width: 650px; }
.factory-facts { align-self: end; display: grid; gap: 38px; grid-template-columns: repeat(3, 1fr); }
.factory-facts dt { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.factory-facts dd { color: #e4e9e2; font-size: 14px; }

.process { display: grid; gap: 90px; grid-template-columns: 0.72fr 1.28fr; padding-block: clamp(110px, 12vw, 180px); }
.process-heading { position: sticky; top: 124px; }
.process-heading .eyebrow { margin-bottom: 20px; }
.process-heading h2 { max-width: 620px; }
.process-heading > p:last-child { color: var(--muted); font-size: 17px; margin-top: 26px; max-width: 540px; }
.process-list { display: grid; gap: 18px; list-style: none; padding: 0; }
.process-list li { align-items: flex-start; background: var(--white); border-radius: 16px; display: grid; gap: 22px; grid-template-columns: 38px 1fr; padding: 27px 30px; }
.process-list li > span { font-size: 18px; font-weight: 700; line-height: 1; padding-top: 3px; }
.process-list h3 { font-size: 23px; letter-spacing: -0.025em; line-height: 1.1; }
.process-list p { color: var(--muted); font-size: 15px; margin-top: 8px; }

.materials { background: var(--white); padding-block: clamp(110px, 12vw, 180px); }
.materials-heading { align-items: end; display: grid; gap: 90px; grid-template-columns: 1fr 0.65fr; }
.materials-heading .eyebrow { margin-bottom: 20px; }
.materials-heading > p { color: var(--muted); font-size: 18px; max-width: 590px; }
.materials-gallery { align-items: start; display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); margin: 76px auto 0; max-width: 1760px; padding-inline: 16px; }
.materials-gallery figure:nth-child(1) { margin-top: 80px; }
.materials-gallery figure:nth-child(3) { margin-top: 130px; }
.materials-gallery figure:nth-child(4) { margin-top: 34px; }
.materials-gallery img { aspect-ratio: 4 / 5; border-radius: 16px; height: auto; object-fit: cover; width: 100%; }
.materials-gallery figcaption { font-size: 13px; margin-top: 13px; }

.quotes { padding-block: clamp(110px, 12vw, 180px); }
.quote-grid { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); margin-top: 58px; }
.quote-grid article { background: var(--soft); border-radius: 18px; padding: clamp(30px, 4vw, 58px); }
.quote-grid article h3 { font-size: clamp(28px, 3vw, 46px); margin-bottom: 24px; max-width: 620px; }
.quote-grid article p { color: var(--muted); font-size: 18px; max-width: 650px; }

.faq { display: grid; gap: 90px; grid-template-columns: 0.72fr 1.28fr; padding-bottom: clamp(110px, 12vw, 180px); }
.faq-heading .eyebrow { margin-bottom: 20px; }
.faq-heading > p:last-child { color: var(--muted); font-size: 17px; margin-top: 24px; max-width: 520px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: var(--white); border-radius: 14px; padding: 0 24px; }
.faq-list summary { align-items: center; cursor: pointer; display: flex; font-size: 18px; font-weight: 700; gap: 20px; justify-content: space-between; list-style: none; min-height: 76px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { font-size: 22px; font-weight: 400; transition: transform 160ms ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details > p { color: var(--muted); padding: 0 42px 25px 0; }

.contact { background: var(--mist); padding-block: clamp(100px, 11vw, 160px); }
.contact-grid { display: grid; gap: 110px; grid-template-columns: 0.8fr 1.2fr; }
.contact-copy .eyebrow { margin-bottom: 20px; }
.contact-copy h2 { max-width: 650px; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); font-size: 18px; margin: 28px 0; max-width: 540px; }
.contact-copy > a { border-bottom: 1px solid var(--ink); font-size: 18px; font-weight: 700; }
.inquiry-form { background: rgba(255,255,255,0.64); border-radius: 20px; display: grid; gap: 18px; padding: clamp(25px, 4vw, 48px); }
.field-row { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.inquiry-form label { display: grid; font-size: 14px; font-weight: 700; gap: 8px; }
.inquiry-form label > span:not(.consent span) { color: var(--muted); font-weight: 400; }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea { background: var(--white); border: 1px solid transparent; border-radius: 10px; color: var(--ink); min-height: 50px; outline: none; padding: 13px 15px; width: 100%; }
.inquiry-form textarea { resize: vertical; }
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus { border-color: var(--ink); }
.inquiry-form .consent { align-items: flex-start; display: flex; font-size: 13px; font-weight: 400; gap: 10px; }
.consent input { flex: 0 0 18px; height: 18px; min-height: 0; margin-top: 2px; width: 18px; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.inquiry-form .button { justify-self: start; margin-top: 6px; }
.form-status { color: var(--muted); font-size: 13px; }

.site-footer { background: var(--ink); color: var(--white); padding: 76px 0 46px; }
.footer-grid { display: grid; gap: 55px; grid-template-columns: 1.5fr 1fr 0.7fr 1fr; }
.footer-grid > div { align-content: start; display: grid; gap: 9px; }
.footer-grid h2 { font-size: 13px; letter-spacing: 0.08em; margin-bottom: 9px; text-transform: uppercase; }
.footer-grid a, .footer-grid span, .footer-grid p { color: #dfe5df; font-size: 14px; }
.footer-brand { max-width: 390px; }
.footer-brand p { margin-top: 16px; }
.footer-logo { color: var(--white) !important; font-weight: 700; }
.footer-brand small { color: #aeb6af; font-size: 13px; margin-top: 30px; }
.footer-grid a:hover { color: var(--white); }

.breadcrumbs { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-size: 13px; gap: 9px; padding-top: 34px; }
.detail-hero { display: grid; gap: 56px; grid-template-columns: 0.8fr 1.2fr; padding-block: 56px 90px; }
.detail-copy { align-self: center; }
.detail-copy .eyebrow { margin-bottom: 18px; }
.detail-copy h1 { font-size: clamp(66px, 8vw, 124px); }
.detail-copy > p:not(.eyebrow) { color: var(--muted); font-size: 18px; margin: 26px 0 32px; max-width: 620px; }
.detail-image { border-radius: var(--radius); min-height: 620px; overflow: hidden; }
.detail-image img { height: 100%; object-fit: cover; width: 100%; }
.detail-facts { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); margin: 34px 0; }
.detail-facts div { background: var(--white); border-radius: 12px; padding: 18px; }
.detail-facts dt { color: var(--muted); font-size: 13px; }
.detail-facts dd { font-size: 17px; font-weight: 700; margin-top: 4px; }
.detail-gallery { display: grid; gap: 18px; grid-template-columns: 1.2fr 0.8fr; padding-bottom: 110px; }
.detail-gallery figure:first-child { grid-row: span 2; }
.detail-gallery figure { display: grid; gap: 10px; }
.detail-gallery img { border-radius: 16px; height: 100%; min-height: 280px; object-fit: cover; width: 100%; }
.detail-gallery figure:first-child img { min-height: 640px; }
.detail-gallery figcaption { color: var(--muted); font-size: 13px; }
.plan-section { background: var(--white); padding-block: 110px; }
.plan-grid { align-items: start; display: grid; gap: 90px; grid-template-columns: 1.15fr 0.85fr; }
.plan-image { background: var(--paper); border-radius: 18px; padding: clamp(18px, 4vw, 52px); }
.plan-image img { width: 100%; }
.plan-copy .eyebrow { margin-bottom: 18px; }
.plan-copy > p { color: var(--muted); font-size: 17px; margin: 24px 0 28px; }
.room-list { display: grid; gap: 8px; list-style: none; padding: 0; }
.room-list li { background: var(--soft); border-radius: 9px; font-size: 14px; padding: 11px 13px; }
.package-section { padding-block: 110px; }
.package-grid { display: grid; gap: 70px; grid-template-columns: repeat(2, 1fr); }
.package-grid article { background: var(--white); border-radius: 18px; padding: clamp(30px, 5vw, 64px); }
.package-grid h2 { font-size: clamp(38px, 4vw, 58px); margin-bottom: 28px; }
.package-grid ul { color: var(--muted); display: grid; gap: 12px; margin: 0; padding-left: 20px; }
.detail-cta { background: var(--mist); padding-block: 100px; text-align: center; }
.detail-cta h2 { margin-inline: auto; max-width: 900px; }
.detail-cta p { color: var(--muted); font-size: 18px; margin: 24px auto 30px; max-width: 600px; }

.legal-hero { padding-block: 90px 58px; }
.legal-hero .eyebrow { margin-bottom: 18px; }
.legal-hero h1 { font-size: clamp(58px, 7vw, 106px); max-width: 1150px; }
.legal-hero > p:last-child { color: var(--muted); font-size: 18px; margin-top: 26px; max-width: 760px; }
.legal-content { max-width: 900px; padding-bottom: 120px; }
.legal-content section + section { margin-top: 46px; }
.legal-content h2 { font-size: clamp(30px, 3vw, 42px); margin-bottom: 15px; }
.legal-content h3 { font-size: 19px; letter-spacing: -0.02em; line-height: 1.2; margin: 26px 0 10px; }
.legal-content p, .legal-content li { color: var(--muted); }
.legal-content p + p, .legal-content p + ul, .legal-content ul + p { margin-top: 13px; }
.legal-content ul { margin: 15px 0 0; padding-left: 20px; }
.legal-content li + li { margin-top: 7px; }
.legal-content a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.not-found { min-height: 65vh; padding-block: 120px; }
.not-found h1 { font-size: clamp(68px, 9vw, 130px); margin: 18px 0 26px; }
.not-found p { color: var(--muted); font-size: 18px; margin-bottom: 28px; }

@media (max-width: 1180px) {
  .desktop-nav a { padding-inline: 12px; }
  .factory-grid { gap: 70px; grid-template-columns: 1fr; }
  .factory-facts { max-width: 800px; }
  .model-card:nth-child(1) { grid-column: 1 / span 4; }
  .model-card:nth-child(2) { grid-column: 5 / span 4; }
  .model-card:nth-child(3) { grid-column: 9 / span 4; }
}

@media (max-width: 880px) {
  :root { --shell: calc(100% - 36px); --radius: 16px; }
  h2 { font-size: clamp(40px, 11vw, 58px); }
  .notice { justify-content: flex-start; overflow: hidden; white-space: nowrap; }
  .site-header { display: flex; justify-content: space-between; min-height: 68px; padding: 0 18px; }
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { background: transparent; border: 0; display: grid; gap: 7px; padding: 12px 0 12px 12px; }
  .menu-toggle span { background: var(--ink); display: block; height: 2px; transition: transform 160ms ease; width: 29px; }
  .menu-toggle.is-open span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-toggle.is-open span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .mobile-menu { background: var(--paper); display: flex; flex-direction: column; height: calc(100dvh - 98px); justify-content: space-between; left: 0; padding: 22px 18px 28px; position: fixed; top: 98px; width: 100%; z-index: 49; }
  .mobile-menu nav { display: grid; }
  .mobile-menu nav a { align-items: center; display: flex; font-size: 30px; font-weight: 600; justify-content: space-between; letter-spacing: -0.04em; min-height: 66px; }
  .mobile-menu nav a + a { border-top: 1px solid var(--line); }
  .mobile-menu > .button { margin-top: auto; }
  .mobile-menu > a:last-child { font-size: 14px; margin-top: 18px; text-align: center; }
  .hero { height: auto; min-height: 0; overflow: visible; width: calc(100% - 20px); }
  .hero > img { aspect-ratio: 4 / 4.8; border-radius: var(--radius); object-position: 67% center; }
  .hero-copy { left: auto; max-width: none; padding: 34px 8px 12px; position: relative; top: auto; transform: none; }
  .hero-copy h1 { font-size: clamp(52px, 15vw, 74px); }
  .hero-copy > p:not(.eyebrow) { font-size: 17px; }
  .hero-note { align-items: flex-start; flex-direction: column; margin: 10px 8px 0; position: static; }
  .hero-note span { background: var(--soft); }
  .intro, .process, .faq, .contact-grid, .detail-hero, .plan-grid { grid-template-columns: 1fr; }
  .intro { gap: 35px; }
  .model-grid { grid-template-columns: 1fr; }
  .model-card:nth-child(n) { grid-column: auto; margin-top: 0; }
  .model-card:nth-child(n) .model-image { aspect-ratio: 4 / 3; }
  .factory-facts { grid-template-columns: 1fr; }
  .process { gap: 45px; }
  .process-heading { position: static; }
  .materials-heading { align-items: start; gap: 30px; grid-template-columns: 1fr; }
  .materials-gallery { grid-template-columns: repeat(2, 1fr); }
  .materials-gallery figure:nth-child(n) { margin-top: 0; }
  .materials-gallery figure:nth-child(even) { margin-top: 60px; }
  .quote-grid, .footer-grid, .package-grid { grid-template-columns: 1fr; }
  .quote-grid article p { font-size: 17px; }
  .faq { gap: 42px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { gap: 44px; }
  .detail-hero { padding-top: 35px; }
  .detail-image { min-height: 0; order: -1; }
  .detail-image img { aspect-ratio: 4 / 3; }
  .detail-gallery { grid-template-columns: 1fr; }
  .detail-gallery figure:first-child { grid-row: auto; }
  .detail-gallery figure:first-child img, .detail-gallery img { min-height: 0; aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
  .notice span { display: none; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .materials-gallery { gap: 12px; }
  .materials-gallery figcaption { font-size: 12px; }
  .process-list li { padding: 23px 20px; }
  .faq-list details { padding-inline: 18px; }
  .faq-list summary { font-size: 17px; }
  .detail-facts { grid-template-columns: 1fr; }
}

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

/* --- Mobiili ülevoolu parandused ---------------------------------------- */
/* Ruudustiku lapsel on vaikimisi min-width: auto, mistõttu ta ei kahane
   oma sisu miinimumlaiusest väiksemaks ja lükkab lehe horisontaalselt
   kerima. 390 px juures oli avaleht 427 px lai. */

.factory-grid > *,
.factory-facts > *,
.detail-facts > *,
.process-list > * {
  min-width: 0;
}

.factory-copy,
.factory-facts {
  overflow-wrap: break-word;
}

/* Pikad liitsõnad ("Garantiitingimused") olid 58 px alampiiri juures
   mobiilis veerust laiemad. */
.legal-hero h1 {
  font-size: clamp(32px, 7vw, 106px);
  overflow-wrap: break-word;
}
