/* 世纪安泰驾校 — 高端视觉 */

:root {
  --red: #B41C2B;
  --red-dark: #8E1521;
  --red-soft: #D94A56;
  --gold: #C9A24A;
  --gold-light: #E8D5A3;
  --green: #1F8A4C;
  --ink: #1C1414;
  --ink-soft: #3A2F2F;
  --cream: #F7F3EC;
  --paper: #FFFBF6;
  --line: #E6DCC8;
  --muted: #7A6E62;
  --white: #FFFFFF;
  --shadow: 0 18px 50px rgba(28, 20, 20, 0.12);
  --shadow-lg: 0 30px 80px rgba(28, 20, 20, 0.18);
  --radius: 10px;
  --radius-lg: 18px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 78px;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
  --en: "Cinzel", serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.75;
  background: var(--cream);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul, ol { list-style: none; }
button { font-family: inherit; }

.page-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 4000;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(180deg, #C52836 0%, var(--red) 100%);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(180, 28, 43, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(180, 28, 43, 0.38);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--red);
}

.btn-white:hover {
  background: var(--gold-light);
  color: var(--ink);
}

.btn-ghost {
  width: 100%;
  background: transparent;
  color: var(--red);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--red);
  background: rgba(180, 28, 43, 0.05);
}

.btn-lg { padding: 15px 34px; }
.btn-block { width: 100%; }

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(18, 10, 10, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(201, 162, 74, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #E03A48, var(--red));
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 2px rgba(201,162,74,0.45), 0 8px 16px rgba(180,28,43,0.35);
}

.logo-text { display: flex; flex-direction: column; color: var(--white); }
.logo-text strong { font-family: var(--serif); font-size: 1.08rem; font-weight: 700; line-height: 1.2; }
.logo-text small { font-family: var(--en); font-size: 0.52rem; letter-spacing: 0.18em; opacity: 0.65; }

.nav { display: flex; gap: 26px; }
.nav a {
  color: rgba(255,255,255,0.78);
  font-size: 0.86rem;
  font-weight: 500;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav a:hover, .nav a.active { color: var(--white); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}
.header-cta { padding: 9px 20px; font-size: 0.82rem; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--white); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--header-h);
  background: #140C0C;
  margin: 0;
}

.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: translateZ(0);
  backface-visibility: hidden;
  filter: contrast(1.04) saturate(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 6, 6, 0.28) 0%, rgba(12, 6, 6, 0.08) 42%, rgba(12, 6, 6, 0.62) 100%),
    linear-gradient(90deg, rgba(12, 6, 6, 0.32) 0%, transparent 58%);
}
.hero-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.22);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 28px 48px;
  color: var(--white);
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--en);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--gold-light);
  margin-bottom: 22px;
}
.hero-kicker span {
  display: block;
  width: 36px; height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 22px;
}
.hero-title span {
  display: block;
  background: linear-gradient(90deg, var(--gold-light), #fff 40%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.82);
  max-width: 620px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-bottom {
  position: relative;
  z-index: 1;
  background: #140C0C;
}

.hero-stats-bar {
  background: transparent;
  border-top: 1px solid rgba(201,162,74,0.25);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 28px 28px 20px;
}
.stat-item { padding: 0 12px; border-left: 1px solid rgba(255,255,255,0.12); }
.stat-item:first-child { border-left: none; padding-left: 0; }
.stat-item strong {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item em { font-style: normal; color: var(--gold); font-size: 1.2rem; }
.stat-item span { color: rgba(255,255,255,0.58); font-size: 0.82rem; }

/* Trust strip */
.trust-strip {
  background: #140C0C;
  color: var(--gold-light);
  overflow: hidden;
  margin: 0;
  border-top: 1px solid rgba(201,162,74,0.18);
  border-bottom: 1px solid rgba(201,162,74,0.2);
}
.trust-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 28px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.trust-inner span { opacity: 0.85; }
.trust-inner span::before {
  content: "◆";
  color: var(--gold);
  margin-right: 10px;
  font-size: 0.6rem;
}

/* Sections */
.section { padding: 108px 0; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header.left { text-align: left; margin-bottom: 36px; }
.section-header.light .section-title { color: var(--white); }
.section-header.light .section-subtitle { color: rgba(255,255,255,0.62); }

.section-tag {
  display: block;
  font-family: var(--en);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.section-subtitle { color: var(--muted); font-size: 1rem; }

.ornament {
  width: 72px; height: 10px;
  margin: 18px auto 0;
  background:
    linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative;
}
.ornament::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 6px; height: 6px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--gold);
}
.ornament.light { background: linear-gradient(90deg, transparent, var(--gold-light), transparent); }
.ornament.left { margin-left: 0; }

/* About */
.about { background: var(--paper); }
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  position: relative;
  padding: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.about-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.frame-corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 1.5px solid var(--gold);
}
.frame-corner.tl { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.frame-corner.tr { top: 6px; right: 6px; border-left: 0; border-bottom: 0; }
.frame-corner.bl { bottom: 6px; left: 6px; border-right: 0; border-top: 0; }
.frame-corner.br { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }

.about-quote {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--red);
  border-left: 2px solid var(--gold);
  padding-left: 16px;
  margin-bottom: 22px;
}

.about-content .lead {
  font-size: 1.08rem;
  margin-bottom: 16px;
}
.about-content p { color: var(--ink-soft); margin-bottom: 14px; }
.about-content strong { color: var(--red); font-weight: 700; }

.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.about-tags span {
  padding: 7px 16px;
  border: 1px solid var(--line);
  background: var(--cream);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* Strength */
.strength {
  position: relative;
  background: #140C0C;
  overflow: hidden;
}
.strength-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(180,28,43,0.22), transparent 45%),
    radial-gradient(ellipse at 85% 80%, rgba(201,162,74,0.12), transparent 40%);
}
.strength-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.strength-card {
  position: relative;
  padding: 32px 24px 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(201,162,74,0.16);
  transition: transform var(--transition), border-color var(--transition);
}
.strength-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201,162,74,0.5);
}
.strength-index {
  position: absolute;
  top: 16px; right: 18px;
  font-family: var(--en);
  color: rgba(201,162,74,0.28);
  font-size: 1.1rem;
}
.strength-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  margin-bottom: 18px;
}
.strength-icon svg { width: 24px; height: 24px; }
.strength-card h3 { color: var(--white); font-family: var(--serif); font-size: 1.12rem; margin-bottom: 10px; }
.strength-card p { color: rgba(255,255,255,0.58); font-size: 0.88rem; }

