/* ===== PAGE THEME (about-us) ===== */

body {
  background: var(--color-bg-light);
  color: var(--color-text-dark);
}

/* ===== HERO ===== */
.hero--about {
  background: url(../images/s3/bg-hero-about.png)
    no-repeat center;
  background-size: cover;
}
.hero--about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 115px;
  background: url(../images/s3/bg-hero-about-overlay.png)
    no-repeat center;
  background-size: cover;
  pointer-events: none;
  z-index: 1;
}

/* ===== HERO CONTENT ===== */
.hero--about .hero__content {
  align-items: flex-start;
  width: min(844px, 90%);
  padding: 0 0 clamp(5rem, 3rem + 7.5vw, 10.625rem) clamp(1.25rem, 0rem + 5vw, 5rem);
}
.hero--about .hero__title-wrap {
  align-self: stretch;
  border-bottom: 1px solid var(--color-primary);
}
.hero--about .hero__desc {
  line-height: 1.21;
}

/* Sponsors inside hero */
.hero--about .sponsors {
  flex-shrink: 0;
  margin-top: 0;
}

/* ===== SPONSORS ===== */
.sponsors {
  width: 100%;
  height: auto;
  min-height: clamp(4rem, 3rem + 3.125vw, 6.5625rem);
  background: var(--color-bg-input);
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: clamp(0.625rem, 0.5rem + 0.625vw, 1.25rem) clamp(20px, 5%, 80px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.sponsors__inner {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  min-width: 600px;
}
.sponsors__logo { display: flex; align-items: center; }
.sponsors__logo img {
  height: clamp(2rem, 1.5rem + 1.5625vw, 3.1875rem);
  width: auto;
  object-fit: contain;
}
.sponsors__logo--copart img { width: 134px; }
.sponsors__carfax-svg {
  width: clamp(10rem, 8rem + 5vw, 13.875rem);
  height: clamp(1.875rem, 1.5rem + 1.25vw, 2.625rem);
}
.sponsors__logo--autocheck img { width: 132px; }
.sponsors__logo--copart2 img { width: 196px; }
.sponsors__brand-svg {
  width: clamp(3.75rem, 3rem + 1.875vw, 5.0625rem);
  height: clamp(2.5rem, 2rem + 1.5625vw, 3.1875rem);
}

/* ===== ABOUT INTRO ===== */
.about-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1540px, 90%);
  margin: clamp(5rem, 3rem + 9.375vw, 9.375rem) auto 0;
  gap: clamp(1.5rem, 1rem + 2.5vw, 2.5rem);
  flex-wrap: wrap;
}
.about-block__image {
  width: min(840px, 50%);
  height: clamp(20rem, 15rem + 15.625vw, 38.75rem);
  flex-shrink: 0;
  background: url(../images/s3/photo-about-intro.png)
    no-repeat center;
  background-size: cover;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.about-block__text {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 1.5rem + 5vw, 5rem);
  width: min(630px, 100%);
  flex-shrink: 0;
}
.about-block__title {
  font-size: clamp(1.375rem, 0.875rem + 2.5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.21;
  text-transform: uppercase;
}
.about-block__title--accent { color: var(--color-primary); }
.about-block__desc {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-block__desc p {
  color: var(--color-text-dark);
  font-size: clamp(0.875rem, 0.75rem + 0.625vw, 1.125rem);
  font-weight: 300;
  line-height: 1.21;
}
.about-block__desc--faded { opacity: 0.7; }

/* ===== PROCESS STEPS ===== */
.process {
  margin-top: clamp(5rem, 3rem + 9.375vw, 9.375rem);
}
.process__title {
  margin-left: clamp(0rem, 0rem + 20vw, 23.6875rem);
  font-size: clamp(1.375rem, 0.875rem + 2.5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.21;
  text-transform: uppercase;
}
.process__grid {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 0.75rem + 2.5vw, 2.5rem);
  width: min(var(--width-container), 90%);
  margin: clamp(2.5rem, 1.5rem + 5vw, 6.25rem) auto 0;
}
.process__row {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 0.75rem + 2.5vw, 2.5rem);
  flex-wrap: wrap;
}
.process__row--last {
  justify-content: space-between;
  height: auto;
  min-height: clamp(200px, 14.583vw, 280px);
}

.step-card {
  display: flex;
  flex-grow: 1;
  flex-basis: 0;
  min-width: 250px;
  min-height: clamp(200px, 14.583vw, 280px);
  padding: clamp(0.75rem, 0.5rem + 1.25vw, 1.25rem) clamp(1rem, 0.75rem + 1.25vw, 1.5625rem) clamp(1.25rem, 0.75rem + 1.875vw, 1.875rem);
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.step-card__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  position: relative;
  z-index: 1;
}
.step-card--gray { background-color: var(--color-bg-card); color: var(--color-text-dark); }
.step-card--image { color: var(--color-text-light); position: relative; overflow: hidden; }
.step-card--wide {
  flex-grow: 0;
  flex-basis: auto;
  width: min(760px, 100%);
}
.step-card--01 {
  background-image: url(../images/s3/photo-process-step-01.jpg);
}
.step-card--01::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5), transparent);
  z-index: 0;
  pointer-events: none;
}
.step-card--03 {
  background: url(../images/s3/photo-process-step-03.jpg) no-repeat center;
  background-size: cover;
}
.step-card--03::before,
.step-card--05::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 0;
  pointer-events: none;
}
.step-card--05 {
  background: url(../images/s3/photo-process-step-05.jpg) no-repeat center;
  background-size: cover;
}
.step-card__num {
  font-size: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  font-weight: 500;
  line-height: 1.21;
  text-transform: uppercase;
}
.step-card__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.step-card__title {
  font-size: clamp(0.875rem, 0.8rem + 0.3125vw, 1.0625rem);
  font-weight: 500;
  line-height: 1.21;
}
.step-card__desc {
  font-size: clamp(0.75rem, 0.6875rem + 0.3125vw, 0.875rem);
  font-weight: 300;
  line-height: 1.21;
}

