/* ============================================================ Демо-полоса */
.demo-bar { background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid var(--warn-line); font-size: var(--fs-caption); }
.demo-bar .container { display: flex; align-items: center; gap: 10px; min-height: 36px; padding-block: 6px; }
.demo-bar strong { font-weight: 600; }
.demo-bar a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================ Шапка */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(10px); } }
.site-header__row { display: flex; align-items: center; gap: var(--s8); min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; white-space: nowrap; }
.logo:hover { color: var(--ink); }
.logo__mark { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { color: var(--ink); font-weight: 500; font-size: 0.9688rem; padding: 10px 12px; border-radius: var(--r-control); min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: var(--s2); }
.account-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; padding: 10px 12px; border-radius: var(--r-control); min-height: 44px; }
.account-link:hover { background: var(--bg); color: var(--ink); }
.btn.menu-toggle { display: none; }
.mobile-nav { display: none; }
@media (max-width: 959px) {
  .site-header__row { gap: var(--s3); min-height: 60px; }
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .header-actions .btn--primary { display: none; }
  .account-link span { display: none; }
  .btn.menu-toggle { display: inline-flex; }
  .mobile-nav { display: block; border-top: 1px solid var(--line); background: var(--surface); padding: var(--s2) 0 var(--s4); }
  .mobile-nav[hidden] { display: none !important; }
  .mobile-nav a:not(.btn) { display: flex; align-items: center; min-height: 48px; color: var(--ink); font-weight: 500; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .mobile-nav a[aria-current="page"] { color: var(--blue); }
  .mobile-nav .btn { margin-top: var(--s4); width: 100%; }
}

/* ============================================================ Кнопки */
.btn { --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--h); padding: 0 20px;
  border-radius: var(--r-control); border: 1px solid transparent; font-weight: 500; font-size: var(--fs-ui); line-height: 1.2;
  cursor: pointer; text-align: center; white-space: nowrap; user-select: none;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast), transform var(--t-fast); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-press); color: #fff; }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--blue); padding-inline: 12px; }