/* Courses */
.courses { background: var(--cream); }
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
  align-items: stretch;
}
.course-card {
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(28,20,20,0.06);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(168, 32, 40, 0.35);
}
.course-photo { position: relative; height: 180px; overflow: hidden; }
.course-photo img { width: 100%; height: 100%; object-fit: cover; }
.course-type {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--ink);
  color: var(--gold-light);
  padding: 4px 12px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.course-card.featured .course-type { background: var(--red); color: var(--white); }
.course-body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 4px; }
.course-sub { color: var(--muted); font-size: 0.86rem; margin-bottom: 16px; }
.course-features { flex: 1; margin-bottom: 22px; }
.course-features li {
  padding: 9px 0 9px 22px;
  position: relative;
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.course-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 8px; height: 8px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.packages-title {
  text-align: center;
  font-family: var(--serif);
  margin-bottom: 28px;
}
.packages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.package-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.package-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--gold-light);
  font-family: var(--serif);
  font-weight: 700;
}
.package-item h4 { font-size: 1.02rem; margin-bottom: 4px; }
.package-item p { font-size: 0.85rem; color: var(--muted); }

/* Process */
.process { background: var(--paper); }
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: none;
}
.process-list li {
  position: relative;
  padding: 8px 28px 8px 0;
  text-align: left;
}
.process-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px; right: 12px;
  width: calc(100% - 70px);
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.process-list span {
  display: block;
  font-family: var(--en);
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.process-list strong { display: block; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 6px; }
.process-list p { color: var(--muted); font-size: 0.88rem; }

/* Advantages */
.advantages { background: var(--cream); }
.advantages-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.advantages-visual { position: relative; box-shadow: var(--shadow-lg); }
.advantages-visual img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.advantages-float {
  position: absolute;
  right: 20px; bottom: 20px;
  background: var(--red);
  color: var(--white);
  padding: 16px 22px;
  text-align: right;
}
.advantages-float strong { display: block; font-family: var(--serif); font-size: 1.25rem; }
.advantages-float span { font-size: 0.78rem; opacity: 0.85; }

.advantage-list { display: flex; flex-direction: column; gap: 8px; }
.advantage-item {
  display: flex;
  gap: 18px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--line);
}
.advantage-num {
  font-family: var(--en);
  color: var(--gold);
  font-size: 1.1rem;
  min-width: 36px;
}
.advantage-item h4 { font-family: var(--serif); margin-bottom: 4px; }
.advantage-item p { font-size: 0.88rem; color: var(--muted); }

/* Gallery */
.gallery { background: var(--paper); }
.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 14px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000;
}
.gallery-item.large { grid-row: span 2; }
.gallery-item.wide { grid-column: 2 / -1; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  min-height: 100%;
  transition: transform 0.8s ease, filter 0.4s;
  filter: saturate(0.92);
}
.gallery-item:hover img { transform: scale(1.06); filter: saturate(1.05); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 20px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  color: var(--white);
  font-size: 0.88rem;
  text-align: left;
}

