/* ============================================
   成都幸福飞车汽车服务有限公司 - 官网样式
   域名: 91baofei.com
   ============================================ */

:root {
  --primary: #0c2340;
  --primary-light: #1a3a5c;
  --accent: #e8a317;
  --accent-hover: #d4920f;
  --eco: #1a9b6c;
  --eco-light: #e8f7f1;
  --text: #2d3748;
  --text-light: #718096;
  --text-muted: #a0aec0;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --bg-dark: #0a1a2e;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(12, 35, 64, 0.08);
  --shadow-lg: 0 12px 48px rgba(12, 35, 64, 0.15);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --header-h: 72px;
  --max-w: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

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

ul, ol {
  list-style: none;
}

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

/* ========== Top Bar ========== */
.top-bar {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

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

.top-bar__left,
.top-bar__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========== Header & Navigation ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  height: var(--header-h);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.logo__icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -1px;
}

.logo__text {
  display: flex;
  flex-direction: column;
}

.logo__name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  white-space: nowrap;
}

.logo__domain {
  font-size: 0.6875rem;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

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

.nav__item {
  position: relative;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link.active {
  color: var(--primary);
  background: var(--bg-alt);
}

.nav__link .arrow {
  font-size: 0.625rem;
  transition: transform var(--transition);
}

.nav__item:hover .arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.nav__item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown__link {
  display: block;
  padding: 10px 20px;
  font-size: 0.875rem;
  color: var(--text);
  transition: all var(--transition);
}

.dropdown__link:hover {
  background: var(--bg-alt);
  color: var(--primary);
  padding-left: 24px;
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all var(--transition);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== Hero Section ========== */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #1e4d7b 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(232, 163, 23, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(26, 155, 108, 0.1) 0%, transparent 50%);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg), transparent);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero__content {
  color: #fff;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.8125rem;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--eco);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero__title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

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

.hero__desc {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 520px;
}

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

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__card-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.hero__card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #fff;
}

.hero__card-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.hero__card-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.hero__card-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.hero__stat {
  text-align: center;
  padding: 16px 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.hero__stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.hero__stat-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

/* Page Hero (subpages) */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 60px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 163, 23, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

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

.breadcrumb__sep {
  color: rgba(255, 255, 255, 0.4);
}

.page-hero__title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero__desc {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 163, 23, 0.35);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn--dark {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn--dark:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--eco {
  background: var(--eco);
  color: #fff;
  border-color: var(--eco);
}

.btn--eco:hover {
  background: #158f63;
  transform: translateY(-2px);
}

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

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

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1.0625rem;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto;
}

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

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

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

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

.card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.card__icon--blue { background: #e8f0fe; }
.card__icon--orange { background: #fef3e2; }
.card__icon--green { background: var(--eco-light); }
.card__icon--purple { background: #f0e8fe; }
.card__icon--red { background: #fee8e8; }
.card__icon--teal { background: #e0f5f0; }

.card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.card__desc {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

.card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card__link:hover {
  gap: 8px;
}

/* ========== Process Steps ========== */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.process::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--eco));
  z-index: 0;
}

.process__step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 12px;
}

.process__num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 auto 16px;
  transition: all var(--transition);
}

.process__step:hover .process__num {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1);
}

.process__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.process__desc {
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* ========== Feature List ========== */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.feature-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.feature-item__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-item__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.feature-item__desc {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* ========== Sub Navigation (二级菜单页内导航) ========== */
.sub-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--header-h);
  z-index: 99;
}

.sub-nav__list {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 12px 0;
  -webkit-overflow-scrolling: touch;
}

.sub-nav__link {
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  border-radius: 50px;
  white-space: nowrap;
  transition: all var(--transition);
}

.sub-nav__link:hover,
.sub-nav__link.active {
  background: var(--primary);
  color: #fff;
}

/* ========== Content Block ========== */
.content-block {
  padding: 60px 0;
}

.content-block:nth-child(even) {
  background: var(--bg-alt);
}

.content-block__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.content-block__inner--reverse {
  direction: rtl;
}

.content-block__inner--reverse > * {
  direction: ltr;
}

.content-block__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--eco);
  background: var(--eco-light);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.content-block__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.content-block__text {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.8;
}

.content-block__list {
  margin: 20px 0;
}

.content-block__list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 0.9375rem;
  color: var(--text);
}

.content-block__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--eco);
  font-weight: 700;
}

.content-block__visual {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: #fff;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content-block__visual-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.content-block__visual-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.content-block__visual-desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ========== Stats Bar ========== */
.stats-bar {
  background: var(--primary);
  padding: 48px 0;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  color: #fff;
}

.stats-bar__num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stats-bar__label {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 8px;
}

/* ========== CTA ========== */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, #1e4d7b 100%);
  padding: 80px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(232, 163, 23, 0.1) 0%, transparent 60%);
}

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

.cta__title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta__desc {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== Contact Form ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info__item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  background: var(--bg-alt);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 4px;
}

.contact-info__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 163, 23, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

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

/* ========== Table ========== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.data-table th,
.data-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 0.9375rem;
}

.data-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.data-table tr:nth-child(even) {
  background: var(--bg-alt);
}

.data-table tr:hover {
  background: #edf2f7;
}

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

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

.faq-item__question {
  width: 100%;
  padding: 20px 24px;
  background: var(--bg);
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  transition: background var(--transition);
}

.faq-item__question:hover {
  background: var(--bg-alt);
}

.faq-item__icon {
  font-size: 1.25rem;
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}

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

.faq-item__answer p {
  padding: 0 24px 20px;
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ========== Footer ========== */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 64px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand-desc {
  font-size: 0.875rem;
  line-height: 1.8;
  margin: 16px 0 20px;
  color: rgba(255, 255, 255, 0.6);
}

.footer__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition);
}

.footer__links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer__contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.875rem;
}

.footer__bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

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

/* ========== Back to Top ========== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  background: var(--accent-hover);
}

/* ========== Animations ========== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .card-grid,
  .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .process {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .process::before {
    display: none;
  }

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

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    display: none;
  }

  .content-block__inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .top-bar {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px;
    gap: 0;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav__link {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    display: none;
    background: var(--bg-alt);
    border-radius: 0;
  }

  .nav__item.open .dropdown {
    display: block;
  }

  .nav__item.open .arrow {
    transform: rotate(180deg);
  }

  .hero {
    min-height: auto;
    padding: 40px 0;
  }

  .hero__title {
    font-size: 1.875rem;
  }

  .section {
    padding: 56px 0;
  }

  .section__title {
    font-size: 1.5rem;
  }

  .card-grid,
  .card-grid--4,
  .card-grid--2,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .process {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .logo__name {
    font-size: 0.875rem;
  }

  .page-hero__title {
    font-size: 1.75rem;
  }
}