.btn--ghost:hover { background: var(--blue-soft); color: var(--blue-press); }
.btn--danger { background: var(--surface); color: var(--danger); border-color: var(--danger-line); }
.btn--danger:hover { background: var(--danger-bg); color: var(--danger); }
.btn--sm { --h: 40px; padding: 0 14px; font-size: 0.9375rem; }
.btn--xs { --h: 32px; padding: 0 10px; font-size: var(--fs-small); }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--icon { padding: 0; width: var(--h); }
.btn:disabled, .btn[aria-disabled="true"] { background: #E7ECF3; color: #6F7E95; border-color: transparent; cursor: not-allowed; transform: none; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn--secondary.is-loading::after, .btn--ghost.is-loading::after { border-color: var(--line-strong); border-top-color: var(--blue); }
@keyframes spin { to { transform: rotate(360deg); } }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.link-arrow .icon { transition: transform var(--t) var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ============================================================ Поля */
.field { display: grid; gap: 6px; }
.field + .field, .field + .field-row, .field-row + .field { margin-top: var(--s5); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
@media (max-width: 559px) { .field-row { grid-template-columns: 1fr; } .field-row .field + .field { margin-top: 0; } }
.label { font-size: 0.9375rem; font-weight: 500; color: var(--ink); display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.label .opt { font-weight: 400; color: var(--ink-2); font-size: var(--fs-caption); }
.hint { font-size: var(--fs-caption); color: var(--ink-2); line-height: 1.4; }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-control);
  background: var(--surface); font-size: var(--fs-ui); line-height: 1.4; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.textarea { min-height: 132px; resize: vertical; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%235B6B84' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input::placeholder, .textarea::placeholder { color: #7D8AA0; }
.input:hover, .select:hover, .textarea:hover { border-color: #9EAEC4; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 98, 244, .18); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--bg); color: var(--ink-2); cursor: not-allowed; }
.input[readonly] { background: var(--bg); }
.field.is-invalid .input, .field.is-invalid .textarea, .field.is-invalid .select, .input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-error { display: flex; gap: 6px; align-items: flex-start; color: var(--danger); font-size: var(--fs-small); line-height: 1.4; }
.field-error .icon { width: 16px; height: 16px; margin-top: 2px; }
.input-group { display: flex; gap: var(--s2); }
.input-group .input { flex: 1; min-width: 0; }
.input-affix { position: relative; }
.input-affix .input { padding-right: 52px; }
.input-affix__suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
.counter { font-size: var(--fs-caption); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.counter.is-over { color: var(--danger); font-weight: 600; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 0.9375rem; line-height: 1.45; }
.check input { appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid var(--line-strong); border-radius: 6px; background: var(--surface); display: grid; place-content: center; cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast); }
.check input::after { content: ""; width: 12px; height: 7px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--blue); border-color: var(--blue); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { box-shadow: var(--focus); }

/* Сегментированный переключатель */
.segmented { display: inline-flex; background: #E8EDF5; border-radius: 10px; padding: 3px; gap: 2px; }
.segmented button, .segmented label { border: 0; background: transparent; border-radius: 8px; padding: 0 14px; min-height: 38px; font-weight: 500; font-size: 0.9375rem; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.segmented [aria-pressed="true"], .segmented [aria-selected="true"], .segmented input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(10,27,58,.12); }
.segmented label { padding: 0; }
.segmented label span { padding: 0 14px; min-height: 38px; display: inline-flex; align-items: center; border-radius: 8px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented input:focus-visible + span { box-shadow: var(--focus); }

/* ============================================================ Чипы, бейджи, статусы */
.mp { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-caption); font-weight: 500; color: var(--ink); line-height: 1; white-space: nowrap; }
.mp::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--ink); }
.mp--wb::before { background: #7B3FC4; }
.mp--ozon::before { background: #1A5CFF; border-radius: 50%; }
.mp--ym::before { background: #F2B300; transform: rotate(45deg); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--r-chip); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 0.9375rem; font-weight: 500; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-active, .chip[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .count { color: inherit; opacity: .6; font-variant-numeric: tabular-nums; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; background: var(--bg); color: var(--ink-2); font-size: var(--fs-caption); font-weight: 500; line-height: 1.3; }
.tag--demo { background: var(--warn-bg); color: var(--warn); }
.tag--ad { background: #EEF1F6; color: var(--ink-2); }

.status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 8px; border-radius: var(--r-chip); font-size: var(--fs-small); font-weight: 500; line-height: 1.3; white-space: nowrap; border: 1px solid; }
.status::before { content: ""; width: 8px; height: 8px; flex: none; }
.status--neutral { background: #EEF1F6; color: #46546B; border-color: #D5DCE7; }
.status--neutral::before { border: 1.5px solid currentColor; border-radius: 50%; width: 7px; height: 7px; }
.status--info { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }
.status--info::before { background: currentColor; border-radius: 50%; }
.status--success { background: var(--success-bg); color: var(--success); border-color: var(--success-line); }
.status--success::before { width: 9px; height: 5px; border: 2px solid currentColor; border-top: 0; border-right: 0; transform: rotate(-45deg) translateY(-2px); }
.status--warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.status--warn::before { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid currentColor; }
.status--danger { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-line); }
.status--danger::before { background: currentColor; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); }

/* ============================================================ Цена с проверкой — сквозной элемент */
.price { display: grid; gap: 2px; }
.price__value { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap; }
.price__checked { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-caption); color: var(--ink-2); line-height: 1.3; }
.price__checked .icon { width: 14px; height: 14px; }
.price--lg .price__value { font-size: 2rem; letter-spacing: -0.02em; }

/* ============================================================ Товарная карточка */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s10) var(--gutter); }
@media (max-width: 1099px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s8) 12px; } }
@media (max-width: 359px) { .cards { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-product); overflow: hidden; background: var(--photo-bg); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.photo.is-broken img { display: none; }
.photo.is-broken::after { content: "Фото недоступно"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-2); font-size: var(--fs-small);
  background: repeating-linear-gradient(135deg, var(--photo-bg) 0 12px, #DFE6EF 12px 24px); }
.card:hover .photo img { transform: scale(1.025); }
.card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: var(--s3); min-height: 20px; }
.card__store { font-size: var(--fs-caption); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__title { margin-top: 6px; font-size: 1rem; font-weight: 500; line-height: 1.35; letter-spacing: -0.005em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; hyphens: auto; }
.card__title a { color: var(--ink); }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-product); }
.card__title a:focus-visible { box-shadow: none; }
.card__title a:focus-visible::after { box-shadow: var(--focus); }
.card .price { margin-top: var(--s3); }
.card__terms { margin-top: var(--s2); font-size: var(--fs-caption); color: var(--ink-2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__go { position: relative; z-index: 2; margin-top: var(--s3); align-self: flex-start; }
@media (max-width: 767px) {
  .card__title { font-size: 0.9375rem; }
  .card .price__value { font-size: 1.0625rem; }
  .card__terms { display: none; }
  .card__go { width: 100%; }
}

/* ============================================================ Telegram-пост: предпросмотр */
.tg { background: var(--chat-bg); border-radius: var(--r-panel); padding: var(--s6) var(--s5); position: relative; overflow: hidden; }
.tg::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(10,27,58,.07) 1px, transparent 1.2px); background-size: 18px 18px; }
.tg__head { position: relative; display: flex; align-items: center; gap: 10px; margin-bottom: var(--s4); }
.tg__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 0.9375rem; flex: none; }
.tg__chat { font-weight: 600; font-size: 0.9375rem; line-height: 1.2; }
.tg__chat small { display: block; font-weight: 400; color: var(--ink-2); font-size: var(--fs-caption); }
.tg__msg { position: relative; max-width: 420px; background: #fff; border-radius: var(--r-bubble) var(--r-bubble) var(--r-bubble) 6px; overflow: hidden; box-shadow: 0 1px 1.5px rgba(10,27,58,.13); }
.tg__photo { aspect-ratio: 4 / 5; max-height: 380px; width: 100%; background: var(--photo-bg); overflow: hidden; display: grid; place-items: center; }
.tg__photo img { width: 100%; height: 100%; object-fit: cover; }
.tg__photo-empty { display: grid; place-items: center; gap: 8px; color: var(--ink-2); font-size: var(--fs-small); text-align: center; padding: var(--s6); }
.tg__text { padding: 10px 14px 4px; font-size: 0.9375rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.tg__text b { font-weight: 600; }
.tg__text .tg__link { color: #2A74D6; }
.tg__text .tg__ad { color: var(--ink-2); font-size: var(--fs-caption); }
.tg__time { text-align: right; font-size: 0.75rem; color: #7D8AA0; padding: 0 12px 8px; }
.tg__btn { position: relative; max-width: 420px; margin-top: 4px; display: block; text-align: center; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.72); color: #2A74D6; font-weight: 500; font-size: 0.9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg.is-updating .tg__msg { animation: pulse-in 260ms var(--ease); }
@keyframes pulse-in { from { box-shadow: 0 0 0 3px rgba(11,98,244,.25), 0 1px 1.5px rgba(10,27,58,.13); } to { box-shadow: 0 1px 1.5px rgba(10,27,58,.13); } }

/* ============================================================ Панели, уведомления */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: var(--s6); }
.panel--flush { padding: 0; }
.panel__title { font-size: 1.0625rem; font-weight: 600; margin-bottom: var(--s4); }
@media (max-width: 559px) { .panel { padding: var(--s5) var(--s4); border-radius: 14px; } }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid; font-size: 0.9375rem; line-height: 1.5; }
.notice .icon { margin-top: 2px; }
.notice strong { font-weight: 600; }
.notice p + p { margin-top: 4px; }
.notice--info { background: var(--info-bg); border-color: var(--info-line); color: var(--ink); } .notice--info .icon { color: var(--info); }
.notice--success { background: var(--success-bg); border-color: var(--success-line); color: var(--ink); } .notice--success .icon { color: var(--success); }
.notice--warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--ink); } .notice--warn .icon { color: var(--warn); }
.notice--danger { background: var(--danger-bg); border-color: var(--danger-line); color: var(--ink); } .notice--danger .icon { color: var(--danger); }
.notice--plain { background: var(--surface); border-color: var(--line); }

