/* FordHere — светлая тема, боковая навигация, сине-серый */
:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1a1d23;
  --muted: #5c6370;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --side: #1e293b;
  --font-head: 'Montserrat', sans-serif;
  --font-txt: 'Source Sans 3', sans-serif;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-txt);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  min-height: 100vh;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  padding: 1rem 2rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.cookie-banner p { color: var(--muted); font-size: 0.9rem; }
.cookie-banner a { color: var(--primary); }
.cookie-btn { background: var(--primary); color: #fff; border: none; padding: 0.6rem 1.2rem; border-radius: var(--radius); font-weight: 600; cursor: pointer; font-family: var(--font-txt); }

.sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--side);
  color: #e2e8f0;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
}
.side-logo { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: #fff; text-decoration: none; padding: 0 1.5rem; margin-bottom: 2rem; }
.side-nav { flex: 1; }
.side-nav a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #94a3b8;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.side-nav a:hover, .side-nav a.active { background: rgba(255,255,255,0.08); color: #fff; }
.side-footer { padding: 1rem 1.5rem; font-size: 0.85rem; color: #64748b; }

.main-wrap { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.top-bar {
  background: var(--card);
  padding: 1rem 2rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }
.top-title { font-family: var(--font-head); font-size: 1rem; color: var(--muted); }

.hero-big {
  position: relative;
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,41,59,0.85) 0%, transparent 60%); }
.hero-overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 4rem;
  color: #fff;
  max-width: 700px;
}
.hero-overlay h1 { font-family: var(--font-head); font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; line-height: 1.2; }
.hero-overlay p { margin-bottom: 1.5rem; opacity: 0.95; }
.cta-btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.2s;
  align-self: flex-start;
}
.cta-btn:hover { background: var(--primary-dark); }
.cta-btn.outline { background: transparent; border: 2px solid #fff; }
.cta-btn.outline:hover { background: #fff; color: var(--side); }

.tabs-block {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.tabs-block h2 { font-family: var(--font-head); margin-bottom: 1.5rem; }
.tabs-head { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.tab-btn {
  padding: 0.6rem 1.2rem;
  border: 1px solid #e2e8f0;
  background: var(--card);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-txt);
  font-weight: 500;
  color: var(--muted);
  transition: all 0.2s;
}
.tab-btn:hover, .tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tab-panel { display: none; padding: 1.5rem; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.tab-panel.active { display: block; }
.tab-panel p { margin-bottom: 1rem; color: var(--muted); }
.tab-panel img { width: 100%; max-width: 500px; border-radius: var(--radius); margin-top: 0.5rem; }

.strip {
  background: var(--side);
  color: #fff;
  padding: 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.strip p { font-family: var(--font-head); font-size: 1.1rem; }

.main-footer {
  padding: 2.5rem 2rem;
  background: var(--card);
  border-top: 1px solid #e2e8f0;
}
.main-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 2rem;
  align-items: start;
}
.main-footer .footer-col strong { display: block; margin-bottom: 0.5rem; color: var(--text); }
.main-footer .footer-col p { color: var(--muted); font-size: 0.9rem; max-width: 280px; }
.main-footer .footer-col a { display: block; color: var(--muted); text-decoration: none; margin-bottom: 0.4rem; font-size: 0.95rem; }
.main-footer .footer-col a:hover { color: var(--primary); }
.footer-label { display: block; color: var(--muted); font-size: 0.85rem; margin-bottom: 0.75rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: #f1f5f9; color: var(--muted);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { max-width: 1200px; margin: 1.5rem auto 0; padding-top: 1rem; border-top: 1px solid #e2e8f0; color: var(--muted); font-size: 0.85rem; text-align: center; }
@media (max-width: 768px) { .main-footer-inner { grid-template-columns: 1fr; } }

/* Page common */
.page-content { padding: 2rem 4rem 4rem; max-width: 900px; margin: 0 auto; }
.page-title { font-family: var(--font-head); margin-bottom: 0.5rem; }
.page-sub { color: var(--muted); margin-bottom: 2rem; }
.content-block { margin-bottom: 2rem; }
.content-block h2 { font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 0.75rem; }
.content-block p { color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.25rem; font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 0.75rem; border: 1px solid #e2e8f0; border-radius: var(--radius); font-family: var(--font-txt); }
.map-frame { border-radius: var(--radius); overflow: hidden; height: 350px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.faq-block { margin-bottom: 1rem; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.faq-q { width: 100%; padding: 1rem 1.25rem; text-align: left; border: none; background: none; font-family: var(--font-txt); font-size: 1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: '+'; font-size: 1.25rem; color: var(--primary); }
.faq-block.open .faq-q::after { content: '−'; }
.faq-a { padding: 0 1.25rem 1rem; color: var(--muted); display: none; }
.faq-block.open .faq-a { display: block; }
.thank-block { text-align: center; padding: 4rem 2rem; }
.thank-block h1 { font-family: var(--font-head); margin-bottom: 0.5rem; }
.thank-block p { color: var(--muted); margin-bottom: 1rem; }
.legal-text h2 { font-family: var(--font-head); margin: 1.5rem 0 0.5rem; font-size: 1.1rem; }
.err-page { text-align: center; padding: 4rem 2rem; }
.err-page h1 { font-family: var(--font-head); font-size: 4rem; margin-bottom: 0.5rem; }

@media (max-width: 900px) {
  .sidebar { position: fixed; left: -260px; top: 0; bottom: 0; z-index: 100; transition: left 0.3s; }
  .sidebar.open { left: 0; }
  .menu-btn { display: block; }
  .hero-overlay { padding: 2rem; }
  .strip { padding: 2rem; flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; }
  .page-content { padding: 2rem; }
}
