:root {
    --bg: #ffffff;
    --bg-2: #ffffff;
    --bg-tint: #f4f7fa;
    --ink: #0a2540;
    --muted: #5b6b7c;
    --line: #d9e2ec;
    --brand: #0a2540;
    --accent: #0071e3;
    --accent-hover: #2563eb;
    --glow: rgba(0, 113, 227, 0.35);
    --dark: #0a2540;
    --radius: 32px;
    --shadow: 0 8px 24px rgba(10, 37, 64, 0.06);
    --shadow-lift: 0 18px 40px rgba(10, 37, 64, 0.14);
    --max: 1180px;
    --header-h: 118px;
    --ease: 0.3s ease;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    padding-top: var(--header-h);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--ease);
}

a:hover {
    color: var(--accent-hover);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
}

.skip-link:focus {
    left: 16px;
    background: #fff;
    padding: 8px 12px;
    z-index: 30;
}

.icon {
    display: inline-flex;
    width: 1.15em;
    height: 1.15em;
    vertical-align: -0.15em;
    transition: transform var(--ease), color var(--ease);
}

.icon svg {
    width: 100%;
    height: 100%;
}

.icon-lg {
    width: 2rem;
    height: 2rem;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

.site-header.is-scrolled,
.site-header.nav-open {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(11, 25, 44, 0.06);
}

.header-bar {
    max-width: var(--max);
    margin: 0 auto;
    padding: 14px 20px 8px;
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 16px;
    align-items: center;
}

.brand {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--brand);
    text-decoration: none;
    transition: color var(--ease), transform var(--ease);
}

.brand:hover {
    color: var(--accent);
    text-decoration: none;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-text small {
    color: var(--muted);
    letter-spacing: 0.04em;
}

.header-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 11px 20px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition:
        background var(--ease),
        color var(--ease),
        border-color var(--ease),
        transform var(--ease),
        box-shadow var(--ease);
}

.btn-accent {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 18px rgba(10, 37, 64, 0.18);
}

.btn-accent:hover {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px var(--glow);
}

.btn-accent:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px var(--glow);
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-ghost:hover {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px var(--glow);
}

.btn-ghost:active {
    transform: scale(0.98);
}

.btn-header-phone {
    letter-spacing: 0.02em;
    min-height: 44px;
    padding-inline: 18px;
    background: var(--accent);
    box-shadow: 0 8px 20px var(--glow);
}

.btn-header-phone:hover {
    background: var(--accent-hover);
}

.nav-toggle {
    display: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    cursor: pointer;
    transition: border-color var(--ease), color var(--ease), box-shadow var(--ease);
}

.nav-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 6px 16px var(--glow);
}

.nav-toggle .icon-close {
    display: none;
}

.site-header.nav-open .icon-menu {
    display: none;
}

.site-header.nav-open .icon-close {
    display: inline-flex;
}

.site-nav .nav-phone {
    display: none;
}

.site-nav {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 12px 12px;
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
}

.site-nav > a,
.nav-sub-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    color: var(--brand);
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: color var(--ease);
}

.site-nav > a::after,
.nav-item > .nav-sub-btn::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 3px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--ease);
}

.site-nav > a:hover,
.nav-sub-btn:hover,
.site-nav > a.is-active,
.has-sub.is-open > .nav-sub-btn {
    color: var(--accent);
    text-decoration: none;
}

.site-nav > a:hover::after,
.nav-item > .nav-sub-btn:hover::after,
.site-nav > a.is-active::after,
.has-sub.is-open > .nav-sub-btn::after {
    transform: scaleX(1);
}

.has-sub {
    position: relative;
}

.nav-sub {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-lift);
    padding: 8px;
    z-index: 5;
    animation: fade-up 0.22s ease;
}

.nav-sub-wide {
    display: none;
    width: min(640px, 80vw);
    grid-template-columns: repeat(3, 1fr);
}

.has-sub.is-open .nav-sub {
    display: block;
}

.has-sub.is-open .nav-sub-wide {
    display: grid;
}

.nav-sub a {
    display: block;
    color: var(--brand);
    padding: 8px 10px;
    border-radius: 8px;
    transition: background var(--ease), color var(--ease);
}

.nav-sub a:hover {
    background: var(--bg-tint);
    color: var(--accent);
    text-decoration: none;
}

