/* korea.css – полная версия для страницы пригона авто из Кореи (с исправлением брендов) */

:root {
  --spacing: 4px;
}

/* ========== HERO СЕКЦИЯ ========== */
.hero-section {
  position: relative;
  width: 100%;
  max-width: 1550px;
  margin: 0 auto;
  padding: 0;
}

.hero-section .container {
  max-width: 1280px;
  padding: 60px 24px 0 24px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-bg-car-korea {
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  height: calc(100% + 200px);
  background-image: url('../img/7.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

.hero-japan-content {
  position: relative;
  z-index: 1;
}

.hero-japan-grid {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.back-to-home {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.back-to-home a {
  color: var(--secondary-text);
  text-decoration: none;
  font-size: 0.85rem;
  transition: 0.2s;
}
.back-to-home a:hover {
  color: var(--active-tab);
}
.jp-flag-badge {
  background: #0e162480;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--active-tab);
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 24px 0;
  color: var(--headers-color);
  font-family: 'Space Grotesk', system-ui;
}
.hero-description {
  font-size: 1.1rem;
  color: #cbd5e6;
  max-width: 90%;
  margin-bottom: 32px;
}

.stats-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin: 32px 0 40px;
}
.stat-hero-item {
  width: 245px;
  background: rgba(14, 22, 36, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 32px;
  padding: 16px;
  border: 1px solid rgba(255,215,130,0.15);
  transition: 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}
.stat-hero-item:hover {
  transform: scale(1.02);
}
.stat-icon {
  font-size: 1.4rem;
  color: lab(65.9688% 57.7443 77.7888);
  margin-bottom: 8px;
}
.stat-main {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}
.stat-desc {
  font-size: 0.875rem;
  color: var(--secondary-text);
}
.order-btn {
  font-weight: 500 !important;
}

/* ========== БЛОК ДВУХ КОЛОНОК (ПОЧЕМУ ОТСЮДА + МАРКИ) ========== */
#why-and-brands .container {
  max-width: 100%;
  padding: 0;
  overflow-x: visible;
  padding-top: 150px;
}
.section-label-why {
  backdrop-filter: blur(16px);
  background: #0e162480;
  border: 1px solid #ffffff14;
  padding: 6px 20px;
  width: 166px;
  border-radius: 40px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary-text);
  margin-bottom: 20px;
}
.two-col-flex {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  justify-content: center;
  width: 1280px;
  max-width: 100%;
  margin: 0 auto;
  min-height: 650px;
  flex-wrap: nowrap;
}
.why-left {
  width: 600px;
  flex-shrink: 0;
  overflow-y: auto;
}
.brands-right {
  width: 600px;
  flex-shrink: 0;
  overflow-y: auto;
}
.why-rows-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.why-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #0e162480;
  backdrop-filter: blur(16px);
  border: 1px solid #ffffff14;
  border-radius: 32px;
  padding: 16px 20px;
  width: 100%;
  transition: border-color 0.2s ease;
}
.why-row:hover {
  border-color: lab(65.9688% 57.7443 77.7888);
}
.check-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, lab(65.9688% 57.7443 77.7888) 0%, lab(51.8127% 59.2393 -70.0043) 50%, lab(44.3191% 38.7476 -76.8339) 100%);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.check-icon i {
  color: #000;
  font-size: 1rem;
}
.why-text {
  font-size: 0.9rem;
  color: var(--active-tab);
  font-weight: 500;
  line-height: 1.3;
}
.brands-card {
  background: #0e162480;
  backdrop-filter: blur(16px);
  border: 1px solid #ffffff14;
  border-radius: 32px;
  padding: 32px 24px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.brands-card h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}
.brands-grid-vertical {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

/* ========== ИСПРАВЛЕНИЕ ДЛЯ ДЛИННЫХ НАЗВАНИЙ БРЕНДОВ ========== */
.brand-item {
  min-width: 80px;
  width: auto;
  padding: 0 12px;
  height: 38px;
  line-height: 38px;
  text-align: center;
  font-size: 0.75rem;
  background: rgba(10, 14, 26, 0.7);
  border: 1px solid #ffffff14;
  border-radius: 40px;
  transition: 0.2s;
  white-space: nowrap;
}
.brand-item:hover {
  background: rgba(255,215,130,0.1);
  border-color: lab(65.9688% 57.7443 77.7888);
}

.logistics-mini-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary-text);
  margin: 20px 0 8px;
}
.logistics-glow {
  width: 534px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, lab(65.9688% 57.7443 77.7888) 0%, lab(51.8127% 59.2393 -70.0043) 50%, lab(44.3191% 38.7476 -76.8339) 100%);
  border-radius: 60px;
  padding: 16px 20px;
  color: #0a0f1a;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
}
.logistics-glow i {
  font-size: 1.5rem;
}

/* ========== ЭТАПЫ ПРИГОНА ========== */
.stages-section {
  text-align: center;
}
.stages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: left;
}
.stage-card {
  background: linear-gradient(145deg, lab(7.06747% -0.19002 -10.6574 / 0.9), lab(3.61341% -0.0697747 -6.86977 / 0.6));
  border-radius: 28px;
  padding: 28px 20px;
  border: 1px solid rgba(255,215,130,0.1);
  transition: transform 0.2s;
}
.stage-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,215,130,0.3);
}
.stage-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, lab(65.9688% 57.7443 77.7888) 0%, lab(51.8127% 59.2393 -70.0043) 50%, lab(44.3191% 38.7476 -76.8339) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  opacity: 0.3;
  margin-bottom: 16px;
  font-family: monospace;
}
.stage-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.stage-card p {
  color: lab(67.45% -0.932187 -7.4149);
  font-size: 0.875rem;
  line-height: 1.45;
}

