/* ==========================================================================
   Карго28 — общие стили сайта (вариант A «Надёжный логист»)
   ========================================================================== */

:root {
  --navy: #0E2A47;
  --navy-2: #17395E;
  --navy-3: #0A1F36;
  --navy-line: #2A4868;
  --amber: #F2A900;
  --amber-2: #DB9900;
  --amber-soft: #FFF6DC;
  --steel: #5B6B7C;
  --steel-light: #B8C4D2;
  --mist: #F3F5F8;
  --line: #E1E6EC;
  --text: #13263B;
  --white: #FFFFFF;
  --success: #1F8A5B;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(14, 42, 71, .06), 0 4px 16px rgba(14, 42, 71, .06);
  --shadow-lg: 0 12px 40px rgba(14, 42, 71, .14);

  --font-head: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --container: 1280px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; letter-spacing: -.02em; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.section { padding: 64px 0; }
@media (min-width: 992px) { .section { padding: 96px 0; } }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: var(--steel-light); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--tight { padding-top: 0; }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; }
.section-head .lead { margin-top: 14px; }
@media (min-width: 992px) { .section-head { margin-bottom: 56px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber-2); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--amber); }
.section--navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--amber); }

.lead { font-size: 18px; line-height: 1.65; color: var(--steel); }
.section--navy .lead { color: var(--steel-light); }
.muted { color: var(--steel); }
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
@media (min-width: 992px) { .grid { gap: 24px; } }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 992px) { .split { grid-template-columns: 1.05fr 1fr; gap: 64px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: var(--amber-2); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); }
.btn-outline { border-color: var(--line); color: var(--navy); background: var(--white); }
.btn-outline:hover { border-color: var(--navy); }
.btn-outline-light { border-color: var(--navy-line); color: var(--white); }
.btn-outline-light:hover { border-color: var(--steel-light); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--amber); padding-bottom: 2px; }
.link-arrow:hover { color: var(--amber-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 2px 20px rgba(14, 42, 71, .08); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo svg { height: 40px; width: auto; }

.nav { display: none; flex: 1; gap: 2px; justify-content: center; }
.nav a {
  font-size: 14px; font-weight: 500; color: var(--steel);
  padding: 8px 9px; border-radius: var(--radius-sm); white-space: nowrap;
  transition: color .15s;
}
.nav a:hover { color: var(--navy); }
.nav a.active { color: var(--navy); font-weight: 600; box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }

.header-actions { display: none; align-items: center; gap: 14px; flex-shrink: 0; }
.header-phone { font-weight: 600; font-size: 14px; color: var(--navy); white-space: nowrap; }
.social { display: inline-flex; gap: 10px; }
.social a {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--navy); transition: border-color .15s, color .15s;
}
.social a:hover { border-color: var(--navy); }
.social svg { width: 18px; height: 18px; }

.burger { margin-left: auto; width: 44px; height: 44px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--white); padding: 8px 0 24px; }
.mobile-nav.is-open { display: block; }
.mobile-nav a.mobile-nav__link { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--navy); }
.mobile-nav a.mobile-nav__link.active { color: var(--amber-2); }
.mobile-nav .social { margin: 20px 0 16px; }

@media (min-width: 1200px) {
  .nav, .header-actions { display: flex; }
  .burger, .mobile-nav, .mobile-nav.is-open { display: none; }
}

/* ---------- Hero (главная) ---------- */
.hero { background: var(--navy); color: var(--steel-light); padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--navy-2) 1px, transparent 1px), linear-gradient(90deg, var(--navy-2) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .35;
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: var(--white); font-size: clamp(32px, 5vw, 54px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lead { color: var(--steel-light); margin-bottom: 32px; max-width: 560px; }
.hero .btn-row { margin-bottom: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--amber); }
@media (min-width: 992px) { .hero { padding: 88px 0 96px; } }

/* Белая панель на тёмном фоне (способы доставки, калькулятор и т.п.) */
.panel { background: var(--white); color: var(--text); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-lg); }
.panel h3 { font-size: 18px; margin-bottom: 8px; }
.panel-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--steel); }
.panel-row:last-of-type { border-bottom: 0; }
.panel-row b { color: var(--navy); font-weight: 600; text-align: right; }
@media (min-width: 768px) { .panel { padding: 32px; } }

