/* Lärmakott — CVI v0.2: Archivo, lärmakas oranž, tint, paber, kivi */
@font-face {
  font-family: "Archivo";
  src: url("/assets/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --oranz: #FF4F1F;
  --tint: #141414;
  --paber: #F6F2EA;
  --kivi: #DCD5C8;
  --hall: #4D4840;
  --teip: polygon(0% 6%, 2% 0%, 98% 4%, 100% 0%, 99% 30%, 100% 60%, 98.6% 82%, 100% 100%, 2.5% 96%, 0% 100%, 1.4% 70%, 0% 40%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paber);
  color: var(--tint);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

a { color: var(--tint); }
a:hover { color: #C2350F; }
:focus-visible { outline: 3px solid var(--tint); outline-offset: 3px; }
.tume :focus-visible { outline-color: var(--paber); }

.sisu { max-width: 1120px; margin: 0 auto; padding: 0 24px; width: 100%; }
.osa { padding: clamp(40px, 7vw, 88px) 0; }
h1, h2, h3 { margin: 0; font-weight: 900; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1; letter-spacing: -0.04em; }
p { margin: 0; }

.nupp {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  background: var(--tint); color: var(--paber); border: 0;
  font: inherit; font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer;
}
.nupp:hover { background: #000; color: #fff; }

/* Päis */
.pais { border-bottom: 2px solid var(--tint); }
.pais .sisu { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; }
.pais__logo { display: inline-flex; align-items: center; min-height: 44px; }
.pais__logo img { display: block; width: 168px; height: 46px; object-fit: contain; object-position: left center; }
.pais nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-weight: 700; }
.pais nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.pais nav .nupp { min-height: 44px; padding: 0 18px; font-size: 1rem; }

/* Avaosa */
.ava { padding: clamp(48px, 9vw, 112px) 0 clamp(48px, 8vw, 96px); }
.ava .sisu { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.ava h1 { font-size: clamp(2.6rem, 9vw, 7rem); line-height: 1.2; letter-spacing: -0.045em; }
.ring { position: relative; display: inline-block; margin: 0 0.42em 0 0.28em; }
.ring img { position: absolute; left: -0.32em; top: -0.17em; width: calc(100% + 0.78em); height: 1.44em; pointer-events: none; }
.ava p { font-size: clamp(1.1rem, 2vw, 1.4rem); max-width: 36em; color: var(--hall); }
.teip {
  display: inline-block; transform: rotate(-2deg); margin-top: 8px;
  background: var(--oranz); color: var(--tint); clip-path: var(--teip);
  padding: 0.4em 1em 0.5em; min-height: 44px;
  font-weight: 900; font-size: 1.6rem; letter-spacing: -0.03em; text-decoration: none;
}
.teip:hover { color: var(--tint); transform: rotate(-3deg) scale(1.03); }
@media (prefers-reduced-motion: no-preference) { .teip { transition: transform 0.15s; } }

/* Teenused */
.teenused { border-top: 2px solid var(--tint); }
.teenused .sisu { display: flex; flex-direction: column; gap: 32px; }
.kaardid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.kaart { background: #fff; border: 1px solid var(--kivi); padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 12px; }
.kaart__nr { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; color: #C2350F; }
.kaart h3 { font-size: clamp(1.25rem, 5.2vw, 1.6rem); line-height: 1.1; letter-spacing: -0.03em; overflow-wrap: break-word; }
.kaart p { font-size: 1.02rem; line-height: 1.6; }
.teenused__lopp { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; color: var(--hall); font-size: 1.05rem; }

.kaart h3 a { text-decoration: none; }
.kaart__link { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* Teenuse leht */
.silt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--oranz); }
.leht__ava { padding: clamp(48px, 7vw, 80px) 0 clamp(56px, 8vw, 88px); }
.leht__ava .sisu { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.leht h1 { font-size: clamp(2.3rem, 8vw, 6.4rem); line-height: 1; letter-spacing: -0.045em; overflow-wrap: break-word; max-width: 100%; }
.leht h1.pikk { font-size: clamp(1.6rem, 5.6vw, 4.4rem); line-height: 1.05; }
.leht__sisse { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 38em; color: #CFC9BE; }
.leht .osa .sisu { display: flex; flex-direction: column; gap: 28px; }
.leht h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); }
.kaardid--kitsad { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.kaardid--kitsad .kaart p { font-size: 1.1rem; line-height: 1.5; }
.sammud { border-top: 2px solid var(--tint); }
.sammud ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px 24px; }
.sammud li { border-top: 4px solid var(--tint); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.sammud li span { font-weight: 900; font-size: 3.4rem; line-height: 1; letter-spacing: -0.04em; color: #C2350F; }
.sammud li p { font-size: 1.08rem; line-height: 1.5; }
.riba { background: var(--kivi); padding: 40px 0; }
.riba--hind { background: var(--paber); border-top: 2px solid var(--tint); }
.riba .sisu { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 16px 32px; align-items: baseline; }
.riba h2 { font-size: 1.6rem; }
.riba ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 1.12rem; line-height: 1.5; }
@media (max-width: 700px) { .riba .sisu { grid-template-columns: 1fr; } }
.markused { border-top: 1px solid var(--kivi); padding: 28px 0 40px; }
.markused .sisu { display: flex; flex-direction: column; gap: 6px; }
.markused p { font-size: 0.95rem; line-height: 1.5; color: var(--hall); max-width: 62em; }
.kutse { background: var(--oranz); padding: clamp(40px, 6vw, 64px) 0; }
.kutse .sisu { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.kutse h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.kutse p { font-size: 1.1rem; margin-top: 10px; }
.jargmised { padding: 48px 0; border-bottom: 1px solid #3A3630; }
.jargmised .sisu { display: flex; flex-wrap: wrap; gap: 28px 48px; }
.jargmised a { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; color: var(--paber); text-decoration: none; min-height: 44px; }
.jargmised a:last-child { align-items: flex-end; text-align: right; }
.jargmised a:hover strong { color: var(--oranz); }
.jargmised strong { font-weight: 900; font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: 1.1; letter-spacing: -0.035em; }

/* Kogemused */
.tume { background: var(--tint); color: var(--paber); }
.kogemused .sisu { display: flex; flex-direction: column; gap: 28px; }
.kogemused p { font-size: 1.1rem; color: #CFC9BE; }
.nimed { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 44px; list-style: none; margin: 0; padding: 0; }
.nimed li { display: inline-flex; align-items: center; gap: 0.45em; font-weight: 900; font-size: clamp(1.4rem, 3.2vw, 2.4rem); line-height: 1.15; letter-spacing: -0.035em; }
.nimed img { width: 0.52em; height: 0.52em; flex-shrink: 0; }

/* Kontakt */
.kontakt { background: var(--oranz); }
.kontakt .sisu { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.kontakt__info { flex: 1 1 320px; display: flex; flex-direction: column; gap: 18px; }
.kontakt__info p { font-size: 1.1rem; max-width: 24em; }
.kontakt__andmed { display: flex; flex-direction: column; gap: 4px; font-size: 1.1rem; font-weight: 700; font-style: normal; }
.kontakt__andmed span { font-weight: 400; }
.vorm { flex: 1 1 360px; display: flex; flex-direction: column; gap: 14px; margin: 0; }
.vali { display: flex; flex-direction: column; gap: 6px; }
.vali label { font-size: 0.9rem; font-weight: 700; }
.vali input, .vali textarea { font: inherit; padding: 12px 14px; border: 2px solid var(--tint); background: #fff; color: var(--tint); border-radius: 0; width: 100%; min-height: 48px; }
.vorm .nupp { align-self: flex-start; font-weight: 900; font-size: 1.1rem; padding: 0 26px; }
.vorm__teade { font-weight: 700; min-height: 1.5em; }
.peidus { position: absolute; left: -9999px; }

/* Jalus */
.jalus { padding: 28px 0; color: #CFC9BE; font-size: 0.9rem; }
.jalus .sisu { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.jalus img { display: block; width: 130px; height: 36px; object-fit: contain; object-position: left center; }

/* 404 */
.viga { min-height: 60vh; display: flex; align-items: center; }
.viga .sisu { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.viga h1 { font-size: clamp(2.6rem, 9vw, 6rem); line-height: 1.1; letter-spacing: -0.045em; }
