/* ==========================================================================
   AutoDetailia — базові стилі
   ========================================================================== */

:root {
  --bg: #0b0d10;
  --bg-alt: #101317;
  --bg-card: #171b20;
  --bg-card-hover: #1d2229;
  --border: #262b32;
  --text: #f2f3f5;
  --text-muted: #a3a9b3;
  --text-faint: #6b7280;
  --accent: #d99a2b;
  --accent-hover: #f0af38;
  --accent-dark: #8a5e10;
  --white: #ffffff;
  --success: #3fbf6f;
  --danger: #e5484d;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

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

section {
  padding: 88px 0;
}

@media (max-width: 768px) {
  section { padding: 56px 0; }
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.section-head p {
  font-size: 17px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #191008;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 13, 16, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
}

.logo .logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #191008;
  font-weight: 900;
  font-size: 18px;
}

.logo span.accent {
  color: var(--accent);
}

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

.main-nav a {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s ease, background 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: var(--bg-card);
}

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

.header-phone {
  display: flex;
  flex-direction: column;
  text-align: right;
  font-size: 14px;
}

.header-phone a {
  font-weight: 800;
  font-size: 16px;
  color: var(--white);
}

.header-phone small {
  color: var(--text-faint);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

@media (max-width: 960px) {
  .main-nav {
    position: fixed;
    inset: 78px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }

  .main-nav a {
    padding: 14px 16px;
    font-size: 17px;
  }

  .header-phone {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 100px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,13,16,0.55) 0%, rgba(11,13,16,0.85) 60%, var(--bg) 100%), var(--img, none);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 154, 43, 0.12);
  border: 1px solid rgba(217, 154, 43, 0.4);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  color: var(--white);
  margin-bottom: 20px;
}

.hero p.lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
}

.hero-stats div strong {
  display: block;
  font-size: 28px;
  color: var(--white);
  font-weight: 800;
}

.hero-stats div span {
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 64px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,13,16,0.75), rgba(11,13,16,0.94)), var(--img, none);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow {
  margin-bottom: 10px;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(30px, 4.6vw, 46px);
}

.breadcrumbs {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-faint);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 26px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 154, 43, 0.4);
  background: var(--bg-card-hover);
}

.card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-img img {
  transform: scale(1.06);
}

.card-body {
  padding: 22px 24px 26px;
}

.card-body h3 {
  font-size: 19px;
  color: var(--white);
}

.card-body p {
  font-size: 14.5px;
  margin-bottom: 14px;
}

.card-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 4px;
}

.card-price strong {
  color: var(--accent);
  font-size: 16px;
}

.card-link {
  font-weight: 700;
  color: var(--accent);
  font-size: 14px;
}

/* Feature / icon cards */
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(217, 154, 43, 0.14);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
}

.feature h3 {
  font-size: 17px;
  color: var(--white);
  margin-bottom: 8px;
}

.feature p {
  font-size: 14.5px;
  margin: 0;
}

/* ---------- Alternating content rows ---------- */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.row.reverse .row-media { order: 2; }
.row.reverse .row-text { order: 1; }

@media (max-width: 860px) {
  .row, .row.reverse .row-media, .row.reverse .row-text {
    order: initial;
  }
  .row {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.row-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.row-text .eyebrow {
  margin-bottom: 10px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 15px;
}

.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(217, 154, 43, 0.16);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ---------- Stats bar ---------- */
.stats-bar {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-bar .grid {
  padding: 40px 0;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 34px;
  color: var(--accent);
  font-weight: 800;
}

.stat span {
  font-size: 14px;
  color: var(--text-faint);
}

/* ---------- Pricing table ---------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.price-table th,
.price-table td {
  padding: 16px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.price-table th {
  background: var(--bg-alt);
  color: var(--text-faint);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table td.price {
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
  text-align: right;
}

.price-table-wrap {
  overflow-x: auto;
  margin-bottom: 18px;
}

.price-note {
  font-size: 14px;
  color: var(--text-faint);
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 26px 22px;
}

.stars {
  color: var(--accent);
  font-size: 15px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial p {
  color: var(--text);
  font-size: 15px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #191008;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 14.5px;
  color: var(--white);
}

.testimonial-author span {
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- Gallery ---------- */
.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(11, 13, 16, 0.75);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}

.filter-btn {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  color: var(--white);
  border-color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #191008;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, #1b1409, var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(24px, 3.4vw, 34px);
}

.cta-band p {
  max-width: 520px;
  margin: 0 auto 28px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 620px) {
  .cta-band { padding: 36px 22px; }
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

@media (max-width: 620px) {
  .form-card { padding: 22px; }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 620px) {
  .form-row { grid-template-columns: 1fr; }
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.field label .req {
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 15px;
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font);
  transition: border-color 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-faint);
}

.field-check input {
  margin-top: 3px;
  width: auto;
}

.field-check a {
  color: var(--accent);
}

.form-note {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 14px;
  text-align: center;
}

.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 18px;
}

.form-status.show {
  display: block;
}

.form-status.ok {
  background: rgba(63, 191, 111, 0.12);
  border: 1px solid rgba(63, 191, 111, 0.4);
  color: var(--success);
}

.form-status.err {
  background: rgba(229, 72, 77, 0.12);
  border: 1px solid rgba(229, 72, 77, 0.4);
  color: var(--danger);
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 700;
  color: var(--white);
  font-size: 15.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 20px;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-body {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 14.5px;
}

/* ---------- Contact info blocks ---------- */
.contact-block {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.contact-block:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(217, 154, 43, 0.14);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 19px;
}

.contact-block h4 {
  font-size: 15px;
  color: var(--white);
  margin-bottom: 4px;
}

.contact-block p {
  margin: 0;
  font-size: 14.5px;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 15px;
  transition: all 0.15s ease;
}

.social-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-grid h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 18px;
}

.footer-grid li {
  margin-bottom: 10px;
}

.footer-grid a {
  color: var(--text-muted);
  font-size: 14.5px;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-about p {
  font-size: 14.5px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-faint);
}

.footer-bottom a {
  color: var(--text-faint);
}

.footer-bottom a:hover {
  color: var(--accent);
}

.footer-bottom-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2000;
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  display: none;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  font-size: 13.5px;
  flex: 1 1 260px;
}

.cookie-banner a {
  color: var(--accent);
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-actions button {
  padding: 9px 18px;
  font-size: 13.5px;
}

/* ---------- Misc pages ---------- */
.simple-page {
  max-width: 820px;
  margin: 0 auto;
}

.simple-page h2 {
  font-size: 24px;
  color: var(--white);
  margin-top: 40px;
}

.simple-page h2:first-child {
  margin-top: 0;
}

.simple-page ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 16px;
}

.simple-page li {
  color: var(--text-muted);
  margin-bottom: 8px;
}

.error-page {
  text-align: center;
  padding: 120px 0;
}

.error-page .code {
  font-size: 96px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 100%;
  min-height: 320px;
  background: var(--bg-card) center / cover;
  display: flex;
  align-items: flex-end;
  padding: 22px;
}

.map-embed span {
  background: rgba(11,13,16,0.8);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.badge {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
}
