/* =======================
   Design tokens — Light
======================= */
:root {
    --bg: #ffffff; /* светлый фон */
    --panel: #f7f9fb; /* светлые панели/карточки */
    --text: #121417; /* основной тёмный текст */
    --muted: #667085; /* вторичный текст */
    --accent: #1B998B; /* насыщённый тёмно-зелёный */
    --accent-ink: #ffffff; /* текст на акценте */
    --border: #e3e8ef; /* светлая рамка */
    --topbar-h: 64px;

    --accent-weak: rgba(15, 122, 76, .12);
    --shadow-1: 0 8px 22px rgba(16, 24, 40, .08);
    --shadow-2: 0 12px 30px rgba(16, 24, 40, .10);
}


/* =======================
   Base
======================= */
* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji';
    color: var(--text);
    background: var(--bg);
}

/* Ссылки по-умолчанию */
a {
    color: inherit
}

/* =======================
   Top bar (горизонтальное меню)
======================= */
.topbar,
.topbar-horizontal {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 24px;
    min-height: var(--topbar-h);
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--border);
}

/* Логотип/бренд */
.brand {
    font-weight: 800;
    letter-spacing: .5px;
    color: var(--text);
    white-space: nowrap;
}

/* Главное меню (горизонтально по центру) */
.main-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav .nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    letter-spacing: .2px;
    padding: 8px 2px;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease, opacity .2s ease;
    opacity: .95;
}

.main-nav .nav-link:hover,
.main-nav .nav-link[aria-current="page"] {
    color: var(--accent);
    border-color: var(--accent);
    opacity: 1;
}

/* Переключатель языка (справа) */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.lang-switch a {
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text);
    opacity: .9;
    transition: all .2s ease;
}

.lang-switch a:hover {
    border-color: var(--accent)
}

.lang-switch a.active {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
    opacity: 1;
}

/* =======================
   Layout
======================= */
.content {
    /* отступ, чтобы контент не прятался под фиксированным хедером */
    padding: calc(var(--topbar-h) + 24px) 18px 40px;
    /*max-width: 1100px;*/
    margin: 0 auto;
    max-width: none;
}

/* =======================
   Buttons
======================= */
.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: .3125rem;
    border: 2px solid var(--accent);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .3px;
    transition: transform .1s ease, background .15s ease, filter .15s ease;
}

.btn:active {
    transform: translateY(1px)
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-ink)
}

.btn-primary:hover {
    filter: brightness(1.05)
}

.btn-outline {
    color: var(--accent);
    background: transparent
}

.btn-outline:hover {
    background: var(--accent-weak)
}

