:root {
    --bg: #ececec;
    --panel: #1d2130;
    --text: #ffffff;
    --muted: #5f6066;
    --sidebar: #c4bdba;
    --overlay: rgba(19, 22, 32, 0.55);
    --header-height: 4.9rem;
    --sidebar-width: 20rem;
    --active: rgba(255, 255, 255, 0.18);
    --accent: #07853a;
}

* {
    box-sizing: border-box;
}

@view-transition {
    navigation: auto;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: #161616;
}

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

.page {
    min-height: 100vh;
    padding-top: var(--header-height);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 1.35rem;
    padding: 0.9rem 1.5rem;
    min-height: var(--header-height);
    background: var(--panel);
    color: var(--text);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    flex: 0 0 auto;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 0.95;
    text-transform: uppercase;
    white-space: pre-line;
}

.brand-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.7rem;
    object-fit: cover;
    flex: 0 0 auto;
}

.header-nav {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.header-nav a {
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.header-nav a:hover,
.header-nav a.is-active {
    background: var(--active);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
}

.language-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.language-button {
    border: 0;
    border-radius: 999px;
    padding: 0.4rem 0.68rem;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    font-weight: 700;
    cursor: pointer;
}

.language-button.is-active {
    background: rgba(255, 255, 255, 0.22);
}

.layout {
    position: relative;
}

.fixed-sidebar {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    width: var(--sidebar-width);
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    overflow-y: auto;
    background: var(--sidebar);
    color: #2a2a2a;
    text-align: center;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.fixed-sidebar::-webkit-scrollbar {
    display: none;
}

.with-fixed-sidebar {
    margin-right: var(--sidebar-width);
}

.empty {
    padding: 5rem 2rem;
    text-align: center;
    color: var(--muted);
    background: #fff;
}

.sidebar-note {
    width: 100%;
    min-height: 100%;
    margin: 0 auto;
    max-width: 18.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.15rem;
    line-height: 1.35;
}

.sidebar-note strong {
    display: block;
    margin-bottom: 1.1rem;
    font-size: 1.45rem;
    font-weight: 500;
}

.sidebar-icon {
    position: relative;
    width: 8rem;
    height: 8rem;
    margin: 0 auto 1.75rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) inset, 0 2px 10px rgba(0, 0, 0, 0.08);
}

.sidebar-icon::before {
    content: "";
    position: absolute;
    inset: 1.15rem;
    border-radius: 50%;
    background: var(--accent);
}

.sidebar-icon::after {
    content: "";
    position: absolute;
    left: 3.45rem;
    top: 2.35rem;
    width: 2.3rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #fff;
    transform: rotate(-46deg);
    transform-origin: left center;
    box-shadow: -1.35rem 1.35rem 0 0 #fff;
}

@media (max-width: 1100px) {
    .fixed-sidebar {
        position: static;
        width: auto;
        min-height: auto;
        padding: 0;
    }

    .with-fixed-sidebar {
        margin-right: 0;
    }
}

@media (max-width: 800px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-nav {
        justify-content: flex-start;
    }

    .header-tools {
        margin-left: 0;
    }

    .sidebar-note {
        font-size: 1.15rem;
    }
}

/* ---------- Доработка: анимации и ссылка на сайт ---------- */
.site-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: #f9bf29;
    color: #1d2130;
    font-size: 0.9rem;
    font-weight: 700;
    transition: transform 0.25s, background 0.25s;
}

.site-link:hover {
    background: #f8b810;
    transform: translateX(-2px);
}

.header-nav a {
    position: relative;
}

.page {
    animation: cw-page 0.6s ease both;
}

@keyframes cw-page {
    from { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .page { animation: none; }
}

/* На телефоне шапка выше обычной — не даём ей перекрывать фото и точки */
@media (max-width: 800px) {
    .page { padding-top: 0; }
    .header { position: sticky; }
}

.calc-link { background: #fff; box-shadow: inset 0 0 0 1.5px #f9bf29; }
.calc-link:hover { background: #f9bf29; transform: none; }
html.kiosk .calc-link { display: inline-flex !important; }
.header-tools { gap: .5rem; }
