:root {

    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;

    --amber-600: #d97706;
    --amber-700: #b45309;
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-800: #166534;
    --red-50: #fef2f2;
    --red-200: #fecaca;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --blue-600: #2563eb;
    --purple-600: #9333ea;
    --emerald-50: #ecfdf5;
    --emerald-600: #059669;
    --yellow-200: #fef08a;
    --white: #ffffff;

    --placeholder: #9ca3af;
    --border-default: #e5e7eb;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --ease-tw: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-colors: color 150ms var(--ease-tw), background-color 150ms var(--ease-tw),
        border-color 150ms var(--ease-tw), text-decoration-color 150ms var(--ease-tw),
        fill 150ms var(--ease-tw), stroke 150ms var(--ease-tw);
}

*, ::before, ::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: var(--border-default);
}
html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    font-family: ui-sans-serif, system-ui, sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
body { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; margin: 0; }
p { margin: 0; }
ol, ul, menu { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: bolder; }
img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
button, input, optgroup, select, textarea {
    font-family: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}
button, select { text-transform: none; }
button, [type="button"], [type="reset"], [type="submit"] {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
    cursor: pointer;
}

::-webkit-inner-spin-button, ::-webkit-outer-spin-button { height: auto; }
[type="search"] { -webkit-appearance: textfield; outline-offset: -2px; }
::-webkit-search-decoration { -webkit-appearance: none; }
::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; }
table { border-collapse: collapse; text-indent: 0; border-color: inherit; }
input::placeholder, textarea::placeholder { opacity: 1; color: var(--placeholder); }
code, kbd, samp, pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    font-size: 1em;
}

.hidden { display: none; }
.rotate-180 { transform: rotate(180deg); }
[hidden] { display: none; }

.site-body {
    background: var(--slate-100);
    color: var(--slate-800);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-body {
    background: var(--slate-100);
    color: var(--slate-800);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-body--center {
    background: var(--slate-100);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

.admin-body--stone { background: var(--stone-100); min-height: 100vh; }

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    position: sticky;
    top: 0;
    z-index: 40;
}
.header-inner { max-width: 80rem; margin-left: auto; margin-right: auto; padding: 0 1rem; }
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 0;
}
.site-logo {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
}
/* Иконка логотипа слева от названия */
.site-logo-img { display: block; height: 2.25rem; width: auto; }
/* Надпись в шапке — домен, как в логотипе */
.site-logo-text { font-weight: 600; letter-spacing: -0.01em; }

.main-nav { display: none; align-items: center; gap: 0.25rem; }
.nav-dropdown-wrap { position: relative; }
.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: var(--transition-colors);
}
.nav-btn:hover { background: var(--slate-100); }
.nav-btn--active { font-weight: 500; background: var(--slate-100); }
.nav-chevron {
    width: 0.875rem;
    height: 0.875rem;
    transition: transform 150ms var(--ease-tw);
}
.nav-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    width: 14rem;
    border-radius: 0.75rem;
    border: 1px solid var(--slate-200);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    z-index: 50;
}
.nav-dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: var(--transition-colors);
}
.nav-dropdown-item:hover { background: var(--slate-100); }
.nav-dropdown-item--active {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    background: var(--slate-900);
    color: var(--white);
}
.nav-link {
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: var(--transition-colors);
}
.nav-link:hover { background: var(--slate-100); }

.burger-btn {
    padding: 0.5rem;
    margin-right: -0.5rem;
    border-radius: 0.5rem;
    color: var(--slate-600);
    transition: var(--transition-colors);
}
.burger-btn:hover { background: var(--slate-100); }
.burger-btn svg { width: 1.5rem; height: 1.5rem; }
.mobile-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-lg);
}
.mobile-nav {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 75vh;
    overflow-y: auto;
}
.mobile-nav-item {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: var(--transition-colors);
}
.mobile-nav-item:hover { background: var(--slate-100); }
.mobile-nav-item--active {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    background: var(--slate-900);
    color: var(--white);
}
.mobile-nav-item--strong { font-weight: 500; }
.mobile-nav-legal {
    border-top: 1px solid var(--slate-200);
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem 0.25rem;
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    line-height: 1rem;
    color: var(--slate-500);
}
.mobile-nav-legal a:hover { text-decoration: underline; }

