:root {
    --gold: #e8c37b;
    --gold-soft: #fff0bf;
    --ink: #17120c;
    --wood: #563416;
    --glass: rgba(18, 24, 27, 0.52);
    --line: rgba(232, 195, 123, 0.58);
    --parallax-x: 0px;
    --parallax-y: 0px;
}

* {
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    color: #f7e9cb;
    background: #120f0b;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.home-page {
    overflow-x: hidden;
    overflow-y: auto;
}

.home-shell {
    position: relative;
    width: min(100%, 1180px);
    min-height: 100svh;
    margin: 0 auto;
    padding: clamp(16px, 4vw, 56px);
    display: grid;
    grid-template-rows: auto 1fr auto;
    isolation: isolate;
}

.home-shell::before,
.home-shell::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(232, 195, 123, 0.48);
    border-radius: 24px;
    pointer-events: none;
    z-index: 6;
}

.home-shell::after {
    inset: 0;
    border: 0;
    border-radius: 0;
    background:
        linear-gradient(90deg, rgba(4, 8, 15, 0.28), transparent 45%, rgba(4, 8, 15, 0.12)),
        linear-gradient(0deg, rgba(4, 4, 5, 0.2), transparent 42%);
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.8s ease, background 0.8s ease;
    z-index: 1;
}

.home-page.summoned .home-shell::after {
    background:
        radial-gradient(circle at 75% 48%, rgba(255, 215, 140, 0.18), transparent 22%),
        linear-gradient(90deg, rgba(3, 5, 10, 0.56), rgba(3, 5, 10, 0.22) 42%, rgba(3, 5, 10, 0.5)),
        linear-gradient(0deg, rgba(2, 2, 3, 0.55), transparent 52%);
}

.time-bg {
    position: fixed;
    inset: 0;
    background-position: center center;
    background-size: cover;
    opacity: 0;
    transform: none;
    transition: opacity 1.4s ease;
    z-index: -1;
}

.bg-morning {
    background-image: url("../assets/home-clean.png");
}

.bg-day {
    background-image: url("../assets/home-clean.png");
}

.bg-evening {
    background-image: url("../assets/home-clean.png");
}

.bg-night {
    background-image: url("../assets/home-clean.png");
}

body[data-time="morning"] .bg-morning,
body[data-time="day"] .bg-day,
body[data-time="evening"] .bg-evening,
body[data-time="night"] .bg-night {
    opacity: 1;
}

.weather-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    display: none;
}

.clean-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translate(calc(var(--parallax-x) * 0.35), calc(var(--parallax-y) * 0.2));
    transition: transform 0.3s ease;
    display: none;
}

.far-mountains,
.near-mountains,
.forest-line,
.stone-path,
.clean-house {
    position: absolute;
}

