/*
Theme Name: Karvictus Logistics
Theme URI: https://karvictus.ru
Author: Karvictus
Description: Корпоративная тема для логистической компании Karvictus.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: karvictus
*/

:root {
  --ink: #0b1b2b;
  --navy: #0a2239;
  --navy-2: #123b5d;
  --blue: #17658f;
  --orange: #f47b35;
  --orange-dark: #db6121;
  --paper: #f6f8fa;
  --white: #fff;
  --muted: #5f6f7f;
  --line: #dce4ea;
  --success: #15835c;
  --radius: 22px;
  --shadow: 0 20px 60px rgba(8, 32, 52, .11);
  --container: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: var(--container); margin-inline: auto; }
.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 9999;
  padding: 12px 18px; color: var(--white); background: var(--navy);
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(10,34,57,.08);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark {
  width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px;
  color: var(--white); background: var(--navy); box-shadow: inset -8px -8px 0 rgba(244,123,53,.95);
  font-size: 18px; font-weight: 900; letter-spacing: -.04em;
}
.brand-name { font-weight: 850; font-size: 20px; letter-spacing: -.03em; }
.brand-name span { color: var(--orange); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.main-nav a { font-size: 14px; font-weight: 720; color: #294052; }
.main-nav a:hover, .main-nav a:focus { color: var(--orange-dark); }
.header-cta { flex: 0 0 auto; }
.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line);
  border-radius: 12px; color: var(--ink); background: var(--white);
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  content: ""; display: block; width: 20px; height: 2px; margin: 5px auto; background: currentColor;
  transition: .2s ease;
}
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }

.btn {
  display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border: 1px solid transparent; border-radius: 13px;
  font-weight: 780; font-size: 15px; line-height: 1.2; transition: .2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { color: var(--white); background: var(--orange); box-shadow: 0 10px 28px rgba(244,123,53,.22); }
.btn-primary:hover, .btn-primary:focus { background: var(--orange-dark); transform: translateY(-2px); }
.btn-secondary { color: var(--white); border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.08); }
.btn-secondary:hover, .btn-secondary:focus { background: rgba(255,255,255,.17); }
.btn-dark { color: var(--white); background: var(--navy); }
.btn-dark:hover, .btn-dark:focus { background: var(--navy-2); transform: translateY(-2px); }

