* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --card: rgba(255, 255, 255, 0.06);
    --surface-1: rgba(15, 23, 42, 0.76);
    --surface-2: rgba(15, 23, 42, 0.92);
    --text-main: #e5e7eb;
    --text-muted: #94a3b8;
    --text-soft: #cbd5e1;
    --accent: #22c55e;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at 15% 20%, rgba(34, 197, 94, 0.14), transparent 24%),
        radial-gradient(circle at 84% 12%, rgba(56, 189, 248, 0.16), transparent 26%),
        radial-gradient(circle at 78% 72%, rgba(251, 191, 36, 0.08), transparent 24%),
        linear-gradient(-45deg, #020617, #111827, #0f172a, #12324a);
    background-size: auto, auto, auto, 400% 400%;
    animation: gradientMove 18s ease infinite;
    color: var(--text-main);
    overflow-x: hidden;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.14) 0 1px, transparent 3px),
        radial-gradient(circle at 28% 62%, rgba(255, 255, 255, 0.10) 0 1px, transparent 3px),
        radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.12) 0 1px, transparent 3px),
        radial-gradient(circle at 84% 68%, rgba(255, 255, 255, 0.08) 0 1px, transparent 3px),
        radial-gradient(circle at 56% 42%, rgba(186, 230, 253, 0.10) 0 1.5px, transparent 4px);
    pointer-events: none;
    animation: particlesFloat 24s linear infinite;
}

.page-glow {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 18%, rgba(125, 211, 252, 0.24), transparent 22%),
        radial-gradient(circle at 76% 26%, rgba(74, 222, 128, 0.18), transparent 24%),
        radial-gradient(circle at 68% 78%, rgba(59, 130, 246, 0.16), transparent 20%);
    filter: blur(40px);
    opacity: 0.9;
    animation: glowDrift 20s ease-in-out infinite alternate;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glowDrift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(12px, -18px, 0) scale(1.05); }
}

@keyframes particlesFloat {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -12px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

.layout {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.layout--info-single {
    grid-template-columns: 1fr;
    width: min(580px, 100%);
    margin-inline: auto;
}

.card {
    position: relative;
    z-index: 1;
    padding: 36px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        linear-gradient(155deg, rgba(30, 41, 59, 0.52), rgba(15, 23, 42, 0.84));
    backdrop-filter: blur(20px) saturate(125%);
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow:
        0 30px 70px rgba(2, 6, 23, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        inset 0 0 0 1px rgba(148, 163, 184, 0.08);
    overflow: hidden;
    animation: fadeIn 0.7s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #22c55e, #4ade80);
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.14), transparent 42%),
        linear-gradient(155deg, rgba(56, 189, 248, 0.06), transparent 38%, rgba(34, 197, 94, 0.06)),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px);
    opacity: 0.7;
    pointer-events: none;
}

.card > * {
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.10);
    border: 1px solid rgba(56, 189, 248, 0.18);
    color: #bae6fd;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.info-title-block {
    margin-bottom: 24px;
}

.info-title-block .info-main-heading {
    margin-bottom: 0;
}

/* Закрытый <dialog> должен оставаться display:none; общий display:flex ломает UA и показывает разметку в потоке страницы. */
.info-how-order-dialog {
    margin: auto;
    padding: 0;
    border: none;
    max-width: min(640px, calc(100vw - 24px));
    width: 100%;
    max-height: min(720px, calc(100dvh - 24px));
    background: transparent;
    color: var(--text-main);
    display: none;
    overflow: hidden;
    overscroll-behavior: none;
}