/* =======================
   Hero
======================= */
.hero {
    min-height: calc(100vh - var(--topbar-h));
    display: grid;
    place-items: center;
    width: 100%;
    padding: 0;
    background-image: linear-gradient(to right,
        rgba(13, 31, 29, .88) 0%,
        rgba(13, 31, 29, .60) 45%,
        rgba(13, 31, 29, .18) 100%),
        url('/static/images/logistic.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh; /* полная высота экрана */
    width: 100%;
    margin-top: calc(-1 * var(--topbar-h)); /* чтобы картинка заходила под меню */
    padding: 0;
    background-image: linear-gradient(to right, rgba(5, 25, 55, 0.85) 0%, rgba(5, 25, 55, 0.55) 45%, rgba(5, 25, 55, 0.1) 100%),
    url('/static/images/logistic.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0; /* чтобы было под меню */
}


/* Блок с текстом */
.hero-inner {
    color: #fff;
    text-align: left;
    flex-direction: column;
    max-width: 600px;
    padding-left: 8vw; /* расстояние от левого края */
    padding-right: 2vw;
}

/* Заголовок */
.hero-title {
    color: #fff;
    font-size: clamp(32px, 6vw, 76px);
    line-height: 1.05;
    margin: 0 0 16px;
    letter-spacing: 0.5px;
}

.hero-prof {
    font-size: clamp(16px, 2.2vw, 22px);
    font-weight: 300;
    margin: 4px 0;
    color: rgba(255,255,255,0.85);
    font-style: italic;
}

/* Подзаголовок */
.hero-subtitle {
    /*color: rgba(255,255,255,0.88);*/
    color: black;
    margin: 0 0 24px;
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.4;
}

/* Кнопки */
.hero .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.hero .btn-primary:hover {
    filter: brightness(1.1);
}


.hero-cta {
    display: flex;
    margin-top: 2rem;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap
}

/* =======================
   Sections
======================= */
.section {
    background: radial-gradient(40% 20% at 90% 10%, rgba(15, 122, 76, .06) 0%, rgba(0, 0, 0, 0) 60%),
    var(--bg);
    width: 100%;
}

.section-alt {
    background: radial-gradient(50% 25% at 10% 10%, var(--accent-weak) 0%, rgba(0, 0, 0, 0) 60%),
    var(--bg);
}

.section-inner {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto
}

.section-inner.narrow {
    max-width: 840px
}

.section-title {
    font-size: clamp(26px, 4.5vw, 46px);
    margin: 0 0 16px;
    line-height: 1.05;
}

.section-kicker {
    font-size: clamp(24px, 4vw, 40px);
    line-height: 1.08;
    margin: 0 0 16px;
    letter-spacing: .2px;
}

.section-text {
    color: var(--muted);
    font-size: clamp(16px, 2.2vw, 20px);
    line-height: 1.7;
    margin: 0 0 14px;
}

.section-list {
    margin: 8px 0 0 0;
    padding: 0;
    list-style: none;
}

.section-list li {
    position: relative;
    margin: 10px 0;
    padding-left: 28px;
    color: var(--muted);
    font-size: clamp(16px, 2.2vw, 20px);
    line-height: 1.7;
}

.section-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--accent);
}

.accent {
    color: var(--accent)
}

.section-cta {
    display: flex;
    justify-content: center;
    margin-top: 16px
}

/* =======================
   Scroll-snap (страницы-секции)
======================= */
/*.snap{ scroll-snap-type: y proximity }*/
.snap-section {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    min-height: calc(100vh - var(--topbar-h));
    display: grid;
    place-items: center;
    padding: 48px 18px;
}

@media (min-width: 1024px) {
    .snap-section {
        min-height: 100vh;
        padding: 64px 32px;
    }
}

html {
    /*scroll-snap-type: y mandatory;*/
    scroll-behavior: smooth;
    scroll-padding-top: var(--topbar-h);
}

/* Короткая секция (40vh) */
.section-compact {
    min-height: 40vh !important;
    height: 40vh
}

.section-contrast {
    background: linear-gradient(135deg, rgba(27, 153, 139, .10) 0%, rgba(15, 122, 76, 0) 50%),
    rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.compact-center {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.center {
    text-align: center
}

/* =======================
   Solutions (горизонтальная лента карточек)
======================= */
.solutions-block {
    padding: 24px 0 56px
}

.solutions-head {
    margin: 0 0 10px;
    padding: 0 16px
}

@media (min-width: 1024px) {
    .solutions-head {
        padding: 0 0 8px
    }
}

.solutions-tagline {
    color: var(--muted);
    margin: 6px 0 0;
    max-width: 900px
}

.solutions-rail-wrap {
    position: relative;
    margin-top: 14px
}

.solutions-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(260px, 30vw, 360px);
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 10px 16px 20px;
    /*scroll-snap-type:x proximity;*/
}

/*.solutions-rail:focus-within{ scroll-snap-type:x mandatory }*/
.solutions-rail::-webkit-scrollbar {
    height: 10px
}

.solutions-rail::-webkit-scrollbar-thumb {
    background: rgba(16, 24, 40, .25);
    border-radius: 999px
}

.solutions-rail::-webkit-scrollbar-track {
    background: rgba(16, 24, 40, .10);
    border-radius: 999px
}

.sol-card {
    scroll-snap-align: start;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-1);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    outline: none;
}

.sol-card:hover, .sol-card:focus {
    transform: translateY(-2px);
    border-color: rgba(15, 122, 76, .45);
    box-shadow: var(--shadow-2);
}

.card-img {
  width: 100%;
  height: 170px;
  object-fit: contain; /* 👈 заменили cover → contain */
  object-position: center;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  background: linear-gradient(135deg, var(--accent-weak), rgba(15, 122, 76, 0)), #e8eef3;
}


