/* INDEX — landing layout */
:root {
  --navy: #152d4a;
  --navy-dark: #0f2238;
  --red: #e5252a;
  --red-hover: #c91f24;
  --text: #1a2d44;
  --muted: #5c6b7a;
  --white: #fff;
  --shadow: 0 12px 40px rgba(21, 45, 74, 0.12);
  --radius: 10px;
  --header-pad: 1rem 2.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.site-header {
  background: var(--navy);
  color: var(--white);
  padding: var(--header-pad);
  position: relative;
  z-index: 20;
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  line-height: 0;
}

.brand-logo {
  height: 84px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  color: var(--white);
  font: inherit;
  cursor: pointer;
  padding: 0.25rem 0;
}

.lang-chevron {
  opacity: 0.85;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.main-nav a {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0.95;
  transition: opacity 0.2s;
}

.main-nav a:hover {
  opacity: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0.9;
  transition: opacity 0.2s;
}

.icon-btn:hover {
  opacity: 1;
}

.play-btn {
  margin-right: 0.15rem;
}

.social {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
  transition: transform 0.2s, box-shadow 0.2s;
}

.social:hover {
  transform: translateY(-2px);
}

.social.fb {
  background: #1877f2;
}

.social.ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social.ig span {
  width: 14px;
  height: 14px;
  border: 2px solid var(--white);
  border-radius: 4px;
}

.social.wa {
  background: #25d366;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--white);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  padding: 3rem 2.5rem 6rem;
  overflow: hidden;
}

.hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  align-items: center;
}

.hero-text h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 34em;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
}

.btn-primary:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  box-shadow: 0 8px 24px rgba(229, 37, 42, 0.35);
}

.hero-media {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  object-fit: cover;
}

/* Action cards */
.action-cards {
  max-width: 1320px;
  margin: -3.5rem auto 0;
  padding: 0 2.5rem;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.action-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(21, 45, 74, 0.16);
}

.action-label {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}

.action-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.action-icon svg {
  display: block;
}

.action-icon--courier {
  background: linear-gradient(145deg, #fff5f0 0%, #ffe8dc 100%);
  box-shadow: inset 0 0 0 2px rgba(229, 37, 42, 0.12);
}

.action-icon--track {
  background: linear-gradient(145deg, #eef4fb 0%, #dce9f7 100%);
}

.action-icon--calc {
  background: linear-gradient(145deg, #fff8e6 0%, #fff3e0 100%);
}

/* О компании */
.about {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 2.5rem 4.5rem;
  overflow: hidden;
}

.about-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  align-items: center;
}

.about-content .about-lead {
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 36em;
}

.about-content h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem 1.5rem;
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.about-stat-value {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  line-height: 1.1;
  color: var(--white);
}

.about-stat-desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
}

.about-media {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Появление блоков сверху вниз при скролле */
.about-reveal {
  opacity: 0;
  transform: translateY(-2rem);
  will-change: opacity, transform;
}

.about--visible .about-reveal {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--about-d, 0s);
}

@media (prefers-reduced-motion: reduce) {
  .about-reveal {
    opacity: 1;
    transform: none;
  }

  .about--visible .about-reveal {
    transition: none;
  }
}

@media (max-width: 1024px) {
  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-media {
    order: -1;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .about {
    padding: 2.5rem 1.25rem 3rem;
  }
}

/* Услуги */
.services {
  background: var(--white);
  padding-bottom: 4rem;
  overflow: hidden;
}

.services-cards-wrap {
  max-width: 1320px;
  margin: -3.5rem auto 0;
  padding: 0 2.5rem;
  position: relative;
  z-index: 8;
}

.services-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.35rem 1.65rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  border: 1px solid rgba(21, 45, 74, 0.06);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.15rem;
}

.service-card__icon svg {
  display: block;
}

.service-card__title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--text);
  margin: 0;
}

.service-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.service-card__list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.service-card__list li:last-child {
  margin-bottom: 0;
}

.service-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 0.5em;
  height: 0.25em;
  border-left: 2px solid #b8c5d0;
  border-bottom: 2px solid #b8c5d0;
  transform: rotate(-45deg);
}

.services-why {
  max-width: 1320px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem 0;
}

.services-why__title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  text-align: center;
  color: var(--text);
  margin: 0 0 2.5rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.services-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2.5rem;
}

.services-benefit {
  text-align: center;
}

.services-benefit__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-benefit__icon svg {
  display: block;
}

.services-benefit__title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin: 0 0 0.65rem;
  line-height: 1.35;
}

.services-benefit__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.services-cta {
  text-align: center;
  margin-top: 2.75rem;
}

.services-cta .btn-primary {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

.services-reveal {
  opacity: 0;
  transform: translateY(-2rem);
  will-change: opacity, transform;
}

.services--visible .services-reveal {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--svc-d, 0s);
}

