@font-face {
    font-family: "Atyp Display";
    src: url("../fonts/atyp-display-semibold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Font Awesome 6 Free";
    src: url("../fonts/FontAwesome6FreeSolid.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Poppins";
    src: url("../fonts/Poppins-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ОСНОВА */

:root {
    --font-family: "Inter", sans-serif;
    --second-family: "Bricolage Grotesque", sans-serif;
    --third-family: "Open Sans", sans-serif;
    --font3: "Font Awesome 6 Free", sans-serif;
    --font4: "Poppins", sans-serif;
    --font5: "Montserrat", sans-serif;
    --font6: "Atyp Display", sans-serif;
    --font7: "Roboto", sans-serif;
    --color-dark: #051c28;
    --color-accent: #0098bf;
    --color-muted: #61646b;
    --color-card: #edf1f2;
    --section-space: clamp(56px, 8vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body {
    width: 100%;
    position: relative;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #000;
    background: #fff;
}
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}
.container {
    width: 100%;
    max-width: 1324px;
    margin-inline: auto;
    padding-inline: clamp(16px, 3vw, 32px);
}

/* ХЕДЕР */

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: transparent;
    z-index: 100;
}
.navbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.navbar_logo { display: flex; flex-shrink: 0; }
.navbar_logo--icon, .navbar_logo--icon-dark {
    width: 91px;
    height: 56px;
    object-fit: contain;
}
.navbar_logo--icon { display: block; }
.navbar_logo--icon-dark { display: none; }
.navbar_menu { display: flex; align-items: center; gap: clamp(20px, 3.5vw, 48px); }
.navbar_menu--link, .navbar_lang--link, .navbar_lang--label {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: #fff;
}
.navbar_item, .navbar_lang {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}
.navbar_lang { flex-shrink: 0; gap: 8px; }
.navbar_lang--icon, .navbar_lang--icon-blue { width: 24px; height: 24px; }
.navbar_lang--icon-blue { display: none; }
.navbar_drop--toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 36px;
    padding: 4px;
    border: 0;
    background: none;
    color: inherit;
}
.navbar_drop--icon { display: block; width: 20px; height: 20px; transition: transform .2s; }
.navbar_drop--toggle[aria-expanded="true"] .navbar_drop--icon { transform: rotate(180deg); }
.navbar_dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    padding: 8px 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgb(0 0 0 / 10%);
    z-index: 110;
}
.navbar_dropdown.is-open { display: block; }
.navbar_dropdown--right { right: 0; left: auto; min-width: 80px; }
.navbar_dropdown a {
    display: block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-dark);
    white-space: nowrap;
}
.navbar_dropdown a:hover, .navbar_dropdown a[aria-current="true"] {
    background: #edf5f7;
    color: var(--color-accent);
}
@media (hover: hover) and (pointer: fine) {
    .navbar_item:hover > .navbar_dropdown,
    .navbar_lang:hover > .navbar_dropdown { display: block; }
}

/* Поддержка светлого состояния хедера */
.header.is-scrolled, .header.header--solid {
    background: #fff;
    box-shadow: 0 4px 24px rgb(5 28 40 / 8%);
}
.header:is(.is-scrolled, .header--solid) .navbar_logo--icon,
.header:is(.is-scrolled, .header--solid) .navbar_lang--icon { display: none; }
.header:is(.is-scrolled, .header--solid) .navbar_logo--icon-dark,
.header:is(.is-scrolled, .header--solid) .navbar_lang--icon-blue { display: block; }
.header:is(.is-scrolled, .header--solid) .navbar_menu--link,
.header:is(.is-scrolled, .header--solid) .navbar_lang--label { color: var(--color-dark); }
.header:is(.is-scrolled, .header--solid) .navbar_drop--icon { filter: brightness(0); }
.header:is(.is-scrolled, .header--solid) .navbar_burger--line { background: var(--color-dark); }

/* МОБИЛЬНОЕ МЕНЮ */

.navbar_burger {
    display: none;
    position: relative;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 4px;
    border: 0;
    background: none;
}
.navbar_burger--line {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: #fff;
    transition: transform .3s, opacity .3s;
}
.mobile_menu {
    position: fixed;
    top: 0;
    right: -100%;
    display: flex;
    flex-direction: column;
    width: 340px;
    max-width: 90vw;
    height: 100vh;
    height: 100dvh;
    padding: 24px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    background: #fff;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    transition: right .35s, visibility .35s;
    z-index: 1100;
}
.mobile_menu.is-open { right: 0; visibility: visible; }
.mobile_menu--head { display: flex; align-items: center; justify-content: flex-end; margin-bottom: 24px; }
.mobile_menu--phone { margin-right: auto; font-size: 16px; color: #111; text-decoration: underline; }
.mobile_menu--close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    font-size: 24px;
    line-height: 1;
    color: #111;
}
.mobile_menu--links { flex: 1; }
.mobile_menu--links > li { border-bottom: 1px solid #f0f0f0; }
.mobile_menu--links .navbar_item { display: block; position: static; }
.mobile_link--row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mobile_menu--link { display: block; padding: 16px 0; font-size: 17px; color: #111; }
.mobile_drop--toggle {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 0;
    background: none;
}
.mobile_drop--toggle .navbar_drop--icon { width: 18px; height: 18px; filter: brightness(0); }
.mobile_menu .navbar_item.is-open .mobile_drop--toggle .navbar_drop--icon { transform: rotate(180deg); }
.mobile_dropdown { display: none; padding: 0 0 12px 16px; }
.mobile_menu .navbar_item.is-open .mobile_dropdown { display: block; }
.mobile_dropdown a { display: block; padding: 10px 0; font-size: 15px; color: #555; }
.mobile_menu--footer { padding-top: 28px; }
.mobile_menu--lang { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.lang-option { display: inline-block; padding: 12px 0; font-size: 15px; color: #767676; }
.lang-option.active, .lang-option:hover { color: var(--color-dark); font-weight: 600; }
.lang-divider { color: #ccc; }
.mobile_overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / 45%);
    backdrop-filter: blur(2px);
    z-index: 1099;
}
.mobile_overlay.is-active { display: block; }

/* ФУТЕР */

.footer { padding: 40px 0 32px; background: var(--color-dark); color: #fff; }
.footer_items { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; gap: 48px; margin-bottom: 40px; }
.footer_logo { display: flex; flex-direction: column; min-width: 0; max-width: 380px; gap: 20px; }
.footer_logo--icon { display: block; width: 97px; height: 60px; object-fit: contain; }
.footer_title { font-family: var(--second-family); font-size: 25px; font-weight: 600; line-height: 1.2; }
.footer_navbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; min-width: 0; gap: 24px; }
.footer_quick, .footer_service, .footer_contacts { display: flex; flex-direction: column; min-width: 0; gap: 16px; }
.footer_navbar--title { font-family: var(--second-family); font-size: 17px; font-weight: 600; }
.footer_navbar--list { display: flex; flex-direction: column; gap: 14px; }
.footer_navbar--link { font-family: var(--third-family); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.footer_contacts li { display: flex; align-items: flex-start; gap: 12px; }
.footer_navbar--icon { width: 20px; height: 20px; flex-shrink: 0; }
.footer_line { height: 1px; margin-bottom: 28px; background: rgb(255 255 255 / 15%); }
.footer_text { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer_left--desc, .footer_right--link { font-family: var(--third-family); font-size: 13px; line-height: 1.5; }
.footer_left--desc a { font-weight: 700; }


/* Светлая шапка */
.header { position: relative; top: auto; left: auto; background: #fff; }
.navbar_logo--icon, .navbar_lang--icon { display: none; }
.navbar_logo--icon-dark, .navbar_lang--icon-blue { display: block; }
.navbar_menu--link, .navbar_lang--link, .navbar_lang--label { color: var(--color-dark); }
.navbar_drop--icon { filter: brightness(0); }
.navbar_burger--line { background: var(--color-dark); }
.header_line { height: 1px; background: rgb(0 0 0 / 15%); }
.breadcrumb { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; }
.breadcrumb_item, .breadcrumb_sep { font-size: 13px; line-height: 1.5; color: #61646b; }
.breadcrumb_item--active { color: var(--color-dark); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }


/* Страница документов */
.hero { padding: 40px 0 var(--section-space); }
.hero_content { display: flex; flex-direction: column; min-width: 0; gap: 24px; }
.hero_info { display: flex; flex-direction: column; min-width: 0; gap: 32px; }
.hero_info--title { font-family: var(--second-family); font-size: clamp(29px, 4vw, 49px); font-weight: 700; line-height: 1.2; color: var(--color-dark); overflow-wrap: anywhere; }
.policy_list { display: flex; flex-direction: column; min-width: 0; }
.policy_row { min-width: 0; }
.policy_item { display: flex; align-items: center; justify-content: space-between; min-width: 0; min-height: 72px; gap: 20px; padding: 16px 12px; border-bottom: 1px dashed #d0d0d0; color: inherit; transition: background .2s; }
.policy_row:first-child .policy_item { border-top: 1px dashed #d0d0d0; }
.policy_item--name { min-width: 0; font-size: 16px; font-weight: 500; line-height: 1.5; color: var(--color-dark); overflow-wrap: anywhere; transition: color .2s; }
.policy_item--download { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 8px; transition: background .2s; }
.policy_item--download img { display: block; width: 22px; height: 22px; }
.policy_item:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; background: #edf5f7; }
.policy_item--unavailable { cursor: default; }
.policy_item--status { flex: 0 1 160px; max-width: 40%; font-size: 13px; line-height: 1.4; color: var(--color-muted); text-align: right; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) {
    a.policy_item:hover { background: #f5f5f5; }
    a.policy_item:hover .policy_item--name { color: #007a93; }
    a.policy_item:hover .policy_item--download { background: #e9f4f7; }
}
@media (max-width: 1100px) {
    .navbar { gap: 18px; }
    .navbar_menu { gap: 20px; }
    .footer_items { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .footer_logo { max-width: 460px; }
}
@media (max-width: 900px) {
    .navbar_menu { gap: 14px; }
    .navbar_menu--link, .navbar_lang--label { font-size: 14px; }
}
@media (max-width: 768px) {
    .header { padding-block: 16px; }
    .navbar { gap: 16px; }
    .navbar_menu, .navbar_lang { display: none; }
    .navbar_burger { display: flex; }
    .hero { padding-top: 24px; }
    .footer_navbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
    .footer_contacts { grid-column: 1 / -1; }
    .footer_text { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 600px) {
    :root { --section-space: 56px; }
    .container { padding-inline: 20px; }
    .hero_info { gap: 24px; }
    .policy_item { min-height: 68px; gap: 12px; padding: 12px 8px; }
    .policy_item--name { font-size: 15px; }
    .policy_item--status { font-size: 12px; }
    .footer { padding: 36px 0 24px; }
    .footer_title { font-size: 23px; }
    .footer_items { margin-bottom: 28px; }
}
@media (max-width: 380px) {
    .container { padding-inline: 16px; }
    .footer_navbar { grid-template-columns: minmax(0, 1fr); }
    .footer_contacts { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
    [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
    .mobile_menu, .navbar_drop--icon, .policy_item, .policy_item--name, .policy_item--download { transition: none; }
}

/* =========================================================
   ХОВЕР-ЭФФЕКТЫ — общий блок (одинаковый во всех CSS темы)
   ========================================================= */

:root {
    --hv-accent: #0098bf;
    --hv-accent-dark: #007a93;
    --hv-accent-tint: #d9eef4;
    --hv-dark: #051c28;
    --hv-card: #edf1f2;
    --hv-card-hover: #e3eaec;
    --hv-ease: cubic-bezier(.22, .61, .36, 1);
    --hv-fast: .2s;
    --hv-base: .3s;
    --hv-slow: .5s;
    --hv-shadow: 0 14px 34px rgb(5 28 40 / 10%);
    --hv-shadow-btn: 0 8px 20px rgb(0 152 191 / 28%);
}

/* AOS после появления элемента: убираем его задержки и длительности,
   чтобы ховер срабатывал сразу и плавно (класс ставит main.js). */
[data-aos][data-aos][data-aos].aos-animate.aos-done {
    transition-property: opacity, transform, translate, scale, background-color, border-color, box-shadow, color;
    transition-duration: var(--hv-base);
    transition-timing-function: var(--hv-ease);
    transition-delay: 0s;
}

/* Шапка */
.navbar_logo { transition: opacity var(--hv-fast) var(--hv-ease); }
.navbar_menu--link { position: relative; transition: color var(--hv-fast) var(--hv-ease); }
.navbar_menu--link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--hv-base) var(--hv-ease);
}
.navbar_lang--label { transition: color var(--hv-fast) var(--hv-ease); }
.navbar_drop--toggle { border-radius: 8px; transition: background-color var(--hv-fast) var(--hv-ease); }
.navbar_dropdown a { transition: background-color var(--hv-fast) var(--hv-ease), color var(--hv-fast) var(--hv-ease), padding-left var(--hv-fast) var(--hv-ease); }
.mobile_menu--link, .mobile_dropdown a, .lang-option { transition: color var(--hv-fast) var(--hv-ease); }
.mobile_menu--close { border-radius: 50%; transition: background-color var(--hv-fast) var(--hv-ease), rotate var(--hv-base) var(--hv-ease); }

/* Футер и хлебные крошки */
.footer_navbar--link, .footer_right--link, .footer_left--desc a {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    transition: color var(--hv-fast) var(--hv-ease), text-decoration-color var(--hv-fast) var(--hv-ease);
}
.breadcrumb a { transition: color var(--hv-fast) var(--hv-ease); }

/* Кнопки и закрытие окон */
body .modal_submit, body .success_btn, body .solution_item--btn,
body :is(.contact_form, .euss-cv, .euss-work, .form) .form_btn {
    transition: background-color var(--hv-fast) var(--hv-ease), box-shadow var(--hv-base) var(--hv-ease), translate var(--hv-fast) var(--hv-ease), scale var(--hv-fast) var(--hv-ease), opacity .2s;
}
.modal_close, .success_close { transition: background-color var(--hv-fast) var(--hv-ease), rotate var(--hv-base) var(--hv-ease); }

@media (hover: hover) and (pointer: fine) {
    .navbar_logo:hover { opacity: .8; }
    .navbar_menu--link:hover::after,
    .navbar_item:hover > .navbar_menu--link::after { transform: scaleX(1); transform-origin: left; }
    .navbar_drop--toggle:hover { background-color: rgb(127 127 127 / 12%); }
    .navbar_lang:hover .navbar_lang--label { color: var(--hv-accent); }
    .navbar_dropdown a:hover { padding-left: 26px; background: #edf5f7; color: var(--hv-accent); }

    .mobile_menu--link:hover, .mobile_dropdown a:hover, .lang-option:hover { color: var(--hv-accent); }
    .mobile_menu--close:hover { background-color: var(--hv-card); rotate: 90deg; }

    .footer_navbar--link:hover, .footer_right--link:hover, .footer_left--desc a:hover {
        color: #59c6df;
        text-decoration-color: currentColor;
    }
    .breadcrumb a:hover { color: var(--hv-accent); }

    .modal_submit:hover, .success_btn:hover, .solution_item--btn:hover, .form_btn:hover:not(:disabled) {
        background-color: var(--hv-accent-dark);
        box-shadow: var(--hv-shadow-btn);
        translate: 0 -2px;
    }
    .modal_close:hover, .success_close:hover { background-color: rgb(255 255 255 / 18%); rotate: 90deg; }
}

/* Нажатие — заметно и на телефонах */
body .modal_submit:active, body .success_btn:active, body .solution_item--btn:active,
body :is(.contact_form, .euss-cv, .euss-work, .form) .form_btn:active:not(:disabled) {
    translate: 0 0;
    scale: .98;
    box-shadow: none;
}

/* Клавиатура — те же состояния, что при наведении */
.navbar_menu--link:focus-visible::after { transform: scaleX(1); }
.footer_navbar--link:focus-visible, .footer_right--link:focus-visible { color: #59c6df; text-decoration-color: currentColor; }

@media (prefers-reduced-motion: reduce) {
    .navbar_menu--link::after, .mobile_menu--close, .modal_close, .success_close,
    .modal_submit, .success_btn, .solution_item--btn, .form_btn { transition: none; }
    .mobile_menu--close:hover, .modal_close:hover, .success_close:hover { rotate: none; }
    .modal_submit:hover, .success_btn:hover, .solution_item--btn:hover, .form_btn:hover { translate: none; }
}

/* Светлая шапка: пункты меню подсвечиваются акцентом */
@media (hover: hover) and (pointer: fine) {
    .navbar_menu--link:hover, .navbar_item:hover > .navbar_menu--link { color: var(--hv-accent); }
}

/* ---------- Our Policies ---------- */
.policy_item--download img { transition: filter var(--hv-fast) var(--hv-ease), translate var(--hv-base) var(--hv-ease); }
@media (hover: hover) and (pointer: fine) {
    a.policy_item:hover { background: #f4f8f9; }
    a.policy_item:hover .policy_item--download { background: var(--hv-accent); }
    a.policy_item:hover .policy_item--download img { filter: brightness(0) invert(1); translate: 0 2px; }
}
a.policy_item:active .policy_item--download { scale: .94; }
@media (prefers-reduced-motion: reduce) {
    .policy_item--download img { transition: none; }
}