/**
 * ??????????????? ? ????? ???????? (??????? + Drupal).
 */
:root {
    --primary-color: #003366;
    --accent-color: #ff6600;
    --text-color: #333;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --footer-bg: #002244;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
}

/* --- ????? (fixed, ??? ?? ?????) --- */
.stk-header,
header.stk-header,
body > header {
    background: var(--white) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 10000 !important;
}

body:not(.icompany_soyuztk) {
    padding-top: 80px;
}

.stk-header .container,
header.stk-header .container,
body > header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.stk-header .navbar,
header.stk-header .navbar,
body > header .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
    gap: 12px;
}

.stk-header .logo,
header.stk-header .logo,
body > header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.stk-header .logo__icon,
header.stk-header .logo__icon,
body > header .logo__icon {
    height: 45px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.stk-header .logo__text,
header.stk-header .logo__text,
body > header .logo__text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    white-space: nowrap;
}

.stk-header .logo__text-accent,
header.stk-header .logo__text-accent,
body > header .logo__text-accent {
    color: var(--accent-color);
}

/* ?????????: ????? (?????? ??????) ? Drupal (ul.menu ?????? nav) */
.stk-header .nav-links,
header.stk-header .nav-links,
body > header .nav-links,
.stk-header nav#main-nav,
body > header nav#main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    justify-content: center;
}

.stk-header .nav-links > ul.menu,
.stk-header .nav-links > ul.sf-menu,
.stk-header nav#main-nav > ul.menu,
.stk-header nav#main-nav > ul.sf-menu,
body > header .nav-links > ul.menu,
body > header nav#main-nav > ul.menu {
    display: flex;
    gap: 30px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.stk-header .nav-links a,
header.stk-header .nav-links a,
body > header .nav-links a,
.stk-header .nav-links > ul.menu > li > a,
.stk-header nav#main-nav > ul.menu > li > a {
    font-weight: 500;
    color: var(--primary-color);
    transition: 0.3s;
    text-decoration: none;
    white-space: nowrap;
}

.stk-header .nav-links a:hover,
.stk-header .nav-links li.active-trail > a,
.stk-header .nav-links > ul.menu > li > a:hover,
.stk-header .nav-links > ul.menu > li.active-trail > a,
body > header .nav-links a:hover {
    color: var(--accent-color);
}

.stk-header .header-contact,
header.stk-header .header-contact,
body > header .header-contact {
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
    flex-shrink: 0;
    white-space: nowrap;
}

.stk-header .header-contact a,
header.stk-header .header-contact a,
body > header .header-contact a {
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    font-size: 1.1rem;
    line-height: 1.4;
}

.stk-header .header-contact a:hover,
header.stk-header .header-contact a:hover,
body > header .header-contact a:hover {
    color: var(--accent-color);
}

.stk-header .burger-btn,
header.stk-header .burger-btn,
body > header .burger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 28px;
    padding: 0;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10001;
    flex-shrink: 0;
}

.stk-header .burger-btn span,
header.stk-header .burger-btn span,
body > header .burger-btn span {
    display: block;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: 0.3s;
}

.stk-header .burger-btn.is-open span:nth-child(1),
header.stk-header .burger-btn.is-open span:nth-child(1),
body > header .burger-btn.is-open span:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
}

.stk-header .burger-btn.is-open span:nth-child(2),
header.stk-header .burger-btn.is-open span:nth-child(2),
body > header .burger-btn.is-open span:nth-child(2) {
    opacity: 0;
}

.stk-header .burger-btn.is-open span:nth-child(3),
header.stk-header .burger-btn.is-open span:nth-child(3),
body > header .burger-btn.is-open span:nth-child(3) {
    transform: translateY(-13px) rotate(-45deg);
}

/* --- ?????? (??????, ??? ?? ?????) --- */
.stk-footer,
footer.stk-footer,
body > footer {
    background: var(--footer-bg) !important;
    color: #aaa !important;
    text-align: center;
    padding: 28px 0 24px;
    font-size: 0.9rem;
    margin-top: 0;
}

