/* ─────────────── ВНОС ОТ ПАЗАР (САЩ / Канада / Корея) — scoped ───────────────
   Езикът на /process и /services: цветовете идват от modules/cars.css
   (--gold / --red са от Theme Editor), бутоните са сайтовите .btn-primary /
   .btn-secondary. Отстъпът под фиксираното меню е на обвивката, не на шапката —
   блоковете се пренареждат в редактора и шапката не е задължително първа. */
.import-page {
  --imp-border: rgba(255,255,255,0.06);
  --imp-hairline: rgba(184,151,90,0.10);
  padding-top: 72px;
  color: var(--white);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-weight: 300;
}
.import-page a { text-decoration: none; }
.imp-inner { max-width: 1180px; margin: 0 auto; }

/* ── PAGE HEADER ──
   Снимката е в дясните ~62% и се разтапя наляво в тъмното (mask-image) —
   текстът стои на чист фон, колата се вижда цяла. Фокусът на кадъра е
   различен за всеки пазар (--imp-focus по data-market). */
.imp-header {
  position: relative; overflow: hidden;
  min-height: min(720px, calc(100vh - 72px));
  display: flex; align-items: center;
  padding: 72px 48px 56px;
  background: var(--black);
  border-bottom: 1px solid rgba(184,151,90,0.1);
}
.imp-header[data-market="us"] { --imp-focus: 58% 62%; }
.imp-header[data-market="ca"] { --imp-focus: 52% 70%; }
.imp-header[data-market="kr"] { --imp-focus: 70% 60%; }
.imp-header-media {
  position: absolute; top: 0; right: 0; bottom: 0; width: 64%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 38%);
          mask-image: linear-gradient(to right, transparent 0%, #000 38%);
}
.imp-header-photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: var(--imp-focus, center);
  filter: saturate(0.85) contrast(1.05);
  animation: impZoom 1.6s cubic-bezier(0.22,1,0.36,1) both;
}
.imp-header-media::after {
  /* лек тон отдолу и отгоре, за да се слее с менюто и лентата под шапката */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0) 30%, rgba(10,10,10,0) 60%, rgba(10,10,10,0.95) 100%);
}
.imp-header::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(184,151,90,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,151,90,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: linear-gradient(to right, #000 0%, transparent 60%);
          mask-image: linear-gradient(to right, #000 0%, transparent 60%);
}
.imp-header-inner { width: 100%; max-width: 1180px; margin: 0 auto; position: relative; z-index: 2; }
.imp-header-inner > * { max-width: 600px; }

/* Влизане: надолу-нагоре на стъпки, после снимката се „успокоява" */
.imp-rise { animation: impRise 0.8s cubic-bezier(0.22,1,0.36,1) both; }
.imp-rise:nth-child(2) { animation-delay: 0.08s; }
.imp-rise:nth-child(3) { animation-delay: 0.16s; }
.imp-rise:nth-child(4) { animation-delay: 0.24s; }
.imp-rise:nth-child(5) { animation-delay: 0.36s; }
@keyframes impRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes impZoom { from { transform: scale(1.06); opacity: 0; } to { transform: none; opacity: 1; } }

/* Превключвател на пазарите */
.imp-markets {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px;
  margin-top: 48px; padding-top: 22px;
  border-top: 1px solid var(--imp-border);
}
.imp-markets-label {
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gray);
}
.imp-markets a {
  position: relative; padding: 6px 0;
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gray-light); transition: color 0.2s;
}
.imp-markets a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.imp-markets a:hover { color: var(--white); }
.imp-markets a:hover::after, .imp-markets a.is-current::after { transform: scaleX(1); }
.imp-markets a.is-current { color: var(--gold-light); }