/* ---------- Page hero (внутренние страницы) ---------- */
.page-hero { background: var(--navy); color: var(--steel-light); padding: 40px 0 56px; }
.page-hero h1 { color: var(--white); font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; margin-bottom: 16px; max-width: 820px; }
.page-hero .lead { color: var(--steel-light); max-width: 680px; }
.page-hero .btn-row { margin-top: 28px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; margin-bottom: 28px; color: var(--steel-light); }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs span[aria-hidden] { opacity: .5; }
@media (min-width: 992px) { .page-hero { padding: 48px 0 80px; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); background: var(--white); border-bottom: 1px solid var(--line); }
.stat { padding: 24px 16px; border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
.stat:nth-child(2n) { border-right: 0; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--navy); letter-spacing: -.02em; line-height: 1.1; }
.stat span { font-size: 14px; color: var(--steel); }
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 32px 24px; border-top: 0; }
  .stat:nth-child(2n) { border-right: 1px solid var(--line); }
  .stat:last-child { border-right: 0; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s, box-shadow .15s;
}
a.card:hover, .card--hover:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.card h3 { font-size: 18px; font-weight: 700; }
.card p { font-size: 15px; color: var(--steel); }
.card .link-arrow { margin-top: auto; align-self: flex-start; font-size: 14px; }
.section--mist .card { border-color: transparent; }
.card--navy { background: var(--navy-2); border-color: var(--navy-line); }
.card--navy h3 { color: var(--white); }
.card--navy p { color: var(--steel-light); }
.why-stat { font-family: var(--font-head); font-size: clamp(32px, 4vw, 44px); font-weight: 800; color: var(--amber); line-height: 1; letter-spacing: -.02em; }
@media (min-width: 992px) { .card { padding: 28px; } }

.icon-box {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--mist); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-bottom: 6px;
}
.section--mist .icon-box { background: var(--white); }
.icon-box svg { width: 24px; height: 24px; }
.icon-box--amber { background: var(--amber-soft); color: var(--amber-2); }

/* Крупный блок-направление (Покупателям / Бизнесу) */
.audience { border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--line); background: var(--white); display: flex; flex-direction: column; gap: 18px; }
.audience--dark { background: var(--navy); border-color: var(--navy); color: var(--steel-light); }
.audience--dark h3 { color: var(--white); }
.audience h3 { font-size: 24px; }
.audience .check-list { flex: 1; }
@media (min-width: 992px) { .audience { padding: 40px; } }

/* ---------- Lists ---------- */
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--amber-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DB9900' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.minus-list li { position: relative; padding-left: 28px; color: var(--steel); }
.minus-list li::before { content: '—'; position: absolute; left: 2px; color: var(--steel); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); counter-reset: step; }
.step { position: relative; padding: 24px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.section--mist .step { border-color: transparent; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-family: var(--font-head); font-weight: 800; font-size: 15px; margin-bottom: 16px;
}
.step p { font-size: 15px; }

/* ---------- Delivery method card ---------- */
.method { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.method__head { padding: 24px; border-bottom: 1px solid var(--line); }
.method__head h3 { font-size: 20px; margin: 12px 0 16px; }
.method__meta { display: flex; gap: 28px; }
.method__meta small { display: block; font-size: 12px; color: var(--steel); }
.method__meta b { font-family: var(--font-head); font-size: 17px; color: var(--navy); }
.method__body { padding: 24px; display: flex; flex-direction: column; gap: 16px; font-size: 14px; }
.method--featured { border-color: var(--navy); box-shadow: var(--shadow); }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 100px; background: var(--amber-soft); color: var(--amber-2); }
.badge--navy { background: var(--navy); color: var(--white); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
.table th, .table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-family: var(--font-head); font-size: 14px; color: var(--navy); background: var(--mist); }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 600; color: var(--navy); }

