/* Base theme styles */
html {
    border: 0;
    outline: none;
    box-shadow: none;
}

body {
    margin: 0;
    border: 0;
    outline: none;
    box-shadow: none;
    font-family: Arial, sans-serif;
    background: #0a0a0a;
    color: #d4d4d4;
}

.container {
    box-sizing: border-box;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (max-width: 1200px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 120;
    padding: 0;
    background: rgba(11, 13, 18, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

body.admin-bar .site-header {
    top: 32px;
}

.site-header__inner {
    border: none;
    background: transparent;
}

/* Home: header floats over hero video — see .has-transparent-header below */
body.has-transparent-header .site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    padding-top: 0;
    background: rgba(6, 8, 12, 0.28);
}

body.has-transparent-header .site-header__inner {
    background: transparent;
    border: none;
}

body.has-transparent-header .site-header__tagline {
    color: rgba(255, 255, 255, 0.88);
}

body.has-transparent-header .site-header__brand {
    color: #f2f4f4;
}

body.has-transparent-header .site-header__meta a,
body.has-transparent-header .site-header__menu a,
body.has-transparent-header .contact-pill-button,
body.has-transparent-header .site-header__menu-toggle {
    color: #ffffff;
}

body.has-transparent-header .contact-pill-button {
    border-color: rgba(255, 255, 255, 0.72);
}

body.admin-bar.has-transparent-header .site-header {
    top: 32px;
}

body.has-policy-header-dark .site-header__tagline,
body.has-policy-header-dark .site-header__brand,
body.has-policy-header-dark .site-header__meta a,
body.has-policy-header-dark .site-header__menu a,
body.has-policy-header-dark .site-header__menu .current-menu-item > a,
body.has-policy-header-dark .site-header__menu .current_page_item > a,
body.has-policy-header-dark .contact-pill-button,
body.has-policy-header-dark .site-header__menu-toggle {
    color: #0a0a0a;
}

body.has-policy-header-dark .contact-pill-button {
    border-color: rgba(10, 10, 10, 0.4);
}

body.has-policy-header-dark .site-header__brand-dot {
    background: #0a0a0a;
}

body.has-policy-header-dark .site-header {
    background: rgba(239, 234, 234, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

body.has-policy-header-dark {
    background: #efeaea;
}

body.has-policy-header-dark .site-header__row--top {
    display: flex;
}

body.has-policy-header-dark .site-header__row--main {
    padding-top: 2px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }

    body.admin-bar.has-transparent-header .site-header {
        top: 46px;
    }
}

.site-header__row--top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0 0;
}

.site-header__tagline {
    margin: 0;
    font-size: 11px;
    line-height: 1.2;
    color: #a9a9a9;
}

.site-header__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
}

.site-header__meta a {
    color: #bdbdbd;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-header__meta img {
    display: block;
    width: 16px;
    height: 16px;
}

.site-header__row--main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    min-height: 50px;
    padding: 2px 0 10px;
}

.site-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: start;
    color: #d8d8d8;
    text-decoration: none;
    font-size: 16px;
}

.site-header__brand-dot {
    width: 16px;
    height: 16px;
    border-radius: 9999px;
    background: #f2f2f2;
}

.site-header__nav {
    width: 100%;
}

.site-header__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header__menu a {
    color: #b6b6b6;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
}

.site-header__menu .current-menu-item > a,
.site-header__menu .current_page_item > a {
    color: #f1f1f1;
}

.site-header__menu-toggle {
    display: none;
    box-sizing: border-box;
    margin: 0;
    padding: 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #f2f2f2;
    cursor: pointer;
    line-height: 0;
}

.site-header__menu-toggle:focus-visible {
    outline: 2px solid #f2f2f2;
    outline-offset: 2px;
}

body.site-header-menu-open .site-header__menu-toggle:focus-visible {
    outline-color: #0a0a0a;
}

.site-header__menu-toggle-box {
    position: relative;
    display: block;
    width: 22px;
    height: 18px;
}

