:root {
  --ink: #1c2733;
  --muted: #687482;
  --line: #e2e6ea;
  --paper: #f4f5f6;
  --white: #ffffff;
  --orange: #df0000;
  --orange-dark: #b80000;
  --green: #28a356;
  --dark: #151a20;
  --dark-2: #242b32;
  --shadow: 0 18px 48px rgba(27, 37, 48, 0.14);
  --radius: 8px;
  --container: min(1180px, calc(100% - 40px));
  --header-height: 124px;
  --marquee-height: 54px;
}

* {
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + var(--marquee-height) + 18px);
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

input,
select,
textarea {
  min-width: 0;
}

button {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 790px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6.2vw, 78px);
  line-height: 0.96;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hero-title-line {
  display: block;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.04;
  overflow-wrap: anywhere;
}

h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  color: var(--white);
  background: rgba(21, 26, 32, 0.94);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.contact-strip,
.main-nav {
  width: var(--container);
  margin: 0 auto;
}

.contact-strip {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  overflow: hidden;
  color: transparent;
  background: url("assets/logo-m78.svg") center / contain no-repeat;
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 10px 24px rgba(223, 0, 0, 0.26);
  font-size: 0;
  font-weight: 900;
  line-height: 1;
}

.brand strong,
.brand small {
  display: block;
  min-width: 0;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  font-size: 13px;
}

.online-block {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.online-block a,
.messenger-line a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 11px;
  color: var(--white);
  background: var(--green);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 800;
}

.telegram-link {
  background: #229ed9 !important;
}

.telegram-link::before {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'%3E%3Ccircle cx='120' cy='120' r='120' fill='%23fff'/%3E%3Cpath fill='%23229ed9' d='M179.7 72.6 158 174.8c-1.6 7.2-5.9 9-12 5.6l-33.2-24.5-16 15.4c-1.8 1.8-3.3 3.3-6.7 3.3l2.4-33.8 61.5-55.6c2.7-2.4-.6-3.7-4.1-1.3l-76 47.9-32.7-10.2c-7.1-2.2-7.2-7.1 1.5-10.5l127.8-49.3c5.9-2.2 11.1 1.4 9.2 10.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.worktime {
  color: rgba(255, 255, 255, 0.78);
}

.phone-link {
  font-size: 21px;
  font-weight: 900;
  white-space: nowrap;
}

.callback-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: #111820;
  background: var(--orange);
  border-radius: var(--radius);
  font-weight: 900;
  white-space: nowrap;
}

.main-nav {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: #121820;
  background: var(--orange);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 9px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  box-shadow: 0 7px 0 var(--white), 0 14px 0 var(--white);
}

.menu-toggle span {
  display: none;
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 760px;
  padding-top: 124px;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  z-index: -3;
  object-fit: cover;
  object-position: 62% center;
  animation: heroZoom 14s ease-in-out infinite alternate;
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 11, 14, 0.92), rgba(8, 11, 14, 0.72) 42%, rgba(8, 11, 14, 0.14) 100%),
    linear-gradient(180deg, rgba(8, 11, 14, 0.1), rgba(8, 11, 14, 0.46));
}

.hero-content {
  width: var(--container);
  max-width: 100%;
  margin: 0 auto;
  padding: 96px 0 112px;
}

.letter-animate .word {
  display: inline-block;
  white-space: nowrap;
}

.letter-animate .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(34px) rotateX(48deg);
  transform-origin: 50% 100%;
  animation: letterRise 0.72s cubic-bezier(0.2, 0.75, 0.18, 1) forwards;
  animation-delay: calc(var(--char-index, 0) * 0.018s);
}

.hero-kicker,
.section-label,
.section-title span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 680px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}

.hero-list li {
  position: relative;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px 10px 34px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
  overflow-wrap: anywhere;
  opacity: 0;
  transform: translateY(18px);
  animation: plateIn 0.7s ease forwards;
}

.hero-list li:nth-child(1) {
  animation-delay: 0.5s;
}

.hero-list li:nth-child(2) {
  animation-delay: 0.62s;
}

.hero-list li:nth-child(3) {
  animation-delay: 0.74s;
}

.hero-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 9px;
  height: 9px;
  background: var(--orange);
  border-radius: 50%;
}

