* { box-sizing: border-box; margin: 0; }
    html, body { height: 100%; }
    body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #0b0b12;
    color: #fff;
    overflow: hidden;
    }

    /* Root: має бути positioned, glass-елементи — прямі діти */
    #root {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    }

    /* Фон — окремий елемент усередині root (сам root не захоплюється) */
    .bg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    }

    /* Важливо для звичайних (не скляних) блоків під склом: розтягувати їх на весь root
       (inset: 0) і не зсувати через top/left/transform — бібліотека знімає їх через
       html-to-image, яке переносить зсув у копію, і вміст випадає зі знімка */

    /* Glass-елементи */
    .glass {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 20px;
    color: #fff;
    user-select: none;
      /* бібліотека вставляє canvas з z-index:-1 — без власного stacking context він ховається за фоном */
    isolation: isolate;
    z-index: 1;
    }
    /* Центральний блок. Зміщений на 44px вниз, щоб центруватися у вільному місці під баром */
    /* Ліва панель (Hero) */
   #hero {
        left: max(60px, 6vw);
        top: 50%;
        transform: translateY(-50%);
        width: min(560px, calc(100vw - 40px));
        flex-direction: column;
        align-items: flex-start; /* Текст і заголовки залишаються зліва */
        padding: 40px;
        font-weight: 400;
        user-select: text;
    }

    #hero .eyebrow,
    #hero h1,
    #hero .lead {
        width: 100%;
        text-align: left;
    }
    #hero .eyebrow {
    font-size: 13px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    opacity: .8;
    }
    /* шрифт як у колишнього «Liquid Glass»: Inter 800 зі щільним трекінгом */
    #hero h1 {
    margin-top: 6px;
    font-size: clamp(64px, 12vw, 110px); font-weight: 800;
    letter-spacing: -0.04em; line-height: 1;
    }
    #hero .lead {
    margin-top: 16px; max-width: 480px;
    font-size: clamp(16px, 2vw, 18px); line-height: 1.5;
    opacity: .92;
    }

    /* Сервіси зліва зі скругленими бульбашками */
    #hero .services {
        list-style: none; padding: 0;
        margin-top: 24px;
        display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px;
        width: 100%;
    }
    #hero .services li {
        padding: 8px 18px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.25);
        background: rgba(255, 255, 255, 0.08);
        font-size: 14px; 
        font-weight: 600;
    }

    /* Слот тепер має ширину кнопки і стає рівно по центру картки завдяки align-self: center */
    #hero .order-slot { 
        width: 220px; 
        height: 56px; 
        margin-top: 28px; 
        align-self: center; /* Центрує слот горизонтально всередині лівої панелі */
    }

    /* Кнопка «Замовити сайт» */
    #order {
        width: 220px; height: 56px;
        font-size: 17px;
        cursor: pointer; z-index: 2;
        --r: 29px;
    }

    /* Тонка біла обводка в стилі Apple: світліша зверху-зліва та знизу-справа.
       Градієнтна рамка через mask, радіус береться з --r (= cornerRadius у data-config) */
    .glass-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--r, 24px);
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(255,255,255,.75) 0%,
        rgba(255,255,255,.18) 35%,
        rgba(255,255,255,.12) 65%,
        rgba(255,255,255,.55) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    }

    /* Верхній бар (Frosted Glass). Кнопки — окремі glass-елементи поверх бару,
       бо вкладене скло бібліотека не підтримує */
    #topbar {
    top: 16px; left: 16px; right: 16px; height: 72px;
    }
    /* Пошук — glass-елемент по центру бару (бар: top 16 + висота 72 → центр на 52px) */
    #search {
    top: 30px; left: 50%; transform: translateX(-50%);
    width: min(420px, calc(100vw - 180px)); height: 44px;
    justify-content: flex-start; gap: 10px;
    padding: 0 18px;
    font-size: 16px; font-weight: 400;
    cursor: text; z-index: 2;
    --r: 22px;
    }
    #search svg { flex: none; opacity: .85; }
    #search input {
    flex: 1; min-width: 0;
    background: none; border: none; outline: none;
    color: #fff; font: inherit;
    }
    #search input::placeholder { color: rgba(255,255,255,.7); }
    /* прибрати стандартний хрестик очищення в Chrome */
    #search input::-webkit-search-cancel-button { -webkit-appearance: none; }

    /* ───── Футер у два шари ─────
       #footer — зовнішнє скло-рамка (трохи темніше), #footer-inner — ще темніше скло всередині
       з відступом 8px. Висоту під вміст (не менше ~40% екрана) ставить script.js. Ширина через width,
       а не right: .away зсуває left за екран, і з right скло розтягнулося б на сотні vw.
       У звичайному стані футер майже весь під краєм екрана — видно лише верхні грані обох шарів
       (--footer-hide рахує script.js). Клас .footer-open на #root виносить його вгору,
       а блок і куб піднімаються на --home-shift, як при прокрутці */
    /* Як справжня прокрутка: футер виїжджає на --footer-hide угору, а вміст головної (блок, кнопка,
       куб) на ту саму відстань іде вгору й зникає — синхронно, з однаковим сповільненням.
       Верхній бар лишається на місці */
    #footer, #footer-inner {
    translate: 0 var(--footer-hide, 240px);
    transition: opacity .5s ease, translate .9s cubic-bezier(.22,.9,.24,1);
    }
    #root.footer-open #footer, #root.footer-open #footer-inner { translate: 0 0; }
    #hero, #order, #cube3d-container { translate: 0 var(--home-shift, 0px); }
    #root.footer-open #hero, #root.footer-open #order, #root.footer-open #cube3d-container {
    opacity: 0; pointer-events: none;
    }
    /* поки футер закритий, по видимому краю можна клікнути, щоб його відкрити.
       Вміст у цей час прозорий — з-під краю видно лише грані скла, без обрізаного тексту */
    #root:not(.footer-open) #footer-inner { cursor: pointer; }
    .f-top, .f-bottom, .f-watermark { transition: opacity .5s ease .15s; }
    #root:not(.footer-open) :is(.f-top, .f-bottom, .f-watermark) { opacity: 0; transition-delay: 0s; }

    /* вужчий за екран і по центру: --fw — ширина рамки.
       Радіус внутрішнього шару = радіус рамки − відступ 8px: лінії між шарами рівні й на кутах */
    #footer, #footer-inner { --fw: min(1080px, calc(100% - 48px)); }
    #footer {
    left: calc((100% - var(--fw)) / 2); bottom: 16px; width: var(--fw); height: 200px;
    --r: 40px;
    border-radius: var(--r);
    box-shadow: 0 24px 60px rgba(0,12,60,.35), 0 4px 14px rgba(0,12,60,.2);   /* м'яка тінь під склом */
    }
    #footer-inner {
    left: calc((100% - var(--fw)) / 2 + 8px); bottom: 24px; width: calc(var(--fw) - 16px);
    flex-direction: column; align-items: stretch; justify-content: space-between; gap: 24px;
    padding: 32px 40px 22px;
    font-family: 'Manrope', 'Inter', system-ui, sans-serif;
    font-size: 16px; font-weight: 500;
    z-index: 2;
    --r: 32px;
    }
    /* якісніші грані обох шарів: обідок яскравіший зверху, м'якший знизу (замість рівного з .glass-btn)
       + тонкий внутрішній відблиск по верхньому краю */
    #footer::after, #footer-inner::after {
    padding: 1.2px;
    background: linear-gradient(180deg,
        rgba(255,255,255,.85) 0%,
        rgba(255,255,255,.28) 22%,
        rgba(255,255,255,.08) 55%,
        rgba(255,255,255,.22) 100%);
    }
    #footer::before, #footer-inner::before {
    content: ""; position: absolute; inset: 1px;
    border-radius: calc(var(--r) - 1px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(255,255,255,.06), inset 0 14px 28px -18px rgba(255,255,255,.25);
    pointer-events: none;
    }
    /* великий ледь помітний напис «Collab» у правому нижньому куті панелі; обрізається по її радіусу */
    .f-watermark {
    position: absolute; inset: 0; border-radius: var(--r); overflow: hidden;
    pointer-events: none;
    }
    .f-watermark span {
    position: absolute; right: -10px; bottom: -34px;
    font: 800 168px/1 'Manrope', 'Inter', sans-serif; letter-spacing: -0.05em;
    color: rgba(255,255,255,.045);
    white-space: nowrap;
    }
    .f-top { position: relative; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 24px 48px; align-items: start; }

    .f-brand { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px 16px; }
    .f-logo { width: 58px; height: auto; filter: drop-shadow(0 2px 6px rgba(0,20,80,.4)); }
    .f-name { display: flex; flex-direction: column; gap: 4px; }
    .f-name b { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
    .f-name small { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
    .f-tagline { grid-column: 1 / -1; max-width: 340px; line-height: 1.55; opacity: .82; }
    #footer-inner .f-cta {
    grid-column: 1 / -1; justify-self: start;
    display: inline-flex; align-items: center; gap: 8px;
    height: 44px; padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.4);
    background: rgba(255,255,255,.12);
    background-image: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,0) 60%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
    color: #fff; text-decoration: none; font-weight: 700; opacity: 1;
    transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
    }
    #footer-inner .f-cta span { transition: translate .35s ease; }
    #footer-inner .f-cta:hover, #footer-inner .f-cta:focus-visible {
    background-color: rgba(255,255,255,.24); border-color: rgba(255,255,255,.7);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 18px rgba(170,225,255,.4);
    }
    #footer-inner .f-cta:hover span { translate: 4px 0; }

    .f-col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; padding-top: 6px; }
    .f-col h3 {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 4px;
    font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .6;
    }
    /* маленька світла крапка перед заголовком колонки */
    .f-col h3::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #9fdcff; box-shadow: 0 0 8px rgba(159,220,255,.8); }
    .f-col a, .f-bottom a {
    color: #fff; text-decoration: none; opacity: .82;
    transition: opacity .3s ease, translate .3s ease;
    }
    .f-col a:hover, .f-col a:focus-visible { opacity: 1; translate: 4px 0; outline: none; }

    .f-bottom {
    position: relative;
    display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap;
    padding-top: 16px;
    font-size: 14px; opacity: .8;
    }
    /* роздільник, що тане до країв */
    .f-bottom::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.35) 20%, rgba(255,255,255,.35) 80%, transparent);
    }
    .f-made { opacity: .75; }
    #footer-inner .f-up {
    padding: 6px 14px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06);
    transition: background-color .3s ease, border-color .3s ease, opacity .3s ease;
    }
    #footer-inner .f-up:hover, #footer-inner .f-up:focus-visible { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.6); opacity: 1; outline: none; }

    @media (max-width: 899px) {
    #footer-inner { padding: 22px 22px 16px; gap: 18px; font-size: 15px; }
    .f-top { grid-template-columns: 1fr 1fr; gap: 18px 20px; }
    .f-brand { grid-column: 1 / -1; }
    .f-logo { width: 48px; }
    .f-name b { font-size: 26px; }
    .f-tagline { display: none; }
    #footer-inner .f-cta { height: 40px; padding: 0 16px; }
    .f-watermark span { font-size: 110px; bottom: -22px; }
    .f-bottom { font-size: 13px; justify-content: center; }
    .f-made { display: none; }
    }

    /* на широкому екрані праворуч від пошуку стоять кнопки входу — пошук звужується, щоб не наїжджати */
    @media (min-width: 900px) {
    #search { width: min(420px, calc(100vw - 680px)); }
    }

    /* Кнопки «Увійти» / «Реєстрація» — звичайні елементи (не скло) перед бургером.
       При наведенні плавно засвічуються, коли курсор іде — так само плавно згасають */
    #auth {
    position: absolute;
    top: 32px; right: 92px; height: 40px;
    display: flex; gap: 8px;
    z-index: 2;
    }
    .auth-btn {
    display: inline-flex; align-items: center;
    height: 40px; padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.35);
    background-color: rgba(255,255,255,.08);
    /* блік зверху — як у мильної бульбашки */
    background-image: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 55%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 14px rgba(0,20,80,.18);
    color: #fff; text-decoration: none;
    font: 600 15px 'Inter', system-ui, sans-serif;
    white-space: nowrap;
    transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
    }
    .auth-btn.primary { background-color: rgba(255,255,255,.18); }
    .auth-btn:hover, .auth-btn:focus-visible {
    background-color: rgba(255,255,255,.22);
    border-color: rgba(255,255,255,.65);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 14px rgba(0,20,80,.18), 0 0 18px rgba(170,225,255,.45);
    outline: none;
    }
    .auth-btn.primary:hover, .auth-btn.primary:focus-visible { background-color: rgba(255,255,255,.32); }
    #menu .menu-auth { display: none; }
    @media (max-width: 899px) {
    #auth { display: none; }
    #menu .menu-auth { display: block; }
    /* на телефоні блок по центру вільного місця між баром (низ на 88px) і краєм футера, що виглядає
       знизу (~48px), і не вилазить за край екрана. .away перебиває left, як і раніше */
    #hero {
    left: 50%; top: calc(50% + 20px);
    transform: translate(-50%, -50%);
    width: calc(100vw - 32px);
    padding: 28px 24px;
    }
    #hero .services { margin-top: 18px; }
    #hero .order-slot { margin-top: 22px; }
    /* на телефоні куба немає */
    #cube3d-container { display: none; }
    }

    /* Логотип — звичайний елемент (не скло) у лівому куті бару (центр бару на 52px) */
    #logo {
    position: absolute;
    top: 22px; left: 40px; height: 60px;
    display: flex; align-items: center;
    z-index: 2;
    transition: opacity .15s ease;
    }
    #logo:hover { opacity: .8; }
    #logo svg { display: block; height: 60%; width: auto; filter: drop-shadow(0 1px 4px rgba(0,20,80,.35)); }

    /* Бургер-кнопка — звичайний елемент (не скло) поверх бару */
    #burger {
    position: absolute;
    top: 28px; right: 32px; width: 48px; height: 48px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    cursor: pointer; z-index: 2;
    user-select: none;
    transition: opacity .15s ease;
    }
    #burger:hover { opacity: .75; }
    #burger span {
    display: block; width: 20px; height: 2px; border-radius: 2px;
    background: #fff;
    transition: transform .25s ease, opacity .2s ease;
    }
    /* у відкритому стані три смужки складаються в хрестик.
       nth-of-type, а не nth-child: бібліотека вставляє <canvas> першою дитиною */
    #burger.open span:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
    #burger.open span:nth-of-type(2) { opacity: 0; }
    #burger.open span:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Випадне меню (Dark Glass). Приховане через opacity, а не display:none —
       бібліотеці потрібен розмір елемента; transition на transform бібліотека
       відстежує сама і перемальовує скло кожен кадр анімації */
    #menu {
    top: 100px; right: 16px; width: 220px;
    flex-direction: column; align-items: stretch;
    padding: 8px;
    z-index: 3;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    }
    #menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    }
    #menu a {
    display: block;
    padding: 13px 16px;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 16px; font-weight: 600;
    transition: background .3s ease;
    }
    #menu a:hover { background: rgba(255,255,255,.12); }

    /* ───── Перехід до блоків ───── */
    #hero, #order { transition: opacity .6s ease, translate .9s cubic-bezier(.22,.9,.24,1); }
    .hidden { opacity: 0 !important; pointer-events: none; }
    /* Приховане скло бібліотека все одно малює у «фото» сусідів, тому його виносимо за екран.
       !important — щоб перебити inline left, який ставить script.js */
    .away { left: -300vw !important; visibility: hidden; }

    /* Три блоки-пакети. left/top ставить script.js */
    .card {
    width: 300px;
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 28px 26px 26px;
    text-align: left;
    font-weight: 400;
    user-select: text;
    transform-origin: 50% 50%;
    --r: 28px;
    }
    .card .eyebrow {
    font-size: 12px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    opacity: .8;
    }
    .card h2 {
    margin-top: 10px;
    font-size: 34px; font-weight: 800;
    letter-spacing: -0.03em; line-height: 1.05;
    }
    .card .desc {
    margin-top: 12px;
    font-size: 15px; line-height: 1.5;
    opacity: .9;
    }
    .card .tags {
    list-style: none; padding: 0;
    margin: 18px 0 22px;
    display: flex; flex-wrap: wrap; gap: 6px;
    }
    .card .tags li {
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.08);
    font-size: 13px; font-weight: 600;
    }
    .card .price {
    margin-top: auto; padding-top: 16px;
    width: 100%;
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    border-top: 1px solid rgba(255,255,255,.2);
    }
    .card .price b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
    .card .price span { font-size: 13px; font-weight: 600; opacity: .75; }

    /* Анімації «бульбашки». Анімується окрема властивість scale (а не transform), тож вона
       складається з наявними transform (#search, #hero). Масштаб — відносно центру: центр скла
       не зсувається, і бібліотека не перемальовує його посеред анімації */
    .card.placed { opacity: 0; }
    .card.pop {
    animation: bubble-in .95s ease-in-out both;
    animation-delay: calc(var(--i) * 130ms);
    }
    .card.unpop {
    animation: bubble-out .45s ease-in both;
    animation-delay: calc((2 - var(--i)) * 70ms);
    }

    /* Кнопки-бульбашки: класи ставить script.js на наведення та натискання */
    .jelly  { animation: jelly .8s ease-in-out; }
    .squish { animation: squish .65s ease-out; }

    @keyframes bubble-in {
    0%   { opacity: 0; scale: .15; }
    35%  { opacity: 1; scale: 1.1 .9; }
    55%  { scale: .93 1.07; }
    72%  { scale: 1.04 .97; }
    86%  { scale: .985 1.015; }
    100% { opacity: 1; scale: 1; }
    }
    @keyframes bubble-out {
    0%   { opacity: 1; scale: 1; }
    35%  { opacity: 1; scale: 1.06 .94; }
    100% { opacity: 0; scale: .1; }
    }
    @keyframes jelly {
    0%   { scale: 1; }
    25%  { scale: 1.07 .93; }
    45%  { scale: .95 1.05; }
    65%  { scale: 1.025 .975; }
    82%  { scale: .99 1.01; }
    100% { scale: 1; }
    }
    @keyframes squish {
    0%   { scale: 1; }
    20%  { scale: 1.12 .84; }
    42%  { scale: .92 1.09; }
    62%  { scale: 1.04 .96; }
    80%  { scale: .985 1.015; }
    100% { scale: 1; }
    }

    /* Сторінки «Про нас» і реєстрація: скляний блок по центру. left/top ставить script.js */
    .page {
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 40px;
    text-align: left;
    font-weight: 400;
    user-select: text;
    transform-origin: 50% 50%;
    --r: 32px;
    }
    .page .eyebrow {
    font-size: 13px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    opacity: .8;
    }
    .page.placed { opacity: 0; }
    .page.pop { animation: bubble-in .95s ease-in-out both; }
    .page.unpop { animation: bubble-out .45s ease-in both; }

    .about { width: min(760px, calc(100vw - 32px)); }
    .about h2 {
    margin-top: 8px;
    font-size: clamp(30px, 4.4vw, 44px); font-weight: 800;
    letter-spacing: -0.03em; line-height: 1.05;
    }
    .about .lead {
    margin-top: 14px;
    font-size: clamp(15px, 1.8vw, 17px); line-height: 1.55;
    opacity: .92;
    }
    .about .perks {
    list-style: none; padding: 0;
    margin-top: 26px; width: 100%;
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    }
    .about .perks li {
    display: flex; flex-direction: column; gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08);
    }
    .about .perks b { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
    .about .perks span { font-size: 14px; line-height: 1.45; opacity: .85; }


    /* Вікно вартості поверх карток (створює script.js). left/top ставить script.js */
    .card { cursor: pointer; }
    /* плавне згасання лише для вже показаних карток (під вікном вартості). На всіх картках
       воно ламало появу: .placed ставав прозорим не одразу, і на мить було видно біле скло */
    .card.shown { transition: opacity .3s ease; }
    .card:focus-visible { outline: 2px solid rgba(255,255,255,.7); outline-offset: 4px; }
    .price-modal {
    width: min(460px, calc(100vw - 32px));
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 24px 28px 20px;
    text-align: left;
    font-weight: 400;
    user-select: text;
    transform-origin: 50% 50%;
    z-index: 3;
    --r: 28px;
    }
    .price-modal .eyebrow {
    font-size: 12px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    opacity: .8;
    }
    .price-modal h2 {
    margin-top: 6px; padding-right: 36px;
    font-size: 30px; font-weight: 800;
    letter-spacing: -0.03em; line-height: 1.05;
    }
    .price-modal .close {
    position: absolute; top: 16px; right: 16px;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.08);
    color: #fff; font: 400 22px/1 'Inter', system-ui, sans-serif;
    cursor: pointer;
    transition: background-color .3s ease, border-color .3s ease;
    }
    .price-modal .close:hover, .price-modal .close:focus-visible {
    background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.6); outline: none;
    }
    .cost-row {
    margin-top: 12px;
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    font-size: 15px;
    }
    .cost-row b { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
    .price-modal .term { margin-top: 4px; font-size: 13px; opacity: .75; }
    .price-modal h3 {
    margin-top: 14px; padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.2);
    font-size: 15px; font-weight: 700;
    display: flex; align-items: baseline; gap: 8px;
    }
    .price-modal h3 small { font-size: 12px; font-weight: 600; opacity: .7; }
    /* перемикач тарифу: Базовий / Середній / Максимум */
    .tiers {
    margin-top: 10px; padding: 4px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.05);
    }
    .tier {
    height: 34px;
    border: 1px solid transparent; border-radius: 10px;
    background: transparent;
    color: rgba(255,255,255,.8); font: 600 14px 'Inter', system-ui, sans-serif;
    cursor: pointer;
    transition: background-color .3s ease, border-color .3s ease, color .3s ease;
    }
    .tier:hover, .tier:focus-visible { background: rgba(255,255,255,.1); color: #fff; outline: none; }
    .tier[aria-checked="true"] {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.55);
    color: #fff;
    }
    .hosts { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
    .host {
    display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 10px;
    padding: 8px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.06);
    color: #fff; font: 600 15px 'Inter', system-ui, sans-serif;
    text-align: left;
    cursor: pointer;
    transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
    }
    .host small { font-size: 12px; font-weight: 400; opacity: .65; }
    .host b { font-weight: 800; white-space: nowrap; }
    .host:hover, .host:focus-visible { background: rgba(255,255,255,.14); outline: none; }
    .host[aria-checked="true"] {
    border-color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.18);
    box-shadow: 0 0 14px rgba(170,225,255,.3);
    }
    .cost-row.total {
    margin-top: 12px; padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.2);
    }
    .cost-row.total b { font-size: 24px; }
    .price-modal .note { margin-top: 10px; font-size: 12px; line-height: 1.45; opacity: .7; }
    .price-modal .next { margin-top: 12px; justify-content: center; height: 46px; font-size: 16px; cursor: pointer; }

    /* Крок 2: домен */
    .domain-modal { width: min(540px, calc(100vw - 32px)); }
    .domain-modal .summary { margin-top: 6px; font-size: 13px; line-height: 1.4; opacity: .75; }
    .domain-modal .domain-field { margin-top: 16px; }
    .domain-modal h3 { margin-top: 14px; padding-top: 12px; }
    /* сітка спільна для заголовка й рядків, щоб колонки цін стояли рівно */
    .zones-head, .zone {
    display: grid; grid-template-columns: 1fr repeat(3, minmax(0, 92px)); align-items: baseline; gap: 8px;
    text-align: right;
    }
    .zones-head > :first-child, .zone > :first-child { text-align: left; }
    /* заголовок резервує те саме місце під смугу прокрутки, що й список, — колонки збігаються */
    .zones-head {
    margin-top: 10px; padding: 0 16px 6px 12px;
    overflow-y: hidden; scrollbar-gutter: stable; scrollbar-width: thin;
    font-size: 11px; font-weight: 600; opacity: .65;
    }
    .zones {
    max-height: 156px; overflow-y: auto; scrollbar-gutter: stable;
    display: flex; flex-direction: column; gap: 6px;
    padding-right: 4px;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.35) transparent;
    }
    .zone {
    flex: none;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.06);
    color: #fff; font: 400 13px 'Inter', system-ui, sans-serif;
    cursor: pointer;
    transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
    }
    .zone > :first-child { font-size: 15px; font-weight: 700; }
    .zone b { font-weight: 800; }
    .zone:hover, .zone:focus-visible { background: rgba(255,255,255,.14); outline: none; }
    .zone[aria-checked="true"] {
    border-color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.18);
    box-shadow: 0 0 14px rgba(170,225,255,.3);
    }
    .domain-modal .custom-field, .price-modal .custom-field { margin-top: 10px; }
    /* сума, де частину ціни ще розрахуємо, — дрібніше, щоб влізла поруч із «Разом» */
    .cost-row.total b.partial { font-size: 18px; }

    /* Крок 3: замовлення */
    .order-list { list-style: none; padding: 0; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
    .order-list li {
    display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.06);
    }
    .order-list .lbl { font-size: 12px; font-weight: 600; opacity: .7; }
    .order-list .val { grid-column: 1; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
    .order-list b { grid-column: 2; grid-row: 1 / span 2; font-size: 16px; font-weight: 800; white-space: nowrap; }
    /* написане вручну — пунктирна рамка й «за розрахунком» замість ціни */
    .order-list li.manual { border-style: dashed; border-color: rgba(255,255,255,.4); }
    .order-list li.manual b { font-size: 13px; font-weight: 700; opacity: .85; }
    .order-email-field { margin-top: 14px; }
    .order-modal .form-msg { margin-top: 8px; }
    .order-modal .steps { margin-top: 8px; }
    .order-done:not([hidden]) {
    display: flex; flex-direction: column; align-items: center;
    padding: 18px 0 4px;
    text-align: center;
    }
    .done-icon {
    width: 56px; height: 56px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.6);
    background: rgba(255,255,255,.14);
    font-size: 26px; font-weight: 800;
    box-shadow: 0 0 18px rgba(170,225,255,.35);
    }
    .order-done h3 { margin-top: 14px; font-size: 22px; font-weight: 800; }
    .order-done p { margin-top: 8px; font-size: 15px; line-height: 1.5; opacity: .9; }
    .order-done b { overflow-wrap: anywhere; }
    .order-done .done-link { margin-top: 10px; color: #fff; font-size: 14px; font-weight: 600; text-underline-offset: 3px; }
    .order-msg a { color: #fff; font-weight: 700; text-underline-offset: 3px; }

    /* Сповіщення про замовлення (script.js): під баром по центру. Не скло — звичайний елемент */
    #notices {
    position: absolute; top: 100px; left: 50%; transform: translateX(-50%);
    width: min(560px, calc(100vw - 32px));
    display: flex; flex-direction: column; gap: 8px;
    z-index: 4;
    }
    .notice {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 10px 10px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.4);
    background: rgba(0,25,90,.55);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(0,20,80,.3);
    color: #fff; font: 600 14px/1.4 'Inter', system-ui, sans-serif;
    animation: notice-in .4s ease both;
    }
    .notice span { flex: 1; }
    .notice .auth-btn { height: 36px; padding: 0 14px; font-size: 14px; flex: none; }
    .notice-close {
    flex: none; width: 30px; height: 30px; border-radius: 50%;
    border: none; background: rgba(255,255,255,.1); color: #fff; font-size: 18px; cursor: pointer;
    }
    @keyframes notice-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

    .order-done .finish { margin-top: 18px; justify-content: center; height: 46px; padding: 0 36px; font-size: 16px; cursor: pointer; }
    .field-label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; opacity: .8; }
    .domain-preview { margin-top: 12px; min-height: 20px; font-size: 14px; font-weight: 600; line-height: 1.4; }
    .domain-preview.error { color: #ffd6de; }
    .steps { margin-top: 14px; display: grid; grid-template-columns: auto 1fr; gap: 10px; }
    .steps .auth-btn { justify-content: center; height: 46px; font-size: 16px; cursor: pointer; }
    .steps .next { margin-top: 0; }
    @media (max-width: 899px) {
    .zones-head, .zone { grid-template-columns: 1fr repeat(3, minmax(0, 74px)); gap: 6px; }
    .zone { font-size: 12px; padding: 8px 10px; }
    .zone > :first-child { font-size: 14px; }
    .zones-head { padding: 0 14px 6px 10px; font-size: 10px; }
    }

    .price-modal.placed { opacity: 0; }
    .price-modal.pop { animation: bubble-in .7s ease-in-out both; }
    .price-modal.unpop { animation: bubble-out .35s ease-in both; }

    /* Вікно реєстрації */
    .register { width: min(440px, calc(100vw - 32px)); padding: 28px 32px 22px; }
    .register h2 {
    margin-top: 6px;
    font-size: 32px; font-weight: 800;
    letter-spacing: -0.03em; line-height: 1.05;
    }
    .register form { width: 100%; margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
    .sr-only {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
    }
    .field { position: relative; display: block; }
    .field input {
    width: 100%; height: 42px; padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.1);
    color: #fff; font: 400 15px 'Inter', system-ui, sans-serif;
    outline: none;
    transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease;
    }
    .field input::placeholder { color: rgba(255,255,255,.7); }
    .field input:focus {
    border-color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.16);
    box-shadow: 0 0 14px rgba(170,225,255,.35);
    }
    .field input[aria-invalid="true"] { border-color: #ffb3c1; box-shadow: 0 0 0 1px rgba(255,140,165,.5); }
    /* підказка «необов'язково» праворуч усередині поля телефону */
    .field small {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    font-size: 12px; opacity: .6; pointer-events: none;
    }
    .form-msg { min-height: 18px; font-size: 13px; line-height: 18px; color: #ffd6de; }
    .form-msg.ok { color: #c8ffe0; }
    .register .submit { justify-content: center; height: 46px; font-size: 16px; cursor: pointer; }
    .divider {
    width: 100%; margin: 12px 0 10px;
    display: flex; align-items: center; gap: 12px;
    font-size: 13px; opacity: .75;
    }
    .divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.3); }
    .social { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .social-btn { justify-content: center; gap: 8px; cursor: pointer; }
    .social-btn svg { width: 20px; height: 20px; flex: none; }
    .switch { margin-top: 12px; width: 100%; text-align: center; font-size: 14px; opacity: .9; }
    .switch a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
    button.auth-btn { font-family: 'Inter', system-ui, sans-serif; }

    @media (max-width: 899px) {
    .about { padding: 24px 22px; }
    .register { padding: 24px 20px 20px; }
    .register h2 { font-size: 26px; }
    .about .perks { grid-template-columns: 1fr; gap: 8px; margin-top: 18px; }
    .about .perks li { padding: 10px 14px; }
    }
    @media (max-width: 899px) and (max-height: 820px) {
    .about .perks span { display: none; }
    }

    /* Кнопка повернення — звичайний елемент (не скло) під картками */
    #back {
    position: absolute; z-index: 2;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.1);
    color: #fff;
    font: 600 15px 'Inter', system-ui, sans-serif;
    cursor: pointer;
    opacity: 0;
    /* opacity — щоб плавно згасати, поки відкрите вікно вартості (.hidden, script.js) */
    transition: background .15s ease, opacity .3s ease;
    }
    #back.show { opacity: 1; }
    #back.pop { animation: bubble-in .8s ease-in-out .35s both; }
    #back.unpop { animation: bubble-out .4s ease-in both; }
    #back:hover { background: rgba(255,255,255,.2); }
    /* на світлому фоні «Про нас» — темніша, як Dark Glass меню */
    #back.dark { background: rgba(0,25,90,.35); border-color: rgba(255,255,255,.45); }
    #back.dark:hover { background: rgba(0,25,90,.5); }

    @media (max-width: 899px) {
    .card { width: min(440px, calc(100vw - 32px)); padding: 18px 20px; }
    .card h2 { margin-top: 4px; font-size: 26px; }
    .card .desc { margin-top: 6px; font-size: 14px; }
    .card .tags { display: none; }
    .card .price { margin-top: 12px; padding-top: 10px; }
    .card .price b { font-size: 18px; }
    }
    @media (max-width: 899px) and (max-height: 760px) {
    .card .desc { display: none; }
    }
    @media (prefers-reduced-motion: reduce) {
    .card.pop, .card.unpop, .page.pop, .page.unpop, .price-modal.pop, .price-modal.unpop, #back.pop, #back.unpop { animation-duration: .01ms; animation-delay: 0s; }
    }
    
    /* canvas куба на весь екран; розмір у px, який ставить three.js, перебиваємо */
    #cube3d-container {
      position: absolute;
      inset: 0;
      display: block;
      width: 100% !important;
      height: 100% !important;
      z-index: 1;
      pointer-events: none;
      transition: opacity .6s ease, filter .6s ease, translate .9s cubic-bezier(.22,.9,.24,1);
    }
    /* куб плавно зникає разом із центральним блоком при переході до карток */
    #cube3d-container.hidden {
      opacity: 0;
      filter: blur(8px);
    }
    /* поки куб прихований, canvas прибраний зовсім: нульовий розмір — скло його не малює */
    #cube3d-container.off { display: none; }
