/* fsc-bmw.ru — BMW Corporate Blue / Clean Theme */
/* Wavy SVG dividers + accent bar nav + solid cards + slide-in */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bmw-blue: #0066B1;
  --bmw-dark: #003D6B;
  --bmw-light: #E8F4FD;
  --bmw-sky: #4DA6E8;
  --white: #FFFFFF;
  --bg: #F7F9FC;
  --text: #2C3E50;
  --text-light: #6B7B8D;
  --border: #E2E8F0;
  --max-w: 1140px;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a { color: var(--bmw-blue); text-decoration: none; transition: .2s; }
a:hover { color: var(--bmw-dark); }

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

/* ===== ACCENT BAR + WHITE HEADER ===== */
.accent-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--bmw-blue), var(--bmw-sky), var(--bmw-blue));
}
.header {
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  position: sticky; top: 0; z-index: 100;
}
.header .accent-bar { position: relative; }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 800; color: var(--bmw-blue);
}
.logo-badge {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bmw-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700;
}
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a {
  color: var(--text-light); font-size: .88rem; font-weight: 600;
  transition: color .2s;
}
.nav-links a:hover { color: var(--bmw-blue); }
.burger { display: none; background: none; border: none; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; }
.nav-links.open {
  display: flex; flex-direction: column;
  position: absolute; top: 64px; left: 0; right: 0;
  background: var(--white); padding: 20px 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  gap: 14px;
}

/* ===== HERO WITH DIAGONAL BOTTOM ===== */
.hero {
  background: linear-gradient(135deg, var(--bmw-blue) 0%, var(--bmw-dark) 100%);
  color: #fff; padding: 80px 24px 100px;
  text-align: center; position: relative;
}
.hero::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--bg);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800; line-height: 1.2;
  margin-bottom: 14px;
}
.hero-sub {
  font-size: 1.05rem; opacity: .85;
  max-width: 560px; margin: 0 auto 28px;
}
.hero-price {
  display: inline-flex; align-items: baseline; gap: 8px;
  margin-bottom: 24px;
}
.hero-price .amount { font-size: 2.2rem; font-weight: 800; }
.hero-price .label { font-size: .95rem; opacity: .7; }

/* Buttons with arrows */
.btn-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: var(--white); color: var(--bmw-blue);
  font-weight: 700; font-size: .95rem;
  border: none; border-radius: 8px; cursor: pointer;
  transition: .2s; text-decoration: none;
  font-family: 'Inter', sans-serif;
}
.btn-arrow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  color: var(--bmw-blue);
}
.btn-arrow .arr { transition: transform .2s; }
.btn-arrow:hover .arr { transform: translateX(4px); }