/* ---------- Marketplace card ---------- */
.mp { display: flex; gap: 16px; align-items: flex-start; }
.mp__logo {
  width: 48px; height: 48px; border-radius: var(--radius); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--white);
}
.mp h3 { font-size: 17px; }
.mp p { font-size: 14px; color: var(--steel); }

/* ---------- Reviews ---------- */
.review { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.section--mist .review { border-color: transparent; }
.stars { display: flex; gap: 3px; color: var(--amber); }
.stars svg { width: 16px; height: 16px; }
.review blockquote { font-size: 15px; line-height: 1.7; flex: 1; }
.review__author { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 14px; flex-shrink: 0; }
.review__author b { display: block; font-size: 15px; color: var(--navy); }
.review__author span { font-size: 13px; color: var(--steel); }

/* ---------- FAQ (нативный <details>) ---------- */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E2A47' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); border-color: var(--amber); }
.faq details p { padding: 0 44px 22px 0; color: var(--steel); }

/* ---------- Forms & calculator ---------- */
.calc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 768px) { .calc { padding: 40px; } }
.tabs { display: inline-flex; background: var(--mist); border-radius: var(--radius); padding: 4px; margin-bottom: 28px; max-width: 100%; }
.tabs button { padding: 10px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--steel); }
.tabs button[aria-selected="true"] { background: var(--white); color: var(--navy); box-shadow: 0 1px 3px rgba(14, 42, 71, .12); }

.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
  padding: 12px 14px; font-size: 15px; transition: border-color .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); }
.form-note { margin-top: 14px; font-size: 13px; color: var(--steel); text-align: center; }
.form-actions { margin-top: 24px; }
.form-success { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--amber-soft); color: var(--navy); font-size: 14px; }
.form-success.is-visible { display: block; }

/* ---------- Chips / filters ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { padding: 8px 16px; border-radius: 100px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--steel); background: var(--white); }
.chip:hover { color: var(--navy); border-color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---------- Blog ---------- */
.post { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.post:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.post__img { aspect-ratio: 5 / 3; object-fit: cover; width: 100%; background: var(--mist); }
.post__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post__meta { display: flex; gap: 12px; font-size: 13px; color: var(--steel); }
.post h3 { font-size: 18px; }
.post p { font-size: 14px; color: var(--steel); flex: 1; }
.post[hidden] { display: none; }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: flex; flex-direction: column; gap: 28px; padding-left: 28px; border-left: 2px solid var(--line); }
.timeline li { position: relative; }
.timeline li::before { content: ''; position: absolute; left: -36px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--amber); }
.timeline b { display: block; font-family: var(--font-head); font-size: 20px; color: var(--navy); }

/* ---------- Contacts ---------- */
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item b { display: block; color: var(--navy); }
.contact-item span, .contact-item a { color: var(--steel); }
.contact-item a:hover { color: var(--navy); }
.map-placeholder {
  min-height: 320px; border-radius: var(--radius-lg); background: var(--mist); border: 1px dashed var(--steel-light);
  display: flex; align-items: center; justify-content: center; text-align: center; color: var(--steel); padding: 24px;
}

