:root {
    --ink: #242129;
    --muted: #67656d;
    --purple: #60237b;
    --purple-dark: #3f1754;
    --lime: #c9d30f;
    --line: #e4e3e7;
    --paper: #ffffff;
    --soft: #f4f5f6;
    --shadow: 0 22px 55px rgba(32, 28, 35, .16);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, Arial, Helvetica, sans-serif;
    line-height: 1.65;
    background: #e8e9ea;
}

body.cookie-banner-visible {
    padding-bottom: 120px;
}

body.nav-open {
    overflow: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 99990;
    isolation: isolate;
    overflow: visible;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(36, 33, 41, .08);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(1180px, calc(100% - 40px));
    min-height: 86px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand img {
    width: 118px;
    display: block;
}

.main-nav {
    position: relative;
    z-index: 99992;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item,
.has-sub {
    position: relative;
}

.nav-list > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 13px;
    border-radius: 6px;
    color: #2d2931;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease;
}

.nav-list > li > a:hover,
.nav-list > li > a:focus {
    color: var(--purple);
    background: rgba(96, 35, 123, .08);
}

.has-sub > a::after {
    content: "\f107";
    margin-left: 8px;
    font: normal 900 11px/1 "Font Awesome 6 Free";
}

.submenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 245px;
    display: none;
    padding: 8px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.submenu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.submenu a {
    display: block;
    padding: 10px 12px;
    border-radius: 5px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

.submenu a:hover {
    color: var(--purple);
    background: var(--soft);
}

@media (min-width: 861px) {
    .has-sub:hover .submenu,
    .has-sub:focus-within .submenu {
        display: block;
    }
}

.nav-toggle {
    display: none;
    position: relative;
    z-index: 99993;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
    transition: transform .18s ease, opacity .18s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.hero {
    background-position: center;
    background-size: cover;
    color: #fff;
}

.hero-inner {
    width: min(1180px, calc(100% - 40px));
    min-height: clamp(560px, 70vh, 720px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .8fr);
    gap: 42px;
    align-items: center;
    padding: 64px 0 76px;
}

.hero-copy {
    max-width: 680px;
}

.hero-kicker {
    margin: 0 0 14px;
    color: var(--lime);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(42px, 6vw, 76px);
    line-height: .98;
    letter-spacing: 0;
}

.hero-copy > p:not(.hero-kicker) {
    max-width: 640px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .9);
    font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 800;
}

.btn-primary {
    color: var(--purple-dark);
    background: var(--lime);
}

.btn-primary:hover {
    background: #dce742;
}

.btn-secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .08);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, .16);
}

.hero-panels {
    display: grid;
    gap: 12px;
}

.hero-panel {
    display: block;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    background: rgba(255, 255, 255, .13);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .12);
    backdrop-filter: blur(10px);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.hero-panel:hover,
.hero-panel:focus,
.hero-panel.is-active {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .23);
    border-color: rgba(201, 211, 15, .8);
}

