:root {
    --brand: #0D1F1D;
    --accent: #020dc9; /* deep corporate teal based on rgb(111,218,198) */
    --primary: #020dc9;
    --text: #0e1222;
    --muted: #5b6370;
    --bg: #ffffff;
    --card: #f7f8fb;
    --shadow: 0 6px 20px rgba(0, 0, 0, .06);
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif
}

a {
    color: inherit;
    text-decoration: none
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px
}

.prose {
    max-width: 900px;
    padding: 24px 18px
}

.grid.two {
    display: grid;
    grid-template-columns:1fr;
    gap: 24px
}

.grid.four {
    display: grid;
    grid-template-columns:repeat(1, 1fr);
    gap: 16px
}

@media (min-width: 768px) {
    .grid.two {
        grid-template-columns:1fr 1fr
    }

    .grid.four {
        grid-template-columns:repeat(2, 1fr)
    }
}

@media (min-width: 1024px) {
    .grid.four {
        grid-template-columns:repeat(4, 1fr)
    }
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fffafee0;
    backdrop-filter: saturate(140%) blur(8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 10px 16px
}

.logo {
    font-weight: 700;
    letter-spacing: .2px
}

.nav {
    display: flex;
    align-items: center;
    gap: 16px
}

.nav-link {
    padding: 10px 12px;
    border-radius: 12px
}

.nav-link:hover {
    background: var(--card)
}

.lang-switch {
    display: flex;
    gap: 8px;
    margin-left: 8px
}

.lang {
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid #e5e7eb
}

.lang.active {
    background: var(--primary);
    color: #fff;
    border-color: transparent
}

.burger {
    display: none;
    flex-direction: column;
    gap: 3px;
    background: transparent;
    border: 0;
    padding: 8px
}

.burger span {
    width: 22px;
    height: 2px;
    background: #111;
    display: block;
    border-radius: 2px
}

@media (max-width: 900px) {
    .burger {
        display: flex
    }

    .nav {
        position: fixed;
        right: -100%;
        top: 56px;
        height: calc(100vh - 56px);
        width: min(320px, 80%);
        background: #fff;
        box-shadow: var(--shadow);
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        transition: right .3s
    }

    .nav.open {
        right: 0
    }
}

.content {
    min-height: 60vh
}

/* Hero */
.hero {
    height: 100vh;
    min-height: 520px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: grid;
    place-items: center
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(13, 31, 29, .85) 0%, rgba(13, 31, 29, .35) 55%, rgba(13, 31, 29, .15) 100%)
}

.hero-inner {
    position: relative;
    color: #fff;
    padding: 20px;
    text-align: left;
    max-width: 900px
}

.hero-title {
    font-size: clamp(28px, 5vw, 54px);
    margin: 0 0 10px
}

.hero-subtitle {
    font-size: clamp(16px, 2.2vw, 22px);
    opacity: .9;
    margin: 0 0 18px
}

.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    box-shadow: var(--shadow);
    font-weight: 600
}

.btn-primary {
    background: var(--primary);
    color: #fff
}

.btn-outline {
    background: transparent;
    border-color: #ffffff80;
    color: #fff
}

/* Solutions rail */
.solutions {
    padding: 36px 0 60px
}

.section-title {
    font-size: 28px;
    margin: 0 0 8px
}

.section-tagline {
    color: var(--muted);
    margin: 0 0 10px
}

.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(240px, 28vw, 340px);
    gap: 16px;
    overflow-x: auto;
    padding: 8px 4px 12px;
    scroll-snap-type: x proximity
}

.card {
    background: var(--card);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow)
}

.snap {
    scroll-snap-align: start
}

.btn-link {
    color: var(--primary);
    font-weight: 600
}

.card-media {
    height: 140px;
    border-radius: 12px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    background-size: cover;
    background-position: center;
}

 уникальные изображения
.card.cargo .card-media {
    background-image: url("/static/img/s1.webp");
}

.card.trade .card-media {
    background-image: url("/static/img/s2.webp");
}

