@font-face {
  font-family: Rubik;
  src: url('/assets/rubik-cyrillic.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: Rubik;
  src: url('/assets/rubik-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: light;
  font-family: Rubik, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: #282620;
  background: #f7f6f2;
  --paper: #f7f6f2;
  --ink: #282620;
  --muted: #68665f;
  --accent: #c63f24;
  --line: #d5d3ca;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100vh; background: var(--paper); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: #f6c8a7; color: #2c2824; }
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.page {
  width: min(1120px, calc(100% - 88px));
  margin: 0 auto;
  padding: 0 0 48px;
}
.panels {
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1fr);
  gap: 22px;
  margin: 0 auto;
  padding-top: clamp(26px, 6vh, 60px);
}
.poster, .form-panel { border-radius: 26px; }
.poster {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #f7e6b8;
  padding: 43px 44px;
  min-height: 570px;
}
.poster-copy { position: relative; z-index: 1; }
h1, h2, p { margin: 0; }
h1 {
  font-size: clamp(53px, 5vw, 72px);
  line-height: .96;
  font-weight: 650;
  letter-spacing: -.068em;
}
h1 span { color: var(--accent); }
.poster p {
  color: #534b37;
  max-width: 30ch;
  margin-top: 19px;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -.015em;
}
.poster-art {
  position: absolute;
  inset: 40% 0 0;
  pointer-events: none;
}
.poster-art img {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: auto;
  height: min(93%, 345px);
  max-width: 93%;
  object-fit: contain;
}
.sun {
  position: absolute;
  width: 118%;
  aspect-ratio: 1;
  left: -8%;
  top: 25%;
  border-radius: 50%;
  background-color: #f3d69a;
  background-image: radial-gradient(#cdac70 0.8px, transparent 1px);
  background-size: 6px 6px;
  transform: rotate(-9deg);
}
.form-panel {
  background: #fffefa;
  border: 1px solid #e4e2d9;
  box-shadow: 0 3px 10px #37342307;
  padding: 39px clamp(29px, 3.35vw, 49px) 40px;
}
h2 {
  font-size: clamp(25px, 2.4vw, 34px);
  line-height: 1.18;
  letter-spacing: -.048em;
  font-weight: 600;
}
#feedback-form { display: flex; flex-direction: column; gap: 24px; }
#feedback-form h2 { margin-bottom: 5px; }
.form-field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
label { display: block; font-weight: 500; font-size: 15px; line-height: 1.35; letter-spacing: -.015em; }
.field-hint { font-size: 14px; line-height: 1.45; color: var(--muted); }
.input-wrap, .textarea-wrap { position: relative; }
input, textarea {
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fff;
  width: 100%;
  display: block;
  color: var(--ink);
  outline: none;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -.015em;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .14s, box-shadow .14s;
}
input { height: 50px; padding: 11px 14px 11px 47px; }
textarea { padding: 13px 15px 32px; min-height: 125px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #76736c; opacity: 1; }
.machine-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #777367;
  pointer-events: none;
  font-weight: 500;
  font-size: 19px;
}
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #c63f241a; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #ae2d22; }
.counter {
  font-size: 12px;
  color: #6d6a61;
  position: absolute;
  right: 15px;
  bottom: 10px;
  padding: 1px 3px;
  background: white;
  line-height: 1;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.field-error, .form-error { color: #a52b1e; font-size: 13px; line-height: 1.5; }
.form-error { padding: 11px 14px; background: #fff0e9; border-radius: 9px; }
.submit, .secondary {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  min-height: 53px;
  padding: 12px 18px;
  border: 0;
  border-radius: 11px;
  font-size: 16px;
  font-weight: 550;
  line-height: 1.4;
  letter-spacing: -.016em;
  transition: background-color .15s, transform .15s;
}
.submit { color: white; background: var(--accent); }
.submit:active, .secondary:active { transform: translateY(1px); }
.submit .arrow { width: 20px; height: 20px; stroke-width: 1.9; }
.submit:disabled { cursor: wait; opacity: .75; }
.submit[aria-busy="true"] .arrow { display: none; }
button:focus-visible { outline: 3px solid #65301c; outline-offset: 3px; }
.confirmation { min-height: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; }
.check { display: grid; place-items: center; width: 59px; height: 59px; border-radius: 18px; background: #f7e6b8; color: #754125; }
.check svg { width: 30px; height: 30px; stroke-width: 2; }
.confirmation h2 { font-size: 38px; outline: none; }
.confirmation p { color: var(--muted); line-height: 1.6; max-width: 31ch; overflow-wrap: anywhere; }
.confirmation strong { color: var(--ink); font-weight: 500; }
.secondary { background: #f5f1e7; color: var(--ink); }
@media (hover: hover) {
  .submit:hover:enabled { background: #b1371f; }
  .secondary:hover { background: #eee6d4; }
}
@media (max-width: 900px) and (min-width: 721px) {
  .page { width: calc(100% - 48px); }
  .panels { grid-template-columns: minmax(0, .77fr) minmax(0, 1fr); gap: 16px; }
  .poster { padding: 34px 26px; }
  .poster p { font-size: 16px; }
  .form-panel { padding: 32px 25px; }
}
@media (max-width: 720px) {
  .page { width: min(560px, 100% - 32px); padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .panels { grid-template-columns: 1fr; padding-top: 15px; gap: 13px; }
  .poster, .form-panel { border-radius: 20px; }
  .poster { min-height: 175px; padding: 22px 20px; display: flex; align-items: center; }
  h1 { font-size: clamp(36px, 9.5vw, 48px); line-height: .98; letter-spacing: -.06em; }
  .poster-copy { width: 64%; }
  .poster p { margin-top: 11px; font-size: 13px; line-height: 1.4; max-width: 24ch; }
  .poster-art { inset: 0 -2% 0 57%; }
  .poster-art img { height: 84%; bottom: 5%; max-width: 100%; }
  .sun { width: 174%; left: -6%; top: 29%; }
  .form-panel { padding: 22px 19px; }
  h2 { font-size: 25px; }
  #feedback-form { gap: 18px; }
  #feedback-form h2 { margin-bottom: 1px; }
  .form-field { gap: 7px; }
  label { font-size: 14px; }
  input { height: 47px; }
  textarea { height: 111px; min-height: 111px; }
  .submit { min-height: 49px; }
  .confirmation { min-height: 300px; gap: 15px; }
  .confirmation h2 { font-size: 33px; }
}
@media (max-width: 360px) {
  .page { width: calc(100% - 24px); }
  .poster { padding: 18px 15px; min-height: 159px; }
  h1 { font-size: clamp(29px, 10vw, 36px); }
  .form-panel { padding: 20px 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