@media (min-width: 768px) {
    .main-nav { display: flex; }
    .burger-btn { display: none; }

    .mobile-menu { display: none !important; }
}

.page-frame {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    width: 100%;
    flex: 1 1 0%;
}
.page-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 0;
}
.page-sidebar { width: 100%; flex-shrink: 0; order: 2; }
.page-sidebar > * + * { margin-top: 1.25rem; }
.page-content { flex: 1 1 0%; min-width: 0; order: 1; }
@media (min-width: 1024px) {
    .page-layout { flex-direction: row; align-items: flex-start; }
    .page-sidebar { width: 15rem; }
}

.ad-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: var(--slate-400);
    margin-bottom: 0.25rem;
}
.ad-placeholder {
    border: 1px dashed var(--slate-300);
    border-radius: 0.75rem;
    background: rgb(255 255 255 / 0.6);
    color: var(--slate-400);
    font-size: 0.75rem;
    line-height: 1rem;
    text-align: center;
    user-select: none;
}
.ad-placeholder--sidebar { padding: 3.5rem 0; }
.ad-placeholder--footer { padding: 1.5rem 0; }
.ad-placeholder--legacy { padding: 2rem 0; }

.ad-banner {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
}
.ad-banner--wide {
    width: 100%;
    height: 8rem;
    object-fit: cover;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) { .ad-banner--wide { height: 10rem; } }

.rubrics-box {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 0.75rem;
    padding: 1rem;
}
.rubrics-title {
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: var(--slate-500);
    margin-bottom: 0.5rem;
}
.rubrics-list { display: flex; flex-direction: column; gap: 0.25rem; }
.rubrics-link { font-size: 0.875rem; line-height: 1.25rem; color: var(--slate-600); }
.rubrics-link:hover { color: var(--slate-900); text-decoration: underline; }
.rubrics-link--active { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--slate-900); }

.footer-ad {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    width: 100%;
}
.site-footer {
    background: var(--white);
    border-top: 1px solid var(--slate-200);
    margin-top: auto;
}
.footer-inner {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem 1rem;
    font-size: 0.75rem;
    line-height: 1.625;
    color: var(--slate-500);
}
.footer-inner > * + * { margin-top: 0.5rem; }
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
}
.footer-social { color: var(--slate-400); transition: var(--transition-colors); }
.footer-social:hover { color: var(--slate-700); }
.footer-social svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.footer-legal { text-align: center; }
.footer-legal a:hover { text-decoration: underline; }
.footer-dot { margin: 0 0.25rem; }

.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; }
.cookie-inner {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem 1rem;
}
.cookie-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-xl);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.cookie-text {
    flex: 1 1 0%;
    font-size: 0.875rem;
    line-height: 1.625;
    color: var(--slate-600);
}
.cookie-title { font-weight: 600; color: var(--stone-800); margin-bottom: 0.25rem; }
.cookie-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.btn-ghost {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    border: 1px solid var(--slate-300);
    color: var(--slate-600);
    transition: var(--transition-colors);
}
.btn-ghost:hover { background: var(--slate-100); }
.btn-accept {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    background: var(--amber-600);
    color: var(--white);
    transition: var(--transition-colors);
}
.btn-accept:hover { background: var(--amber-700); }

@media (min-width: 768px) {
    .cookie-card { padding: 1.25rem; flex-direction: row; align-items: center; }
}

.link-amber { color: var(--amber-600); }
.link-amber:hover { text-decoration: underline; }

.page-title { font-size: 1.5rem; line-height: 2rem; font-weight: 700; letter-spacing: -0.025em; }
.page-subtitle { color: var(--slate-500); margin-top: 0.25rem; }
.page-subtitle--mb { margin-bottom: 1.5rem; }