.hero-list li::before {
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 100%;
  margin-bottom: 22px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -42px;
  width: 34px;
  height: 340%;
  background: rgba(255, 255, 255, 0.48);
  filter: blur(2px);
  transform: rotate(24deg) translateX(-140px);
  transition: transform 0.55s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover::after {
  transform: rotate(24deg) translateX(380px);
}

.btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.btn-primary {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 14px 28px rgba(223, 0, 0, 0.26);
}

.btn-primary:hover {
  background: #f01818;
}

.btn-outline {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
}

.btn-dark {
  color: var(--white);
  background: var(--dark);
}

.btn-call {
  color: var(--dark);
  background: var(--green);
  box-shadow: 0 14px 28px rgba(40, 163, 86, 0.22);
}

.btn-call:hover {
  background: #31b765;
}

.full {
  width: 100%;
}

.messenger-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.messenger-line a:last-child {
  background: #2f6ec8;
}

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

.marquee {
  position: fixed;
  z-index: 39;
  top: 124px;
  top: var(--header-height);
  left: 0;
  right: 0;
  height: 54px;
  height: var(--marquee-height);
  overflow: hidden;
  color: #151a20;
  background: var(--orange);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  gap: 36px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  animation: marqueeMove 28s linear infinite;
}

.marquee-track span {
  position: relative;
  padding-left: 26px;
}

.marquee-track span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  background: #151a20;
  border-radius: 50%;
  transform: translateY(-50%);
}

.section-band,
.cargo-section,
.advantages-section,
.lead-section,
.contacts-section {
  width: var(--container);
  margin: 0 auto;
}

.section-band,
.cargo-section,
.advantages-section,
.lead-section {
  padding: 84px 0 0;
}

.avtopark-hero {
  width: var(--container);
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  margin: 0 auto;
  padding: 210px 0 74px;
  color: var(--white);
}

.avtopark-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: 0;
  left: 0;
  right: 0;
  height: 560px;
  background:
    linear-gradient(90deg, rgba(11, 15, 20, 0.9), rgba(11, 15, 20, 0.62), rgba(11, 15, 20, 0.14)),
    url("avto_park_img/photo_10_2026-06-16_18-33-59.jpg") center / cover;
}

.avtopark-hero p {
  max-width: 620px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
}

.section-title {
  max-width: 760px;
  margin-bottom: 34px;
}

.fleet-cards {
  display: grid;
  gap: 24px;
}

.home-gallery-section > .section-title,
.home-gallery-section > .fleet-cards {
  display: none;
}

.home-gallery-section .gallery-head {
  margin-top: 0;
}

.fleet-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  padding: 18px;
  background: var(--white);
  border: 1px solid #e5e5e5;
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.fleet-card:hover {
  transform: translateY(-4px);
  border-color: rgba(223, 0, 0, 0.34);
  box-shadow: 0 24px 64px rgba(27, 37, 48, 0.18);
}