.stk-footer .container,
footer.stk-footer .container,
body > footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.stk-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 22px;
    margin-bottom: 18px;
}

.stk-footer-nav a {
    color: #ccc !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.25s;
}

.stk-footer-nav a:hover {
    color: #fff !important;
}

.stk-footer a,
footer.stk-footer a,
body > footer a {
    color: #ccc !important;
    text-decoration: underline;
}

.stk-footer a:hover,
footer.stk-footer a:hover,
body > footer a:hover {
    color: #fff !important;
}

.stk-footer p,
footer.stk-footer p,
body > footer p {
    margin: 0;
    color: #aaa;
}

.stk-footer p + p,
footer.stk-footer p + p,
body > footer p + p {
    margin-top: 10px;
}

/* --- Dropdown Menu (Desktop) --- */
@media (min-width: 769px) {
    .stk-header nav#main-nav ul.menu li {
        position: relative;
    }
    
    .stk-header nav#main-nav ul.menu ul {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 240px;
        background: var(--white);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        border: 1px solid #eee;
        border-radius: 4px;
        padding: 8px 0;
        z-index: 11000;
        display: none;
        flex-direction: column;
        gap: 0;
    }

    .stk-header nav#main-nav ul.menu li:hover > ul {
        display: flex;
    }

    .stk-header nav#main-nav ul.menu ul li {
        width: 100%;
    }

    .stk-header nav#main-nav ul.menu ul a {
        padding: 10px 20px;
        display: block;
        white-space: normal;
        font-size: 14px;
        font-weight: 400;
        border-bottom: 1px solid #f4f7f6;
    }

    .stk-header nav#main-nav ul.menu ul li:last-child a {
        border-bottom: none;
    }

    .stk-header nav#main-nav ul.menu ul a:hover {
        background: #f4f7f6;
        color: var(--accent-color);
    }
}

/* Drupal: ?????? ??? fixed header */
body {
    font-family: 'Roboto', sans-serif;
}

body.icompany_soyuztk {
    padding-top: 80px !important;
}

body.icompany_soyuztk .stk-page-wrapper {
    background: #fff;
}

@media (max-width: 768px) {
    body:not(.icompany_soyuztk),
    body.icompany_soyuztk {
        padding-top: 70px !important;
    }

    .stk-header .navbar,
    header.stk-header .navbar,
    body > header .navbar {
        height: 70px;
    }

    .stk-header .logo__icon,
    header.stk-header .logo__icon,
    body > header .logo__icon {
        height: 38px;
    }

    .stk-header .logo__text,
    header.stk-header .logo__text,
    body > header .logo__text {
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }

    .stk-header .burger-btn,
    header.stk-header .burger-btn,
    body > header .burger-btn {
        display: flex;
    }

    .stk-header .nav-links,
    body > header .nav-links,
    .stk-header nav#main-nav,
    body > header nav#main-nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        padding: 10px 0;
        z-index: 9999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        flex: none;
        justify-content: flex-start;
    }

    .stk-header .nav-links.is-open,
    body > header .nav-links.is-open,
    .stk-header nav#main-nav.is-open,
    body > header nav#main-nav.is-open {
        display: flex;
    }

    .stk-header .nav-links > ul.menu,
    .stk-header nav#main-nav > ul.menu,
    body > header nav#main-nav > ul.menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .stk-header nav#main-nav ul.menu ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding-left: 20px;
        background: #f9f9f9;
    }

    .stk-header nav#main-nav ul.menu ul a {
        padding: 12px 24px;
        font-size: 14px;
        border-bottom: 1px solid #eee;
    }

    .stk-header .nav-links a,
    .stk-header .nav-links > ul.menu > li > a,
    body > header .nav-links a {
        display: block;
        padding: 14px 24px;
        border-bottom: 1px solid #eee;
        width: 100%;
    }

    .stk-header .header-contact,
    header.stk-header .header-contact,
    body > header .header-contact {
        display: none;
    }

    .stk-footer-nav {
        flex-direction: column;
        gap: 12px;
    }
}

