/* ===========================================================================
   Japan Auto Trend — основной лендинг
   Перенесено из landing-legacy/site.html <style>, пути картинок — относительные.
   =========================================================================== */

:root {
  --bg: #0b1220;
  --bg-2: #111827;
  --card: #111a2e;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, .08);
  --accent: #f59e0b;
  --accent-2: #fbbf24;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(0, 0, 0, .28);
  --radius: 20px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #08101d 0%, #0b1220 100%);
  color: var(--text);
  line-height: 1.5;
}

img { max-width: 100%; display: block; border-radius: 16px; }
a { color: inherit; text-decoration: none; }

.container { width: min(100% - 32px, var(--container)); margin: 0 auto; }
.section { padding: 80px 0; }

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -.03em;
}
.section-subtitle {
  color: var(--muted);
  max-width: 760px;
  margin: 0 0 32px;
  font-size: 18px;
}

.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 20px; border-radius: 14px;
  font-weight: 700; border: 1px solid transparent; transition: .2s ease;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #111827; }
.btn-primary:hover { transform: translateY(-1px); background: var(--accent-2); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn-secondary:hover { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .03); }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .03); color: #f3f4f6; font-size: 14px;
}

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 24px; }

.kicker {
  color: var(--accent); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; font-size: 13px;
}
.muted { color: var(--muted); }

/* ----- Topbar ----- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 18, 32, .78);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #fb7185);
  display: grid; place-items: center; color: #111827; font-weight: 900;
}
.nav { display: flex; gap: 18px; flex-wrap: wrap; color: #cbd5e1; font-size: 14px; }

.header-contacts {
  display: flex; align-items: center; gap: 8px; margin-right: 8px;
}
.contact-icon {
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, .8); color: var(--accent);
  transition: .2s ease;
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-icon svg path,
.contact-icon svg rect { fill: currentColor; }
.contact-icon svg [fill="none"] {
  fill: none;
  stroke: currentColor;
}
.contact-icon:hover {
  border-color: rgba(245, 158, 11, .7);
  background: rgba(245, 158, 11, .12);
  transform: translateY(-1px);
}
.header-cta { flex-shrink: 0; }

/* ----- Hero ----- */
.hero { padding: 36px 0 72px; }
.hero-wrap {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center;
}
.hero h1 {
  font-size: clamp(28px, 6vw, 48px); line-height: 1.03;
  margin: 14px 0 16px; letter-spacing: -.04em;
}
.hero p { font-size: 18px; color: #d1d5db; max-width: 640px; }
.hero-points {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0 28px;
}
.hero-point {
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px;
  background: rgba(255, 255, 255, .03); color: #f8fafc; font-weight: 600;
}
.hero-media {
  position: relative;
  min-height: 560px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(7, 12, 22, .12), rgba(7, 12, 22, .72)),
    var(--hero-bg, url('../img/hero-car.jpg')) center/cover no-repeat;
  box-shadow: var(--shadow);
}
.hero-overlay { position: absolute; inset: auto 20px 20px 20px; display: grid; gap: 10px; }
.floating {
  padding: 14px 16px; border-radius: 16px; background: rgba(15, 23, 42, .8);
  border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(10px);
}

/* ----- Forms ----- */
.form { display: grid; gap: 12px; margin-top: 18px; }
.form input:not([type="checkbox"]):not([type="hidden"]),
.form textarea,
.input, .textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03); color: var(--text); outline: none; font: inherit;
  box-sizing: border-box;
}
.input::placeholder, .textarea::placeholder { color: #94a3b8; }
.textarea { min-height: 110px; resize: vertical; }

.consent-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--muted); }
.consent-row input { margin-top: 3px; }
.form-errors { color: #f87171; font-size: 13px; margin: -4px 0; }

/* ----- Sections / cards ----- */
.section-head { margin-bottom: 28px; }
.icon {
  width: 46px; height: 46px; border-radius: 14px; background: rgba(245, 158, 11, .14);
  display: grid; place-items: center; color: var(--accent); font-size: 20px; font-weight: 800;
}
.mini { font-size: 14px; color: #cbd5e1; }
.country-card h3, .feature-card h3, .review-card h3 { margin: 14px 0 10px; font-size: 22px; }

.steps { counter-reset: step; }
.step {
  padding: 22px; border: 1px solid var(--line); border-radius: 20px;
  background: rgba(255, 255, 255, .03);
}
.step .num {
  display: inline-flex; width: 36px; height: 36px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: var(--accent); color: #111827; font-weight: 800; margin-bottom: 12px;
}
.step h3 { margin: 0 0 8px; font-size: 18px; }

.car-card img { aspect-ratio: 16/10; object-fit: cover; border-radius: 16px 16px 0 0; }
.car-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.car-price { margin: 8px 0 0; font-size: 18px; color: var(--accent); }
.tag {
  padding: 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line); font-size: 13px; color: #e5e7eb;
}

.review-author { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-top: 0; margin-bottom: 0; }
.review-card > p { margin-top: 12px; }

.faq details {
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px;
  background: rgba(255, 255, 255, .03);
}
.faq details + details { margin-top: 14px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); margin: 12px 0 0; }

.cta {
  background: linear-gradient(135deg, rgba(245, 158, 11, .18), rgba(255, 255, 255, .03));
  border: 1px solid rgba(245, 158, 11, .22);
  border-radius: 28px;
  padding: 34px;
}

.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.footer { padding: 30px 0 42px; border-top: 1px solid var(--line); color: #cbd5e1; }

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .header-contacts { display: none; }
  .hero-wrap, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-media { min-height: 420px; }
  .nav { display: none; }
  .hero-points { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
