:root {
    --bg: #0d1420;
    --surface: #192638;
    --surface-2: #202f44;
    --surface-3: #132132;
    --ink: #f4f7fb;
    --muted: #a9b7ca;
    --line: #314157;
    --brand: #31578e;
    --brand-2: #5e8dd6;
    --accent: #6bdbc9;
    --amber: #f2c975;
    --danger: #f48791;
    --shadow: 0 18px 50px rgba(0, 0, 0, .32);
    --content-width: 1440px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
        radial-gradient(ellipse at 12% 15%, rgba(32,72,79,.16), transparent 35%),
        var(--bg);
    background-size: 56px 56px, 56px 56px, auto, auto;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
main { padding-bottom: 116px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(13,20,32,.88);
    border-bottom: 1px solid rgba(72,91,116,.36);
    backdrop-filter: blur(18px);
}
.header-inner, .footer-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 13px 0;
    display: flex;
    align-items: center;
    gap: 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}
.brand-mark {
    width: 37px;
    height: 37px;
    border: 1px solid rgba(119,237,205,.45);
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #082d38;
    background: linear-gradient(135deg, #66dec9, #7cbdff);
    box-shadow: 0 0 18px rgba(90,214,202,.16);
    font-size: 12px;
    font-weight: 900;
}
.brand b { display: block; line-height: 1.1; font-size: 16px; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.site-header nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    color: #c3cede;
    font-size: 13px;
    font-weight: 650;
}
.site-header nav a {
    padding: 9px 11px;
    border-radius: 8px;
    white-space: nowrap;
}
.site-header nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.my-orders-button, .select-button, .btn {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--ink);
    font-size: 13px;
    font-weight: 750;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover, .my-orders-button:hover, .select-button:hover { border-color: var(--brand-2); transform: translateY(-2px); }
.btn.primary {
    border-color: #4678bd;
    background: linear-gradient(120deg, #315e9f, #3c78ad);
    color: #fff;
}
.btn.primary:hover { background: #3970bd; }
.btn.ghost { background: rgba(255,255,255,.035); }
.btn.wide { width: 100%; }
.btn-small { min-height: 32px; padding: 0 11px; }
.my-orders-button {
    min-width: max-content;
    background: #173452;
    border-color: #31577f;
}

.hero, .catalog-shell, .how-block, .reviews, .faq, .text-page, .order-page {
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
}
.hero {
    position: relative;
    overflow: hidden;
    margin-top: 18px;
    padding: 34px 36px 23px;
    border: 1px solid #34465f;
    border-radius: 8px;
    background: linear-gradient(115deg, #222e41 0%, #1b2b41 58%, #214c54 100%);
    box-shadow: 0 16px 38px rgba(0,0,0,.16);
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 15%, rgba(141,219,219,.08) 45%, transparent 75%);
    transform: translateX(-100%);
    animation: hero-sheen 9s ease-in-out infinite;
}
@keyframes hero-sheen {
    0%, 12% { transform: translateX(-100%); }
    55%, 100% { transform: translateX(100%); }
}
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 34px;
    width: 126px;
    height: 2px;
    background: linear-gradient(90deg, #67dfcc, #b4ce6b);
}
.hero-copy { max-width: 1200px; position: relative; z-index: 1; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 25px;
    padding: 3px 10px;
    border: 1px solid #3d6380;
    border-radius: 999px;
    background: rgba(48,104,145,.15);
    color: #b7dfed;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}
.hero h1 {
    max-width: 1120px;
    margin: 16px 0 10px;
    font-size: clamp(38px, 4.4vw, 56px);
    line-height: 1.07;
    font-weight: 850;
}
.hero p {
    max-width: 1000px;
    margin: 0;
    color: #c4d0df;
    font-size: 15px;
    line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 19px; }
.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 26px;
}
.hero-facts span {
    display: grid;
    align-content: center;
    min-height: 55px;
    padding: 10px 12px;
    border: 1px solid #34485f;
    border-radius: 8px;
    background: linear-gradient(125deg, rgba(8,20,32,.3), rgba(52,94,113,.16));
}
.hero-facts b { font-size: 13px; }
.hero-facts small { margin-top: 2px; color: var(--muted); font-size: 12px; }

.catalog-shell { padding-top: 12px; }
.catalog-toolbar { margin-bottom: 22px; }
.catalog-toolbar h2, .section-heading h2, .text-page h1, .order-head h1 {
    margin: 9px 0 5px;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.16;
}
.catalog-toolbar p { max-width: 800px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.search-box { display: grid; gap: 9px; margin-top: 18px; }
.search-box input, label input, label textarea, label select, .admin-form input, .admin-form textarea, .admin-form select, .chat-form textarea {
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #172538;
    color: var(--ink);
    outline: none;
}
.search-box input { min-height: 47px; background: #192a3e; }
input::placeholder, textarea::placeholder { color: #8494a8; }
input:focus, textarea:focus, select:focus { border-color: #5a8cd1; }
.tabs { display: flex; gap: 7px; }
.tabs button {
    min-height: 32px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}
.tabs button.is-active {
    color: #f4f8ff;
    border-color: #4773b3;
    background: #234977;
}
.catalog-group { margin-top: 28px; scroll-margin-top: 105px; }
.section-heading { margin-bottom: 13px; }
.section-heading > span { color: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.section-heading h2 { margin: 4px 0 0; font-size: 22px; }
.program-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.program-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    min-height: 156px;
    padding: 14px;
    border: 1px solid #34435a;
    border-radius: 8px;
    background: linear-gradient(145deg, #233247, #1b293c);
    transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.program-card:hover { border-color: #567aa6; transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,.18); }
.program-card.is-selected { border-color: var(--accent); box-shadow: inset 0 0 0 1px rgba(107,219,201,.4); }
.program-card.is-disabled { opacity: .62; }
.program-card.is-hidden { display: none; }
.program-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid #547a9e;
    border-radius: 8px;
    background: linear-gradient(145deg, #32628d, #243b66);
    color: #f4fbff;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}
.program-icon img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.catalog-group[data-category="packages"] .program-icon { background: linear-gradient(145deg, #2f786c, #244d5e); border-color: #509b8c; }
.catalog-group[data-category="services"] .program-icon { background: linear-gradient(145deg, #66577d, #374b6b); border-color: #8076a0; }
.program-main { display: flex; flex-direction: column; min-width: 0; }
.card-top { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 5px 8px; }
.card-top h3 {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 15px;
    line-height: 1.3;
}
.card-top span {
    padding: 2px 6px;
    border: 1px solid #a87641;
    border-radius: 5px;
    color: #ffd09b;
    font-size: 10px;
    font-weight: 750;
}
.program-main p {
    margin: 5px 0 12px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}
.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}
.card-bottom strong { font-size: 15px; white-space: nowrap; }
.select-button {
    min-height: 31px;
    padding: 0 10px;
    background: #1d3a57;
    border-color: #3b668e;
    font-size: 12px;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.program-card.is-selected .select-button { background: #236153; border-color: #5bc3ad; color: #dffff7; }
.addons-modal {
    width: min(520px, calc(100vw - 24px));
    max-height: min(680px, calc(100vh - 28px));
    padding: 0;
    border: 1px solid #52627a;
    border-radius: 8px;
    background: #1c293c;
    color: var(--ink);
    box-shadow: 0 30px 90px rgba(0,0,0,.6);
}
.addons-modal::backdrop { background: rgba(5,10,19,.78); backdrop-filter: blur(3px); }
.addons-modal .modal-head { position: sticky; top: 0; z-index: 1; background: #1c293c; }
.addons-modal .modal-head small { color: var(--accent); font-size: 11px; }
.addons-modal h2 { margin: 3px 0 0; font-size: 20px; }
.addons {
    display: grid;
    gap: 8px;
    margin: 14px 18px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(10,20,33,.35);
}
.addons > b { font-size: 12px; }
.addons p { margin: 0 0 5px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.addons label {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    color: #c5d2e1;
    font-size: 13px;
    min-height: 32px;
}
.addons input { width: 15px; height: 15px; accent-color: #66cbb7; }
.addons label b { color: var(--accent); white-space: nowrap; }
.addon-modal-footer { display: flex; justify-content: flex-end; padding: 0 18px 18px; }

.how-block, .reviews, .faq { padding-top: 53px; }
.steps, .review-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.steps article, .review {
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #192638;
}
.steps b {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border: 1px solid #44719d;
    border-radius: 7px;
    background: #244a72;
    font-size: 13px;
}
.steps h3 { margin: 13px 0 6px; font-size: 15px; }
.steps p, .review p, .faq p, .text-page p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.review span { color: var(--amber); font-size: 12px; letter-spacing: 2px; }
.review p { margin: 9px 0 15px; }
.review b { color: #dce8f7; font-size: 13px; }
.faq { padding-bottom: 48px; }
.faq details {
    margin-bottom: 8px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #192638;
}
.faq summary { cursor: pointer; font-size: 14px; font-weight: 750; }
.faq details p { margin-top: 8px; }

.order-bar {
    position: fixed;
    z-index: 45;
    right: 16px;
    bottom: 13px;
    left: 16px;
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}
.order-bar.is-at-footer { opacity: 0; visibility: hidden; transform: translateY(18px); pointer-events: none; }
.order-bar form {
    max-width: 1360px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 17px;
    padding: 12px 13px;
    border: 1px solid #42536b;
    border-radius: 8px;
    background: rgba(29,44,64,.97);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}
.order-summary { min-width: 0; }
.order-summary b, .order-summary span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-summary b { font-size: 14px; }
.order-summary span, .small { font-size: 12px; }
.order-summary span { margin-top: 2px; color: var(--muted); }
.muted { color: var(--muted); }
.order-price { display: grid; text-align: right; }
.order-price strong { font-size: 20px; }
.order-price span { min-height: 15px; color: var(--accent); font-size: 11px; }
.modal-head, .drawer-head { display: flex; align-items: center; justify-content: space-between; }
.modal-head { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-head button, .drawer-head button {
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #273a52;
    color: var(--ink);
    font-size: 20px;
}
.recover-form label, .admin-form label {
    display: grid;
    gap: 6px;
    padding: 0 18px 12px;
    font-size: 13px;
    font-weight: 750;
}

.orders-drawer {
    position: fixed;
    z-index: 70;
    top: 67px;
    right: max(16px, calc((100vw - var(--content-width)) / 2));
    display: none;
    width: min(350px, calc(100vw - 32px));
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #1c293d;
    box-shadow: var(--shadow);
}
.orders-drawer.is-open { display: block; }
.drawer-head { margin-bottom: 12px; }
.orders-list { display: grid; gap: 7px; max-height: 40vh; overflow: auto; }
.order-row { display: grid; grid-template-columns: minmax(0, 1fr) 32px; gap: 5px; align-items: stretch; }
.orders-list a { display: grid; gap: 2px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-3); }
.orders-list a:hover { border-color: var(--brand-2); }
.order-row button { border: 1px solid var(--line); border-radius: 7px; background: var(--surface-3); color: var(--muted); font-size: 18px; }
.order-row button:hover { border-color: var(--danger); color: var(--danger); }
.orders-list span, .recover-link { color: var(--muted); font-size: 12px; }
.recover-link { display: inline-flex; margin-top: 12px; }
.flash {
    max-width: var(--content-width);
    margin: 14px auto 0;
    padding: 11px 14px;
    border: 1px solid #416e65;
    border-radius: 8px;
    background: #1b443f;
    color: #baf6dc;
    font-size: 13px;
}
.flash-error { border-color: #8c4c53; background: #492c37; color: #ffd3d8; }

.text-page { min-height: 60vh; padding-top: 56px; padding-bottom: 70px; }
.text-page > p { max-width: 1050px; margin: 14px 0; font-size: 15px; }
.text-page.narrow { max-width: 560px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 21px; }
.recover-form {
    display: grid;
    gap: 14px;
    margin-top: 22px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}
.recover-form label { padding: 0; }

.order-page { max-width: 1100px; padding-top: 27px; padding-bottom: 60px; }
.order-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
    padding: 23px;
    border: 1px solid #3a4d65;
    border-radius: 8px;
    background: linear-gradient(110deg, #213147, #172a3d);
}
.order-head h1 { font-size: 32px; }
.order-head p { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.order-head p b { color: var(--ink); word-break: break-all; }
.order-layout { display: grid; grid-template-columns: 1fr; gap: 12px; }
.admin-order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.order-card, .chat-card, .admin-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #202e42;
}
.order-card h2, .chat-card h2, .admin-card h2 { margin: 0 0 14px; font-size: 19px; }
.order-card p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.order-items { display: grid; margin: 0; padding: 0; list-style: none; }
.order-items li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.order-items li b { white-space: nowrap; }
.order-items small { display: block; margin-top: 3px; color: var(--muted); }
.totals { display: flex; justify-content: space-between; gap: 15px; padding: 9px 0; color: var(--muted); }
.totals b { color: var(--ink); }
.totals.discount, .totals.discount b { color: var(--accent); }
.totals.grand { padding-top: 14px; border-top: 1px solid var(--line); font-size: 20px; }
.prepare-link {
    display: block;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #477a75;
    border-radius: 8px;
    background: #1e3c42;
    color: #a7efdc;
    font-size: 13px;
    font-weight: 750;
}
.payment-box {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #806f51;
    border-radius: 8px;
    background: #393545;
    color: #ffe2b3;
    font-size: 13px;
}
.payment-box p { margin-bottom: 0; color: #f1dfc5; }
.muted-box { border-color: var(--line); background: var(--surface-3); color: var(--muted); }
.chat-card { margin-top: 12px; }
.chat-list { display: grid; gap: 9px; margin-bottom: 14px; }
.chat-message { max-width: 84%; padding: 10px 12px; border: 1px solid #3a526f; border-radius: 8px; background: #172b43; }
.chat-message.from-admin { margin-left: auto; border-color: #427369; background: #1d3c3b; }
.chat-message span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.chat-message p { margin: 0; font-size: 13px; line-height: 1.5; }
.chat-message p, [data-payment-content] { white-space: pre-wrap; }
.chat-message[data-message-id] { animation: message-in .25s ease-out both; }
@keyframes message-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.chat-form { display: grid; gap: 9px; }
.chat-form .btn { justify-self: start; }
.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #52637a;
    border-radius: 999px;
    background: #2c3d52;
    color: #d3e1f0;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.status-info { border-color: #4c75a6; background: #203e61; color: #bbdcff; }
.status-hot { border-color: #8c754e; background: #443c2d; color: #ffe0a3; }
.status-warn { border-color: #8d6456; background: #493737; color: #ffd0ba; }
.status-ok { border-color: #49866c; background: #24463d; color: #b7f4cf; }

.site-footer { border-top: 1px solid var(--line); background: #101b2a; }
.footer-inner { justify-content: space-between; padding-top: 25px; padding-bottom: 25px; }
.site-footer span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.footer-inner > div:last-child { display: flex; gap: 18px; color: #c4d3e4; font-size: 13px; }

.admin-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; background: #101928; }
.admin-body main { padding-bottom: 30px; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 18px; border-right: 1px solid var(--line); background: #152236; }
.admin-sidebar nav { display: grid; gap: 6px; margin-top: 28px; }
.admin-sidebar nav a, .logout { padding: 10px 12px; border-radius: 8px; color: var(--muted); }
.admin-sidebar nav a.is-active, .admin-sidebar nav a:hover { background: #274463; color: #fff; }
.logout { position: absolute; right: 18px; bottom: 18px; left: 18px; }
.admin-main { min-width: 0; padding: 28px; }
.admin-header { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 18px; }
.admin-header h1 { margin: 0 0 5px; font-size: 30px; }
.admin-header p { margin: 0; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table { width: 100%; min-width: 720px; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 13px; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.admin-form { display: grid; gap: 15px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.admin-form label { padding: 0; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.checks label { display: inline-flex; align-items: center; gap: 7px; }
.checks input { width: 17px; height: 17px; accent-color: var(--accent); }
.admin-order-link { display: flex; gap: 9px; align-items: center; margin-top: 14px; }
.admin-order-link code { min-width: 0; flex: 1; overflow: auto; padding: 10px; border-radius: 7px; background: var(--surface-3); }
.login-page { min-height: 72vh; display: grid; place-items: center; padding: 24px; }
.login-page form { width: min(420px, 100%); display: grid; gap: 14px; padding: 23px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.login-page h1 { margin: 0; }
.login-page label { display: grid; gap: 6px; font-weight: 750; }

.checkout-page { max-width: var(--content-width); margin: 0 auto; padding: 28px 0 70px; }
.checkout-heading > a { display: block; width: fit-content; margin-bottom: 21px; color: var(--muted); font-size: 13px; }
.checkout-heading > a:hover { color: var(--accent); }
.checkout-heading h1 { margin: 10px 0 5px; font-size: clamp(30px, 3vw, 40px); }
.checkout-heading p { margin: 0 0 21px; color: var(--muted); font-size: 14px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); align-items: start; gap: 14px; }
.checkout-form { display: grid; gap: 17px; }
.checkout-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 750; }
.checkout-form textarea { min-height: 120px; resize: vertical; }
.contact-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.form-hint { margin: -10px 0 0 !important; font-size: 12px !important; }
.checkout-summary { position: sticky; top: 82px; }
.admin-program-name { display: flex; align-items: center; gap: 10px; }
.admin-logo, .logo-preview img { width: 46px; height: 46px; object-fit: contain; border: 1px solid var(--line); border-radius: 7px; background: #142338; }
.logo-preview { display: flex; align-items: center; gap: 12px; }
.logo-preview label { display: inline-flex; align-items: center; gap: 8px; }
.logo-preview input { width: 17px; height: 17px; accent-color: var(--accent); }
.admin-form input[type="file"] { padding: 8px; }
.js-motion .reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s ease; }
.js-motion .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1480px) {
    .header-inner, .footer-inner, .hero, .catalog-shell, .how-block, .reviews, .faq, .text-page, .order-page, .checkout-page, .flash { margin-left: 22px; margin-right: 22px; }
    .header-inner, .footer-inner { padding-left: 0; padding-right: 0; }
}
@media (max-width: 1080px) {
    .program-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .contact-fields { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .header-inner { flex-wrap: wrap; gap: 8px 16px; }
    .site-header nav { order: 3; width: 100%; overflow-x: auto; margin-left: 0; }
    .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-body { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; }
    .admin-sidebar nav { display: flex; margin-top: 16px; }
    .logout { position: static; display: inline-flex; margin-top: 10px; }
}
@media (max-width: 650px) {
    main { padding-bottom: 140px; }
    .header-inner, .footer-inner, .hero, .catalog-shell, .how-block, .reviews, .faq, .text-page, .order-page, .checkout-page, .flash { margin-left: 14px; margin-right: 14px; }
    .header-inner { padding: 10px 0 6px; }
    .brand-mark { width: 34px; height: 34px; }
    .site-header nav { gap: 0; font-size: 12px; }
    .site-header nav a { padding: 7px 9px; }
    .my-orders-button { margin-left: auto; }
    .hero { margin-top: 11px; padding: 23px 18px 17px; }
    .hero h1 { font-size: 30px; }
    .hero p { font-size: 13px; }
    .hero-actions .btn { width: 100%; }
    .hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 17px; }
    .hero-facts span { min-height: 82px; padding: 8px; align-content: start; }
    .hero-facts b { font-size: 11px; }
    .hero-facts small { font-size: 10px; line-height: 1.25; }
    .catalog-shell { padding-top: 16px; }
    .program-grid, .steps, .review-grid, .admin-order-grid, .form-grid { grid-template-columns: 1fr; }
    .program-card { min-height: 130px; }
    .how-block, .reviews, .faq { padding-top: 42px; }
    .order-bar { left: 8px; right: 8px; bottom: 8px; }
    .order-bar form { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; padding: 9px; }
    .order-summary { grid-column: 1; }
    .order-price { grid-column: 1; grid-row: 2; text-align: left; }
    .order-price strong { font-size: 17px; }
    .order-bar .btn { grid-column: 2; grid-row: 1 / span 2; }
    .order-head { display: grid; padding: 18px; }
    .order-head h1 { font-size: 28px; }
    .order-card, .chat-card, .admin-card { padding: 15px; }
    .chat-message { max-width: 100%; }
    .footer-inner { display: grid; gap: 17px; }
    .admin-main { padding: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
