/* Tokens */
:root {
  --dk-bg: #FBF6F4;
  --dk-surface: #FFFFFF;
  --dk-text: #2A1C1C;
  --dk-muted: #6A5352;
  --dk-accent: #A8323F;
  --dk-accent-dark: #8B2833;
  --dk-accent-text: #FBF6F4;
  --dk-plate-bg: #2A1C1C;
  --dk-plate-text: #FBF6F4;
  --dk-line: #E5D9D6;
  --dk-font: 'Avenir Next', Avenir, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --dk-radius-card: 18px;
  --dk-radius-btn: 999px;
  --dk-shadow-soft: 0 1px 2px rgb(42 28 28 / .06), 0 12px 32px rgb(42 28 28 / .08);
  --dk-shadow-lift: 0 2px 4px rgb(42 28 28 / .07), 0 18px 44px rgb(42 28 28 / .12);
  --dk-pad: clamp(16px, 4vw, 40px);
  --dk-gap: clamp(64px, 9vw, 128px);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--dk-font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--dk-text);
  background-color: var(--dk-bg);
  background-image: radial-gradient(var(--dk-accent) 3.5px, transparent 3.5px);
  background-size: 34px 34px;
  background-position: -12px -12px;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgb(168 50 63 / .3) 4px, transparent 4px);
  background-size: 46px 46px;
  pointer-events: none;
  z-index: -1;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--dk-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--dk-accent-dark); }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 2px solid var(--dk-accent); outline-offset: 3px; }

.dk-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--dk-pad);
  padding-right: var(--dk-pad);
}

/* Skip link */
.dk-skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 60;
  padding: 12px 20px;
  background: var(--dk-plate-bg);
  color: var(--dk-plate-text);
  border-radius: var(--dk-radius-btn);
  text-decoration: none;
  transition: top 0.2s ease;
}
.dk-skip:focus { top: 16px; color: var(--dk-plate-text); }

/* Topbar */
.dk-topbar {
  position: sticky;
  top: 12px;
  z-index: 55;
  padding: 8px 12px;
}
.dk-topbar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  background: var(--dk-surface);
  border-radius: var(--dk-radius-card);
  box-shadow: var(--dk-shadow-soft);
  padding: 10px clamp(14px, 3vw, 28px);
}
.dk-topbar__brand {
  justify-self: center;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--dk-text);
  text-decoration: none;
  white-space: nowrap;
}
.dk-topbar__call { justify-self: end; }

/* Burger */
.dk-topbar__burger {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dk-text);
  background: transparent;
  border: 1px solid var(--dk-line);
  border-radius: var(--dk-radius-btn);
  cursor: pointer;
}
.dk-topbar__burger-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--dk-text);
  border-radius: 2px;
}
.dk-topbar__burger-line + .dk-topbar__burger-line { margin-top: 4px; }
.dk-topbar__burger:hover { background: var(--dk-bg); }
.dk-topbar__burger:active { transform: scale(0.97); }

/* Drawer */
.dk-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(340px, 86vw);
  background: var(--dk-surface);
  box-shadow: var(--dk-shadow-lift);
  transform: translateX(-105%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
  z-index: 50;
  padding: 88px 0 32px;
  overflow-y: auto;
}
.dk-drawer--open { transform: translateX(0); visibility: visible; transition: transform 0.3s ease; }
.dk-drawer::after {
  content: none;
}
body.dk-drawer-veil::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgb(42 28 28 / .5);
  z-index: 45;
}
.dk-drawer__list { list-style: none; margin: 0 0 24px; padding: 0; }
.dk-drawer__link {
  position: relative;
  display: block;
  padding: 14px 20px;
  font-size: 1.05rem;
  color: var(--dk-text);
  text-decoration: none;
}
.dk-drawer__link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 0;
  height: 2px;
  background: var(--dk-accent);
  transition: width 0.25s ease;
}
.dk-drawer__link:hover::before,
.dk-drawer__link[aria-current="page"]::before { width: 36px; }
.dk-drawer__link[aria-current="page"] { font-weight: 700; }
.dk-drawer__cta { margin-left: 20px; }

