/* ===== CSS Variables ===== */
:root {
  --primary: #1A5276;
  --primary-dark: #123a54;
  --primary-light: #2471a3;
  --accent: #F39C12;
  --accent-dark: #d68910;
  --accent-light: #f7b731;
  --bg: #f5f7fa;
  --bg-dark: #0e1b2a;
  --text: #2c3e50;
  --text-light: #7f8c8d;
  --text-on-dark: #ecf0f1;
  --white: #ffffff;
  --card-shadow: 0 4px 20px rgba(26, 82, 118, 0.1);
  --card-hover-shadow: 0 8px 32px rgba(26, 82, 118, 0.18);
  --radius: 12px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Noto Sans KR', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
}

.nav { display: flex; align-items: center; gap: 8px; }

.nav a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}

.nav a:hover,
.nav a.active {
  background: rgba(26, 82, 118, 0.08);
  color: var(--primary);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
}
.nav-cta:hover {
  background: var(--accent-dark) !important;
  color: var(--white) !important;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: var(--text-on-dark);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(243,156,18,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container { position: relative; z-index: 1; }

.hero-content {
  max-width: 640px;
}

.hero-badge {
  display: inline-block;
  background: rgba(243,156,18,0.2);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(243,156,18,0.3);
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 1.12rem;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* VIN Form */
.vin-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
}

.vin-form input {
  flex: 1;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border var(--transition);
}

.vin-form input::placeholder { color: rgba(255,255,255,0.5); }
.vin-form input:focus { border-color: var(--accent); }

.vin-form button {
  padding: 16px 32px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.vin-form button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}
.vin-hint {
  margin-top: 12px;
  font-size: 0.82rem;
  opacity: 0.55;
  letter-spacing: 0.3px;
}

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--white); }

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.section-alt .feature-card { background: var(--bg); }

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Price Block ===== */
.price-block {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 20px;
  padding: 48px;
  color: var(--white);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.price-block .price {
  font-size: 3rem;
  font-weight: 800;
  margin: 16px 0;
}

.price-block .price small {
  font-size: 1rem;
  opacity: 0.8;
  font-weight: 400;
}

/* ===== Brands Grid ===== */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.brand-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.brand-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-hover-shadow);
}

.brand-card .brand-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.brand-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

.brand-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  color: var(--white);
}

.cta-banner h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-banner p {
  font-size: 1.05rem;
  opacity: 0.95;
  margin-bottom: 28px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: inherit;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
}
.btn-white:hover {
  background: var(--bg);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== Platform Cards (zakazat) ===== */
.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}

.platform-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 28px;
  box-shadow: var(--card-shadow);
  text-align: center;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
}

.platform-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover-shadow);
}

.platform-card.featured {
  border-color: var(--accent);
}

.platform-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  padding: 4px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.platform-badge.secondary { background: var(--primary); }

.platform-icon {
  width: 72px;
  height: 72px;
  margin: 16px auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
}

.platform-card.featured .platform-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.platform-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.platform-list {
  text-align: left;
  margin-bottom: 24px;
}

.platform-list li {
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.platform-list li::before {
  content: '\2713';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.platform-card .btn { width: 100%; }

/* ===== PDF Examples ===== */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.example-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.example-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-hover-shadow);
}

.example-icon {
  width: 56px;
  height: 64px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.example-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.example-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.5;
}

.example-info a { font-weight: 600; font-size: 0.9rem; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.section-alt .faq-item { background: var(--bg); }

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--primary); }

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  transition: transform var(--transition);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  padding: 16px 0;
  font-size: 0.88rem;
  color: var(--text-light);
}

.breadcrumbs a { color: var(--primary); font-weight: 500; }
.breadcrumbs span { margin: 0 8px; opacity: 0.5; }

/* ===== Content Page ===== */
.content-page { padding: 48px 0 80px; }

.content-page h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
  line-height: 1.3;
}

.content-page h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 36px 0 16px;
}

.content-page h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
}

.content-page p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.content-page ul, .content-page ol {
  margin: 16px 0 16px 24px;
}

.content-page ul { list-style: disc; }
.content-page ol { list-style: decimal; }

.content-page li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.content-page .highlight-box {
  background: linear-gradient(135deg, rgba(26,82,118,0.05), rgba(36,113,163,0.08));
  border-left: 4px solid var(--primary);
  padding: 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}

.content-page .highlight-box p { margin-bottom: 0; }

/* ===== Video Page ===== */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-dark);
  margin-bottom: 32px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--text-on-dark);
}

.video-placeholder .play-icon {
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}

/* ===== Stats ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.stat-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 8px;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--accent);
}

.footer p {
  font-size: 0.92rem;
  opacity: 0.8;
  line-height: 1.7;
}

.footer-links a {
  display: block;
  color: var(--text-on-dark);
  opacity: 0.8;
  padding: 4px 0;
  font-size: 0.92rem;
}

.footer-links a:hover { opacity: 1; color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    gap: 4px;
  }

  .nav.open { display: flex; }

  .nav a { padding: 12px 16px; }

  .burger { display: flex; }

  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: 1.7rem; }

  .vin-form {
    flex-direction: column;
    max-width: 100%;
  }

  .section { padding: 48px 0; }
  .section-title h2 { font-size: 1.5rem; }

  .price-block { padding: 32px 20px; }
  .price-block .price { font-size: 2.2rem; }

  .cta-banner { padding: 32px 20px; }
  .cta-banner h2 { font-size: 1.4rem; }

  .platforms { grid-template-columns: 1fr; }

  .example-card { flex-direction: column; }

  .content-page h1 { font-size: 1.5rem; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.4rem; }
  .features-grid { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: 1fr; }
}