/* CTA */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background: var(--red-dark);
}
.cta-banner-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 50%, rgba(201,162,74,0.22), transparent 45%),
    linear-gradient(90deg, var(--red-dark), var(--red));
}
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-kicker {
  font-family: var(--en);
  letter-spacing: 0.28em;
  color: var(--gold-light);
  font-size: 0.72rem;
  margin-bottom: 8px;
}
.cta-text h2 { font-family: var(--serif); color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-text p:last-child { color: rgba(255,255,255,0.8); margin-top: 6px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Contact */
.contact { background: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: stretch;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.contact-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-card:hover {
  border-color: rgba(168, 32, 40, 0.28);
  box-shadow: 0 8px 24px rgba(28, 20, 20, 0.06);
}
.contact-card-fill {
  flex: 1;
  min-height: 0;
}
.contact-tips {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-tips li {
  position: relative;
  padding: 8px 0 8px 16px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.contact-tips li:last-child { border-bottom: none; padding-bottom: 0; }
.contact-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.contact-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--red);
  color: var(--white);
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-card h4 { font-size: 0.9rem; margin-bottom: 4px; }
.contact-card p { font-size: 0.9rem; color: var(--muted); }
.contact-card a { color: var(--red); font-weight: 700; font-size: 1.15rem; }

.contact-qr-wrap {
  background: var(--paper);
  padding: 40px 36px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.contact-qr {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-qr h3 { font-family: var(--serif); font-size: 1.4rem; }
.form-lead { color: var(--muted); margin: 8px 0 24px; font-size: 0.9rem; }
.contact-qr-figure {
  margin: 0 auto 16px;
  width: fit-content;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
}
.contact-qr-figure img {
  display: block;
  width: 240px;
  height: 240px;
  object-fit: contain;
}
.contact-qr-caption {
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.contact-qr-phone {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.contact-qr-phone a {
  color: var(--red);
  font-weight: 700;
  font-size: 1.1rem;
}
.contact-qr-link { margin-top: 4px; }

/* Footer */
.footer {
  background: #100808;
  color: rgba(255,255,255,0.62);
  padding: 64px 0 0;
  border-top: 1px solid rgba(201,162,74,0.2);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { margin-top: 16px; font-size: 0.9rem; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4, .footer-contact h4 {
  color: var(--gold-light);
  font-family: var(--serif);
  margin-bottom: 6px;
}
.footer-links a:hover { color: var(--gold); }
.footer-contact a { color: var(--white); font-weight: 600; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 0.78rem;
}
.demo-badge {
  border: 1px solid rgba(201,162,74,0.4);
  color: var(--gold-light);
  padding: 3px 10px;
}

/* Dock */
.float-dock {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.float-call {
  background: var(--red);
  color: var(--white);
  padding: 12px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(180,28,43,0.4);
}
.back-top {
  width: 44px; height: 44px;
  border: 1px solid var(--gold);
  background: var(--ink);
  color: var(--gold-light);
  cursor: pointer;
  display: grid; place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
}
.back-top.visible { opacity: 1; visibility: visible; transform: none; }
.back-top svg { width: 20px; height: 20px; }

/* Lightbox & toast */
.lightbox {
  position: fixed; inset: 0;
  z-index: 2000;
  background: rgba(8,4,4,0.92);
  display: grid;
  place-items: center;
  padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 86vh; box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute;
  top: 18px; right: 24px;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}
.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--white);
  padding: 14px 22px;
  z-index: 2100;
  font-size: 0.9rem;
  border-left: 3px solid var(--gold);
}
.toast[hidden] { display: none; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .nav { gap: 16px; }
  .header-phone { display: none; }
  .strength-grid, .courses-grid, .packages-grid, .process-list { grid-template-columns: 1fr 1fr; }
  .process-list li:not(:last-child)::after { display: none; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: rgba(16,8,8,0.97);
    flex-direction: column;
    padding: 20px 28px 28px;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .menu-toggle { display: flex; }
  .header-cta { display: none; }
  .about-grid, .advantages-layout, .contact-grid { grid-template-columns: 1fr; }
  .strength-grid, .courses-grid, .packages-grid, .process-list { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .stat-item { border-left: 0; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery-item, .gallery-item.large, .gallery-item.wide { min-height: 220px; grid-column: auto; grid-row: auto; }
  .cta-inner, .footer-top { grid-template-columns: 1fr; display: grid; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .trust-inner { justify-content: flex-start; overflow-x: auto; }
  .hero-title { font-size: 2.15rem; }
}

@media (max-width: 480px) {
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .contact-qr-wrap { padding: 24px 18px; }
}
