/* KOKORO — общие стили сайта заказов и панели. Палитра и шрифты — как на основном сайте. */

/* Unbounded — заголовки, Manrope — текст */
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-cyrillic.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bucket: #EC4B04;
  --crust: #2B1308;
  --kraft: #EBDCC0;
  --tray: #FFD23F;
  --chili: #C81E14;
  --cream: #FFF6E8;
  --crust-soft: #4A2A18;
  --muted: rgba(43, 19, 8, 0.62);
  --line: rgba(43, 19, 8, 0.18);
  --ok: #1E7A3E;

  --display: "Unbounded", "Arial Black", sans-serif;
  --text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 500 16px/1.5 var(--text); color: var(--crust); background: var(--bucket); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; }
:focus-visible { outline: 3px solid var(--tray); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Логотип как маска — красится в currentColor */
.logo-mask {
  display: inline-block;
  aspect-ratio: 660 / 340;
  background-color: currentColor;
  -webkit-mask: url("../img/logo-white.png") center / contain no-repeat;
  mask: url("../img/logo-white.png") center / contain no-repeat;
}

.btn {
  --btn-bg: var(--crust);
  --btn-fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  border: 2px solid var(--btn-bg); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 17px; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 0 rgba(43, 19, 8, 0.9);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(43, 19, 8, 0.9); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(43, 19, 8, 0.9); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--tray { --btn-bg: var(--tray); --btn-fg: var(--crust); }
.btn--bucket { --btn-bg: var(--bucket); --btn-fg: var(--crust); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--crust); border-color: var(--crust); box-shadow: none; }
.btn--ghost:hover { background: rgba(43, 19, 8, .08); box-shadow: none; }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--cream); border-color: var(--cream); box-shadow: none; }
.btn--ghost-light:hover { background: rgba(255, 246, 232, .08); box-shadow: none; }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: 15px; box-shadow: none; }
.btn--small:hover { box-shadow: none; }
.btn--block { width: 100%; }

.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.field > span { color: var(--crust-soft); }
.field i { font-style: normal; font-weight: 500; color: var(--muted); }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font-size: 16px; font-weight: 500;
  background: #fff; border: 2px solid var(--line); border-radius: 12px;
}
.field textarea { min-height: 0; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--crust); }
.field input[aria-invalid="true"] { border-color: var(--chili); }
.error { color: var(--chili); font-weight: 600; font-size: 15px; }
.error:empty { display: none; }