.page-intro-row { margin-bottom: 1.5rem; }
.page-intro-shrink { flex-shrink: 0; }
.page-intro-text {
    font-size: 0.875rem;
    color: var(--slate-600);
    line-height: 1.625;
    max-width: 28rem;
    margin-top: 1rem;
}
@media (min-width: 768px) {
    .page-intro-row {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 2.5rem;
    }
    .page-intro-text { margin-top: 0.125rem; }
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
    display: block;
    background: var(--white);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 150ms var(--ease-tw);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; }
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms var(--ease-tw);
}
.card:hover .card-img { transform: scale(1.05); }
.card-body {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.card-title { font-weight: 600; }
.card-meta { font-size: 0.875rem; line-height: 1.25rem; color: var(--slate-500); white-space: nowrap; }

.card-letter {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(to bottom right, var(--stone-400), var(--stone-600));
    color: var(--white);
    font-size: 3rem;
    line-height: 1;
    font-weight: 700;
}

.card-fix-span2 { }
@media (min-width: 640px) { .card-fix-span2 { grid-column: span 2 / span 2; } }
@media (min-width: 1024px) { .card-fix-span2 { grid-column: span 1 / span 1; } }
.card-fix-center { }
@media (min-width: 1024px) { .card-fix-center { grid-column-start: 2; } }

.page-main { flex: 1 1 0%; padding: 2rem 0; }
.room-main { flex: 1 1 0%; padding: 1.5rem 0; }
.blog-main { flex: 1 1 0%; width: 100%; max-width: 72rem; margin-left: auto;
    margin-right: auto; padding: 2rem 1rem; }
.post-main { max-width: 48rem; margin-left: auto; margin-right: auto; padding: 2.5rem 0; }
.contact-main { flex: 1 1 0%; width: 100%; max-width: 42rem; padding: 2.5rem 0; }
.legal-main { max-width: 48rem; padding: 2.5rem 0; color: var(--stone-700); line-height: 1.625; }
.legal-main > * + * { margin-top: 2rem; }

.notfound-main { flex: 1 1 0%; display: flex; align-items: center; justify-content: center; padding: 0 1rem; }
.notfound-box { text-align: center; }
.notfound-title { font-size: 1.5rem; line-height: 2rem; font-weight: 700; }
.notfound-text { color: var(--slate-500); margin-top: 0.5rem; }
.notfound-link { display: inline-block; margin-top: 1rem; color: var(--blue-600); }
.notfound-link:hover { text-decoration: underline; }

.room-wrap { position: relative; }
.room-img { width: 100%; height: auto; display: block; }

.room-frame {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .30);
    border: 2px solid rgba(255, 255, 255, .90);
    cursor: pointer;
    display: block;
}
.hotspot::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    background: #fff;
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
.hotspot::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 9999px;
    animation: hotspotPulse 1.8s ease-out infinite;
}
@keyframes hotspotPulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .75); }
    70%  { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .60);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 60; /* выше cookie-баннера (z-index 50), иначе баннер перекрывает кнопку товара на телефоне */
}
.modal-backdrop[hidden] { display: none; }
.modal-dialog {
    background: var(--white);
    border-radius: 1rem;
    width: min(92vw, 420px);
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
    animation: fadeIn .2s ease;
}
.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-600);
    transition: var(--transition-colors);
}
.modal-close:hover { background: var(--slate-200); }
.modal-close svg { width: 1.25rem; height: 1.25rem; }
.modal-label {
    font-size: 0.75rem;
    line-height: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: var(--slate-400);
    margin-bottom: 0.25rem;
}
.modal-title { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; padding-right: 2rem; }
.modal-cta {
    margin-top: 1.25rem;
    display: block;
    width: 100%;
    text-align: center;
    background: var(--slate-900);
    color: var(--white);
    font-weight: 500;
    padding: 0.625rem 0;
    border-radius: 0.5rem;
    transition: var(--transition-colors);
}
.modal-cta:hover { background: var(--slate-700); }
/* Маркировка партнёрской ссылки внутри окна товара */
.modal-ad {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0 0.375rem;
    border: 1px solid var(--slate-400);
    border-radius: 0.25rem;
    font-size: 0.6875rem;
    color: var(--slate-600);
    text-transform: none;
    letter-spacing: 0;
}
.modal-ad[hidden], .modal-cta-aff[hidden], .modal-aff-note[hidden] { display: none; }
.modal-cta-text { display: block; }
.modal-cta-aff { display: block; margin-top: 0.125rem; font-size: 0.6875rem; opacity: .75; font-weight: 400; }
.modal-aff-note { margin-top: 0.75rem; font-size: 0.75rem; line-height: 1.5; color: var(--slate-500); }
@media (max-width: 640px) {
    .modal-backdrop { align-items: flex-end; }
    .modal-dialog {
        width: 100%;
        max-width: none;
        border-radius: 1rem 1rem 0 0;
        animation: slideUp .25s ease;
    }
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }

.breadcrumb { font-size: 0.875rem; line-height: 1.25rem; margin-bottom: 0.5rem; }
.room-hint { font-size: 0.875rem; line-height: 1.25rem; color: var(--slate-500); margin-bottom: 0.75rem; }

.affiliate-disclaimer { font-size: 0.75rem; color: var(--slate-400); margin-top: 0.75rem; line-height: 1.625; }

.post-date { font-size: 0.875rem; line-height: 1.25rem; color: var(--stone-400); }
.post-title {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    color: var(--stone-800);
    margin-top: 0.25rem;
    margin-bottom: 1.5rem;
}
.post-cover { width: 100%; height: auto; border-radius: 1rem; margin-bottom: 2rem; }
.post-body { color: var(--stone-700); line-height: 1.625; }
.post-back-row { margin-top: 2.5rem; }
.post-missing-title { font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; color: var(--stone-800); margin-bottom: 1rem; }
@media (min-width: 768px) { .post-title { font-size: 2.25rem; line-height: 2.5rem; } }

.post-mark { background: var(--yellow-200); color: var(--stone-800); border-radius: 0.25rem; padding: 0 0.125rem; }
.post-link { color: var(--amber-600); text-decoration: underline; }
.post-link:hover { color: var(--amber-700); }
.post-image { width: 100%; height: auto; border-radius: 0.75rem; margin: 1.5rem 0; }
.post-banner { margin: 1.5rem 0; }
.post-banner-img { width: 100%; height: auto; border-radius: 0.75rem; box-shadow: var(--shadow-sm); }

.notice-success {
    background: var(--green-50);
    border: 1px solid var(--green-200);
    color: var(--green-800);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}
.notice-success-title { font-weight: 600; margin-bottom: 0.25rem; }
.notice-error {
    background: var(--red-50);
    border: 1px solid var(--red-200);
    color: var(--red-700);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}
.notice-error > * + * { margin-top: 0.25rem; }
.contact-form {
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-200);
    padding: 1.5rem;
}
.contact-form > * + * { margin-top: 1rem; }
.form-grid-2 { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field-label {
    display: block;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}
.field-label--xs {
    display: block;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}
.form-input {
    width: 100%;
    border: 1px solid var(--slate-300);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
}
.form-input:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--slate-900);
}
.form-note { font-size: 0.75rem; line-height: 1rem; color: var(--slate-400); }
.form-note a { text-decoration: underline; }
.form-note a:hover { color: var(--slate-600); }
.btn-primary {
    background: var(--slate-900);
    color: var(--white);
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    transition: var(--transition-colors);
}
.btn-primary:hover { background: var(--slate-700); }

.legal-title { font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; color: var(--stone-800); }
.legal-date { font-size: 0.875rem; line-height: 1.25rem; color: var(--stone-400); }
.legal-h2 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; color: var(--stone-800); margin-bottom: 0.5rem; }
.legal-gap { margin-top: 0.5rem; }