.card-body {
    padding: 14px 16px 18px
}

.card-title {
    font-size: clamp(18px, 2.4vw, 22px);
    margin: 2px 0 8px
}

.card-text {
    color: var(--muted);
    line-height: 1.6;
    font-size: 16px
}

.rail-fade {
    pointer-events: none;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px
}

.rail-fade--left {
    left: 0;
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%)
}

.rail-fade--right {
    right: 0;
    background: linear-gradient(270deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%)
}

.solutions-cta {
    display: flex;
    justify-content: center;
    margin-top: 24px
}

/* =======================
   Specialization (табы)
======================= */
.spec-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px
}

.spec-intro {
    padding: 18px 0 10px
}

.spec-lead {
    color: var(--muted);
    margin: 8px auto 0;
    max-width: 820px;
    line-height: 1.6
}

.spec-tabs-section {
    padding: 10px 0 40px
}

.spec-tabs {
    display: grid;
    gap: 10px;
    margin: 14px 0 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .spec-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}

@media (min-width: 1024px) {
    .spec-tabs {
        grid-template-columns: repeat(6, minmax(0, 1fr))
    }
}

.spec-tab {
    appearance: none;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: .2px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .1s ease;
    text-align: center;
}

.spec-tab:hover, .spec-tab:focus {
    border-color: rgba(15, 122, 76, .45);
    outline: none
}

.spec-tab[aria-selected="true"] {
    background: var(--accent-weak);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.spec-panels {
    margin-top: 8px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-1);
}

.spec-panel {
    padding: 16px 18px;
    animation: panelFade .18s ease
}

@media (min-width: 768px) {
    .spec-panel {
        padding: 22px 24px
    }
}

.spec-title {
    font-size: clamp(20px, 3.5vw, 28px);
    margin: 0 0 8px
}

.spec-text {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
    margin: 0
}

@keyframes panelFade {
    from {
        opacity: 0;
        transform: translateY(4px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* =======================
   About
======================= */
.about-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px
}

.about-hero {
    padding: 10px 0 4px;
    background: radial-gradient(60% 50% at 10% 10%, rgba(15, 122, 76, .12) 0%, rgba(15, 122, 76, 0) 60%),
    var(--bg);
    border-bottom: 1px solid var(--border);
}

.about-lead {
    color: var(--muted);
    margin: 6px 0 0;
    max-width: 820px
}

.about-section {
    padding: 18px 0 24px
}

.about-h2 {
    font-size: clamp(22px, 4.2vw, 40px);
    margin: 0 0 10px;
    line-height: 1.08
}

.about-h3 {
    font-size: clamp(18px, 3vw, 24px);
    margin: 18px 0 10px
}

.about-text {
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 12px
}

.about-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 18px;
    box-shadow: var(--shadow-1);
}

.about-card.soft {
    background: #ffffff
}

.about-card.accent-left {
    border-left: 4px solid var(--accent)
}

.about-grid {
    display: grid;
    grid-template-columns:1fr;
    gap: 12px;
    margin: 12px 0 6px;
}

@media (min-width: 700px) {
    .about-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}

.feat-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    min-height: 120px;
    box-shadow: var(--shadow-1);
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.feat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 122, 76, .45);
    box-shadow: var(--shadow-2);
}

.feat-badge {
    display: inline-block;
    font-weight: 800;
    letter-spacing: .2px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    background: var(--accent-weak);
}

.feat-text {
    color: var(--muted);
    margin: 0;
    line-height: 1.6
}

/* =======================
   Contacts
======================= */
.contact-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px
}

/* Hero */
.contact-hero {
    position: relative;
    min-height: 42vh;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    background: linear-gradient(0deg, rgba(0, 0, 0, .30), rgba(0, 0, 0, .30)),
    url('/static/images/Logistic.png') center/cover no-repeat,
    radial-gradient(60% 50% at 10% 10%, rgba(15, 122, 76, .08), rgba(15, 122, 76, 0) 60%),
    #f3f6f9;
    border-bottom: 1px solid var(--border);
}

.contact-hero-inner {
    text-align: center;
    padding: 24px
}

