/* ==========================================================================
   GRUZ74 — pages.css
   Стили, специфичные для отдельных разделов.
   ========================================================================== */

/* ---------- Заголовок внутренней страницы -------------------------------- */

.page-hero {
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(20px, 3vw, 34px);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
}

.page-hero h1 {
  margin-top: 16px;
  font-size: clamp(1.7rem, 3.9vw, 2.85rem);
}

.page-hero .lead {
  margin-top: 16px;
}

.page-hero__aside {
  display: grid;
  gap: 10px;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
}

.page-hero__aside span {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.page-hero__aside strong {
  font-size: 1.02rem;
  line-height: 1.4;
  font-weight: 650;
}

/* ---------- Автомобиль: схема кузова ------------------------------------- */

.vehicle-figure {
  position: relative;
  display: grid;
  gap: 18px;
}

.vehicle-figure__photo {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 90% at 50% 100%, rgba(255, 106, 19, 0.16), transparent 70%),
    linear-gradient(180deg, #15151b, #0d0d11);
  overflow: hidden;
}

.vehicle-figure__photo img {
  width: 100%;
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.6));
}

.vehicle-figure figcaption {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Схема размеров: три проекции, нарисованные CSS, без «выдуманных» фото */
.dim-scheme {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.dim-scheme__title {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dim-scheme__box {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 22px);
  padding: 26px 6px 6px;
}

.dim-scheme__item {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.dim-scheme__bar {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 106, 19, 0.25));
  position: relative;
}

.dim-scheme__bar::before,
.dim-scheme__bar::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 1px;
  height: 18px;
  background: var(--accent-line);
}

.dim-scheme__bar::before {
  left: 0;
}

.dim-scheme__bar::after {
  right: 0;
}

.dim-scheme__value {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
}

.dim-scheme__label {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* В узкой колонке «двухколоночного» блока три карточки в ряд сжимаются —
   список в столбик читается лучше. */
.split .features {
  grid-template-columns: minmax(0, 1fr);
}

/* ---------- Загрузка: схемы ---------------------------------------------- */

.load-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.load-card {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
}

.load-card__scheme {
  display: grid;
  place-items: center;
  padding: 10px 0 4px;
  color: var(--accent);
}

.load-card__scheme svg {
  width: 100%;
  height: auto;
  max-width: 320px;
}

.load-card h3 {
  font-size: 1.06rem;
}

.load-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.load-card ul {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 0;
}

.load-card li {
  position: relative;
  padding-left: 16px;
}

.load-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  opacity: 0.8;
  border-radius: 1px;
}

/* ---------- География ---------------------------------------------------- */

.geo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.geo-origin {
  position: relative;
  display: grid;
  gap: 10px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(255, 106, 19, 0.16), transparent 60%),
    var(--surface);
}

.geo-origin__flag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.geo-origin__flag::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.geo-origin h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.geo-origin p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 44ch;
}

.geo-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

.geo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 18px;
  padding-block: 15px;
  border-bottom: 1px solid var(--line-soft);
}

.geo-row__name {
  font-weight: 650;
}

.geo-row__note {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.geo-note {
  display: grid;
  gap: 8px;
  padding: clamp(18px, 2.4vw, 24px);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.geo-note strong {
  color: var(--text);
  font-weight: 650;
}

/* ---------- Юридические страницы ----------------------------------------- */

.prose {
  max-width: 74ch;
  display: grid;
  gap: 18px;
  color: var(--text-dim);
  font-size: 0.98rem;
}

.prose h2 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--text);
  margin-top: 18px;
}

.prose h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin-top: 8px;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 8px;
  padding-left: 22px;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose table {
  font-size: 0.9rem;
}

.prose th,
.prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose th {
  color: var(--text);
  font-weight: 650;
  white-space: nowrap;
}

/* ---------- Мелкие раскладки --------------------------------------------- */

.info-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.note-box {
  display: grid;
  gap: 10px;
  padding: clamp(18px, 2.4vw, 24px);
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, rgba(255, 106, 19, 0.08), transparent 75%);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.note-box strong {
  color: var(--text);
}

.cargo-photo {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #17171d, #0d0d11);
}

.cargo-photo img {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.cargo-photo figcaption {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- 404 ---------------------------------------------------------- */

.error-page {
  display: grid;
  place-items: center;
  min-height: 78vh;
  text-align: center;
  gap: 18px;
  padding-block: 120px 60px;
}

.error-page__code {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 18vw, 11rem);
  line-height: 0.85;
  font-weight: 700;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent-line);
}

/* ---------- Адаптив ------------------------------------------------------ */

@media (max-width: 980px) {
  .page-hero__grid,
  .geo-layout,
  .info-split {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 620px) {
  .dim-scheme__box {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .dim-scheme__item {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    text-align: left;
  }

  .dim-scheme__bar {
    grid-column: 1 / -1;
  }

  .dim-scheme__value {
    justify-self: start;
  }
}
