/* site.css - переработанная, валидная версия */

@font-face {
    font-family: 'DINPro';
    src: url('/assets/fonts/DINPro-Medium.woff2') format('woff2'),
         url('/assets/fonts/DINPro-Medium.woff') format('woff'),
         url('/assets/fonts/DINPro-Medium.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EuropeCondensed';
    src: url('/assets/fonts/EuropeCondensedC.woff2') format('woff2'),
         url('/assets/fonts/EuropeCondensedC.woff') format('woff'),
         url('/assets/fonts/EuropeCondensedC.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FordAntenna';
    src: url('/assets/fonts/FordAntennaExtraCondWGL-Reg.woff2') format('woff2'),
         url('/assets/fonts/FordAntennaExtraCondWGL-Reg.woff') format('woff'),
         url('/assets/fonts/FordAntennaExtraCondWGL-Reg.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* CSS-переменные темы */
:root{
    --accent: #c99646;
    --accent-light: #f0d2a2;
    --bg: #f3efe8;
    --section-contrast: #ebe4d9;
    --surface: #fbf8f3;
    --text: #231f1b;
    --muted: #6e685d;
    --nav-bg: rgba(31, 26, 20, 0.9);
    --card-bg: rgba(24, 20, 16, 0.92);
    --border-soft: rgba(35, 31, 27, 0.1);
    --radius: 20px;
    --gap: 1rem;
    --page-gutter: 1rem;
    --content-max: 1680px;
}

/* Базовые настройки */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(201, 150, 70, 0.12), transparent 28%),
        linear-gradient(180deg, #f7f3ec 0%, #f0ebe2 100%);
    font-size: 18px;
    font-family: 'DINPro', Arial, sans-serif;
    scroll-behavior: smooth;
}

.f-ford-antenna { font-family: 'FordAntenna', sans-serif; }
.f-europe-condensed { font-family: 'EuropeCondensed', sans-serif; }
.f-din-pro { font-family: 'DINPro', sans-serif; }

/* Заголовки: явная иерархия */
h1 {
    font-size: clamp(2.2rem, 2.4vw + 1.6rem, 4rem);
    line-height: 1.03;
    font-weight: 700;
    margin: 0 0 0.6rem 0;
}

/* Секционные заголовки */
.section-title, h2 {
    font-size: clamp(1.6rem, 1.6vw + 1.2rem, 2.4rem);
    line-height: 1.08;
    font-weight: 700;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

h3 {
    font-size: clamp(1.15rem, 1.2vw + 0.8rem, 1.4rem);
    line-height: 1.2;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
}

h4 {
    font-size: clamp(1rem, 1vw + 0.6rem, 1.1rem);
    line-height: 1.25;
    font-weight: 600;
    margin: 0 0 0.6rem 0;
}

p { line-height: 1.45; margin-bottom: 1rem; }
ul li { line-height: 1.35; }

/* Общие секционные стили */
.section-spacing {
    padding: 6rem 0;
}

.cover {
    margin-top: 90px !important;
    background-size: cover;
    background-image: url('/assets/images/mainphoto.png');
    background-position: center;
    background-repeat: no-repeat;
    min-height: calc(100vh - 90px);
    display:flex; align-items:center; justify-content:center;
}

.inner-page {
    padding-top: 130px;
}

.inner-page > section:first-child {
    padding-top: 1rem !important;
}

.gradient-block {
    width: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 60%, transparent);
    border-left: 10px solid #d99431;
    box-sizing: border-box;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.navbar { background-color: transparent !important; backdrop-filter: none; box-shadow: none; transition: background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease; }
.navbar.is-scrolled,
.navbar.has-mobile-menu-open,
.navbar:has(.navbar-collapse.show),
.navbar:has(.navbar-collapse.is-opening),
.navbar:has(.navbar-collapse.is-closing) {
    background-color: var(--nav-bg) !important;
    box-shadow: 0 18px 36px rgba(0,0,0,0.12);
    backdrop-filter: blur(14px);
}
.navbar .nav-link { color: #fff !important; letter-spacing: 0.03em; }
.accent { color: var(--accent) !important; letter-spacing: 0.03em; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: #fff !important; opacity: 0.95; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }
.navbar .nav-link.active { text-decoration: underline; text-underline-offset: 0.3em; }
.navbar .nav-link:focus,
.navbar .nav-link:focus-visible {
    outline: none;
    box-shadow: none;
}
.navbar-brand img { height: 56px; width: auto; }
.site-nav-list {
    font-size: clamp(0.68rem, 0.2vw + 0.66rem, 0.86rem);
    align-items: center;
}

.site-nav-list .nav-link {
    white-space: nowrap;
    padding-left: 0.36rem;
    padding-right: 0.36rem;
    text-transform: uppercase;
}

.home-nav-link {
    min-width: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.home-nav-link .bi {
    display: block;
}

.home-nav-mobile-label {
    display: none;
}

@media (min-width: 992px) {
    .site-nav-list .nav-item {
        position: relative;
        display: flex;
        align-items: center;
    }

    .site-nav-list .nav-item + .nav-item::before {
        content: "";
        position: absolute;
        left: -0.42rem;
        top: 50%;
        width: 1px;
        height: clamp(1.15rem, 1.25vw, 1.6rem);
        transform: translateY(-50%);
        pointer-events: none;
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.62) 24%,
            rgba(255, 255, 255, 0.62) 76%,
            rgba(255, 255, 255, 0) 100%
        );
    }
}

/* Mobile toggler visibility */
.navbar-toggler { border-radius: 8px; padding: .35rem .6rem; }
.site-menu-toggle {
    position: relative;
    z-index: 1045;
    width: 3rem;
    height: 3rem;
    padding: 0.72rem;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.92) !important;
    border-radius: 0;
    box-shadow: none;
    transition: border-color .25s ease, opacity .25s ease;
}
.site-menu-toggle:hover,
.site-menu-toggle:focus,
.site-menu-toggle:focus-visible {
    outline: none;
    border-color: #fff !important;
    box-shadow: none;
}
.site-menu-toggle-line {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transform-origin: center;
    transition: transform .32s cubic-bezier(.4, 0, .2, 1), opacity .22s ease, width .22s ease;
}
.site-menu-toggle[aria-expanded="true"] {
    background: transparent;
    border-color: #fff !important;
}
.site-menu-toggle[aria-expanded="true"] .site-menu-toggle-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.site-menu-toggle[aria-expanded="true"] .site-menu-toggle-line:nth-child(2) {
    width: 0;
    opacity: 0;
}
.site-menu-toggle[aria-expanded="true"] .site-menu-toggle-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

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

    .navbar .navbar-collapse {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 1035;
        width: min(84vw, 22rem);
        height: 100svh !important;
        display: block !important;
        padding: 5.75rem 1.25rem 1.5rem;
        overflow-y: auto;
        pointer-events: none;
        visibility: hidden;
        background: rgba(31, 26, 20, 0.88);
        border-right: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow: 24px 0 58px rgba(0, 0, 0, 0.28);
        backdrop-filter: blur(16px);
        transform: translateX(-105%);
        transition: transform .34s cubic-bezier(.4, 0, .2, 1), visibility .34s ease;
    }

    .navbar .navbar-collapse.show,
    .navbar .navbar-collapse.is-opening {
        pointer-events: auto;
        visibility: visible;
        transform: translateX(0);
    }

    .navbar .navbar-collapse.is-closing {
        pointer-events: none;
        visibility: visible;
        transform: translateX(-105%);
    }

    .navbar .navbar-collapse.collapsing {
        height: 100svh !important;
        transition: transform .34s cubic-bezier(.4, 0, .2, 1), visibility .34s ease;
    }

    .site-nav-list {
        align-items: stretch;
        gap: 0 !important;
        font-size: clamp(1rem, 3.4vw, 1.18rem);
        letter-spacing: 0.04em;
    }

    .site-nav-list .nav-item {
        position: relative;
    }

    .site-nav-list .nav-item + .nav-item::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 1px;
        pointer-events: none;
        background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.58) 24%,
            rgba(255, 255, 255, 0.58) 76%,
            rgba(255, 255, 255, 0) 100%
        );
    }

    .site-nav-list .nav-link {
        width: 100%;
        padding: 1.02rem 0.15rem;
        white-space: normal;
    }

    .navbar .nav-link.active {
        text-decoration: none;
        color: var(--accent-light) !important;
    }

    .home-nav-link {
        min-width: 0;
        justify-content: flex-start;
        font-size: inherit;
    }

    .home-nav-link .bi {
        display: none;
    }

    .home-nav-mobile-label {
        display: inline;
    }
}