.contact-hero-title {
    font-size: clamp(24px, 4.8vw, 44px);
    line-height: 1.1;
    margin: 0;
    color: #fff;
    text-shadow: 0 6px 22px rgba(0, 0, 0, .35);
}

/* Cards */
.contact-services {
    padding: 10px 0 8px
}

.contact-cards {
    display: grid;
    grid-template-columns:1fr;
    gap: 14px
}

@media (min-width: 800px) {
    .contact-cards {
        grid-template-columns:repeat(3, minmax(0, 1fr))
    }
}

.contact-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-1);
    transition: transform .15s ease, border-color .15s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 122, 76, .45)
}

.contact-card-title {
    margin: 2px 0 8px;
    font-size: clamp(18px, 2.6vw, 22px)
}

.contact-card-text {
    color: var(--muted);
    margin: 0 0 8px;
    line-height: 1.6
}

.contact-card-link {
    color: var(--accent);
    text-decoration: none;
    word-break: break-word
}

/* Form */
.contact-form-section {
    padding: 16px 0 40px
}

.contact-form-title {
    margin: 10px 0 14px;
    font-size: clamp(20px, 3.6vw, 32px)
}

.contact-form {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-1);
}

.form-row {
    display: grid;
    grid-template-columns:1fr;
    gap: 12px
}

@media (min-width: 700px) {
    .form-row {
        grid-template-columns:1fr 1fr
    }
}

.form-group {
    display: grid;
    gap: 6px
}

label {
    font-weight: 600
}

.input, .textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    padding: 12px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.input:focus, .textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(15, 122, 76, .18);
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 12px
}

/* Alerts */
.alert {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #f8fafc;
    color: var(--text);
}

.alert.success {
    border-color: #2e7d32;
    background: rgba(46, 125, 50, .12)
}

.alert.error {
    border-color: #b71c1c;
    background: rgba(183, 28, 28, .12)
}

.hidden {
    display: none
}

/* Company card */
.contact-company {
    padding: 18px 0 48px
}

.company-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    text-align: center;
    box-shadow: var(--shadow-1);
    position: relative;
}

.company-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.company-title {
    margin: 0 0 8px;
    font-size: clamp(18px, 3.5vw, 24px)
}

.company-info {
    font-style: normal;
    color: var(--muted);
    line-height: 1.7
}

.company-name {
    color: var(--text);
    font-weight: 800;
    letter-spacing: .2px
}

.company-hours {
    margin-top: 6px
}

/* =======================
   Cookie banner
======================= */
.cookie {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    z-index: 80;
    box-shadow: var(--shadow-2);
}

.cookie.hidden {
    display: none
}

.cookie-inner {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: space-between
}

.cookie p {
    margin: 0;
    color: var(--text)
}

.cookie-link {
    color: var(--accent)
}


.sidebar, .burger {
    display: none !important
}

body {
    padding-left: 0 !important
}

/* никаких отступов под левую панель */

.sidebar .nav-link {
    display: block;
    padding: 12px 18px;
    text-decoration: none;
    border-left: 3px solid transparent;
}

.sidebar .nav-link:hover,
.sidebar .nav-link[aria-current="page"] {
    background: var(--panel);
    border-left-color: var(--accent);
}


/* =======================
   Mobile burger + menu
======================= */

/* Кнопка бургера (по умолчанию скрыта, видна на узких экранах) */
.burger-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.burger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 3px 0;
    transition: transform .2s ease, opacity .2s ease;
}

.burger-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5px) rotate(45deg)
}

.burger-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0
}

.burger-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg)
}

/* Мобильное меню-оверлей (dropdown-панель) */
.mobile-menu {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    z-index: 70;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    box-shadow: var(--shadow-1);
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-inner {
    display: grid;
    gap: 6px;
    padding: 14px 16px 18px;
}

.m-link {
    display: block;
    padding: 12px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    border: 1px solid transparent;
}

.m-link:hover {
    background: var(--panel);
    border-color: var(--border);
}

.m-lang {
    display: flex;
    gap: 8px;
    padding-top: 6px;
    border-top: 1px dashed var(--border);
    margin-top: 6px;
}

.m-lang-link {
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text);
    opacity: .9;
    transition: all .2s ease;
}

.m-lang-link:hover {
    border-color: var(--accent)
}

