:root {
    --ink: #20272d;
    --ink-soft: #303a42;
    --paper: #f1f2f0;
    --paper-deep: #e5e7e5;
    --white: #ffffff;
    --muted: #65717a;
    --blue: #47778c;
    --blue-dark: #2d5264;
    --red: #a32d32;
    --red-dark: #812126;
    --line: rgba(28, 38, 45, .14);
    --shadow: 0 16px 40px rgba(16, 26, 33, .10);
    --content-width: 1160px;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        repeating-linear-gradient(45deg, rgba(0, 0, 0, .018) 0, rgba(0, 0, 0, .018) 1px, transparent 1px, transparent 22px),
        repeating-linear-gradient(-45deg, rgba(0, 0, 0, .014) 0, rgba(0, 0, 0, .014) 1px, transparent 1px, transparent 22px);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}
body.modal-open { overflow: hidden; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #252d33; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7299a9, #3d6d82);
    border: 2px solid #252d33;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: #8eafbc; }

.site-header {
    position: relative;
    z-index: 2;
    background: #20272d;
    color: #fff;
    border-bottom: 3px solid var(--blue);
}
.site-header__inner {
    width: min(var(--content-width), calc(100% - 48px));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.55);
    color: #fff;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -.08em;
}
.brand__text { display: grid; line-height: 1.05; }
.brand__text strong { font-size: 23px; letter-spacing: .13em; }
.brand__text small { margin-top: 5px; color: #aebbc2; font-size: 9px; letter-spacing: .18em; }
.header-note { display: grid; gap: 4px; margin-right: 34px; text-align: right; }
.header-note__line { color: #aebbc2; font-size: 9px; letter-spacing: .16em; }
.hidden-trigger {
    position: absolute;
    z-index: 30;
    top: 14px;
    right: 0;
    width: 19px;
    height: 19px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    background: rgba(255,255,255,.035);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}
.hidden-trigger:hover, .hidden-trigger:focus-visible {
    background: rgba(255,255,255,.16);
    border-color: rgba(255,255,255,.5);
    outline: none;
}

main { flex: 1 0 auto; }
.hero {
    min-height: 430px;
    padding: 62px max(24px, calc((100vw - var(--content-width)) / 2)) 58px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    color: #fff;
    background:
        radial-gradient(circle at 75% 43%, rgba(75, 127, 148, .24), transparent 34%),
        linear-gradient(115deg, #29343c 0%, #20282e 55%, #182127 100%);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, transparent, black 45%, black);
    pointer-events: none;
}
.hero__content { z-index: 1; width: min(620px, 58%); }
.eyebrow { margin: 0 0 12px; color: #7397a7; font-size: 10px; font-weight: 700; letter-spacing: .22em; }
.hero .eyebrow { color: #9bb8c4; }
.hero h1 { margin: 0; font-size: clamp(34px, 5vw, 55px); line-height: 1.12; font-weight: 600; letter-spacing: -.035em; }
.hero h1 span { color: #9bb8c4; }
.hero__description { max-width: 540px; margin: 22px 0 24px; color: #c5cdd1; font-size: 15px; line-height: 1.75; }
.hero__link { display: inline-flex; align-items: center; gap: 13px; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.hero__link span { color: #9bb8c4; font-size: 18px; transition: transform .2s ease; }
.hero__link:hover span { transform: translateY(4px); }
.hero__visual { position: relative; z-index: 1; width: min(340px, 34vw); aspect-ratio: 1; flex: 0 0 auto; display: grid; place-items: center; }
.hero-orbit { position: absolute; border: 1px solid rgba(164, 195, 207, .26); border-radius: 50%; }
.hero-orbit--outer { width: 100%; height: 100%; border-style: dashed; animation: orbit 48s linear infinite; }
.hero-orbit--middle { width: 76%; height: 76%; border-color: rgba(164,195,207,.4); }
.hero-orbit--inner { width: 53%; height: 53%; border-color: rgba(164,195,207,.55); }
.hero-core {
    width: 31%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 28%, #7397a7, #35566a 68%, #233a47);
    box-shadow: 0 0 55px rgba(107, 160, 184, .33), inset 0 0 18px rgba(255,255,255,.15);
    color: #fff;
    font-size: clamp(22px, 3vw, 35px);
    font-weight: 700;
    letter-spacing: .08em;
}
.hero-coordinate { position: absolute; color: #8fa9b5; font-size: 8px; letter-spacing: .16em; }
.hero-coordinate--top { top: 4%; right: 0; }
.hero-coordinate--bottom { bottom: 3%; left: 2%; }
.hero__bottom-line {
    position: absolute;
    right: max(24px, calc((100vw - var(--content-width)) / 2));
    bottom: 17px;
    left: max(24px, calc((100vw - var(--content-width)) / 2));
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #71838c;
    font-size: 8px;
    letter-spacing: .16em;
}
@keyframes orbit { to { transform: rotate(360deg); } }

.section-shell { width: min(var(--content-width), calc(100% - 48px)); margin: 0 auto; }
.info-section { padding-top: 65px; padding-bottom: 72px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-heading h2, .visitor-copy h2 { margin: 0; color: var(--ink); font-size: clamp(28px, 3.5vw, 36px); line-height: 1.15; letter-spacing: -.025em; }
.section-heading__note { margin: 0 0 3px; color: var(--muted); font-size: 11px; line-height: 1.6; text-align: right; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.info-block {
    min-height: 210px;
    padding: 24px 23px;
    position: relative;
    border: 1px solid #dce0df;
    border-top: 3px solid var(--blue);
    background: rgba(255,255,255,.9);
    box-shadow: 0 5px 18px rgba(24,36,43,.035);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.info-block:hover { transform: translateY(-4px); border-top-color: var(--red); box-shadow: var(--shadow); }
.card-index { display: block; margin-bottom: 20px; color: #8a989f; font-size: 8px; letter-spacing: .17em; }
.info-block h3 { margin: 0 0 11px; color: #263139; font-size: 18px; }
.info-block p { margin: 0 0 10px; color: #606b71; font-size: 13px; line-height: 1.7; }
.info-block p:last-child { margin-bottom: 0; }
.info-block strong { color: #39454d; }

.news-section { padding: 65px 0 72px; background: #29343b; }
.section-heading--light h2 { color: #fff; }
.section-heading--light .section-heading__note { color: #aab8be; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.news-block { min-height: 218px; padding: 25px 24px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.055); transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.news-block:hover { transform: translateY(-4px); background: rgba(255,255,255,.09); border-color: rgba(155,184,196,.65); }
.news-date { display: block; margin-bottom: 22px; color: #91b0bd; font-size: 8px; letter-spacing: .18em; }
.news-block h3 { margin: 0 0 12px; color: #fff; font-size: 18px; line-height: 1.35; }
.news-block p { margin: 0; color: #c0c9cd; font-size: 13px; line-height: 1.7; }

.visitor-section { padding: 66px 0 72px; background: #e5e8e7; }
.visitor-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr); align-items: center; gap: 64px; }
.visitor-copy p:not(.eyebrow) { max-width: 560px; color: #5d6970; font-size: 14px; line-height: 1.8; }
.visitor-copy__note { color: #8a969b !important; font-size: 11px !important; }
.guest-form { padding: 27px; border: 1px solid #d2d9d9; background: #f8f9f8; box-shadow: 0 10px 30px rgba(28,43,50,.07); }
.guest-form label, .modal label { display: block; margin-bottom: 8px; color: #45535b; font-size: 12px; font-weight: 700; }
.guest-form__row { display: flex; gap: 9px; }
.guest-form input, .input-field {
    width: 100%;
    min-width: 0;
    padding: 12px 13px;
    border: 1px solid #c8d0d2;
    border-radius: 2px;
    outline: none;
    background: #fff;
    color: #263139;
    font-size: 13px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.guest-form input:focus, .input-field:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(71,119,140,.13); }
.guest-form__hint { margin: 12px 0 0; color: #879196; font-size: 10px; line-height: 1.6; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 10px 17px; border: 0; border-radius: 2px; cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; transition: background .2s ease, transform .2s ease, opacity .2s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:focus-visible { outline: 3px solid rgba(71,119,140,.35); outline-offset: 2px; }
.button:disabled { opacity: .65; cursor: wait; }
.button--primary { background: var(--red); color: #fff; }
.button--primary:hover:not(:disabled) { background: var(--red-dark); }
.button--secondary { background: #59636a; color: #fff; }
.button--secondary:hover:not(:disabled) { background: #424b51; }
.button--full { width: 100%; margin-top: 13px; }
.button-spinner { width: 13px; height: 13px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { min-height: 0; margin: 0; font-size: 11px; line-height: 1.5; }
.form-status:not(:empty) { margin-top: 12px; }
.form-status--success { color: #287448; }
.form-status--error { color: #a32d32; }

.site-footer { padding: 18px 0; background: #1d252a; color: #aab5ba; }
.site-footer__inner { width: min(var(--content-width), calc(100% - 48px)); margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; font-size: 10px; }
.site-footer__tagline { color: #71838c; font-size: 8px; letter-spacing: .15em; }

.modal-backdrop { position: fixed; z-index: 20; inset: 0; background: rgba(10,16,20,.72); opacity: 0; transition: opacity .2s ease; }
.modal-backdrop.is-open { opacity: 1; }
.modal {
    position: fixed;
    z-index: 21;
    top: 50%;
    left: 50%;
    width: min(430px, calc(100vw - 34px));
    max-height: min(90vh, 760px);
    overflow-y: auto;
    padding: 29px;
    border: 1px solid #65737b;
    border-top: 3px solid var(--red);
    background: #202a31;
    color: #fff;
    box-shadow: 0 20px 65px rgba(0,0,0,.42);
    opacity: 0;
    transform: translate(-50%, calc(-50% + 10px));
    transition: opacity .2s ease, transform .2s ease;
}
.modal.is-open { opacity: 1; transform: translate(-50%, -50%); }
.modal__topline { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.13); color: #8da6b1; font-size: 8px; letter-spacing: .14em; }
.modal__icon { width: 38px; height: 38px; margin: 22px auto 13px; display: grid; place-items: center; border: 1px solid #b74b50; border-radius: 50%; color: #e18b8e; font-size: 23px; font-weight: 700; }
.modal h2 { margin: 18px 0 8px; color: #fff; font-size: 25px; text-align: center; }
.modal > p:not(.eyebrow) { color: #c0c9cd; font-size: 13px; line-height: 1.65; text-align: center; }
.modal__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.modal--login { padding-top: 24px; }
.modal--login .eyebrow { margin-top: 22px; text-align: center; }
.modal--login h2 { margin-top: 0; }
.modal__description { margin: 0 0 21px; }
.modal form { text-align: left; }
.modal label { margin-top: 13px; color: #c4ced2; }
.modal .input-field { background: #f9faf9; }
.modal__close { position: absolute; top: 12px; right: 13px; width: 30px; height: 30px; border: 0; background: transparent; color: #aebbc1; font-size: 24px; cursor: pointer; }
.modal__close:hover { color: #fff; }
.modal__guest-link { margin: 19px 0 0; color: #aebbc1 !important; font-size: 11px !important; }
.modal__guest-link a { color: #a6c3cf; text-decoration: underline; text-underline-offset: 3px; }
.modal__guest-link a:hover { color: #fff; }
.form-status--modal { text-align: center; }
.toast { position: fixed; z-index: 30; top: 20px; left: 50%; width: min(440px, calc(100vw - 30px)); padding: 13px 17px; transform: translateX(-50%); border-left: 3px solid var(--red); background: #29343b; color: #fff; box-shadow: 0 10px 35px rgba(0,0,0,.25); font-size: 12px; text-align: center; }
.toast.is-success { border-left-color: #65a57d; }

.js-ready .reveal { opacity: 0; transform: translateY(18px); }
.js-ready .reveal.visible { opacity: 1; transform: translateY(0); transition: opacity .65s ease, transform .65s ease; }

@media (max-width: 900px) {
    .hero { min-height: 390px; }
    .hero__visual { width: min(290px, 32vw); }
    .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .visitor-layout { gap: 35px; }
}
@media (max-width: 650px) {
    .site-header__inner, .section-shell, .site-footer__inner { width: min(100% - 32px, var(--content-width)); }
    .site-header__inner { min-height: 70px; }
    .header-note { display: none; }
    .hidden-trigger { right: 0; top: 12px; }
    .hero { min-height: 0; padding: 55px 20px 66px; }
    .hero__content { width: 100%; }
    .hero__visual { position: absolute; right: -85px; bottom: 24px; width: 230px; opacity: .28; }
    .hero__description { max-width: 440px; font-size: 13px; }
    .hero__bottom-line { right: 20px; left: 20px; font-size: 7px; }
    .hero__bottom-line span:last-child { text-align: right; }
    .info-section, .news-section, .visitor-section { padding-top: 47px; padding-bottom: 52px; }
    .section-heading { align-items: start; flex-direction: column; gap: 10px; }
    .section-heading__note { text-align: left; }
    .info-grid, .news-grid { grid-template-columns: 1fr; }
    .info-block { min-height: 0; }
    .news-block { min-height: 0; }
    .visitor-layout { grid-template-columns: 1fr; gap: 24px; }
    .guest-form { padding: 19px; }
    .guest-form__row { flex-direction: column; }
    .guest-form__row .button { width: 100%; }
    .site-footer__inner { flex-direction: column; gap: 6px; }
    .modal { padding: 23px 19px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Дополнительные элементы обновлённой публичной страницы */
.guest-step h3 { margin: 0 0 14px; color: #2d3940; font-size: 19px; }
.guest-step__description { margin: 0 0 14px; color: #65717a; font-size: 12px; line-height: 1.6; }
.guest-input-single { width: 100%; min-width: 0; padding: 12px 13px; border: 1px solid #c8d0d2; border-radius: 2px; outline: none; background: #fff; color: #263139; font: inherit; font-size: 13px; transition: border-color .2s ease, box-shadow .2s ease; }
.guest-input-single:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(71,119,140,.13); }
#guestCode { max-width: 220px; letter-spacing: .28em; font-size: 19px; text-align: center; }
.text-button { display: inline-block; margin-top: 12px; padding: 4px 0; border: 0; background: transparent; color: #547c8c; font-size: 11px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: var(--red); }
.legal-section { padding: 38px 0 42px; border-top: 1px solid #d3d9d8; background: #f1f2f0; }
.legal-section__inner { max-width: 900px; }
.legal-section h2 { margin: 0 0 14px; color: #303b42; font-size: 22px; }
.legal-section p:not(.eyebrow) { margin: 0 0 10px; color: #626e74; font-size: 12px; line-height: 1.8; }
.legal-section strong { color: #39474e; }
.site-footer { border-top: 1px solid rgba(255,255,255,.08); }

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

.site-footer__support { color: #aebbc2; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__support:hover { color: #fff; }
