﻿:root {
  color-scheme: dark;
  --bg: #101418;
  --bg-soft: #171d24;
  --surface: #1f2731;
  --surface-2: #273240;
  --text: #f4f1ea;
  --muted: #a9b2bd;
  --line: #3a4a5f;
  --line-strong: #5f738f;
  --accent: #4c7fd7;
  --accent-2: #2d8c84;
  --accent-ink: #f3f7ff;
  --ok: #63c087;
  --warn: #d4a85f;
  --danger: #d66b6b;
  --overlay: rgba(16, 20, 24, 0.92);
  --form-bg: #161d25;
  --form-bg-focus: #1f2833;
  --radius: 7px;
  --radius-sm: 5px;
  --radius-lg: 11px;
  --shadow: 8px 8px 0 #0a0e13;
  --max: 1180px;
  --sans: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  --head: "Bahnschrift", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f1eee7;
  --bg-soft: #e6e0d6;
  --surface: #fffdf8;
  --surface-2: #efe8db;
  --text: #1a212c;
  --muted: #5f6773;
  --line: #9a8f7f;
  --line-strong: #6e7a8b;
  --accent: #2f63c1;
  --accent-2: #26766f;
  --accent-ink: #f5f8ff;
  --ok: #2f8b5b;
  --warn: #9e7535;
  --danger: #b25050;
  --overlay: rgba(241, 238, 231, 0.9);
  --form-bg: #f2ede4;
  --form-bg-focus: #e6ddd0;
  --shadow: 7px 7px 0 #c9c0b2;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.45;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(76, 127, 215, 0.26);
}

.container {
  width: min(var(--max), calc(100% - 44px));
  margin-inline: auto;
}

main > section {
  animation: reveal 0.45s ease both;
}

main > section:nth-of-type(2) {
  animation-delay: 0.06s;
}

main > section:nth-of-type(3) {
  animation-delay: 0.12s;
}