.fleet-media {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.fleet-media > img {
  width: 100%;
  aspect-ratio: 16 / 10.4;
  object-fit: cover;
  border-bottom: 3px solid var(--orange);
  border-radius: 4px;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.thumb-row img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid #ececec;
  border-radius: 4px;
}

.fleet-info {
  align-self: center;
  padding: 8px 6px;
}

.fleet-info h3 {
  text-transform: uppercase;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.price-grid span {
  padding: 12px;
  background: #f7f8f9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
}

.price-grid strong {
  display: block;
  margin-top: 3px;
  color: var(--orange-dark);
  font-size: 22px;
}

dl {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

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

dd {
  margin: 0;
  font-weight: 800;
}

.details-link,
.small-link {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 0;
  color: var(--orange-dark);
  background: transparent;
  border: 0;
  font-weight: 900;
}

.fleet-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.fleet-actions .btn {
  min-height: 48px;
  padding-inline: 16px;
  text-align: center;
}

.fleet-order-link {
  width: 100%;
}

.gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 54px 0 20px;
}

.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.gallery-control {
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--dark);
  border: 0;
  border-radius: var(--radius);
  font-size: 28px;
  line-height: 1;
  transition: transform 0.18s ease, background 0.18s ease;
}

.gallery-control:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery-track {
  display: flex;
  overflow-x: auto;
  padding: 6px 2px 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.gallery-track .gallery-item {
  flex: 0 0 calc((100% - 48px) / 4);
  scroll-snap-align: start;
}

.gallery-grid-large {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-item {
  overflow: hidden;
  padding: 0;
  background: var(--white);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.cargo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cargo-item {
  min-height: 110px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(21, 26, 32, 0.94), rgba(21, 26, 32, 0.68)),
    url("avto_park_img/photo_20_2026-06-16_18-33-59.jpg") center / cover;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 900;
}

.prices-section,
.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 46px;
  align-items: center;
}

.calculator-copy p,
.about-copy p,
.lead-copy p,
.contacts-card p,
.faq-list p,
.advantage-card p,
.form-note {
  color: var(--muted);
}

.check-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 26px;
}

.calculator,
.lead-form,
.contacts-card {
  padding: 26px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.calculator {
  border-top: 6px solid var(--green);
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: #3c4650;
  font-size: 13px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  color: var(--ink);
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(223, 0, 0, 0.16);
  border-color: var(--orange);
}

textarea {
  resize: vertical;
}

input[type="range"] {
  padding: 0;
  accent-color: var(--green);
}

.total-box {
  display: grid;
  gap: 4px;
  margin: 20px 0;
  padding: 18px;
  background: #eef7f1;
  border-radius: var(--radius);
}

.total-box span,
.total-box small {
  color: var(--muted);
}

.total-box strong {
  font-size: 34px;
  line-height: 1;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.advantage-card {
  min-height: 280px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.advantage-card b {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--orange);
  font-size: 36px;
  line-height: 1;
}

.stats-grid {
  display: grid;
  gap: 14px;
}

.stats-grid span {
  display: block;
  padding: 20px;
  color: var(--muted);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stats-grid strong {
  display: block;
  color: var(--orange-dark);
  font-size: 42px;
  line-height: 1;
}

.seo-section {
  padding-top: 84px;
}

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

.seo-card {
  min-height: 180px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.seo-card p {
  color: var(--muted);
}

.lead-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 46px;
  align-items: center;
}

.lead-copy {
  padding: 46px;
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(21, 26, 32, 0.94), rgba(21, 26, 32, 0.68)),
    url("avto_park_img/photo_18_2026-06-16_18-33-59.jpg") center / cover;
  border-radius: var(--radius);
}

.lead-copy p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.76);
}

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

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note,
.form-status {
  margin: 12px 0 0;
  font-size: 12px;
}

.form-status:not(:empty) {
  padding: 12px;
  color: #14522f;
  background: rgba(40, 163, 86, 0.12);
  border-radius: var(--radius);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
}

.contacts-section {
  padding: 84px 0;
}

.contacts-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 32px;
  align-items: center;
  background:
    linear-gradient(90deg, var(--white), rgba(255, 255, 255, 0.92)),
    url("avto_park_img/photo_19_2026-06-16_18-33-59.jpg") right center / auto 100% no-repeat;
}

.contacts-card h2,
.contacts-card p {
  grid-column: 1;
  margin-bottom: 0;
}

.contact-phone {
  grid-column: 1;
  color: var(--orange-dark);
  font-size: 34px;
  font-weight: 900;
}

.contact-email {
  grid-column: 1;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contacts-actions {
  grid-column: 2;
  grid-row: 1 / span 4;
  display: grid;
  gap: 10px;
  min-width: 220px;
}

.contacts-actions .btn {
  width: 100%;
}

.qr-block {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.qr-block img {
  width: 112px;
  height: 112px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.qr-block strong,
.qr-block a {
  display: block;
}

.qr-block a {
  color: var(--orange-dark);
  font-weight: 900;
}

.page-avtopark {
  background: #f3f3f3;
}

.park-page {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: calc(var(--header-height) + var(--marquee-height) + 40px) 0 82px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #5e6670;
  font-size: 12px;
  font-weight: 700;
}

.breadcrumbs a {
  color: var(--ink);
}

.breadcrumbs span::before {
  content: ">";
  margin-right: 8px;
  color: var(--orange);
}

.park-title-block {
  margin-bottom: 28px;
}

.park-title-block h1 {
  position: relative;
  max-width: none;
  margin: 0 0 14px;
  padding-left: 46px;
  color: #02070c;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

.park-title-block h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 30px;
  height: 12px;
  background: var(--orange);
  transform: skewX(-32deg);
}

.park-title-block p {
  max-width: 760px;
  color: var(--muted);
}

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

.park-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: 18px 18px 20px;
  background: var(--white);
  border: 1px solid #e5e5e5;
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.park-card:hover {
  transform: translateY(-5px);
  border-color: rgba(223, 0, 0, 0.28);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.12);
}

.park-card-media {
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
  border-radius: 4px;
}

.park-card-media img {
  width: 100%;
  aspect-ratio: 16 / 10.4;
  object-fit: cover;
  transition: transform 0.42s ease;
}

.park-card:hover .park-card-media img {
  transform: scale(1.045);
}

.park-card-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--orange);
}

