:root {
  --bg: #f7f7f3;
  --surface: #ffffff;
  --surface-muted: #efefe9;
  --text: #111827;
  --text-muted: #5b6472;
  --line: rgba(17, 24, 39, 0.13);
  --accent: #ff5a1f;
  --accent-dark: #d9430c;
  --dark: #111827;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.11);
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; transform: translateY(-150%); background: white; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { transform: none; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(17, 24, 39, .92);
  backdrop-filter: blur(16px);
  color: white;
}
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: max-content; }
.brand-logo { display: block; width: 165px; height: 50px; object-fit: contain; object-position: left center; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent); color: white; font-weight: 900; letter-spacing: -.05em; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 17px; }
.brand-text small { margin-top: 6px; color: #aeb6c4; font-size: 11px; text-transform: uppercase; letter-spacing: .11em; }
.main-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.main-nav a { color: #d7dce4; text-decoration: none; font-size: 14px; }
.main-nav a:hover, .main-nav a:focus-visible { color: white; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { color: #d7dce4; font-size: 13px; text-decoration: none; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; }
.menu-toggle span:not(.visually-hidden) { display: block; height: 2px; margin: 5px 0; background: white; border-radius: 2px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--accent); color: white; text-decoration: none; font-weight: 750; transition: transform .2s ease, background .2s ease; }
.button:hover, .button:focus-visible { background: var(--accent-dark); transform: translateY(-1px); }
.button-small { min-height: 42px; padding-inline: 18px; font-size: 13px; }
.button-large { min-height: 58px; padding-inline: 28px; }
.button-full { width: 100%; }
.text-link { font-weight: 700; text-underline-offset: 5px; }

.hero { position: relative; min-height: 770px; display: grid; align-items: end; overflow: hidden; background: var(--dark); color: white; }
.hero-media { position: absolute; inset: 0; background: #111827; }
.hero-media picture, .hero-media img { display: block; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 58% 52%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,10,17,.92) 0%, rgba(7,10,17,.72) 47%, rgba(7,10,17,.28) 100%), linear-gradient(0deg, rgba(7,10,17,.42), transparent 48%); }
.media-placeholder { position: absolute; right: 8%; top: 28%; z-index: 1; width: min(430px, 36vw); aspect-ratio: 16/10; display: grid; place-content: center; text-align: center; padding: 24px; border: 1px dashed rgba(255,255,255,.38); border-radius: 28px; color: rgba(255,255,255,.8); transform: rotate(-2deg); }
.media-placeholder span { font-size: clamp(20px, 2vw, 32px); font-weight: 800; }
.media-placeholder small { margin-top: 8px; }
.hero-content { position: relative; z-index: 2; padding-top: 170px; padding-bottom: 90px; }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; }
.hero h1 { max-width: 900px; margin: 0; font-size: clamp(48px, 6vw, 86px); line-height: .98; letter-spacing: -.055em; }
.hero-lead { max-width: 680px; margin: 28px 0 0; color: #c7ced8; font-size: clamp(18px, 2vw, 23px); }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.hero-points { display: flex; gap: 14px; padding: 0; margin: 62px 0 0; list-style: none; flex-wrap: wrap; }
.hero-points li { padding: 10px 14px; border: 1px solid rgba(255,255,255,.19); border-radius: 999px; color: #dfe4eb; font-size: 13px; }

.section { padding: 120px 0; }
.section-muted { background: var(--surface-muted); }
.section-dark { background: var(--dark); color: white; }
.section-heading { max-width: 760px; margin-bottom: 54px; }
.section-heading h2 { margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.045em; }
.section-heading > p:last-child { max-width: 660px; margin: 22px 0 0; color: var(--text-muted); font-size: 18px; }
.section-heading-light > p:last-child { color: #aeb6c4; }

.services-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; }
.service-card { overflow: hidden; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.service-card-large { grid-row: span 2; }
.service-media { min-height: 250px; display: block; overflow: hidden; background: #263142; aspect-ratio: 16 / 10; }
.service-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.service-card:hover .service-media img { transform: scale(1.025); }
.service-media-one img { object-position: 50% 52%; }
.service-media-two img { object-position: 50% 48%; }
.service-media-three img { object-position: 48% 52%; }
.service-card-large .service-media { min-height: 455px; aspect-ratio: 16 / 11; }
.service-media-two { background: linear-gradient(135deg, #694a3e, #28211f); }
.service-media-three { background: linear-gradient(135deg, #374c42, #18241f); }
.service-content { padding: 28px; }
.service-number { color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: .14em; }
.service-content h3 { margin: 10px 0 12px; font-size: 30px; line-height: 1.1; letter-spacing: -.03em; }
.service-content p { color: var(--text-muted); }
.service-content a { display: inline-block; margin-top: 8px; color: var(--accent-dark); font-weight: 800; text-underline-offset: 5px; }

.cargo-layout, .faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.sticky-heading { position: sticky; top: 120px; }
.cargo-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cargo-list article { padding: 34px; background: var(--surface); }
.cargo-list span { color: var(--accent); font-size: 12px; font-weight: 800; }
.cargo-list h3 { margin: 9px 0 8px; font-size: 26px; }
.cargo-list p { margin: 0; color: var(--text-muted); }

.advantages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.advantages-grid article { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.advantages-grid strong { color: var(--accent); font-size: 12px; }
.advantages-grid h3 { margin: 18px 0 10px; font-size: 21px; line-height: 1.2; }
.advantages-grid p { margin: 0; color: var(--text-muted); }

.process-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; padding: 0; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.13); list-style: none; }
.process-list li { display: grid; grid-template-columns: 54px 1fr; gap: 20px; padding: 32px; background: var(--dark); }
.process-list > li > span { color: var(--accent); font-size: 13px; font-weight: 800; }
.process-list h3 { margin: 0 0 8px; font-size: 24px; }
.process-list p { margin: 0; color: #aeb6c4; }

.geography-card { display: grid; grid-template-columns: 1fr .8fr; align-items: center; min-height: 390px; padding: 54px; border-radius: 30px; background: var(--surface); box-shadow: var(--shadow); }
.geography-card h2 { margin: 0; font-size: clamp(42px, 5vw, 68px); letter-spacing: -.05em; }
.geography-card p:last-child { max-width: 600px; color: var(--text-muted); font-size: 18px; }
.route-visual { position: relative; min-height: 250px; }
.route-line { position: absolute; left: 12%; right: 12%; top: 50%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), #ffd1c0); transform: rotate(-8deg); }
.route-dot { position: absolute; z-index: 1; width: 32px; height: 32px; border: 8px solid white; border-radius: 50%; background: var(--accent); box-shadow: 0 8px 24px rgba(255,90,31,.35); }
.route-dot-one { left: 8%; top: 57%; }
.route-dot-two { right: 8%; top: 30%; }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 25px 48px 25px 0; font-size: 21px; font-weight: 750; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 20px; font-size: 28px; color: var(--accent); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: -8px 0 24px; color: var(--text-muted); }

.calculation-section { background: linear-gradient(180deg, #f7f7f3, #e9e9e2); }
.calculation-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.calculation-copy { position: sticky; top: 120px; }
.calculation-copy h2 { margin: 0; font-size: clamp(44px, 5vw, 70px); line-height: 1; letter-spacing: -.05em; }
.calculation-copy > p:not(.eyebrow) { color: var(--text-muted); font-size: 18px; }
.prototype-note { margin-top: 30px; padding: 20px; border-left: 4px solid var(--accent); background: white; }
.prototype-note p { margin: 6px 0 0; color: var(--text-muted); font-size: 14px; }
.calculation-form { display: grid; gap: 18px; padding: 36px; border-radius: 28px; background: white; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calculation-form label { display: grid; gap: 8px; font-weight: 700; font-size: 14px; }
.calculation-form label > span { color: var(--accent); }
.calculation-form input:not([type="checkbox"]):not([type="file"]), .calculation-form textarea { width: 100%; border: 1px solid #d5d8dd; border-radius: 13px; background: #fbfbf9; padding: 15px 16px; color: var(--text); outline: none; }
.calculation-form input:focus, .calculation-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,90,31,.13); }
.file-field input { position: absolute; opacity: 0; pointer-events: none; }
.file-control { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 12px 16px; border: 1px dashed #bbc1ca; border-radius: 13px; background: #fbfbf9; cursor: pointer; }
.file-control b { color: var(--text); }
.file-control small { color: var(--text-muted); font-weight: 500; }
.consent-field { grid-template-columns: 22px 1fr !important; align-items: start; gap: 12px !important; color: var(--text-muted); font-weight: 500 !important; }
.consent-field input { width: 20px; height: 20px; accent-color: var(--accent); }
.consent-field span { color: inherit !important; }
.form-status { min-height: 24px; margin: 0; font-weight: 700; }
.form-status.is-success { color: #157347; }
.form-status.is-error { color: #b42318; }

.site-footer { padding: 70px 0 26px; background: #0a0e16; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 56px; }
.brand-footer { margin-bottom: 22px; }
.footer-grid p, .footer-grid li { color: #9da6b4; }
.footer-grid h2 { margin-top: 0; font-size: 16px; }
.footer-grid ul { padding: 0; list-style: none; }
.footer-grid li + li { margin-top: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: #778292; font-size: 13px; }

@media (max-width: 1100px) {
  .main-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 20px 24px; background: #111827; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 16px; }
  .menu-toggle { display: block; margin-left: auto; }
  .header-phone { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card-large { grid-row: auto; grid-column: 1 / -1; }
  .service-card-large .service-media { min-height: 360px; }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .cargo-layout, .faq-layout, .calculation-layout { grid-template-columns: 1fr; gap: 40px; }
  .sticky-heading, .calculation-copy { position: static; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 68px; }
  .brand-logo { width: 132px; height: 40px; }
  .header-actions .button { display: none; }
  .main-nav { top: 68px; }
  .hero { min-height: 690px; }
  .hero-content { padding-top: 140px; padding-bottom: 58px; }
  .hero h1 { font-size: clamp(43px, 13vw, 64px); }
  .hero-lead { font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .text-link { text-align: center; }
  .hero-points { margin-top: 38px; }
  .hero-media img { object-position: 57% 68%; }
  .media-placeholder { display: none; }
  .section { padding: 82px 0; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2 { font-size: 40px; }
  .section-heading > p:last-child { font-size: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card-large { grid-column: auto; }
  .service-card-large .service-media, .service-media { min-height: 240px; }
  .service-content h3 { font-size: 27px; }
  .advantages-grid, .process-list, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .process-list li { grid-template-columns: 42px 1fr; padding: 25px 20px; }
  .geography-card { grid-template-columns: 1fr; padding: 30px; }
  .route-visual { min-height: 170px; }
  .calculation-form { padding: 22px; border-radius: 22px; }
  .calculation-copy h2 { font-size: 44px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* v03: защита узких экранов от переполнения медиа и карточек */
.service-card, .service-media, .service-media img, .advantages-grid article { min-width: 0; }
.service-media { width: 100%; }
.advantages-grid h3, .advantages-grid p { overflow-wrap: anywhere; }
.cargo-layout, .cargo-list, .cargo-list article { min-width: 0; }
.cargo-list h3, .cargo-list p { overflow-wrap: anywhere; }
html, body { overflow-x: clip; }

/* v02: финальная визуальная полировка и безопасные микровзаимодействия */
.calculation-hint {
  margin-top: 26px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, .72);
  color: var(--text-muted);
}

.service-card,
.advantages-grid article,
.cargo-list article {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(17, 24, 39, .14);
  }
  .advantages-grid article:hover,
  .cargo-list article:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 90, 31, .38);
  }
}

.reveal-section {
  opacity: 1;
  transform: none;
}

.js .reveal-section {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}

.js .reveal-section.is-visible {
  opacity: 1;
  transform: none;
}

.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-toggle span { transition: transform .2s ease, opacity .2s ease; }

body.menu-open { overflow: hidden; }

@media (max-width: 1100px) {
  .main-nav {
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    box-shadow: 0 24px 40px rgba(0, 0, 0, .22);
  }
}

@media (max-width: 760px) {
  .hero h1 { font-size: clamp(40px, 11.5vw, 54px); }
  .hero-content { padding-top: 124px; }
  .service-content,
  .cargo-list article,
  .advantages-grid article { padding-left: 24px; padding-right: 24px; }
  .calculation-hint { margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal-section { opacity: 1; transform: none; }
}

/* v03: наполнение существующих блоков без изменения структуры страницы */
.header-region {
  color: #d1d7e2;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.service-features {
  display: grid;
  gap: 7px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 14px;
}
.service-features li {
  position: relative;
  padding-left: 18px;
}
.service-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}
.footer-grid a {
  color: inherit;
  text-underline-offset: 4px;
}
.footer-grid a:hover { color: white; }

@media (max-width: 1100px) {
  .header-region { display: none; }
}

/* Форма расчёта и технические страницы */
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.consent-field a { color: var(--text); text-underline-offset: 3px; }
.calculation-form button:disabled { cursor: wait; opacity: .7; }
.footer-bottom a { color: inherit; text-underline-offset: 4px; }
.legal-page { min-height: 100vh; background: #f7f7f3; }
.legal-header { padding: 22px 0; background: #111827; }
.legal-content { width: min(calc(100% - 40px), 900px); margin: 0 auto; padding: 70px 0 100px; }
.legal-content h1 { margin: 0 0 28px; font-size: clamp(38px, 6vw, 68px); line-height: 1; letter-spacing: -.05em; }
.legal-content h2 { margin-top: 38px; font-size: 26px; }
.legal-content p, .legal-content li { color: var(--text-muted); }
.legal-note { padding: 20px; border-left: 4px solid var(--accent); background: white; }
.error-page { display: grid; place-items: center; min-height: 100vh; padding: 24px; background: #111827; color: white; text-align: center; }
.error-page h1 { margin: 0; font-size: clamp(84px, 18vw, 180px); line-height: .85; color: var(--accent); }
.error-page p { max-width: 620px; color: #cbd2dd; font-size: 19px; }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
@media (max-width: 760px) { .footer-bottom { align-items: flex-start; } }


/* Контакты и реквизиты */
.mobile-nav-contacts { display: none; }
.calculation-contacts { display: grid; gap: 8px; margin-top: 24px; }
.calculation-contacts a { width: fit-content; color: var(--text); font-size: 18px; font-weight: 800; text-underline-offset: 4px; }
.requisites-list { display: grid; gap: 1px; margin: 34px 0 48px; padding: 1px; background: var(--line); border-radius: 20px; overflow: hidden; }
.requisites-list > div { display: grid; grid-template-columns: minmax(190px, .7fr) 1.3fr; gap: 28px; padding: 20px 22px; background: white; }
.requisites-list dt { font-weight: 800; }
.requisites-list dd { margin: 0; color: var(--text-muted); overflow-wrap: anywhere; }
.requisites-list a { color: var(--text); text-underline-offset: 4px; }
@media (max-width: 1100px) {
  .mobile-nav-contacts { display: grid; gap: 0; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.14); }
  .mobile-nav-contacts a { color: white; font-weight: 750; }
  .header-phone { display: none; }
}
@media (max-width: 760px) {
  .requisites-list > div { grid-template-columns: 1fr; gap: 6px; }
  .calculation-contacts a { font-size: 17px; }
}