.imp-eyebrow,
.imp-sec-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.imp-eyebrow::before,
.imp-sec-eyebrow::before { content: ''; flex-shrink: 0; width: 32px; height: 1px; background: var(--red); }
.imp-h1 {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(40px, 5vw, 64px); font-weight: 700; line-height: 1.05;
  letter-spacing: -0.5px; color: var(--white);
  margin-bottom: 20px; max-width: 760px;
}
.imp-h1 em { display: block; font-style: normal; color: var(--gold-light); }
.imp-lead { font-size: 17px; color: var(--gray-light); line-height: 1.72; max-width: 560px; margin-bottom: 36px; }
.imp-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── BENEFITS — лента с хоризонтални разделители ── */
.imp-benefits { padding: 0 48px; background: var(--black); border-bottom: 1px solid var(--imp-border); }
.imp-benefits-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.imp-benefit { display: flex; gap: 16px; align-items: flex-start; padding: 30px 28px 30px 0; }
.imp-benefit + .imp-benefit { padding-left: 28px; border-left: 1px solid var(--imp-border); }
.imp-benefit-num { flex-shrink: 0; width: 20px; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--gold-dim); padding-top: 3px; }
.imp-benefit-title { font-size: 15px; font-weight: 600; color: var(--white); line-height: 1.4; margin-bottom: 4px; }
.imp-benefit-text { font-size: 13px; color: var(--gray); line-height: 1.55; }

/* ── ОБЩИ СЕКЦИИ ── */
.imp-section { padding: 88px 48px; border-bottom: 1px solid var(--imp-border); }
.imp-h2 {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; line-height: 1.12;
  letter-spacing: -0.3px; color: var(--white);
  margin-bottom: 16px; max-width: 680px;
  /* Дълга дума (немското „Gebrauchtwagenmarkt“) на 320 px излизаше 40 px вдясно */
  overflow-wrap: break-word; hyphens: auto;
}
.imp-intro { font-size: 16px; color: var(--gray-light); line-height: 1.7; max-width: 620px; }

/* ── ПРОЦЕС — маршрут: номера в кръг, свързани с хоризонтална линия ── */
.imp-steps {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px;
  position: relative;
}
.imp-steps::before {
  content: ''; position: absolute; top: 23px; left: 23px; right: 23px; height: 1px;
  background: linear-gradient(90deg, rgba(184,151,90,0.35), rgba(184,151,90,0.08));
}
.imp-step { position: relative; min-width: 0; }
.imp-step-num {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(184,151,90,0.3); background: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: var(--gold-dim);
  position: relative; z-index: 1; margin-bottom: 22px;
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.imp-step:hover .imp-step-num { border-color: var(--gold); color: var(--gold-light); box-shadow: 0 0 0 4px rgba(184,151,90,0.06); }
.imp-step-title { font-size: 16px; font-weight: 700; color: var(--white); line-height: 1.3; margin-bottom: 8px; }
.imp-step-text { font-size: 14px; color: var(--gray-light); line-height: 1.6; }
.imp-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 40px;
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold-light); transition: color 0.2s;
}
.imp-more:hover { color: var(--white); }

