/* UNITED MOTOR FREIGHT LLC — heritage-formal
   Тёмно-зелёное поле, бордовая печать, симметрия, монограмма. */

:root {
  --bg: #f3efe6;
  --bg-alt: #e6e0d2;
  --bg-deep: #14241c;
  --ink: #1b1714;
  --ink-soft: #5e584e;
  --ink-invert: #f3efe6;
  --ink-soft-invert: #d5cfc3;
  --accent: #7a2e3a;
  --accent-soft: #f0ddd9;
  --line: #d2cbbd;
  --line-deep: #3c4a42;
  --steel: #7e868c;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tracking-display: -0.02em;
  --radius: 0px;
  --radius-lg: 0px;
  --shadow: none;
  --container: 1100px;
}

/* --- Шапка: монограмма по центру, ссылки под линейкой --- */
.site-header {
  background: var(--bg);
  backdrop-filter: none;
  border-top: 4px solid var(--bg-deep);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.seal {
  width: 48px;
  height: 48px;
  flex: none;
  color: var(--ink);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.brand__sub {
  margin-top: 0.2rem;
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav a,
.mobile-nav a,
.footer-nav a {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mobile-nav a {
  font-size: var(--step--1);
}

@media (min-width: 860px) {
  .site-header__inner {
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    min-height: 0;
    padding-block: 0.9rem 0.6rem;
  }

  .brand {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }

  .seal {
    width: 64px;
    height: 64px;
  }

  .brand__name {
    font-size: var(--step-1);
  }

  .nav {
    justify-content: center;
    width: 100%;
    gap: 1.15rem;
    border-top: 1px solid var(--line);
    padding-top: 0.65rem;
  }
}

@media (min-width: 1100px) {
  .nav { gap: 1.75rem; }
}

section {
  scroll-margin-top: 6rem;
}

@media (min-width: 860px) {
  section { scroll-margin-top: 9.5rem; }
}

/* --- Общие заголовки секций --- */
.block-head {
  text-align: center;
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 4vw, 3.4rem);
}

.block-head h2 {
  margin-top: 0.45rem;
}

.gem {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.gem::before,
.gem::after {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--accent);
}

.section--deep .eyebrow {
  color: var(--accent-soft);
}

.btn {
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --- Первый экран --- */
.hero {
  padding-top: clamp(1.75rem, 3vw, 3rem);
  text-align: center;
}

.hero h1 {
  max-width: 16em;
  margin-inline: auto;
  margin-top: 0.45rem;
}

.hero__lede {
  max-width: 40rem;
  margin-inline: auto;
  margin-top: 1.25rem;
}

.hero__phone {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1;
}

.hero__phone a {
  text-decoration: none;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.frame {
  margin-top: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--ink);
  padding: 0.5rem;
  background: var(--bg-alt);
  text-align: left;
}

.frame__inner {
  border: 1px solid var(--line);
}

.frame img {
  width: 100%;
  height: auto;
}

.frame figcaption {
  padding: 0.75rem 0.35rem 0.25rem;
  text-align: center;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  list-style: none;
  padding: 0;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts li {
  padding: 0.95rem 0.85rem;
  border-bottom: 1px solid var(--line);
}

.facts li:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.15;
}

.facts span {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

@media (min-width: 800px) {
  .facts {
    grid-template-columns: repeat(4, 1fr);
  }

  .facts li {
    border-bottom: 0;
  }

  .facts li + li {
    border-left: 1px solid var(--line);
  }
}

/* --- Книга двора: 8 категорий --- */
.book {
  display: grid;
  gap: var(--gap);
  list-style: none;
  padding: 0;
}

.book__cell {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  padding: 0.65rem;
  background: var(--bg);
}

.book__cell img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.book__roman {
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1;
  color: var(--accent);
}

.book__cell h3 {
  margin-top: 0.3rem;
}

.book__cell p:last-child {
  margin-top: 0.55rem;
  color: var(--ink-soft);
}

.book__cell--type {
  background: var(--bg-deep);
  color: var(--ink-invert);
  justify-content: space-between;
  min-height: 16rem;
  padding: 1.15rem 1.1rem 1.25rem;
}

.book__cell--type .book__roman {
  margin-top: 0;
  color: var(--accent-soft);
}

.book__cell--type h3 {
  color: var(--ink-invert);
}

.book__cell--type p:last-child {
  color: var(--ink-soft-invert);
}

@media (min-width: 700px) {
  .book { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1100px) {
  .book { grid-template-columns: repeat(4, 1fr); }
}

/* --- Дефектоскопия --- */
.steps {
  display: grid;
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line-deep);
}

.steps li {
  padding: 1.35rem 0.2rem 1.5rem;
  border-bottom: 1px solid var(--line-deep);
}

.steps__num {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1;
  color: var(--accent-soft);
}

.steps h3 {
  margin-top: 0.55rem;
}

.steps p {
  margin-top: 0.5rem;
  color: var(--ink-soft-invert);
}

.assay-lead {
  max-width: 42rem;
  margin: -1.4rem auto 2rem;
  text-align: center;
  color: var(--ink-soft-invert);
}

@media (min-width: 700px) {
  .steps { grid-template-columns: 1fr 1fr; }

  .steps li {
    padding: 1.5rem 1.25rem 1.7rem;
    border-bottom: 0;
    border-top: 1px solid var(--line-deep);
  }

  .steps li:nth-child(odd) {
    border-right: 1px solid var(--line-deep);
  }
}

@media (min-width: 1100px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    border-top: 0;
  }

  .steps li {
    border-top: 0;
    border-right: 0;
    border-left: 1px solid var(--line-deep);
  }

  .steps li:nth-child(odd) {
    border-right: 0;
  }

  .steps li:first-child {
    border-left: 0;
  }
}

/* --- Услуги --- */
.services {
  display: grid;
  border-top: 1px solid var(--line);
}

.service {
  padding: 1.6rem 0 1.75rem;
  border-bottom: 1px solid var(--line);
}

.service__kicker {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1;
  color: var(--accent);
}

.service h3 {
  margin-top: 0.35rem;
}

.service p {
  margin-top: 0.7rem;
  max-width: 42rem;
}

@media (min-width: 860px) {
  .services { grid-template-columns: 1fr 1fr; }

  .service {
    padding: 1.8rem 1.6rem 2rem 0;
  }

  .service:nth-child(odd) {
    padding-right: 1.8rem;
    border-right: 1px solid var(--line);
  }

  .service:nth-child(even) {
    padding-left: 1.8rem;
  }
}

/* --- Обмен --- */
.exchange-lead {
  max-width: 40rem;
  margin: -1.2rem auto 2rem;
  text-align: center;
}

.exchange {
  display: grid;
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}

.exchange li {
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}

.exchange__num {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1;
  color: var(--accent);
}

.exchange h3 {
  margin-top: 0.35rem;
}

.exchange p {
  margin-top: 0.5rem;
  color: var(--ink-soft);
}

.exchange-action {
  display: flex;
  justify-content: center;
  margin-top: 1.6rem;
}

@media (min-width: 800px) {
  .exchange { grid-template-columns: repeat(3, 1fr); }

  .exchange li {
    padding: 0 1.25rem 0.2rem;
    border-bottom: 0;
  }

  .exchange li + li {
    border-left: 1px solid var(--line);
  }
}

/* --- О компании --- */
.about-grid {
  display: grid;
  gap: var(--gap);
}

.about-grid p + p {
  margin-top: 1em;
}

.about-bar {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.35rem 1.5rem;
  text-align: center;
}

.about-bar a {
  font-family: var(--font-display);
  font-size: var(--step-2);
  text-decoration: none;
}

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3.5rem);
  }

  .about-bar {
    grid-template-columns: 1fr auto 1fr;
    align-items: baseline;
    text-align: left;
  }

  .about-bar span:last-child {
    text-align: right;
  }
}

/* --- Доставка --- */
.lanes {
  display: grid;
  gap: var(--gap);
}

.lane {
  padding: 1.25rem 1.2rem 1.4rem;
  border: 1px solid var(--line);
  background: var(--bg);
}

.lane h3 {
  margin-top: 0.3rem;
}

.lane p {
  margin-top: 0.65rem;
  color: var(--ink-soft);
}

@media (min-width: 700px) {
  .lanes { grid-template-columns: repeat(3, 1fr); }
}

/* --- Стол и форма --- */
.desk {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.desk address {
  font-style: normal;
  margin-top: 0.7rem;
}

.desk address p + p,
.hours p + p {
  margin-top: 0.35rem;
}

.hours {
  margin-top: 1.6rem;
}

.hours h3 {
  margin-bottom: 0.6rem;
}

.sheet {
  border: 1px solid var(--ink);
  padding: 0.5rem;
  background: var(--bg-alt);
}

.sheet__inner {
  border: 1px solid var(--line);
  padding: 1.2rem 1.1rem 1.35rem;
  background: var(--bg);
}

.sheet h3 {
  margin-bottom: 0.9rem;
}

.form-row {
  display: grid;
  gap: 0.85rem;
}

.form-stack {
  display: grid;
  gap: 0.85rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
}

.field select {
  padding: 0.85em 1em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg);
}

.form-actions {
  margin-top: 0.25rem;
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 860px) {
  .desk { grid-template-columns: 0.85fr 1.15fr; }
}

/* --- Подвал --- */
.site-footer {
  background: var(--bg-deep);
  color: var(--ink-invert);
  border-top: 0;
}

.site-footer .eyebrow {
  color: var(--accent-soft);
}

.footer-grid {
  display: grid;
  gap: var(--gap);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.05;
}

.footer-grid p {
  margin-top: 0.65rem;
  color: var(--ink-soft-invert);
}

.footer-address {
  font-style: normal;
  margin-top: 0.7rem;
}

.footer-address p + p {
  margin-top: 0.3rem;
}

.footer-address a {
  color: var(--ink-invert);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.2rem;
  margin-top: 2rem;
}

.footer-nav a {
  color: var(--ink-invert);
  text-decoration: none;
  font-size: var(--step--1);
}

.footer-nav a:hover {
  text-decoration: underline;
}

.site-footer .site-footer__bottom {
  border-top-color: var(--line-deep);
  color: var(--ink-soft-invert);
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 0.9fr;
  }
}
