/* ============================================================
   СТИЛИ ДЛЯ РАЗДЕЛА «ИМПОРТ ПОД КЛЮЧ» (import/*.html)
   Используется вместе с css/main.css
   ============================================================ */

/* Тёмная тема для hero — глубокий ночной градиент с aurora */
body.theme-import {
  background: #07101f;
  color: #e2e8f0;
}
body.theme-import::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 80% -10%, rgba(196, 40, 28, 0.35), transparent 60%),
    radial-gradient(ellipse 60% 60% at 20% 110%, rgba(37, 99, 235, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(196, 40, 28, 0.15), transparent 70%);
  z-index: -1;
  pointer-events: none;
  animation: auroraShift 22s ease-in-out infinite alternate;
}

/* Хедер на тёмном фоне выглядит чуть иначе */
body.theme-import .header {
  background: rgba(20, 30, 50, 0.65);
  border-color: rgba(255, 255, 255, 0.08);
}
body.theme-import .logo-text { color: #f1f5f9; }
body.theme-import .nav > a,
body.theme-import .nav > .nav-item > .nav-link {
  color: rgba(255, 255, 255, 0.75);
}
body.theme-import .nav > a:hover,
body.theme-import .nav > .nav-item > .nav-link:hover {
  color: white;
}
body.theme-import .nav-dropdown-menu a:not(.dropdown-feature) {
  color: #0b1220 !important;
}
body.theme-import .nav-dropdown-menu a:not(.dropdown-feature):hover {
  color: #0b1220 !important;
  background: rgba(15, 23, 42, 0.06);
}
body.theme-import .lang-toggle,
body.theme-import .btn-call {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
}
body.theme-import .btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f1f5f9;
}
/* Кнопки в светлых блоках контента — тёмный текст */
body.theme-import .import-body .btn-secondary,
body.theme-import .import-cta .btn-secondary,
body.theme-import .import-cta-buttons .btn-secondary,
body.theme-import .modal-card .btn-secondary {
  background: #f4f6f9 !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0b1220 !important;
}
body.theme-import .import-body .btn-secondary:hover,
body.theme-import .import-cta .btn-secondary:hover,
body.theme-import .import-cta-buttons .btn-secondary:hover,
body.theme-import .modal-card .btn-secondary:hover {
  color: #0b1220 !important;
}
body.theme-import .burger span { background: white; }

/* Hero для кейса */
.import-hero {
  padding: 130px 0 70px;
  position: relative;
}
.import-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
  transition: color 0.2s;
}
.import-back:hover { color: white; }
.import-back svg { width: 14px; height: 14px; }

.import-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(196, 40, 28, 0.15);
  border: 1px solid rgba(196, 40, 28, 0.35);
  color: #fca099;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.import-eyebrow::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: pulse 2s ease-in-out infinite;
}

.import-h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: white;
  margin-bottom: 24px;
  max-width: 880px;
}
.import-h1 .accent { color: #fca099; }

.import-lead {
  font-size: clamp(16px, 1.5vw, 19px);
  color: rgba(255, 255, 255, 0.7);
  max-width: 680px;
  line-height: 1.55;
  margin-bottom: 32px;
}

.import-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.import-tag {
  padding: 7px 13px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.import-tag.accent {
  background: rgba(196, 40, 28, 0.18);
  border-color: rgba(196, 40, 28, 0.4);
  color: #fca099;
}

/* Основные секции — на светлом фоне */
.import-body {
  background: #f7f8fb;
  position: relative;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 40px;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  margin-top: 0;
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.3);
}
body.theme-import .import-body {
  color: var(--text);
}

.import-section {
  padding: 36px 0;
}
.import-section h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--text);
}
.import-section p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 14px;
  max-width: 740px;
}

/* Решение — пронумерованные шаги в сетке */
.import-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 26px;
}
.import-step {
  padding: 26px 24px;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.import-step-num {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.import-step h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
}
.import-step p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0;
}

/* Карточка продукта (характеристики) */
.import-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}
.import-product--triple {
  grid-template-columns: repeat(3, 1fr);
}
.import-product-block {
  padding: 28px 26px;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.import-product-block h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.import-product-block ul {
  list-style: none;
  padding: 0;
}
.import-product-block li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.import-product-block li:last-child { border-bottom: 0; }
.import-product-block li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  margin-top: 8px;
  flex-shrink: 0;
}
.import-product-block p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-soft);
  margin: 0;
}
.import-product--prose .import-product-block h3 {
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 17px;
  color: var(--text);
  line-height: 1.35;
}

/* Результат — выделенный блок */
.import-result {
  margin-top: 28px;
  padding: 32px 30px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #312e81 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.import-result::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(196, 40, 28, 0.45), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.import-result-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fca099;
  margin-bottom: 10px;
  position: relative;
}
.import-result h2 {
  color: white;
  margin-bottom: 16px;
  position: relative;
}
.import-result p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 0;
  position: relative;
}