.m-lang-link.active {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
    opacity: 1;
}

/* Адаптив: на ширине < 900px прячем десктоп-меню, показываем бургер */
@media (max-width: 900px) {
    .main-nav {
        display: none
    }

    .lang-switch {
        display: none
    }

    /* языки уедут в мобильное меню */
    .burger-btn {
        display: flex
    }
}

/* На ширине >= 901px гарантированно прячем мобильное меню */
@media (min-width: 901px) {
    .mobile-menu {
        display: none !important
    }
}


/* === WhyUs — simple 3 cards === */
/* === WhyUs — simple 3 cards === */
.whyus-block h2 {
    text-align: center;
    font-size: clamp(26px, 4vw, 40px);
    margin: 0 0 10px;
}

.whyus-tagline {
    text-align: center;
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto 32px;
    font-size: 17px;
}

.whyus-simple-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
    .whyus-simple-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .whyus-simple-grid {
        grid-template-columns: 1fr;
    }
}

.whyus-simple {
    position: relative;
    background: #fff;
    border: 1px solid rgba(2, 6, 23, .06);
    border-radius: 16px;
    padding: 18px 18px 20px;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}

.whyus-simple:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .08);
}

.whyus-simple__icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    /*background: radial-gradient(140% 140% at 20% 20%, rgba(34,211,238,.25), rgba(14,165,165,.18));*/
    border: 1px solid rgba(14, 165, 165, .28);
    margin-bottom: 10px;
}

.whyus-simple__icon svg {
    width: 70px;
    height: 70px;
}

.whyus-simple__title {
    margin: 0 0 8px;
    font-weight: 700;
    font-size: 18px;
    color: var(--accent-contrast);
}

.whyus-simple__text {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}


/* === Industry Scroll (sticky + panels) === */
.industry-scroll {
    position: relative;
    padding: 70px 0 80px;
}

.industry-shell {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 26px;
}

@media (max-width: 980px) {
    .industry-shell {
        grid-template-columns: 1fr;
    }
}

.industry-sticky {
    position: sticky;
    top: 80px;
    align-self: start;
}

.industry-sticky h2 {
    font-size: clamp(26px, 4vw, 40px);
    margin: 0 0 8px;
}

.industry-tagline {
    color: var(--muted);
    margin: 0 0 18px;
    max-width: 28ch;
}

.industry-steps {
    position: relative;
    list-style: none;
    margin: 18px 0 0;
    padding: 10px 0 10px 0;
}

.industry-steps .step-progress {
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(14, 165, 165, .15);
    border-radius: 2px;
}

.industry-steps .step-progress i {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background: var(--accent);
    border-radius: 2px;
    transition: height .35s ease;
}

.step-dot {
    position: relative;
    padding: 12px 0 12px 28px;
    cursor: default;
    color: var(--muted);
}

.step-dot::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 18px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d5f7f6;
    border: 2px solid rgba(14, 165, 165, .45);
    transition: transform .2s ease, background .2s ease;
}

.step-dot.active {
    color: var(--text);
}

.step-dot.active::before {
    background: var(--accent);
    transform: scale(1.15);
}

.industry-panels {
    display: grid;
    gap: 28px;
}

.industry-panel {
    min-height: 68vh;
    padding: 22px 20px 24px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(2, 6, 23, 0.06);
    box-shadow: var(--shadow);
    opacity: .2;
    transform: translateY(24px) scale(.98);
    transition: opacity .45s ease, transform .45s ease, box-shadow .2s ease;
}

.industry-panel.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .08);
}

.panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2px 0 10px;
}

.panel-icon {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    /*background: radial-gradient(140% 140% at 20% 20%, rgba(34, 211, 238, .25), rgba(14, 165, 165, .18));*/
    border: 1px solid rgba(14, 165, 165, .28);
}

.panel-icon svg {
    width: 70px;
    height: 70px;
    fill: var(--accent);
}

.industry-panel h3 {
    margin: 0;
    font-size: 20px;
    color: var(--accent-contrast);
}

.industry-panel p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    max-width: 70ch;
}

