/* ФК Кар - Федеральный каршеринг */
/* Основные стили */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --background: #fafaff;
  --foreground: #1e1b4b;
  --card: #ffffff;
  --muted: #f1f0ff;
  --muted-foreground: #64748b;
  --border: #e2e0f5;
  --radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-white {
  background: white;
  color: var(--foreground);
}

.btn-white:hover {
  background: var(--muted);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 48px;
  width: auto;
}

.logo-text {
  font-weight: 700;
  font-size: 20px;
  color: var(--foreground);
}

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

.nav a {
  font-size: 15px;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone-link {
  font-weight: 600;
  color: var(--foreground);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  color: var(--foreground);
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--background) 0%, var(--muted) 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--foreground);
}

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

.hero-content p {
  font-size: 18px;
  color: var(--muted-foreground);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--foreground);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
}

.app-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.app-badge svg {
  width: 28px;
  height: 28px;
}

.app-badge-text {
  text-align: left;
}

.app-badge-text small {
  font-size: 11px;
  opacity: 0.8;
  display: block;
}

.app-badge-text span {
  font-size: 16px;
  font-weight: 600;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.hero-stat-label {
  font-size: 14px;
  color: var(--muted-foreground);
}

/* Section Styles */
.section {
  padding: 80px 0;
}

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

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

.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-title p {
  font-size: 18px;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

/* How It Works */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.step {
  text-align: center;
  padding: 30px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.1);
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.step p {
  font-size: 14px;
  color: var(--muted-foreground);
}

/* Tariffs */
.tariffs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.tariff {
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px 30px;
  border: 2px solid var(--border);
  transition: all 0.3s;
  position: relative;
}

.tariff:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

.tariff.popular {
  border-color: var(--primary);
  transform: scale(1.02);
}

.tariff.popular::before {
  content: 'Популярный';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.tariff h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.tariff-price {
  font-size: 40px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.tariff-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted-foreground);
}

.tariff-desc {
  color: var(--muted-foreground);
  margin-bottom: 24px;
  font-size: 14px;
}

.tariff-features {
  list-style: none;
  margin-bottom: 30px;
}

.tariff-features li {
  padding: 8px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tariff-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
}

/* Cars */
.cars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.car {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.car:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.1);
}

.car-image {
  height: 200px;
  overflow: hidden;
}

.car-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-info {
  padding: 24px;
}

.car-info h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.car-info p {
  color: var(--muted-foreground);
  font-size: 14px;
  margin-bottom: 16px;
}

.car-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.car-price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted-foreground);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature {
  text-align: center;
  padding: 30px 20px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.feature h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.feature p {
  font-size: 14px;
  color: var(--muted-foreground);
}

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

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--card);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--muted);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
  color: var(--primary);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

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

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

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* Contacts */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 24px;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: var(--muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.contact-item-content h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.contact-item-content p,
.contact-item-content a {
  color: var(--muted-foreground);
  font-size: 14px;
}

.contact-item-content a:hover {
  color: var(--primary);
}

.requisites {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--border);
}

.requisites h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.requisites-list {
  display: grid;
  gap: 12px;
}

.requisites-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.requisites-item:last-child {
  border-bottom: none;
}

.requisites-label {
  color: var(--muted-foreground);
}

.requisites-value {
  font-weight: 500;
  text-align: right;
}

/* Footer */
.footer {
  background: var(--foreground);
  color: white;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-top: 16px;
  max-width: 300px;
}

.footer h4 {
  font-size: 16px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.footer-social a:hover {
  background: var(--primary);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

/* Document Pages */
.document {
  padding: 120px 0 80px;
  min-height: 100vh;
}

.document-header {
  margin-bottom: 40px;
}

.document-header h1 {
  font-size: 36px;
  margin-bottom: 16px;
}

.document-header p {
  color: var(--muted-foreground);
}

.document-content {
  max-width: 800px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--border);
}

.document-content h2 {
  font-size: 24px;
  margin: 32px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.document-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.document-content h3 {
  font-size: 18px;
  margin: 24px 0 12px;
}

.document-content p {
  margin-bottom: 16px;
  color: var(--muted-foreground);
}

.document-content ul,
.document-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.document-content li {
  margin-bottom: 8px;
  color: var(--muted-foreground);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 24px;
}

.back-link:hover {
  text-decoration: underline;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: white;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-content h1 {
    font-size: 36px;
  }
  
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tariffs {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .tariff.popular {
    transform: none;
  }
  
  .cars {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contacts-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  .header-actions .btn {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero {
    padding: 100px 0 60px;
  }
  
  .hero-content h1 {
    font-size: 28px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title h2 {
    font-size: 28px;
  }
  
  .steps {
    grid-template-columns: 1fr;
  }
  
  .cars {
    grid-template-columns: 1fr;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .document-content {
    padding: 24px;
  }
  
  .requisites-item {
    flex-direction: column;
    gap: 4px;
  }
  
  .requisites-value {
    text-align: left;
  }
}
