@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;650;700;750&display=swap');

:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  color: #1c2926;
  background: #fff;
  --green: #245344;
  --green-hover: #193e33;
  --muted: #53615d;
  --line: #dce4df;
  --surface: #f1f4f1;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 22px; }
body { margin: 0; }
a { color: inherit; }
.wrap { width: min(1152px, calc(100% - 64px)); margin-inline: auto; }
:focus-visible { outline: 3px solid #437e6a; outline-offset: 3px; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.header-inner { min-height: 78px; }
.brand { color: #20302a; font-size: 26px; font-weight: 750; letter-spacing: -.065em; text-decoration: none; }
.brand-accent { color: var(--green); }
nav { display: flex; align-items: center; gap: 30px; }
nav a { font-size: 14px; font-weight: 600; text-decoration: none; }
nav a:hover, .footer-inner > a:last-child:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
nav .header-action { padding: 10px 15px; border: 1px solid #bccdc4; border-radius: 6px; color: var(--green); }
nav .header-action:hover { background: var(--surface); text-decoration: none; }

.service { background: var(--surface); border-bottom: 1px solid var(--line); }
.service-inner { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); padding-block: 48px; }
.service-label { margin: 0 0 10px; color: var(--green); font-size: 14px; font-weight: 650; }
h1, h2, h3 { margin: 0; }
h1 { max-width: 16ch; margin-bottom: 13px; font-size: clamp(35px, 4.4vw, 56px); font-weight: 750; line-height: 1.06; letter-spacing: -.055em; text-wrap: balance; }
.hero-intro { max-width: 45ch; margin: 0 0 22px; color: var(--muted); font-size: 16px; line-height: 1.6; }
h2 { font-size: clamp(23px, 2.35vw, 34px); font-weight: 700; line-height: 1.2; letter-spacing: -.035em; }
h3 { font-size: 16px; line-height: 1.4; font-weight: 700; }

form { padding: 24px; border: 1px solid var(--line); border-radius: 9px; background: white; }
form h2 { margin-bottom: 19px; font-size: 19px; letter-spacing: -.025em; }
.field-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 14px 15px; }
.field { display: grid; align-content: end; gap: 6px; min-width: 0; }
.full { grid-column: 1 / -1; }
label { font-size: 13px; font-weight: 650; line-height: 1.4; }
.optional { color: var(--muted); font-size: 12px; font-weight: 400; }
input, textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #b7c6bd;
  border-radius: 5px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 16px;
}
input::placeholder, textarea::placeholder { color: #586660; opacity: 1; }
input:hover, textarea:hover { border-color: #6f8b7e; }
#registration { text-transform: uppercase; }
textarea { min-height: 70px; resize: vertical; }
#photos { padding: 6px; font-size: 13px; color: var(--muted); }
#photos::file-selector-button {
  margin-inline-end: 9px;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  background: var(--surface);
  color: var(--green);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
#photos::file-selector-button:hover { background: #e5ede7; }
.photo-options { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; }
#photo-help { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
#clear-photos { padding: 3px 0; border: 0; background: none; color: var(--green); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
button[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 49px;
  margin-top: 16px;
  padding: 10px 15px;
  border: 0;
  border-radius: 5px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}
button[type="submit"]:hover:enabled { background: var(--green-hover); }
button[type="submit"]:disabled { cursor: wait; opacity: .75; }
button[type="submit"] span { font-size: 20px; line-height: 1; }
.feedback { margin: 13px 0 0; padding: 10px 12px; border-radius: 5px; background: #e9f3ec; color: #1a4d37; font-size: 14px; line-height: 1.5; }
.feedback:empty { margin: 0; padding: 0; }
.feedback[data-state="error"] { background: #fff0ee; color: #8b2c23; }

.overview { display: grid; grid-template-rows: minmax(280px, 1fr) auto; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.photo { position: relative; overflow: hidden; background: #e5eae5; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 51% 63%; }
.overview-copy { padding: 25px 24px 27px; }
.overview h2 { font-size: 20px; letter-spacing: -.025em; }
.overview p, .steps p, details p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.overview p { max-width: 48ch; }

.icon { flex: 0 0 24px; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; color: var(--green); }
.benefits { border-bottom: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding-block: 28px; }
.feature { display: flex; align-items: flex-start; gap: 14px; }
.feature .icon, .vehicle-list .icon, .steps .icon { margin-top: 2px; }
.feature p, .vehicle-list p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.vehicle-section, .prepare-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(24px, 5vw, 64px); padding-block: 58px; }
.editorial-photo { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 9px; background: var(--surface); }
.editorial-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.section-intro { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 13px 0 0; }
.vehicle-list { display: grid; gap: 15px; padding: 0; margin: 20px 0; list-style: none; }
.vehicle-list li { display: flex; gap: 13px; align-items: flex-start; }
.text-action { display: inline-flex; gap: 12px; align-items: center; color: var(--green); font-size: 14px; font-weight: 700; text-underline-offset: 4px; }
.process { padding-block: 42px 46px; border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 27px; margin: 25px 0 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: flex-start; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; }
.steps h3 { padding-top: 3px; }
.steps p { margin-top: 6px; }
.prepare-section .editorial-photo { aspect-ratio: 16 / 10; }
.photo-tips { margin: 16px 0 0; padding-inline-start: 20px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.photo-tips li + li { margin-top: 8px; }
.photo-tips li::marker { color: var(--green); }

.questions { border-block: 1px solid var(--line); background: #f7f9f7; }
.questions-inner { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 44px; padding-block: 52px; }
.questions h2 { max-width: 15ch; }
.answers { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; list-style: none; cursor: pointer; font-size: 15px; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; flex: 0 0 20px; text-align: center; color: var(--green); font-size: 21px; font-weight: 500; }
details[open] summary::after { content: '−'; }
details p { margin: 0 28px 16px 0; }
.final-offer { background: #e8efe9; border-bottom: 1px solid var(--line); }
.final-offer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 35px; }
.final-offer p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.offer-link { display: inline-flex; flex: 0 0 auto; justify-content: space-between; align-items: center; gap: 24px; min-height: 47px; padding: 10px 17px; border-radius: 5px; background: var(--green); color: white; text-decoration: none; font-size: 14px; font-weight: 650; }
.offer-link:hover { background: var(--green-hover); }
.footer-inner { padding-block: 26px; color: var(--muted); font-size: 13px; }
.footer-inner .brand { font-size: 22px; }
.footer-inner > a:last-child { color: var(--green); font-weight: 600; text-underline-offset: 4px; }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 64px; }
  nav { gap: 14px; }
  nav a { font-size: 13px; }
  .service-inner { grid-template-columns: 1fr; padding-block: 30px; }
  .overview { grid-template-rows: auto auto; }
  .photo { height: clamp(210px, 50vw, 315px); }
  .feature-grid { grid-template-columns: 1fr; gap: 19px; }
  .vehicle-section, .prepare-section { grid-template-columns: 1fr; gap: 23px; padding-block: 35px; }
  .vehicle-section > .editorial-photo { order: 1; }
  .editorial-photo { aspect-ratio: 16 / 10; }
  .process, .questions-inner { padding-block: 34px; }
  .steps { grid-template-columns: 1fr; gap: 16px; margin-top: 19px; }
  .questions-inner { grid-template-columns: 1fr; gap: 18px; }
  .questions h2 { max-width: none; }
}

@media (max-width: 625px) {
  nav a:not(.header-action) { display: none; }
}

@media (max-width: 460px) {
  .brand { font-size: 24px; }
  form, .overview-copy { padding: 18px; }
  .field-grid { grid-template-columns: 1fr; gap: 12px; }
  .footer-inner > span { display: none; }
  .final-offer-inner { align-items: flex-start; flex-direction: column; gap: 18px; }
}
.service-inner { align-items: start; }
.intro { max-width: 34rem; }
.vehicle-section, .prepare-section { display: block; }
.vehicle-list { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.vehicle-list li { border-top: 1px solid var(--line); padding-top: 16px; }
.prepare-section > div { max-width: 48rem; }
@media (max-width: 760px) {
  .vehicle-list { grid-template-columns: 1fr; }
}
@media (max-width: 625px) {
  .header-inner { flex-wrap: wrap; gap: 8px; padding-block: 12px; }
  nav { flex-wrap: wrap; }
  nav a:not(.header-action) { display: inline; }
}
.esituli, .uleandmine { display: block; width: 100%; object-fit: cover; border-radius: 8px; }
.esituli { height: clamp(210px, 23vw, 330px); object-position: center 69%; }
.uleandmine { height: auto; }
@media (min-width: 761px) {
  .service-inner { grid-template-rows: auto 1fr; row-gap: 0; }
  .service-inner form { grid-column: 2; grid-row: 1 / 3; }
  .process { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 44px; align-items: center; }
  .process .uleandmine { grid-column: 2; grid-row: 1 / 3; }
  .process .steps { grid-template-columns: 1fr; margin: 0; }
}
@media (max-width: 760px) {
  .uleandmine { margin-top: 18px; max-height: 250px; }
}
.brand img { display: block; width: clamp(138px, 17vw, 186px); height: auto; } .footer-inner .brand img { width: 132px; }
:root { --acid: #c4ff45; --ink: #151a17; }
.wrap { max-width: 1280px; }
.site-header { background: #f6f6ef; border-bottom: 0; }
.header-inner { min-height: 74px; }
nav a { font-weight: 750; }
.service { background: var(--ink); color: #fff; position: relative; isolation: isolate; overflow: hidden; }
.service::before { content: ""; position: absolute; inset: 0 34% 0 0; z-index: -1; background: linear-gradient(180deg,rgba(9,15,11,.88),rgba(9,15,11,.72) 52%,rgba(9,15,11,.23)),url('/auto.jpg?v=5') center 75% / cover; }
.service-inner { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(350px,1fr); grid-template-rows: auto; gap: clamp(24px,5vw,80px); align-items: center; padding-block: clamp(32px,5vw,76px); }
.service-inner form { grid-row: auto; }
.intro { max-width: none; }
.service-label { display: flex; align-items: center; gap: 10px; text-transform: uppercase; font: bold 13px/1.2 ui-monospace,monospace; letter-spacing: .12em; color: var(--acid); }
.service-label::before { content: ""; width: 34px; border-top: 3px solid; }
h1 { font: 900 clamp(62px,7.6vw,115px)/.88 Arial,sans-serif; letter-spacing: -.077em; text-transform: uppercase; max-width: 11ch; margin: 25px 0; }
h1 em { color: var(--acid); display: block; }
.hero-intro { color: white; max-width: 34ch; font-size: 18px; }
.esituli { display: none; }
form { background: #f6f6ef; color: var(--ink); border: none; border-top: 6px solid var(--acid); border-radius: 0; padding: clamp(20px,2.4vw,36px); }
form h2 { font-size: 28px; letter-spacing: -.055em; }
input,textarea { border-radius: 2px; }
button[type="submit"] { background: var(--acid); color: var(--ink); border-radius: 0; font-size: 18px; }
button[type="submit"]:hover:enabled { background: #aff32c; }
.benefits { background: var(--acid); }
.feature p { color: #253419; }
.feature .icon { color: var(--ink); }
.vehicle-section,.prepare-section { padding-block: clamp(40px,7vw,94px); }
main section h2:not(#offer-title) { font: 850 clamp(32px,4.4vw,64px)/1.02 Arial,sans-serif; letter-spacing: -.06em; max-width: 19ch; }
.vehicle-list { margin-top: 30px; gap: 0; }
.vehicle-list li { border-top: 3px solid var(--ink); padding: 22px 18px 8px 0; }
.process { background: var(--ink); color: white; padding: clamp(22px,4vw,58px); }
.process .uleandmine { border-radius: 0; }
.steps li { border: none; border-bottom: 1px solid #454d47; border-radius: 0; padding: 10px 0; }
.steps p { color: #dce2dc; }
.steps .icon { color: var(--acid); }
.questions { background: #e8ebe1; }
@media (max-width:760px) {
  .service::before { inset: 0 0 auto; height: 360px; background-position: center 70%; }
  .service-inner { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .hero-intro { margin-bottom: 0; }
  h1 { font-size: clamp(52px,12vw,83px); }
  .process { width: 100%; }
}
h1 { margin-top: 0; text-wrap: initial; }
h1 span, h1 em { display: block; }
h1 em { font-style: normal; }
.hero-intro { margin-bottom: 0; max-width: 36ch; }
.section-intro, .photo-tips { max-width: 58ch; }
.vehicle-section > div, .prepare-section > div { max-width: none; }
.process { position: relative; isolation: isolate; padding-inline: 0; }
.process::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); background: var(--ink); z-index: -1; }
@media (min-width:761px) {
  .service::before { inset: 0; background: linear-gradient(90deg, rgba(12,18,15,.81),rgba(12,18,15,.46) 55%,rgba(12,18,15,.52)),url('/auto.jpg?v=5') center 68% / cover; }
  .service-inner { grid-template-columns: minmax(0,1.25fr) minmax(350px,1fr); }
  .intro { align-self: center; }
  h1 { font-size: clamp(58px,7.2vw,106px); }
  .prepare-section > div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 44px; }
  .prepare-section .photo-tips { grid-column: 2; grid-row: 1 / 3; margin-top: 0; align-self: center; }
}
@media (max-width:760px) { .process { width: calc(100% - 36px); } }

.service::before { display: none; }
.service { background-color: #121916; background-image: linear-gradient(90deg, rgba(7,15,12,.84),rgba(7,15,12,.51) 43%,rgba(7,15,12,.33)),url('/autode-rivi.jpg'); background-size: cover; background-position: center, center 70%; }
@media (min-width: 761px) {
  .service { background-size: cover, max(100%, 1120px) auto; background-repeat: no-repeat; }
}
@media (max-width:760px) {
  .service { background-image: none; }
  .intro { position: relative; isolation: isolate; padding-block: 26px; }
  .intro::before { content: ""; position: absolute; z-index: -1; inset: -30px -18px 0; background: linear-gradient(90deg,rgba(7,15,12,.85),rgba(7,15,12,.44)),url('/autode-rivi.jpg') center 72% / cover; }
}
/* Viimistlus */
.service-inner { align-items: center; }
.intro { align-self: center; }
h1 { max-width: 10ch; line-height: .94; letter-spacing: -.065em; }
.hero-intro { max-width: 39ch; }
form { box-shadow: 0 18px 48px rgba(0,0,0,.18); }
.feature { align-items: flex-start; }
.vehicle-section { padding-block: clamp(44px, 7vw, 86px); }
.vehicle-section > div { max-width: 1080px; }
.vehicle-section .section-intro { max-width: 62ch; }
.vehicle-list { margin-top: 36px; }
.vehicle-list li { min-height: 134px; }
.process { padding-block: clamp(34px, 5vw, 58px); }
.process h2 { margin-bottom: 4px; }
.steps h3 { font-size: 17px; }
.prepare-section { padding-block: clamp(42px, 6vw, 72px); }
.prepare-section > div { max-width: 1080px; }
.photo-tips { line-height: 1.8; }
.questions-inner { padding-block: clamp(38px, 5vw, 60px); }
summary { line-height: 1.45; }
@media(max-width:760px) {
  h1 { max-width: 9ch; line-height: .93; }
  .vehicle-list li { min-height: auto; padding-bottom: 18px; }
  .process { padding-inline: 0; }
}
.site-header, .site-footer { background: #151a17; }
.site-header nav a { color: #f6f6ef; }
.site-header nav a:hover { color: #c4ff45; }
.brand img { width: clamp(150px, 18vw, 210px); }
.footer-inner .brand img { width: 160px; }
.site-footer { border-top: 1px solid #333d35; }
.site-footer .footer-inner { color: #dce2dc; }
@media(max-width:625px) {
  .header-inner { gap: 14px; }
  .brand img { width: 165px; }
}