.admin-header { background: var(--white); border-bottom: 1px solid var(--slate-200); }
.admin-header-inner {
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.admin-brand { font-weight: 700; }
.admin-nav { display: flex; align-items: center; gap: 1rem; }
.admin-nav-link { color: var(--blue-600); font-size: 0.875rem; line-height: 1.25rem; }
.admin-nav-link:hover { text-decoration: underline; }
.admin-nav-link--amber { color: var(--amber-600); font-weight: 500; }
.admin-nav-link--purple { color: var(--purple-600); font-weight: 500; }
.admin-nav-link--emerald { color: var(--emerald-600); font-weight: 500; }
.admin-nav-link--muted { color: var(--slate-500); }
.admin-nav-link--slate { color: var(--slate-700); }
.admin-nav-current { color: var(--emerald-600); font-weight: 600; font-size: 0.875rem; line-height: 1.25rem; }
.admin-main { flex: 1 1 0%; width: 100%; max-width: 64rem; margin-left: auto; margin-right: auto; padding: 1.5rem 1rem; }
.admin-main--spaced > * + * { margin-top: 2rem; }

.admin-h1 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; }
.admin-h1--mb { margin-bottom: 0.75rem; }
.admin-h1--tight { margin-bottom: 0.25rem; }
.admin-slug { color: var(--slate-400); font-weight: 400; font-size: 0.875rem; line-height: 1.25rem; }
.admin-hint { font-size: 0.875rem; line-height: 1.25rem; color: var(--slate-500); margin-bottom: 1rem; }
.admin-section-title { font-size: 1.125rem; line-height: 1.75rem; font-weight: 700; color: var(--stone-800); margin-bottom: 0.75rem; }
.admin-section-title--tight { margin-bottom: 0.25rem; }
.hint-stone { font-size: 0.875rem; line-height: 1.25rem; color: var(--stone-500); margin-bottom: 1rem; }
.link-stone { color: var(--stone-500); }
.link-stone:hover { text-decoration: underline; }

.panel {
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    padding: 1.5rem;
}
.panel--pad-s { padding: 1.25rem; }
.panel--mb { margin-bottom: 2rem; }

.table-card {
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}
.admin-table { width: 100%; font-size: 0.875rem; line-height: 1.25rem; }
.admin-table thead tr { text-align: left; color: var(--slate-500); border-bottom: 1px solid var(--slate-200); }
.admin-table th { padding: 0.75rem 1rem; font-weight: 500; }
.admin-table tbody tr { border-top: 1px solid var(--slate-100); }
.admin-table td { padding: 0.5rem 1rem; }
.admin-table--loose td { padding: 0.75rem 1rem; }
.admin-table--top td { vertical-align: top; }
.cell-right { text-align: right; white-space: nowrap; }
.cell-nowrap { white-space: nowrap; }
.cell-title { font-weight: 500; }
.cell-muted { color: var(--slate-500); }
.row-unread { background: rgb(236 253 245 / 0.4); }
.thumb { width: 5rem; height: 3rem; object-fit: cover; border-radius: 0.25rem; }

.link-blue { color: var(--blue-600); }
.link-blue:hover { text-decoration: underline; }
.link-blue--gap { margin-right: 0.75rem; }
.link-danger { color: var(--red-600); }
.link-danger:hover { text-decoration: underline; }
.link-danger--soft { color: var(--red-500); font-size: 0.875rem; line-height: 1.25rem; }
.form-inline { display: inline; }

.input-file { width: 100%; font-size: 0.875rem; line-height: 1.25rem; }
.input-file::file-selector-button {
    margin-right: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 0;
    background: var(--slate-900);
    color: var(--white);
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-family: inherit;
    cursor: pointer;
}
.input-file--boxed {
    width: 100%;
    border: 1px solid var(--stone-300);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
}
.input-file--boxed.input-file--mb4 { margin-bottom: 1rem; }
.btn-dark {
    background: var(--slate-900);
    color: var(--white);
    border-radius: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: var(--transition-colors);
}
.btn-dark:hover { background: var(--slate-700); }
.btn-amber {
    background: var(--amber-600);
    color: var(--white);
    border-radius: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: var(--transition-colors);
}
.btn-amber:hover { background: var(--amber-700); }
.btn-cancel { padding: 0.5rem 1.25rem; color: var(--stone-500); }
.btn-cancel:hover { text-decoration: underline; }