@media (max-width: 980px) {
    .industry-sticky {
        position: static;
        top: auto;
    }

    .industry-steps .step-progress {
        display: none;
    }

    .step-dot {
        padding-left: 0;
    }

    .step-dot::before {
        display: none;
    }
}

/* Compact industry panels */
.industry-panel {
    min-height: 35vh; /* вместо 68vh */
    padding: 20px 20px 22px;
}

.industry-panel h3 {
    font-size: 19px;
}

.industry-panel p {
    font-size: 15.5px;
    line-height: 1.55;
}

@media (max-width: 980px) {
    .industry-panel {
        min-height: auto;
    }
}


/* === Section system (modern) === */
:root {
    --sep-color: rgba(2, 6, 23, 0.08);
    --bg-alt: linear-gradient(180deg, rgba(2, 6, 23, 0.03), rgba(2, 6, 23, 0.00));
}

/* общий отступ и автоматический hairline-разделитель */
.section {
    padding: clamp(48px, 7vw, 92px) 0;
}

.section + .section {
    border-top: 1px solid var(--sep-color);
}

/* альтернативный фон для «перелома» ритма */
.section--alt {
    background: var(--bg-alt);
}

/* едва заметная сетка (трендовая «grid» текстура) */
.bg-grid {
    position: relative;
    isolation: isolate;
}

.bg-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(circle at 1px 1px, rgba(14, 165, 165, .12) 1px, transparent 0);
    background-size: 22px 22px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0.1));
}

/* фигурные сепараторы для выделенных секций */
.shape-sep {
    position: relative;
}

.shape-sep--top::before,
.shape-sep--bottom::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 52px;
    background: none;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    background-color: #fff; /* цвет следующей секции */
    opacity: .96;
}

.shape-sep--top::before {
    top: -1px;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'><path fill='white' d='M0,120 L1200,0 L1200,120 Z'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'><path fill='white' d='M0,120 L1200,0 L1200,120 Z'/></svg>");
}

.shape-sep--bottom::after {
    bottom: -1px;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'><path fill='white' d='M0,0 L1200,120 L0,120 Z'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'><path fill='white' d='M0,0 L1200,120 L0,120 Z'/></svg>");
}

/* тонкая граница карточек и мягкая подсветка при фокусе/ховере */
.card, .whyus-item, .industry-panel, .contact-card {
    border: 1px solid rgba(2, 6, 23, 0.06);
}

.card:hover, .whyus-item:hover, .industry-panel.is-active {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}


/* =======================
   Footer
======================= */
.site-footer {
    background-color: #0D1F1D;
    color: #EAF3F1;
    padding: 60px 16px 30px;
    font-size: 15px;
    line-height: 1.6;
}