/* Buttons */
.dk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--dk-accent-text);
  background: var(--dk-accent);
  border: 2px solid var(--dk-accent);
  border-radius: var(--dk-radius-btn);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background-color 0.25s ease, transform 0.1s ease, color 0.25s ease;
}
.dk-btn::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: rgb(0 0 0 / .18);
  transition: height 0.25s ease;
  z-index: 0;
}
.dk-btn > * { position: relative; z-index: 1; }
.dk-btn:hover { background: var(--dk-accent-dark); border-color: var(--dk-accent-dark); }
.dk-btn:hover::before { height: 100%; }
.dk-btn:focus-visible {
  outline: 3px solid var(--dk-accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgb(168 50 63 / .25);
}
.dk-btn:active { transform: scale(0.97); }
.dk-btn--ghost {
  color: var(--dk-accent);
  background: transparent;
  border: 2px solid var(--dk-accent);
}
.dk-btn--ghost::before { display: none; }
.dk-btn--ghost:hover { background: var(--dk-accent); color: var(--dk-accent-text); }

/* Sections */
.dk-band {
  background: var(--dk-surface);
  border-radius: var(--dk-radius-card);
  box-shadow: var(--dk-shadow-soft);
  padding: clamp(40px, 6vw, 80px) 0;
}
main { display: flex; flex-direction: column; gap: clamp(16px, 2.5vw, 28px); padding: clamp(16px, 2.5vw, 28px) clamp(12px, 2vw, 24px) 0; }
main#main > .dk-band:first-child { margin-top: clamp(16px, 2.5vw, 28px); }

/* Hero */
.dk-hero__grid {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.dk-hero__title { margin-bottom: 1.5rem; font-size: clamp(2.5rem, 5vw, 4rem); }
.dk-hero__line { display: block; line-height: 1.1; }
.dk-hero__line--big { font-size: 1rem; font-size: 1em; }
.dk-hero__line--mid { font-size: 0.45em; color: var(--dk-muted); font-weight: 700; }
.dk-hero__lead { max-width: 46ch; margin-bottom: 1.5rem; }
.dk-hero__note {
  border-left: 4px solid var(--dk-accent);
  margin: 0 0 2rem;
  padding: 8px 0 8px 16px;
  color: var(--dk-muted);
  max-width: 52ch;
}
.dk-hero__fig { margin: 0; }
.dk-hero__img, .dk-check__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--dk-line);
  border-radius: 0;
}

/* Typographic accent plate */
.dk-ink {
  display: inline-block;
  font-size: 0.8em;
  color: var(--dk-plate-text);
  background: var(--dk-plate-bg);
  padding: 0.15em 0.5em;
  border-radius: 12px;
  line-height: 1.15;
}
.dk-plate {
  background: var(--dk-plate-bg);
  color: var(--dk-plate-text);
  border-radius: var(--dk-radius-card);
  padding: clamp(28px, 4vw, 48px);
}
.dk-plate a { color: #F3C9CC; }

/* Checklist */
.dk-check {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.dk-check__title { margin-bottom: 0.4em; }
.dk-check__list { margin: 0 0 1em; padding: 0; list-style: none; }
.dk-check__item {
  position: relative;
  padding: 10px 0 10px 1.75rem;
  line-height: 1.6;
  border-bottom: 1px solid var(--dk-line);
}
.dk-check__item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dk-accent);
}

/* Tiles */
.dk-areas__title, .dk-path__title, .dk-qna__title { max-width: 20ch; }
.dk-areas__grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 24px;
  margin-top: 32px;
}
.dk-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: 100%;
  padding: 28px;
  background: var(--dk-bg);
  border: 1px solid var(--dk-line);
  border-radius: var(--dk-radius-card);
  color: var(--dk-text);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dk-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--dk-shadow-lift);
  color: var(--dk-text);
}
.dk-tile__init {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--dk-accent);
  margin-bottom: 8px;
}
.dk-tile__title { margin: 0; }
.dk-tile__text { margin: 0; color: var(--dk-muted); line-height: 1.6; }

/* Form band */
.dk-band--form { background: var(--dk-surface); }
.dk-formband {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.dk-formband__side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: start;
  height: 100%;
}
.dk-formband__title, .dk-formband__heading { margin-bottom: 0.5em; }
.dk-formband__lead { margin-bottom: 20px; }