.hero {
  position: relative; min-height: 700px; display: grid; align-items: center; overflow: hidden;
  color: var(--white); background: var(--navy);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,25,42,.98) 0%, rgba(6,25,42,.9) 36%, rgba(6,25,42,.35) 66%, rgba(6,25,42,.14) 100%),
              linear-gradient(0deg, rgba(6,25,42,.46), transparent 55%),
              var(--hero-image) center/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px;
  background: linear-gradient(0deg, rgba(5,24,40,.7), transparent);
}
.hero-content { position: relative; z-index: 1; max-width: 735px; padding: 104px 0 130px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 820; }
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--orange); }
.hero h1, .page-hero h1 {
  margin: 0; max-width: 900px; font-size: clamp(44px, 6vw, 76px); line-height: 1.04;
  letter-spacing: -.055em; font-weight: 850;
}
.hero h1 em { color: #ff9a5e; font-style: normal; }
.hero-lead { max-width: 650px; margin: 28px 0 34px; color: #d9e4ec; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { position: absolute; z-index: 2; bottom: 0; left: 0; right: 0; }
.proof-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255,255,255,.14); border-bottom: 0;
  border-radius: 18px 18px 0 0; background: rgba(7,28,46,.84); backdrop-filter: blur(14px);
}
.proof-item { display: flex; min-height: 92px; align-items: center; gap: 13px; padding: 20px 26px; border-right: 1px solid rgba(255,255,255,.12); }
.proof-item:last-child { border: 0; }
.proof-item svg { width: 25px; height: 25px; color: var(--orange); flex: 0 0 auto; }
.proof-item b { display: block; font-size: 15px; }
.proof-item small { display: block; margin-top: 2px; color: #9eb0bf; font-size: 12px; }

.section { padding: 105px 0; }
.section-soft { background: var(--paper); }
.section-dark { color: var(--white); background: var(--navy); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 50px; }
.section-head > div { max-width: 760px; }
.kicker { margin: 0 0 14px; color: var(--orange-dark); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 850; }
.section-title { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: -.045em; }
.section-intro { max-width: 670px; margin: 17px 0 0; color: var(--muted); font-size: 18px; }
.section-dark .section-intro { color: #b9c8d3; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--orange-dark); font-weight: 780; white-space: nowrap; }
.text-link:hover svg { transform: translateX(4px); }
.text-link svg { width: 18px; transition: .2s ease; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  position: relative; min-height: 285px; display: flex; flex-direction: column; padding: 30px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden;
  transition: .25s ease;
}
.service-card::after {
  content: ""; position: absolute; right: -45px; bottom: -55px; width: 135px; height: 135px;
  border: 22px solid rgba(23,101,143,.05); border-radius: 50%; transition: .25s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(244,123,53,.45); box-shadow: var(--shadow); }
.service-card:hover::after { border-color: rgba(244,123,53,.1); transform: scale(1.12); }
.card-icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 26px; border-radius: 15px; color: var(--blue); background: #eaf3f7; }
.card-icon svg { width: 25px; height: 25px; }
.service-card h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.2; letter-spacing: -.025em; }
.service-card p { margin: 0 0 24px; color: var(--muted); font-size: 15px; }
.service-card .text-link { margin-top: auto; font-size: 14px; }

.route-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.route-visual {
  position: relative; min-height: 510px; padding: 40px; border-radius: 30px; overflow: hidden;
  background: linear-gradient(145deg,#143e60,#071c30); box-shadow: var(--shadow);
}
.route-visual::before {
  content: ""; position: absolute; inset: 0; opacity: .17;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 1px); background-size: 28px 28px;
}
.route-line { position: absolute; height: 2px; background: linear-gradient(90deg,transparent,var(--orange),transparent); transform-origin: left center; }
.route-line.one { width: 68%; left: 17%; top: 35%; transform: rotate(13deg); }
.route-line.two { width: 61%; left: 22%; top: 63%; transform: rotate(-18deg); }
.route-node { position: absolute; width: 16px; height: 16px; border: 4px solid #ffd0b5; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 9px rgba(244,123,53,.12); }
.route-node.n1 { left: 17%; top: 34%; }.route-node.n2 { right: 17%; top: 48%; }.route-node.n3 { left: 27%; bottom: 25%; }
.route-card {
  position: absolute; z-index: 2; max-width: 230px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px; background: rgba(255,255,255,.1); backdrop-filter: blur(10px);
}
.route-card b { display: block; font-size: 15px; }.route-card span { color: #afc0cc; font-size: 12px; }
.route-card.a { left: 34px; top: 38px; }.route-card.b { right: 30px; bottom: 34px; }
.route-number { position: absolute; right: 38px; top: 44px; color: rgba(255,255,255,.06); font-size: 150px; line-height: 1; font-weight: 900; }
.feature-list { display: grid; gap: 20px; margin: 35px 0; }
.feature-item { display: grid; grid-template-columns: 46px 1fr; gap: 15px; align-items: start; }
.feature-item .num { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--orange-dark); background: #fff0e7; font-size: 13px; font-weight: 850; }
.feature-item h3 { margin: 0 0 5px; font-size: 18px; }.feature-item p { margin: 0; color: var(--muted); font-size: 15px; }

.industry-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.industry-card {
  min-height: 220px; display: flex; flex-direction: column; justify-content: end; padding: 24px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: rgba(255,255,255,.055); transition: .22s ease;
}
.industry-card { min-width: 0; }
.industry-card:hover { border-color: var(--orange); background: rgba(255,255,255,.1); transform: translateY(-4px); }
.industry-card svg { width: 30px; height: 30px; margin-bottom: auto; color: var(--orange); }
.industry-card h3 { margin: 25px 0 8px; font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }.industry-card p { margin: 0; color: #aebfcb; font-size: 13px; }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: steps; }
.process-step { position: relative; padding: 20px 28px 20px 0; counter-increment: steps; }
.process-step::before { content: "0" counter(steps); display: block; margin-bottom: 28px; color: var(--orange); font-size: 13px; font-weight: 850; }
.process-step::after { content: ""; position: absolute; left: 48px; right: 18px; top: 30px; height: 1px; background: var(--line); }
.process-step h3 { margin: 0 0 10px; font-size: 20px; }.process-step p { margin: 0; color: var(--muted); font-size: 14px; }

.quote-section { padding-top: 0; }
.quote-box {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; padding: 58px; border-radius: 30px;
  color: var(--white); background: linear-gradient(135deg,#0b2a45,#123f61); box-shadow: var(--shadow);
}
.quote-copy h2 { margin: 0; font-size: clamp(34px,4vw,48px); line-height: 1.08; letter-spacing: -.04em; }
.quote-copy p { color: #c0cfda; }.mini-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.mini-points span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: #d7e2e9; font-size: 12px; }

.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form .wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; color: #c8d5de; font-size: 12px; font-weight: 720; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 51px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.17);
  border-radius: 11px; outline: none; color: var(--white); background: rgba(255,255,255,.08);
}
.field textarea { min-height: 92px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8ea4b4; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,123,53,.14); }
.field select option { color: var(--ink); }
.form-consent { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 9px; color: #aebfcb; font-size: 11px; line-height: 1.45; }
.form-consent input { margin-top: 3px; accent-color: var(--orange); }
.form-consent a { text-decoration: underline; }
.lead-form .btn { width: 100%; grid-column: 1 / -1; border: 0; }
.form-note { grid-column: 1 / -1; margin: -2px 0 0; color: #8fa6b7; font-size: 11px; }
.form-success { grid-column: 1/-1; padding: 14px 16px; border-radius: 10px; color: #d8fff0; background: rgba(21,131,92,.26); font-size: 14px; }
.hp-field { position: absolute!important; left: -9999px!important; }

.page-hero { position: relative; overflow: hidden; padding: 78px 0 82px; color: var(--white); background: var(--navy); }
.page-hero::before { content: ""; position: absolute; right: -10%; top: -80%; width: 650px; height: 650px; border: 100px solid rgba(255,255,255,.025); border-radius: 50%; }
.breadcrumbs { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 46px; color: #9fb2c0; font-size: 12px; }
.breadcrumbs a:hover { color: var(--white); }.breadcrumbs span { color: #5f7b8e; }
.page-hero h1 { position: relative; z-index: 1; max-width: 980px; font-size: clamp(42px,5vw,68px); }
.page-hero .page-lead { position: relative; z-index: 1; max-width: 740px; margin: 24px 0 0; color: #c3d1db; font-size: 20px; }

.page-content { padding: 88px 0 105px; }
.content-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 70px; align-items: start; }
.prose h2 { margin: 55px 0 18px; font-size: clamp(28px,3vw,40px); line-height: 1.15; letter-spacing: -.035em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 12px; font-size: 22px; line-height: 1.25; }
.prose p { margin: 0 0 20px; color: #435667; }
.prose ul { display: grid; gap: 12px; margin: 22px 0 35px; padding: 0; list-style: none; }
.prose li { position: relative; padding-left: 28px; color: #334b5d; }
.prose li::before { content: ""; position: absolute; left: 0; top: .64em; width: 9px; height: 9px; border-radius: 3px; background: var(--orange); }
.content-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin: 28px 0 40px; }
.content-card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.content-card b { display: block; margin-bottom: 7px; font-size: 17px; }.content-card span { color: var(--muted); font-size: 14px; }
.page-aside { position: sticky; top: 110px; }
.aside-card { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.aside-card + .aside-card { margin-top: 16px; }
.aside-card h3 { margin: 0 0 11px; font-size: 20px; line-height: 1.25; }.aside-card p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.aside-card .btn { width: 100%; }
.aside-links { margin: 0; padding: 0; list-style: none; }
.aside-links li { border-top: 1px solid var(--line); }.aside-links li:first-child { border-top: 0; }
.aside-links a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; color: #344c5e; font-size: 13px; font-weight: 700; }
.aside-links a:hover { color: var(--orange-dark); }
.related { padding: 82px 0; background: var(--paper); }
.related .service-grid { grid-template-columns: repeat(3,1fr); }

.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.faq-item summary { position: relative; padding: 21px 55px 21px 22px; font-weight: 760; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 15px; color: var(--orange); font-size: 28px; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 22px 22px; color: var(--muted); font-size: 15px; }

.site-footer { padding: 70px 0 25px; color: #ccdae3; background: #071a2b; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 56px; padding-bottom: 50px; }
.footer-about p { max-width: 330px; color: #8fa4b4; font-size: 14px; }
.footer-title { margin: 0 0 18px; color: var(--white); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.footer-links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: #93a8b8; font-size: 13px; }.footer-links a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.09); color: #718a9c; font-size: 12px; }

@media (max-width: 1020px) {
  .header-cta { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .main-nav { display: none; position: fixed; left: 0; right: 0; top: 78px; height: calc(100vh - 78px); padding: 25px 20px; background: var(--white); }
  .main-nav.open { display: block; }
  .main-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 16px 5px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .hero { min-height: 670px; }.hero-content { padding-top: 80px; }
  .proof-item { padding: 18px; }.proof-item small { display: none; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(3,1fr); }
  .route-panel { gap: 40px; }
  .quote-box { grid-template-columns: 1fr; gap: 38px; }
  .content-layout { grid-template-columns: 1fr; }.page-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }.aside-card + .aside-card { margin: 0; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }.footer-about { grid-column: 1/-1; }
}

@media (max-width: 720px) {
  :root { --container: min(100% - 30px, 1180px); --radius: 18px; }
  body { font-size: 16px; }.header-inner { min-height: 68px; }.main-nav { top: 68px; height: calc(100vh - 68px); }
  .brand-mark { width: 36px; height: 36px; }.brand-name { font-size: 18px; }
  .hero { min-height: 720px; align-items: start; }.hero::before { background: linear-gradient(90deg,rgba(6,25,42,.96),rgba(6,25,42,.72)),var(--hero-image) 63% center/cover no-repeat; }
  .hero-content { padding: 70px 0 185px; }.hero h1 { font-size: 45px; }.hero-lead { font-size: 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; }.hero-actions .btn { width: 100%; }
  .proof-grid { grid-template-columns: 1fr 1fr; }.proof-item { min-height: 70px; padding: 12px 15px; }.proof-item:nth-child(2) { border-right: 0; }.proof-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .proof-item b { font-size: 13px; }
  .section { padding: 72px 0; }.section-head { display: block; margin-bottom: 34px; }.section-head .text-link { margin-top: 20px; }
  .service-grid, .related .service-grid { grid-template-columns: 1fr; }.service-card { min-height: 245px; }
  .route-panel { grid-template-columns: 1fr; }.route-visual { min-height: 400px; order: 2; }.route-number { font-size: 100px; }
  .industry-grid { grid-template-columns: 1fr 1fr; }.industry-card { min-height: 180px; }
  .process { grid-template-columns: 1fr; }.process-step { padding-bottom: 32px; }.process-step::after { left: 24px; right: auto; top: 52px; bottom: 0; width: 1px; height: auto; }
  .quote-box { padding: 32px 22px; border-radius: 22px; }.lead-form { grid-template-columns: 1fr; }.lead-form > * { grid-column: 1!important; }
  .page-hero { padding: 45px 0 55px; }.breadcrumbs { margin-bottom: 30px; }.page-hero h1 { font-size: 42px; }.page-hero .page-lead { font-size: 17px; }
  .page-content { padding: 65px 0 75px; }.content-cards { grid-template-columns: 1fr; }.page-aside { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px 22px; }.footer-about { grid-column: 1/-1; }.footer-bottom { flex-direction: column; gap: 8px; }
}

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