.home-hero {
    position: relative;
    min-height: 100svh;
    padding: 7rem 0 3rem;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(19, 16, 12, 0.88) 0%, rgba(19, 16, 12, 0.58) 46%, rgba(19, 16, 12, 0.24) 100%),
        var(--hero-image, url('/assets/images/mainphoto.png')) center/cover no-repeat;
    color: #fff;
}

.page-hero {
    position: relative;
    min-height: 100svh;
    padding: 8rem 0 5rem;
    display: flex;
    align-items: center;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(19, 16, 12, 0.9) 0%, rgba(19, 16, 12, 0.62) 52%, rgba(19, 16, 12, 0.26) 100%),
        var(--hero-image, url('/assets/images/mainphoto.png')) center/cover no-repeat;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 180px;
    background: linear-gradient(180deg, rgba(243, 239, 232, 0) 0%, rgba(243, 239, 232, 1) 100%);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero-content {
    max-width: 920px;
}

.page-hero-title {
    max-width: 900px;
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: clamp(2.8rem, 4.8vw, 5.8rem);
    line-height: 0.94;
}

.page-hero-lead {
    max-width: 760px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.25rem, 1vw + 1rem, 1.85rem);
    line-height: 1.22;
}

.page-hero-about,
.page-hero-career,
.page-hero-equipment,
.page-hero-social {
    background:
        linear-gradient(90deg, rgba(19, 16, 12, 0.9) 0%, rgba(19, 16, 12, 0.62) 52%, rgba(19, 16, 12, 0.26) 100%),
        var(--hero-image, url('/assets/images/mainphoto.png')) center/cover no-repeat;
}