/* Segmented control */
.dk-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 20px;
}
.dk-seg__btn {
  flex: 1 1 auto;
  min-height: 48px;
  padding: 0.6rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dk-plate-text);
  background: transparent;
  border: 1px solid rgb(251 246 244 / .3);
  border-radius: var(--dk-radius-btn);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.dk-seg__btn:hover { background: rgb(251 246 244 / .15); }
.dk-seg__btn[aria-selected="true"] { background: var(--dk-accent); border-color: var(--dk-accent); color: var(--dk-accent-text); }
.dk-seg__btn:active { transform: scale(0.97); }
.dk-seg__panel[hidden] { display: none; }
.dk-seg__text { margin: 0; }

/* Form */
.dk-form { display: flex; flex-direction: column; gap: 18px; }
.dk-form__row { display: flex; flex-direction: column; gap: 6px; }
.dk-form__label { font-weight: 600; font-size: 0.95rem; }
.dk-form__input, .dk-form__area {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--dk-text);
  background: var(--dk-surface);
  border: 1px solid var(--dk-line);
  border-radius: 999px;
  padding: 0.75rem 1rem;
}
.dk-form__input::placeholder, .dk-form__area::placeholder { color: var(--dk-muted); opacity: 1; }
.dk-form__input:focus-visible, .dk-form__area:focus-visible {
  outline: 2px solid var(--dk-accent);
  outline-offset: 2px;
}
.dk-form__area { resize: vertical; min-height: 120px; }
.dk-form__row.is-invalid .dk-form__input,
.dk-form__row.is-invalid .dk-form__area,
.dk-form__agree.is-invalid input { border-color: var(--dk-accent); }
.dk-form__err { color: var(--dk-accent); font-size: 0.9rem; margin: 0; }
.dk-form__agree { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.dk-form__agree input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--dk-accent); flex: none; }
.dk-form__agree label { max-width: 60ch; }
.dk-form__aside { color: var(--dk-muted); font-size: 0.95rem; margin: 0; }
.dk-form__send { align-self: flex-start; }
.dk-form__send--busy { opacity: 0.6; pointer-events: none; }

/* Steps */
.dk-path__list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
  counter-reset: step;
}
.dk-path__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 20px;
  align-items: start;
  padding: 24px;
  background: var(--dk-bg);
  border: 1px solid var(--dk-line);
  border-radius: var(--dk-radius-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dk-path__step:hover { transform: translateY(-4px); box-shadow: var(--dk-shadow-lift); }
.dk-path__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dk-accent);
  color: var(--dk-accent-text);
  font-weight: 700;
  grid-row: span 2;
}
.dk-path__name { margin: 0; }
.dk-path__step .dk-copy { grid-column: 2; margin: 0; }

/* FAQ */
.dk-qna { margin-top: 28px; display: grid; gap: 12px; }
.dk-qna__item {
  background: var(--dk-bg);
  border: 1px solid var(--dk-line);
  border-radius: var(--dk-radius-card);
  padding: 6px 20px;
}
.dk-qna__q {
  font-weight: 600;
  cursor: pointer;
  padding: 14px 0;
  list-style: none;
}
.dk-qna__q::marker { content: ""; }
.dk-qna__item[open] .dk-qna__q { color: var(--dk-accent); }
.dk-qna__item .dk-copy { margin-top: 0; padding-bottom: 8px; }

/* Prose */
.dk-copy { max-width: 68ch; color: var(--dk-text); }
.dk-copy--muted, .dk-muted { color: var(--dk-muted); }
main.dk-page .dk-band { padding: clamp(36px, 5vw, 72px) 0; }
.dk-page-head__title { max-width: 22ch; }
.dk-page-head__lead { font-size: 1.1rem; color: var(--dk-muted); max-width: 60ch; }

/* Contacts */
.dk-contact { display: grid; gap: 16px; margin-top: 24px; }
.dk-contact__row {
  padding: 20px 24px;
  background: var(--dk-bg);
  border: 1px solid var(--dk-line);
  border-radius: var(--dk-radius-card);
}
.dk-contact__label { display: block; font-size: 0.9rem; color: var(--dk-muted); margin-bottom: 4px; }
.dk-contact__value { font-weight: 600; }