@media (prefers-reduced-motion: reduce) {
  .services-reveal {
    opacity: 1;
    transform: none;
  }

  .services--visible .services-reveal {
    transition: none;
  }
}

@media (max-width: 1024px) {
  .services-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .services-cards-wrap {
    margin-top: 1.5rem;
    padding: 0 1.5rem;
  }

  .services-benefits {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-why {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 640px) {
  .services {
    padding-bottom: 3rem;
  }

  .services-why {
    padding-top: 2.5rem;
  }
}

/* reCAPTCHA-style corner widget */
.recaptcha-widget {
  position: fixed;
  right: 12px;
  bottom: 12px;
  font-size: 0.65rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 50;
}

.recaptcha-widget a {
  color: #4b5563;
  text-decoration: underline;
}

.recaptcha-badge {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(135deg, #4285f4, #34a853);
  flex-shrink: 0;
}

.recaptcha-widget .sep {
  opacity: 0.5;
}

@media (max-width: 1024px) {
  .main-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
    max-width: 560px;
    margin: 0 auto;
  }

  .action-cards {
    grid-template-columns: 1fr;
    margin-top: 1.5rem;
    padding: 0 2rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 1rem 1.25rem;
  }

  .hero {
    padding: 2rem 1.25rem 4rem;
  }

  .header-right {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .btn-ghost {
    width: 100%;
    justify-content: center;
  }
}

/* ——— Калькулятор ——— */
.page-calculator .calc-main {
  padding: 2rem 1.5rem 4rem;
  min-height: 50vh;
}

.calc-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.breadcrumbs {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.breadcrumbs a:hover {
  color: var(--text);
}

.breadcrumbs-sep {
  margin: 0 0.35rem;
  opacity: 0.7;
}

.breadcrumbs-current {
  color: var(--text);
}

.calc-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--navy);
  text-align: center;
  margin: 0 0 2.25rem;
  line-height: 1.2;
}

.calc-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0;
}

.calc-row {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.calc-row--two {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
  .calc-row--two {
    grid-template-columns: 1fr;
  }
}

.field-label {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.field-select,
.field-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font: inherit;
  color: var(--text);
  border: 1px solid #c5cdd6;
  border-radius: 8px;
  background: var(--white);
  transition: border-color 0.2s;
}

.field-select:focus,
.field-input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(21, 45, 74, 0.12);
}

.field-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.field-hint-icon {
  flex-shrink: 0;
  color: var(--red);
  margin-top: 0.05rem;
}

.calc-fieldset {
  border: none;
  margin: 0 0 1.75rem;
  padding: 0;
}

.field-legend {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  padding: 0;
  margin-bottom: 0.75rem;
}

.tariff-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 2px solid #e2e8f0;
  background: #fafbfc;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tariff-card:has(:focus-visible) {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.tariff-card--active,
.tariff-card:has(input:checked) {
  border-color: var(--red);
  box-shadow: 0 4px 16px rgba(229, 37, 42, 0.12);
  background: var(--white);
}

.tariff-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tariff-text strong {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  color: var(--navy);
}

.tariff-sub {
  font-size: 0.85rem;
  color: var(--muted);
}

.calc-total {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  text-align: center;
  margin: 1.75rem 0 1.25rem;
}

.calc-total span {
  font-weight: 700;
}

.btn-calc-submit {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border-radius: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Модальное окно WhatsApp */
body.wa-modal-active {
  overflow: hidden;
}

.wa-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.wa-modal[hidden] {
  display: none;
}

.wa-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 32, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.wa-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 2.25rem 1.75rem 1.75rem;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(30, 46, 72, 0.98) 0%, rgba(12, 22, 38, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.25),
    0 32px 64px rgba(0, 0, 0, 0.45);
  color: #fff;
  text-align: center;
  opacity: 0;
  transform: translateY(-18px) scale(0.96);
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.wa-modal--open .wa-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.wa-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.wa-modal__close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.wa-modal__icon-wrap {
  margin-bottom: 1.25rem;
}

.wa-modal__icon-circle {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #2fe065 0%, #25d366 40%, #128c7e 100%);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
}

.wa-modal__icon-svg {
  color: #fff;
  display: block;
}

.wa-modal__title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0 0 0.6rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.wa-modal__text {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.wa-modal__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.95rem 1.25rem;
  margin-bottom: 0.65rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 14px;
  background: linear-gradient(180deg, #2fe065 0%, #25d366 35%, #1fa855 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}

.wa-modal__cta:hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  transform: translateY(-1px);
}

.wa-modal__secondary {
  width: 100%;
  padding: 0.6rem;
  font: inherit;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wa-modal__secondary:hover {
  color: rgba(255, 255, 255, 0.9);
}

@media (prefers-reduced-motion: reduce) {
  .wa-modal__dialog {
    transition: none;
  }

  .wa-modal--open .wa-modal__dialog {
    opacity: 1;
    transform: none;
  }

  .wa-modal__cta:hover {
    transform: none;
  }
}

/* ——— Отслеживание груза ——— */
.page-track {
  min-height: 100vh;
}

.track-main {
  position: relative;
  padding: 2.25rem 1.5rem 4.5rem;
  overflow: hidden;
}

.track-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(74, 124, 255, 0.08), transparent 55%),
    radial-gradient(900px 480px at 95% 20%, rgba(229, 37, 42, 0.06), transparent 50%),
    linear-gradient(180deg, #eef2f7 0%, #f8fafc 35%, #ffffff 100%);
  pointer-events: none;
}

.track-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(21, 45, 74, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 45, 74, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 70%);
}

.track-wrap {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  min-width: 0;
  width: 100%;
  padding-inline: 0;
  box-sizing: border-box;
}

.track-breadcrumbs {
  margin-bottom: 1.5rem;
}

.track-page-head {
  text-align: center;
  margin-bottom: 2rem;
}

.track-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  color: var(--navy);
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.track-subtitle {
  margin: 0 auto;
  max-width: 38em;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.track-panel {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid rgba(21, 45, 74, 0.08);
  box-shadow:
    0 4px 24px rgba(21, 45, 74, 0.06),
    0 32px 64px rgba(21, 45, 74, 0.08);
  padding: 2rem 2rem 2.25rem;
  transition: box-shadow 0.35s ease;
  min-width: 0;
}

.track-panel--has-result {
  box-shadow:
    0 4px 24px rgba(21, 45, 74, 0.07),
    0 40px 80px rgba(21, 45, 74, 0.1);
}

.track-form {
  margin: 0;
}

.track-field-label {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.track-field-row {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: stretch;
}

.track-input-shell {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.1rem 1rem 0.1rem 0.85rem;
  border-radius: 14px;
  border: 2px solid #d8dee8;
  background: linear-gradient(180deg, #fafbfd 0%, #ffffff 100%);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.track-input-shell:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(21, 45, 74, 0.12);
}

.track-input-icon {
  flex-shrink: 0;
  color: var(--muted);
  display: flex;
  opacity: 0.85;
}

.track-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--text);
  padding: 0.9rem 0.25rem 0.9rem 0;
  outline: none;
}

.track-input::placeholder {
  font-weight: 400;
  letter-spacing: normal;
  color: #9aa5b1;
}

.track-submit {
  padding-left: 1.75rem;
  padding-right: 1.75rem;
  border-radius: 14px;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(229, 37, 42, 0.28);
}

.track-result {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(21, 45, 74, 0.1);
  animation: track-fade-in 0.45s ease both;
  min-width: 0;
}

@keyframes track-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.track-result__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
  min-width: 0;
}

.track-result__card {
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  background: linear-gradient(165deg, #f4f7fb 0%, #ffffff 100%);
  border: 1px solid rgba(21, 45, 74, 0.08);
  min-width: 0;
}

.track-result__card--wide {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  background: linear-gradient(135deg, rgba(21, 45, 74, 0.04) 0%, rgba(255, 255, 255, 0.95) 50%, #ffffff 100%);
  border-color: rgba(21, 45, 74, 0.1);
  min-width: 0;
}

.track-result__label {
  display: block;
  width: 100%;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.track-result__card--wide .track-result__label {
  width: auto;
  flex: 100%;
}

.track-result__id {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  margin: 0;
  color: var(--navy);
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.track-result__value {
  margin: 0.2rem 0 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.track-status {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
}

.track-status--transit {
  background: rgba(74, 124, 255, 0.12);
  color: #2d4a9c;
}

.track-status--pending {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

.track-status--done {
  background: rgba(46, 160, 67, 0.14);
  color: #1b5e20;
}

.track-offer-notice {
  margin: 0 0 2rem;
  padding: 1.35rem 1.4rem 1.4rem;
  border-radius: 14px;
  background: linear-gradient(165deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(21, 45, 74, 0.1);
  border-left: 4px solid var(--navy);
  box-shadow: 0 2px 12px rgba(21, 45, 74, 0.04);
}

.track-offer-notice__p {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text);
}

.track-offer-notice__p:last-child {
  margin-bottom: 0;
}

.track-timeline-wrap {
  margin-top: 0.25rem;
}

.track-timeline-heading {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  margin: 0 0 1.25rem;
}

.track-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.25rem;
}

.track-step {
  position: relative;
  padding-left: 1.75rem;
  padding-bottom: 1.5rem;
}

.track-step:last-child {
  padding-bottom: 0;
}

.track-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #c5cdd6;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #c5cdd6;
  z-index: 1;
}

.track-step::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.1rem;
  bottom: -0.25rem;
  width: 2px;
  background: linear-gradient(180deg, #d8dee8, #e8ecf0);
}

.track-step:last-child::after {
  display: none;
}

.track-step--done::before {
  background: var(--navy);
  box-shadow: 0 0 0 2px var(--navy);
}

.track-step--warehouse::before {
  background: #2e7d32;
  box-shadow:
    0 0 0 2px #2e7d32,
    0 0 14px rgba(46, 125, 50, 0.4);
}

.track-step--warehouse::after {
  background: linear-gradient(180deg, #81c784, #c8e6c9);
}

.track-step--warehouse .track-step__title {
  color: #1b5e20;
}

.track-step--warehouse .track-step__date {
  color: #558b2f;
}

.track-step--warehouse .track-step__detail {
  color: #33691e;
  font-weight: 600;
}

.track-step--muted::before {
  background: #94a3b8;
  box-shadow: 0 0 0 2px #94a3b8;
}

.track-step--muted .track-step__title {
  color: #64748b;
}

.track-step--muted .track-step__date {
  color: #94a3b8;
}

.track-step--current::before {
  background: var(--red);
  box-shadow: 0 0 0 2px var(--red), 0 0 18px rgba(229, 37, 42, 0.45);
  animation: track-pulse 2s ease-in-out infinite;
}

@keyframes track-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 2px var(--red), 0 0 12px rgba(229, 37, 42, 0.35);
  }
  50% {
    box-shadow: 0 0 0 2px var(--red), 0 0 22px rgba(229, 37, 42, 0.55);
  }
}

.track-step__date {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.track-step__title {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
}

.track-step__detail {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

.track-empty {
  margin-top: 2rem;
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(229, 37, 42, 0.04) 0%, rgba(21, 45, 74, 0.03) 100%);
  border: 1px dashed rgba(21, 45, 74, 0.15);
  animation: track-fade-in 0.4s ease both;
}

.track-empty__icon {
  color: var(--muted);
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  opacity: 0.7;
}

.track-empty__title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--navy);
}

.track-empty__text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 28em;
  margin-inline: auto;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .track-result__grid {
    grid-template-columns: 1fr;
  }

  .track-result__card--wide {
    flex-direction: column;
    align-items: flex-start;
  }

  .track-result__id {
    font-size: clamp(0.8rem, 3.8vw, 1.05rem);
    letter-spacing: 0.03em;
    width: 100%;
  }

  .track-result__card--wide .track-status {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }

  .track-field-row {
    flex-direction: column;
  }

  .track-submit {
    width: 100%;
  }

  .track-panel {
    padding: 1.5rem 1.25rem 1.75rem;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .track-result,
  .track-empty {
    animation: none;
  }

  .track-step--current::before {
    animation: none;
  }

  .contacts-modal__dialog {
    transition: none;
  }

  .contacts-modal--open .contacts-modal__dialog {
    opacity: 1;
    transform: none;
  }
}

/* Оверлей «Контакты» */
body.contacts-modal-active {
  overflow: hidden;
}

.contacts-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.contacts-modal[hidden] {
  display: none;
}

.contacts-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 28, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.contacts-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 2rem 1.75rem 1.5rem;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, #f4f7fb 100%);
  border: 1px solid rgba(21, 45, 74, 0.1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(21, 45, 74, 0.06);
  color: var(--text);
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  transition:
    opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.contacts-modal--open .contacts-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.contacts-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(21, 45, 74, 0.08);
  color: var(--navy);
  cursor: pointer;
  transition: background 0.2s;
}

.contacts-modal__close:hover {
  background: rgba(21, 45, 74, 0.14);
}

.contacts-modal__title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--navy);
  margin: 0 0 0.5rem;
  padding-right: 2rem;
  letter-spacing: -0.02em;
}

.contacts-modal__lead {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.contacts-modal__block {
  margin-bottom: 1.35rem;
}

.contacts-modal__block:last-of-type {
  margin-bottom: 1rem;
}

.contacts-modal__label {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.contacts-modal__wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 14px;
  background: linear-gradient(180deg, #2fe065 0%, #25d366 40%, #1ea952 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: filter 0.2s, transform 0.15s;
}

.contacts-modal__wa:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.contacts-modal__wa-icon {
  display: flex;
  flex-shrink: 0;
}

.contacts-modal__mails {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contacts-modal__mails li {
  margin-bottom: 0.45rem;
}

.contacts-modal__mails li:last-child {
  margin-bottom: 0;
}

.contacts-modal__mail {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}

.contacts-modal__mail:hover {
  color: var(--red);
}

.contacts-modal__secondary {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.55rem;
  font: inherit;
  font-size: 0.88rem;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contacts-modal__secondary:hover {
  color: var(--text);
}