.content-page {
    padding-top: 3rem;
}

.home-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 180px;
    background: linear-gradient(180deg, rgba(243, 239, 232, 0) 0%, rgba(243, 239, 232, 1) 100%);
}

.home-hero .container,
.founder-message .container,
.directions-overview .container,
.numbers-section .container {
    position: relative;
    z-index: 1;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
}

.hero-kicker::before,
.section-kicker::before {
    content: '';
    width: 58px;
    height: 1px;
    background: currentColor;
}

.home-title {
    font-size: clamp(3.4rem, 7vw, 7.4rem);
    line-height: 0.92;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.5rem;
}

.home-title-statement {
    max-width: 980px;
    font-size: clamp(3rem, 5.8vw, 6.2rem);
    line-height: 0.94;
    text-transform: none;
    margin-bottom: 2rem;
}

.reveal-title {
    overflow: hidden;
}

.reveal-line-wrap {
    display: block;
    overflow: hidden;
}

.reveal-line {
    --reveal-x: -3.5rem;
    display: block;
    opacity: 0;
    transform: translate3d(var(--reveal-x), 0, 0);
    animation: heroLineReveal 900ms cubic-bezier(0.2, 0.78, 0.18, 1) forwards;
    will-change: transform, opacity;
}

.reveal-line-wrap:nth-child(even) .reveal-line {
    --reveal-x: 3.5rem;
}

.reveal-line-wrap:nth-child(1) .reveal-line {
    animation-delay: 120ms;
}

.reveal-line-wrap:nth-child(2) .reveal-line {
    animation-delay: 260ms;
}

.reveal-line-wrap:nth-child(3) .reveal-line {
    animation-delay: 400ms;
}