/* ── ЗАЩО ОТ ТОЗИ ПАЗАР — 2×2 решетка с позлатена черта отгоре ── */
.imp-market { background: var(--dark); }
.imp-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; }
.imp-point { position: relative; padding-top: 20px; border-top: 1px solid var(--imp-border); min-width: 0; }
.imp-point::before {
  content: ''; position: absolute; top: -1px; left: 0; width: 40px; height: 1px;
  background: var(--gold); transition: width 0.4s cubic-bezier(0.22,1,0.36,1);
}
.imp-point:hover::before { width: 100%; }
.imp-point-title { font-size: 16px; font-weight: 700; color: var(--white); line-height: 1.3; margin-bottom: 8px; }
.imp-point-text { font-size: 14px; color: var(--gray-light); line-height: 1.65; }
@media (max-width: 640px) { .imp-points { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ── БЮДЖЕТ + ВЪПРОСИ — асиметричен 5/7 разрез ── */
.imp-spread { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.imp-col { min-width: 0; }
/* Заглавието на разреза остава на място, докато дясната колона се чете */
@media (min-width: 981px) {
  .imp-spread > .imp-col:first-child { position: sticky; top: 104px; }
}
.imp-budget { background: var(--dark); }
.imp-costs { margin: 0; border-top: 1px solid var(--imp-hairline); }
.imp-cost {
  display: grid; grid-template-columns: minmax(170px, 0.8fr) minmax(0, 1.2fr); gap: 28px;
  padding: 20px 0; border-bottom: 1px solid var(--imp-border);
}
.imp-cost dt { display: flex; align-items: baseline; gap: 14px; font-size: 15px; font-weight: 600; color: var(--white); margin: 0; }
.imp-cost-key {
  flex-shrink: 0; width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(184,151,90,0.25);
  font-size: 11px; font-weight: 700; color: var(--gold-dim);
  transform: translateY(-1px);
}
.imp-cost dd { margin: 0; font-size: 14px; color: var(--gray-light); line-height: 1.6; }
.imp-note {
  margin-top: 24px; padding: 10px 18px;
  border-left: 1px solid var(--red);
  font-size: 13px; font-style: italic; color: var(--gray-light); line-height: 1.65;
}

/* ── КАТАЛОГ — лента със снимка от пристанището, силно затъмнена ── */
.imp-catalog {
  position: relative; overflow: hidden;
  background:
    linear-gradient(to right, rgba(10,10,10,0.97) 0%, rgba(10,10,10,0.88) 50%, rgba(10,10,10,0.74) 100%),
    var(--imp-catalog-bg, none) center 60% / cover no-repeat,
    var(--black);
}
.imp-catalog::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,151,90,0.35), transparent);
}
.imp-catalog-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.imp-catalog .imp-h2 { margin-bottom: 12px; }
.imp-catalog .btn-secondary { background: rgba(10,10,12,0.6); border-color: rgba(212,175,114,0.55); }
.imp-catalog-buttons { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }

/* ── ВЪПРОСИ — като /faq: квадратен „+“, който се завърта ── */
.imp-faq-item { border-bottom: 1px solid var(--imp-border); }
.imp-faq-item:first-child { border-top: 1px solid var(--imp-border); }
.imp-faq-item summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 18px 0; cursor: pointer; list-style: none;
}
.imp-faq-item summary::-webkit-details-marker { display: none; }
.imp-faq-item summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.imp-faq-q { font-size: 15px; font-weight: 500; color: var(--white); line-height: 1.4; transition: color 0.2s; }
.imp-faq-item summary:hover .imp-faq-q,
.imp-faq-item[open] .imp-faq-q { color: var(--gold-light); }
.imp-faq-toggle {
  width: 24px; height: 24px; flex-shrink: 0; margin-top: 1px;
  border: 1px solid var(--imp-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1; color: var(--gray);
  transition: transform 0.2s, color 0.2s, border-color 0.2s;
}
.imp-faq-item[open] .imp-faq-toggle { transform: rotate(45deg); border-color: var(--gold-dim); color: var(--gold-light); }
.imp-faq-a { padding: 0 40px 20px 0; font-size: 14px; color: var(--gray-light); line-height: 1.75; max-width: 680px; overflow-wrap: anywhere; }

/* ── КАК СЕ КУПУВА — подточки със златна черта отляво ── */
.imp-guide-items { display: grid; gap: 32px; }
.imp-guide-item { position: relative; min-width: 0; padding-left: 24px; border-left: 1px solid var(--imp-hairline); }
.imp-guide-item::before { content: ''; position: absolute; top: 0; left: -1px; width: 1px; height: 28px; background: var(--gold); }
.imp-guide-item-title { font-size: 17px; font-weight: 700; color: var(--white); line-height: 1.3; margin-bottom: 8px; }
.imp-guide-item-text { font-size: 15px; color: var(--gray-light); line-height: 1.7; }

/* ── ДОСТАВКА ДО БЪЛГАРИЯ — числото от import_fees, под разходите ── */
.imp-delivery {
  margin-top: 28px; padding: 18px 20px;
  border: 1px solid var(--imp-hairline); background: rgba(184,151,90,0.04);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: baseline;
}
.imp-delivery-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.imp-delivery-value { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 22px; font-weight: 700; color: var(--white); white-space: nowrap; }
.imp-delivery-hint { font-size: 13px; color: var(--gray-light); line-height: 1.55; }

/* ── КОЛИ В МОМЕНТА — картата от каталога (_car-card) в решетка ── */
.imp-cars-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.imp-cars-head .imp-h2 { margin-bottom: 12px; }
.imp-cars-all { margin-top: 0; flex-shrink: 0; }
.imp-cars-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.imp-cars-item { position: relative; min-width: 0; }

/* ── CTA — същият като на /process ── */
.imp-cta {
  background: var(--dark); padding: 72px max(48px, calc((100% - 1180px) / 2));
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
  position: relative; overflow: hidden;
}
.imp-cta::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.imp-cta::after {
  content: '11'; position: absolute; right: 32px; bottom: -64px;
  font-size: clamp(160px, 22vw, 300px); font-weight: 700; line-height: 1;
  color: rgba(184,151,90,0.04); pointer-events: none; user-select: none;
}
.imp-cta-left { position: relative; z-index: 1; max-width: 600px; }
.imp-cta-left h2 {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(26px, 4.5vw, 42px); font-weight: 700; line-height: 1.1;
  color: var(--white); margin-bottom: 12px;
}
.imp-cta-left p { font-size: 16px; color: var(--gray-light); line-height: 1.65; max-width: 480px; }
.imp-cta-buttons { display: flex; gap: 12px; flex-shrink: 0; position: relative; z-index: 1; }

/* ── RESPONSIVE ── */
@media (max-width: 1080px) {
  .imp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .imp-steps::before { display: none; }
}
@media (max-width: 980px) {
  .imp-header { padding: 56px 24px 44px; min-height: 0; }
  .imp-header-media { width: 78%; opacity: 0.55; }
  .imp-benefits { padding: 0 24px; }
  .imp-section { padding: 64px 24px; }
  .imp-spread { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .imp-catalog-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .imp-cars-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .imp-cars-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .imp-cta { flex-direction: column; align-items: flex-start; padding: 56px 24px; }
  .imp-cta-buttons { flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .imp-benefits-inner { grid-template-columns: minmax(0, 1fr); }
  .imp-benefit { padding: 20px 0; }
  .imp-benefit + .imp-benefit { padding-left: 0; border-left: none; border-top: 1px solid var(--imp-border); }
  /* Маршрутът става вертикален: номерата вляво, линията минава през тях */
  .imp-steps { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .imp-steps::before { display: block; top: 19px; bottom: 19px; left: 19px; right: auto; width: 1px; height: auto; background: rgba(184,151,90,0.2); }
  .imp-step { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 18px; }
  .imp-step-num { grid-row: 1 / 3; align-self: start; width: 38px; height: 38px; font-size: 13px; margin: 0; }
  .imp-step-title { padding-top: 8px; margin-bottom: 4px; }
  .imp-cost { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .imp-cost dd { padding-left: 38px; }
}
@media (max-width: 640px) {
  .imp-h1 { font-size: 38px; }
  .imp-lead { font-size: 16px; }
  /* На телефон снимката е горна лента, а текстът тръгва под нея */
  .imp-header { flex-direction: column; align-items: stretch; padding-top: 0; }
  .imp-header-media {
    position: relative; width: auto; height: 250px; margin: 0 -24px 28px; opacity: 1;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  }
  .imp-header-media::after { background: linear-gradient(to bottom, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0) 35%); }
  .imp-markets { margin-top: 36px; gap: 4px 20px; }
  .imp-faq-a { padding-right: 0; }
  .imp-cars-grid { grid-template-columns: minmax(0, 1fr); }
  .imp-guide-item { padding-left: 18px; }
  /* Сумата слиза под етикета — на 320 px „≈ €5,000 – €7,000“ не се побира до него */
  .imp-delivery { grid-template-columns: minmax(0, 1fr); }
  .imp-delivery-value { grid-column: auto; grid-row: auto; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .imp-step-num, .imp-faq-toggle { transition: none; }
  .imp-rise, .imp-header-photo { animation: none; }
}