.empty { text-align: center; padding: var(--s16) var(--s6); display: grid; justify-items: center; gap: var(--s3); }
.empty__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); margin-bottom: var(--s2); }
.empty h2, .empty h3 { font-size: 1.25rem; }
.empty p { color: var(--ink-2); max-width: 42ch; }
.empty .btn { margin-top: var(--s3); }

.skeleton { background: linear-gradient(90deg, #E7ECF3 0%, #F1F4F9 50%, #E7ECF3 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ============================================================ Таблица */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.table th { text-align: left; font-weight: 500; font-size: var(--fs-caption); color: var(--ink-2); padding: 12px 16px; border-bottom: 1px solid var(--line); background: #FAFBFD; white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FAFBFD; }
.table .num { text-align: right; white-space: nowrap; }
.table th.num { text-align: right; }

/* ============================================================ Аккордеон */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 500; font-size: 1.0625rem; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform var(--t) var(--ease); color: var(--ink-2); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 64ch; }

/* ============================================================ Шаги (stepper) */
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: step; }
.stepper li { position: relative; }
.stepper button, .stepper span.step { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 0 0; border: 0; border-top: 3px solid var(--line); background: none; text-align: left; font-weight: 500; font-size: 0.9375rem; color: var(--ink-2); cursor: pointer; min-height: 48px; }
.stepper .step__n { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-size: var(--fs-caption); font-weight: 600; flex: none; font-variant-numeric: tabular-nums; background: var(--surface); }
.stepper [aria-current="step"] { color: var(--ink); border-top-color: var(--blue); }
.stepper [aria-current="step"] .step__n { background: var(--blue); border-color: var(--blue); color: #fff; }
.stepper .is-done { color: var(--ink); border-top-color: var(--ink); }
.stepper .is-done .step__n { background: var(--ink); border-color: var(--ink); color: #fff; }
.stepper button:disabled { cursor: not-allowed; }
@media (max-width: 767px) {
  .stepper .step__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stepper [aria-current="step"] .step__label { position: static; width: auto; height: auto; clip: auto; white-space: nowrap; }
  .stepper { grid-template-columns: auto auto auto auto; justify-content: start; }
  .stepper li:has([aria-current="step"]) { flex: 1; }
}

/* ============================================================ Тариф (радио-карточка) */
.options { display: grid; gap: 12px; }
.option { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.option:hover { border-color: var(--line-strong); }
.option input { appearance: none; margin: 2px 0 0; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-content: center; }
.option input::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform var(--t-fast); }
.option input:checked { background: var(--blue); border-color: var(--blue); }
.option input:checked::after { transform: scale(1); }
.option:has(input:checked) { border-color: var(--blue); background: #FAFCFF; }
.option:has(input:focus-visible) { box-shadow: var(--focus); }
.option__title { font-weight: 600; font-size: 1.0625rem; }
.option__desc { color: var(--ink-2); font-size: var(--fs-small); margin-top: 2px; }
.option__price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 1.0625rem; }

/* ============================================================ Слоты */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.day { flex: none; scroll-snap-align: start; width: 64px; padding: 8px 0; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); text-align: center; cursor: pointer; display: grid; gap: 2px; }
.day small { font-size: 0.75rem; color: var(--ink-2); text-transform: lowercase; }
.day b { font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.day:hover { border-color: var(--line-strong); }
.day[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: #fff; }
.day[aria-pressed="true"] small { color: rgba(255,255,255,.85); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.slot { min-height: 56px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; display: grid; place-content: center; gap: 0; text-align: center; padding: 6px; }
.slot b { font-size: 1.0625rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.slot small { font-size: 0.75rem; color: var(--ink-2); }
.slot:hover:not(:disabled) { border-color: var(--line-strong); }
.slot[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); }
.slot[aria-pressed="true"] small { color: var(--blue-press); }
.slot:disabled { cursor: not-allowed; background: repeating-linear-gradient(135deg, #F5F7FA 0 8px, #EEF1F6 8px 16px); color: #6F7E95; }
.slot:disabled b { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.slot-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--fs-caption); color: var(--ink-2); }

/* ============================================================ Диалог и тосты */
dialog.dialog { border: 0; padding: 0; border-radius: var(--r-dialog); width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-float); }
dialog.dialog::backdrop { background: rgba(10, 27, 58, .42); }
dialog.dialog[open] { animation: dialog-in 220ms var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.dialog__body { padding: var(--s8) var(--s8) var(--s6); overflow: auto; }
.dialog__title { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.015em; padding-right: 40px; }
.dialog__body > * + * { margin-top: var(--s4); }
.dialog__close { position: absolute; top: 14px; right: 14px; }
.dialog__actions { display: flex; gap: var(--s2); justify-content: flex-end; padding: var(--s4) var(--s8) var(--s8); flex-wrap: wrap; }
@media (max-width: 559px) {
  dialog.dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: var(--r-dialog) var(--r-dialog) 0 0; max-height: 92dvh; }
  .dialog__body { padding: var(--s6) var(--s5) var(--s4); }
  .dialog__actions { padding: var(--s3) var(--s5) calc(var(--s5) + env(safe-area-inset-bottom)); flex-direction: column-reverse; }
  .dialog__actions .btn { width: 100%; }
}
.toasts { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; background: var(--ink); color: #fff; border-radius: 12px; padding: 14px 16px; font-size: 0.9375rem; line-height: 1.45; box-shadow: var(--shadow-float); animation: toast-in 220ms var(--ease); }
.toast .icon { margin-top: 1px; }
.toast--success .icon { color: #6FD8A0; } .toast--error .icon { color: #FF9C91; } .toast--warn .icon { color: #FFD27A; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ============================================================ Подвал */
.site-footer { margin-top: var(--s16); background: var(--surface); border-top: 1px solid var(--line); padding: var(--s12) 0 var(--s8); font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s8); }
.footer-grid h2 { font-size: var(--fs-caption); font-weight: 500; color: var(--ink-2); margin-bottom: var(--s3); }
.footer-grid ul { display: grid; gap: 4px; }
.footer-grid a { color: var(--ink); display: inline-flex; min-height: 32px; align-items: center; }
.footer-grid a:hover { color: var(--blue); }
.footer-note { margin-top: var(--s10); padding-top: var(--s5); border-top: 1px solid var(--line); color: var(--ink-2); font-size: var(--fs-caption); display: flex; justify-content: space-between; gap: var(--s6); flex-wrap: wrap; }
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-small); color: var(--ink-2); padding-top: var(--s6); }
.crumbs a { color: var(--ink-2); } .crumbs a:hover { color: var(--blue); }
.crumbs span[aria-hidden] { color: var(--ink-3); }

/* Определения (dl) */
.dl { display: grid; grid-template-columns: minmax(140px, 38%) 1fr; gap: 0; font-size: 0.9375rem; }
.dl dt, .dl dd { padding: 12px 0; border-bottom: 1px solid var(--line); }
.dl dt { color: var(--ink-2); padding-right: 16px; }
.dl dd { font-weight: 500; overflow-wrap: anywhere; }
.dl > :nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 559px) { .dl { grid-template-columns: 1fr; } .dl dt { border-bottom: 0; padding-bottom: 0; } .dl dd { padding-top: 2px; } }

/* ---- исправления второго прохода ---- */
.option { grid-template-columns: auto minmax(0, 1fr) auto; }
.option__title, .option__desc { display: block; overflow-wrap: anywhere; }
dialog.dialog[open] { display: flex; flex-direction: column; }
dialog.dialog .dialog__body { flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; }
ol.login-steps { padding-left: 20px; list-style: decimal; }
@media (max-width: 559px) {
  .option { padding: 14px; gap: 12px; }
  .option__price { font-size: 0.9375rem; }
}