.site-header__menu-toggle-bar {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.site-header__menu-toggle-bar:nth-child(1) {
    top: 1px;
}

.site-header__menu-toggle-bar:nth-child(2) {
    top: 8px;
}

.site-header__menu-toggle-bar:nth-child(3) {
    top: 15px;
}

body.site-header-menu-open .site-header__menu-toggle-bar:nth-child(1) {
    top: 8px;
    transform: rotate(45deg);
}

body.site-header-menu-open .site-header__menu-toggle-bar:nth-child(2) {
    opacity: 0;
}

body.site-header-menu-open .site-header__menu-toggle-bar:nth-child(3) {
    top: 8px;
    transform: rotate(-45deg);
}

body.site-header-menu-open .site-header__menu-toggle {
    color: #0a0a0a;
}

body.site-header-menu-open .site-header__menu-toggle-bar {
    height: 1px;
    border-radius: 0;
}

@media (min-width: 961px) {
    .site-header__nav-scrim {
        display: none !important;
    }

    .site-header__drawer {
        display: contents;
    }

    .site-header__drawer-foot {
        display: none !important;
    }

    .site-footer__tagline-line {
        display: inline;
    }

    .site-footer__tagline-line + .site-footer__tagline-line::before {
        content: " ";
    }
}

.contact-pill-button {
    width: 81px;
    height: 33px;
    border: 2px solid #4e4e4e;
    border-radius: 9999px;
    background: transparent;
    color: #dcdcdc;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}

.site-main {
    min-height: 40vh;
}

.site-footer {
    padding: 24px 0 16px;
}

/* Footer panel lives inside the shared site container. */
.site-footer .site-footer__inner {
    position: relative;
    box-sizing: border-box;
    border: none;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    overflow: hidden;
    background-color: #06080d;
    padding: 34px 16px 14px;
}

.site-footer__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.site-footer__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 8, 13, 0.5) 0%, rgba(6, 8, 13, 0.78) 100%);
    z-index: 1;
}

.site-footer__bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    display: block;
}

.site-footer__main {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(200px, 1.1fr) minmax(0, 3fr);
    gap: 40px 48px;
    align-items: start;
}

.site-footer__links-area {
    display: flex;
    flex-direction: column;
    gap: 63px;
    min-width: 0;
    margin-left: auto;
    align-items: flex-end;
}

.site-footer__row--nav-1 {
    display: grid;
    grid-template-columns: 145px 145px 145px 146px;
    column-gap: 16px;
    row-gap: 0;
    width: 629px;
    max-width: 629px;
}

.site-footer__row--nav-2 {
    display: grid;
    grid-template-columns: 145px 146px 306px;
    column-gap: 16px;
    row-gap: 0;
    align-items: start;
    width: 629px;
    max-width: 629px;
}

.site-footer__tagline {
    margin: 0 0 14px;
    font-size: 11px;
    color: #9ea2ac;
    line-height: 1.35;
}

.site-footer__tagline-line {
    display: block;
}

.site-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dfe2e9;
    text-decoration: none;
}

.site-footer__brand-dot {
    width: 16px;
    height: 16px;
    border-radius: 9999px;
    background: #f2f2f2;
}

.site-footer__brand-mark {
    display: none;
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.site-footer__column-title {
    display: inline-block;
    margin-bottom: 8px;
    color: #f2f4f8;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
}

.site-footer__column-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.site-footer__column-list a {
    color: #9ea5b3;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.25;
}

.site-footer__connect-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: #f2f4f8;
}

.site-footer__connect {
    width: 306px;
    max-width: 100%;
    box-sizing: border-box;
}

.site-footer__connect p {
    margin: 0 0 8px;
    font-size: 13px;
    color: #a7acb6;
    overflow-wrap: break-word;
}

.site-footer__connect-meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.site-footer__connect-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.site-footer__connect p.site-footer__connect-email,
.site-footer__connect p.site-footer__connect-phone {
    margin-bottom: 0;
}

.site-footer__connect a {
    color: #d8deea;
}

.site-footer__connect a:hover,
.site-footer__connect a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer__map {
    width: 306px;
    max-width: 100%;
    box-sizing: border-box;
    aspect-ratio: 306 / 107;
    height: 107px;
    margin-bottom: 12px;
    border: 1px solid #50555f;
    border-radius: 10px;
    display: block;
    filter: none;
}

.site-footer__linkedin {
    display: inline-flex;
    flex: 0 0 auto;
    line-height: 0;
}