.home-hero .hero-actions,
.page-hero .section-kicker,
.page-hero .page-hero-lead {
    opacity: 0;
    transform: translate3d(0, 1.2rem, 0);
    animation: heroFadeUp 720ms cubic-bezier(0.2, 0.78, 0.18, 1) forwards;
    will-change: transform, opacity;
}

.page-hero .section-kicker {
    animation-delay: 70ms;
}

.page-hero .page-hero-lead,
.home-hero .hero-actions {
    animation-delay: 520ms;
}

@keyframes heroLineReveal {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.home-lead {
    max-width: 760px;
    font-size: clamp(1.3rem, 1.2vw + 1rem, 2rem);
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.direction-index {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
}

.intro-text,
.section-subtitle {
    font-size: clamp(1.2rem, 0.8vw + 1rem, 1.7rem);
    line-height: 1.25;
}

.founder-message {
    padding: 2rem 0 3rem;
}

.founder-copy {
    padding-right: 2rem;
}

.founder-copy .section-kicker {
    color: rgba(35, 31, 27, 0.6);
    margin-bottom: 1rem;
}

.founder-photo-wrap {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 28px 60px rgba(35, 31, 27, 0.08);
    min-height: 480px;
}

.founder-photo {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    display: block;
}

.section-heading {
    max-width: 900px;
    margin-bottom: 3rem;
}

.section-kicker {
    color: rgba(35, 31, 27, 0.6);
}

.home-hero .hero-kicker,
.page-hero .section-kicker {
    color: var(--accent);
}

.section-title-main {
    font-size: clamp(2.2rem, 2vw + 1.5rem, 4.3rem);
    line-height: 0.98;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-subtitle {
    max-width: 820px;
    color: var(--muted);
    margin-bottom: 0;
}

.directions-overview {
    position: relative;
    background: var(--section-contrast);
    box-shadow:
        inset 0 1px 0 rgba(201, 150, 70, 0.16),
        inset 0 -1px 0 rgba(201, 150, 70, 0.12);
}

.js-enabled .scroll-reveal {
    --reveal-distance-x: 0;
    --reveal-distance-y: 2rem;
    opacity: 0;
    transform: translate3d(var(--reveal-distance-x), var(--reveal-distance-y), 0);
    transition:
        opacity 760ms cubic-bezier(0.2, 0.78, 0.18, 1),
        transform 760ms cubic-bezier(0.2, 0.78, 0.18, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: transform, opacity;
}

.reveal-from-left {
    --reveal-distance-x: -4rem;
    --reveal-distance-y: 0;
}

.reveal-from-right {
    --reveal-distance-x: 4rem;
    --reveal-distance-y: 0;
}

.reveal-from-bottom {
    --reveal-distance-x: 0;
    --reveal-distance-y: 2.5rem;
}

.js-enabled .scroll-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.number-card:nth-child(2) {
    --reveal-delay: 80ms;
}

.number-card:nth-child(3) {
    --reveal-delay: 160ms;
}

.number-card:nth-child(4) {
    --reveal-delay: 240ms;
}

.number-card:nth-child(5) {
    --reveal-delay: 320ms;
}

.directions-stack {
    border-top: 1px solid rgba(201, 150, 70, 0.34);
}

.direction-feature {
    display: grid;
    grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1fr);
    gap: clamp(1.7rem, 4vw, 4.8rem);
    align-items: center;
    padding: clamp(2rem, 4.2vw, 4rem) 0;
    border-bottom: 1px solid rgba(201, 150, 70, 0.34);
}

.direction-feature-media-right {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
}

.direction-media {
    position: relative;
    min-width: 0;
}

.direction-frame {
    position: relative;
    min-height: clamp(260px, 24vw, 390px);
    overflow: hidden;
    background: #b8b7b1;
    box-shadow: 0 24px 54px rgba(35, 31, 27, 0.1);
}

.direction-feature-media-left .direction-frame {
    clip-path: polygon(0 0, 91.5% 0, 100% 50%, 91.5% 100%, 0 100%);
}

.direction-feature-media-right .direction-frame {
    clip-path: polygon(8.5% 0, 100% 0, 100% 100%, 8.5% 100%, 0 50%);
}

.direction-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transform: scale(1.018);
    transition: opacity .45s ease, transform .55s ease;
}

.direction-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.direction-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.direction-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(19, 16, 12, 0) 42%, rgba(19, 16, 12, 0.28) 100%);
}

