/* PRIVOZ — О компании на главной. Изолировано от остальных блоков MODX. */
#home-about.about-company-section {
  position: relative;
  padding: 120px 0 130px;
  overflow: hidden;
  background: radial-gradient(circle at 74% 50%, rgba(255,104,30,.04), transparent 40%), #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
}
#home-about *, #home-about *::before, #home-about *::after {box-sizing: border-box;}
#home-about .about-company-container {
  width: calc(100% - 100px); max-width: 1450px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(360px,.88fr) minmax(0,1.12fr);
  align-items: center; gap: 95px;
}
#home-about .about-company-content {max-width: 600px; min-width: 0;}
#home-about .about-company-label {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 35px; width: fit-content; margin: 0 0 24px; padding: 0 20px;
  border: 1px solid rgba(255,104,30,.18); background: rgba(255,104,30,.08);
  color: #ff681e; font-size: 12px; font-weight: 700;
  line-height: 1; letter-spacing: .14em; text-transform: uppercase;
  clip-path: polygon(0 0,calc(100% - 10px) 0,100% 100%,10px 100%);
}
#home-about .about-company-title {
  margin: 0 0 32px; color: #171717; font-size: clamp(44px,4.4vw,66px);
  font-weight: 500; line-height: 1.08; letter-spacing: -.05em;
}
#home-about .about-company-text {
  max-width: 580px; margin: 0 0 38px; color: #626262;
  font-size: 17px; font-weight: 400; line-height: 1.72;
}
#home-about .about-company-text p {margin: 0 0 22px;}
#home-about .about-company-text p:last-child {margin-bottom: 0;}
#home-about .about-company-button {
  min-height: 60px; padding: 0 34px; display: inline-flex; align-items: center;
  gap: 18px; background: #171717; color: #fff; font-size: 16px;
  font-weight: 600; text-decoration: none;
  clip-path: polygon(0 0,90% 0,100% 100%,10% 100%);
  transition: background .25s ease, transform .25s ease;
}
#home-about .about-company-button:hover {background: #ff681e; transform: translateY(-2px);}
#home-about .about-company-button svg {width: 18px; height: 18px; flex: none;}
#home-about .about-company-button path {
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
#home-about .about-company-diagram {min-width: 0; display: flex; justify-content: center; align-items: center;}
#home-about .about-company-grid-services {
  width: 100%; display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px;
}
#home-about .about-card {
  position: relative; min-width: 0; min-height: 205px; padding: 22px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; color: #202020; text-decoration: none;
  clip-path: polygon(16px 0,100% 0,100% calc(100% - 16px),calc(100% - 16px) 100%,0 100%,0 16px);
  transition: transform .3s ease, box-shadow .3s ease;
}
#home-about .about-card::after {
  content: ""; position: absolute; width: 150px; height: 150px;
  right: -70px; bottom: -75px; border: 1px solid rgba(255,255,255,.25);
  transform: rotate(35deg); pointer-events: none;
}
#home-about .about-card:hover {transform: translateY(-7px); box-shadow: 0 18px 40px rgba(0,0,0,.08);}
#home-about .about-card-icon {
  position: absolute; top: 18px; right: 18px; left: auto; z-index: 1;
  width: 100px; height: 100px; margin: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent; clip-path: none;
}
#home-about .about-card-icon img {display: block; width: 100%; height: 100%; object-fit: contain;}
#home-about .about-card h3 {
  position: relative; z-index: 2; margin: auto 0 0; color: inherit;
  font-size: clamp(18px,1.5vw,23px); font-weight: 600;
  line-height: 1.14; letter-spacing: -.04em;
}
#home-about .about-card-orange {background: linear-gradient(145deg,#ffd4bc,#ffc9aa);}
#home-about .about-card-export {background: linear-gradient(145deg,#dce8ec,#cbdde2);}
#home-about .about-card-import {background: linear-gradient(145deg,#f1d8cc,#eacabb);}
#home-about .about-card-retail {background: linear-gradient(145deg,#e6ead9,#dce3cb);}
#home-about .about-card-procurement {background: linear-gradient(145deg,#efd9db,#e7cace);}
#home-about .about-card-quality {background: linear-gradient(145deg,#dce7e3,#ceddd8);}
#home-about .about-card-logistics {background: linear-gradient(145deg,#eee2d1,#e7d7c2);}
#home-about .about-card-expert {background: linear-gradient(145deg,#ead6d4,#dfc3c0);}
#home-about .about-card-additional {background: linear-gradient(145deg,#e5e5e2,#d9dad6);}
/* Анимация управляется только файлом about-company.js; без JS всё видно. */
#home-about.about-js-ready .about-company-label,
#home-about.about-js-ready .about-company-title,
#home-about.about-js-ready .about-company-text,
#home-about.about-js-ready .about-company-button,
#home-about.about-js-ready .about-card {
  opacity: 0; transform: translateY(32px);
  transition: opacity .75s cubic-bezier(.22,.61,.36,1), transform .85s cubic-bezier(.22,.61,.36,1);
}
#home-about.about-js-ready .about-card {transform: translateY(24px) scale(.96);}
#home-about.about-js-ready.about-is-visible .about-company-label,
#home-about.about-js-ready.about-is-visible .about-company-title,
#home-about.about-js-ready.about-is-visible .about-company-text,
#home-about.about-js-ready.about-is-visible .about-company-button,
#home-about.about-js-ready.about-is-visible .about-card {opacity: 1; transform: none;}
#home-about.about-is-visible .about-company-title {transition-delay: .08s;}
#home-about.about-is-visible .about-company-text {transition-delay: .16s;}
#home-about.about-is-visible .about-company-button {transition-delay: .24s;}
#home-about.about-is-visible .about-card:nth-child(3n+2) {transition-delay: .10s;}
#home-about.about-is-visible .about-card:nth-child(3n+3) {transition-delay: .20s;}
#home-about.about-is-visible .about-card:hover {transform: translateY(-7px);}
@media (max-width: 1120px) {
  #home-about.about-company-section {padding: 90px 0;}
  #home-about .about-company-container {width: calc(100% - 50px); grid-template-columns: 1fr; gap: 55px;}
  #home-about .about-company-content {max-width: 750px;}
  #home-about .about-company-diagram {max-width: 760px; margin: 0 auto; width: 100%;}
  #home-about .about-card {min-height: 180px; padding: 18px;}
}
@media (max-width: 768px) {
  #home-about.about-company-section {padding: 70px 0;}
  #home-about .about-company-container {width: calc(100% - 32px); gap: 40px;}
  #home-about .about-company-label {margin-bottom: 18px; font-size: 10px;}
  #home-about .about-company-title {margin-bottom: 24px; font-size: clamp(38px,11vw,52px);}
  #home-about .about-company-text {margin-bottom: 28px; font-size: 16px; line-height: 1.65;}
  #home-about .about-company-button {min-height: 56px; padding: 0 27px; font-size: 15px;}
  #home-about .about-company-grid-services {grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px;}
  #home-about .about-card {min-height: 170px; padding: 17px;}
  #home-about .about-card-icon {top: 12px; right: 12px; width: 75px; height: 75px;}
  #home-about .about-card h3 {font-size: 17px;}
}
@media (max-width: 430px) {
  #home-about .about-company-grid-services {grid-template-columns: 1fr;}
  #home-about .about-card {min-height: 145px;}
}
@media (prefers-reduced-motion: reduce) {
  #home-about.about-js-ready .about-company-label,
  #home-about.about-js-ready .about-company-title,
  #home-about.about-js-ready .about-company-text,
  #home-about.about-js-ready .about-company-button,
  #home-about.about-js-ready .about-card {opacity: 1; transform: none; transition: none;}
}

/* =====================================================
   PRIVOZ — ABOUT PERFORMANCE OPTIMIZATION
   ===================================================== */

/* Карточки видны сразу, независимо от JavaScript */
#home-about.about-js-ready .about-card,
#home-about.about-js-ready.about-is-visible .about-card {
  opacity: 1;
  transform: none;
  transition: transform .25s ease, box-shadow .25s ease;
  transition-delay: 0s;
}

/* Сохраняем анимацию при наведении */
#home-about.about-js-ready .about-card:hover,
#home-about.about-js-ready.about-is-visible .about-card:hover {
  transform: translateY(-7px);
}

/* Изображения */
#home-about .about-card-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Меньше анимаций на мобильных */
@media (max-width: 768px) {
  #home-about.about-js-ready .about-card,
  #home-about.about-js-ready.about-is-visible .about-card {
    transition: none;
  }
}