.hero {
    max-width: var(--max);
    margin: 28px auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: stretch;
}

.hero-copy {
    background: linear-gradient(165deg, #0a2540 0%, #12345a 100%);
    color: #fff;
    border-radius: 28px;
    padding: 48px 40px;
    min-height: 420px;
}

.hero-copy h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    margin: 0 0 16px;
    letter-spacing: -0.03em;
}

.hero-copy p,
.hero-copy .lede {
    color: #c5d4e6;
    max-width: 38ch;
}

.hero-copy .btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

.hero-copy .btn-ghost:hover {
    background: #fff;
    color: var(--brand);
    border-color: #fff;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-visual {
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    min-height: 420px;
    background: #0a2540 center/cover no-repeat;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 420px;
    transition: transform 0.6s ease;
}

.hero-visual:hover img {
    transform: scale(1.04);
}

.hero-badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    background: rgba(10, 37, 64, 0.86);
    color: #fff;
    padding: 12px 16px;
    border-radius: 14px;
    backdrop-filter: blur(8px);
}

.section {
    max-width: var(--max);
    margin: 0 auto;
    padding: 56px 20px 0;
}

.section-tint {
    max-width: none;
    width: 100%;
    margin: 48px 0 0;
    padding: 48px 0 56px;
    background: var(--bg-tint);
}

.section-tint .section {
    padding-top: 0;
}

.section h2,
.page-hero h1 {
    margin: 0 0 8px;
    font-size: 1.8rem;
    letter-spacing: -0.03em;
    color: var(--brand);
}

.lede {
    color: var(--muted);
    max-width: 62ch;
    margin: 0 0 28px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.cards-services {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 20px;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
    border-color: #c5d8f0;
}

.card h3 {
    margin: 12px 0 8px;
}

.icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 18px rgba(10, 37, 64, 0.16);
    transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}

.icon-wrap .icon {
    width: 34px;
    height: 34px;
}

.card:hover .icon-wrap {
    background: var(--accent);
    color: #fff;
    transform: scale(1.06);
    box-shadow: 0 12px 24px var(--glow);
}

.card:hover .icon-wrap .icon {
    transform: none;
}

.service-badges {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px 12px;
    margin-top: 28px;
    justify-items: center;
}

.service-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    text-align: center;
    max-width: 92px;
}

.service-badge .icon-wrap {
    width: 72px;
    height: 72px;
}

.service-badge .icon-wrap .icon {
    width: 36px;
    height: 36px;
}

.reel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 1fr);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

.reel a,
.brand-card,
.news-card {
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: transform var(--ease), box-shadow var(--ease);
}

.reel a:hover,
.brand-card:hover,
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
    text-decoration: none;
}

.reel img,
.news-card img,
.gallery-grid img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: var(--bg-tint);
    transition: transform 0.45s ease;
}

.reel a:hover img,
.news-card:hover img,
.gallery-grid a:hover img {
    transform: scale(1.05);
}

.reel h3,
.news-card h3,
.brand-card h3 {
    margin: 0;
    padding: 12px 14px 4px;
    font-size: 1rem;
}

.meta {
    display: block;
    padding: 0 14px 14px;
    color: var(--muted);
    font-size: 0.86rem;
}

.page-hero {
    max-width: var(--max);
    margin: 28px auto 0;
    padding: 32px 20px 8px;
}

.split {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 24px;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px 40px;
}

.article-stage {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
}

.article-stage img {
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    background: var(--brand);
}

.thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 8px;
    padding: 12px;
}

.thumbs button {
    border: 2px solid transparent;
    padding: 0;
    background: none;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--ease), transform var(--ease);
}

.thumbs button.is-active,
.thumbs button:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.thumbs img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.sidebar-list {
    display: grid;
    gap: 12px;
}

.sidebar-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    transition: color var(--ease);
}

.sidebar-item:hover {
    color: var(--accent);
}

.sidebar-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.gallery-grid a {
    border-radius: 14px;
    overflow: hidden;
    display: block;
    transition: transform var(--ease), box-shadow var(--ease);
}

.gallery-grid a:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
}

.contact-grid,
.ins-grid,
.vacancy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.map-card img {
    width: 100%;
    border-radius: 16px;
}