.hero-panel span {
    display: block;
    color: var(--lime);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.hero-panel strong {
    display: block;
    margin-top: 6px;
    color: #fff;
    font-size: 16px;
    line-height: 1.45;
}

.site-main {
    background: var(--paper);
}

.content-wrapper,
.doc-wrapper,
.list-page,
.contact-section {
    width: min(1000px, calc(100% - 40px));
    margin: 0 auto;
    padding: 58px 0 72px;
}

.content-wrapper,
.doc-content,
.content_mid,
.text_doc,
.list_text {
    color: #44414a;
    font-size: 17px;
}

.content-wrapper h1,
.content-wrapper h2,
.doc-title,
.title_doc,
.contact-intro h1 {
    margin: 0 0 18px;
    color: var(--purple);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
}

.content-wrapper p,
.doc-content p,
.content_mid p {
    margin: 0 0 16px;
}

.content-wrapper ul,
.doc-content ul,
.content_mid ul {
    padding-left: 22px;
}

.content-wrapper li,
.doc-content li,
.content_mid li {
    margin-bottom: 8px;
}

.bottom-band {
    background: #f3f4f4;
    border-top: 1px solid var(--line);
}

.bottom-grid {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.bottom-grid h2,
.footer-col h3 {
    margin: 0 0 12px;
    color: var(--purple);
    font-size: 18px;
}

.bottom-grid p {
    margin: 0 0 12px;
    color: var(--muted);
}

.text-link,
.bottom-grid a {
    color: var(--purple);
    font-weight: 800;
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.main-footer {
    color: #fff;
    background: var(--purple);
}

.footer-inner {
    width: min(1180px, calc(100% - 40px));
    min-height: 58px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-size: 14px;
}

.footer-nav {
    display: flex;
    gap: 18px;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.cookie-banner {
    position: fixed;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 2000;
}

.cookie-banner__inner {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #fff;
    background: #2d2931;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.cookie-banner__text {
    font-size: 14px;
}

.cookie-banner__text a {
    color: var(--lime);
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.cookie-banner__button {
    min-height: 38px;
    padding: 9px 13px;
    border: 0;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
}

.cookie-banner__button--primary {
    color: var(--purple-dark);
    background: var(--lime);
}

.cookie-banner__button--secondary {
    color: #fff;
    background: rgba(255, 255, 255, .16);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr);
    gap: 26px;
    align-items: start;
}

.contact-left,
.contact-right {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(32, 28, 35, .08);
}

.contact-card-title {
    margin: 0 0 18px;
    color: var(--purple);
    font-size: 22px;
}

.contact-info-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-info-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.contact-info-icon {
    width: 22px;
    color: var(--purple);
    text-align: center;
}

.contact-map-frame {
    width: 100%;
    height: 240px;
    border: 0;
    border-radius: 8px;
}

.contact-route-link,
.contact-submit,
.linkBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    color: #fff !important;
    background: var(--purple);
    font-weight: 800;
    cursor: pointer;
}

.contact-route-link:hover,
.contact-submit:hover,
.linkBtn:hover {
    background: var(--purple-dark);
}

.contact-form-grid {
    display: grid;
    gap: 16px;
}

.contact-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-weight: 700;
}

.contact-field input,
.contact-field textarea,
input,
select,
textarea {
    width: 100%;
    border: 1px solid #d7d6dc;
    border-radius: 6px;
    padding: 11px 12px;
    color: var(--ink);
    font: inherit;
    background: #fff;
}

.contact-field textarea,
textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-success,
.contact-error {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 6px;
    font-weight: 700;
}

.contact-success {
    color: #245002;
    background: #edf6d3;
}

.contact-error {
    color: #831d1d;
    background: #fdeaea;
}

.list_wrapper,
.item_wrapper,
.ref_wr_middle {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.list_title,
.item_title,
.ref_title {
    color: var(--purple);
    font-weight: 800;
}

@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-panels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .header-inner {
        width: min(100% - 28px, 1180px);
        min-height: 74px;
    }

    .brand img {
        width: 98px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        right: -14px;
        left: auto;
        z-index: 99991 !important;
        width: 100vw;
        min-height: calc(100vh - 74px);
        min-height: calc(100dvh - 74px);
        display: none;
        align-items: stretch;
        gap: 0;
        padding: 18px 20px 40px;
        overflow-y: auto;
        background: #fff !important;
        border-top: 1px solid var(--line);
        box-shadow: 0 24px 60px rgba(32, 28, 35, .18);
    }

    .nav-list.show {
        display: block !important;
    }

    .nav-list > li > a {
        width: 100%;
        justify-content: space-between;
        min-height: 50px;
        font-size: 17px;
    }

    .submenu {
        position: static;
        display: none;
        min-width: 0;
        margin: 0 0 8px;
        border: 0;
        box-shadow: none;
        background: var(--soft);
    }

    .has-sub.open .submenu {
        display: block;
    }

    .bottom-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        padding: 16px 0;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .hero-inner {
        width: min(100% - 28px, 1180px);
        padding: 42px 0 52px;
    }

    .hero-panels {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 40px;
    }

    .content-wrapper,
    .doc-wrapper,
    .list-page,
    .contact-section,
    .bottom-grid,
    .footer-inner {
        width: min(100% - 28px, 1180px);
    }

    .cookie-banner__inner,
    .hero-actions,
    .cookie-banner__actions {
        flex-direction: column;
        align-items: stretch;
    }
}