.admin-wrap { max-width: 56rem; margin-left: auto; margin-right: auto; padding: 2rem 1rem; }
.admin-wrap--wide { max-width: 64rem; }
.admin-top-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.admin-page-title { font-size: 1.5rem; line-height: 2rem; font-weight: 700; color: var(--stone-800); }
.flash-success {
    background: var(--green-100);
    color: var(--green-800);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
}
.field-label--stone {
    display: block;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: var(--stone-600);
    margin-bottom: 0.25rem;
}
.input-stone { width: 100%; border: 1px solid var(--stone-300); border-radius: 0.5rem; padding: 0.5rem 0.75rem; margin-bottom: 1rem; }
.input-mono {
    width: 100%;
    border: 1px solid var(--stone-300);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    font-size: 0.875rem;
    line-height: 1.25rem;
}
.hint-xs { font-size: 0.75rem; line-height: 1rem; color: var(--stone-400); }
.hint-xs--mb1 { margin-bottom: 0.25rem; }
.hint-xs--mb4 { margin-bottom: 1rem; }
.code-chip { background: var(--stone-100); border-radius: 0.25rem; padding: 0 0.25rem; }

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--stone-200);
    border-radius: 0.5rem;
    background: var(--stone-50);
    padding: 0.5rem;
}
.tb-btn {
    height: 1.75rem;
    padding: 0 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid var(--stone-300);
    background: var(--white);
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: var(--transition-colors);
}
.tb-btn:hover { background: var(--stone-100); }
.tb-btn--bold { font-weight: 700; min-width: 1.75rem; }
.tb-btn--italic { font-style: italic; min-width: 1.75rem; }
.tb-sep { width: 1px; height: 1.5rem; background: var(--stone-300); margin: 0 0.125rem; }
.tb-color {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    border: 1px solid var(--stone-300);
    transition: transform 150ms var(--ease-tw);
}
.tb-color--square { border-radius: 0.25rem; }
.tb-color:hover { transform: scale(1.1); }

.upload-row { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
.upload-field { flex: 1 1 0%; width: 100%; }
@media (min-width: 640px) { .upload-row { flex-direction: row; align-items: flex-end; } }

.admin-row { display: flex; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--stone-100); }
.admin-row:last-child { border-bottom: 0; }
.admin-row--split { justify-content: space-between; }
.admin-row--wrap { flex-wrap: wrap; gap: 0.75rem; }
.admin-row-title { font-weight: 500; color: var(--stone-800); }
.admin-row-meta { font-size: 0.75rem; line-height: 1rem; color: var(--stone-400); }
.admin-row-actions { display: flex; gap: 0.75rem; font-size: 0.875rem; line-height: 1.25rem; }
.row-gap { display: flex; gap: 0.75rem; }
.panel-empty { color: var(--stone-500); }
.none-note { font-size: 0.875rem; line-height: 1.25rem; color: var(--stone-400); margin-top: 1rem; }

.img-token-list { margin-top: 1.25rem; }
.img-token-list > * + * { margin-top: 0.75rem; }
.img-token-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--stone-200);
    border-radius: 0.5rem;
    padding: 0.5rem;
}
.img-token-input {
    flex: 1 1 0%;
    border: 1px solid var(--stone-200);
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    background: var(--stone-50);
    color: var(--stone-700);
}