.card.compliance .card-media {
    background-image: url("/static/img/s3.webp");
}

.card.chain .card-media {
    background-image: url("/static/img/s4.webp");
}

/* Page hero */
.page-hero {
    padding: 32px 0 8px;
    background: linear-gradient(0deg, #fff, #f6f8ff)
}

.page-title {
    font-size: 34px;
    margin: 0 0 6px
}

.lead {
    color: var(--muted)
}

/* Services cards */
.cards-grid .svc-card {
    display: block;
    background: var(--card);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow)
}

.cards-grid .svc-card:hover {
    outline: 2px solid var(--primary)
}

/* Footer */
.footer {
    margin-top: 40px;
    background: var(--primary);
    color: #fff
}

.footer-inner {
    display: grid;
    grid-template-columns:repeat(1, 1fr);
    gap: 14px;
    padding: 24px 18px
}

.footer a {
    color: #fff
}

@media (min-width: 800px) {
    .footer-inner {
        grid-template-columns:repeat(3, 1fr)
    }
}

/* ===== WHY US block with animation ===== */
.why-us {
    background: #e7e7e7;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
    overflow: hidden;
}

.why-title {
    text-align: center;
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--brand);
}

.why-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

@media (min-width: 992px) {
    .why-content {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 60px;
    }
}

.why-text {
    max-width: 600px;
    text-align: left;
}

.why-text p {
    line-height: 1.7;
    font-size: 17px;
    color: #1c1c1c;
}

.why-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

/* Блок с изображением */
.why-image-wrap {
    flex: 0 0 30%; /* занимает не более 30% ширины */
    max-width: 30%;
    display: flex;
    justify-content: center;
}

.why-image-bg {
    background: var(--accent);
    border-radius: 20px;
    padding: 14px;
    box-shadow: var(--shadow);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* изображение заполняет блок */
    border-radius: 12px;
}

/* Блок с текстом */
.why-text {
    flex: 1 1 65%; /* остальная часть ширины */
    max-width: 65%;
}

/* Адаптив */
@media (max-width: 992px) {
    .why-content {
        flex-direction: column;
    }

    .why-text,
    .why-image-wrap {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .why-image-bg {
        padding: 10px;
    }
}


/* ===== Animation states ===== */
.fade-section {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s ease;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}


.map-block {
    background: #ffffff;
    padding: 80px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.map-title {
    text-align: center;
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 40px;
}

.map-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.russia-map {
    max-width: 900px;
    width: 100%;
    height: auto;
}

.map-label {
    font-size: 16px;
    fill: #222;
    font-family: Inter, sans-serif;
    dominant-baseline: middle;
}

.russia-map circle {
    animation: pulse 2s infinite;
    transform-origin: center;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}


/* ===== Offices Map Section ===== */
.offices-map {
    background: #f9f9f9;
    padding: 100px 0;
    display: flex;
    align-items: center;
}

.offices-title {
    text-align: center;
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 50px;
}

.offices-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

@media (min-width: 992px) {
    .offices-content {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 60px;
    }
}

.offices-text {
    max-width: 500px;
    text-align: left;
    font-size: 18px;
    line-height: 1.7;
    color: #1c1c1c;
}

.offices-text strong {
    color: var(--brand);
}

.offices-image-wrap {
    flex-shrink: 0;
}

.offices-image-bg {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.offices-image {
    display: block;
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Плавное появление */
.offices-map .offices-content {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.offices-map.visible .offices-content {
    opacity: 1;
    transform: translateY(0);
}


/* ===== Вводный болок ===== */
.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);
}


.back-link {
    margin-bottom: 20px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s ease;
}

.back-btn:hover {
    color: var(--brand-700);
}

.page-hero {
    padding-top: 80px;
    padding-bottom: 40px;
}


.contact-section { padding: 28px 0 60px; }

.contact-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.contact-form label {
  font-size: 14px;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 13, 201, 0.08);
}

.muted { color: var(--muted); }


.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 42px;       /* можно подогнать под шапку */
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .logo-img {
    height: 36px;
  }
}