/* ========== ПРИМЕРЫ АВТО (3 КАРТОЧКИ) ========== */
.recent-section {
  text-align: center;
}
.japan-cars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  justify-items: center;
}
.japan-car-card {
  background: linear-gradient(145deg, lab(7.06747% -0.19002 -10.6574 / 0.9), lab(3.61341% -0.0697747 -6.86977 / 0.6));
  border-radius: 32px;
  padding: 28px 20px;
  border: 1px solid rgba(255,215,130,0.1);
  width: 100%;
  max-width: 360px;
  text-align: center;
  transition: transform 0.2s;
}
.japan-car-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,215,130,0.3);
}
.japan-car-card h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.car-specs {
  font-size: 0.85rem;
  color: var(--secondary-text);
  margin-bottom: 20px;
}
.car-price {
  width: 350px;
  max-width: 100%;
  margin: 16px auto;
  background: linear-gradient(135deg, lab(65.9688% 57.7443 77.7888) 0%, lab(51.8127% 59.2393 -70.0043) 50%, lab(44.3191% 38.7476 -76.8339) 100%);
  border-radius: 0.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
}
.car-price span {
  font-size: 0.8rem;
  color: #0a0f1a;
  font-weight: 500;
}
.car-price strong {
  font-size: 1.4rem;
  font-weight: 400;
  color: #0a0f1a;
}
.car-auction {
  font-size: 0.75rem;
  color: #b0bedb;
}

/* ========== CTA БЛОК ========== */
.cta-japan-container {
  margin: 20px auto 70px;
}
.cta-section-japan {
  background: linear-gradient(145deg, lab(7.06747% -0.19002 -10.6574 / 0.9), lab(3.61341% -0.0697747 -6.86977 / 0.6));
  border-radius: 32px;
  border: 1px solid rgba(255, 215, 130, 0.1);
  padding: 50px 40px;
  text-align: center;
}
.cta-section-japan h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}
.cta-button {
  background: var(--btn-gradient);
  border: none;
}

/* ========== АДАПТИВНОСТЬ (с учётом брендов) ========== */
@media (max-width: 1320px) {
  .two-col-flex {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    min-height: auto;
  }
  .why-left, .brands-right {
    width: 100%;
    max-width: 600px;
    height: auto;
    min-height: auto;
    overflow-y: visible;
  }
}
@media (max-width: 1100px) {
  .hero-title {
    font-size: 2.8rem;
  }
}
@media (max-width: 900px) {
  .stages-grid {
    grid-template-columns: 1fr;
  }
  .japan-cars-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .stats-row {
    justify-content: flex-start;
  }
  .logistics-glow {
    width: 100%;
    height: auto;
    min-height: 100px;
  }
  .car-price {
    width: 280px;
  }
}
@media (max-width: 768px) {
  .hero-section {
    min-height: 500px;
  }
  .hero-section .container {
    padding-top: 40px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-description {
    font-size: 1rem;
    max-width: 100%;
  }
  .stats-row {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }
  .stat-hero-item {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    box-sizing: border-box;
  }
  #why-and-brands .container {
    padding: 0 20px !important;
    width: 100%;
    box-sizing: border-box;
  }
  .two-col-flex {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
    gap: 32px;
    box-sizing: border-box;
  }
  .why-left, .brands-right {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    overflow-y: visible;
    box-sizing: border-box;
  }
  .brands-right {
    height: auto !important;
  }
  .brands-card {
    padding: 24px 16px;
  }
  .logistics-glow {
    width: 100%;
    height: auto;
    padding: 14px 12px;
    font-size: 0.9rem;
    flex-wrap: wrap;
    border-radius: 32px;
  }
  .brands-grid-vertical {
    gap: 8px;
  }
  /* Мобильные бренды – переносим длинные названия */
  .brand-item {
    white-space: normal;
    padding: 4px 12px;
    height: auto;
    line-height: 1.3;
    min-width: auto;
  }
  .stages-grid {
    gap: 20px;
  }
  .stage-card {
    padding: 20px;
  }
  .japan-car-card {
    padding: 20px;
  }
  .car-price {
    width: 100%;
  }
  .cta-section-japan {
    padding: 30px 20px;
  }
  .cta-section-japan h2 {
    font-size: 1.8rem;
  }
}
@media (max-width: 640px) {
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-description {
    font-size: 0.95rem;
  }
  .cta-section-japan h2 {
    font-size: 1.5rem;
  }
  .stat-main {
    font-size: 1rem;
  }
  .stat-desc {
    font-size: 0.75rem;
  }
}
@media (max-width: 480px) {
  .hero-section .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .back-to-home {
    gap: 12px;
  }
  .jp-flag-badge {
    font-size: 0.7rem;
    padding: 4px 12px;
  }
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-description {
    font-size: 0.9rem;
  }
  .stat-hero-item {
    padding: 12px;
  }
  .why-row {
    padding: 12px;
  }
  .why-text {
    font-size: 0.85rem;
  }
  .brands-card h3 {
    font-size: 1.2rem;
  }
  .brand-item {
    font-size: 0.7rem;
    padding: 2px 10px;
  }
}