.far-mountains {
    left: -6vw;
    right: -6vw;
    bottom: 22vh;
    height: 42vh;
    background:
        linear-gradient(135deg, transparent 49%, rgba(255, 255, 255, 0.72) 50%, transparent 54%) 18% 10% / 18% 42% no-repeat,
        linear-gradient(145deg, transparent 47%, rgba(255, 255, 255, 0.52) 48%, transparent 54%) 45% 0 / 20% 48% no-repeat,
        linear-gradient(132deg, transparent 49%, rgba(255, 255, 255, 0.62) 50%, transparent 55%) 72% 12% / 17% 44% no-repeat,
        linear-gradient(138deg, #587487 0 48%, transparent 49%) 0 100% / 33% 86% no-repeat,
        linear-gradient(132deg, #6f8da0 0 50%, transparent 51%) 19% 100% / 34% 94% no-repeat,
        linear-gradient(145deg, #49677a 0 51%, transparent 52%) 46% 100% / 33% 88% no-repeat,
        linear-gradient(136deg, #6b8798 0 48%, transparent 49%) 72% 100% / 34% 86% no-repeat;
    opacity: 0.9;
    filter: saturate(0.92);
}

.near-mountains {
    left: -10vw;
    right: -10vw;
    bottom: 15vh;
    height: 32vh;
    background:
        linear-gradient(140deg, #1b3941 0 49%, transparent 50%) 0 100% / 42% 84% no-repeat,
        linear-gradient(132deg, #254952 0 50%, transparent 51%) 34% 100% / 38% 78% no-repeat,
        linear-gradient(146deg, #18333a 0 48%, transparent 49%) 66% 100% / 42% 82% no-repeat;
    opacity: 0.92;
}

.forest-line {
    left: -2vw;
    right: -2vw;
    bottom: 13vh;
    height: 22vh;
    background:
        repeating-linear-gradient(72deg, transparent 0 18px, rgba(13, 35, 28, 0.96) 19px 32px, transparent 33px 46px),
        linear-gradient(180deg, transparent, rgba(6, 20, 16, 0.9));
    clip-path: polygon(0 42%, 6% 24%, 10% 46%, 15% 18%, 21% 44%, 26% 22%, 31% 48%, 37% 18%, 43% 44%, 50% 20%, 57% 45%, 64% 17%, 70% 46%, 77% 22%, 84% 45%, 90% 18%, 96% 40%, 100% 30%, 100% 100%, 0 100%);
}

.stone-path {
    left: 32vw;
    bottom: -8vh;
    width: 28vw;
    min-width: 270px;
    height: 44vh;
    background:
        radial-gradient(ellipse at 52% 12%, rgba(244, 212, 155, 0.42), transparent 14%),
        repeating-radial-gradient(ellipse at 50% 0, rgba(165, 134, 99, 0.9) 0 14px, rgba(84, 66, 51, 0.9) 15px 18px, rgba(128, 102, 76, 0.88) 19px 34px);
    clip-path: polygon(43% 0, 57% 0, 96% 100%, 4% 100%);
    opacity: 0.78;
    filter: drop-shadow(0 -22px 20px rgba(255, 197, 104, 0.12));
}

.clean-house {
    left: clamp(42%, 51vw, 56%);
    bottom: 18vh;
    width: clamp(260px, 28vw, 460px);
    height: clamp(280px, 34vw, 520px);
    transform: translateX(-50%);
    filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.55));
}

.clean-roof {
    position: absolute;
    left: 50%;
    top: 0;
    width: 86%;
    height: 48%;
    transform: translateX(-50%);
    background:
        repeating-linear-gradient(105deg, rgba(24, 21, 20, 0.55) 0 10px, rgba(73, 52, 38, 0.84) 11px 20px),
        linear-gradient(135deg, #2a211d, #60462d);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    border-radius: 10px 10px 0 0;
}

.clean-chimney {
    position: absolute;
    left: 62%;
    top: 12%;
    width: 10%;
    height: 30%;
    background: linear-gradient(90deg, #3d3029, #80644b, #2e241f);
    border-radius: 5px 5px 2px 2px;
    z-index: -1;
}

.clean-chimney::after {
    content: "";
    position: absolute;
    left: 25%;
    top: -58px;
    width: 80px;
    height: 100px;
    background:
        radial-gradient(circle at 50% 80%, rgba(226, 234, 235, 0.28), transparent 34%),
        radial-gradient(circle at 65% 52%, rgba(226, 234, 235, 0.24), transparent 36%),
        radial-gradient(circle at 42% 24%, rgba(226, 234, 235, 0.18), transparent 38%);
    filter: blur(8px);
    animation: smokeRise 6s ease-in-out infinite;
}

.clean-body {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 0;
    height: 67%;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.24), transparent 28%, rgba(0, 0, 0, 0.22)),
        repeating-linear-gradient(90deg, #51331d 0 18px, #6a4527 19px 36px);
    border: 1px solid rgba(218, 171, 92, 0.28);
    border-radius: 16px 16px 8px 8px;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.34), 0 0 36px rgba(255, 178, 78, 0.16);
}

.clean-window {
    position: absolute;
    width: 18%;
    height: 19%;
    border: 3px solid #2e1b0d;
    border-radius: 50% 50% 8px 8px;
    background:
        linear-gradient(90deg, transparent 46%, rgba(72, 38, 15, 0.82) 47% 53%, transparent 54%),
        linear-gradient(0deg, transparent 46%, rgba(72, 38, 15, 0.82) 47% 53%, transparent 54%),
        radial-gradient(circle, #ffe09a, #b65f25 72%);
    box-shadow: 0 0 22px rgba(255, 185, 79, 0.62);
}

.clean-window.left {
    left: 12%;
    top: 42%;
}

.clean-window.right {
    right: 12%;
    top: 42%;
}

.clean-window.attic {
    left: 41%;
    top: 12%;
    width: 18%;
    height: 17%;
}

.clean-door {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 26%;
    height: 43%;
    transform: translateX(-50%);
    border: 3px solid #2c170b;
    border-radius: 46% 46% 5px 5px;
    background:
        radial-gradient(circle at 78% 55%, #d6a54f 0 4px, transparent 5px),
        repeating-linear-gradient(90deg, #4b2a13 0 10px, #6f411e 11px 21px);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.48), 0 0 22px rgba(255, 177, 74, 0.16);
}

.fog-layer {
    background:
        radial-gradient(ellipse at 28% 72%, rgba(255, 255, 255, 0.34), transparent 30%),
        radial-gradient(ellipse at 52% 74%, rgba(255, 255, 255, 0.24), transparent 24%),
        linear-gradient(0deg, rgba(218, 229, 229, 0.32), transparent 44%);
    opacity: 0;
    animation: breatheFog 8s ease-in-out infinite;
}

body[data-time="morning"] .fog-layer {
    opacity: 0.9;
}

.clouds-layer {
    opacity: 0;
}

body[data-time="day"] .clouds-layer,
body[data-time="evening"] .clouds-layer {
    opacity: 0.62;
}

.clouds-layer span {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 130px;
    height: 38px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    filter: blur(10px);
    animation: driftCloud 16s ease-in-out infinite;
    animation-delay: var(--delay);
}

.stars-layer {
    opacity: 0;
    transition: opacity 1s ease;
}

body[data-time="night"] .stars-layer {
    opacity: 1;
}

.stars-layer span {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 8px white;
    animation: twinkle 2.4s ease-in-out infinite;
}

.moon-orb,
.sun-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    z-index: 1;
    display: none;
}

.moon-orb {
    left: 7vw;
    top: 26vh;
    width: 78px;
    height: 78px;
    background: radial-gradient(circle at 35% 35%, #fff, #cbd8e8 58%, #8ca1b7);
    box-shadow: 0 0 34px rgba(215, 230, 255, 0.76);
}

.sun-orb {
    display: none;
    right: 18vw;
    top: 12vh;
    width: 96px;
    height: 96px;
    background: radial-gradient(circle at 38% 35%, #fff8bf, #ffbd52 62%, #f4822b);
    box-shadow: 0 0 70px rgba(255, 204, 92, 0.5);
}

body[data-time="night"] .moon-orb,
body[data-time="day"] .sun-orb,
body[data-time="morning"] .sun-orb,
body[data-time="evening"] .sun-orb {
    opacity: 1;
}

.smoke-plume {
    position: fixed;
    left: 42%;
    top: 7%;
    width: 160px;
    height: 220px;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

body[data-time="night"] .smoke-plume,
body[data-time="evening"] .smoke-plume {
    opacity: 0.9;
}

.smoke-plume span {
    position: absolute;
    bottom: 0;
    left: 45%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(190, 209, 221, 0.28);
    filter: blur(12px);
    animation: smokeRise 5s ease-in-out infinite;
}

.smoke-plume span:nth-child(2) {
    animation-delay: -1.2s;
    left: 24%;
}

.smoke-plume span:nth-child(3) {
    animation-delay: -2.5s;
    left: 52%;
}

.smoke-plume span:nth-child(4) {
    animation-delay: -3.4s;
    left: 34%;
}

.site-header,
.home-footer,
.arrival {
    position: relative;
    z-index: 8;
}

.site-header,
.interior-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: min(100%, 680px);
    font-size: clamp(28px, 5vw, 72px);
    color: var(--gold);
    line-height: 1;
    white-space: nowrap;
    text-shadow: 0 0 22px rgba(232, 195, 123, 0.34), 0 2px 18px rgba(0, 0, 0, 0.55);
}

.brand-cat {
    font-size: 22px;
}

.top-nav,
.interior-header nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--gold-soft);
    font-size: 18px;
}

.menu-button {
    width: 58px;
    height: 58px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: grid;
    place-content: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.16);
    cursor: pointer;
}

.menu-button span {
    width: 24px;
    height: 2px;
    background: var(--gold);
}

.arrival {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(320px, 500px);
    align-items: end;
    gap: clamp(24px, 5vw, 76px);
    padding: clamp(28px, 6vh, 76px) 0;
}

.welcome-sign {
    align-self: end;
    width: 100%;
    max-width: min(420px, 90vw);
    padding: clamp(16px, 2.2vw, 24px) clamp(18px, 2.8vw, 28px);
    margin: 0 0 clamp(18px, 5vh, 52px);
    border: 1px solid rgba(232, 195, 123, 0.48);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(51, 29, 12, 0.88), rgba(84, 54, 28, 0.78));
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.32);
    color: #f4dba8;
}

.welcome-sign span,
.welcome-sign b {
    display: block;
}

.welcome-sign span {
    font-size: clamp(22px, 2.4vw, 32px);
}

.welcome-sign b {
    margin-top: 8px;
    font-weight: 400;
    opacity: 0.72;
}

.old-bell-wrap {
    position: fixed;
    left: clamp(620px, 61.4vw, calc(100vw - 260px));
    top: clamp(260px, 46.5vh, 470px);
    width: clamp(64px, 6.2vw, 96px);
    height: clamp(64px, 6.2vw, 96px);
    z-index: 9;
}

.old-bell-wrap p {
    display: block;
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    width: max-content;
    max-width: min(220px, 42vw);
    margin: 0;
    transform: translateX(-50%);
    color: #fff1c4;
    font-size: clamp(14px, 1.5vw, 18px);
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
    pointer-events: none;
}

.old-bell {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    filter: none;
    opacity: 0;
}

.old-bell:hover,
.old-bell:focus-visible {
    outline: none;
}

.old-bell span {
    display: none;
}

.bell-crown {
    position: absolute;
    left: 10px;
    top: 0;
    width: 28px;
    height: 25px;
    border: 2px solid #b88637;
    border-bottom: 0;
    border-radius: 50% 50% 0 0;
}

.bell-body {
    position: absolute;
    left: 4px;
    top: 21px;
    width: 40px;
    height: 35px;
    border-radius: 48% 48% 18% 18%;
    background: radial-gradient(circle at 35% 22%, #ffe9a0, #b87825 48%, #4d2a12 100%);
    border: 1px solid rgba(255, 230, 160, 0.48);
}

.bell-clapper {
    position: absolute;
    left: 20px;
    top: 54px;
    width: 8px;
    height: 15px;
    border-radius: 999px;
    background: #c9903f;
}

.old-bell.ringing {
    animation: bellRing 0.62s ease;
}

.guest-card {
    position: relative;
    width: min(520px, 100%);
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid var(--line);
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 28%),
        var(--glass);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.42),
        inset 0 0 34px rgba(255, 255, 255, 0.08),
        0 0 36px rgba(105, 169, 199, 0.18);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(34px) scale(0.9);
    pointer-events: none;
    transition:
        opacity 0.95s ease,
        visibility 0.95s ease,
        transform 0.95s cubic-bezier(.2,.9,.2,1),
        box-shadow 0.95s ease;
}

.summoned .guest-card {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.48),
        inset 0 0 34px rgba(255, 255, 255, 0.1),
        0 0 52px rgba(140, 210, 244, 0.28),
        0 0 36px rgba(255, 214, 135, 0.22);
}

.guest-card::before,
.guest-card::after {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: 40px;
    border: 1px solid rgba(161, 218, 255, 0.22);
    filter: blur(1px);
    pointer-events: none;
}

.guest-card::after {
    inset: 10px;
    border-color: rgba(232, 195, 123, 0.36);
    border-radius: 24px;
}

.card-glow {
    position: absolute;
    inset: -28px;
    border-radius: 42px;
    background:
        radial-gradient(circle at 82% 12%, rgba(118, 206, 255, 0.34), transparent 18%),
        radial-gradient(circle at 18% 82%, rgba(255, 197, 89, 0.28), transparent 20%);
    filter: blur(14px);
    opacity: 0.78;
    z-index: -1;
}

.card-ornament,
.house-whisper {
    text-align: center;
    color: rgba(255, 231, 178, 0.72);
}

.card-ornament {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 13px;
}

.guest-card h1 {
    margin: 12px 0 30px;
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
    color: #ffe5af;
    text-shadow: 0 0 18px rgba(232, 195, 123, 0.32);
}

.field {
    display: grid;
    gap: 9px;
    margin-bottom: 20px;
    color: #fbe2b0;
    font-size: 17px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 58px;
    border: 1px solid rgba(232, 195, 123, 0.48);
    border-radius: 10px;
    padding: 14px 16px;
    color: #fff4d9;
    background: rgba(8, 14, 16, 0.42);
    outline: none;
    box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.18);
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #ffe2a4;
    box-shadow: 0 0 0 3px rgba(232, 195, 123, 0.15);
}

.field option {
    color: #24170d;
}

.knock-button {
    width: 100%;
    min-height: 66px;
    margin-top: 8px;
    border: 1px solid rgba(255, 232, 174, 0.8);
    border-radius: 14px;
    color: #fff3d1;
    background: linear-gradient(135deg, #8d6d37, #d7a858 48%, #7d5c2d);
    box-shadow: 0 0 28px rgba(232, 195, 123, 0.42);
    cursor: pointer;
    font-size: 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.knock-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 38px rgba(255, 220, 147, 0.58);
}

.house-whisper {
    min-height: 22px;
    margin: 20px 0 0;
}

.house-whisper.error {
    color: #ffd596;
    text-shadow: 0 0 18px rgba(255, 167, 80, 0.35);
}

.home-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    color: rgba(232, 195, 123, 0.78);
    min-width: 0;
}

.scroll-mark {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(232, 195, 123, 0.54);
    border-radius: 50%;
    font-size: 40px;
    animation: gentleFloat 2.8s ease-in-out infinite;
}

.social-dots {
    justify-self: end;
    display: flex;
    gap: 14px;
}

.social-dots span {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(232, 195, 123, 0.64);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.18);
}