.park-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--white);
  background: var(--orange);
  border: 0;
  border-radius: 50%;
  font-size: 19px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.park-arrow:hover {
  background: #f01818;
  transform: translateY(-50%) scale(1.08);
}

.park-arrow.prev {
  left: 10px;
}

.park-arrow.next {
  right: 10px;
}

.park-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  gap: 7px;
  margin-bottom: 13px;
}

.park-thumb {
  display: block;
  min-width: 0;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #eef1f4;
  border: 2px solid transparent;
  border-radius: 4px;
}

.park-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.park-thumb:hover img,
.park-thumb.is-active img {
  transform: scale(1.05);
}

.park-thumb.is-active {
  border-color: var(--orange);
}

.park-card h2 {
  min-height: 36px;
  margin-bottom: 10px;
  color: #03070c;
  font-size: 17px;
  line-height: 1.08;
  text-transform: uppercase;
}

.park-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.park-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1b1f24;
}

.park-price-row span {
  min-width: 0;
}

.park-price-row span {
  display: block;
  color: #66707a;
  font-size: 12px;
  line-height: 1.1;
}

.park-price-row strong {
  display: block;
  margin-top: 3px;
  color: #03070c;
  font-size: 18px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.park-specs {
  display: grid;
  gap: 5px;
  margin: 0 0 16px;
  padding: 0;
  color: #5f6872;
  font-size: 13px;
  list-style: none;
}

.park-specs li {
  position: relative;
  padding-left: 19px;
}

.park-specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 10px;
  height: 10px;
  background: var(--orange);
  box-shadow: inset 0 0 0 2px var(--white);
}

.park-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  min-height: 42px;
  padding: 0 16px 0 34px;
  overflow: hidden;
  color: var(--white);
  background: var(--orange);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.park-btn::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 0;
  width: 42px;
  height: 100%;
  background: var(--white);
  transform: skewX(-38deg);
}

.park-btn::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -42px;
  width: 34px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: skewX(-22deg);
  animation: buttonGlint 3.4s ease-in-out infinite;
}

.park-lead {
  margin-top: 66px;
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px) auto;
  align-items: start;
  gap: 24px;
  padding: 30px clamp(20px, 5vw, 70px);
  color: rgba(255, 255, 255, 0.72);
  background: #101419;
}

.footer strong,
.footer span {
  display: block;
}

.footer strong,
.footer a {
  color: var(--white);
}

.footer-requisites {
  display: grid;
  gap: 5px;
  padding-left: 22px;
  border-left: 3px solid var(--orange);
  font-size: 13px;
}

.footer-requisites a {
  width: max-content;
  margin-top: 5px;
  color: var(--orange);
  font-weight: 900;
}

.requisites-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 24px;
  align-items: start;
}

.requisites-card {
  display: grid;
  gap: 14px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.requisites-row {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

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

.requisites-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.requisites-row strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.3;
}

.lightbox,
.modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(10, 13, 17, 0.88);
}

.lightbox[hidden],
.modal[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  font-size: 30px;
  line-height: 1;
}

.modal-panel {
  position: relative;
  width: min(520px, 100%);
  padding: 30px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

.modal-panel p {
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: #f1f3f5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 26px;
  line-height: 1;
}

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

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

.js .hero-content.reveal,
.js .avtopark-hero .reveal,
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .js .reveal {
    transition-delay: var(--reveal-delay, 0ms);
  }

  .js .reveal.reveal-left {
    transform: translateX(-34px);
  }

  .js .reveal.reveal-right {
    transform: translateX(34px);
  }

  .js .hero-content.reveal,
  .js .reveal.is-visible {
    transform: translateX(0);
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.05);
  }
}

