/**
 * СоюзТехКомплект — общая оболочка (лендинг + Drupal).
 */
:root {
    --primary-color: #003366;
    --accent-color: #ff6600;
    --text-color: #333;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --footer-bg: #002244;
}

/* --- Шапка (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;
    font-size: 0.9rem;
    line-height: 1.4;
    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;
}

.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;
}

/* Drupal: отступ под fixed header */
body.icompany_soyuztk {
    padding-top: 80px !important;
    font-family: 'Roboto', sans-serif;
}

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-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;
    }
}