/* CTA блок */
.import-cta {
  margin: 40px 0;
  padding: 40px;
  border-radius: 24px;
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 36px;
  align-items: center;
}
.import-cta-text h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin-bottom: 10px;
}
.import-cta-text p {
  font-size: 15px;
  color: var(--text-soft);
  margin: 0;
}
.import-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.import-cta-buttons .btn {
  width: 100%;
  justify-content: center;
}

/* Связанные кейсы */
.related-imports {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 26px;
}
.related-card {
  padding: 26px 24px;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.related-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
}
.related-card h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}
.related-card p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 0;
}
.related-card-arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  padding-top: 8px;
}

/* Тёмный футер на странице кейса */
body.theme-import footer {
  background: #07101f;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
body.theme-import footer .logo-text {
  color: #f1f5f9;
}
body.theme-import footer .footer-col h5 {
  color: rgba(255, 255, 255, 0.55) !important;
}
body.theme-import footer .footer-col a,
body.theme-import footer .footer-col p {
  color: rgba(255, 255, 255, 0.78) !important;
}
body.theme-import footer .footer-col a:hover {
  color: #fca099 !important;
}
body.theme-import footer .footer-bottom {
  color: rgba(255, 255, 255, 0.62) !important;
  border-top-color: rgba(255, 255, 255, 0.08);
}
body.theme-import footer .footer-bottom a {
  color: rgba(255, 255, 255, 0.78) !important;
}
body.theme-import footer .footer-bottom a:hover {
  color: #fca099 !important;
}

/* Адаптив */
@media (max-width: 840px) {
  .import-hero { padding: 110px 0 50px; }
  .import-steps { grid-template-columns: 1fr; }
  .import-product { grid-template-columns: 1fr; }
  .import-product--triple { grid-template-columns: 1fr; }
  .import-cta {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 22px;
  }
  .related-imports { grid-template-columns: 1fr; }
}

/* ============ КАТАЛОГ ПОСТАВОК (3 карточки) ============ */
.catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.catalog-card {
  padding: 32px 28px 26px;
  border-radius: 22px;
  background: white;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.3s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  min-height: 240px;
}
.catalog-card::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(196, 40, 28, 0.07), transparent 70%);
  pointer-events: none;
  transition: background 0.4s;
}
.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.2);
  border-color: var(--border-strong);
}
.catalog-card:hover::before {
  background: radial-gradient(circle, rgba(196, 40, 28, 0.15), transparent 70%);
}
.catalog-card-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 4px;
  position: relative;
}
.catalog-card h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
  position: relative;
}
.catalog-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0;
  position: relative;
}
.catalog-card-arrow {
  margin-top: auto;
  padding-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  position: relative;
  transition: gap 0.2s;
}
.catalog-card:hover .catalog-card-arrow { gap: 10px; }

@media (max-width: 1100px) {
  .catalog { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .catalog { grid-template-columns: 1fr; }
}

/* Таблица соответствия для манжет */
.compat-table {
  margin-top: 22px;
  border-radius: 16px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.compat-table table {
  width: 100%;
  border-collapse: collapse;
}
.compat-table th {
  text-align: left;
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.04);
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-mute);
  border-bottom: 1px solid var(--border);
}
.compat-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}
.compat-table tbody tr:last-child td { border-bottom: 0; }
.compat-table tbody tr:hover { background: rgba(15, 23, 42, 0.02); }
.compat-table .code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-weight: 600;
  color: var(--red);
}

/* Характеристики — стиль key-value */
.specs-list {
  margin-top: 18px;
}
.specs-list dl {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--border);
}
.specs-list dt {
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.03);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mute);
  border-bottom: 1px solid var(--border);
}
.specs-list dd {
  padding: 14px 20px;
  font-size: 14.5px;
  color: var(--text);
  margin: 0;
  border-bottom: 1px solid var(--border);
}
.specs-list dl > *:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 720px) {
  .specs-list dl { grid-template-columns: 1fr; }
  .specs-list dt { padding-bottom: 4px; border-bottom: 0; }
  .specs-list dd { padding-top: 4px; }
}

/* Список документов для скачивания */
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}
.doc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.doc-item:hover {
  border-color: rgba(196, 40, 28, 0.35);
  box-shadow: var(--shadow-sm);
}
.doc-item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(196, 40, 28, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}
.doc-item-icon svg { width: 22px; height: 22px; }
.doc-item-body { flex: 1; min-width: 0; }
.doc-item-body strong {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.doc-item-body span {
  display: block;
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.45;
}
.doc-item-action {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
}
.doc-note {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.55;
}