.door-opening::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 57% 52%, rgba(255, 213, 136, 0.95), rgba(55, 28, 12, 0.9) 56%, #050302);
    opacity: 0;
    animation: enterGlow 1.3s ease forwards;
    z-index: 30;
    pointer-events: none;
}

.room-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 24% 20%, rgba(232, 159, 77, 0.28), transparent 28%),
        linear-gradient(135deg, #26140d, #0d1116 58%, #241408);
}

.interior-header {
    padding: 28px clamp(20px, 5vw, 70px);
    border-bottom: 1px solid rgba(232, 195, 123, 0.2);
}

.interior-header .brand {
    font-size: clamp(24px, 3vw, 36px);
}

.interior-header nav {
    flex-wrap: wrap;
    font-size: 16px;
}

.door-return,
.warm-link,
.telegram-link,
.rooms-link {
    border: 1px solid rgba(232, 195, 123, 0.5);
    border-radius: 999px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.06);
}

.warm-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    color: #ffe0a2;
}

.room-talk-trigger,
.cat-chat-form button,
.cat-chat-close,
.cat-chat-return {
    font: inherit;
    cursor: pointer;
}

.room-talk-trigger {
    margin-top: 0;
}

.telegram-link {
    color: #ffe0a2;
}

.living-room,
.cat-room-layout {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(34px, 5vw, 76px) 0;
}

.room-copy {
    max-width: 650px;
}

.eyebrow {
    color: var(--gold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.room-copy h1,
.cat-portrait h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 400;
    color: #ffe3a8;
}

.room-copy p,
.cat-portrait p,
.room-details,
.cat-door small {
    color: rgba(255, 235, 199, 0.78);
    line-height: 1.7;
    font-size: 18px;
}

.cat-crossroads {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 46px;
}

.cat-door {
    min-height: 230px;
    padding: 24px;
    border: 1px solid rgba(232, 195, 123, 0.3);
    border-radius: 16px;
    background:
        radial-gradient(circle at 70% 20%, rgba(232, 195, 123, 0.2), transparent 24%),
        rgba(255, 255, 255, 0.055);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.cat-door:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 232, 174, 0.72);
}

.cat-door b {
    display: block;
    margin-top: 18px;
    color: #ffe0a2;
    font-size: 26px;
}

.cat-silhouette,
.large-cat {
    display: block;
    position: relative;
    width: 88px;
    height: 76px;
    border-radius: 50% 50% 46% 46%;
    background: #120d0a;
    filter: drop-shadow(0 0 18px rgba(232, 195, 123, 0.32));
}

.cat-silhouette::before,
.cat-silhouette::after,
.large-cat::before,
.large-cat::after {
    content: "";
    position: absolute;
}

.cat-silhouette::before,
.large-cat::before {
    left: 18px;
    top: -22px;
    width: 54px;
    height: 42px;
    border-radius: 48% 48% 42% 42%;
    background: inherit;
    clip-path: polygon(0 100%, 10% 18%, 34% 46%, 50% 26%, 68% 48%, 90% 18%, 100% 100%);
}

.cat-silhouette::after,
.large-cat::after {
    right: -38px;
    bottom: 16px;
    width: 58px;
    height: 16px;
    border-radius: 999px;
    border-top: 12px solid #120d0a;
    transform: rotate(-28deg);
}

.cat-room-layout {
    display: grid;
    grid-template-columns: minmax(280px, 460px) 1fr;
    gap: clamp(28px, 6vw, 86px);
    align-items: center;
}

.cat-portrait,
.room-details {
    border: 1px solid rgba(232, 195, 123, 0.26);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
    padding: clamp(28px, 4vw, 46px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.large-cat {
    width: 170px;
    height: 142px;
    margin-bottom: 34px;
    background: #11100e;
    animation: catBreathe 3.4s ease-in-out infinite;
}

.large-cat::before {
    left: 36px;
    top: -46px;
    width: 104px;
    height: 80px;
}

.large-cat::after {
    right: -72px;
    bottom: 32px;
    width: 104px;
    height: 32px;
    border-top-width: 22px;
}

.large-cat.sleepy {
    background: #1c1b20;
}

.large-cat.bright {
    background: #2d1a08;
}

.room-details h2 {
    margin-top: 0;
    color: #ffe0a2;
    font-size: 34px;
    font-weight: 400;
}

.room-details li {
    margin-bottom: 14px;
}

.room-role {
    margin: 0 0 10px;
    color: var(--gold);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 13px;
}

.room-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.room-actions .warm-link {
    margin-top: 0;
}

.liza-room-panel,
.cheshir-room-panel,
.cook-room-panel,
.cat-gpt-room-panel,
.astra-room-panel,
.mera-room-panel,
.kuper-room-panel {
    transition: opacity 0.25s ease, filter 0.25s ease;
}

body.chat-open .liza-room-panel,
body.chat-open .cheshir-room-panel,
body.chat-open .cook-room-panel,
body.chat-open .cat-gpt-room-panel,
body.chat-open .astra-room-panel,
body.chat-open .mera-room-panel,
body.chat-open .kuper-room-panel {
    opacity: 0.16;
    filter: blur(3px);
    pointer-events: none;
}

.cat-chat-panel {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 16px;
    background:
        radial-gradient(circle at center, rgba(255, 210, 140, 0.1), transparent 34%),
        rgba(4, 2, 1, 0.56);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.cat-chat-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cat-chat-dialog {
    position: relative;
    width: min(620px, 100%);
    max-height: calc(100svh - 32px);
    padding: clamp(18px, 3vw, 30px);
    display: grid;
    gap: 11px;
    border: 1px solid rgba(230, 190, 120, 0.34);
    border-radius: 24px;
    background: rgba(18, 8, 4, 0.5);
    backdrop-filter: blur(14px);
    box-shadow:
        0 0 44px rgba(255, 180, 90, 0.2),
        inset 0 0 24px rgba(255, 220, 150, 0.06);
}

.cat-chat-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(230, 190, 120, 0.32);
    border-radius: 50%;
    color: #ffe0a2;
    background: rgba(255, 255, 255, 0.06);
    font-size: 24px;
    line-height: 1;
}

.cat-chat-dialog h2 {
    margin: 0;
    color: #ffe3a8;
    font-size: clamp(30px, 4.4vw, 48px);
    font-weight: 400;
    line-height: 1;
}

.cat-chat-whisper {
    margin: 0;
    max-width: 620px;
    color: rgba(255, 235, 199, 0.82);
    font-size: 15px;
    line-height: 1.45;
}

.cat-chat-messages {
    height: clamp(180px, 28svh, 260px);
    padding: 12px;
    display: grid;
    align-content: start;
    gap: 10px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(230, 190, 120, 0.38) rgba(5, 3, 2, 0.2);
    scrollbar-width: thin;
    border: 1px solid rgba(230, 190, 120, 0.18);
    border-radius: 16px;
    background: rgba(5, 3, 2, 0.24);
}

.cat-chat-messages::-webkit-scrollbar {
    width: 8px;
}

.cat-chat-messages::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(5, 3, 2, 0.2);
}

.cat-chat-messages::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(230, 190, 120, 0.38);
}