.site-footer__linkedin img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.site-footer__bottom {
    position: relative;
    z-index: 2;
    margin-top: 26px;
    padding-top: 10px;
    border-top: 1px solid #1a1f2a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-footer__bottom p {
    margin: 0;
    font-size: 11px;
    color: #8a909b;
}

.site-scroll-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 190;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    background: rgba(11, 13, 18, 0.9);
    color: #f5f6f8;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.site-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.site-scroll-top:hover,
.site-scroll-top:focus-visible {
    border-color: rgba(255, 255, 255, 0.75);
    background: rgba(20, 22, 28, 0.98);
}

.site-scroll-top svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 960px) {
    body.site-header-menu-open {
        overflow: hidden;
    }

    .site-header__row--top {
        display: contents;
    }

    .site-header__row--main {
        display: contents;
    }

    .site-header__inner {
        position: relative;
        z-index: 120;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: flex-end;
        column-gap: 10px;
        row-gap: 6px;
        padding: 12px 16px 14px;
    }

    .site-header__tagline {
        flex: 1 1 0;
        min-width: 0;
        max-width: calc(100% - 48px);
        margin-right: auto;
        order: 1;
        color: rgba(255, 255, 255, 0.92);
        font-size: 10px;
        line-height: 1.35;
    }

    body:not(.has-transparent-header) .site-header__tagline {
        color: #c8c8c8;
    }

    body.has-policy-header-dark .site-header__tagline {
        color: #0a0a0a;
    }

    .site-header__meta {
        display: none;
    }

    .site-header__menu-toggle {
        display: inline-flex;
        order: 2;
        flex: 0 0 auto;
        margin-top: 0;
        color: #f0f0f0;
    }

    body:not(.has-transparent-header) .site-header__menu-toggle {
        color: #d2d2d2;
    }

    body.has-policy-header-dark .site-header__menu-toggle {
        color: #0a0a0a;
    }

    body.site-header-menu-open .site-header__menu-toggle {
        position: fixed;
        top: 16px;
        right: 16px;
        z-index: 260;
        margin-top: 0;
    }

    body.admin-bar.site-header-menu-open .site-header__menu-toggle {
        top: 48px;
    }

    @media (max-width: 782px) {
        body.admin-bar.site-header-menu-open .site-header__menu-toggle {
            top: 62px;
        }
    }

    .site-header__brand {
        flex: 1 1 100%;
        order: 3;
        font-size: 15px;
        color: #f4f4f4;
    }

    body:not(.has-transparent-header) .site-header__brand {
        color: #d8d8d8;
    }

    body.has-policy-header-dark .site-header__brand {
        color: #0a0a0a;
    }

    .site-header__nav {
        order: 4;
        position: fixed;
        inset: 0;
        z-index: 250;
        width: 100%;
        height: 100%;
        min-height: 100dvh;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        overflow: hidden;
        overscroll-behavior: contain;
        pointer-events: none;
        visibility: hidden;
        background: transparent;
        transition: visibility 0.3s ease;
    }

    body.site-header-menu-open .site-header__nav {
        pointer-events: auto;
        visibility: visible;
    }

    .site-header__nav-scrim {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        transition: opacity 0.28s ease;
    }

    body.site-header-menu-open .site-header__nav-scrim {
        opacity: 1;
    }

    /* Макет: панель 195×~844 (высота экрана) */
    .site-header__drawer {
        position: absolute;
        top: 0;
        right: 0;
        width: 195px;
        max-width: min(195px, 100vw);
        height: 100%;
        max-height: 100dvh;
        background: #d4d4d4;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        /* Отступ сверху: список пунктов (включая Home) ниже фиксированного крестика */
        padding: 88px 0 12px;
        transform: translateX(100%);
        transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18);
    }

    body.site-header-menu-open .site-header__drawer {
        transform: translateX(0);
    }

    .site-header__menu {
        flex: 1 1 auto;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 12px 0 0;
    }

    .site-header__menu > li {
        margin: 0;
        border-top: 1px solid #b0b0b0;
    }

    .site-header__menu > li:first-child {
        border-top: none;
    }

    .site-header__menu > li > a {
        display: block;
        padding: 11px 14px;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.25;
        color: #0a0a0a;
        background: transparent;
        text-decoration: none;
    }

    .site-header__menu .current-menu-item > a,
    .site-header__menu .current_page_item > a {
        background: #ffffff;
        color: #0a0a0a;
    }

    .site-header__drawer-foot {
        flex: 0 0 auto;
        margin-top: auto;
        padding: 16px 14px 20px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .site-header__drawer-email {
        font-size: 11px;
        line-height: 1.35;
        color: #0a0a0a;
        text-decoration: underline;
    }

    .site-header__drawer-email:hover,
    .site-header__drawer-email:focus-visible {
        color: #0a0a0a;
    }

    .site-header__drawer-linkedin {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        box-sizing: border-box;
        text-decoration: none;
        line-height: 0;
    }

    .site-header__drawer-linkedin img {
        display: block;
        width: 42px;
        height: 42px;
        object-fit: contain;
    }

    .site-header__nav .sub-menu {
        display: none;
    }

    .site-header__action {
        display: none;
    }

    .site-footer__brand-dot {
        display: none;
    }

    .site-footer__brand-mark {
        display: block;
    }

    .site-footer__brand {
        gap: 10px;
    }

    .site-footer__links-area {
        align-items: stretch;
        margin-left: 0;
        gap: 40px;
        width: 100%;
        max-width: 100%;
    }

    .site-footer__main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .site-footer__row--nav-1 {
        width: 100%;
        max-width: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 40px;
        row-gap: 28px;
    }

    .site-footer__row--nav-2 {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        grid-template-columns: minmax(0, 1fr);
        row-gap: 40px;
    }

    .site-footer__row--nav-2 > * {
        min-width: 0;
        max-width: 100%;
    }

    .site-footer__connect,
    .site-footer__map {
        width: 100%;
        max-width: 100%;
    }

    .site-footer__linkedin img {
        width: 40px;
        height: 40px;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-scroll-top {
        right: 14px;
        bottom: 14px;
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer__bg-video {
        display: none;
    }

    .site-footer__bg::after {
        display: none;
    }
}

/* Cookie Consent page */
body.page-cookie-consent .site-header,
body.page-cookie-consent .site-footer {
    display: none;
}

body.page-cookie-consent .site-main {
    min-height: 100vh;
}

.cookie-consent-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #444444;
}

.cookie-consent-page__panel {
    box-sizing: border-box;
    width: 494px;
    height: 203px;
    opacity: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 17px;
    padding: 24px;
    border-radius: 24px;
    background: #eceaea;
    color: #111111;
}

.cookie-consent-page__title {
    margin: 0;
    font-family: 'PP Neue Montreal', 'Neue Montreal', Arial, sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1;
    letter-spacing: 0;
}

.cookie-consent-page__text {
    margin: 2px 0 0;
    font-family: 'PP Neue Montreal', 'Neue Montreal', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0;
}

.cookie-consent-page__actions {
    display: flex;
    align-items: center;
    width: 281px;
    height: 35px;
    gap: 23px;
}

.cookie-consent-page__button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 35px;
    height: 35px;
    padding: 0 16px;
    border-radius: 9999px;
    font-size: 16px;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}

.cookie-consent-page__button--primary {
    border: 1px solid #000000;
    background: #000000;
    color: #ffffff;
}

.cookie-consent-page__button--secondary {
    border: 1px solid #1a1a1a;
    background: transparent;
    color: #1a1a1a;
}

@media (max-width: 560px) {
    .cookie-consent-page {
        position: fixed;
        inset: 0;
        z-index: 9999;
        justify-content: flex-end;
        padding: 16px;
    }

    .cookie-consent-page__panel {
        width: 100%;
        max-width: 494px;
        height: auto;
        min-height: 203px;
        gap: 14px;
        padding: 20px;
    }

    .cookie-consent-page__title {
        font-size: 30px;
    }

    .cookie-consent-page__text {
        font-size: 13px;
    }

    .cookie-consent-page__actions {
        width: 100%;
        height: auto;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .cookie-consent-page__button {
        flex: 1 1 0;
        max-width: 100%;
        min-width: 0;
        padding: 0 8px;
        font-size: 12px;
    }
}