.rename-form { display: flex; align-items: center; gap: 0.5rem; flex: 1 1 0%; min-width: 13rem; }
.rename-input {
    flex: 1 1 0%;
    border: 1px solid var(--stone-300);
    border-radius: 0.25rem;
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
}
.ok-btn {
    font-size: 0.75rem;
    line-height: 1rem;
    background: var(--stone-200);
    padding: 0.375rem 0.5rem;
    border-radius: 0.25rem;
    color: var(--stone-700);
    transition: var(--transition-colors);
}
.ok-btn:hover { background: var(--stone-300); }
.cat-slug {
    font-size: 0.75rem;
    line-height: 1rem;
    color: var(--stone-400);
    width: 7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cat-count { font-size: 0.875rem; line-height: 1.25rem; color: var(--stone-500); width: 5rem; }
.toggle-pill {
    font-size: 0.75rem;
    line-height: 1rem;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-weight: 500;
    transition: var(--transition-colors);
}
.toggle-pill--on { background: var(--green-100); color: var(--green-800); }
.toggle-pill--on:hover { background: var(--green-200); }
.toggle-pill--off { background: var(--stone-200); color: var(--stone-500); }
.toggle-pill--off:hover { background: var(--stone-300); }
.icon-btn {
    font-size: 0.875rem;
    line-height: 1.25rem;
    border: 1px solid var(--stone-200);
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    transition: var(--transition-colors);
}
.icon-btn:hover { background: var(--stone-100); }
.room-info { width: 11rem; }
.room-info-title {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: var(--stone-800);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.room-info-meta {
    font-size: 0.75rem;
    line-height: 1rem;
    color: var(--stone-400);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.room-info-warn { font-size: 0.75rem; line-height: 1rem; color: var(--red-500); font-weight: 500; }
.select-input {
    border: 1px solid var(--stone-300);
    border-radius: 0.25rem;
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    background: var(--white);
}
.assign-form { display: flex; align-items: center; gap: 0.5rem; }
.input-stone--mb0 { margin-bottom: 0; }

.login-form {
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    width: 100%;
    max-width: 24rem;
}
.login-title { font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; margin-bottom: 0.25rem; }
.login-sub { font-size: 0.875rem; line-height: 1.25rem; color: var(--slate-500); margin-bottom: 1rem; }
.login-setup {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--red-700);
    background: var(--red-50);
    border: 1px solid var(--red-200);
    border-radius: 0.25rem;
    padding: 0.75rem;
}
.login-setup-title { font-weight: 600; margin-bottom: 0.25rem; }
.login-setup-note { margin-top: 0.25rem; }
.login-setup-cmd {
    margin-top: 0.25rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    background: var(--white);
    border: 1px solid var(--red-200);
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    user-select: all;
}
.login-error {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--red-700);
    background: var(--red-50);
    border: 1px solid var(--red-200);
    border-radius: 0.25rem;
    padding: 0.5rem;
}
.login-input {
    width: 100%;
    border: 1px solid var(--slate-300);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
}
.login-input:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--slate-900);
}
.login-btn {
    width: 100%;
    background: var(--slate-900);
    color: var(--white);
    font-weight: 500;
    padding: 0.625rem 0;
    border-radius: 0.5rem;
    transition: var(--transition-colors);
}
.login-btn:hover { background: var(--slate-700); }

.form-errors {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--red-700);
    background: var(--red-50);
    border: 1px solid var(--red-200);
    border-radius: 0.5rem;
    padding: 0.75rem;
}
.form-errors > * + * { margin-top: 0.25rem; }
.new-room-form {
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
    align-items: end;
}
.form-note--mt { margin-top: 0.25rem; }
.form-note--ml { margin-left: 0.75rem; }
.col-span-full { }
@media (min-width: 768px) {
    .new-room-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .col-span-full { grid-column: span 3 / span 3; }
}

.admin-img-wrap { margin-bottom: 1.5rem; }
.hotspot-form {
    position: absolute;
    z-index: 10;
    width: 18rem;
    max-width: 90vw;
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--slate-200);
    padding: 0.75rem;
}
.hotspot-form-label {
    font-size: 0.75rem;
    line-height: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: var(--slate-400);
    margin-bottom: 0.5rem;
}
.hotspot-input {
    width: 100%;
    border: 1px solid var(--slate-300);
    border-radius: 0.25rem;
    padding: 0.375rem 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}
.hotspot-input--mb3 { margin-bottom: 0.75rem; }
.hotspot-actions { display: flex; align-items: center; gap: 0.5rem; }
.hotspot-save {
    flex: 1 1 0%;
    background: var(--slate-900);
    color: var(--white);
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    padding: 0.5rem 0;
    border-radius: 0.25rem;
    transition: var(--transition-colors);
}
.hotspot-save:hover { background: var(--slate-700); }
.hotspot-delete {
    color: var(--red-600);
    border: 1px solid var(--red-200);
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    transition: var(--transition-colors);
}
.hotspot-delete:hover { background: var(--red-50); }
.hotspot-cancel {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--slate-500);
    padding: 0.5rem;
    transition: var(--transition-colors);
}
.hotspot-cancel:hover { color: var(--slate-700); }