.info-how-order-dialog[open] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.info-how-order-dialog::backdrop {
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.info-how-order-panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: min(720px, calc(100dvh - 24px));
    overscroll-behavior: contain;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
        linear-gradient(155deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.98));
    box-shadow:
        0 28px 64px rgba(2, 6, 23, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.info-how-order-head {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.info-how-order-title {
    margin: 0;
    font-size: clamp(18px, 4vw, 22px);
    font-weight: 750;
    line-height: 1.25;
    color: #fff;
}

.info-how-order-close {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: -5px -5px -5px 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
    transition: color 0.16s ease, transform 0.16s ease;
}

.info-how-order-close::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: border-color 0.16s ease, background 0.16s ease;
}

.info-how-order-close svg {
    position: relative;
    width: 14px;
    height: 14px;
}

.info-how-order-close:hover {
    color: #f0f9ff;
}

.info-how-order-close:hover::before {
    border-color: rgba(125, 211, 252, 0.5);
    background: rgba(56, 189, 248, 0.14);
}

.info-how-order-close:active {
    transform: scale(0.94);
}

.info-how-order-close:focus-visible {
    outline: 2px solid rgba(56, 189, 248, 0.55);
    outline-offset: 2px;
}

.info-how-order-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 18px 18px max(22px, env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: none;
    overscroll-behavior-x: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    font-size: 15px;
    line-height: 1.56;
    color: var(--text-soft);
    letter-spacing: 0;
    overflow-wrap: break-word;
    text-wrap: pretty;
    -webkit-hyphens: auto;
    hyphens: auto;
    scrollbar-color: rgba(203, 213, 225, 0.55) transparent;
    scrollbar-width: thin;
}

.info-how-order-body::-webkit-scrollbar {
    width: 6px;
}

.info-how-order-body::-webkit-scrollbar-track {
    background: transparent;
}

.info-how-order-body::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.42);
}

.info-how-order-steps {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 12px 0 0;
    list-style: none;
}

.info-how-order-step {
    position: relative;
    padding: 25px 16px 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.54);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.info-how-order-number {
    position: absolute;
    top: -12px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 11px;
    background: linear-gradient(135deg, #164e63, #14532d);
    box-shadow: 0 5px 14px rgba(2, 6, 23, 0.4);
    color: #e0f2fe;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.info-how-order-step-content {
    min-width: 0;
}

.info-how-order-subtitle {
    margin: 1px 0 7px;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.35;
    color: #f0f9ff;
}

.info-how-order-step p,
.info-how-order-limit p {
    margin: 0;
}

.info-how-order-body strong {
    color: #f8fafc;
    font-weight: 750;
}

.info-how-order-step--group {
    border-color: rgba(248, 113, 113, 0.62);
    background:
        linear-gradient(135deg, rgba(127, 29, 29, 0.3), rgba(15, 23, 42, 0.82) 65%),
        rgba(15, 23, 42, 0.76);
    box-shadow:
        0 0 0 1px rgba(248, 113, 113, 0.12),
        0 10px 28px rgba(127, 29, 29, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.info-how-order-step--group .info-how-order-number {
    border-color: rgba(254, 202, 202, 0.48);
    background: linear-gradient(135deg, #991b1b, #7f1d1d);
    color: #fff1f2;
}

.info-how-order-step--group .info-how-order-subtitle {
    color: #fecaca;
}

.info-how-order-group-cases {
    display: grid;
    gap: 9px;
    margin-top: 12px;
}

.info-how-order-group-case {
    padding: 10px 12px;
    border: 1px solid rgba(248, 113, 113, 0.18);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.42);
}

.info-how-order-step .info-how-order-group-exception {
    margin-top: 12px;
    padding-left: 11px;
    border-left: 3px solid #f87171;
    color: #ffe4e6;
}

.info-how-order-step .info-how-order-group-note {
    display: grid;
    gap: 3px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(254, 202, 202, 0.3);
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.19), rgba(127, 29, 29, 0.12));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.info-how-order-group-note strong {
    color: #fff1f2;
}

.info-how-order-group-note span {
    color: #fecaca;
}

.info-how-order-limit {
    margin-top: 14px;
    padding: 16px 17px;
    border: 1px solid rgba(34, 197, 94, 0.38);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.13), rgba(56, 189, 248, 0.08));
    color: #d9fbe6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.info-how-order-limit-label {
    display: inline-block;
    margin-bottom: 7px;
    color: #86efac;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.info-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    /* Согласовано с .action-link-compact (min-height 42px) и компактным чипом Информация+.PDF */
    min-height: 42px;
}

