@font-face {
  font-family: "Dela Gothic One";
  src: url("../fonts/dela-cyr.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Dela Gothic One";
  src: url("../fonts/dela-lat.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-cyr.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-lat.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20BD;
}

:root {
  --ai: #D4380F;
  --ai-deep: #A82A08;
  --ai-soft: #FFE3D6;
  --rice: #FFF9F0;
  --paper: #FFFFFF;
  --lantern: #FFC53D;
  --salmon: #FF8B6A;
  --wasabi: #C4E25A;
  --lagoon: #0B7F86;
  --ink: #2A1A12;
  --ink-soft: #6A5244;
  --line: #F0DFCF;
  --danger: #A81E2E;
  --ok: #2F6B3C;
  --display: "Dela Gothic One", "Golos Text", sans-serif;
  --body: "Golos Text", -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 140px; }
body {
  margin: 0;
  background: var(--rice);
  color: var(--ink);
  font: 400 1rem/1.5 var(--body);
  font-variant-numeric: tabular-nums;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
::selection { background: var(--salmon); color: var(--ai-deep); }
:focus-visible { outline: 3px solid var(--ai); outline-offset: 2px; border-radius: 4px; }
input, textarea, select { caret-color: var(--ai); accent-color: var(--ai); }
[hidden] { display: none !important; }

.visually-hidden, .live {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.field { display: grid; gap: 6px; }
.field > label, .field > .label { font-weight: 600; font-size: .9375rem; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 11px 14px;
  background: var(--paper); border: 1.5px solid #A88C7A; border-radius: 10px;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: 3px solid var(--ai); outline-offset: 0; border-color: var(--ai);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field .hint { font-size: .875rem; color: var(--ink-soft); }
.field .error, .form-error { color: var(--danger); font-size: .9375rem; font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px;
  border: 1.5px solid var(--ai); border-radius: 10px;
  background: var(--ai); color: #fff; font-weight: 600; text-decoration: none;
  transition: background-color .15s, color .15s;
}
.btn:hover:not(:disabled) { background: var(--ai-deep); }
.btn:disabled { background: #E3CDBF; border-color: #E3CDBF; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ai); }
.btn.ghost:hover:not(:disabled) { background: var(--ai-soft); }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn.danger:hover:not(:disabled) { background: #FBE6E8; }

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