/* ============== Reset & base ============== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #0f172a;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

:root {
  --c-bg: #ffffff;
  --c-ink: #0f172a;
  --c-ink-soft: #475569;
  --c-line: #e2e8f0;
  --c-brand: #b8232c;       /* евразийский красный */
  --c-brand-dark: #8b1820;
  --c-accent: #0f4c81;      /* синий */
  --c-surface: #f8fafc;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 12px rgba(15, 23, 42, .04);
}

/* ============== Layout ============== */
.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

main > section { padding: clamp(48px, 7vw, 96px) 0; }

/* ============== Header ============== */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid var(--c-line);
  /* backdrop-filter намеренно не используем: он создаёт containing-block
     для fixed-потомков и ломает мобильное меню. */
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; text-decoration: none; color: inherit;
  letter-spacing: .2px;
}
.brand__logo {
  width: 40px; height: 40px; display: block;
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, .08));
}
.brand__name { font-size: 18px; line-height: 1; }
.brand--light .brand__name { color: #fff; }

.nav-wrap { display: flex; align-items: center; gap: 18px; }
.nav { display: flex; gap: 26px; }
.nav a {
  text-decoration: none; color: var(--c-ink-soft);
  font-weight: 500; font-size: 15px;
  transition: color .15s;
}
.nav a:hover { color: var(--c-brand); }
.nav a.is-active { color: var(--c-brand); position: relative; }
.nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--c-brand); border-radius: 2px;
}

.lang-switcher select {
  appearance: none;
  border: 1px solid var(--c-line);
  background: #fff;
  padding: 7px 28px 7px 12px;
  border-radius: 8px;
  font: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23475569' stroke-width='1.5'><path d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
}

/* ============== Бургер + мобильное меню ============== */
.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 10px;
  background: transparent; border: 1px solid var(--c-line);
  border-radius: 10px; cursor: pointer;
  position: relative;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--c-ink); border-radius: 2px;
  margin: 4px 0; transition: transform .2s, opacity .2s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

body.no-scroll { overflow: hidden; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-wrap {
    position: fixed; inset: 64px 0 0 0;
    background: #fff;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 24px;
    transform: translateY(-12px); opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
    z-index: 15;
    border-top: 1px solid var(--c-line);
    overflow-y: auto;
  }
  .nav-wrap.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav {
    flex-direction: column; gap: 0;
  }
  .nav a {
    padding: 16px 4px; font-size: 17px;
    border-bottom: 1px solid var(--c-line);
  }
  .nav a.is-active::after { display: none; }
  .nav a.is-active { color: var(--c-brand); font-weight: 600; }
  .lang-switcher { margin-top: 18px; }
  .lang-switcher select { width: 100%; padding-block: 12px; }
}

