/* Terra Solutions – Erd- und Tiefbau
   Farben & Typografie orientiert an myterrasolutions.de */
:root {
  --red: #e2343a;
  --red-dark: #b8242a;
  --navy: #162129;
  --navy-2: #1c242a;
  --navy-3: #203341;
  --bg-light: #f4f7f9;
  --text: #657078;
  --heading: #0b1218;
  --line: #e3e8ec;
  --white: #fff;
  --radius: 4px;
  --container: 1200px;
  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Rubik", system-ui, sans-serif;
  --shadow: 0 18px 40px -18px rgba(5, 18, 29, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.625rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1.1em; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--light { background: var(--bg-light); }
.section--dark { background: var(--navy); color: rgba(255,255,255,.75); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--red); color: var(--white); border: 0; cursor: pointer;
  transition: background .25s, transform .25s;
}
.btn:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; border: 1px solid rgba(255,255,255,.4); }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn svg { width: 14px; height: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-light);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(5,18,29,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.logo { display: flex; align-items: center; }
.logo svg { height: 52px; width: auto; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 34px; align-items: center; }
.nav a, .nav button {
  font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--navy-2); background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; position: relative;
}
.nav > ul > li > a::after, .nav > ul > li > button::after {
  content: ""; position: absolute; left: 0; bottom: 4px; width: 0; height: 2px; background: var(--red);
  transition: width .25s;
}
.nav > ul > li > a:hover::after, .nav > ul > li > a[aria-current="page"]::after,
.nav > ul > li > button:hover::after, .nav > ul > li.is-active > button::after { width: 100%; }
.nav .chev { width: 9px; height: 9px; transition: transform .25s; }
.nav li.has-sub { position: relative; }
.submenu {
  position: absolute; top: 100%; left: -24px; min-width: 250px;
  background: var(--white); box-shadow: var(--shadow); border-top: 2px solid var(--red);
  padding: 12px 0; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: .25s; flex-direction: column !important; gap: 0 !important; align-items: stretch !important;
}
.submenu a { display: block; padding: 9px 24px; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 400; color: var(--text); }
.submenu a:hover { color: var(--red); background: var(--bg-light); }
.submenu .sub-indent a { padding-left: 42px; }
.submenu .sub-indent a::before { content: "– "; color: var(--red); }
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu, .has-sub.open > .submenu {
  opacity: 1; visibility: visible; transform: none;
}
.has-sub:hover .chev, .has-sub.open .chev { transform: rotate(180deg); }
.nav .nav-cta a { background: var(--red); color: var(--white); padding: 12px 22px; border-radius: var(--radius); }
.nav .nav-cta a::after { display: none; }
.nav .nav-cta a:hover { background: var(--red-dark); }

.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.burger span, .burger::before, .burger::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: var(--navy); transition: .25s;
}
.burger span { top: 21px; } .burger::before { top: 14px; } .burger::after { top: 28px; }
.nav-open .burger span { opacity: 0; }
.nav-open .burger::before { top: 21px; transform: rotate(45deg); }
.nav-open .burger::after { top: 21px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 92px 0 0 0; background: var(--white); overflow-y: auto;
    transform: translateX(100%); transition: transform .3s; padding: 24px 16px 40px;
  }
  .nav-open .nav { transform: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav a, .nav button { width: 100%; padding: 16px 0; font-size: 14px; justify-content: space-between; }
  .nav > ul > li > a::after, .nav > ul > li > button::after { display: none; }
  .submenu { position: static; box-shadow: none; border: 0; opacity: 1; visibility: visible; transform: none; display: none; padding: 0 0 12px; }
  .has-sub.open > .submenu { display: flex; }
  .has-sub:hover > .submenu { display: none; }
  .has-sub.open:hover > .submenu { display: flex; }
  .submenu a { padding: 10px 12px; }
  .nav .nav-cta { border: 0; margin-top: 20px; }
  .nav .nav-cta a { justify-content: center; }
}

