/* Тушкийиз — демо-сайт вымышленной тойканы. Проект Азиза Омурова.
   Палитра «бархат и шёлковая нить»: тёмный бархат, золото, гранат, бирюза.
   Шрифты: Unbounded (заголовки) + Geologica (текст), свой хостинг.
   В этих файлах нет кыргызских ү/ө/ң — слова с ними набираются системным шрифтом (.ky). */

@font-face { font-family: "Unbounded"; font-weight: 500 900; font-display: swap; src: url(/fonts/unbounded-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 500 900; font-display: swap; src: url(/fonts/unbounded-latin.woff2) format("woff2"); 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; }
@font-face { font-family: "Geologica"; font-weight: 400 700; font-display: swap; src: url(/fonts/geologica-cyrillic-ext.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Geologica"; font-weight: 400 700; font-display: swap; src: url(/fonts/geologica-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geologica"; font-weight: 400 700; font-display: swap; src: url(/fonts/geologica-latin.woff2) format("woff2"); 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 {
  --velvet: #211735;
  --velvet-deep: #150e26;
  --velvet-2: #2c2148;
  --velvet-line: #43366a;
  --gold: #e8b85c;
  --gold-hi: #f3cd7e;
  --anar: #b0234a;
  --anar-deep: #8e1739;
  --anar-soft: #fbedf1;
  --rose: #e98aa0;
  --teal: #2ba08f;
  --free: #16705f;
  --free-bg: #e4f3ee;
  --free-line: #b5dfd2;
  --one: #7a4f00;
  --one-bg: #fff2d6;
  --one-line: #efcf8d;
  --busy: #5f5772;
  --ink: #1d1630;
  --ink-2: #574d6b;
  --paper: #f7f4fa;
  --paper-2: #efe9f5;
  --white: #ffffff;
  --line: #e2dbea;
  --line-2: #cbc0da;
  --on-dark: #f5eff9;
  --on-dark-2: #c6bcd8;
  --focus: #6b3fd9;
  --display: "Unbounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text: "Geologica", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ky: "Geologica", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 16px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 12px; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
b, strong { font-weight: 600; }
.ky { font-family: var(--ky); }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .site-header :focus-visible, .sec--owner :focus-visible, .site-footer :focus-visible, .minibar:focus-visible { outline-color: var(--gold-hi); }
[tabindex="-1"]:focus { outline: none; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: 12px;
  font: 600 16px/1.2 var(--text); text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 15px; border-radius: 10px; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 17px; }
.btn--xl { min-height: 60px; padding: 16px 28px; font-size: 18px; }
.btn--gold { background: var(--gold); color: var(--velvet-deep); }
.btn--gold:hover { background: var(--gold-hi); }
.btn--anar { background: var(--anar); color: var(--white); }
.btn--anar:hover { background: var(--anar-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sun { background: #ffd25a; color: #102a33; }
.btn--sun:hover { background: #ffe08c; }

.link-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--on-dark); border-bottom: 1.5px solid rgba(232, 184, 92, .55); }
.link-more svg { width: 18px; height: 18px; color: var(--gold); transition: transform .2s; }
.link-more:hover svg { transform: translateX(3px); }

/* ---------- Пометка о демо и шапка ---------- */
.demo-bar { background: var(--paper-2); color: var(--ink); font-size: 13.5px; line-height: 1.35; border-bottom: 1px solid var(--line); }
.demo-bar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.demo-bar a { flex: none; font-weight: 600; color: var(--anar); text-underline-offset: 3px; }

.site-header { background: var(--velvet); color: var(--on-dark); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; min-height: 44px; }
.logo__mark { width: 28px; height: 28px; color: var(--gold); }
.nav { display: none; }
.nav ul { display: flex; gap: 6px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; color: var(--on-dark-2); font-weight: 500; border-radius: 8px; }
.nav a:hover { color: var(--on-dark); }
@media (min-width: 860px) {
  .nav { display: block; margin-left: auto; }
}

/* ---------- Первый экран ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(90% 60% at 85% 10%, rgba(176, 35, 74, .22), transparent 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(43, 160, 143, .12), transparent 60%),
    var(--velvet);
  color: var(--on-dark);
  padding: 22px 0 64px;
}
.hero__in { display: grid; gap: 34px; }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; }
.hero__kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark-2); font-size: 15px; margin-bottom: 10px; }
.hero__kicker svg { width: 18px; height: 18px; color: var(--gold); }
.hero__title {
  font-weight: 600; font-size: clamp(46px, 14vw, 92px); letter-spacing: -0.03em; line-height: 1;
  color: var(--gold);
}
.hero__promise { margin-top: 14px; font-size: clamp(19px, 5vw, 24px); line-height: 1.35; max-width: 26ch; color: var(--on-dark); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 26px; width: 100%; max-width: 560px; }
.facts li { display: flex; flex-direction: column; gap: 4px; padding: 2px 10px 2px 12px; border-left: 1px solid var(--velvet-line); }
.facts li:first-child { padding-left: 0; border-left: 0; }
.facts b { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 5.6vw, 30px); line-height: 1.1; color: var(--on-dark); white-space: nowrap; }
.facts span { font-size: 13px; line-height: 1.35; color: var(--on-dark-2); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.hero__teaser { margin-top: 18px; }
.teaser {
  display: inline-flex; align-items: center; gap: 10px; text-align: left;
  min-height: 44px; padding: 8px 14px 8px 12px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--velvet-line); border-radius: 12px;
  color: var(--on-dark); font-size: 14.5px; line-height: 1.35; cursor: pointer;
}
.teaser:hover { border-color: var(--gold); }
.teaser__dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(43, 160, 143, .22); }
.teaser b { color: var(--gold-hi); font-weight: 600; }

/* Тушкийиз — панель-ковёр */
/* Ковёр: бордюр из плитки tile.svg, внутри бархатное поле с медальоном, снизу бахрома */
.tk { margin: 0 2px; order: -1; }
.tk__field {
  position: relative; display: grid; place-items: center;
  height: 210px; padding: 14px;
  border: 12px solid transparent;
  background:
    radial-gradient(120% 90% at 30% 15%, #33255a 0%, #1d1433 55%, #120b20 100%) padding-box,
    url(/demo/toykana/tile.svg) 0 0 / 14px 14px round border-box;
  background-color: var(--velvet-deep);
  box-shadow: 0 34px 60px -34px rgba(0, 0, 0, .75);
}
.tk__field::before {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  border: 1px solid rgba(232, 184, 92, .55); outline: 1px solid rgba(232, 184, 92, .22); outline-offset: 4px;
}
/* бахрома */
.tk__field::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: -26px; height: 14px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 1.5px, transparent 1.5px 5px);
  -webkit-mask-image: linear-gradient(#000 35%, transparent);
  mask-image: linear-gradient(#000 35%, transparent);
  opacity: .8;
}
.tk figcaption { display: none; margin-top: 26px; font-size: 13px; line-height: 1.45; color: var(--on-dark-2); max-width: 46ch; }
.tk { margin-bottom: 14px; }
@media (min-width: 720px) { .tk__field { height: 300px; } .tk figcaption { display: block; } .tk { margin-bottom: 0; } }
.medallion { width: min(170px, 46vw); height: auto; }
@media (min-width: 720px) { .medallion { width: 236px; } }
.tk__sprig { display: none; position: absolute; left: 50%; width: 118px; height: 68px; margin-left: -59px; }
.s-top { top: 34px; }
.s-bot { bottom: 34px; transform: scaleY(-1); }
.tk__corner { position: absolute; width: 42px; height: 42px; }
.c-tl { top: 14px; left: 14px; }
.c-tr { top: 14px; right: 14px; transform: scaleX(-1); }
.c-bl { bottom: 14px; left: 14px; transform: scaleY(-1); }
.c-br { bottom: 14px; right: 14px; transform: scale(-1, -1); }

.st { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tk__corner .st { stroke-width: 1.7; }
.fl--anar { fill: #c8325a; }
.fl--rose { fill: var(--rose); }
.fl--teal { fill: var(--teal); }
.fl--gold { fill: var(--gold); }
.ring { fill: none; stroke: var(--gold); stroke-width: 1.2; opacity: .75; }
.ring--dots { stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 0 7.2; opacity: .9; }

@media (min-width: 1024px) {
  .hero { padding: 40px 0 104px; }
  .hero__in { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: 56px; }
  .tk { order: 0; margin: 0; }
  .tk__field { height: 560px; border-width: 16px; background-size: auto, 18px 18px; }
  .tk__field::after { bottom: -32px; height: 16px; }
  .medallion { width: 330px; }
  .tk__corner { width: 68px; height: 68px; }
  .tk__sprig { display: block; }
  .c-tl { top: 20px; left: 20px; } .c-tr { top: 20px; right: 20px; } .c-bl { bottom: 20px; left: 20px; } .c-br { bottom: 20px; right: 20px; }
  .hero__title { font-size: clamp(72px, 7vw, 100px); }
  .hero__promise { font-size: 26px; }
  .facts b { font-size: 32px; }
  .facts span { font-size: 14px; }
}

/* Единственный оркестрованный вход: вышивка «прошивается», текст поднимается */
@media (prefers-reduced-motion: no-preference) {
  .medallion .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: stitch 1.5s cubic-bezier(.55, 0, .25, 1) .25s forwards; }
  .medallion .bloom { transform-box: view-box; transform-origin: 120px 120px; animation: bloom .8s cubic-bezier(.2, .7, .2, 1) 1.15s both; }
  .medallion .bloom--center { animation-delay: .9s; }
  .hero__text > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__text > :nth-child(2) { animation-delay: .08s; }
  .hero__text > :nth-child(3) { animation-delay: .16s; }
  .hero__text > :nth-child(4) { animation-delay: .24s; }
  .hero__text > :nth-child(5) { animation-delay: .32s; }
  .hero__text > :nth-child(6) { animation-delay: .4s; }
}
@keyframes stitch { to { stroke-dashoffset: 0; } }
@keyframes bloom { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Секции ---------- */
.sec { padding: 64px 0; }
@media (min-width: 1024px) { .sec { padding: 104px 0; } }
.sec-head { max-width: 720px; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(30px, 7.6vw, 48px); }
.sec-head > p:last-child { margin-top: 12px; font-size: 17px; color: var(--ink-2); max-width: 60ch; }
.sec-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 600; font-size: 15px; color: var(--anar); }
.sec-kicker svg { width: 18px; height: 18px; }

/* ---------- Календарь ---------- */
.cal-layout { display: grid; gap: 18px; }
@media (min-width: 1024px) {
  .cal-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: start; }
}
.cal-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 14px 12px 16px; }
@media (min-width: 720px) { .cal-card { padding: 22px; } }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 14px; padding: 4px; border: 1.5px solid var(--line-2); border-radius: 13px; min-width: 0; }
.seg label { position: relative; display: block; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; padding: 6px 8px; border-radius: 9px; font-weight: 600; line-height: 1.2; text-align: center; transition: background-color .2s, color .2s; }
.seg small { font-weight: 400; font-size: 13px; color: var(--ink-2); }
.seg input:checked + span { background: var(--velvet); color: var(--on-dark); }
.seg input:checked + span small { color: var(--on-dark-2); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.months-cap { margin: 2px 2px 8px; font-size: 13px; color: var(--ink-2); }
.months { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.month-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-height: 52px; padding: 7px 4px; border: 1.5px solid var(--line); border-radius: 11px;
  background: var(--white); cursor: pointer; text-align: center; line-height: 1.2;
}
.month-btn b { font-size: 14.5px; }
.month-btn span { font-size: 11.5px; color: var(--ink-2); }
.month-btn:hover { border-color: var(--line-2); }
.month-btn[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.cal { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 4px; margin: 0 -4px; width: calc(100% + 8px); }
.cal caption { text-align: left; padding: 4px 4px 6px; font-family: var(--display); font-size: 19px; font-weight: 500; }
.cal th { padding: 2px 0 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.cal th.we { color: var(--anar); }
.cal td { padding: 0; }
.day {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 100%; min-height: 46px; aspect-ratio: 1 / 1.02; padding: 0;
  border: 1.5px solid transparent; border-radius: 10px; background: transparent;
  font: 600 15px/1 var(--text); color: var(--ink); cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.day i { width: 6px; height: 6px; border-radius: 50%; }
.day--free { background: var(--free-bg); border-color: var(--free-line); color: #0d4a3f; }
.day--free i { background: var(--free); }
.day--free:hover { border-color: var(--free); }
.day--one { background: var(--one-bg); border-color: var(--one-line); color: #5e3d00; }
.day--one i { border: 1.5px solid var(--one); background: linear-gradient(90deg, var(--one) 50%, transparent 50%); width: 8px; height: 8px; }
.day--one:hover { border-color: var(--one); }
.day--busy { background: repeating-linear-gradient(135deg, #f0ebf5 0 5px, #e6dfee 5px 10px); color: var(--busy); }
.day--busy .day__n { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.day--busy:hover { border-color: var(--line-2); }
.day--past { color: #b3abc0; cursor: default; font-weight: 500; }
.day.is-sel { background: var(--anar); border-color: var(--anar-deep); color: var(--white); }
.day.is-sel i { background: var(--white); border-color: var(--white); }
.day.is-alt { box-shadow: 0 0 0 2px var(--busy) inset; }
@media (min-width: 720px) { .day { font-size: 16px; min-height: 52px; aspect-ratio: auto; height: 58px; } }

.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: 13.5px; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.lg { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid; }
.lg--free { background: var(--free-bg); border-color: var(--free-line); }
.lg--one { background: var(--one-bg); border-color: var(--one-line); }
.lg--busy { background: repeating-linear-gradient(135deg, #f0ebf5 0 3px, #ddd5e7 3px 6px); border-color: #ddd5e7; }
.legend__note { color: var(--free); font-weight: 600; }

.cal-side { display: grid; gap: 14px; }
@media (min-width: 1024px) { .cal-side { position: sticky; top: 24px; } .pick { position: static; } }
.steps { counter-reset: s; display: grid; gap: 2px; padding: 6px 4px; }
.steps li { counter-increment: s; position: relative; display: grid; padding: 10px 0 10px 44px; font-size: 14.5px; line-height: 1.4; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-2); font-family: var(--display); font-size: 13px; color: var(--anar); }
.steps li + li { border-top: 1px dashed var(--line-2); }
.steps li + li::before { top: 10px; }
.steps span { color: var(--ink-2); font-size: 14px; }
.pick { background: var(--velvet); color: var(--on-dark); border-radius: 18px; padding: 22px 20px; position: relative; overflow: hidden; }
.pick::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: url(/demo/toykana/tile.svg) 0 0 / 8px 8px round; }
.pick__label { font-size: 14px; color: var(--on-dark-2); }
.pick__date { margin-top: 6px; font-family: var(--display); font-weight: 500; font-size: clamp(28px, 8vw, 38px); line-height: 1.08; letter-spacing: -0.02em; }
.pick__date--empty { font-size: clamp(22px, 6vw, 28px); }
.pick__wd { margin-top: 4px; color: var(--on-dark-2); }
.pick__st { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 600; }
.pick__st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pick__st--free { background: rgba(43, 160, 143, .18); color: #7fe0cf; }
.pick__st--one { background: rgba(232, 184, 92, .16); color: var(--gold-hi); }
.pick__st--busy { background: rgba(233, 138, 160, .16); color: #f6b3c3; }
.pick__price { margin-top: 12px; font-size: 15px; color: var(--on-dark-2); }
.pick__price b { color: var(--on-dark); }
.pick__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pick__text { margin-top: 10px; color: var(--on-dark-2); }
.pick .btn--ghost { color: var(--on-dark); border-color: var(--velvet-line); }
.pick .btn--ghost:hover { border-color: var(--gold); }
.alts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.alt { min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--velvet-line); background: rgba(255, 255, 255, .05); color: var(--on-dark); cursor: pointer; font-weight: 500; font-size: 14.5px; }
.alt:hover { border-color: var(--gold); }
.alt small { display: block; font-size: 12px; color: var(--on-dark-2); font-weight: 400; }
.pick__other { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--velvet-line); color: var(--on-dark-2); }
.pick__other .btn { margin-top: 10px; }
.noscript { margin-top: 10px; color: var(--anar); }

/* ---------- Смета ---------- */
.sec--smeta { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.smeta { display: grid; gap: 30px; }
@media (min-width: 1024px) {
  .smeta { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .receipt { position: sticky; top: 24px; }
}
.field { margin: 0 0 28px; padding: 0; border: 0; min-width: 0; }
.field__label { display: block; padding: 0; margin-bottom: 10px; font-weight: 600; font-size: 15px; }
.field__label--row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tables-note { font-weight: 400; font-size: 14px; color: var(--ink-2); }

.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 720px) { .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.chip { position: relative; display: block; }
.chip input, .hp input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span, .hp span {
  display: flex; flex-direction: column; gap: 2px; height: 100%;
  padding: 11px 12px; border: 1.5px solid var(--line-2); border-radius: 12px; line-height: 1.25;
  transition: border-color .15s, background-color .15s;
}
.chip b { font-family: var(--ky); font-size: 15.5px; font-weight: 600; }
.chip small, .hp small { font-size: 13px; color: var(--ink-2); }
.chip input:checked + span, .hp input:checked + span { border-color: var(--anar); background: var(--anar-soft); box-shadow: inset 0 0 0 1px var(--anar); }
.chip input:focus-visible + span, .hp input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.chip:hover span, .hp:hover span { border-color: var(--ink-2); }

.date-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 12px 14px; border: 1.5px dashed var(--line-2); border-radius: 12px; }
.date-box.is-set { border-style: solid; border-color: var(--free-line); background: var(--free-bg); }
.date-box__v { font-weight: 600; }
.date-box__v small { display: block; font-weight: 400; font-size: 13.5px; color: var(--ink-2); }
.date-box__link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--anar); text-underline-offset: 3px; }

.halls-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hp { position: relative; display: block; }
.hp b { font-size: 16px; }

.guests { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.guests__out { min-width: 3.4ch; font-family: var(--display); font-weight: 500; font-size: 34px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; text-align: center; }
.step { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--white); cursor: pointer; color: var(--ink); }
.step svg { width: 20px; height: 20px; }
.step:hover { border-color: var(--ink); }
.step:disabled { opacity: .4; cursor: default; }
.hint { margin-top: 4px; font-size: 13.5px; color: var(--ink-2); min-height: 1.4em; }

.range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 34px; margin: 6px 0 0; background: transparent; cursor: pointer; --fill: 33%; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--anar) var(--fill), var(--line-2) var(--fill)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--white); border: 2.5px solid var(--anar); box-shadow: 0 2px 6px rgba(29, 22, 48, .18); }
.range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line-2); }
.range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--anar); }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 2.5px solid var(--anar); }
.range:focus-visible { outline-offset: 2px; }

.opts { border-top: 1px solid var(--line); }
.opt {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: baseline;
  padding: 13px 2px; border-bottom: 1px dashed var(--line-2); cursor: pointer;
}
.opt input { width: 20px; height: 20px; margin: 0; align-self: start; margin-top: 1px; accent-color: var(--anar); cursor: pointer; }
.opt__name { font-weight: 600; }
.opt__price { font-family: var(--display); font-weight: 500; font-size: 14.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.opt__desc { grid-column: 2 / 4; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.opt:has(input:checked) .opt__name { color: var(--anar); }
.opt:hover .opt__name { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* чек-смета */
.receipt__paper { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 6px 6px 16px 16px; padding: 30px 20px 20px; }
.receipt__paper::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 10px; border-radius: 6px 6px 0 0; background: var(--velvet-deep) url(/demo/toykana/tile.svg) 0 0 / 10px 10px round; }
@media (min-width: 720px) { .receipt__paper { padding: 34px 28px 24px; } }
.receipt__no { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.receipt h3 { margin-top: 6px; font-size: 21px; }
.receipt__meta { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.receipt__meta .warn { color: var(--anar); font-weight: 600; }
.r-lines { margin-top: 18px; }
.r-lines li { display: flex; align-items: flex-end; gap: 6px; padding: 7px 0; font-size: 15px; line-height: 1.3; }
.r-l { min-width: 0; }
.r-l small { display: block; font-size: 12.5px; color: var(--ink-2); }
.r-dots { flex: 1 1 12px; min-width: 12px; border-bottom: 1.5px dotted var(--line-2); margin-bottom: 4px; }
.r-v { flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 500; }
.r-lines .is-disc .r-v { color: var(--free); }
.r-lines .is-incl .r-v { color: var(--ink-2); font-weight: 400; }
.r-total { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 12px; margin-top: 14px; padding-top: 16px; border-top: 2px solid var(--ink); }
.r-total__l { font-weight: 600; }
.r-total__v { justify-self: end; font-family: var(--display); font-weight: 600; font-size: clamp(26px, 7.4vw, 34px); letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.r-total__per { grid-column: 1 / -1; justify-self: end; font-size: 14px; color: var(--ink-2); }
.r-prepay { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--paper-2); font-size: 14px; }
.r-prepay b { font-variant-numeric: tabular-nums; }
.receipt__actions { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 480px) { .receipt__actions { grid-template-columns: 1.15fr 1fr; } }
.receipt__err { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--anar-soft); color: var(--anar-deep); font-weight: 600; font-size: 14.5px; }
.receipt__err a { color: inherit; }
.receipt__note { margin-top: 14px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }

/* мини-итог на телефоне */
.minibar {
  position: fixed; z-index: 30; left: 10px; right: 10px; bottom: 10px;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 12px;
  padding: 10px 14px 10px 16px; border-radius: 14px;
  background: var(--velvet); color: var(--on-dark); text-decoration: none;
  box-shadow: 0 14px 30px -12px rgba(21, 14, 38, .6);
  transform: translateY(140%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s;
}
.minibar.is-on { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
.minibar__l { grid-column: 1; font-size: 12.5px; color: var(--on-dark-2); }
.minibar__v { grid-column: 1; font-family: var(--display); font-weight: 500; font-size: 19px; font-variant-numeric: tabular-nums; }
.minibar__go { grid-column: 2; grid-row: 1 / 3; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 10px; background: var(--gold); color: var(--velvet-deep); font-weight: 600; font-size: 15px; }
.minibar__go svg { width: 16px; height: 16px; }
@media (min-width: 1024px) { .minibar { display: none; } }

/* ---------- Залы ---------- */
.halls { display: grid; gap: 18px; }
@media (min-width: 1024px) { .halls { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; } }
.hall { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 18px; transition: border-color .2s, box-shadow .2s; }
.hall.is-active { border-color: var(--anar); box-shadow: inset 0 0 0 1px var(--anar); }
.hall__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 14px; }
.hall__head h3 { font-size: 24px; }
.hall__head p { font-size: 14px; color: var(--ink-2); }
.plan { padding: 8px; border-radius: 12px; background: #fbf9fd; border: 1px solid var(--line); }
.plan svg { width: 100%; height: auto; }
.hall__count { margin-top: 12px; font-weight: 600; }
.hall__count.is-over { color: var(--anar); }
.hall__facts { display: grid; gap: 4px; margin: 12px 0 16px; font-size: 14.5px; color: var(--ink-2); }
.hall__facts li { position: relative; padding-left: 16px; }
.hall__facts li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; transform: rotate(45deg); background: var(--anar); }

.p-wall { fill: none; stroke: var(--ink); stroke-width: 2; }
.p-gap { fill: #fbf9fd; }
.p-stage { fill: var(--velvet); }
.p-stage-t { fill: var(--on-dark); font: 600 14px var(--text); }
.p-head { fill: var(--gold); }
.p-floor { stroke: #d6cbe4; stroke-width: 1; }
.p-floor-t { fill: var(--ink-2); font: 600 15px var(--text); }
.p-door-t { fill: var(--ink-2); font: 600 13px var(--text); }
.p-hatch { stroke: #e2d9ee; stroke-width: 2; }
.t-table, .t-chair { transition: fill .25s, stroke .25s; }
.t-on .t-table { fill: var(--anar); stroke: var(--anar-deep); stroke-width: 1; }
.t-on .t-chair { fill: var(--anar); }
.t-off .t-table { fill: #fff; stroke: var(--line-2); stroke-width: 1.2; }
.t-off .t-chair { fill: #ddd5e7; }

.plan-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 13.5px; color: var(--ink-2); }
.plan-legend li { display: inline-flex; align-items: center; gap: 7px; }
.pl { width: 14px; height: 14px; border-radius: 50%; }
.pl--on { background: var(--anar); }
.pl--off { background: #fff; border: 1.5px solid var(--line-2); }
.pl--head { width: 22px; height: 8px; border-radius: 4px; background: var(--gold); }
.pl--floor { width: 18px; border-radius: 4px; background: repeating-linear-gradient(135deg, #f3eff8 0 3px, #e2d9ee 3px 5px); border: 1px solid #d6cbe4; }

/* ---------- Владельцу ---------- */
.sec--owner { background: var(--velvet); color: var(--on-dark); position: relative; }
.sec--owner::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: var(--velvet-deep) url(/demo/toykana/tile.svg) 0 0 / 12px 12px round; }
.sec--owner .sec-kicker { color: var(--gold); }
.owner { display: grid; gap: 34px; }
@media (min-width: 1024px) { .owner { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; } }
.owner h2 { font-size: clamp(30px, 7.6vw, 48px); }
.owner__lead { margin-top: 12px; font-size: 17px; color: var(--on-dark-2); }
.gains { counter-reset: g; display: grid; gap: 18px; margin-top: 28px; }
.gains li { counter-increment: g; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
.gains li::before { content: counter(g); grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--velvet-line); border-radius: 50%; font-family: var(--display); font-size: 15px; color: var(--gold); }
.gains b { font-size: 17px; }
.gains span { color: var(--on-dark-2); font-size: 15px; }

.admin { background: var(--paper); color: var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.admin__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--white); border-bottom: 1px solid var(--line); }
.admin__brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.admin__brand svg { width: 22px; height: 22px; color: var(--anar); }
.tag { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--one-bg); color: var(--one); font-size: 12.5px; font-weight: 600; border: 1px solid var(--one-line); }
.admin__body { padding: 16px; }
@media (min-width: 720px) { .admin__body { padding: 20px 22px 22px; } }
.admin__h { font-family: var(--text); font-weight: 600; font-size: 15px; letter-spacing: 0; color: var(--ink-2); margin-bottom: 10px; }
.admin__h:not(:first-child) { margin-top: 24px; }
.events { display: grid; gap: 8px; }
.ev { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 12px; row-gap: 6px; padding: 10px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.ev--new { border-color: var(--anar); box-shadow: inset 0 0 0 1px var(--anar); }
.ev__date { grid-row: 1 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 0; border-radius: 9px; background: var(--paper-2); line-height: 1.1; }
.ev__date b { font-family: var(--display); font-weight: 500; font-size: 19px; }
.ev__date span { font-size: 11.5px; color: var(--ink-2); }
.ev__title { font-weight: 600; font-size: 15px; line-height: 1.3; }
.ev__meta { font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.ev__pay { grid-column: 2; justify-self: start; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.pay--paid { background: var(--free-bg); color: #0d4a3f; }
.pay--pre { background: #ece6f8; color: #463873; }
.pay--wait { background: var(--one-bg); color: var(--one); }
.pay--new { background: var(--anar-soft); color: var(--anar-deep); }
@media (min-width: 720px) {
  .ev { grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; }
  .ev__date { grid-row: 1 / 3; }
  .ev__pay { grid-column: 3; grid-row: 1 / 3; justify-self: end; align-self: center; text-align: right; }
}
.occ { display: grid; gap: 12px; }
.occ li { display: grid; grid-template-columns: 74px minmax(0, 1fr) 44px; align-items: center; gap: 4px 12px; font-size: 14px; }
.occ__m { font-weight: 600; }
.occ__bar { height: 10px; border-radius: 5px; background: var(--paper-2); overflow: hidden; border: 1px solid var(--line); }
.occ__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--anar), #d8486f); border-radius: 5px; }
.occ__v { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.occ__w { grid-column: 2 / 4; font-size: 12.5px; color: var(--ink-2); margin-top: -2px; }
.admin__note { margin-top: 16px; font-size: 12.5px; color: var(--ink-2); }

/* ---------- Предложение Азиза ---------- */
.aziz { background: #0a4f57; color: #f3f6f5; padding: 64px 0; }
@media (min-width: 1024px) { .aziz { padding: 88px 0; } }
.aziz :focus-visible { outline-color: #ffd25a; }
.aziz__in { display: grid; gap: 30px; }
@media (min-width: 1024px) { .aziz__in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: center; } }
.aziz__kicker { font-size: 15px; font-weight: 600; color: #ffd25a; margin-bottom: 10px; }
.aziz h2 { font-size: clamp(28px, 7vw, 44px); color: #fff; }
.aziz__text > p:not(.aziz__kicker) { margin-top: 14px; font-size: 17px; color: #cfe2e0; max-width: 52ch; }
.aziz__list { display: grid; gap: 8px; margin-top: 20px; }
.aziz__list li { position: relative; padding-left: 26px; }
.aziz__list li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid #ffd25a; border-bottom: 2.5px solid #ffd25a; transform: rotate(-45deg); }
.aziz__offer { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px 20px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); }
@media (min-width: 720px) { .aziz__offer { padding: 30px; } }
.aziz__price { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 9vw, 48px); line-height: 1; color: #fff; letter-spacing: -0.02em; }
.aziz__price span { font-size: .45em; font-weight: 500; color: #cfe2e0; letter-spacing: 0; }
.aziz .btn--xl { width: 100%; }
.aziz__small { font-size: 13.5px; color: #cfe2e0; }
.aziz__sign a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: #ffd25a; text-underline-offset: 4px; }

.site-footer { background: var(--velvet-deep); color: var(--on-dark-2); font-size: 14px; padding: 24px 0 28px; }
.site-footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.site-footer__logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; color: var(--on-dark); }
.site-footer__logo svg { width: 22px; height: 22px; color: var(--gold); }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold-hi); text-underline-offset: 3px; }

/* ---------- Окно «Закрепить дату» ---------- */
.wa { width: min(460px, calc(100vw - 20px)); max-height: calc(100dvh - 20px); padding: 0; border: 0; border-radius: 20px; background: var(--white); color: var(--ink); overflow: auto; overscroll-behavior: contain; }
.wa::backdrop { background: rgba(21, 14, 38, .62); }
.wa__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 0; }
.wa__head h2 { font-size: 21px; padding-top: 8px; }
.wa__x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font-size: 26px; line-height: 1; cursor: pointer; }
.wa__x:hover { border-color: var(--ink); }
.wa__desc { padding: 8px 20px 0; color: var(--ink-2); font-size: 15px; }
.phone { margin: 16px 20px 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.phone__top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #0f5c4c; color: #fff; }
.phone__ava { width: 34px; height: 34px; padding: 5px; border-radius: 50%; background: var(--velvet); color: var(--gold); flex: none; }
.phone__top p { display: flex; flex-direction: column; line-height: 1.25; font-size: 14.5px; }
.phone__top span { font-size: 12px; opacity: .85; }
.phone__chat { padding: 14px 12px 16px; background: #ece5dd; }
.bubble { position: relative; margin-left: 28px; padding: 9px 12px 22px; border-radius: 12px 4px 12px 12px; background: #d9fdd3; color: #111b21; font-family: var(--ky); font-size: 14.5px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.bubble__text { white-space: pre-line; overflow-wrap: anywhere; }
.bubble__time { position: absolute; right: 10px; bottom: 5px; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: #4f6169; }
.bubble__time svg { width: 16px; height: 11px; color: #2a8fd6; }
.wa__next { padding: 14px 20px 0; font-size: 14.5px; color: var(--ink-2); }
.wa__actions { display: grid; gap: 10px; padding: 18px 20px 20px; }
@media (min-width: 480px) { .wa__actions { grid-template-columns: 1.3fr 1fr; } }

.print-sheet { display: none; }

/* ---------- Без анимаций ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
}

/* ---------- Печать: только смета ---------- */
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  html, body { background: #fff !important; color: #000; }
  body > :not(.print-sheet) { display: none !important; }
  .print-sheet { display: block !important; font: 11pt/1.45 var(--text); color: #000; }
  .ps-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12pt; padding-bottom: 8pt; border-bottom: 2pt solid #000; }
  .ps-brand { font: 600 20pt/1 var(--display); letter-spacing: -0.02em; }
  .ps-brand small { display: block; margin-top: 4pt; font: 400 9.5pt/1.3 var(--text); }
  .ps-no { text-align: right; font-size: 9.5pt; }
  .ps-title { margin: 16pt 0 8pt; font: 500 15pt/1.2 var(--display); }
  .ps-params { width: 100%; border-collapse: collapse; margin-bottom: 14pt; }
  .ps-params th { width: 32%; text-align: left; font-weight: 400; color: #444; padding: 3pt 0; vertical-align: top; }
  .ps-params td { padding: 3pt 0; font-weight: 600; }
  .ps-lines { width: 100%; border-collapse: collapse; }
  .ps-lines th { text-align: left; font-size: 9pt; font-weight: 600; color: #444; border-bottom: 1pt solid #000; padding: 4pt 0; }
  .ps-lines th:last-child, .ps-lines td:last-child { text-align: right; white-space: nowrap; }
  .ps-lines td { padding: 5pt 0; border-bottom: .5pt solid #bbb; vertical-align: top; }
  .ps-lines td small { display: block; color: #555; font-size: 9pt; }
  .ps-total td { border-bottom: 0; border-top: 1.5pt solid #000; font-weight: 700; font-size: 13pt; padding-top: 8pt; }
  .ps-sub td { border-bottom: 0; padding: 2pt 0; color: #333; }
  .ps-note { margin-top: 18pt; padding-top: 8pt; border-top: .5pt solid #999; font-size: 9pt; color: #444; }
  .ky { font-family: var(--ky); }
}
