:root {
  --bg: #fbfaf6;
  --fg: #1a1d2b;
  --muted: #5a6072;
  --card: #ffffff;
  --border: #e6e4dc;
  --primary: #2a3a78;
  --primary-2: #1d2a5c;
  --gold: #c79a3a;
  --gold-2: #8a6a1f;
  --teal: #3a8aa6;
  --radius: 14px;
  --shadow: 0 8px 30px -12px rgba(42, 58, 120, 0.18);
  --shadow-lg: 0 25px 60px -20px rgba(42, 58, 120, 0.30);
  --grad-hero: linear-gradient(135deg, #fdfaf2 0%, #f6efe0 50%, #e8eaf5 100%);
  --grad-accent: linear-gradient(135deg, var(--primary), var(--primary-2));
  --grad-gold: linear-gradient(135deg, #d8a847, #8a6a1f);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 600;
}
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: clamp(28px, 4vw, 48px); margin-top: 12px; font-weight: 600; }
h3 { font-size: 18px; font-weight: 600; }
p { color: var(--muted); }

.text-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 250, 246, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 48px; width: 48px; object-fit: contain; }
.brand span { font-weight: 600; font-size: 18px; }
.nav { display: none; gap: 28px; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--fg); }
.header-phone { display: none; font-weight: 500; font-size: 14px; }
@media (min-width: 768px) {
  .nav, .header-phone { display: flex; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 10px;
  font-size: 14px; font-weight: 500;
  transition: 0.2s ease; cursor: pointer; border: none;
}
.btn-primary {
  background: var(--grad-accent); color: #fff;
  box-shadow: var(--shadow-lg);
}
.btn-primary:hover { transform: translateY(-1px); opacity: 0.95; }
.btn-secondary {
  border: 1px solid var(--border); background: rgba(255,255,255,0.7);
  color: var(--fg);
}
.btn-secondary:hover { border-color: var(--primary); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--grad-hero); }
.hero::before {
  content: ""; position: absolute; top: -120px; right: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: rgba(42, 58, 120, 0.12); filter: blur(80px);
}
.hero::after {
  content: ""; position: absolute; bottom: -120px; left: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: rgba(199, 154, 58, 0.20); filter: blur(80px);
}
.hero-grid {
  position: relative;
  display: grid; gap: 48px;
  padding: 96px 0 80px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 7fr 5fr; padding: 128px 0 112px; }
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.8); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 999px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 24px;
  backdrop-filter: blur(6px);
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero h1 {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 600;
}
.hero-sub {
  margin-top: 24px; max-width: 540px;
  font-size: clamp(16px, 1.6vw, 20px);
}
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-logo-wrap {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero-logo-wrap::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(199, 154, 58, 0.30); filter: blur(60px); border-radius: 50%;
  transform: scale(0.7);
}
.hero-logo {
  position: relative;
  width: clamp(260px, 36vw, 460px);
  height: auto;
  animation: floaty 7s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

/* Stats */
.stats {
  margin-top: 48px;
  display: grid; gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  max-width: 560px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: rgba(255,255,255,0.85); padding: 16px; backdrop-filter: blur(6px); }
.stat-v { font-size: 20px; font-weight: 600; }
.stat-l { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* Marquee */
.marquee {
  position: relative; overflow: hidden; padding: 16px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.5);
}
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-item {
  margin: 0 32px; font-size: 13px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--muted); display: inline-flex;
  align-items: center; gap: 32px;
}
.marquee-item::after {
  content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Sections */
section.block { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }

/* About */
.about-grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 4fr 8fr; } }
.about-text { font-size: clamp(16px, 1.4vw, 20px); color: var(--muted); }
.about-text strong { color: var(--fg); font-weight: 500; }
.about-meta {
  margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border);
  display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.about-meta-k { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.about-meta-v { margin-top: 4px; font-weight: 500; }

/* Cards section */
.alt { background: linear-gradient(180deg, #ffffff, #faf6ec); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(42,58,120,0.4); }
.card::before {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 130px; height: 130px; border-radius: 50%;
  background: rgba(199, 154, 58, 0.10); transition: 0.3s;
}
.card:hover::before { background: rgba(199, 154, 58, 0.20); }
.card-num {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(42,58,120,0.10); color: var(--primary);
  font-weight: 600; font-size: 14px; margin-bottom: 20px;
}
.card h3 { position: relative; }
.card p { position: relative; margin-top: 8px; font-size: 14px; }

/* Advantages grid */
.adv-grid {
  display: grid; gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .adv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .adv-grid { grid-template-columns: repeat(3, 1fr); } }
.adv { background: var(--card); padding: 28px; transition: 0.25s; }
.adv:hover { background: #faf6ec; }
.adv-bar {
  width: 40px; height: 2px; background: var(--grad-gold);
  margin-bottom: 16px; transition: width 0.3s;
}
.adv:hover .adv-bar { width: 80px; }
.adv h3 { font-size: 16px; }
.adv p { font-size: 14px; margin-top: 8px; }

/* Stages */
.stages-section {
  position: relative;
  background: var(--grad-hero);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stages { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .stages { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .stages { grid-template-columns: repeat(3, 1fr); } }
.stage {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.stage-head { display: flex; align-items: center; gap: 16px; }
.stage-num { font-size: 28px; font-weight: 600; }
.stage-line { flex: 1; height: 1px; background: var(--border); }
.stage-tag { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.stage h3 { margin-top: 20px; }
.stage p { margin-top: 8px; font-size: 14px; }

/* Reviews */
.reviews { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
.review {
  position: relative;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
.review-quote {
  position: absolute; right: 24px; top: 0;
  font-family: Georgia, serif; font-size: 80px; line-height: 1;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text;
  color: transparent; opacity: 0.6;
}
.review blockquote { color: var(--fg); font-size: 16px; line-height: 1.65; }
.review figcaption {
  display: flex; align-items: center; gap: 12px;
  margin-top: 20px; font-size: 14px; color: var(--muted);
}
.review figcaption::before {
  content: ""; width: 32px; height: 1px; background: var(--grad-gold);
}

/* Contacts */
.contacts-section {
  position: relative; overflow: hidden;
  background: var(--grad-hero); border-top: 1px solid var(--border);
}
.contacts-section::before {
  content: ""; position: absolute; top: -120px; left: 50%;
  width: 600px; height: 380px; transform: translateX(-50%);
  background: rgba(42,58,120,0.10); filter: blur(80px);
}
.contacts-grid { position: relative; display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contacts-grid { grid-template-columns: 5fr 7fr; } }
.contacts-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.contacts-list {
  display: grid; gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .contacts-list { grid-template-columns: repeat(2, 1fr); } }
.contacts-list > div { background: var(--card); padding: 20px; transition: 0.2s; }
.contacts-list > div:hover { background: #faf6ec; }
.contacts-list dt { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.contacts-list dd { margin-top: 4px; font-weight: 500; }
.contacts-list a:hover { color: var(--primary); }

/* Footer */
.footer {
  background: var(--card); border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 12px; padding: 32px 0; font-size: 14px; color: var(--muted);
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand img { height: 24px; width: 24px; object-fit: contain; }
@media (min-width: 700px) { .footer-inner { flex-direction: row; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Mobile fixes */
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .hero h1 { font-size: 44px; }
  h2 { font-size: 30px; word-wrap: break-word; }
  .brand img { height: 38px; width: 38px; }
  .brand span { font-size: 16px; }
  .hero-grid { padding: 72px 0 56px; gap: 32px; }
  section.block { padding: 64px 0; }
  .stat-v { font-size: 18px; }
  .review-quote { font-size: 60px; right: 16px; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 38px; letter-spacing: -0.03em; }
  .about-text { font-size: 15px; }
  .hero-sub { font-size: 16px; }
  .container { overflow-wrap: break-word; }
  .review-quote { font-size: 50px; }
}