/* ---------- Hero Slider (Startseite) ---------- */
.hero {
  position: relative; min-height: min(88vh, 820px); color: var(--white); overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(226,52,58,.85) 0%, rgba(226,52,58,.35) 32%, rgba(22,33,41,.2) 60%, rgba(22,33,41,.55) 100%),
    url("../assets/img/hero.jpg") center/cover no-repeat,
    radial-gradient(circle at 70% 40%, #3a4a56 0%, #162129 70%);
  transform: scale(1.06); animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-inner { position: relative; min-height: inherit; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 200px; }
.hero h1 { color: var(--white); text-shadow: 0 4px 30px rgba(0,0,0,.25); max-width: 760px; }
.hero-lead { font-size: 1.15rem; max-width: 560px; color: rgba(255,255,255,.88); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-slider {
  position: absolute; left: 0; bottom: 0; width: min(560px, 100%);
  background: rgba(28,36,42,.92); backdrop-filter: blur(6px);
  display: grid; grid-template-columns: 1fr 72px;
}
.slides { position: relative; padding: 34px 36px; min-height: 150px; }
.slide { position: absolute; inset: 34px 36px; opacity: 0; transform: translateY(12px); transition: .5s; }
.slide.is-active { position: relative; inset: auto; opacity: 1; transform: none; }
.slide h3 { color: var(--white); font-size: 1.1rem; margin-bottom: .4em; }
.slide p { margin: 0; font-size: .95rem; color: rgba(255,255,255,.7); line-height: 1.6; }
.slide-num { font-family: var(--font-head); font-size: 12px; letter-spacing: .15em; color: var(--red); margin-bottom: 6px; }
.slider-ctrl { display: flex; flex-direction: column; border-left: 1px solid rgba(255,255,255,.1); }
.slider-ctrl button {
  flex: 1; background: none; border: 0; color: var(--white); cursor: pointer; display: grid; place-items: center;
  transition: background .2s;
}
.slider-ctrl button + button { border-top: 1px solid rgba(255,255,255,.1); }
.slider-ctrl button:hover { background: var(--red); }
.slider-ctrl svg { width: 16px; height: 16px; }
.slider-progress { position: absolute; left: 0; top: 0; height: 3px; background: var(--red); width: 0; }
.slider-progress.run { animation: prog 6s linear forwards; }
@keyframes prog { to { width: 100%; } }

.scroll-hint {
  position: absolute; right: 32px; bottom: 40px; writing-mode: vertical-rl;
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: rgba(255,255,255,.8);
  display: flex; align-items: center; gap: 14px;
}
.scroll-hint::after { content: ""; width: 2px; height: 50px; background: linear-gradient(var(--red), transparent); }
@media (max-width: 700px) {
  .hero-inner { padding: 80px 0 240px; }
  .scroll-hint { display: none; }
  .slides { padding: 26px 22px; }
  .slide { inset: 26px 22px; }
}

/* ---------- Page Hero (Unterseiten) ---------- */
.page-hero {
  position: relative; color: var(--white); padding: clamp(90px, 13vw, 160px) 0 clamp(70px, 9vw, 110px);
  background:
    linear-gradient(100deg, rgba(226,52,58,.92) 0%, rgba(226,52,58,.45) 30%, rgba(60,66,72,.55) 65%, rgba(30,36,42,.35) 100%),
    var(--hero-img, url("../assets/img/hero-kontakt.jpg")) center/cover no-repeat,
    linear-gradient(120deg, #555d63, #20282e);
}
.page-hero h1 { color: var(--white); margin: 0; }
.page-hero .lead { max-width: 640px; margin: 18px 0 0; font-size: 1.1rem; color: rgba(255,255,255,.88); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-family: var(--font-head); font-weight: 700; font-size: 14px; margin-bottom: 18px; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span.sep { width: 5px; height: 5px; border-radius: 50%; background: var(--white); }

/* ---------- Layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.media { position: relative; }
.media-img {
  aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: linear-gradient(135deg, #2b3a45, #162129);
}
.media-img img { width: 100%; height: 100%; object-fit: cover; }
.media-img.ratio-43 { aspect-ratio: 4 / 3; }
.dots {
  position: absolute; width: 117px; height: 104px; z-index: -1;
  background-image: radial-gradient(var(--red) 2px, transparent 2.5px); background-size: 13px 13px;
}
.media .dots { right: -36px; bottom: -36px; }
.media.dots-left .dots { left: -36px; top: -36px; right: auto; bottom: auto; }
.media-badge {
  position: absolute; left: -24px; bottom: 32px; background: var(--red); color: var(--white);
  padding: 22px 26px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.media-badge strong { display: block; font-family: var(--font-head); font-size: 2.2rem; line-height: 1; }
.media-badge span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 600px) { .media-badge { left: 12px; } .media .dots { right: -10px; } }

.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.2em; }
.prose ul li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 14px; height: 2px; background: var(--red); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); padding: 40px 34px; border-radius: var(--radius);
  border-bottom: 3px solid transparent; transition: .3s; position: relative;
}
.section--light .card { box-shadow: 0 2px 0 rgba(0,0,0,.02); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-bottom-color: var(--red); }
.card .icon {
  width: 60px; height: 60px; border-radius: 50%; background: rgba(226,52,58,.1); color: var(--red);
  display: grid; place-items: center; margin-bottom: 24px;
}
.card .icon svg { width: 28px; height: 28px; }
.card p:last-child { margin-bottom: 0; }
.section--dark .card { background: var(--navy-2); }
.section--dark .card h3 { color: var(--white); }

.service-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 340px; padding: 32px; border-radius: var(--radius); overflow: hidden; color: var(--white);
  background: var(--card-img, linear-gradient(140deg, #34444f, #162129)) center/cover;
  isolation: isolate;
}
.service-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(22,33,41,.1) 20%, rgba(22,33,41,.92) 100%); transition: .35s;
}
.service-card:hover::before { background: linear-gradient(180deg, rgba(226,52,58,.35) 0%, rgba(184,36,42,.95) 100%); }
.service-card h3 { color: var(--white); margin-bottom: .35em; }
.service-card p { color: rgba(255,255,255,.8); font-size: .95rem; margin: 0 0 14px; line-height: 1.6; }
.service-card .more { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; display: inline-flex; gap: 8px; align-items: center; }
.service-card .num { position: absolute; top: 24px; right: 28px; font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: rgba(255,255,255,.15); }

/* ---------- Process ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 70px; }
.step::before {
  counter-increment: s; content: "0" counter(s);
  position: absolute; top: 0; left: 0; font-family: var(--font-head); font-weight: 800; font-size: 3rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--red);
}
.step::after { content: ""; position: absolute; top: 24px; left: 90px; right: -14px; height: 1px; background: rgba(255,255,255,.15); }
.step:last-child::after { display: none; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); color: var(--red); line-height: 1.1; }
.stat span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; color: var(--white);
  background: linear-gradient(60deg, rgba(5,18,29,.92) 0%, rgba(32,51,65,.88) 100%), url("../assets/img/cta.jpg") center/cover, var(--navy);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 80px 0; }
.cta h2 { color: var(--white); margin: 0 0 .3em; }
.cta p { margin: 0; color: rgba(255,255,255,.75); max-width: 620px; }
.cta .dots { z-index: 0; right: 6%; top: 18px; opacity: .5; }

/* ---------- FAQ ---------- */
.faq details { background: var(--white); border-radius: var(--radius); margin-bottom: 12px; border-left: 3px solid transparent; transition: .2s; }
.faq details[open] { border-left-color: var(--red); box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 60px 22px 28px; position: relative;
  font-family: var(--font-head); font-weight: 700; color: var(--heading); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 26px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--red); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 28px 22px; margin: 0; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0 0 32px; }
.contact-list li { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list .icon { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; }
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list strong { display: block; font-family: var(--font-head); color: var(--heading); }
.form { background: var(--white); padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--heading); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; color: var(--heading); background: var(--bg-light); transition: border .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); background: var(--white); }
.field textarea { min-height: 150px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 22px; }
.check input { margin-top: 5px; accent-color: var(--red); }
.check a { color: var(--red); text-decoration: underline; }
.form-note { font-size: 14px; margin-top: 14px; }
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-img { width: 170px; height: 56px; flex: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-light); }
.captcha-reload { flex: none; width: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--heading); cursor: pointer; display: grid; place-items: center; transition: border .2s, color .2s; }
.captcha-reload:hover, .captcha-reload:focus-visible { border-color: var(--red); color: var(--red); }
.captcha-reload svg { width: 20px; height: 20px; }
.field .captcha-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .15em; }
.captcha-hint { display: block; font-size: 12px; color: #5b6872; margin-top: 6px; }
@media (max-width: 420px) { .captcha-row { flex-wrap: wrap; } .field .captcha-row input { flex-basis: 100%; } }
.map-ph { min-height: 320px; border-radius: var(--radius); background: linear-gradient(135deg, #dfe6eb, #c8d2d9); display: grid; place-items: center; text-align: center; color: var(--navy); padding: 24px; }

/* ---------- Legal ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.6rem; margin-top: 1.6em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.4em; }
.legal .ph { background: #fff4e5; border-left: 3px solid #f0a020; padding: 14px 18px; color: #6b4a10; font-size: 14px; }
mark.ph-inline { background: #fff4e5; color: #6b4a10; padding: 0 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.6); font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 80px 0 56px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 20px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--white); }
.footer-logo svg { height: 56px; margin-bottom: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 24px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.footer-bottom nav { display: flex; gap: 24px; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--red); color: var(--white); border: 0; cursor: pointer; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: .3s; z-index: 40; box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top svg { width: 16px; height: 16px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.max-700 { max-width: 700px; }
.mb-48 { margin-bottom: 48px; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.text-center { margin-inline: auto; }
.section-head.text-center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }

/* Fix: Pfeil-Icons in Kacheln */
.service-card .more svg { width: 14px; height: 14px; flex: none; }
/* Originallogo (hochkant) */
.logo img { height: 66px; width: auto; }
.footer-logo { display: inline-block; margin-bottom: 18px; }
.footer-logo img { height: 92px; width: auto; }
@media (max-width: 600px) { .logo img { height: 56px; } }
/* Kontaktformular: Spam-Falle & Statusmeldungen */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note.is-ok { color: #1f7a3d; font-weight: 500; }
.form-note.is-error { color: var(--red-dark); font-weight: 500; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* Kontaktformular: Bestätigung nach dem Versand, steht an Stelle der Felder */
.form.is-sent > :not(.form-done) { display: none !important; }
.form-done[hidden] { display: none; }
.form-done { padding: clamp(4px, 1vw, 12px) 0; }
.form-done__icon { display: block; width: 56px; height: 56px; margin-bottom: 22px; fill: #e8f3ec; stroke: #1f7a3d;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form-done__title { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 800; margin-bottom: .5em; outline: none; }
.form-done p { margin-bottom: .5em; }
.form-done__mail strong { color: var(--heading); font-weight: 500; overflow-wrap: anywhere; }
.form-done .form-done__small { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.form-done__small a { color: var(--red); white-space: nowrap; }
.form-done__small a:hover { text-decoration: underline; }
.form-done__again { margin-top: 26px; background: transparent; color: var(--heading); border: 1px solid var(--line); }
.form-done__again:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.form-done.is-in { animation: doneIn .6s ease both; }
.form-done.is-in .form-done__icon circle { stroke-dasharray: 1; animation: doneDraw .8s ease .1s both; }
.form-done.is-in .form-done__icon path { stroke-dasharray: 1; animation: doneDraw .45s ease .65s both; }
@keyframes doneIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes doneDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .form-done.is-in, .form-done.is-in .form-done__icon circle, .form-done.is-in .form-done__icon path { animation: none; }
}