@keyframes letterRise {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

@keyframes plateIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes marqueeMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes buttonGlint {
  0%,
  46% {
    transform: translateX(0) skewX(-22deg);
  }

  100% {
    transform: translateX(360px) skewX(-22deg);
  }
}

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

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

  .letter-animate .char,
  .hero-list li {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1120px) {
  .header-contacts {
    gap: 14px;
  }

  .online-block,
  .worktime {
    display: none;
  }

  .advantages-grid,
  .gallery-grid,
  .cargo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .gallery-track .gallery-item {
    flex-basis: calc((100% - 16px) / 2);
  }
}

@media (max-width: 900px) {
  :root {
    --container: min(680px, calc(100% - 24px));
    --header-height: 68px;
    --marquee-height: 36px;
  }

  .contact-strip,
  .main-nav {
    width: var(--container);
  }

  .contact-strip {
    min-height: 68px;
    gap: 10px;
  }

  .header-contacts {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    margin-left: 0;
  }

  .header-contacts .worktime,
  .header-contacts .callback-link,
  .online-block span {
    display: none;
  }

  .online-block {
    display: flex;
    gap: 0;
  }

  .online-block a,
  .phone-link {
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 10px;
    font-size: 0;
  }

  .phone-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--green);
    box-shadow: 0 10px 22px rgba(40, 163, 86, 0.22);
  }

  .phone-link::before {
    content: "";
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.8 19.8 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.11 4.18 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.72c.13.96.35 1.9.66 2.8a2 2 0 0 1-.45 2.11L8.09 9.85a16 16 0 0 0 6.06 6.06l1.22-1.22a2 2 0 0 1 2.11-.45c.9.31 1.84.53 2.8.66A2 2 0 0 1 22 16.92Z'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .brand {
    flex: 1 1 auto;
    overflow: hidden;
  }

  .brand strong {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-toggle {
    position: static;
    z-index: 70;
    display: flex;
    flex: 0 0 46px;
    flex-direction: column;
    justify-content: center;
    margin-left: auto;
    background: rgba(255, 255, 255, 0.08);
  }

  .main-nav {
    position: fixed;
    top: 68px;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100%;
    min-height: 0;
    display: grid;
    gap: 0;
    padding: 8px 14px 18px;
    background: rgba(21, 26, 32, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }

  .menu-open .main-nav {
    transform: translateY(0);
  }

  .main-nav a {
    min-height: 46px;
    border-radius: var(--radius);
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--marquee-height));
  }

  .marquee {
    display: block;
    height: var(--marquee-height);
  }

  .marquee-track {
    gap: 24px;
    font-size: 11px;
    letter-spacing: 0;
    animation-duration: 22s;
  }

  .marquee-track span {
    padding-left: 18px;
  }

  .marquee-track span::before {
    width: 7px;
    height: 7px;
  }

  .park-page {
    width: var(--container);
    max-width: 100%;
    padding-top: calc(var(--header-height) + var(--marquee-height) + 32px);
  }

  .avtopark-hero {
    min-height: 460px;
    padding: 150px 0 62px;
  }

  .avtopark-hero::before {
    height: 500px;
    background:
      linear-gradient(180deg, rgba(11, 15, 20, 0.88), rgba(11, 15, 20, 0.62)),
      url("avto_park_img/photo_10_2026-06-16_18-33-59.jpg") 35% center / cover;
  }

  .hero-bg {
    object-position: 45% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(8, 11, 14, 0.88), rgba(8, 11, 14, 0.62)),
      linear-gradient(90deg, rgba(8, 11, 14, 0.76), rgba(8, 11, 14, 0.2));
  }

  .hero-content {
    width: var(--container);
    padding: 56px 0 70px;
  }

  .hero-title {
    font-size: clamp(27px, 7vw, 44px);
    line-height: 1.05;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero-list {
    max-width: 100%;
  }

  .fleet-card,
  .prices-section,
  .about-section,
  .seo-grid,
  .lead-section,
  .contacts-card {
    grid-template-columns: 1fr;
  }

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

  .fleet-info {
    padding: 2px;
  }

  .contacts-card {
    background: var(--white);
  }

  .park-page .contacts-section,
  .park-page .lead-section,
  .park-page .prices-section {
    width: 100%;
  }

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

  .footer-requisites {
    padding-left: 0;
    padding-top: 16px;
    border-left: 0;
    border-top: 3px solid var(--orange);
  }

  .contacts-actions,
  .contacts-card h2,
  .contacts-card p,
  .contact-phone,
  .contact-email {
    grid-column: 1;
    grid-row: auto;
  }

  .contacts-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --container: calc(100% - 22px);
    --marquee-height: 34px;
  }

  body {
    min-width: 0;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(22px, 7.4vw, 30px);
    line-height: 1.08;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(22px, 6.6vw, 27px);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(23px, 6.8vw, 28px);
  }

  h3 {
    font-size: clamp(19px, 5.8vw, 22px);
  }

  .brand-logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    display: none;
  }

  .marquee {
    display: block;
  }

  .hero {
    min-height: 0;
  }

  .hero-content {
    width: var(--container);
    padding: 32px 0 42px;
  }

  .hero-kicker {
    font-size: clamp(11px, 3.6vw, 13px);
  }

  .hero-actions,
  .messenger-line,
  .form-row,
  .fleet-actions,
  .contacts-actions,
  .price-grid,
  .gallery-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    min-height: 50px;
    padding-inline: 14px;
    font-size: clamp(15px, 4.8vw, 18px);
    white-space: normal;
  }

  .hero-list {
    gap: 8px;
    margin-bottom: 24px;
    font-size: clamp(14px, 4.4vw, 17px);
  }

  .letter-animate .word {
    display: inline-block;
    white-space: nowrap;
  }

  .hero-list li {
    width: 100%;
    min-height: 0;
    align-items: flex-start;
    padding: 10px 12px 10px 32px;
    line-height: 1.25;
  }

  .hero-list li::before {
    top: 20px;
    transform: none;
  }

  .gallery-controls {
    justify-content: start;
  }

  .gallery-track .gallery-item {
    flex-basis: 86%;
  }

  .section-band,
  .cargo-section,
  .advantages-section,
  .seo-section,
  .lead-section,
  .contacts-section {
    width: var(--container);
    max-width: 100%;
    padding-top: 62px;
  }

  .fleet-card {
    padding: 12px;
    gap: 14px;
  }

  .fleet-info h3,
  .park-card h2 {
    min-height: 0;
  }

  .fleet-actions .btn {
    width: 100%;
  }

  .thumb-row {
    gap: 6px;
  }

  .gallery-grid,
  .gallery-grid-large,
  .cargo-grid,
  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .cargo-item {
    min-height: 88px;
  }

  .lead-copy {
    padding: 20px;
  }

  .calculator,
  .lead-form,
  .contacts-card,
  .requisites-card {
    padding: 20px;
  }

  .calculator,
  .lead-form,
  .contacts-card,
  .requisites-card,
  .park-card,
  .seo-card,
  .advantage-card {
    width: 100%;
    max-width: 100%;
  }

  .contact-phone {
    font-size: clamp(22px, 7vw, 29px);
    overflow-wrap: anywhere;
  }

  .contact-email {
    font-size: 16px;
  }

  .qr-block {
    align-items: flex-start;
  }

  .park-page {
    width: var(--container);
    max-width: 100%;
    padding-top: calc(var(--header-height) + var(--marquee-height) + 24px);
    padding-bottom: 58px;
  }

  .park-price-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .park-btn {
    width: 100%;
  }

  .park-thumbs {
    gap: 6px;
  }

  .park-title-block h1 {
    padding-left: 0;
    font-size: clamp(30px, 10vw, 38px);
  }

  .park-title-block p {
    max-width: 100%;
  }

  .park-title-block h1::before {
    display: none;
  }

  .footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 24px calc((100% - var(--container)) / 2);
    overflow-wrap: normal;
    word-break: normal;
  }

  .footer > * {
    min-width: 0;
    max-width: 100%;
  }

  .footer-requisites a {
    width: auto;
  }
}