/* ---------- CTA ---------- */
.cta { background: var(--navy); border-radius: var(--radius-lg); padding: 40px 24px; color: var(--steel-light); display: grid; gap: 28px; align-items: center; }
.cta h2 { color: var(--white); font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-bottom: 12px; }
@media (min-width: 992px) { .cta { grid-template-columns: 1.4fr 1fr; padding: 64px; } .cta .btn-row { justify-content: flex-end; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-3); color: var(--steel-light); padding: 56px 0 32px; font-size: 14px; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); margin-bottom: 48px; }
.footer-brand p { margin: 18px 0 20px; max-width: 280px; line-height: 1.7; }
.footer-brand .logo svg { height: 40px; }
.site-footer h4 { color: var(--white); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.site-footer ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer a:hover { color: var(--white); }
.site-footer .social a { border-color: var(--navy-line); color: var(--white); }
.site-footer .social a:hover { border-color: var(--steel-light); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid var(--navy-line); font-size: 13px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Дополнения по итогам вёрстки внутренних страниц ---------- */
.card .badge, .card .link-arrow, .post .link-arrow, .method__body .link-arrow { align-self: flex-start; }
.method__body strong { color: var(--navy); }
.table .yes { display: inline-block; vertical-align: middle; width: 18px; height: 18px; color: var(--success); }

.section--compact { padding: 40px 0; }
.timeline-wrap { max-width: 800px; margin: 0 auto; }

.page-hero__img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 20px 40px; margin-top: 32px; }
.hero-stats .why-stat { display: block; margin-bottom: 4px; }
.hero-stats span { font-size: 14px; color: var(--steel-light); }

.avatar--lg { width: 80px; height: 80px; font-size: 22px; }
.card--center { align-items: center; text-align: center; }
.minus-list { display: flex; flex-direction: column; gap: 10px; }
.method__body b { color: var(--navy); }
.table .yes { margin-right: 6px; }

/* Компактные карточки услуг в первом экране (Покупателям / Бизнесу) */
.hero-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.hero-services .card { padding: 16px 18px; gap: 6px; }
.hero-services .icon-box { width: 36px; height: 36px; margin-bottom: 4px; }
.hero-services .icon-box svg { width: 20px; height: 20px; }
.hero-services .card h3 { font-size: 15px; }
.hero-services .card p { font-size: 13px; line-height: 1.5; }

/* ---------- Кейсы (крупные грузы) ---------- */
.case { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.section--mist .case { border-color: transparent; }
.case__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.case__status { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 100px; white-space: nowrap; background: #E3F3EA; color: var(--success); }
.case__status--calc { background: var(--mist); color: var(--steel); }
.case h3 { font-size: 19px; }
.case__cat { font-size: 13px; color: var(--steel); }
.case__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case__facts small { display: block; font-size: 12px; color: var(--steel); }
.case__facts b { font-size: 14px; font-weight: 600; color: var(--navy); }
.case__text p { font-size: 14px; color: var(--steel); }
.case__text p + p { margin-top: 8px; }
.case__text b { color: var(--navy); font-weight: 600; }
.case[hidden] { display: none; }
@media (min-width: 992px) { .case { padding: 28px; } }


/* ---------- Схема маршрута (доставка) ---------- */
/* ---------- Схема маршрута (delivery.html) ---------- */
    .route { display: grid; gap: 16px; }
    .route__step { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 20px 80px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
    .route__step:not(:last-child)::after { content: ''; position: absolute; left: 41px; top: 64px; bottom: -17px; width: 2px; background: var(--amber); }
    .route__icon { position: absolute; left: 20px; top: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--white); display: inline-flex; align-items: center; justify-content: center; }
    .route__icon svg { width: 22px; height: 22px; }
    .route__country { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
    .route__step h3 { font-size: 17px; font-weight: 700; }
    .route__step p { font-size: 14px; color: var(--steel); }
    .route__step .badge { align-self: flex-start; }
    .route__step--border { border-color: var(--navy); box-shadow: var(--shadow); }
    @media (min-width: 1100px) {
      .route { grid-template-columns: repeat(5, 1fr); gap: 24px; }
      .route__step { padding: 24px 20px; }
      .route__icon { position: static; margin-bottom: 8px; }
      .route__step:not(:last-child)::after { left: auto; right: -25px; top: 42px; bottom: auto; width: 26px; height: 2px; }
    }
    .route-notes { margin-top: 24px; }

/* ---------- Калькулятор стоимости ---------- */
/* ---------- Калькулятор стоимости (calculator.html) ---------- */
    .pcalc { display: grid; gap: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
    @media (min-width: 900px) { .pcalc { grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px; } }
    .pcalc__inputs { display: flex; flex-direction: column; gap: 18px; }
    .pcalc__inputs h2 { font-size: 22px; font-weight: 800; }
    .pcalc__check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; }
    .pcalc__check input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--navy); }
    .pcalc__rate { font-size: 14px; color: var(--steel); padding: 12px 14px; background: var(--mist); border-radius: var(--radius-sm); }
    .pcalc__rate b { color: var(--navy); }
    .pcalc__result { background: var(--navy); color: var(--steel-light); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
    @media (min-width: 768px) { .pcalc__result { padding: 28px; } }
    .pcalc__result h3 { color: var(--white); font-size: 18px; }
    .pcalc__rows { display: flex; flex-direction: column; }
    .pcalc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--navy-line); font-size: 15px; }
    .pcalc__row dt small { display: block; font-size: 12px; color: var(--steel-light); opacity: .8; }
    .pcalc__row dd { color: var(--white); font-weight: 600; white-space: nowrap; text-align: right; }
    .pcalc__total { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; }
    .pcalc__total span { color: var(--white); font-weight: 600; }
    .pcalc__total b { font-family: var(--font-head); font-size: clamp(28px, 4vw, 36px); font-weight: 800; color: var(--amber); letter-spacing: -.02em; line-height: 1.1; }
    .pcalc__note { font-size: 13px; line-height: 1.55; }
    .pcalc__result .link-arrow { color: var(--white); align-self: center; font-size: 14px; }

/* ---------- Длинный текст (статья, текстовая страница) и обложки статей ---------- */
/* ---------- Длинный текст: статья / текстовая страница ---------- */
    .prose { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 1.75; }
    @media (min-width: 768px) { .prose { font-size: 18px; } }
    .prose > * + * { margin-top: 20px; }
    .prose h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; margin-top: 56px; }
    .prose h3 { font-size: clamp(19px, 2.2vw, 22px); font-weight: 700; margin-top: 36px; }
    .prose h2 + *, .prose h3 + * { margin-top: 14px; }
    .prose > :first-child { margin-top: 0; }
    .prose strong { color: var(--navy); font-weight: 600; }
    .prose a { color: var(--navy); border-bottom: 1px solid var(--amber); }
    .prose a:hover { color: var(--amber-2); }
    .prose ul { display: flex; flex-direction: column; gap: 10px; padding-left: 4px; }
    .prose ul li { position: relative; padding-left: 24px; }
    .prose ul li::before { content: ''; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
    .prose .table-wrap { margin-top: 28px; margin-bottom: 8px; }
    .prose .table { font-size: 15px; line-height: 1.55; }
    .prose .callout { padding: 20px 24px; border-left: 3px solid var(--amber); background: var(--mist); border-radius: 0 var(--radius) var(--radius) 0; }
    .article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; color: var(--steel-light); }
    .page-hero h1.page-hero__title--long { font-size: clamp(26px, 3.6vw, 40px); }
    
    /* ---------- Типографская обложка карточки статьи (без фото) ---------- */
    .post__cover { position: relative; aspect-ratio: 5 / 3; background: var(--navy); color: var(--white); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
    .post__cover::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--navy-2) 1px, transparent 1px), linear-gradient(90deg, var(--navy-2) 1px, transparent 1px); background-size: 32px 32px; opacity: .5; }
    .post__cover > * { position: relative; z-index: 1; }
    .post__cover-num { font-family: var(--font-head); font-weight: 800; font-size: 14px; color: var(--amber); letter-spacing: .08em; }
    .post__cover-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; letter-spacing: -.02em; max-width: 90%; }
    .post__cover-title em { font-style: normal; color: var(--amber); }
    .post h3 a:hover { color: var(--amber-2); }

/* ---------- Мелкие дополнения по итогам наполнения контентом ---------- */
.step h3 { font-size: 18px; margin-bottom: 6px; }
.note { font-size: 13px; color: var(--steel); }
.step h3 + p { margin-top: 8px; }
.container--narrow { max-width: 960px; }
.report__img { aspect-ratio: 4 / 3; }

/* Картинки товаров в карточках «Что чаще заказывают» (фото и иллюстрации) */
.good__img { aspect-ratio: 5 / 3; object-fit: contain; background: #fff; }
.good__img--art { background: var(--mist); }

/* ---------- Формы в WordPress: ловушка для ботов, ошибка отправки ---------- */
.form-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success--error { background: #FDECEA; color: #8A1C1C; }
