/* =========================================================
   Автошкола СТАРТ — головний стиль
   ========================================================= */

:root {
  --navy: #13213c;
  --navy-light: #1d3258;
  --amber: #f5a623;
  --amber-dark: #d88c0f;
  --white: #ffffff;
  --gray-50: #f7f8fa;
  --gray-100: #eef0f4;
  --gray-300: #ced3dd;
  --gray-500: #717d94;
  --gray-700: #3a4258;
  --text: #1c2333;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(19, 33, 60, 0.12);
  --shadow-sm: 0 4px 14px rgba(19, 33, 60, 0.08);
  --max-width: 1180px;
  font-size: 16px;
}

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

body {
  margin: 0;
  font-family: "Segoe UI", Verdana, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

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

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

h1, h2, h3, h4 {
  margin: 0 0 16px;
  line-height: 1.25;
  color: var(--navy);
  font-weight: 800;
}

h1 { font-size: clamp(32px, 5vw, 50px); }
h2 { font-size: clamp(26px, 4vw, 36px); }
h3 { font-size: 21px; }

p { margin: 0 0 16px; color: var(--gray-700); }

ul { margin: 0; padding: 0; }
li { list-style: none; }

.section { padding: 72px 0; }
.section-alt { background: var(--gray-50); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head p { margin: 0; }
.eyebrow {
  display: inline-block;
  color: var(--amber-dark);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: var(--amber-dark); box-shadow: var(--shadow-sm); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-light); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gray-100);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--navy);
}
.logo img { width: 40px; height: 40px; }
.logo span { color: var(--amber-dark); }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}
.nav a.active,
.nav a:hover { color: var(--amber-dark); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.phone-link { font-weight: 700; color: var(--navy); font-size: 15px; white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(135deg, rgba(19,33,60,.92), rgba(19,33,60,.78)), var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: .55;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 76px;
}
.hero h1 { color: var(--white); }
.hero p.lead { color: var(--gray-100); font-size: 18px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-stats div strong { display: block; font-size: 26px; color: var(--amber); }
.hero-stats div span { font-size: 13px; color: var(--gray-300); }

/* Mini lead form card in hero */
.lead-card {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.lead-card h3 { margin-bottom: 4px; }
.lead-card .muted { font-size: 14px; color: var(--gray-500); margin-bottom: 18px; }

/* ---------- Page header (non-home pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.breadcrumbs { font-size: 14px; color: var(--gray-300); }
.breadcrumbs a { color: var(--amber); }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(245, 166, 35, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-item .icon {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 10px;
  background: rgba(245,166,35,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.feature-item h4 { margin-bottom: 4px; }
.feature-item p { margin: 0; font-size: 15px; }

/* Media + text split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; }
.split.reverse .split-media { order: 2; }

/* Course cards */
.course-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.course-card .tag {
  align-self: flex-start;
  background: var(--navy);
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.course-card .price {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin: 10px 0 4px;
}
.course-card .price span { font-size: 14px; color: var(--gray-500); font-weight: 500; }
.course-card ul { margin: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.course-card ul li { display: flex; gap: 10px; font-size: 14.5px; color: var(--gray-700); }
.course-card ul li::before { content: "✓"; color: var(--amber-dark); font-weight: 800; }
.course-card .btn { margin-top: auto; }
.course-card.featured { border-color: var(--amber); position: relative; }
.course-card.featured::before {
  content: "Популярний";
  position: absolute;
  top: -13px; right: 24px;
  background: var(--amber);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; }
.step { text-align: center; position: relative; }
.step .num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy); color: var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 19px;
  margin: 0 auto 14px;
}
.step h4 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13.5px; }

/* Instructor cards */
.person-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}
.person-card img { width: 100%; height: 240px; object-fit: cover; }
.person-card .body { padding: 22px; }
.person-card .role { color: var(--amber-dark); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.person-card .meta { display: flex; gap: 14px; font-size: 13px; color: var(--gray-500); margin-top: 10px; flex-wrap: wrap; }

/* Testimonials */
.quote-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}
.quote-card .stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 12px; }
.quote-card .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote-card .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.quote-card .who strong { display: block; font-size: 14.5px; color: var(--navy); }
.quote-card .who span { font-size: 13px; color: var(--gray-500); }

/* CTA band */
.cta-band {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--white);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(19,33,60,.92), rgba(19,33,60,.75)), var(--navy);
}
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .5; }
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: var(--gray-100); margin-bottom: 0; }

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid var(--gray-100);
  padding: 20px 0;
}
.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 0;
}
.faq-item .plus { font-size: 22px; color: var(--amber-dark); transition: transform .2s ease; flex: 0 0 auto; }
.faq-item[data-open="true"] .plus { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-answer p { padding-top: 14px; margin: 0; }

/* ---------- Forms ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--gray-300);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber);
}
.field textarea { resize: vertical; min-height: 110px; }
.checkbox-field { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--gray-500); margin: 14px 0 18px; }
.checkbox-field input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; }
.checkbox-field a { color: var(--amber-dark); font-weight: 700; }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.form-msg {
  display: none;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 16px;
}
.form-msg.show { display: block; }
.form-msg.success { background: #e8f6ea; color: #1e7a34; }
.form-msg.error { background: #fdeaea; color: #b42318; }

/* ---------- Contact info list ---------- */
.info-list { display: flex; flex-direction: column; gap: 22px; }
.info-list .row { display: flex; gap: 16px; align-items: flex-start; }
.info-list .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(245,166,35,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex: 0 0 auto;
}
.info-list h4 { margin-bottom: 4px; font-size: 15.5px; }
.info-list p { margin: 0; font-size: 14.5px; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  height: 340px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Price table ---------- */
.price-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-table th, .price-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--gray-100); font-size: 15px; }
.price-table th { background: var(--navy); color: var(--white); font-weight: 700; }
.price-table tr:last-child td { border-bottom: none; }
.price-table td strong { color: var(--navy); }
.table-wrap { overflow-x: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--gray-300); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-grid h4 { color: var(--white); font-size: 15px; margin-bottom: 18px; }
.footer-grid .logo { color: var(--white); margin-bottom: 14px; }
.footer-grid p { color: var(--gray-300); font-size: 14px; }
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { font-size: 14px; color: var(--gray-300); }
.footer-grid a:hover { color: var(--amber); }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--amber); color: var(--navy); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 13px;
  color: var(--gray-500);
}
.footer-bottom a { color: var(--gray-500); }
.footer-bottom a:hover { color: var(--amber); }

/* ---------- Misc ---------- */
.badge-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.badge-row .badge { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--navy); background: var(--gray-50); padding: 8px 14px; border-radius: 999px; }

.legal-content h2 { margin-top: 36px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content ul { padding-left: 20px; margin-bottom: 16px; }
.legal-content li { list-style: disc; margin-bottom: 8px; color: var(--gray-700); }

.center { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .phone-link { display: none; }
  .hero .container { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .site-header .container { position: relative; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
  }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 52px 0; }
}