/* Floating call */
.dk-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  background: var(--dk-accent);
  color: var(--dk-accent-text);
  border-radius: var(--dk-radius-btn);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgb(42 28 28 / .2);
  transition: background-color 0.2s ease, transform 0.1s ease;
}
.dk-float:hover { background: var(--dk-accent-dark); color: var(--dk-accent-text); }
.dk-float:active { transform: scale(0.97); }
.dk-float__icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid currentColor;
}

/* Footer */
.dk-tail {
  margin-top: clamp(16px, 2.5vw, 28px);
  background: var(--dk-surface);
  border-radius: var(--dk-radius-card) var(--dk-radius-card) 0 0;
  box-shadow: var(--dk-shadow-soft);
  padding: clamp(40px, 5vw, 72px) 0 24px;
}
.dk-tail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.dk-tail__brand { font-size: 1.2rem; font-weight: 700; margin: 0 0 12px; }
.dk-tail address { font-style: normal; color: var(--dk-muted); line-height: 1.6; }
.dk-tail address p { margin: 0 0 4px; }
.dk-tail__head { font-size: 1.05rem; margin-bottom: 12px; }
.dk-tail ul { list-style: none; margin: 0; padding: 0; }
.dk-tail li { margin-bottom: 8px; }
.dk-tail li span { color: var(--dk-muted); }
.dk-tail__list a, .dk-tail ul:not(.dk-tail__list) a { color: var(--dk-text); text-decoration: none; }
.dk-tail__list a:hover { color: var(--dk-accent); text-decoration: underline; }
.dk-tail__bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--dk-line);
}
.dk-tail__copy { color: var(--dk-muted); font-size: 0.95rem; margin: 0; }

/* Reveal */
html.dk-crafted .dk-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
html.dk-crafted .dk-reveal--shown {
  opacity: 1;
  transform: none;
}

.dk-lost, .dk-thanks { text-align: center; }
.dk-lost__code {
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--dk-accent);
}
.dk-thanks__title { max-width: none; }

/* Breakpoints */
@media (max-width: 479px) {
  .dk-topbar__inner { gap: 0.5rem; }
  .dk-topbar__brand { font-size: 0.95rem; }
  .dk-topbar__call { padding: 0 0.75rem; font-size: 0.85rem; }
  .dk-topbar__burger-text { display: none; }
  .dk-path__step { grid-template-columns: 1fr; }
  .dk-path__step .dk-copy { grid-column: auto; }
  .dk-float__text { display: none; }
  .dk-float { padding: 0; width: 56px; height: 56px; justify-content: center; }
}
@media (min-width: 480px) {
  .dk-float__icon { display: none; }
}
@media (min-width: 640px) {
  .dk-areas__grid { grid-template-columns: repeat(2, 1fr); }
  .dk-check { grid-template-columns: 1fr 1fr; }
  .dk-path__list { grid-template-columns: repeat(2, 1fr); }
  .dk-formband { grid-template-columns: 1fr 1fr; }
  .dk-tail__grid { grid-template-columns: repeat(2, 1fr); }
  .dk-contact { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .dk-hero__grid { grid-template-columns: 1.1fr 0.9fr; }
  .dk-hero__fig { max-width: 100%; }
  .dk-qna { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .dk-areas__grid { grid-template-columns: repeat(4, 1fr); }
  .dk-path__list { grid-template-columns: repeat(4, 1fr); }
  .dk-tail__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .dk-check { gap: 56px; }
}
@media (min-width: 1280px) {
  .dk-band { padding: clamp(56px, 6vw, 96px) 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html.dk-crafted .dk-reveal { opacity: 1; transform: none; }
}

@media (max-width: 479px) {
  .dk-band { padding-left: 1.25rem; padding-right: 1.25rem; }
  .dk-hero__line--mid { font-size: 0.5em; }
}
@media (min-width: 768px) {
  .dk-formband { align-items: stretch; }
  .dk-formband__main { display: flex; flex-direction: column; justify-content: center; }
}