.btn-blue {
  background: var(--bmw-blue); color: #fff;
}
.btn-blue:hover { background: var(--bmw-dark); color: #fff; }

.btn-outline {
  background: transparent; border: 2px solid var(--bmw-blue);
  color: var(--bmw-blue);
}
.btn-outline:hover { background: var(--bmw-blue); color: #fff; }

/* ===== WAVY SVG DIVIDERS ===== */
.wave-top, .wave-bottom {
  display: block; width: 100%; height: 40px;
  position: relative;
}
.wave-top svg, .wave-bottom svg {
  display: block; width: 100%; height: 100%;
}

/* ===== SECTIONS ===== */
section { padding: 64px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800; color: var(--text);
  margin-bottom: 8px;
}
.section-header p { color: var(--text-light); font-size: .95rem; max-width: 520px; margin: 0 auto; }

.bg-blue { background: var(--bmw-blue); color: #fff; }
.bg-blue h2, .bg-blue h3 { color: #fff; }
.bg-blue p { color: rgba(255,255,255,0.8); }
.bg-light { background: var(--bmw-light); }
.bg-white { background: var(--white); }

/* ===== SOLID COLOR CARDS ===== */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.solid-card {
  background: var(--white);
  border-radius: 10px;
  padding: 28px 24px;
  border-left: 4px solid var(--bmw-blue);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: .2s;
}
.solid-card:hover {
  box-shadow: 0 4px 16px rgba(0,102,177,0.1);
  transform: translateX(4px);
}
.solid-card h3 {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; color: var(--text);
}
.solid-card p { color: var(--text-light); font-size: .9rem; }

.solid-card-blue {
  background: rgba(255,255,255,0.1);
  border-left-color: rgba(255,255,255,0.4);
}
.solid-card-blue h3 { color: #fff; }
.solid-card-blue p { color: rgba(255,255,255,0.75); }

/* ===== STEPS ===== */
.steps-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px; counter-reset: step;
}
.step-box {
  text-align: center; counter-increment: step;
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--bmw-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800;
  margin: 0 auto 12px;
}
.step-box h3 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.step-box p { color: var(--text-light); font-size: .85rem; }

/* ===== FAQ DARK SECTION ===== */
.faq-dark { background: #1A2530; padding: 64px 0; }
.faq-dark .section-header h2 { color: #fff; }
.faq-dark .section-header p { color: rgba(255,255,255,0.6); }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.faq-q {
  padding: 16px 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  color: #fff; font-weight: 600; font-size: .95rem;
}
.faq-q:hover { color: var(--bmw-sky); }
.faq-q .icon { color: rgba(255,255,255,0.4); transition: .3s; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); color: var(--bmw-sky); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { color: rgba(255,255,255,0.65); font-size: .9rem; padding-bottom: 16px; line-height: 1.6; }

/* ===== FOOTER WITH CTA BANNER ===== */
.footer-cta {
  background: var(--bmw-blue); color: #fff;
  text-align: center; padding: 40px 24px;
}
.footer-cta h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.footer-cta p { opacity: .8; margin-bottom: 20px; }

.footer {
  background: #1A2530; color: rgba(255,255,255,0.6);
  padding: 32px 0 20px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 32px;
}
.footer-col h4 {
  color: #fff; font-size: .8rem; text-transform: uppercase;
  letter-spacing: 1.5px; margin-bottom: 12px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: rgba(255,255,255,0.5); font-size: .85rem; }
.footer-col a:hover { color: var(--bmw-sky); }
.footer-bottom {
  margin-top: 24px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: .8rem; text-align: center;
}

/* ===== PLATFORM CARDS ===== */
.platform-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.platform-card {
  background: var(--white);
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: .2s; display: block; text-decoration: none;
}
.platform-card:hover {
  border-color: var(--bmw-blue);
  box-shadow: 0 4px 16px rgba(0,102,177,0.1);
}
.platform-card .p-icon { font-size: 2.2rem; margin-bottom: 12px; }
.platform-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.platform-card p { color: var(--text-light); font-size: .88rem; margin-bottom: 16px; }

/* ===== CONTENT (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--bmw-blue), var(--bmw-dark));
  color: #fff; padding: 100px 24px 60px; text-align: center;
  position: relative;
}
.page-hero::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 40px; background: var(--bg);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; margin-bottom: 10px; }
.page-hero p { opacity: .85; max-width: 560px; margin: 0 auto; }

.breadcrumb { padding: 14px 0; font-size: .82rem; color: var(--text-light); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb .current { color: var(--bmw-blue); }

.content-section { padding: 40px 0; }
.content-section h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 14px; color: var(--text); }
.content-section h3 { font-size: 1.1rem; font-weight: 700; margin: 20px 0 8px; color: var(--text); }
.content-section p { font-size: .93rem; margin-bottom: 12px; color: var(--text); line-height: 1.7; }
.content-section ul { margin: 10px 0 14px 20px; }
.content-section li { font-size: .92rem; margin-bottom: 5px; }

/* ===== SLIDE-IN ANIMATIONS ===== */
.slide-left {
  opacity: 0; transform: translateX(-30px);
  transition: opacity .6s ease, transform .6s ease;
}
.slide-right {
  opacity: 0; transform: translateX(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.slide-left.visible, .slide-right.visible {
  opacity: 1; transform: translateX(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .hero { padding: 60px 20px 80px; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 480px) {
  .cards-grid, .steps-row, .platform-grid { grid-template-columns: 1fr; }
}