.cat-chat-message {
    width: fit-content;
    max-width: min(460px, 75%);
    margin: 0;
    padding: 9px 11px;
    border: 1px solid rgba(230, 190, 120, 0.2);
    border-radius: 16px;
    color: rgba(255, 239, 214, 0.92);
    background: rgba(12, 8, 6, 0.5);
    justify-self: start;
    line-height: 1.45;
}

.cat-chat-message.is-user {
    justify-self: end;
    border-color: rgba(255, 214, 140, 0.44);
    background: rgba(86, 48, 18, 0.54);
}

.cat-chat-message.is-cat {
    justify-self: start;
    border-color: rgba(230, 190, 120, 0.18);
    background: rgba(8, 5, 4, 0.58);
}

.cat-chat-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.cat-chat-form input {
    min-width: 0;
    min-height: 44px;
    border: 1px solid rgba(230, 190, 120, 0.32);
    border-radius: 999px;
    padding: 0 16px;
    color: #fff0d2;
    background: rgba(255, 255, 255, 0.06);
    outline: none;
}

.cat-chat-form input:focus {
    border-color: rgba(255, 214, 140, 0.72);
    box-shadow: 0 0 0 3px rgba(255, 190, 90, 0.12);
}

.cat-chat-form button,
.cat-chat-return {
    min-height: 44px;
    border: 1px solid rgba(230, 190, 120, 0.42);
    border-radius: 999px;
    padding: 0 18px;
    color: #ffe0a2;
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.cat-chat-form button:hover,
.cat-chat-return:hover,
.cat-chat-close:hover {
    border-color: rgba(255, 214, 140, 0.8);
    box-shadow: 0 0 22px rgba(255, 190, 90, 0.22);
    transform: translateY(-2px);
}

.cat-chat-return {
    justify-self: start;
}

.library-room {
    background:
        radial-gradient(circle at 20% 20%, rgba(185, 123, 68, 0.24), transparent 24%),
        linear-gradient(135deg, #21100b, #11141a 60%, #2f1d11);
}

.attic-room {
    background:
        radial-gradient(circle at 78% 18%, rgba(143, 169, 220, 0.26), transparent 28%),
        linear-gradient(135deg, #10131d, #24180f 60%, #0b0d12);
}

.garden-room {
    background:
        radial-gradient(circle at 70% 25%, rgba(126, 190, 95, 0.24), transparent 26%),
        linear-gradient(135deg, #11190f, #22150e 58%, #08110c);
}

/* Комната Лизы */
.liza-page {
    min-height: 100svh;
    overflow-x: hidden;
    background: #100905;
}

.liza-room-scene {
    position: relative;
    min-height: 100svh;
    isolation: isolate;
    overflow: hidden;
}

.liza-room-bg,
.liza-room-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.liza-room-bg {
    background-image: url("../assets/liza-room.png");
    background-repeat: no-repeat;
}

.liza-room-bg-blur {
    z-index: -4;
    background-size: cover;
    background-position: center;
    filter: blur(18px);
    transform: scale(1.07);
    opacity: 0.72;
}

.liza-room-bg-main {
    z-index: -3;
    background-size: contain;
    background-position: center;
}

.liza-room-vignette {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(8, 3, 1, 0.46), rgba(8, 3, 1, 0.08) 38%, rgba(8, 3, 1, 0.42)),
        linear-gradient(0deg, rgba(7, 3, 1, 0.52), transparent 42%, rgba(7, 3, 1, 0.26));
}

.liza-room-header {
    position: relative;
    z-index: 2;
    padding: 18px clamp(18px, 4vw, 56px);
    background: rgba(18, 8, 4, 0.2);
    backdrop-filter: blur(8px);
}

.liza-room-header .brand {
    font-size: clamp(24px, 2.8vw, 36px);
}

.liza-room-header nav {
    gap: 12px;
}

.liza-room-main {
    position: relative;
    z-index: 1;
    width: min(1220px, calc(100% - 32px));
    min-height: calc(100svh - 82px);
    margin: 0 auto;
    padding: clamp(28px, 5vh, 64px) 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.liza-room-panel {
    width: min(520px, 100%);
    padding: clamp(24px, 3.3vw, 42px);
    border: 1px solid rgba(230, 190, 120, 0.32);
    border-radius: 18px;
    background: rgba(18, 8, 4, 0.34);
    backdrop-filter: blur(8px);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
}

.liza-room-panel h1 {
    margin: 4px 0 12px;
    color: #ffe3a8;
    font-size: clamp(44px, 5vw, 72px);
    font-weight: 400;
    line-height: 1;
}

.liza-room-panel h2 {
    margin: 0 0 16px;
    color: #ffe0a2;
    font-size: clamp(24px, 2.3vw, 34px);
    font-weight: 400;
}

.liza-room-panel p {
    max-width: 620px;
    color: rgba(255, 235, 199, 0.84);
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.65;
}

.liza-room-panel .room-actions {
    margin-top: 26px;
}

.liza-page .door-return,
.liza-page .telegram-link,
.liza-page .warm-link {
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.liza-page .door-return:hover,
.liza-page .telegram-link:hover,
.liza-page .warm-link:hover {
    background: rgba(32, 16, 8, 0.5);
    border-color: rgba(255, 214, 140, 0.78);
    box-shadow: 0 0 22px rgba(255, 190, 90, 0.22);
    transform: translateY(-1px);
}

/* Комната ЧешИРа */
.cheshir-page {
    min-height: 100svh;
    overflow-x: hidden;
    background: #030711;
}

.cheshir-room-scene {
    position: relative;
    min-height: 100svh;
    isolation: isolate;
    overflow: hidden;
}

.cheshir-room-bg,
.cheshir-room-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.cheshir-room-bg {
    background-image: url("../assets/cheshir-room-bg.png");
    background-repeat: no-repeat;
}

.cheshir-room-bg-blur {
    z-index: -4;
    background-size: cover;
    background-position: center center;
    filter: blur(18px);
    transform: scale(1.07);
    opacity: 0.76;
}

.cheshir-room-bg-main {
    z-index: -3;
    background-size: contain;
    background-position: center center;
}

.cheshir-room-vignette {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(0, 0, 8, 0.62), rgba(0, 0, 8, 0.25), rgba(0, 0, 8, 0.62)),
        radial-gradient(circle at 62% 36%, rgba(82, 169, 255, 0.16), transparent 18%),
        linear-gradient(0deg, rgba(0, 2, 10, 0.58), transparent 42%, rgba(0, 2, 10, 0.24));
}

.cheshir-room-header {
    position: relative;
    z-index: 2;
    padding: 18px clamp(18px, 4vw, 56px);
    background: rgba(5, 8, 18, 0.24);
    backdrop-filter: blur(10px);
}

.cheshir-room-header .brand {
    color: #dbeaff;
    font-size: clamp(24px, 2.8vw, 36px);
    text-shadow: 0 0 24px rgba(80, 150, 255, 0.42), 0 2px 18px rgba(0, 0, 0, 0.55);
}

.cheshir-room-header nav {
    gap: 12px;
}

.cheshir-room-main {
    position: relative;
    z-index: 1;
    width: min(1220px, calc(100% - 32px));
    min-height: calc(100svh - 82px);
    margin: 0 auto;
    padding: clamp(28px, 5vh, 64px) 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.cheshir-room-panel {
    width: min(560px, 100%);
    padding: clamp(24px, 3.3vw, 44px);
    border: 1px solid rgba(150, 190, 255, 0.35);
    border-radius: 24px;
    background: rgba(5, 8, 18, 0.42);
    backdrop-filter: blur(10px);
    box-shadow:
        0 0 32px rgba(80, 150, 255, 0.18),
        inset 0 0 18px rgba(180, 210, 255, 0.05);
}

.cheshir-room-panel .room-role {
    color: rgba(184, 213, 255, 0.86);
}

.cheshir-room-panel h1 {
    margin: 4px 0 12px;
    color: #dbeaff;
    font-size: clamp(48px, 7vw, 96px);
    font-weight: 400;
    line-height: 1;
    text-shadow: 0 0 26px rgba(81, 175, 255, 0.34);
}

.cheshir-room-panel h2 {
    margin: 0 0 16px;
    color: #f3d99b;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;
}

.cheshir-room-panel p {
    max-width: 620px;
    color: rgba(225, 237, 255, 0.84);
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.68;
}

.cheshir-room-panel .room-actions {
    margin-top: 28px;
}

.cheshir-page .door-return,
.cheshir-page .telegram-link,
.cheshir-page .warm-link {
    border-color: rgba(150, 190, 255, 0.42);
    color: #e5f0ff;
    background: rgba(255, 232, 174, 0.04);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.cheshir-page .door-return:hover,
.cheshir-page .telegram-link:hover,
.cheshir-page .warm-link:hover {
    background: rgba(80, 130, 210, 0.14);
    border-color: rgba(195, 222, 255, 0.78);
    box-shadow: 0 0 24px rgba(80, 150, 255, 0.24), 0 0 12px rgba(255, 205, 120, 0.1);
    transform: translateY(-2px);
}

/* Кухня КухмАстера */
.cook-page {
    min-height: 100svh;
    overflow-x: hidden;
    background: #170904;
}

.cook-room-scene {
    position: relative;
    min-height: 100svh;
    isolation: isolate;
    overflow: hidden;
}

.cook-room-bg,
.cook-room-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.cook-room-bg {
    background-image: url("../assets/cook-room-bg.png");
    background-repeat: no-repeat;
}

.cook-room-bg-blur {
    z-index: -4;
    background-size: cover;
    background-position: center center;
    filter: blur(18px);
    transform: scale(1.07);
    opacity: 0.74;
}

.cook-room-bg-main {
    z-index: -3;
    background-size: contain;
    background-position: center center;
}

.cook-room-vignette {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(16, 7, 2, 0.62), rgba(16, 7, 2, 0.22), rgba(16, 7, 2, 0.56)),
        radial-gradient(circle at 76% 54%, rgba(255, 142, 38, 0.16), transparent 20%),
        linear-gradient(0deg, rgba(15, 6, 2, 0.52), transparent 44%, rgba(15, 6, 2, 0.18));
}

.cook-room-header {
    position: relative;
    z-index: 2;
    padding: 18px clamp(18px, 4vw, 56px);
    background: rgba(32, 14, 4, 0.22);
    backdrop-filter: blur(10px);
}

.cook-room-header .brand {
    color: #ffe1a8;
    font-size: clamp(24px, 2.8vw, 36px);
    text-shadow: 0 0 24px rgba(255, 150, 50, 0.38), 0 2px 18px rgba(0, 0, 0, 0.55);
}

.cook-room-header nav {
    gap: 12px;
}

.cook-room-main {
    position: relative;
    z-index: 1;
    width: min(1220px, calc(100% - 32px));
    min-height: calc(100svh - 82px);
    margin: 0 auto;
    padding: clamp(28px, 5vh, 64px) 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.cook-room-panel {
    width: min(560px, 100%);
    padding: clamp(24px, 3.3vw, 44px);
    border: 1px solid rgba(240, 190, 110, 0.36);
    border-radius: 24px;
    background: rgba(32, 14, 4, 0.44);
    backdrop-filter: blur(10px);
    box-shadow:
        0 0 34px rgba(255, 150, 50, 0.18),
        inset 0 0 22px rgba(255, 220, 150, 0.06);
}

.cook-room-panel .room-role {
    color: rgba(255, 214, 148, 0.9);
}

.cook-room-panel h1 {
    margin: 4px 0 12px;
    color: #ffe0a4;
    font-size: clamp(48px, 7vw, 92px);
    font-weight: 400;
    line-height: 1;
    text-shadow: 0 0 24px rgba(255, 150, 50, 0.3);
}

.cook-room-panel h2 {
    margin: 0 0 16px;
    color: #ffd28a;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 400;
}

.cook-room-panel p {
    max-width: 620px;
    color: rgba(255, 235, 199, 0.86);
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.68;
}

.cook-room-panel .room-actions {
    margin-top: 28px;
}

.cook-page .door-return,
.cook-page .telegram-link,
.cook-page .warm-link {
    border-color: rgba(240, 190, 110, 0.46);
    color: #ffe5b6;
    background: rgba(255, 232, 174, 0.05);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.cook-page .door-return:hover,
.cook-page .telegram-link:hover,
.cook-page .warm-link:hover {
    background: rgba(96, 42, 10, 0.22);
    border-color: rgba(255, 214, 140, 0.82);
    box-shadow: 0 0 24px rgba(255, 150, 50, 0.26), 0 0 12px rgba(255, 220, 150, 0.12);
    transform: translateY(-2px);
}

/* Кабинет Кота GPT */
.cat-gpt-page {
    min-height: 100svh;
    overflow-x: hidden;
    background: #080604;
}

.cat-gpt-room-scene {
    position: relative;
    min-height: 100svh;
    isolation: isolate;
    overflow: hidden;
}

.cat-gpt-room-bg,
.cat-gpt-room-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.cat-gpt-room-bg {
    background-image: url("../assets/cat-gpt-room-bg.png");
    background-repeat: no-repeat;
}

.cat-gpt-room-bg-blur {
    z-index: -4;
    background-size: cover;
    background-position: center center;
    filter: blur(18px);
    transform: scale(1.07);
    opacity: 0.74;
}

.cat-gpt-room-bg-main {
    z-index: -3;
    background-size: contain;
    background-position: center center;
}

.cat-gpt-room-vignette {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(5, 4, 3, 0.62), rgba(5, 4, 3, 0.22), rgba(5, 4, 3, 0.56)),
        radial-gradient(circle at 82% 58%, rgba(255, 171, 76, 0.16), transparent 20%),
        radial-gradient(circle at 78% 34%, rgba(90, 170, 255, 0.12), transparent 18%),
        linear-gradient(0deg, rgba(4, 3, 3, 0.52), transparent 44%, rgba(4, 3, 3, 0.18));
}

.cat-gpt-room-header {
    position: relative;
    z-index: 2;
    padding: 18px clamp(18px, 4vw, 56px);
    background: rgba(10, 8, 6, 0.24);
    backdrop-filter: blur(10px);
}

.cat-gpt-room-header .brand {
    color: #ffe2ad;
    font-size: clamp(24px, 2.8vw, 36px);
    text-shadow: 0 0 22px rgba(255, 180, 90, 0.34), 0 0 16px rgba(110, 180, 255, 0.16);
}

.cat-gpt-room-header nav {
    gap: 12px;
}

.cat-gpt-room-main {
    position: relative;
    z-index: 1;
    width: min(1220px, calc(100% - 32px));
    min-height: calc(100svh - 82px);
    margin: 0 auto;
    padding: clamp(28px, 5vh, 64px) 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.cat-gpt-room-panel {
    width: min(580px, 100%);
    padding: clamp(24px, 3.3vw, 44px);
    border: 1px solid rgba(230, 190, 120, 0.34);
    border-radius: 24px;
    background: rgba(10, 8, 6, 0.46);
    backdrop-filter: blur(10px);
    box-shadow:
        0 0 34px rgba(255, 180, 90, 0.16),
        inset 0 0 22px rgba(140, 190, 255, 0.05);
}

.cat-gpt-room-panel .room-role {
    color: rgba(255, 215, 154, 0.9);
}

.cat-gpt-room-panel h1 {
    margin: 4px 0 12px;
    color: #ffe1aa;
    font-size: clamp(48px, 7vw, 92px);
    font-weight: 400;
    line-height: 1;
    text-shadow: 0 0 22px rgba(255, 180, 90, 0.3), 0 0 18px rgba(110, 180, 255, 0.16);
}

.cat-gpt-room-panel h2 {
    margin: 0 0 16px;
    color: #cfe5ff;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 400;
}

.cat-gpt-room-panel p {
    max-width: 620px;
    color: rgba(255, 236, 206, 0.86);
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.68;
}

.cat-gpt-room-panel .room-actions {
    margin-top: 28px;
}

.cat-gpt-page .door-return,
.cat-gpt-page .telegram-link,
.cat-gpt-page .warm-link {
    border-color: rgba(230, 190, 120, 0.42);
    color: #ffe8bd;
    background: rgba(140, 190, 255, 0.05);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.cat-gpt-page .door-return:hover,
.cat-gpt-page .telegram-link:hover,
.cat-gpt-page .warm-link:hover {
    background: rgba(76, 91, 118, 0.18);
    border-color: rgba(255, 214, 140, 0.82);
    box-shadow: 0 0 22px rgba(255, 180, 90, 0.22), 0 0 18px rgba(110, 180, 255, 0.14);
    transform: translateY(-2px);
}

/* Комната Астры */
.astra-page {
    min-height: 100svh;
    overflow-x: hidden;
    background: #100016;
}

.astra-room-scene {
    position: relative;
    min-height: 100svh;
    isolation: isolate;
    overflow: hidden;
}

.astra-room-bg,
.astra-room-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.astra-room-bg {
    background-image: url("../assets/astra-room-bg.png");
    background-repeat: no-repeat;
}

.astra-room-bg-blur {
    z-index: -4;
    background-size: cover;
    background-position: center center;
    filter: blur(18px);
    transform: scale(1.07);
    opacity: 0.76;
}

.astra-room-bg-main {
    z-index: -3;
    background-size: contain;
    background-position: center center;
}

.astra-room-vignette {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(8, 0, 14, 0.64), rgba(8, 0, 14, 0.22), rgba(8, 0, 14, 0.58)),
        radial-gradient(circle at 73% 40%, rgba(145, 70, 255, 0.18), transparent 20%),
        radial-gradient(circle at 84% 62%, rgba(255, 174, 78, 0.12), transparent 18%),
        linear-gradient(0deg, rgba(8, 0, 14, 0.54), transparent 44%, rgba(8, 0, 14, 0.2));
}

.astra-room-header {
    position: relative;
    z-index: 2;
    padding: 18px clamp(18px, 4vw, 56px);
    background: rgba(18, 6, 26, 0.24);
    backdrop-filter: blur(10px);
}

.astra-room-header .brand {
    color: #ead7ff;
    font-size: clamp(24px, 2.8vw, 36px);
    text-shadow: 0 0 24px rgba(145, 70, 255, 0.38), 0 0 16px rgba(255, 210, 150, 0.16);
}

.astra-room-header nav {
    gap: 12px;
}

.astra-room-main {
    position: relative;
    z-index: 1;
    width: min(1220px, calc(100% - 32px));
    min-height: calc(100svh - 82px);
    margin: 0 auto;
    padding: clamp(28px, 5vh, 64px) 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.astra-room-panel {
    width: min(580px, 100%);
    padding: clamp(24px, 3.3vw, 44px);
    border: 1px solid rgba(210, 160, 255, 0.34);
    border-radius: 24px;
    background: rgba(18, 6, 26, 0.46);
    backdrop-filter: blur(10px);
    box-shadow:
        0 0 34px rgba(145, 70, 255, 0.2),
        inset 0 0 22px rgba(255, 210, 150, 0.06);
}

.astra-room-panel .room-role {
    color: rgba(226, 190, 255, 0.92);
}

.astra-room-panel h1 {
    margin: 4px 0 12px;
    color: #ead7ff;
    font-size: clamp(52px, 7vw, 96px);
    font-weight: 400;
    line-height: 1;
    text-shadow: 0 0 26px rgba(145, 70, 255, 0.38), 0 0 16px rgba(255, 210, 150, 0.14);
}

.astra-room-panel h2 {
    margin: 0 0 16px;
    color: #ffdca6;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;
}

.astra-room-panel p {
    max-width: 620px;
    color: rgba(244, 228, 255, 0.86);
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.68;
}

.astra-room-panel .room-actions {
    margin-top: 28px;
}

.astra-page .door-return,
.astra-page .telegram-link,
.astra-page .warm-link {
    border-color: rgba(210, 160, 255, 0.42);
    color: #f3e2ff;
    background: rgba(255, 210, 150, 0.05);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.astra-page .door-return:hover,
.astra-page .telegram-link:hover,
.astra-page .warm-link:hover {
    background: rgba(74, 26, 96, 0.22);
    border-color: rgba(235, 196, 255, 0.82);
    box-shadow: 0 0 24px rgba(145, 70, 255, 0.28), 0 0 14px rgba(255, 210, 150, 0.14);
    transform: translateY(-2px);
}

/* Комната Меры */
.mera-page {
    min-height: 100svh;
    overflow-x: hidden;
    background: #0f0c06;
}

.mera-room-scene {
    position: relative;
    min-height: 100svh;
    isolation: isolate;
    overflow: hidden;
}

.mera-room-bg,
.mera-room-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.mera-room-bg {
    background-image: url("../assets/mera-room-bg.png");
    background-repeat: no-repeat;
}

.mera-room-bg-blur {
    z-index: -4;
    background-size: cover;
    background-position: center center;
    filter: blur(18px);
    transform: scale(1.07);
    opacity: 0.74;
}

.mera-room-bg-main {
    z-index: -3;
    background-size: contain;
    background-position: center center;
}

.mera-room-vignette {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(12, 8, 5, 0.62), rgba(12, 8, 5, 0.22), rgba(12, 8, 5, 0.56)),
        radial-gradient(circle at 75% 44%, rgba(120, 160, 90, 0.16), transparent 20%),
        radial-gradient(circle at 24% 62%, rgba(255, 194, 96, 0.12), transparent 18%),
        linear-gradient(0deg, rgba(12, 8, 5, 0.5), transparent 44%, rgba(12, 8, 5, 0.16));
}

.mera-room-header {
    position: relative;
    z-index: 2;
    padding: 18px clamp(18px, 4vw, 56px);
    background: rgba(20, 14, 8, 0.22);
    backdrop-filter: blur(10px);
}

.mera-room-header .brand {
    color: #e8f2c4;
    font-size: clamp(24px, 2.8vw, 36px);
    text-shadow: 0 0 22px rgba(120, 160, 90, 0.34), 0 0 16px rgba(255, 220, 150, 0.18);
}

.mera-room-header nav {
    gap: 12px;
}

.mera-room-main {
    position: relative;
    z-index: 1;
    width: min(1220px, calc(100% - 32px));
    min-height: calc(100svh - 82px);
    margin: 0 auto;
    padding: clamp(28px, 5vh, 64px) 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.mera-room-panel {
    width: min(580px, 100%);
    padding: clamp(24px, 3.3vw, 44px);
    border: 1px solid rgba(180, 220, 150, 0.28);
    border-radius: 24px;
    background: rgba(20, 14, 8, 0.44);
    backdrop-filter: blur(10px);
    box-shadow:
        0 0 34px rgba(120, 160, 90, 0.16),
        inset 0 0 22px rgba(255, 220, 150, 0.05);
}

.mera-room-panel .room-role {
    color: rgba(211, 235, 178, 0.92);
}

.mera-room-panel h1 {
    margin: 4px 0 12px;
    color: #e8f2c4;
    font-size: clamp(48px, 7vw, 92px);
    font-weight: 400;
    line-height: 1;
    text-shadow: 0 0 22px rgba(120, 160, 90, 0.3), 0 0 16px rgba(255, 220, 150, 0.14);
}

.mera-room-panel h2 {
    margin: 0 0 16px;
    color: #ffdca6;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 400;
}

.mera-room-panel p {
    max-width: 620px;
    color: rgba(244, 236, 210, 0.86);
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.68;
}

.mera-room-panel .room-actions {
    margin-top: 28px;
}

.mera-page .door-return,
.mera-page .telegram-link,
.mera-page .warm-link {
    border-color: rgba(180, 220, 150, 0.38);
    color: #edf4ce;
    background: rgba(255, 220, 150, 0.05);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.mera-page .door-return:hover,
.mera-page .telegram-link:hover,
.mera-page .warm-link:hover {
    background: rgba(56, 75, 34, 0.24);
    border-color: rgba(213, 242, 178, 0.74);
    box-shadow: 0 0 24px rgba(120, 160, 90, 0.24), 0 0 14px rgba(255, 220, 150, 0.14);
    transform: translateY(-2px);
}

/* Лавка Купера */
.kuper-page {
    min-height: 100svh;
    overflow-x: hidden;
    background: #140904;
}

.kuper-room-scene {
    position: relative;
    min-height: 100svh;
    isolation: isolate;
    overflow: hidden;
}

.kuper-room-bg,
.kuper-room-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.kuper-room-bg {
    background-image: url("../assets/kuper-room-bg.png");
    background-repeat: no-repeat;
}

.kuper-room-bg-blur {
    z-index: -4;
    background-size: cover;
    background-position: center center;
    filter: blur(18px);
    transform: scale(1.07);
    opacity: 0.74;
}

.kuper-room-bg-main {
    z-index: -3;
    background-size: contain;
    background-position: center center;
}

.kuper-room-vignette {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(10, 7, 4, 0.62), rgba(10, 7, 4, 0.22), rgba(10, 7, 4, 0.56)),
        radial-gradient(circle at 74% 42%, rgba(255, 150, 54, 0.16), transparent 20%),
        radial-gradient(circle at 19% 50%, rgba(255, 202, 112, 0.12), transparent 18%),
        linear-gradient(0deg, rgba(10, 7, 4, 0.52), transparent 44%, rgba(10, 7, 4, 0.18));
}

.kuper-room-header {
    position: relative;
    z-index: 2;
    padding: 18px clamp(18px, 4vw, 56px);
    background: rgba(32, 14, 4, 0.24);
    backdrop-filter: blur(10px);
}

.kuper-room-header .brand {
    color: #ffe0a4;
    font-size: clamp(24px, 2.8vw, 36px);
    text-shadow: 0 0 24px rgba(255, 150, 54, 0.34), 0 2px 18px rgba(0, 0, 0, 0.55);
}

.kuper-room-header nav {
    gap: 12px;
}

.kuper-room-main {
    position: relative;
    z-index: 1;
    width: min(1220px, calc(100% - 32px));
    min-height: calc(100svh - 82px);
    margin: 0 auto;
    padding: clamp(28px, 5vh, 64px) 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.kuper-room-panel {
    width: min(580px, 100%);
    padding: clamp(24px, 3.3vw, 44px);
    border: 1px solid rgba(220, 180, 110, 0.34);
    border-radius: 24px;
    background: rgba(20, 11, 7, 0.46);
    backdrop-filter: blur(10px);
    box-shadow:
        0 0 34px rgba(255, 170, 90, 0.16),
        inset 0 0 22px rgba(255, 220, 150, 0.05);
}

.kuper-room-panel .room-role {
    color: rgba(255, 216, 151, 0.92);
}

.kuper-room-panel h1 {
    margin: 4px 0 12px;
    color: #ffe0a4;
    font-size: clamp(48px, 7vw, 92px);
    font-weight: 400;
    line-height: 1;
    text-shadow: 0 0 24px rgba(255, 150, 54, 0.32);
}

.kuper-room-panel h2 {
    margin: 0 0 16px;
    color: #ffd08a;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 400;
}

.kuper-room-panel p {
    max-width: 620px;
    color: rgba(255, 235, 199, 0.86);
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.68;
}

.kuper-room-panel .room-actions {
    margin-top: 28px;
}

.kuper-page .door-return,
.kuper-page .telegram-link,
.kuper-page .warm-link {
    border-color: rgba(230, 180, 105, 0.42);
    color: #ffe5b6;
    background: rgba(255, 220, 150, 0.05);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.kuper-page .door-return:hover,
.kuper-page .telegram-link:hover,
.kuper-page .warm-link:hover {
    background: rgba(96, 42, 10, 0.24);
    border-color: rgba(255, 214, 140, 0.82);
    box-shadow: 0 0 24px rgba(255, 150, 54, 0.26), 0 0 14px rgba(255, 220, 150, 0.14);
    transform: translateY(-2px);
}

/* Гостиная Кошкиного Дома */
.living-page {
    min-height: 100svh;
    background: #090604;
    color: #f8e7c2;
}

.living-page::before,
.living-page::after,
.living-room::before,
.living-room::after {
    display: none;
}

.living-room-scene {
    position: relative;
    min-height: 100svh;
    overflow-x: hidden;
    isolation: isolate;
    background: #080403;
}

.room-bg-blur,
.room-bg,
.room-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: url("../assets/living-room-bg.png");
    background-repeat: no-repeat;
}

.room-bg-blur {
    z-index: -3;
    background-size: cover;
    background-position: center;
    filter: blur(18px);
    transform: scale(1.08);
    opacity: 0.45;
}

.room-bg {
    z-index: -2;
    background-size: contain;
    background-position: center top;
    opacity: 1;
}

.room-vignette {
    z-index: -1;
    background-image:
        linear-gradient(90deg, rgba(5, 2, 1, 0.55), rgba(5, 2, 1, 0.25), rgba(5, 2, 1, 0.55)),
        radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.3) 76%, rgba(0, 0, 0, 0.54) 100%);
    background-size: cover;
    background:
        linear-gradient(90deg, rgba(5, 2, 1, 0.55), rgba(5, 2, 1, 0.25), rgba(5, 2, 1, 0.55)),
        radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.3) 76%, rgba(0, 0, 0, 0.54) 100%);
}

.living-page .interior-header {
    position: relative;
    z-index: 2;
    justify-content: flex-end;
    padding: 18px clamp(20px, 4vw, 56px);
    background: rgba(9, 7, 7, 0.22);
    backdrop-filter: blur(10px);
}

.living-page .living-room {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    padding: clamp(26px, 5vh, 56px) 0 30px;
}

.living-page .living-hero {
    display: block;
    max-width: 760px;
}

.living-page .room-copy h1 {
    max-width: 720px;
    font-size: clamp(34px, 4.5vw, 64px);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.living-page .room-copy p {
    max-width: 620px;
    font-size: clamp(17px, 1.8vw, 21px);
    line-height: 1.55;
}

.living-page .cat-crossroads {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: 928px;
    margin-top: clamp(22px, 4vh, 34px);
    gap: 16px;
}

.living-page .cat-door {
    min-height: 168px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid rgba(230, 190, 120, 0.28);
    border-radius: 14px 14px 10px 10px;
    background: rgba(18, 8, 4, 0.26);
    backdrop-filter: blur(6px);
    box-shadow: none;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.living-page .cat-door:hover {
    transform: translateY(-4px);
    background: rgba(32, 16, 8, 0.52);
    border-color: rgba(255, 214, 140, 0.8);
    box-shadow:
        0 0 26px rgba(255, 190, 90, 0.26),
        inset 0 0 18px rgba(255, 220, 150, 0.08);
}

.living-page .cat-door b {
    margin-top: 14px;
    font-size: 22px;
}

.cat-room-role {
    margin-top: 3px;
    color: rgba(232, 195, 123, 0.9);
    font-size: 13px;
    line-height: 1.3;
}

.living-page .cat-door small {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.45;
}

.room-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(232, 195, 123, 0.5);
    border-radius: 50%;
    color: rgba(255, 223, 157, 0.82);
    background: rgba(255, 255, 255, 0.035);
    font-size: 24px;
    line-height: 1;
    box-shadow: inset 0 0 14px rgba(255, 220, 152, 0.06);
}

.cat-room-direction {
    margin-top: auto;
    padding-top: 18px;
    color: #ffe4a7;
    font-size: 15px;
    line-height: 1.35;
}

@media (max-width: 1024px) {
    .home-page {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .home-shell {
        min-height: 100svh;
        padding: clamp(16px, 3.4vw, 34px);
    }

    .time-bg {
        background-position: center center;
    }

    .home-shell::before {
        inset: 8px;
        border-radius: 18px;
    }

    .arrival {
        grid-template-columns: minmax(240px, 1fr) minmax(300px, 430px);
        gap: 28px;
        padding: clamp(34px, 8vh, 70px) 0;
    }

    .welcome-sign {
        margin-bottom: 22px;
    }

    .old-bell-wrap {
        left: clamp(520px, 61vw, calc(100vw - 190px));
        top: clamp(245px, 45vh, 420px);
        width: 76px;
        height: 76px;
    }

    .cat-room-layout {
        grid-template-columns: 1fr;
    }

    .liza-room-main {
        align-items: flex-end;
    }

    .liza-room-panel {
        width: min(480px, 100%);
    }

    .cheshir-room-main {
        align-items: flex-end;
    }

    .cheshir-room-panel {
        width: min(500px, 100%);
    }

    .cook-room-main {
        align-items: flex-end;
    }

    .cook-room-panel {
        width: min(500px, 100%);
    }

    .cat-gpt-room-main {
        align-items: flex-end;
    }

    .cat-gpt-room-panel {
        width: min(520px, 100%);
    }

    .astra-room-main {
        align-items: flex-end;
    }

    .astra-room-panel {
        width: min(520px, 100%);
    }

    .mera-room-main {
        align-items: flex-end;
    }

    .mera-room-panel {
        width: min(520px, 100%);
    }

    .kuper-room-main {
        align-items: flex-end;
    }

    .kuper-room-panel {
        width: min(520px, 100%);
    }
}

@media (max-width: 768px) {
    .arrival {
        grid-template-columns: 1fr;
        min-height: auto;
        align-items: center;
        padding: clamp(32px, 7vh, 64px) 0 86px;
    }

    .old-bell-wrap {
        position: relative;
        left: auto;
        top: auto;
        justify-self: center;
        width: 96px;
        height: 56px;
        margin: 4px auto 20px;
        order: 2;
    }

    .old-bell-wrap p {
        position: static;
        transform: none;
        width: auto;
        max-width: 100%;
        padding: 13px 20px;
        border: 1px solid rgba(232, 195, 123, 0.52);
        border-radius: 999px;
        background: rgba(9, 15, 19, 0.46);
        backdrop-filter: blur(8px);
        font-size: 16px;
        pointer-events: auto;
    }

    .old-bell {
        opacity: 1;
    }

    .guest-card {
        margin: 0 auto;
        grid-row: 2;
        position: fixed;
        left: 18px;
        right: 18px;
        top: 50%;
        width: auto;
        max-height: calc(100svh - 48px);
        overflow: auto;
        z-index: 20;
        transform: translateY(-42%) scale(0.92);
    }

    .summoned .guest-card {
        transform: translateY(-50%) scale(1);
    }

    .cat-crossroads {
        grid-template-columns: 1fr;
    }

    .living-page .cat-crossroads {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

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

    .scroll-mark,
    .social-dots {
        display: none;
    }

    .liza-room-scene {
        min-height: 100svh;
        overflow-y: auto;
    }

    .liza-room-bg-main {
        background-position: center top;
    }

    .liza-room-main {
        min-height: auto;
        padding-top: min(58vw, 420px);
        padding-bottom: 28px;
    }

    .cheshir-room-scene {
        min-height: 100svh;
        overflow-y: auto;
    }

    .cheshir-room-bg-main {
        background-position: center top;
    }

    .cheshir-room-main {
        min-height: auto;
        padding-top: min(58vw, 420px);
        padding-bottom: 28px;
    }

    .cook-room-scene {
        min-height: 100svh;
        overflow-y: auto;
    }

    .cook-room-bg-main {
        background-position: center top;
    }

    .cook-room-main {
        min-height: auto;
        padding-top: min(58vw, 420px);
        padding-bottom: 28px;
    }

    .cat-gpt-room-scene {
        min-height: 100svh;
        overflow-y: auto;
    }

    .cat-gpt-room-bg-main {
        background-position: center top;
    }

    .cat-gpt-room-main {
        min-height: auto;
        padding-top: min(58vw, 420px);
        padding-bottom: 28px;
    }

    .astra-room-scene {
        min-height: 100svh;
        overflow-y: auto;
    }

    .astra-room-bg-main {
        background-position: center top;
    }

    .astra-room-main {
        min-height: auto;
        padding-top: min(58vw, 420px);
        padding-bottom: 28px;
    }

    .mera-room-scene {
        min-height: 100svh;
        overflow-y: auto;
    }

    .mera-room-bg-main {
        background-position: center top;
    }

    .mera-room-main {
        min-height: auto;
        padding-top: min(58vw, 420px);
        padding-bottom: 28px;
    }

    .kuper-room-scene {
        min-height: 100svh;
        overflow-y: auto;
    }

    .kuper-room-bg-main {
        background-position: center top;
    }

    .kuper-room-main {
        min-height: auto;
        padding-top: min(58vw, 420px);
        padding-bottom: 28px;
    }
}

@media (max-width: 620px) {
    .cat-chat-form {
        grid-template-columns: 1fr;
    }

    .cat-chat-return {
        justify-self: stretch;
    }

    .liza-room-header {
        gap: 14px;
    }

    .liza-room-header nav,
    .liza-room-panel .room-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .cheshir-room-header {
        gap: 14px;
    }

    .cheshir-room-header nav,
    .cheshir-room-panel .room-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .cook-room-header {
        gap: 14px;
    }

    .cook-room-header nav,
    .cook-room-panel .room-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .cat-gpt-room-header {
        gap: 14px;
    }

    .cat-gpt-room-header nav,
    .cat-gpt-room-panel .room-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .astra-room-header {
        gap: 14px;
    }

    .astra-room-header nav,
    .astra-room-panel .room-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .mera-room-header {
        gap: 14px;
    }

    .mera-room-header nav,
    .mera-room-panel .room-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .kuper-room-header {
        gap: 14px;
    }

    .kuper-room-header nav,
    .kuper-room-panel .room-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .liza-room-header nav a,
    .liza-room-panel .room-actions a,
    .cheshir-room-header nav a,
    .cheshir-room-panel .room-actions a,
    .cook-room-header nav a,
    .cook-room-panel .room-actions a,
    .cat-gpt-room-header nav a,
    .cat-gpt-room-panel .room-actions a,
    .astra-room-header nav a,
    .astra-room-panel .room-actions a,
    .mera-room-header nav a,
    .mera-room-panel .room-actions a,
    .kuper-room-header nav a,
    .kuper-room-panel .room-actions a {
        justify-content: center;
        text-align: center;
    }

    .living-page .cat-crossroads {
        grid-template-columns: 1fr;
    }

    .site-header,
    .interior-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-header {
        gap: 16px;
    }

    .brand {
        white-space: normal;
    }

    .top-nav {
        width: 100%;
        justify-content: space-between;
    }

    .guest-card {
        padding: 24px 18px;
        border-radius: 24px;
    }

    .guest-card h1 {
        font-size: 38px;
    }

    .knock-button {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .home-shell {
        padding: 16px;
    }

    .home-shell::before {
        display: none;
    }

    .brand {
        font-size: clamp(28px, 9vw, 42px);
    }

    .top-nav {
        font-size: 16px;
    }

    .menu-button {
        width: 48px;
        height: 48px;
    }

    .arrival {
        padding: 24px 0 64px;
    }

    .welcome-sign {
        max-width: 100%;
        padding: 16px;
        margin-bottom: 18px;
    }

    .welcome-sign span {
        font-size: 24px;
    }

    .welcome-sign b {
        font-size: 15px;
    }

    .old-bell-wrap {
        width: 100%;
        height: auto;
    }

    .old-bell-wrap p {
        width: 100%;
        padding: 15px 22px;
        font-size: 18px;
    }

    .guest-card {
        left: 12px;
        right: 12px;
        max-height: calc(100svh - 24px);
        padding: 22px 16px;
    }

    .field {
        font-size: 16px;
    }

    .field input,
    .field select,
    .field textarea {
        min-height: 54px;
    }

    .home-footer {
        font-size: 14px;
    }
}

/* Главная: готовый 16:9 макет без дублирующих HTML-надписей. */
body.home-page {
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
}

body.home-page {
    min-height: 100svh;
    display: grid;
    place-items: center;
    margin: 0;
    background:
        radial-gradient(circle at center, rgba(32, 52, 65, 0.5), transparent 42%),
        #071018;
}

.home-scene {
    position: relative;
    width: min(100vw, calc(100svh * 16 / 9));
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    overflow: hidden;
    background-image: url("../assets/home-clean.png");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.48);
    isolation: isolate;
}

.home-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 64% 54%, rgba(255, 214, 137, 0.14), transparent 14%),
        rgba(4, 8, 12, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.home-page.summoned .home-scene::after {
    opacity: 1;
}

.doorbell-hotspot {
    position: absolute;
    left: 59.8%;
    top: 45.2%;
    width: 12%;
    height: 18%;
    z-index: 3;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

.doorbell-hotspot:hover,
.doorbell-hotspot:focus-visible {
    outline: none;
    box-shadow: 0 0 34px rgba(255, 220, 142, 0.18);
}

.home-scene .guest-card {
    position: absolute;
    right: 7%;
    top: 50%;
    z-index: 4;
    width: min(420px, 88vw);
    min-width: 0;
    max-height: none;
    overflow: visible;
    padding: 28px 32px;
    border-radius: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-44%) scale(0.92);
    pointer-events: none;
}

.home-scene .card-ornament {
    font-size: 11px;
    letter-spacing: 0.14em;
}

.home-scene .guest-card h1 {
    margin: 8px 0 20px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1;
}

.home-scene .field {
    gap: 7px;
    margin-bottom: 14px;
    font-size: 15px;
}

.home-scene .field input,
.home-scene .field select,
.home-scene .field textarea {
    min-height: 50px;
    padding: 11px 14px;
    font-size: 14px;
}

.home-scene .field textarea {
    height: 86px;
    min-height: 86px;
}

.home-scene .knock-button {
    min-height: 58px;
    margin-top: 4px;
    font-size: 24px;
}

.home-scene .house-whisper {
    min-height: 20px;
    margin: 12px 0 0;
    font-size: 14px;
}

.home-page.summoned .home-scene .guest-card {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
    pointer-events: auto;
}

@media (max-aspect-ratio: 16 / 9) {
    .home-scene {
        width: 100vw;
    }
}

@media (max-width: 900px) {
    .home-scene .guest-card {
        right: 5%;
        width: min(400px, 88vw);
        min-width: 0;
    }
}

@media (max-width: 680px) {
    .home-scene .guest-card {
        left: 5%;
        right: 5%;
        top: 50%;
        width: auto;
        min-width: 0;
        max-height: none;
        overflow: visible;
        padding: 22px 20px;
    }

    .doorbell-hotspot {
        left: 57%;
        top: 43%;
        width: 18%;
        height: 21%;
    }
}

@media (max-width: 420px) {
    .home-scene .guest-card {
        left: 3%;
        right: 3%;
        padding: 18px 14px;
        border-radius: 22px;
    }

    .home-scene .guest-card h1 {
        font-size: 34px;
        margin-bottom: 18px;
    }

    .home-scene .field {
        margin-bottom: 14px;
    }
}