.quick-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 280px;
    margin-bottom: 0;
}

.quick-actions-inline {
    width: auto;
    max-width: none;
    margin-left: 0;
}

.action-link-compact {
    min-height: 42px;
    width: auto;
    min-width: 220px;
    padding: 8px 10px;
    border-radius: 12px;
}

.action-link-compact .action-link-title {
    font-size: 12px;
}

.action-link-compact .action-link-hint {
    display: none;
}

.action-link-compact .action-link-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    border-radius: 6px;
}

.action-link-compact .action-link-icon svg {
    width: 13px;
    height: 13px;
}

.action-link-compact .action-link-arrow {
    font-size: 13px;
}

h1 {
    font-size: clamp(28px, 4vw, 36px);
    margin-bottom: 24px;
    line-height: 1.1;
    color: #ffffff;
}

.section {
    margin-bottom: 26px;
}

.item {
    display: flex;
    position: relative;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 18px;
    margin-bottom: 10px;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        linear-gradient(135deg, var(--surface-1), var(--surface-2));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 16px 32px rgba(2, 6, 23, 0.24);
    font-size: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.item.is-price-expanded {
    border-color: rgba(125, 211, 252, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 18px 36px rgba(2, 6, 23, 0.28),
        0 0 22px rgba(125, 211, 252, 0.12);
}

.price-stack {
    display: flex;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    margin-left: auto;
}

.price {
    flex: 0 0 auto;
    white-space: nowrap;
    font-weight: 700;
    color: #ffffff;
}

.price-note {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    max-width: none;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
    opacity: 0.9;
}

.schedule-box {
    padding: 18px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        linear-gradient(135deg, rgba(14, 116, 144, 0.22), rgba(15, 23, 42, 0.9) 58%, rgba(30, 64, 175, 0.16));
    border: 1px solid rgba(56, 189, 248, 0.26);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 16px 32px rgba(2, 6, 23, 0.24),
        0 0 20px rgba(56, 189, 248, 0.12);
}

.rules-box {
    padding: 18px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        linear-gradient(135deg, rgba(153, 27, 27, 0.26), rgba(15, 23, 42, 0.9) 58%, rgba(127, 29, 29, 0.18));
    border: 1px solid rgba(248, 113, 113, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 16px 32px rgba(2, 6, 23, 0.24),
        0 0 20px rgba(248, 113, 113, 0.12);
}

.info-block {
    min-height: 100%;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.title-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.schedule-title {
    color: #93c5fd;
}

.rules-title {
    color: #fca5a5;
}

.schedule-item,
.rule {
    margin-bottom: 9px;
    padding: 10px 12px;
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        rgba(30, 41, 59, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.schedule-item:last-child,
.rule:last-child {
    margin-bottom: 0;
}

.rule-important {
    position: relative;
    border-color: rgba(248, 113, 113, 0.78);
    background:
        linear-gradient(135deg, rgba(127, 29, 29, 0.34), rgba(15, 23, 42, 0.78)),
        rgba(15, 23, 42, 0.76);
    box-shadow:
        0 0 0 1px rgba(248, 113, 113, 0.28),
        0 0 20px rgba(239, 68, 68, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    animation: ruleImportantPulse 1.9s ease-in-out infinite;
}

@keyframes ruleImportantPulse {
    0%,
    100% {
        border-color: rgba(248, 113, 113, 0.58);
        box-shadow:
            0 0 0 1px rgba(248, 113, 113, 0.2),
            0 0 14px rgba(239, 68, 68, 0.13),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    50% {
        border-color: rgba(254, 202, 202, 0.95);
        box-shadow:
            0 0 0 1px rgba(254, 202, 202, 0.36),
            0 0 26px rgba(239, 68, 68, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }
}

/* Блок «Уже занято»: данные из client_bookings, те же 7 дней, что и в панели записи */
.taken-lead {
    margin: -12px 0 4px;
    max-width: 52ch;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}

.taken-week-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.taken-day-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 16px;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        linear-gradient(135deg, var(--surface-1), var(--surface-2));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 12px 24px rgba(2, 6, 23, 0.2);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.taken-day-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px 12px;
    flex-wrap: nowrap;
    min-width: 0;
}

.taken-day-label {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.taken-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.taken-time-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-sizing: border-box;
}

.taken-day-row--busy {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        linear-gradient(135deg, rgba(153, 27, 27, 0.26), rgba(15, 23, 42, 0.9) 58%, rgba(127, 29, 29, 0.18));
    border-color: rgba(248, 113, 113, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 12px 24px rgba(2, 6, 23, 0.2),
        0 0 18px rgba(248, 113, 113, 0.14);
}

.taken-day-row--clear {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        linear-gradient(135deg, rgba(14, 116, 144, 0.22), rgba(15, 23, 42, 0.9) 58%, rgba(30, 64, 175, 0.16));
    border-color: rgba(56, 189, 248, 0.26);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 12px 24px rgba(2, 6, 23, 0.2),
        0 0 18px rgba(56, 189, 248, 0.14);
}

.taken-day-row--busy .taken-time-tags {
    border-top-color: rgba(248, 113, 113, 0.32);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), transparent 70%);
}

.taken-today-mark {
    font-weight: 500;
    color: #cbd5e1;
}

.taken-day-row--busy .taken-status {
    background: rgba(248, 113, 113, 0.18);
    color: #fca5a5;
}

.taken-day-row--clear .taken-status {
    background: rgba(74, 222, 128, 0.14);
    color: #86efac;
}

.taken-time-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
    line-height: 1.2;
    border: 1px solid rgba(251, 113, 133, 0.35);
    background: rgba(190, 18, 60, 0.2);
    color: #fecdd3;
}

.info-contact-box {
    padding: 18px;
    border: 1px solid rgba(56, 189, 248, 0.26);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        linear-gradient(135deg, rgba(14, 116, 144, 0.22), rgba(15, 23, 42, 0.9) 58%, rgba(22, 163, 74, 0.12));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 16px 32px rgba(2, 6, 23, 0.24),
        0 0 20px rgba(56, 189, 248, 0.1);
}

.info-contact-title {
    color: #93c5fd;
}

.info-contact-description {
    margin: 0 0 13px;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.5;
}

.info-contact-actions {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 9px;
}

.info-contact-hours,
.info-contact-telegram {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    min-height: 62px;
    padding: 9px 11px;
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.info-contact-hours {
    flex: 1 1 160px;
    gap: 9px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        rgba(30, 41, 59, 0.42);
    color: #bae6fd;
}

.info-contact-hours > svg {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
}

.info-contact-hours > span {
    display: grid;
    gap: 2px;
}

.info-contact-hours-label {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.2;
}

.info-contact-hours strong {
    color: #e0f2fe;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
}

.info-contact-telegram {
    flex: 1 1 215px;
    gap: 10px;
    border: 1px solid rgba(125, 211, 252, 0.36);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(34, 197, 94, 0.08));
    color: #f0f9ff;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.info-contact-telegram:hover {
    transform: translateY(-2px);
    border-color: rgba(125, 211, 252, 0.7);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.27), rgba(34, 197, 94, 0.12));
}

.info-contact-telegram:focus-visible {
    outline: 2px solid #7dd3fc;
    outline-offset: 3px;
}

.info-contact-telegram-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, #38bdf8, #0284c7);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.35), 0 6px 14px rgba(2, 132, 199, 0.2);
    animation: infoTelegramPulse 3s ease-out infinite;
}

.info-contact-telegram-icon svg {
    width: 23px;
    height: 23px;
    color: #fff;
}

.info-contact-telegram-text {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.info-contact-telegram-text strong {
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
}

.info-contact-telegram-text small {
    color: #a5d8f3;
    font-size: 12px;
    line-height: 1.2;
}

.info-contact-telegram-arrow {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-left: auto;
    color: #7dd3fc;
    transition: transform 0.18s ease;
}

.info-contact-telegram:hover .info-contact-telegram-arrow {
    transform: translateX(3px);
}

@keyframes infoTelegramPulse {
    0%, 10%, 100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.35), 0 6px 14px rgba(2, 132, 199, 0.2);
    }
    62% {
        box-shadow: 0 0 0 8px rgba(56, 189, 248, 0), 0 6px 14px rgba(2, 132, 199, 0.2);
    }
}

@keyframes sectionRise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-head,
.info-title-block,
.info-block > .section,
.info-block > .taken-lead,
.info-block > .taken-week-list,
.info-block .taken-week-list > .taken-day-row {
    opacity: 0;
    animation: sectionRise 0.55s ease forwards;
}

.info-block:nth-child(1) .info-head { animation-delay: 0.08s; }
.info-block:nth-child(1) .info-title-block { animation-delay: 0.14s; }
.info-block:nth-child(1) > .section { animation-delay: 0.24s; }

.info-block:nth-child(2) .info-head { animation-delay: 0.1s; }
.info-block:nth-child(2) > h1 { animation-delay: 0.16s; }
.info-block:nth-child(2) > .taken-lead { animation-delay: 0.22s; }
.info-block:nth-child(2) > .taken-week-list { animation-delay: 0.28s; }
.info-block:nth-child(2) .taken-week-list > .taken-day-row:nth-child(1) { animation-delay: 0.34s; }
.info-block:nth-child(2) .taken-week-list > .taken-day-row:nth-child(2) { animation-delay: 0.38s; }
.info-block:nth-child(2) .taken-week-list > .taken-day-row:nth-child(3) { animation-delay: 0.42s; }
.info-block:nth-child(2) .taken-week-list > .taken-day-row:nth-child(4) { animation-delay: 0.46s; }
.info-block:nth-child(2) .taken-week-list > .taken-day-row:nth-child(5) { animation-delay: 0.5s; }
.info-block:nth-child(2) .taken-week-list > .taken-day-row:nth-child(6) { animation-delay: 0.54s; }
.info-block:nth-child(2) .taken-week-list > .taken-day-row:nth-child(7) { animation-delay: 0.58s; }

.empty {
    color: var(--text-muted);
    font-size: 14px;
}

@media (hover: hover) and (pointer: fine) {
    .item:hover,
    .schedule-item:hover,
    .rule:hover,
    .taken-day-row:hover {
        transform: translateY(-1px);
    }
}

@media (hover: none), (pointer: coarse) {
    body,
    body::after,
    .page-glow,
    .card,
    .card::after,
    .info-head,
    .info-title-block,
    .info-block > h1,
    .info-block > .section,
    .info-block > .taken-lead,
    .info-block > .taken-week-list,
    .info-block .taken-week-list > .taken-day-row {
        animation: none !important;
    }

    .info-head,
    .info-title-block,
    .info-block > h1,
    .info-block > .section,
    .info-block > .taken-lead,
    .info-block > .taken-week-list,
    .info-block .taken-week-list > .taken-day-row {
        opacity: 1;
        transform: none;
    }

    body::after,
    .page-glow {
        display: none;
    }

    body {
        background-size: auto;
    }

    .card {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
            linear-gradient(155deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.96));
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow:
            0 22px 44px rgba(2, 6, 23, 0.42),
            inset 0 1px 0 rgba(255, 255, 255, 0.07);
    }

    .card::after {
        display: none;
    }

    .item {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.05),
            0 10px 20px rgba(2, 6, 23, 0.2);
        transition: border-color 0.14s ease, opacity 0.14s ease;
    }

    .item.is-price-expanded {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.07),
            0 12px 24px rgba(2, 6, 23, 0.22);
    }

    .schedule-box,
    .rules-box,
    .info-contact-box,
    .taken-day-row,
    .taken-day-row--busy,
    .taken-day-row--clear {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.05),
            0 10px 20px rgba(2, 6, 23, 0.18);
    }

    .action-link:active {
        opacity: 0.92;
    }
}

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

    .info-head,
    .info-title-block,
    .info-block > h1,
    .info-block > .section,
    .info-block > .taken-lead,
    .info-block > .taken-week-list,
    .info-block .taken-week-list > .taken-day-row {
        opacity: 1;
    }
}