.msg-view-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.msg-view-card {
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-200);
    padding: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}
.msg-view-card > * + * { margin-top: 0.5rem; }
.msg-view-card > .msg-body { margin-top: 0.75rem; }
.msg-label { color: var(--slate-500); display: inline-block; width: 5rem; }
.msg-body {
    border-top: 1px solid var(--slate-100);
    padding-top: 0.75rem;
    white-space: pre-line;
    line-height: 1.625;
}
.msg-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.btn-solid-sm {
    background: var(--slate-900);
    color: var(--white);
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: var(--transition-colors);
}
.btn-solid-sm:hover { background: var(--slate-700); }
.btn-danger-outline {
    color: var(--red-600);
    border: 1px solid var(--red-200);
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: var(--transition-colors);
}
.btn-danger-outline:hover { background: var(--red-50); }
.msg-empty {
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-200);
    padding: 1.5rem;
    color: var(--slate-500);
}
.msg-note { font-size: 0.75rem; line-height: 1rem; color: var(--slate-400); margin-top: 0.5rem; }

.post-share { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--stone-200); }
.post-share-title { font-size: 0.875rem; font-weight: 600; color: var(--stone-700); margin-bottom: 0.75rem; }
.post-share-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.share-btn { display: inline-flex; align-items: center; padding: 0.4rem 0.9rem; border-radius: 9999px;
    font-size: 0.8125rem; font-weight: 500; color: #fff; text-decoration: none;
    transition: opacity 0.15s ease-in-out; }
.share-btn:hover { opacity: 0.85; }

/* ===== v5: переключатель языка DE | EN ===== */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    margin-left: auto;
    margin-right: 0.25rem;
}
.lang-link {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--slate-600);
    transition: var(--transition-colors);
}
a.lang-link:hover { background: var(--slate-100); }
.lang-link--active { background: var(--slate-100); color: var(--slate-900, #0f172a); cursor: default; }
@media (min-width: 768px) { .lang-switch { margin-left: 0.5rem; margin-right: 0; } }

/* ===== v5: админка — подписи к полям перевода и бейджи ===== */
.lang-tag {
    display: inline-block;
    margin-left: 0.375rem;
    padding: 0 0.375rem;
    border-radius: 0.25rem;
    background: var(--slate-100);
    color: var(--slate-600);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    vertical-align: middle;
}
.tr-badge { font-size: 0.75rem; padding: 0 0.375rem; border-radius: 9999px; }
.tr-badge--ok { background: #dcfce7; color: #166534; }
.tr-badge--missing { background: #fef3c7; color: #92400e; }
.admin-lang-box { border: 1px dashed var(--slate-200, #e2e8f0); border-radius: 0.5rem; padding: 0.75rem; margin-top: 0.75rem; }
.admin-logout-form { display: inline; margin: 0; }
.admin-logout-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; }
/* v5: в строке рубрики теперь два поля (DE и EN) — даём форме больше места
   и разрешаем полям сжиматься, иначе кнопка OK перекрывается соседними блоками. */
.rename-form { min-width: 22rem; }
.rename-input { min-width: 0; width: 100%; }

/* ===== v5: крупнее на больших экранах =====
   Весь сайт размечен в rem, поэтому достаточно слегка увеличить базовый размер
   шрифта ТОЛЬКО на широких экранах: текст, отступы, карточки и ширина контейнера
   (80rem) вырастут пропорционально. Телефоны и планшеты (< 1024px) не затронуты.
   Хотите крупнее/мельче — меняйте проценты (100% = 16px). */
@media (min-width: 1024px) { html { font-size: 106.25%; } }   /* ≈17px */
@media (min-width: 1280px) { html { font-size: 112.5%; } }    /* 18px */
@media (min-width: 1800px) { html { font-size: 125%; } }      /* 20px */