/* ============== Hero ============== */
.hero {
  background:
    radial-gradient(circle at 80% 10%, rgba(184, 35, 44, .08), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(15, 76, 129, .08), transparent 55%),
    linear-gradient(180deg, #fdfdfd, #f4f6fb);
  padding: clamp(72px, 10vw, 140px) 0 clamp(56px, 8vw, 110px) !important;
}
.hero__inner { max-width: 820px; }
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: 1.4px;
  font-size: 12px; font-weight: 600;
  color: var(--c-brand); margin: 0 0 18px;
}
.hero__title {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1; margin: 0 0 22px; font-weight: 700;
  letter-spacing: -.5px;
}
.hero__accent {
  background: linear-gradient(120deg, var(--c-brand), var(--c-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--c-ink-soft); max-width: 640px; margin: 0 0 32px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============== Buttons ============== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 15px;
  transition: transform .12s, box-shadow .12s, background .15s, color .15s;
  border: 1px solid transparent;
}
.btn--primary { background: var(--c-brand); color: #fff; }
.btn--primary:hover { background: var(--c-brand-dark); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.btn--ghost:hover { border-color: var(--c-ink); }
.btn--large { padding: 16px 30px; font-size: 16px; }

/* ============== Stats ============== */
.stats { background: #fff; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); padding: 36px 0 !important; }
.stats__grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.stat { text-align: center; }
.stat__value {
  font-size: clamp(28px, 3.4vw, 40px); font-weight: 700;
  color: var(--c-brand); letter-spacing: -.5px;
}
.stat__label { color: var(--c-ink-soft); font-size: 14px; }

/* ============== Sections ============== */
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head__eyebrow {
  text-transform: uppercase; letter-spacing: 1.4px;
  font-size: 12px; font-weight: 600; color: var(--c-accent); margin: 0 0 10px;
}
.section-head__title {
  font-size: clamp(26px, 3vw, 36px);
  margin: 0; line-height: 1.2; letter-spacing: -.4px;
}

/* ============== Services ============== */
.services { background: var(--c-surface); }
.services__grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.service-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: transparent; }
.service-card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(184,35,44,.12), rgba(15,76,129,.12));
  display: grid; place-items: center; margin-bottom: 18px;
  position: relative;
}
.service-card__icon::after {
  content: ""; width: 22px; height: 22px;
  background: var(--c-brand);
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.service-card__icon--globe::after    { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M2 12h20M12 2a15 15 0 010 20M12 2a15 15 0 000 20'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M2 12h20M12 2a15 15 0 010 20M12 2a15 15 0 000 20'/></svg>"); }
.service-card__icon--truck::after    { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 3h15v13H1zM16 8h4l3 3v5h-7'/><circle cx='5.5' cy='18.5' r='2.5'/><circle cx='18.5' cy='18.5' r='2.5'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 3h15v13H1zM16 8h4l3 3v5h-7'/><circle cx='5.5' cy='18.5' r='2.5'/><circle cx='18.5' cy='18.5' r='2.5'/></svg>"); }
.service-card__icon--handshake::after{ -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M11 17l2 2 4-4'/><path d='M3 12l4-4 4 4 4-4 6 6-6 6-4-4-4 4z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M11 17l2 2 4-4'/><path d='M3 12l4-4 4 4 4-4 6 6-6 6-4-4-4 4z'/></svg>"); }
.service-card__icon--chart::after    { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 3v18h18'/><path d='M7 15l4-4 4 4 6-6'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 3v18h18'/><path d='M7 15l4-4 4 4 6-6'/></svg>"); }
.service-card__title { font-size: 18px; margin: 0 0 8px; }
.service-card__text { color: var(--c-ink-soft); font-size: 15px; margin: 0; }

/* ============== About ============== */
.about__inner {
  display: grid; gap: 40px;
  grid-template-columns: 1fr 1.4fr;
  align-items: start;
}
.about__text p { color: var(--c-ink-soft); margin: 0 0 14px; }
@media (max-width: 820px) { .about__inner { grid-template-columns: 1fr; } }

/* ============== CTA ============== */
.cta {
  background: linear-gradient(120deg, var(--c-brand), var(--c-accent));
  color: #fff; text-align: center;
}
.cta h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 12px; }
.cta p { opacity: .92; margin: 0 0 28px; }
.cta .btn--primary { background: #fff; color: var(--c-brand); }
.cta .btn--primary:hover { background: #f1f5f9; }

/* ============== Page hero (внутренние страницы) ============== */
.page-hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(184, 35, 44, .07), transparent 50%),
    linear-gradient(180deg, #fdfdfd, #f4f6fb);
  padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 72px) !important;
}
.page-hero__title {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.15; margin: 8px 0 16px; font-weight: 700; letter-spacing: -.4px;
  max-width: 820px;
}
.page-hero__lead {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--c-ink-soft); max-width: 720px; margin: 0;
}

/* ============== Generic block / surface ============== */
.block { padding: clamp(48px, 7vw, 96px) 0; }
.block--surface { background: var(--c-surface); }

.two-col {
  display: grid; gap: 40px;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.section-head__title--left { text-align: left; }
.bullets { padding-left: 18px; color: var(--c-ink-soft); }
.bullets li { margin-bottom: 8px; }

/* ============== About: values + team ============== */
.values__grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.value-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 24px;
}
.value-card h3 { margin: 0 0 6px; font-size: 17px; color: var(--c-brand); }
.value-card p { margin: 0; color: var(--c-ink-soft); font-size: 15px; }

.team__grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.team-card {
  text-align: center; padding: 22px 16px;
  border: 1px solid var(--c-line); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.team-card:hover { border-color: transparent; box-shadow: var(--shadow-sm); }
.team-card__avatar {
  width: 72px; height: 72px; border-radius: 50%;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--c-brand), var(--c-accent));
  color: #fff; display: grid; place-items: center;
  font-size: 26px; font-weight: 700;
}
.team-card h3 { margin: 0 0 4px; font-size: 17px; }
.team-card p { margin: 0; color: var(--c-ink-soft); font-size: 14px; }

/* ============== Services detail ============== */
.services-detail { display: grid; gap: 28px; }
.service-detail {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 28px; scroll-margin-top: 90px;
}
.service-detail__head {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start;
  margin-bottom: 18px;
}
.service-detail__head h2 { margin: 0 0 6px; font-size: 22px; }
.service-detail__lead { margin: 0; color: var(--c-ink-soft); }
.service-detail__list {
  margin: 0; padding-left: 20px; color: var(--c-ink);
  columns: 2; column-gap: 32px;
}
.service-detail__list li { margin-bottom: 8px; break-inside: avoid; }
@media (max-width: 720px) { .service-detail__list { columns: 1; } }

/* ============== Process steps ============== */
.process {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: step;
}
.process li {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 22px; display: grid; gap: 12px;
}
.process__step {
  font-size: 14px; font-weight: 700; color: var(--c-brand);
  letter-spacing: 2px;
}
.process h3 { margin: 0; font-size: 17px; }
.process p { margin: 0; color: var(--c-ink-soft); font-size: 15px; }

/* ============== Cases ============== */
.cases__grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.case-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 24px; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.case-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: transparent; }
.case-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag {
  display: inline-block; padding: 4px 10px;
  background: rgba(15, 76, 129, .08); color: var(--c-accent);
  border-radius: 999px; font-size: 12px; font-weight: 500;
}
.case-card__title { margin: 0 0 6px; font-size: 17px; line-height: 1.35; }
.case-card__industry { margin: 0 0 14px; color: var(--c-ink-soft); font-size: 13px; text-transform: uppercase; letter-spacing: .8px; }
.case-card__result { margin: 0; color: var(--c-ink); font-size: 15px; }

/* ============== Contacts page ============== */
.contacts__layout {
  display: grid; gap: 48px;
  grid-template-columns: 1fr 1.3fr;
  align-items: start;
}
@media (max-width: 900px) { .contacts__layout { grid-template-columns: 1fr; } }

.offices { display: grid; gap: 18px; margin-top: 12px; }
.office {
  padding: 18px; border: 1px solid var(--c-line); border-radius: var(--radius);
  background: #fff;
}
.office h3 { margin: 0 0 6px; font-size: 16px; color: var(--c-brand); }
.office__addr { margin: 0 0 6px; color: var(--c-ink-soft); font-size: 14px; }
.office p { margin: 0 0 4px; font-size: 14px; }
.office a { text-decoration: none; color: var(--c-ink); }
.office a:hover { color: var(--c-brand); }

/* ============== Form ============== */
.form { margin-top: 16px; }
.form__row { display: grid; gap: 16px; margin-bottom: 16px; }
.form__row--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form__row--2 { grid-template-columns: 1fr; } }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 500; color: var(--c-ink); }
.field .req { color: var(--c-brand); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  font: inherit; font-size: 15px; color: var(--c-ink); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, .15);
}
.field textarea { resize: vertical; min-height: 120px; }
.field--error input, .field--error textarea, .field--error select { border-color: var(--c-brand); }
.field__err { color: var(--c-brand); font-size: 13px; }