@media (max-width: 980px) {
    body {
        align-items: flex-start;
    }

    .layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@supports (content-visibility: auto) {
    @media (max-width: 980px) {
        .layout > .info-block:nth-child(2) {
            content-visibility: auto;
            contain-intrinsic-size: 720px;
        }

        .taken-week-list > .taken-day-row {
            content-visibility: auto;
            contain-intrinsic-size: 82px;
        }
    }
}

@media (max-width: 640px) {
    body {
        align-items: flex-start;
        padding: 14px;
    }

    .layout {
        width: 100%;
    }

    .card {
        padding: 20px 16px;
        border-radius: 22px;
    }

    .info-contact-actions {
        gap: 9px;
    }

    .info-contact-hours,
    .info-contact-telegram {
        flex-basis: 100%;
    }

    .info-contact-telegram-arrow {
        display: none;
    }

    .info-head {
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
        min-height: 44px;
    }

    .badge {
        margin-bottom: 0;
        white-space: nowrap;
        padding: 6px 10px;
        font-size: 11px;
    }

    .quick-actions-inline {
        width: auto;
        max-width: none;
        margin-left: 0;
        flex: 0 0 auto;
    }

    .action-link-compact {
        width: auto;
        min-width: 0;
        min-height: 38px;
        padding: 6px 8px;
        border-radius: 10px;
    }

    .action-link-compact .action-link-title {
        font-size: 10px;
        white-space: nowrap;
    }

    .action-link-compact .action-link-icon {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
        border-radius: 5px;
    }

    .action-link-compact .action-link-icon svg {
        width: 11px;
        height: 11px;
    }

    .action-link-compact .action-link-arrow {
        font-size: 12px;
    }

    h1 {
        margin-bottom: 20px;
    }

    .info-title-block {
        margin-bottom: 20px;
    }

    .info-how-order-dialog {
        max-width: min(600px, calc(100vw - 14px));
        max-height: min(760px, calc(100dvh - 14px));
    }

    .info-how-order-panel {
        max-height: min(760px, calc(100dvh - 14px));
        border-radius: 20px;
    }

    .info-how-order-head {
        align-items: center;
        padding: 16px 14px 11px 16px;
    }

    .info-how-order-title {
        font-size: clamp(19px, 5vw, 21px);
        line-height: 1.2;
    }

    .info-how-order-body {
        padding: 14px 12px max(18px, env(safe-area-inset-bottom, 0px));
        font-size: 14px;
        line-height: 1.5;
    }

    .info-how-order-steps {
        gap: 18px;
    }

    .info-how-order-step {
        padding: 23px 13px 13px;
        border-radius: 14px;
    }

    .info-how-order-number {
        right: 13px;
        width: 30px;
        height: 30px;
        border-radius: 10px;
        font-size: 11px;
    }

    .info-how-order-subtitle {
        margin-bottom: 6px;
        font-size: 14px;
    }

    .info-how-order-limit {
        margin-top: 10px;
        padding: 13px 14px;
        border-radius: 14px;
    }

    .section {
        margin-bottom: 20px;
    }

    .item {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px;
        gap: 8px;
    }

    .taken-day-row {
        padding: 14px;
    }

    .taken-time-tags {
        justify-content: flex-start;
    }

    .price-stack {
        width: 100%;
        margin-left: 0;
    }

    .price-note {
        font-size: 10px;
        line-height: 1;
        letter-spacing: 0.015em;
    }

    .schedule-box,
    .rules-box,
    .info-contact-box {
        padding: 14px;
    }

    .section-title {
        gap: 8px;
        font-size: 14px;
    }

    .title-icon {
        width: 17px;
        height: 17px;
        flex-basis: 17px;
    }
}

@media print {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    /* Без этого контент остаётся с opacity:0 — анимация sectionRise отключена правилом выше. */
    .info-head,
    .info-title-block,
    .info-block > h1,
    .info-block > .section,
    .info-block > .taken-lead,
    .info-block > .taken-week-list,
    .info-block .taken-week-list > .taken-day-row {
        opacity: 1 !important;
        transform: none !important;
    }

    .card {
        opacity: 1 !important;
        transform: none !important;
    }

    .info-how-order-dialog {
        display: none !important;
    }

    body {
        display: block;
        min-height: auto;
        padding: 12mm 14mm;
        background: #fff !important;
        background-image: none !important;
        color: #111827 !important;
        overflow: visible !important;
    }

    body::after {
        content: none !important;
        display: none !important;
    }

    .page-glow {
        display: none !important;
    }

    .layout {
        width: 100%;
        max-width: none;
        display: block;
    }

    .card {
        break-inside: avoid;
        page-break-inside: avoid;
        padding: 14px 16px;
        margin-bottom: 16px;
        border-radius: 8px;
        background: #fff !important;
        background-image: none !important;
        border: 1px solid #cbd5e1 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        color: #111827 !important;
    }

    .card::before {
        display: none !important;
    }

    .info-contact-box,
    .info-contact-title,
    .info-contact-description,
    .info-contact-hours,
    .info-contact-hours-label,
    .info-contact-hours strong,
    .info-contact-telegram,
    .info-contact-telegram-text small {
        color: #0f172a !important;
    }

    .info-contact-hours,
    .info-contact-telegram {
        background: #fff !important;
        border: 1px solid #cbd5e1 !important;
        box-shadow: none !important;
    }

    .info-contact-telegram-icon,
    .info-contact-telegram-arrow {
        display: none !important;
    }

    h1 {
        color: #0f172a !important;
    }

    .section-title,
    .schedule-title,
    .rules-title {
        color: #0f172a !important;
    }

    .badge {
        border: 1px solid #64748b !important;
        background: #f1f5f9 !important;
        color: #0f172a !important;
        box-shadow: none !important;
    }

    .item {
        background: #f8fafc !important;
        background-image: none !important;
        border: 1px solid #cbd5e1 !important;
        box-shadow: none !important;
        color: #111827 !important;
    }

    .item[class*="item-discount"] {
        background: #f8fafc !important;
        background-image: none !important;
        border: 1px solid #94a3b8 !important;
        box-shadow: none !important;
    }

    .price {
        color: #0f172a !important;
    }

    .schedule-box,
    .rules-box,
    .info-contact-box {
        background: #f8fafc !important;
        background-image: none !important;
        border: 1px solid #cbd5e1 !important;
        box-shadow: none !important;
    }

    .schedule-item,
    .rule {
        background: #fff !important;
        background-image: none !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: none !important;
        color: #334155 !important;
    }

    .rule-important {
        border-color: #ef4444 !important;
    }

    .taken-lead {
        color: #475569 !important;
    }

    .taken-day-row {
        background: #f8fafc !important;
        background-image: none !important;
        border: 1px solid #cbd5e1 !important;
        box-shadow: none !important;
    }

    .taken-day-row--busy {
        background: #fef2f2 !important;
        border: 1px solid #fca5a5 !important;
    }

    .taken-day-row--clear {
        background: #f0f9ff !important;
        border: 1px solid #7dd3fc !important;
    }

    .taken-day-label,
    .taken-today-mark {
        color: #0f172a !important;
    }

    .taken-status {
        color: #0f172a !important;
    }

    .taken-day-row--busy .taken-status {
        background: #fee2e2 !important;
        border: 1px solid #fecaca !important;
    }

    .taken-day-row--clear .taken-status {
        background: #dcfce7 !important;
        border: 1px solid #86efac !important;
    }

    .taken-time-tag {
        border: 1px solid #fda4af !important;
        background: #fff1f2 !important;
        color: #9f1239 !important;
    }

    .empty {
        color: #475569 !important;
    }

    .title-icon {
        color: #0f172a !important;
        stroke: currentColor !important;
    }

    a.action-link,
    a.action-link-compact {
        background: transparent !important;
        border: 1px solid #64748b !important;
        color: #0f172a !important;
        box-shadow: none !important;
    }

    a {
        color: #0f172a !important;
        text-decoration: underline;
    }
}