/* ===== LOGISTICS ===== */
.logistics {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 1rem + 3.75vw, 3.75rem);
  width: min(770px, 90%);
  margin: clamp(5rem, 3rem + 9.375vw, 9.375rem) auto 0;
}
.logistics__title {
  font-size: clamp(1.375rem, 0.875rem + 2.5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.21;
  text-transform: uppercase;
}
.logistics__title--accent { color: var(--color-primary); }
.logistics__desc {
  font-size: clamp(0.875rem, 0.75rem + 0.625vw, 1.125rem);
  font-weight: 300;
  line-height: 1.21;
}

/* ===== COUNTRIES ===== */
.countries {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 1rem + 3.75vw, 3.75rem);
  width: min(1324px, 90%);
  margin: clamp(2.5rem, 1.5rem + 5vw, 5rem) auto 0;
  flex-wrap: wrap;
}
.countries__info {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 1rem + 4.375vw, 4.375rem);
  width: min(260px, 100%);
  flex-shrink: 0;
}

.countries__map {
  position: relative;
  width: min(1004px, 100%);
  aspect-ratio: 1482 / 898;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.countries__map-bg {
  width: 100%;
  height: 100%;
  background: #d8dde3;
  mask-image: url(../images/s3/bg-map-world.png);
  -webkit-mask-image: url(../images/s3/bg-map-world.png);
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  mask-position: 0 0;
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: 0 0;
}
.countries__marker {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.countries__marker::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-text-light);
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1),
    0px 8px 8px rgba(0, 0, 0, 0.09),
    0px 18px 11px rgba(0, 0, 0, 0.05),
    0px 32px 13px rgba(0, 0, 0, 0.01);
  flex-shrink: 0;
}
.countries__marker--1 { left: 57.96%; top: 49.89%; }
.countries__marker--2 { left: 59.99%; top: 34.19%; }
.countries__marker--3 { left: 19.30%; top: 43.43%; }
.countries__marker--4 { display: none; }
.countries__marker--5 { left: 67.07%; top: 48.66%; }
.countries__marker--6 { left: 64.04%; top: 44.77%; }
/* Позиции маркеров (desktop) переопределяются инлайн-стилями из кастомайзера */