.footer-container {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-col h3,
.footer-col h4 {
    color: #EAF3F1;
    margin: 0 0 12px;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: .3px;
}

.footer-brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.footer-desc {
    color: rgba(234, 243, 241, 0.85);
    max-width: 340px;
}

.footer-nav,
.footer-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li,
.footer-contacts li {
    margin: 6px 0;
}

.footer-nav a,
.footer-contacts a {
    color: rgba(234, 243, 241, 0.9);
    text-decoration: none;
    transition: color .2s ease;
}

.footer-nav a:hover,
.footer-contacts a:hover {
    color: #1b998b; /* твой акцент */
}

.footer-bottom {
    border-top: 1px solid rgba(234, 243, 241, 0.1);
    text-align: center;
    padding-top: 18px;
    font-size: 14px;
    color: rgba(234, 243, 241, 0.7);
}

/* адаптив */
@media (max-width: 600px) {
    .site-footer {
        padding: 40px 12px 24px;
    }

    .footer-container {
        gap: 20px;
    }

    .footer-col h4 {
        margin-bottom: 6px;
    }
}


/* ===== Full-bleed HERO under sticky topbar (no white gap) ===== */
.topbar {
    z-index: 100;
}

/* меню поверх картинки */

.home-page .hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* контент слева */
    height: calc(100vh + var(--topbar-h));
    margin-top: calc(-1 * var(--topbar-h)); /* уводим Hero под меню */
    width: 100%;
    padding: 0;

    /* картинка + синий градиент слева направо */
    background-image: linear-gradient(to right, rgba(5, 25, 55, .85) 0%, rgba(5, 25, 55, .55) 45%, rgba(5, 25, 55, .12) 100%),
    url('/static/images/logistic.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Контент героя — слева, белый текст */
.home-page .hero-inner {
    color: #fff;
    text-align: left;
    max-width: 680px;
    padding-left: 8vw; /* расстояние от левого края */
    padding-right: 2vw;
}

.home-page .hero-title {
    color: #fff;
    font-size: clamp(32px, 6vw, 76px);
    line-height: 1.05;
    margin: 0 0 16px;
    letter-spacing: .5px;
}

.home-page .hero-subtitle {
    color: rgba(255, 255, 255, .88);
    margin: 0 0 24px;
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.4;
}

/* Кнопки на тёмном фоне */
.home-page .hero .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Снимаем отступ под хедер на главной, чтобы не было белой полосы */
.home-page .content {
    padding-top: 0;
}


/* ===== Services chess layout ===== */
.services-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(32px, 6vw, 64px) 16px;
    display: grid;
    gap: clamp(32px, 5vw, 64px);
}

.svc-row {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(24px, 3vw, 40px);
    align-items: center;
}

.svc-row.reverse {
    grid-template-columns: 1fr 1.05fr;
}

.svc-col {
    min-width: 0;
}

/* текст */
.svc-kicker {
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 8px;
}

.svc-title {
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.08;
    margin: 0 0 12px;
}

.svc-text {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
    margin: 0 0 18px;
    max-width: 60ch;
}

.svc-cta {
    display: inline-block;
    padding: 12px 18px;
    border-radius: .5rem;
    border: 2px solid var(--accent);
    text-decoration: none;
    font-weight: 700;
    color: var(--accent);
    transition: background .15s ease, transform .1s ease;
}

.svc-cta:hover {
    background: var(--accent-weak);
}

.svc-cta:active {
    transform: translateY(1px);
}

/* медиа с подложкой */
.svc-media {
    position: relative;
    border-radius: 18px;
    overflow: visible;
    isolation: isolate;
}

.svc-media::after {
    /* «подложка» — тёмно-синий скруглённый прямоугольник смещённый вправо-вниз */
    content: "";
    position: absolute;
    inset: 14px -12px -14px 12px; /* сдвиг для «тени-подложки» */
    border-radius: 18px;
    background: #0D1F1D;
    opacity: .95;
    z-index: -1;
}

.svc-card {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
    transform: translate3d(0, 0, 0);
}

.svc-img {
    display: block;
    width: 100%;
    height: clamp(260px, 38vw, 440px);
    object-fit: cover;
}

/* Инверсия подложки для чётных (смещение в другую сторону) */
.svc-row.reverse .svc-media::after {
    inset: 14px 12px -14px -12px;
}

/* адаптив */
@media (max-width: 980px) {
    .svc-row,
    .svc-row.reverse {
        grid-template-columns: 1fr;
    }

    /* на мобилке сначала текст, потом картинка — читается лучше */
    .svc-row.reverse .svc-col:first-child {
        order: 0;
    }

    .svc-row.reverse .svc-col:last-child {
        order: 1;
    }

    .svc-media::after,
    .svc-row.reverse .svc-media::after {
        inset: 12px 8px -12px 8px; /* подложка компактнее */
    }

    .svc-img {
        height: clamp(220px, 48vw, 360px);
    }
}

/* ===== About: HERO clean full-width with gradient ===== */
.about-hero-full {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: calc(45vh + var(--topbar-h));
    margin-top: calc(-1 * var(--topbar-h));
    color: #fff;
    background-image: linear-gradient(to right,
    rgba(13, 31, 29, .88) 0%,
    rgba(13, 31, 29, .60) 45%,
    rgba(13, 31, 29, .18) 100%),
    url('/static/images/logistic.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent; /* ← важно, чтобы не было белого фона */
    overflow: hidden;
}

/* Контейнер с текстом */
.about-hero-inner {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 700px;
    padding: 24px 6vw;
    background: none; /* ← убираем любую подложку */
}

/* Текст */
.about-hero-title {
    margin: 0 0 12px;
    font-size: clamp(32px, 6vw, 72px);
    line-height: 1.05;
    color: #fff;
}

.about-hero-lead {
    margin: 0 0 22px;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.about-hero .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    text-transform: none;
}

/* Убираем возможные белые перекрытия от родительских элементов */
.about-hero-full .about-inner,
.about-hero-full::before,
.about-hero-full::after {
    background: none !important;
}

/* ===== Services: HERO full-width with gradient (same as About) ===== */
.service-hero-full {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: calc(45vh + var(--topbar-h));
    margin-top: calc(-1 * var(--topbar-h));
    color: #fff;
    background-image: linear-gradient(to right,
        rgba(13, 31, 29, .88) 0%,
        rgba(13, 31, 29, .60) 45%,
        rgba(13, 31, 29, .18) 100%),
        url('/static/images/logistic.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    overflow: hidden;
}

.food-hero-full {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: calc(45vh + var(--topbar-h));
    margin-top: calc(-1 * var(--topbar-h));
    color: #fff;
    background-image: linear-gradient(to right,
        rgba(13, 31, 29, .88) 0%,
        rgba(13, 31, 29, .60) 45%,
        rgba(13, 31, 29, .18) 100%),
        url('/static/images/food.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    overflow: hidden;
}

.agro-hero-full {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: calc(45vh + var(--topbar-h));
    margin-top: calc(-1 * var(--topbar-h));
    color: #fff;
    background-image: linear-gradient(to right,
        rgba(13, 31, 29, .88) 0%,
        rgba(13, 31, 29, .60) 45%,
        rgba(13, 31, 29, .18) 100%),
        url('/static/images/agro.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    overflow: hidden;
}

.spec-hero-full {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: calc(45vh + var(--topbar-h));
    margin-top: calc(-1 * var(--topbar-h));
    color: #fff;
    background-image: linear-gradient(to right,
        rgba(13, 31, 29, .88) 0%,
        rgba(13, 31, 29, .60) 45%,
        rgba(13, 31, 29, .18) 100%),
        url('/static/images/agro.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    overflow: hidden;
}

.med-hero-full {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: calc(45vh + var(--topbar-h));
    margin-top: calc(-1 * var(--topbar-h));
    color: #fff;
    background-image: linear-gradient(to right,
        rgba(13, 31, 29, .88) 0%,
        rgba(13, 31, 29, .60) 45%,
        rgba(13, 31, 29, .18) 100%),
        url('/static/images/med.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    overflow: hidden;
}

.service-hero-inner {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 700px;
    padding: 24px 6vw;
    background: none;
}

.service-hero-title {
    margin: 0 0 12px;
    font-size: clamp(32px, 6vw, 72px);
    line-height: 1.05;
    color: #fff;
}

.service-hero-lead {
    margin: 0 0 22px;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.service-hero-full .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    text-transform: none;
}

/* убираем фон от родителей */
.service-hero-full::before,
.service-hero-full::after {
    background: none !important;
}


/* Логотип */
.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 6px 0;
}

.brand-logo {
    height: 38px; /* можно подправить */
    width: auto;
    display: block;
}

/* Адаптивность — чтобы логотип корректно масштабировался на телефонах */
@media (max-width: 900px) {
    .brand-logo {
        height: 32px;
    }
}



/* ===== Вводный болок ===== */
.intro-info {
  background: #e7e7e7;
  padding: 100px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.intro-info-title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 32px;
}
.intro-info-text {
  max-width: 900px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
  color: #1c1c1c;
}
.intro-info-text strong {
  color: var(--brand);
}


/* ===== Центрированный блок карточек решений ===== */
.solutions-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 16px;
  text-align: center;
}

.solutions-center-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  max-width: 1000px;
  width: 100%;
}

.sol-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 360px;
  width: 100%;
}

.sol-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.card-title {
  font-size: 1.25rem;
  margin: 0;
  color: var(--text-primary, #0d1f1d);
}

.card-text {
  font-size: 1rem;
  color: var(--muted, #555);
  line-height: 1.4;
}

.btn.btn-outline {
  border: 2px solid var(--brand-600, #0d1f1d);
  color: var(--brand-600, #0d1f1d);
  background: transparent;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn.btn-outline:hover {
  background-color: var(--brand-600, #0d1f1d);
  color: #fff;
}