@media (max-width: 390px) {
  :root {
    --container: calc(100% - 20px);
    --header-height: 64px;
    --marquee-height: 32px;
  }

  h1 {
    max-width: 100%;
  }

  .hero-title {
    line-height: 1.1;
  }

  h2 {
    font-size: 24px;
  }

  .contact-strip {
    min-height: 64px;
  }

  .main-nav {
    top: 64px;
    top: var(--header-height);
  }

  .park-page {
    width: var(--container);
    max-width: 100%;
  }

  .hero {
    padding-top: calc(var(--header-height) + var(--marquee-height));
  }

  .total-box strong {
    font-size: clamp(24px, 8vw, 28px);
  }

  .contact-phone {
    font-size: clamp(21px, 7vw, 24px);
  }

  .qr-block {
    display: grid;
    gap: 12px;
  }

  .qr-block img {
    width: 96px;
    height: 96px;
  }
}

@media (max-width: 340px) {
  :root {
    --container: calc(100% - 18px);
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand {
    gap: 8px;
  }

  .header-contacts {
    gap: 6px;
  }

  .online-block a,
  .phone-link {
    width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .menu-toggle {
    flex-basis: 44px;
    width: 44px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-list {
    font-size: 14px;
  }

  .calculator,
  .lead-form,
  .contacts-card,
  .requisites-card,
  .park-card {
    padding: 16px;
  }
}