.countries__marker-label {
  font-weight: 500;
  font-size: clamp(9px, 0.7vw, 14px);
  color: var(--color-text-dark);
  white-space: nowrap;
  text-align: center;
  margin-top: 6px;
}

/* ===== SERVICES DETAIL ===== */
.services-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2.5rem, 1.5rem + 5vw, 5rem);
  width: min(var(--width-container), 90%);
  margin: clamp(5rem, 3rem + 7.875vw, 7.875rem) auto 0;
}
.services-detail__title {
  font-size: clamp(1.375rem, 0.875rem + 2.5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
}
.services-detail__items {
  display: flex;
  justify-content: space-between;
  align-self: stretch;
  gap: clamp(1.25rem, 0.75rem + 2.5vw, 2.5rem);
  flex-wrap: wrap;
}
.services-detail__item {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: min(320px, 100%);
  flex: 1;
  min-width: 200px;
}
.services-detail__item-title {
  font-size: clamp(1.125rem, 0.875rem + 1.25vw, 1.5625rem);
  font-weight: 400;
  line-height: 1.2;
}
.services-detail__item-desc {
  font-size: clamp(0.75rem, 0.6875rem + 0.3125vw, 0.875rem);
  font-weight: 300;
  line-height: 1.21;
}
.services-detail__image {
  width: 100%;
  max-width: 1160px;
  aspect-ratio: 1160 / 550;
  background: url(../images/s3/photo-services-detail.jpg)
    no-repeat center;
  background-size: cover;
  border-radius: var(--radius-md);
}

/* ===== TEAM ===== */
.team {
  background: var(--color-bg-dark);
  margin-top: clamp(2.5rem, 1.5rem + 5vw, 5rem);
  padding: clamp(4rem, 2rem + 8.0625vw, 8.0625rem) 0 clamp(5rem, 2.5rem + 12.5vw, 12.5rem);
}
.team__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 1rem + 3.75vw, 3.75rem);
  width: min(var(--width-container), 90%);
  margin: 0 auto;
}
.team__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.team__title {
  font-size: clamp(1.5rem, 0.75rem + 3.75vw, 3rem);
  font-weight: 500;
  line-height: 1.21;
  color: var(--color-text-light);
  text-transform: uppercase;
  text-align: center;
}
.team__desc {
  font-size: clamp(0.75rem, 0.6875rem + 0.3125vw, 0.875rem);
  font-weight: 300;
  line-height: 1.21;
  color: var(--color-text-light);
  text-align: center;
  max-width: 664px;
}

/* ===== BUTTON OVERRIDES ===== */
.btn-group .btn--round {
  transform: none;
}

/* ===== FOOTER (page override) ===== */
.footer {
  margin-top: 0;
  border-top: 1px solid #fff;
}

/* ===== RESPONSIVE — Structural only ===== */
@media (max-width: 1024px) {
  .about-block { flex-direction: column; }
  .about-block__image { width: 100%; border-radius: var(--radius-md); }
  .about-block__text { width: 100%; }
  .process__title { margin-left: 5%; }
  .step-card--wide { width: 100%; }
  .countries { flex-direction: column; }
  .services-detail__items { flex-direction: column; }
  .services-detail__item { width: 100%; }
}

@media (max-width: 768px) {
  .countries__info { width: 100%; }
  .countries__map { width: 100%; }
}

@media (max-width: 576px) {
  .step-card { min-width: 100%; }
  .process__row { flex-direction: column; }
  .services-detail__image { aspect-ratio: 16 / 9; }
  .countries__marker-label { display: none; }
}