.ins-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.logo-slot {
    min-height: 110px;
    border: 1px dashed var(--line);
    border-radius: 16px;
    background: repeating-linear-gradient(135deg, #fff, #fff 10px, #f4f7fa 10px, #f4f7fa 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
    text-align: center;
    padding: 12px;
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.logo-slot:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
    color: var(--accent);
}

.logo-slot strong {
    display: block;
    color: var(--ink);
}

.site-footer {
    margin-top: 64px;
    background: var(--brand);
    color: #d7e3f0;
    padding: 48px 20px 24px;
}

.footer-grid {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 0.9fr 1fr;
    gap: 28px;
}

.site-footer h2 {
    color: #fff;
}

.site-footer a {
    color: #8ec5ff;
    transition: color var(--ease);
}

.site-footer a:hover {
    color: #fff;
}

.plain-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.plain-list li {
    margin: 0 0 10px;
}

.footer-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.footer-photos img {
    width: 100%;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.35s ease, opacity var(--ease);
}

.footer-photos a:hover img {
    transform: scale(1.06);
    opacity: 0.92;
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.socials a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}

.socials a:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px var(--glow);
}

.copyright {
    max-width: var(--max);
    margin: 32px auto 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 16px;
    color: #9bb0c6;
}

.empty {
    padding: 24px;
    border: 1px dashed var(--line);
    border-radius: 16px;
    color: var(--muted);
    background: #fff;
}

.prose {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow);
    transition: transform var(--ease), box-shadow var(--ease);
}

.prose:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}

.prose h1,
.prose h2 {
    margin-top: 0;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 960px) {
    :root {
        --header-h: 64px;
    }

    .header-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 16px;
        gap: 12px;
    }

    .header-meta,
    .btn-header-phone {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        box-shadow: none;
    }

    .site-nav {
        display: none;
        flex-direction: column;
        padding: 4px 16px 16px;
        gap: 4px;
    }

    .site-header.nav-open .site-nav {
        display: flex;
    }

    .site-nav .nav-phone {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 0 0 8px;
        padding: 12px 16px;
        border-radius: 12px;
        background: var(--accent);
        color: #fff;
        font-weight: 600;
    }

    .site-nav .nav-phone::after {
        display: none;
    }

    .site-nav .nav-phone:hover {
        color: #fff;
        background: var(--accent-hover);
        text-decoration: none;
    }

    .site-nav > a::after,
    .nav-item > .nav-sub-btn::after {
        display: none;
    }

    .nav-sub,
    .nav-sub-wide,
    .has-sub.is-open .nav-sub-wide {
        position: static;
        width: auto;
        display: none;
        box-shadow: none;
        grid-template-columns: 1fr 1fr;
        animation: none;
    }

    .has-sub.is-open .nav-sub,
    .has-sub.is-open .nav-sub-wide {
        display: grid;
    }

    .hero,
    .cards,
    .split,
    .contact-grid,
    .ins-grid,
    .vacancy-grid,
    .footer-grid,
    .ins-logos {
        grid-template-columns: 1fr;
    }

    .cards-services {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        width: auto;
        margin: 12px 12px 0;
        padding: 0;
        gap: 12px;
    }

    .hero-copy,
    .hero-visual {
        min-height: 0;
        border-radius: 24px;
        width: 100%;
    }

    .hero-copy {
        padding: 32px 22px 28px;
        display: flex;
        flex-direction: column;
    }

    .hero-copy h1 {
        font-size: 1.55rem;
        line-height: 1.25;
        margin-bottom: 12px;
    }

    .hero-copy p {
        margin: 0;
        max-width: none;
    }

    .hero-copy .lede {
        margin-bottom: 10px;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        margin-top: 28px;
    }

    .hero-actions .btn {
        width: 100%;
        margin: 0 0 12px;
        min-height: 48px;
        box-shadow: none;
    }

    .hero-actions .btn:last-child {
        margin-bottom: 0;
    }

    .hero-visual img {
        min-height: 0;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }

    .hero-badge {
        left: 12px;
        right: 12px;
        bottom: 12px;
        font-size: 0.85rem;
    }

    .section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .service-badges {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 560px) {
    .service-badges {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px 8px;
    }

    .service-badge .icon-wrap,
    .icon-wrap {
        width: 58px;
        height: 58px;
    }

    .cards-services {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
