/* TransitCarMash.ru — статическая тема */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bg-section: #e8ecef;
  --bg-card: #ffffff;
  --text: #2b363e;
  --text-muted: #4e5961;
  --accent: #6d8699;
  --overlay-menu: rgba(109, 134, 153, 0.7);
  --hero-text: #ffffff;
  --container: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-section);
  overflow-x: hidden;
}

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

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

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-section);
  border-bottom: 1px solid rgba(43, 54, 62, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.site-logo {
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}

.site-logo:hover {
  color: var(--text);
  opacity: 0.85;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 28px;
}

.nav-desktop a {
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav-desktop a:hover {
  color: var(--accent);
}

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

.btn-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
}

.btn-menu:hover {
  opacity: 0.9;
}

.btn-menu .icon-svg {
  width: 28px;
  height: 28px;
}

/* Header on dark hero */
.site-header--hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.site-header--hero .site-logo,
.site-header--hero .nav-desktop a {
  color: var(--hero-text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.site-header--hero .nav-desktop a:hover {
  color: #fff;
  opacity: 0.9;
}

.site-header--hero .btn-menu .menu-lines path {
  stroke: #fff;
}

/* Mobile menu lines for light header - use dark */
.site-header:not(.site-header--hero) .btn-menu .menu-lines path {
  stroke: var(--text);
}

@media (min-width: 960px) {
  .nav-desktop {
    display: flex;
  }

  .btn-menu {
    display: none;
  }
}

/* ——— Mobile drawer ——— */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: var(--overlay-menu);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 200;
}

.menu-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(300px, 92vw);
  height: 100vh;
  background: var(--bg-section);
  z-index: 210;
  padding: 24px 20px;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
}

.menu-drawer.is-open {
  transform: translateX(0);
}

.menu-drawer__logo {
  display: block;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 32px;
}

.menu-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-drawer__nav a {
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid rgba(43, 54, 62, 0.1);
}

.menu-drawer__nav a:hover {
  color: var(--accent);
}

body.menu-open {
  overflow: hidden;
}

/* ——— Links with arrow ——— */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin-top: 1rem;
}

