/* =============================================
   Автошкола pishinam.ru — Стили
   ============================================= */

:root {
  --navy: #1a2744;
  --navy-light: #243352;
  --accent: #e8b923;
  --accent-hover: #d4a61e;
  --text: #2c2c2c;
  --text-muted: #7a7a7a;
  --bg: #f5f6f8;
  --white: #ffffff;
  --radius: 10px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  margin: 0;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* === HERO === */

.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 80px 0 60px;
  overflow: hidden;
  text-align: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #1e3a5f 100%);
  opacity: 0.95;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 4px 16px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
}
.hero-sub {
  font-size: 1.25rem;
  opacity: 0.85;
  margin: 0 0 30px;
  font-weight: 300;
}
.hero-features {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 0;
  font-size: 0.9rem;
  opacity: 0.7;
}
.hero-features span {
  padding: 0 12px;
}
.hero-dot {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  padding: 0 !important;
}

/* === ADVANTAGES === */

.advantages {
  padding: 60px 0;
}
.adv-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  height: 100%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.adv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.adv-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1;
}
.adv-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.adv-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* === CONTACTS === */

.contacts-section {
  padding: 50px 0 60px;
}
.contacts-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  height: 100%;
}
.contacts-block h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 20px;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.contact-icon {
  font-size: 1.2rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.contact-val {
  color: var(--text);
  text-decoration: none;
}
.contact-val:hover {
  color: var(--navy);
}

.cta-block {
  background: var(--navy);
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-text {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.cta-sub {
  font-size: 0.9rem;
  opacity: 0.7;
  margin: 0 0 20px;
}
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
  width: 100%;
  max-width: 260px;
  text-align: center;
}
.btn-cta:hover {
  background: var(--accent-hover);
  color: var(--navy);
}
.btn-cta-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
}
.btn-cta-outline:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* === FOOTER === */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 20px 0;
  font-size: 0.8rem;
}

/* === ФОРМЫ (Страница формы) === */

.bg-navy {
  background-color: var(--navy);
}

.form-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 12px;
}

.form-page .form-label {
  font-weight: 500;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.form-page .form-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-page .form-control,
.form-page .form-select {
  border-radius: 6px;
  font-size: 16px; /* предотвращает зум на iOS */
  padding: 10px 12px;
}

.form-page .form-control:focus,
.form-page .form-select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 0.2rem rgba(26, 39, 68, 0.15);
}

.form-section {
  background: var(--white);
  border: 1px solid #dee2e6;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 1.25rem;
}

.form-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
  color: var(--navy);
}

/* Загрузка файлов */
.file-drop {
  border: 2px dashed #ced4da;
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.file-drop:hover,
.file-drop.dragover {
  border-color: var(--navy);
  background: #f0f3f7;
}
.file-drop input[type="file"] {
  display: none;
}
.file-drop .file-icon {
  font-size: 2rem;
  color: var(--text-muted);
}
.file-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}
.file-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid #f0f0f0;
}
.file-list .remove-file {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 1.3rem;
  padding: 0 4px;
  min-width: 32px;
  min-height: 32px;
}

/* Статусы */
.submit-status {
  display: none;
  text-align: center;
  padding: 2rem;
}
.submit-status.show {
  display: block;
}
.submit-status .spinner-border {
  width: 3rem;
  height: 3rem;
}
.submit-success {
  color: #198754;
}
.submit-error {
  color: #dc3545;
}

/* Кнопка отправки формы */
.btn-submit {
  background: var(--accent);
  color: var(--navy);
  font-weight: 700;
  padding: 14px 40px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  transition: background 0.2s;
}
.btn-submit:hover {
  background: var(--accent-hover);
  color: var(--navy);
}

/* Required asterisk */
.required::after {
  content: " *";
  color: #dc3545;
}

/* === МОБИЛЬНАЯ АДАПТАЦИЯ === */

@media (max-width: 768px) {
  .hero {
    padding: 50px 0 40px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero-sub {
    font-size: 1rem;
  }
  .hero-features {
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
  }
  .hero-dot {
    display: none;
  }

  .advantages {
    padding: 40px 0;
  }
  .adv-card {
    padding: 20px 18px;
  }

  .contacts-section {
    padding: 0 0 40px;
  }
  .contacts-block {
    padding: 24px 20px;
  }

  /* Форма — мобильная */
  .form-section {
    padding: 16px 14px;
    margin-bottom: 1rem;
  }
  .form-section-title {
    font-size: 1rem;
  }
  .form-page .form-label {
    font-size: 0.9rem;
  }
  .form-page .form-control,
  .form-page .form-select {
    font-size: 16px;
    padding: 12px;
  }
  .form-page .row.g-3 > [class*="col-md"] {
    margin-bottom: 0;
  }

  .file-drop {
    padding: 16px 12px;
  }
  .file-drop .file-icon {
    font-size: 1.5rem;
  }

  /* Кнопка отправки на полную ширину */
  .form-page .btn-lg {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
  }
}

@media (max-width: 375px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  .form-section {
    padding: 14px 12px;
  }
}