.direction-carousel-controls {
    position: absolute;
    left: clamp(0.9rem, 1.6vw, 1.4rem);
    bottom: clamp(0.9rem, 1.6vw, 1.4rem);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.5rem;
    color: #fff;
    background: rgba(19, 16, 12, 0.68);
    backdrop-filter: blur(10px);
}

.direction-feature-media-right .direction-carousel-controls {
    left: auto;
    right: clamp(0.9rem, 1.6vw, 1.4rem);
}

.direction-carousel-btn {
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transition: background-color .2s ease, border-color .2s ease, opacity .2s ease;
}

.direction-carousel-btn:hover:not(:disabled) {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.direction-carousel-btn:disabled {
    opacity: 0.42;
    cursor: default;
}

.direction-carousel-btn .bi {
    display: block;
    font-size: 1.35rem;
    line-height: 1;
}

.direction-carousel-count {
    min-width: 4.6rem;
    font-family: 'FordAntenna', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-align: center;
}

.direction-copy {
    min-width: 0;
    color: var(--text);
}

.direction-index {
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.direction-copy h3 {
    max-width: 820px;
    margin-bottom: 0.8rem;
    color: var(--text);
    font-family: 'FordAntenna', sans-serif;
    font-size: clamp(1.7rem, 1.25vw + 1.15rem, 2.5rem);
    line-height: 0.98;
    text-transform: uppercase;
    letter-spacing: 0.035em;
}

.direction-copy h4 {
    margin: 1.2rem 0 0.65rem;
    color: var(--text);
    font-family: 'FordAntenna', sans-serif;
    font-size: clamp(1.15rem, 0.7vw + 0.95rem, 1.55rem);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.035em;
}

.direction-copy p {
    max-width: 760px;
    color: var(--muted);
    margin-bottom: 1rem;
    font-family: 'EuropeCondensed', sans-serif;
    font-size: clamp(1.15rem, 0.65vw + 0.98rem, 1.55rem);
    line-height: 1.18;
}

/* Списки с кастомными маркерами */
.custom-list { list-style: none; padding-left: 0; margin-bottom: 0; }
.custom-list li { position: relative; padding-left: 24px; margin-bottom: 10px; font-size: 1.03em; color: var(--text); }
.custom-list li::before { content: ''; position: absolute; left: 0; top: 0.58em; width: 8px; height: 8px; background-color: var(--accent); }

/* Числа / статистика */
.numbers-section {
    position: relative;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(24, 20, 16, 0.92) 0%, rgba(24, 20, 16, 0.9) 100%),
        url('/assets/images/numbersback.png') center/cover no-repeat;
}

.section-heading-light .section-kicker,
.section-heading-light .section-subtitle,
.section-heading-light .section-title-main {
    color: #fff;
}

.section-heading-light .section-kicker {
    color: rgba(255, 255, 255, 0.68);
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
}

.number-card {
    padding: 1.8rem 1.2rem 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.number-value {
    font-family: 'FordAntenna', sans-serif;
    font-size: clamp(2.6rem, 2vw + 1.8rem, 4.6rem);
    line-height: 0.9;
    color: var(--accent-light);
}

.number-label {
    max-width: 170px;
    font-family: 'EuropeCondensed', sans-serif;
    font-size: 1.2rem;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Логотипы компаний */
.companies { max-height: 220px; object-fit:contain; }

.about-brief-section,
.hr-policy-section,
.equipment-intro,
.social-intro {
    position: relative;
}

.about-visual-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.about-visual-card {
    position: relative;
    min-height: clamp(300px, 30vw, 520px);
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.56);
}

.about-visual-card img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: block;
    object-fit: cover;
}

.about-visual-card figcaption {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 1;
    padding: 0.35rem 0.65rem;
    color: #fff;
    background: rgba(19, 16, 12, 0.72);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Разделители */
.borderline { background-image: url('/assets/images/borderline.png'); background-size:50%; background-position: center bottom; background-repeat:no-repeat; min-height:24px; margin-bottom:1.6rem; }

/* Карточки "Почему выбирают нас" */
.choose-us { background: var(--card-bg); border-top: 8px solid var(--accent); border-radius: var(--radius); padding: 1.4rem; margin: 0.6rem 0.4rem; color: #fff; transition: transform .18s, box-shadow .18s; display:flex; flex-direction:column; justify-content:flex-start; }
.choose-us:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(217,148,49,0.12); }
.choose-us h3, .choose-us h4 { color: var(--accent-light); font-weight:700; letter-spacing:0.02em; }
.choose-us p { color: rgba(255,255,255,0.95); }

/* Сетка: заставим колонки растягиваться, чтобы каждая карточка была отдельной */
.choose-us-section .choose-us-row > [class*="col-"] { display:flex; }
.choose-us-section .choose-us-row > [class*="col-"] .choose-us { flex:1 1 auto; }

/* Блок "Работайте с нами" */
.work-with-us { background-image: url('/assets/images/numbersback.png'); background-size:cover; background-position:center; padding: 4.5rem 2rem; border-radius: 14px; }
.work-with-us .icon { border-bottom: 3px solid #d99431; display:inline-block; padding-bottom:10px; margin-bottom:16px; color:#d99431; }

.partners-editorial {
    margin: 3rem 0 1rem;
    padding: clamp(3rem, 6vw, 6rem) clamp(1.4rem, 4vw, 4rem) !important;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.partners-editorial-inner {
    max-width: 980px;
}

.partners-editorial .section-kicker {
    color: var(--accent);
}

.partners-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.partner-logo-item {
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.34);
}

.partner-logo-item img {
    display: block;
    max-width: 100%;
    max-height: 92px;
    object-fit: contain;
}

.vacancy-focus {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(220px, 0.45fr);
    gap: 1rem;
    align-items: stretch;
    max-width: 860px;
    margin: 0 auto;
}

.vacancy-logo,
.qr-placeholder {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(35, 31, 27, 0.08);
}

.vacancy-logo img {
    display: block;
    max-width: min(320px, 100%);
    max-height: 160px;
    object-fit: contain;
}

.qr-placeholder {
    position: relative;
    color: var(--muted);
    font-family: 'FordAntenna', sans-serif;
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.qr-placeholder::before {
    content: "";
    position: absolute;
    inset: 1.6rem;
    border: 2px dashed rgba(201, 150, 70, 0.48);
}

.qr-placeholder span {
    position: relative;
    z-index: 1;
}

.hr-hotline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: end;
    margin: 1rem 0 5rem;
    padding: clamp(2rem, 5vw, 4.5rem);
    color: #fff;
    background-image: linear-gradient(180deg, rgba(24, 20, 16, 0.92), rgba(24, 20, 16, 0.92)), url('/assets/images/numbersback.png');
    background-size: cover;
    background-position: center;
    border-radius: 24px;
}

.hr-hotline h2 {
    max-width: 760px;
    color: #fff;
    font-size: clamp(2rem, 3.4vw, 4.6rem);
    line-height: 0.96;
    letter-spacing: 0.04em;
}

.hr-hotline a,
.hr-hotline strong {
    color: var(--accent-light);
    font-family: 'EuropeCondensed', sans-serif;
    font-size: clamp(1.4rem, 1.6vw, 2rem);
    text-decoration: none;
}

.hr-hotline span {
    display: block;
    margin-bottom: 0.7rem;
    color: rgba(255, 255, 255, 0.68);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
}

.hr-hotline p {
    margin: 0.55rem 0 0;
    color: rgba(255, 255, 255, 0.72);
}

.equipment-signal-list {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: 'EuropeCondensed', sans-serif;
    font-size: clamp(1.35rem, 1.1vw + 1rem, 2rem);
}

.equipment-signal-list li {
    position: relative;
    padding: 1.2rem 1.3rem 1.2rem 2.2rem;
    background: rgba(255, 255, 255, 0.62);
    border-left: 5px solid var(--accent);
}

.equipment-signal-list li::before {
    content: "";
    position: absolute;
    left: 0.85rem;
    top: 1.75rem;
    width: 0.42rem;
    height: 0.42rem;
    background: var(--accent);
}

/* Контакты */
.contacts {
    position: relative;
    background-image: linear-gradient(180deg, rgba(24, 20, 16, 0.92), rgba(24, 20, 16, 0.92)), url('/assets/images/numbersback.png');
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    min-height: 420px;
}

.contact-card {
    display: flex;
    align-items: stretch;
}

.contact-card-inner {
    width: 100%;
    padding: 3.2rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-kicker {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 1.6rem;
}

.contact-list {
    display: grid;
    gap: 1rem;
}

.contact-list li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 1.05rem;
}

.contact-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.contact-list i {
    color: var(--accent);
    font-size: 1.15rem;
    transform: translateY(0.15rem);
}

.contact-list span {
    display: block;
    margin-bottom: 0.35rem;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
}

.contact-list strong {
    display: block;
    color: #fff;
    font-family: 'EuropeCondensed', sans-serif;
    font-size: 1.35rem;
    line-height: 1.1;
    font-weight: 400;
}

.contact-map-col {
    min-height: 420px;
}

.contact-map-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0 24px 24px 0;
}

.footer-bottom-bar {
    margin-top: 2.5rem;
    padding: 1.15rem 1.5rem;
    font-size: 1.4rem;
    background-image: linear-gradient(180deg, rgba(24, 20, 16, 0.92), rgba(24, 20, 16, 0.92)), url('/assets/images/numbersback.png');
    background-size: cover;
    background-position: center;
    border-radius: 18px;
    letter-spacing: 0.04em;
}

/* Лицензии: превью + модальное окно */
.license-thumb { cursor: zoom-in; transition: transform .2s ease, filter .2s ease; }
.license-thumb:hover { transform: translateY(-2px) scale(1.02); filter: drop-shadow(0 10px 18px rgba(0,0,0,0.2)); }
.licenses-modal { background: rgba(15,15,12,0.98); color: #fff; border: 1px solid rgba(255,255,255,0.08); }
.licenses-modal .modal-title { color: var(--accent-light); letter-spacing: 0.08em; }
.licenses-modal .carousel-control-prev-icon,
.licenses-modal .carousel-control-next-icon { filter: invert(1); }
.licenses-full { max-height: 78vh; object-fit: contain; }

/* Отступы и расположение изображений */
.section-image { display:block; margin: 1.8rem auto; max-width: 90%; border-radius: 12px; }

/* Убираем тени у изображений */
img.img-fluid, img.rounded-4, .companies { box-shadow:none !important; filter:none !important; }

/* Доступность: скрытые заголовки, если понадобятся */
.visually-hidden { position:absolute!important; height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap;border:0;padding:0;margin:-1px }

/* Фокусные стили для доступности */
a:focus, button:focus, .nav-link:focus { outline: 3px solid rgba(217,148,49,0.18); outline-offset: 3px; }
.btn:focus { box-shadow: 0 0 0 4px rgba(217,148,49,0.08); }

@media (prefers-reduced-motion: reduce) {
    .reveal-line,
    .home-hero .hero-actions,
    .page-hero .section-kicker,
    .page-hero .page-hero-lead,
    .js-enabled .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
        animation: none;
    }
}

/* Адаптивные настройки */
@media (max-width: 1200px) {
    html { font-size:16px; }
    .container { padding-left:12px; padding-right:12px; }
    .numbers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .direction-feature,
    .direction-feature-media-right {
        grid-template-columns: 1fr;
        gap: 1.35rem;
        padding: 2.4rem 0;
    }

    .direction-feature-media-right .direction-copy {
        order: 2;
    }

    .direction-feature-media-right .direction-media {
        order: 1;
    }

    .direction-frame {
        min-height: clamp(260px, 48vw, 420px);
    }
}

@media (max-width: 767px) {
    html { font-size:14px; }
    .container { padding-left:12px; padding-right:12px; }
    .gradient-block { padding:1.3rem; border-left:4px solid #d99431; }
    .inner-page { padding-top: 108px; }
    .section-spacing { padding: 4rem 0; }
    .home-hero { min-height: 100svh; padding: 8rem 0 4rem; }
    .home-hero::after { height: 90px; }
    .page-hero { min-height: 100svh; padding: 7.5rem 0 4rem; }
    .page-hero::after { height: 90px; }
    .page-hero-title { font-size: 2.6rem; line-height: 0.98; }
    .page-hero-lead { font-size: 1.2rem; }
    .home-title { font-size: 3rem; }
    .home-title-statement { font-size: 2.7rem; line-height: 0.98; }
    .home-lead { font-size: 1.2rem; }
    .founder-message { padding: 1rem 0 2rem; }
    .founder-copy { padding-right: 0; }
    .founder-photo-wrap,
    .founder-photo { min-height: 320px; }
    .directions-stack { margin-top: -0.5rem; }
    .direction-feature,
    .direction-feature-media-right { padding: 2rem 0; }
    .direction-feature-media-left .direction-frame,
    .direction-feature-media-right .direction-frame {
        min-height: 230px;
        clip-path: polygon(0 0, 100% 0, 100% 88%, 92% 100%, 0 100%);
    }
    .direction-carousel-controls,
    .direction-feature-media-right .direction-carousel-controls {
        left: 0.8rem;
        right: auto;
        bottom: 0.8rem;
    }
    .direction-copy h3 { font-size: 1.9rem; line-height: 1; }
    .direction-copy h4 { font-size: 1.25rem; }
    .direction-copy p { font-size: 1.18rem; }
    .custom-list li { padding-left: 20px; margin-bottom: 8px; }
    .contacts { min-height: auto; }
    .contact-card-inner { padding: 2rem 1.4rem; }
    .contact-list strong { font-size: 1.15rem; }
    .contact-map-col { min-height: 320px; }
    .contact-map-frame { border-radius: 0 0 24px 24px; }
    .footer-bottom-bar { margin-top: 1.5rem; font-size: 1.15rem; }
    .numbers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
    .number-card { min-height: 140px; padding: 1.2rem 1rem; }
    .choose-us { padding:1rem; margin:0.5rem 0; }
    .companies { max-height: 90px; }
    .about-visual-pair,
    .partners-logo-grid,
    .vacancy-focus,
    .hr-hotline {
        grid-template-columns: 1fr;
    }
    .about-visual-card { min-height: 260px; }
    .partners-editorial { border-radius: 18px; }
    .partner-logo-item { min-height: 110px; }
    .vacancy-logo,
    .qr-placeholder { min-height: 180px; }
    .hr-hotline { margin-bottom: 3rem; }
    .work-with-us { padding: 2.5rem 1.2rem; }
    .work-with-us .icon { margin-bottom: 10px; font-size: 2rem !important; }
    .work-with-us p { margin-bottom: 0; font-size: 0.95rem; line-height: 1.2; }
    .vacancies-section .row.py-4 { row-gap: 1rem; }
    .our-companies .row.py-4 { row-gap: 1rem; }
}

@media (max-width: 575px) {
    .numbers-grid { grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; }
    .navbar-brand img { height: 50px; }
}

@media (min-width: 1600px) {
    html { font-size:22px; }
    .container { max-width:1600px; }
}
@media (min-width: 1920px) {
    html { font-size:24px; }
    .container { max-width:1920px; }
}

@media (min-width: 768px) {
    :root {
        --page-gutter: clamp(3rem, 5vw, 5rem);
    }

    .container {
        width: calc(100% - var(--page-gutter) - var(--page-gutter));
        max-width: var(--content-max);
        padding-left: 0;
        padding-right: 0;
    }
}