main > section:nth-of-type(4) {
  animation-delay: 0.18s;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  padding: 50px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.section-head > div {
  border-left: 4px solid var(--accent);
  padding-left: 14px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.card {
  border: 2px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card,
.btn,
.input,
.brand,
.logo,
.navlinks a,
.iconbtn,
.hero-media,
.slide-caption,
.service .icon,
.step-list li,
.check-list li,
.fact-list div,
.status,
.route,
.sum,
.delivery-summary,
.delivery-form,
.segbtn,
.checkline,
.delivery-stats div,
#map,
.case,
.case .info,
.review-summary-item,
.faq-item,
.faq-item summary::after,
.drawer .sheet,
.drawer a,
.modal .panel,
.toast,
.cookie {
  border-radius: var(--radius);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border: 2px solid var(--line-strong);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.h1,
.h2,
.h3 {
  margin: 0;
  font-family: var(--head);
  letter-spacing: 0.03em;
}

.h1 {
  font-size: clamp(32px, 5.4vw, 64px);
  line-height: 0.94;
}

.h2 {
  font-size: clamp(24px, 2.8vw, 40px);
  line-height: 1.03;
}

.h3 {
  font-size: 20px;
  line-height: 1.15;
}

.sep {
  height: 2px;
  margin: 14px 0;
  background: var(--line);
}

.btn {
  min-height: 44px;
  padding: 10px 16px;
  border: 2px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.btn:hover {
  transform: translate(-1px, -1px);
  border-color: var(--accent);
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn.ghost {
  background: transparent;
}

.btn.danger {
  background: rgba(214, 107, 107, 0.16);
  border-color: var(--danger);
}

.input {
  width: 100%;
  min-height: 44px;
  border: 2px solid var(--line);
  background: var(--form-bg);
  padding: 9px 11px;
  outline: none;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.input:focus {
  border-color: var(--accent);
  background: var(--form-bg-focus);
}

textarea.input {
  resize: vertical;
}

.label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-row {
  margin-top: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.actions-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

header {
  position: sticky;
  top: 0;
  z-index: 70;
  border-bottom: 2px solid var(--line);
  background: var(--overlay);
  backdrop-filter: blur(7px);
}

.nav {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  min-height: 58px;
}

.logo {
  width: clamp(190px, 22vw, 286px);
  height: clamp(62px, 7.2vw, 94px);
  border: 0;
  background: transparent url("assets/logo.png") center / contain no-repeat;
  flex: 0 0 auto;
}

header .logo {
  width: clamp(58px, 5.4vw, 74px);
  height: clamp(34px, 3.3vw, 44px);
  border: 0;
  border-radius: calc(var(--radius) - 1px);
  background: transparent url("assets/logo.png") center / 165% auto no-repeat;
  background-position: calc(50% + 6px) calc(50% + 6px);
}

header .brand {
  justify-content: flex-start;
  min-height: 0;
  padding: 3px 8px 3px 5px;
  gap: 8px;
  border-color: var(--line);
  background: transparent;
  box-shadow: none;
}

header .brand .brand-text {
  display: grid;
  align-content: center;
}

header .brand-text {
  display: grid;
  gap: 1px;
  line-height: 1;
}

header .brand-text b {
  margin: 0;
  font-size: 17px;
  font-family: var(--head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

header .brand-text small {
  display: block;
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.navlinks {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.navlinks a {
  padding: 8px 9px;
  border: 2px solid transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.navlinks a:hover,
.navlinks a.active {
  border-color: var(--line-strong);
  color: var(--text);
  background: var(--surface-2);
}

.navactions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.iconbtn {
  width: 42px;
  height: 42px;
  border: 2px solid var(--line-strong);
  background: var(--surface-2);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.iconbtn:hover {
  border-color: var(--accent);
}

.hamburger {
  display: none;
}
.hero {
  padding: 36px 0 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 18px;
  align-items: stretch;
}

.hero-left,
.hero-right {
  padding: 24px;
}

.hero-left {
  border-left: 8px solid var(--accent);
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-note {
  margin-top: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hero-kpis,
.kpi-grid {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kpi {
  border: 2px solid var(--line);
  background: var(--bg-soft);
  padding: 11px;
}

.kpi b {
  display: block;
  margin-top: 2px;
  font-size: 20px;
  font-family: var(--head);
}

.hero-media {
  position: relative;
  height: 100%;
  min-height: 360px;
  border: 2px solid var(--line);
  overflow: hidden;
}

.slides {
  height: 100%;
  display: flex;
  transition: transform 0.52s cubic-bezier(0.2, 0.78, 0.2, 1);
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9);
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 16, 22, 0.42);
}

.slide-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 12px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(12, 16, 22, 0.65);
}

.slide-caption b {
  display: block;
  margin-bottom: 5px;
}

.slider-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.dots {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  display: flex;
  gap: 7px;
}

.dot {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  border-radius: 999px;
}

.dot.active {
  width: 22px;
  border-color: var(--accent);
  background: var(--accent);
}

.mini-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini {
  padding: 14px;
}

.mini b {
  display: block;
  margin-bottom: 8px;
}

.service-grid,
.ops-grid,
.cases,
.review-wall,
.faq-grid,
.fleet {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.service,
.ops-card,
.case,
.review-card,
.faq-item,
.unit {
  border: 2px solid var(--line);
  background: var(--surface);
}

.service {
  grid-column: span 4;
  min-height: 220px;
  padding: 16px;
  border-top: 6px solid var(--accent);
  display: grid;
  gap: 8px;
}

.service .icon {
  width: 44px;
  height: 44px;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  color: var(--accent-2);
}

.service .icon svg {
  width: 22px;
  height: 22px;
}

.service small {
  color: var(--muted);
  font-size: 12px;
}

.service:nth-child(1) {
  grid-column: span 5;
}

.service:nth-child(2) {
  grid-column: span 3;
}

.service:nth-child(3) {
  grid-column: span 4;
}

.service:nth-child(4) {
  grid-column: span 4;
}

.service:nth-child(5) {
  grid-column: span 5;
}

.service:nth-child(6) {
  grid-column: span 3;
}

.ops-card {
  grid-column: span 4;
  padding: 16px;
}

.step-list,
.check-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.step-list li,
.check-list li {
  border: 2px solid var(--line);
  background: var(--bg-soft);
  padding: 9px;
}

.step-list li span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 2px 7px;
  background: rgba(47, 155, 144, 0.18);
  color: var(--accent-2);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

.step-list li p {
  margin: 8px 0 0;
  color: var(--muted);
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  left: 8px;
  top: 13px;
  background: var(--accent);
}

.fact-list {
  margin-top: 10px;
  display: grid;
  gap: 9px;
}

.fact-list div {
  border: 2px solid var(--line);
  background: var(--bg-soft);
  padding: 9px;
  display: grid;
  gap: 4px;
}

.fact-list b {
  letter-spacing: 0.02em;
}

.media-shot {
  border: 2px solid var(--line);
  background: var(--surface-2);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.media-shot img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.legal-shell {
  position: relative;
}

.legal-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(76, 127, 215, 0.1) 0 180px, transparent 190px),
    radial-gradient(circle at 86% 18%, rgba(45, 140, 132, 0.12) 0 170px, transparent 180px),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 38px,
      rgba(95, 115, 143, 0.06) 38px,
      rgba(95, 115, 143, 0.06) 40px
    );
}

.legal-hero {
  position: relative;
  z-index: 1;
  padding: 20px;
  border-left: 8px solid var(--accent);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 16px;
  align-items: stretch;
}

.legal-hero .stamp {
  justify-self: start;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  border: 2px solid var(--accent);
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  background: rgba(76, 127, 215, 0.1);
  border-radius: var(--radius-sm);
}

.legal-hero p {
  margin: 10px 0 0;
}

.legal-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.legal-meta span {
  border: 2px solid var(--line);
  background: var(--bg-soft);
  padding: 4px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-radius: var(--radius-sm);
}

.legal-grid {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 92px;
  padding: 14px;
  background: var(--surface);
}

.legal-toc b {
  display: block;
  margin-bottom: 10px;
}

.legal-toc a {
  display: block;
  padding: 7px 9px;
  margin-bottom: 6px;
  border: 2px solid transparent;
  color: var(--muted);
  border-radius: var(--radius-sm);
}

.legal-toc a:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.legal-doc {
  display: grid;
  gap: 10px;
}

.legal-item {
  padding: 14px;
  border: 2px solid var(--line);
  background: var(--surface);
}

.legal-item h2 {
  margin: 0;
}

.legal-item p,
.legal-item ul {
  margin: 10px 0 0;
}

.legal-item ul {
  padding-left: 16px;
  color: var(--muted);
}

.legal-note {
  border: 2px dashed var(--line-strong);
  background: var(--bg-soft);
  padding: 10px 12px;
  margin-top: 10px;
  color: var(--muted);
  border-radius: var(--radius-sm);
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.track,
.calc,
.delivery-calc,
.contact-card {
  padding: 18px;
}

.track form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.field {
  display: flex;
  gap: 10px;
  flex: 1 1 260px;
}

.result {
  margin-top: 14px;
  display: none;
  gap: 12px;
  grid-template-columns: 1.1fr 0.9fr;
}

.status,
.route,
.sum,
.delivery-summary {
  border: 2px solid var(--line);
  background: var(--bg-soft);
  padding: 12px;
}

.timeline {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.step {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.step .bullet {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border: 2px solid var(--line-strong);
  background: transparent;
}

.step.done .bullet {
  border-color: var(--accent);
  background: var(--accent);
}

.step span {
  color: var(--muted);
  font-size: 13px;
}

.route .row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 2px dashed var(--line);
}

.route .row:last-child {
  border-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border: 2px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
}

.badge.ok {
  border-color: var(--ok);
  color: var(--ok);
}

.badge.warn {
  border-color: var(--warn);
  color: var(--warn);
}

.calc-grid,
.delivery-grid,
.contacts-grid {
  display: grid;
  gap: 12px;
}

.calc-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.calc-grid .box {
  grid-column: span 7;
  border: 2px solid var(--line);
  background: var(--bg-soft);
  padding: 12px;
}

.calc-grid .sum {
  grid-column: span 5;
}

.sum .big,
.delivery-summary .big,
.kpi-value,
.review-number {
  font-family: var(--head);
  letter-spacing: -0.02em;
}

.sum .big,
.delivery-summary .big {
  font-size: 34px;
  margin: 8px 0 2px;
}

.sum .meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.delivery-grid {
  grid-template-columns: 1.3fr 0.7fr;
}

.delivery-form {
  border: 2px solid var(--line);
  background: var(--bg-soft);
  padding: 12px;
}

.delivery-form .form-row:first-child {
  margin-top: 0;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.segbtn {
  min-height: 40px;
  border: 2px solid var(--line-strong);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.segbtn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.checkstack {
  display: grid;
  gap: 8px;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--line);
  background: var(--surface-2);
  padding: 7px 8px;
  color: var(--muted);
}

.checkline input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.fuel-readout {
  margin-top: 7px;
  font-size: 13px;
}

.delivery-stats {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.delivery-stats div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--line);
  background: var(--surface-2);
  padding: 7px 8px;
}

.delivery-stats span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.delivery-stats b {
  font-family: var(--mono);
  font-size: 13px;
}

#map {
  height: 360px;
  border: 2px solid var(--line);
}

.map-fallback {
  height: 100%;
  width: 100%;
  display: grid;
  place-items: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.leaflet-control-zoom {
  border: 2px solid var(--line) !important;
  background: var(--surface) !important;
  overflow: hidden;
}

.leaflet-control-zoom a {
  border: 0 !important;
  background: var(--surface) !important;
  color: var(--text) !important;
}

.leaflet-control-zoom a:hover {
  background: var(--surface-2) !important;
}

.leaflet-control-attribution {
  background: rgba(16, 20, 24, 0.72) !important;
  color: var(--muted) !important;
}

[data-theme="light"] .leaflet-control-attribution {
  background: rgba(255, 253, 248, 0.92) !important;
}

.leaflet-control-attribution a {
  color: var(--text) !important;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.leaflet-container {
  background: var(--surface-2);
}

.leaflet-tile-pane {
  filter: saturate(0.72) contrast(1.05);
}

.unit {
  grid-column: span 3;
  padding: 12px;
}

.unit .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.meter {
  height: 10px;
  border: 2px solid var(--line);
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}

.meter > i {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--accent);
  border-radius: 999px;
}

.case {
  grid-column: span 6;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}

.case img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 20, 0.52);
}

.case .info {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 14, 20, 0.7);
  padding: 11px;
}

.case-kpis {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.kpi-detail {
  grid-column: span 3;
  padding: 12px;
}

.kpi-value {
  margin-top: 6px;
  font-size: 30px;
  color: var(--accent);
}

.kpi-detail p {
  margin: 9px 0 0;
  color: var(--muted);
}

.review-card {
  grid-column: span 3;
  padding: 12px;
  display: grid;
  gap: 9px;
}

.review-head,
.review-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.review-tag,
.review-stat,
.rating {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 2px solid var(--line-strong);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.review-tag {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.review-company,
.review-route,
.review-quote {
  margin: 0;
}

.review-route {
  font-size: 13px;
}

.review-quote {
  border-left: 3px solid var(--accent);
  padding: 8px 10px;
  background: var(--bg-soft);
  color: var(--muted);
}

.rating {
  border-color: var(--accent);
  color: var(--accent);
}

.review-summary {
  margin-top: 0;
  border: 2px solid var(--line);
  background: var(--surface);
  padding: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.review-summary-item {
  border: 2px solid var(--line);
  background: var(--bg-soft);
  padding: 10px;
}

.review-number {
  font-size: 24px;
  color: var(--accent);
}

.faq-item {
  grid-column: span 6;
  padding: 12px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 30px;
  font-weight: 700;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--line-strong);
  display: grid;
  place-items: center;
}

.faq-item[open] {
  border-color: var(--accent);
}

.faq-item[open] summary::after {
  content: "-";
  border-color: var(--accent);
  color: var(--accent);
}

.faq-item p {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 2px dashed var(--line);
  color: var(--muted);
}

.contacts-grid {
  grid-template-columns: 1fr 1fr;
}

.crm-page {
  --crm-surface: #1b2633;
  --crm-surface-soft: #233143;
  --crm-outline: #39516d;
  --crm-outline-soft: #30465f;
  --crm-highlight: #4d82d8;
  --crm-highlight-soft: rgba(77, 130, 216, 0.17);
  --crm-ink-soft: #b7c3d0;
  --crm-success-soft: rgba(99, 192, 135, 0.18);
  --crm-danger-soft: rgba(214, 107, 107, 0.17);
  background:
    radial-gradient(1100px 520px at 0% -14%, rgba(64, 92, 132, 0.24), transparent 65%),
    radial-gradient(760px 400px at 100% -15%, rgba(44, 72, 108, 0.2), transparent 72%),
    var(--bg);
}

[data-theme="light"].crm-page {
  --crm-surface: #ffffff;
  --crm-surface-soft: #f6f8fb;
  --crm-outline: #9fb3c8;
  --crm-outline-soft: #c1cfdf;
  --crm-highlight: #2f63c1;
  --crm-highlight-soft: rgba(47, 99, 193, 0.13);
  --crm-ink-soft: #536175;
  --crm-success-soft: rgba(47, 139, 91, 0.13);
  --crm-danger-soft: rgba(178, 80, 80, 0.11);
  background:
    radial-gradient(1060px 460px at 0% -12%, rgba(82, 122, 180, 0.14), transparent 66%),
    radial-gradient(740px 360px at 100% -15%, rgba(117, 141, 170, 0.16), transparent 70%),
    var(--bg);
}

.crm-page .section.crm-section {
  padding: 36px 0 56px;
}

.crm-page .container.crm-shell {
  width: calc(100% - 24px);
  max-width: none;
  display: grid;
  gap: 16px;
}

.crm-page .card {
  border: 1px solid var(--crm-outline);
  background: var(--crm-surface);
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(7, 12, 20, 0.28);
}

.crm-login {
  max-width: 700px;
  margin-inline: auto;
  padding: 24px;
  display: grid;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(77, 130, 216, 0.13), transparent 54%),
    linear-gradient(0deg, var(--crm-surface), var(--crm-surface));
}

.crm-login-top {
  display: grid;
  gap: 10px;
}

.crm-login .h2 {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.02;
  letter-spacing: 0.02em;
}

.crm-login-note {
  margin: 0;
  max-width: 60ch;
  color: var(--crm-ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

.crm-login-form {
  display: grid;
  gap: 12px;
  margin-top: 2px;
}

.crm-login-form .form-row {
  margin-top: 0;
  gap: 12px;
}

.crm-login-form .label {
  margin-bottom: 7px;
}

.crm-login-form .input {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--crm-outline-soft);
  background: var(--form-bg);
}

.crm-login-form .input:focus {
  border-color: var(--crm-highlight);
  background: var(--form-bg-focus);
}

.crm-login-form .actions-row {
  margin-top: 4px;
}

.crm-login-hint {
  font-size: 14px;
}

.crm-login-hint b {
  color: var(--text);
}

#crmPanel {
  display: grid;
  gap: 16px;
}

#crmPanel[hidden],
#crmLoginCard[hidden] {
  display: none !important;
}

.crm-toolbar {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  background:
    linear-gradient(90deg, rgba(45, 140, 132, 0.16), transparent 40%),
    linear-gradient(0deg, var(--crm-surface), var(--crm-surface));
}

.crm-toolbar-main {
  display: grid;
  gap: 6px;
}

.crm-toolbar-title {
  margin: 0;
  font-family: var(--head);
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.06;
  letter-spacing: 0.03em;
}

.crm-userline {
  margin: 0;
  color: var(--crm-ink-soft);
  font-size: 14px;
}

.crm-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.crm-shell .btn {
  border-radius: 12px;
  border-width: 1px;
  min-height: 42px;
  letter-spacing: 0.06em;
  box-shadow: none;
  transition: border-color 0.14s ease, background-color 0.14s ease, transform 0.14s ease;
}

.crm-shell .btn:hover {
  transform: translateY(-1px);
  border-color: var(--crm-highlight);
}

.crm-shell .btn.primary {
  border-color: var(--crm-highlight);
  background: var(--crm-highlight);
  color: var(--accent-ink);
}

.crm-shell .btn.danger {
  border-color: var(--danger);
  background: rgba(214, 107, 107, 0.14);
}

.crm-notice {
  border: 1px solid var(--crm-outline);
  border-left-width: 4px;
  border-left-color: var(--crm-highlight);
  background: var(--crm-surface-soft);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
}

.crm-notice.ok {
  border-color: rgba(99, 192, 135, 0.6);
  border-left-color: var(--ok);
  background: var(--crm-success-soft);
}

.crm-notice.error {
  border-color: rgba(214, 107, 107, 0.64);
  border-left-color: var(--danger);
  background: var(--crm-danger-soft);
}

.crm-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.crm-stat {
  padding: 14px 16px;
  display: grid;
  gap: 8px;
  background:
    linear-gradient(180deg, rgba(77, 130, 216, 0.08), transparent 62%),
    linear-gradient(0deg, var(--crm-surface), var(--crm-surface));
}

.crm-stat span {
  color: var(--crm-ink-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.crm-stat b {
  display: block;
  margin-top: 0;
  font-family: var(--head);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  letter-spacing: 0.02em;
}

.crm-columns {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  align-items: start;
}

.crm-block {
  min-height: clamp(520px, 72vh, 980px);
  padding: 16px;
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 12px;
}

.crm-block[hidden] {
  display: none !important;
}

.crm-viewbar {
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(77, 130, 216, 0.14), transparent 45%),
    linear-gradient(0deg, var(--crm-surface), var(--crm-surface));
}

.crm-viewbar .crm-chip {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 12px;
}

.crm-block-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.crm-block .h3 {
  font-size: clamp(28px, 2.2vw, 34px);
  line-height: 1.03;
  letter-spacing: 0.02em;
}

.crm-total {
  color: var(--crm-ink-soft);
  font-size: 14px;
  white-space: nowrap;
}

.crm-total b {
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.crm-tools {
  display: grid;
  gap: 10px;
}

.crm-filter-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px;
  border: 1px solid var(--crm-outline-soft);
  background: var(--crm-surface-soft);
  border-radius: 12px;
}

.crm-chip {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--crm-ink-soft);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-radius: 10px;
  transition: border-color 0.14s ease, color 0.14s ease, background-color 0.14s ease;
}

.crm-chip:hover {
  border-color: var(--crm-outline);
  color: var(--text);
}

.crm-chip.active {
  border-color: var(--crm-highlight);
  background: var(--crm-highlight-soft);
  color: var(--text);
}

.crm-search-line {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--crm-outline-soft);
  background: var(--form-bg);
  border-radius: 12px;
  padding: 0 11px;
}

.crm-search-line:focus-within {
  border-color: var(--crm-highlight);
  background: var(--form-bg-focus);
}

.crm-search-icon {
  color: var(--crm-ink-soft);
  flex: 0 0 auto;
}

.crm-search {
  min-height: 42px;
  border: 0;
  padding: 10px 0;
  background: transparent;
}

.crm-search::placeholder {
  color: var(--crm-ink-soft);
}

.crm-search:focus {
  border: 0;
  background: transparent;
}

.crm-table-wrap {
  border: 1px solid var(--crm-outline-soft);
  border-radius: 14px;
  overflow: visible;
  max-height: none;
  background: var(--crm-surface-soft);
}

.crm-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%;
  table-layout: fixed;
  background: transparent;
}

.crm-block-orders .crm-table {
  min-width: 100%;
}

.crm-table th,
.crm-table td {
  border-bottom: 1px solid var(--crm-outline-soft);
  padding: 12px;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.crm-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(20, 31, 44, 0.86);
  color: var(--crm-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 10px;
}

[data-theme="light"] .crm-table th {
  background: rgba(244, 247, 252, 0.94);
}

.crm-table tbody tr:nth-child(even) td {
  background: rgba(77, 130, 216, 0.03);
}

.crm-table tbody tr:hover td {
  background: rgba(77, 130, 216, 0.11);
}

.crm-block-quotes .crm-table th:nth-child(1),
.crm-block-quotes .crm-table td:nth-child(1) {
  width: 18%;
}

.crm-block-quotes .crm-table th:nth-child(2),
.crm-block-quotes .crm-table td:nth-child(2) {
  width: 18%;
}

.crm-block-quotes .crm-table th:nth-child(3),
.crm-block-quotes .crm-table td:nth-child(3) {
  width: 26%;
}

.crm-block-quotes .crm-table th:nth-child(4),
.crm-block-quotes .crm-table td:nth-child(4) {
  width: 14%;
}

.crm-block-quotes .crm-table th:nth-child(5),
.crm-block-quotes .crm-table td:nth-child(5) {
  width: 24%;
}

.crm-block-orders .crm-table th:nth-child(1),
.crm-block-orders .crm-table td:nth-child(1) {
  width: 22%;
}

.crm-block-orders .crm-table th:nth-child(2),
.crm-block-orders .crm-table td:nth-child(2) {
  width: 20%;
}

.crm-block-orders .crm-table th:nth-child(3),
.crm-block-orders .crm-table td:nth-child(3) {
  width: 22%;
}

.crm-block-orders .crm-table th:nth-child(4),
.crm-block-orders .crm-table td:nth-child(4) {
  width: 20%;
}

.crm-block-orders .crm-table th:nth-child(5),
.crm-block-orders .crm-table td:nth-child(5) {
  width: 16%;
}

.crm-subtext {
  margin-top: 4px;
  color: var(--crm-ink-soft);
  font-size: 12px;
  line-height: 1.35;
}

.crm-empty {
  color: var(--crm-ink-soft);
  text-align: center;
  padding: 22px 16px;
  font-size: 14px;
}

.crm-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  border: 1px solid var(--crm-outline);
  border-radius: 999px;
  background: var(--crm-surface-soft);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.crm-badge.pending {
  border-color: var(--warn);
  background: rgba(212, 168, 95, 0.17);
}

.crm-badge.accepted {
  border-color: var(--ok);
  background: rgba(99, 192, 135, 0.17);
}

.crm-badge.rejected {
  border-color: var(--danger);
  background: rgba(214, 107, 107, 0.17);
}

.crm-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}

.crm-actions .btn {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 10px;
  width: 100%;
}

.crm-note-input {
  grid-column: 1 / -1;
  min-width: 0;
  min-height: 36px;
  padding: 8px 9px;
  border: 1px solid var(--crm-outline-soft);
  background: var(--form-bg);
}

footer {
  border-top: 2px solid var(--line);
  padding: 26px 0 38px;
  background: var(--bg-soft);
}

footer .logo {
  width: clamp(170px, 19vw, 240px);
  height: clamp(56px, 6vw, 78px);
  border: 0;
  background-position: center;
  background-size: contain;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 18px;
}

.footer-links {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  background: rgba(0, 0, 0, 0.52);
}

.drawer[open] {
  display: block;
}

.drawer .sheet {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(390px, 90vw);
  border-left: 2px solid var(--line);
  background: var(--surface);
  padding: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.drawer a {
  border: 2px solid var(--line);
  padding: 10px;
  color: var(--muted);
  background: var(--bg-soft);
}

.drawer a:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

dialog.modal {
  border: 0;
  padding: 0;
  background: transparent;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.58);
}

.modal[open] {
  display: grid;
}

.modal .panel {
  width: min(720px, 100%);
  border: 2px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modal .head {
  border-bottom: 2px solid var(--line);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal .content,
.modal .actions {
  padding: 12px;
}

.modal .actions {
  border-top: 2px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.toast {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 95;
  display: none;
  max-width: min(420px, calc(100% - 24px));
  border: 2px solid var(--line-strong);
  background: var(--surface);
  padding: 11px 12px;
  box-shadow: var(--shadow);
}

.toast[show] {
  display: block;
}

.cookie {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 94;
  width: min(500px, calc(100% - 24px));
  display: none;
  border: 2px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 12px;
}

.cookie[show] {
  display: block;
}

.cookie .row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 1180px) {
  .crm-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1040px) {
  .hero-grid,
  .section-head,
  .legal-hero,
  .legal-grid,
  .delivery-grid,
  .contacts-grid,
  .crm-columns,
  .two {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }

  .service,
  .ops-card,
  .case,
  .review-card,
  .kpi-detail,
  .unit {
    grid-column: span 6;
  }

  .calc-grid .box,
  .calc-grid .sum,
  .faq-item {
    grid-column: span 12;
  }

  .review-summary {
    grid-template-columns: 1fr 1fr;
  }

  .crm-stats {
    grid-template-columns: 1fr 1fr;
  }

  .crm-table {
    min-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 30px);
  }

  .crm-page .container.crm-shell {
    width: calc(100% - 24px);
  }

  .section {
    padding: 34px 0;
  }

  .navlinks {
    display: none;
  }

  .hamburger {
    display: inline-grid;
  }

  .navactions .btn.primary {
    display: none;
  }

  .brand {
    min-height: 48px;
    padding: 4px 7px;
  }

  header .logo {
    width: 54px;
    height: 33px;
    background-size: 172% auto;
    background-position: calc(50% + 5px) calc(50% + 5px);
  }

  header .brand-text b {
    font-size: 15px;
    letter-spacing: 0.07em;
  }

  header .brand-text small {
    display: none;
  }

  footer .logo {
    width: 166px;
    height: 54px;
  }

  .hero-left,
  .hero-right,
  .track,
  .calc,
  .delivery-calc,
  .contact-card {
    padding: 14px;
  }

  .hero-kpis,
  .kpi-grid,
  .review-summary,
  .crm-stats,
  .footer-grid,
  .form-row,
  .result {
    grid-template-columns: 1fr;
  }

  .crm-table {
    min-width: 100%;
  }

  .crm-toolbar-actions,
  .crm-filter-row {
    width: 100%;
  }

  .crm-toolbar-actions {
    justify-content: flex-start;
  }

  .crm-chip {
    flex: 1 1 auto;
  }

  .crm-block {
    min-height: 0;
  }

  .crm-actions {
    grid-template-columns: 1fr;
  }

  .crm-total b {
    font-size: 18px;
  }

  .legal-meta {
    gap: 6px;
  }

  .service,
  .ops-card,
  .case,
  .review-card,
  .kpi-detail,
  .unit,
  .faq-item {
    grid-column: span 12;
  }

  .segmented {
    grid-template-columns: 1fr;
  }

  .field {
    flex-direction: column;
    flex-basis: 100%;
  }

  .btn,
  .field .btn,
  .modal .actions .btn {
    width: 100%;
  }

  .modal .actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