/* === ????? ??? ????? ????????? ? ?????? (?? ????????) === */
.btn {
    display: inline-block; padding: 15px 40px; background: var(--accent-color); color: var(--white);
    font-weight: 700; border-radius: 5px; transition: 0.3s; border: none; cursor: pointer; font-size: 1rem;
}
.btn:hover { background: #e65c00; transform: translateY(-2px); }

.section { padding: 80px 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; color: var(--primary-color); }

.contact {
    background: var(--primary-color);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.contact-plane {
    position: absolute;
    bottom: 14px;
    left: -44px;
    width: 34px;
    height: auto;
    pointer-events: none;
    z-index: 1;
    opacity: 0.72;
}
.contact-plane--ltr {
    animation: contact-plane-fly-ltr 12s ease-in-out infinite;
}
.contact-plane--rtl {
    animation: contact-plane-fly-rtl 12s ease-in-out infinite;
    transform: scaleX(-1);
}
@keyframes contact-plane-fly-ltr {
    0% { left: -44px; }
    100% { left: calc(100% + 44px); }
}
@keyframes contact-plane-fly-rtl {
    0% { left: calc(100% + 44px); }
    100% { left: -44px; }
}
@media (prefers-reduced-motion: reduce) {
    .contact-plane { display: none !important; }
}
.contact .section-title { color: var(--white); }
.contact-container-centered { text-align: center; max-width: 800px; margin: 0 auto; }
.contact-links-row {
    display: flex; justify-content: center; align-items: center; flex-wrap: nowrap;
    gap: 16px; margin-top: 40px; max-width: 1100px; margin-left: auto; margin-right: auto;
}
.contact-big-link {
    padding: 16px 22px; border: 2px solid var(--white); border-radius: 8px;
    font-size: 1.05rem; font-weight: bold; transition: 0.3s; display: inline-block;
    white-space: nowrap; flex: 0 1 auto;
}
.contact-links-row a,
.contact-links-row a:visited,
.contact-big-link,
.contact-big-link:visited {
    color: #fff !important;
    text-decoration: none !important;
}
.contact-big-link.email,
.contact-big-link.email:visited {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff !important;
}
.contact-big-link:hover,
.contact-big-link:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    text-decoration: none !important;
    transform: scale(1.05);
}
.contact-big-link.email:hover,
.contact-big-link.email:focus {
    background: #e65c00;
    border-color: #e65c00;
    color: #fff !important;
}
.contact-big-link:focus {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
}

.kp-form {
    max-width: 520px; margin: 0 auto 30px; text-align: left;
    background: rgba(255,255,255,0.08); padding: 24px; border-radius: 8px;
}
.kp-form label { display: block; margin-bottom: 6px; font-size: 0.95rem; }
.kp-form input, .kp-form textarea {
    width: 100%; padding: 12px; margin-bottom: 16px; border: none;
    border-radius: 5px; font-family: inherit; font-size: 1rem;
}
.kp-form textarea { min-height: 90px; resize: vertical; }
.kp-form .btn { width: 100%; }
.kp-form-note { font-size: 0.85rem; opacity: 0.75; margin-top: 10px; text-align: center; }
.kp-form-note a { color: #fff; text-decoration: underline; }

@media (max-width: 768px) {
    .contact-links-row {
        flex-direction: row; flex-wrap: wrap; gap: 12px; max-width: 100%;
    }
    .contact-big-link {
        padding: 14px 18px; font-size: 0.95rem; white-space: normal;
        flex: 1 1 calc(50% - 6px); min-width: 140px;
    }
    .contact-big-link.email { flex: 1 1 100%; }
}