.form__legal { font-size: 13px; color: var(--c-ink-soft); margin: 8px 0 14px; }
.alert {
  padding: 14px 16px; border-radius: 10px; margin: 12px 0 18px;
  font-size: 15px;
}
.alert--success { background: rgba(16, 130, 80, .1); color: #0f7a4d; border: 1px solid rgba(16, 130, 80, .25); }

/* ============== News ============== */
.news__list {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.news-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 22px;
}
.news-card__date { color: var(--c-ink-soft); font-size: 13px; margin: 0 0 8px; letter-spacing: .5px; text-transform: uppercase; }
.news-card h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.35; }
.news-card a { text-decoration: none; color: var(--c-ink); }
.news-card a:hover { color: var(--c-brand); }
.news-card p { color: var(--c-ink-soft); margin: 0; font-size: 15px; }

.article { max-width: 760px; margin: 0 auto; }
.article p { color: var(--c-ink); }

.pagination {
  display: flex; gap: 16px; justify-content: center; align-items: center;
  margin-top: 32px; font-size: 14px; color: var(--c-ink-soft);
}
.pagination a {
  text-decoration: none; color: var(--c-brand); font-weight: 500;
  padding: 8px 14px; border: 1px solid var(--c-line); border-radius: 999px;
}
.pagination a:hover { border-color: var(--c-brand); }

/* ============== Thanks page ============== */
.thanks { padding: clamp(80px, 12vw, 160px) 0 !important; text-align: center; }
.thanks__inner { max-width: 580px; margin: 0 auto; }
.thanks__check {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-brand), var(--c-accent));
  color: #fff; display: grid; place-items: center;
  font-size: 38px; margin: 0 auto 24px;
}
.thanks h1 { font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 12px; }
.thanks p { color: var(--c-ink-soft); margin: 0 0 28px; }
.thanks__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============== Footer ============== */
.site-footer {
  background: #0b1220; color: #cbd5e1;
  padding: 56px 0 24px;
}
.site-footer__inner {
  display: grid; gap: 32px;
  grid-template-columns: 1fr 2fr;
  align-items: start;
}
.site-footer__tag { color: #94a3b8; margin-top: 12px; max-width: 320px; }
.site-footer__cols { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-footer h4 { color: #f8fafc; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 10px; }
.site-footer a { color: #e2e8f0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #64748b; font-size: 13px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
}
.site-footer__credit { color: #94a3b8; }
.credit-link {
  color: #e2e8f0; text-decoration: none; font-weight: 600;
  border-bottom: 1px dashed rgba(255,255,255,.25);
}
.credit-link:hover { color: #fff; border-bottom-color: rgba(255,255,255,.6); }
@media (max-width: 720px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: 1fr; }
}