.link-arrow .arrow-img {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.link-arrow:hover {
  color: #1f272e;
}

.link-arrow:hover .arrow-img {
  transform: translateX(4px);
}

.link-arrow--light {
  color: var(--hero-text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.link-arrow--light:hover {
  color: #fff;
  opacity: 0.95;
}

.link-muted {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--text-muted);
  font-size: 15px;
}

.link-muted:hover {
  color: var(--text);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 70vh;
  max-height: 900px;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 80px;
  background-color: #2b363e;
  background-size: cover;
  background-position: center;
  color: var(--hero-text);
}

.hero--show-full {
  min-height: clamp(560px, 56.3vw, 980px);
  max-height: none;
  aspect-ratio: 1672 / 941;
  background-size: 100% auto;
  background-position: center -110px;
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(43, 54, 62, 0.85) 0%,
    rgba(43, 54, 62, 0.35) 45%,
    rgba(43, 54, 62, 0.2) 100%
  );
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__top-right {
  position: absolute;
  top: 96px;
  right: max(20px, calc((100vw - var(--container)) / 2 + 20px));
  z-index: 2;
}

.hero__top-right .btn-footer-max {
  margin-top: 0;
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(25px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero__lead {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__bottom-max {
  width: 100%;
  margin-top: 4px;
  display: flex;
  justify-content: flex-start;
}

.hero-mobile-actions {
  display: none;
}

.hero--page {
  min-height: 48vh;
  padding-top: 140px;
  align-items: center;
}

.hero--page .hero__title {
  font-size: clamp(25px, 4.5vw, 56px);
}

.hero--page .hero__title.hero__title--about-xl {
  font-size: clamp(38px, 6.75vw, 84px);
  line-height: 1.02;
}

@media (min-width: 960px) {
  .hero--about-page {
    min-height: 84vh;
    align-items: flex-end;
    padding-top: 280px;
    padding-bottom: 24px;
    background-size: 120% auto;
    background-position: center 32%;
  }
}

.hero-strip {
  min-height: 280px;
  background-color: #2b363e;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ——— Sections ——— */
.section {
  padding: 72px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 96px 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 120px 0;
  }
}

.section--alt {
  background: var(--bg-card);
}

.section__title {
  margin: 0 0 2.5rem;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

.page-intro {
  padding: 48px 0 32px;
  background: var(--bg-section);
}

.page-intro__title {
  margin: 0 0 1rem;
  font-size: clamp(25px, 4vw, 48px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text);
}

.page-intro__lead {
  max-width: 900px;
  font-size: 16px;
  color: var(--text-muted);
}

/* ——— Cards grid ——— */
.cards-3 {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.card {
  background: var(--bg-card);
  padding: 32px 36px;
  box-shadow: 0 4px 24px rgba(43, 54, 62, 0.06);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card__title {
  margin: 0 0 1rem;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

/* ——— Why grid ——— */
.why-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 640px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-item__title {
  margin: 0 0 0.5rem;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

/* ——— Team teaser ——— */
.team-teaser {
  text-align: left;
}

.team-teaser .section__title {
  margin-bottom: 1rem;
}

/* ——— FAQ ——— */
.faq-list {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border-radius: 2px;
  box-shadow: 0 2px 12px rgba(43, 54, 62, 0.06);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 40px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 500;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item__body {
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ——— CTA band ——— */
.cta-band {
  background: var(--accent);
  color: #fff;
  padding: 56px 0;
}

.cta-band__title {
  margin: 0 0 0.75rem;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cta-band__lead {
  margin-bottom: 1.75rem;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 2px;
  border: 2px solid #fff;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn--outline-light {
  background: transparent;
  color: #fff;
}

.btn--outline-light:hover {
  background: #fff;
  color: var(--accent);
}

.btn--solid-light {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}

.btn--solid-light:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn--max {
  padding: 18px 36px;
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: none;
  min-width: 160px;
}

.btn-footer-max {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 14px 32px;
  font-family: inherit;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: none;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 2px;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.btn-footer-max:hover {
  opacity: 0.92;
  color: #fff;
}

.btn-footer-max--catalog {
  padding: 16px 34px;
  font-size: clamp(18px, 2.1vw, 24px);
  letter-spacing: 0.04em;
  font-weight: 700;
  min-width: 300px;
}

.btn-inline-max {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 10px 22px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: none;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 2px;
  transition: opacity 0.15s ease;
}

.btn-inline-max:hover {
  opacity: 0.92;
  color: #fff;
}

.btn-inline-max--light {
  color: var(--accent);
  background: #fff;
  border-color: #fff;
}

.btn-inline-max--light:hover {
  color: var(--accent);
}

.card .btn-inline-max,
.why-item .btn-inline-max {
  align-self: flex-start;
}

.section-max-action {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

/* ——— Process steps (podbor) ——— */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.process-row {
  display: grid;
  gap: 24px;
  align-items: center;
}

@media (min-width: 900px) {
  .process-row {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .process-row:nth-child(even) .process-row__media {
    order: -1;
  }
}

.process-row__title {
  margin: 0 0 0.75rem;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.process-row__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 2px;
  background: #dde3e7;
}

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

@media (max-width: 899px) {
  .process-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }

  .process-row .process-row__media {
    order: 1;
  }

  .process-row > :first-child {
    order: 2;
  }
}

/* ——— About team blocks: фото слева, текст справа ——— */
.person-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(43, 54, 62, 0.1);
}

.person-block:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

@media (min-width: 700px) {
  .person-block {
    grid-template-columns: minmax(200px, 320px) minmax(0, 1fr);
    gap: 32px 40px;
    margin-bottom: 64px;
    padding-bottom: 56px;
  }
}

.person-block__photo {
  border-radius: 2px;
  overflow: hidden;
  background: #dde3e7;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
}

@media (min-width: 700px) {
  .person-block__photo {
    margin: 0;
    max-width: none;
  }
}

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

/* Целиком в кадре, без обрезки (Ярослав, Светлана) */
.person-block__photo--contain {
  aspect-ratio: auto;
  align-self: start;
}

.person-block__photo--contain img {
  height: auto;
  max-height: min(72vh, 560px);
  object-fit: contain;
  object-position: center top;
}

.person-block__text {
  min-width: 0;
}

.person-block__name {
  margin: 0 0 1rem;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.person-block p {
  font-size: 15px;
  line-height: 1.6;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(43, 54, 62, 0.12);
}

/* Крупнее ссылки со стрелкой на странице «О компании» (×1.5) */
.link-arrow--about-lg {
  font-size: 22.5px;
  gap: 15px;
  margin-top: 0;
}

.link-arrow--about-lg .arrow-img {
  width: 62px;
  height: auto;
}

.link-arrow--about-lg:hover .arrow-img {
  transform: translateX(6px);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--bg-card);
  padding: 48px 0 32px;
  border-top: 1px solid rgba(43, 54, 62, 0.08);
}

.footer-grid {
  display: grid;
  gap: 32px;
}

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

.footer-col h3 {
  margin: 0 0 1rem;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}

.footer-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.footer-copy {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(43, 54, 62, 0.1);
  font-size: 13px;
  color: var(--text-muted);
}

/* ——— Cookie banner ——— */
.cookie-banner {
  position: fixed;
  z-index: 400;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 520px;
  margin-left: auto;
  background: #fff;
  padding: 20px 22px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  border: 1px solid rgba(43, 54, 62, 0.08);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (min-width: 600px) {
  .cookie-banner {
    left: auto;
  }
}

.cookie-banner h3 {
  margin: 0 0 0.5rem;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.cookie-banner p {
  font-size: 14px;
  margin-bottom: 12px;
}

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

.btn-cookie {
  padding: 10px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 2px;
  cursor: pointer;
}

.btn-cookie:hover {
  opacity: 0.92;
}

/* ——— Legal doc ——— */
.legal-doc {
  background: var(--bg-card);
  padding: 48px 0 80px;
}

.legal-doc .container {
  max-width: 900px;
}

.legal-doc h1 {
  margin: 0 0 2rem;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
}

.legal-doc h2 {
  margin: 2.5rem 0 1rem;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.legal-doc h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.legal-doc p,
.legal-doc li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

.legal-doc ul {
  margin-bottom: 1rem;
}

.legal-lead {
  font-size: 16px;
  margin-bottom: 2rem;
}

/* ——— Utilities ——— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.mt-sm {
  margin-top: 8px;
}

@media (max-width: 959px) {
  .hero--about-page .hero__title,
  .hero--about-page .hero__lead {
    display: none;
  }

  .hero--show-full {
    background-image: url("../images/mob.jpg") !important;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 70vh;
    aspect-ratio: auto;
  }

  .hero--show-full .container {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .hero--show-full .hero__lead {
    margin-bottom: 0;
  }

  .hero--show-full .hero__actions {
    display: none;
  }

  .hero-mobile-actions {
    display: block;
    padding: 14px 0 6px;
    background: var(--bg-section);
  }

  .hero-mobile-actions .container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero-mobile-actions .link-arrow {
    color: #000;
  }

  .site-logo {
    font-size: 22px;
  }
}
