/* ============================================
   Goldhillbook.com — Swiss Grid Design System
   Финансовая школа • Казахстан
   ============================================ */

:root {
  --c-primary: #1A237E;
  --c-secondary: #283593;
  --c-accent: #5C6BC0;
  --c-soft: #9FA8DA;
  --c-bg: #E8EAF6;
  --c-white: #FFFFFF;
  --c-ink: #0F1437;
  --c-muted: #5A608E;
  --c-line: #D4D8EC;
  --c-dark: #11154A;
  --shadow-sm: 0 4px 14px rgba(26, 35, 126, 0.08);
  --shadow-md: 0 12px 40px rgba(26, 35, 126, 0.14);
  --shadow-lg: 0 24px 60px rgba(26, 35, 126, 0.22);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1280px;
  --grad-primary: linear-gradient(135deg, #1A237E 0%, #283593 50%, #5C6BC0 100%);
  --grad-soft: linear-gradient(135deg, #E8EAF6 0%, #C5CAE9 100%);
  --font-head: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-ink);
  background: var(--c-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--c-primary);
}

h1 { font-size: clamp(38px, 5.5vw, 72px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 48px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); }
h4 { font-size: clamp(18px, 1.6vw, 22px); }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--c-secondary); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--c-accent); }

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

::selection { background: var(--c-primary); color: #fff; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { padding: clamp(60px, 9vw, 120px) 0; }

/* ============== HEADER ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 32px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--c-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 36px; height: 36px;
  background: var(--grad-primary);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.nav-menu {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
}

.nav-menu a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  color: var(--c-ink);
  position: relative;
  padding: 6px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--c-primary);
  transition: width .3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--c-primary);
  margin: 5px 0;
  transition: .3s;
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--r-md);
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  line-height: 1;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border: 2px solid var(--c-primary);
}

.btn-outline:hover {
  background: var(--c-primary);
  color: #fff;
  transform: scale(1.02);
}

.btn-ghost {
  background: var(--c-bg);
  color: var(--c-primary);
}
.btn-ghost:hover { background: var(--c-soft); transform: scale(1.02); }

.btn .arrow {
  display: inline-block;
  transition: transform .3s ease;
}
.btn:hover .arrow { transform: translateX(4px); }

/* ============== HERO ============== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 12vw, 140px) 0 clamp(120px, 16vw, 180px);
  background: var(--c-primary);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 80px), 0 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,35,126,.85) 0%, rgba(40,53,147,.7) 100%);
  z-index: 1;
}

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

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  width: 36px; height: 2px;
  background: var(--c-soft);
}

.hero h1 { color: #fff; max-width: 900px; margin-bottom: 28px; }
.hero p.lede { font-size: clamp(17px, 1.4vw, 21px); max-width: 700px; opacity: 0.92; margin-bottom: 40px; font-weight: 300; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-compact {
  padding: clamp(60px, 8vw, 100px) 0;
  clip-path: none;
}

/* ============== STATS COUNTER ============== */
.stats {
  background: #fff;
  margin-top: -80px;
  position: relative;
  z-index: 5;
}
.stats-grid {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-item { text-align: center; padding: 0 12px; border-right: 1px solid var(--c-line); }
.stat-item:last-child { border-right: 0; }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  color: var(--c-primary);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 14px;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ============== SECTION HEAD ============== */
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-eyebrow {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 18px;
  display: inline-block;
}
.section-head p { color: var(--c-muted); font-size: 18px; margin-top: 16px; }

/* ============== CARDS ============== */
.card {
  background: var(--c-dark);
  color: #fff;
  border-radius: var(--r-md);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card h3 { color: #fff; margin-bottom: 14px; }
.card p { color: rgba(255, 255, 255, 0.78); font-size: 15px; }

.card-light {
  background: #fff;
  color: var(--c-ink);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
}
.card-light h3 { color: var(--c-primary); }
.card-light p { color: var(--c-muted); }

.card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--c-accent);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  font-size: 24px;
  color: #fff;
  font-weight: 700;
}
.card-light .card-icon { background: var(--grad-primary); }

.card-accent-bar {
  position: absolute;
  left: 0; top: 0;
  width: 4px; height: 100%;
  background: var(--c-soft);
}

/* ============== GRIDS ============== */
.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============== FEATURES ============== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

/* ============== BADGES / SOCIAL PROOF ============== */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 100px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  color: var(--c-ink);
  box-shadow: var(--shadow-sm);
}
.badge-dot {
  width: 10px; height: 10px;
  background: var(--c-accent);
  border-radius: 50%;
}

/* ============== VIDEO ============== */
.video-block {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-dark);
  box-shadow: var(--shadow-lg);
}
.video-block img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.video-play-btn {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform .25s ease;
}
.video-play-btn:hover { transform: scale(1.08); }
.video-play-btn::after {
  content: '';
  width: 0; height: 0;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent var(--c-primary);
  margin-left: 6px;
}

/* ============== FOOTER ============== */
.footer {
  background: var(--c-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 36px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 56px;
  margin-bottom: 56px;
}
.footer h4 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 22px;
}
.footer .logo { color: #fff; margin-bottom: 20px; }
.footer p { color: rgba(255, 255, 255, 0.65); margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 12px; }
.footer ul a { color: rgba(255, 255, 255, 0.7); transition: color .2s; }
.footer ul a:hover { color: #fff; }
.footer-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

/* ============== COOKIE BANNER ============== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 22px 26px;
  display: none;
  align-items: center;
  gap: 18px;
  z-index: 200;
  flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; font-size: 14px; color: var(--c-muted); flex: 1; min-width: 240px; }
.cookie-banner .btn { padding: 10px 22px; font-size: 13px; }

/* ============== FORM ============== */
.form-grid { display: grid; gap: 22px; max-width: 600px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  color: var(--c-ink);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--c-line);
  font-family: var(--font-body);
  font-size: 15px;
  background: #fff;
  color: var(--c-ink);
  transition: border-color .25s, box-shadow .25s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 0;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(92, 107, 192, 0.15);
}
.form-group .err {
  color: #c62828;
  font-size: 13px;
  display: none;
}
.form-group.invalid .err { display: block; }
.form-group.invalid input,
.form-group.invalid textarea { border-color: #c62828; }

/* ============== TABS ============== */
.tabs-nav { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--c-line); margin-bottom: 40px; }
.tab-btn {
  padding: 14px 24px;
  background: none;
  border: 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  color: var(--c-muted);
  cursor: pointer;
  position: relative;
  transition: color .2s;
}
.tab-btn::after {
  content: '';
  position: absolute;
  left: 24px; right: 24px; bottom: -1px;
  height: 2px;
  background: var(--c-primary);
  transform: scaleX(0);
  transition: transform .3s ease;
  transform-origin: left;
}
.tab-btn.active { color: var(--c-primary); font-weight: 600; }
.tab-btn.active::after { transform: scaleX(1); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ============== FAQ ============== */
.faq-item {
  border-bottom: 1px solid var(--c-line);
  padding: 0;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 24px 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  color: var(--c-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 20px;
}
.faq-q .plus {
  font-size: 24px;
  transition: transform .3s ease;
  color: var(--c-accent);
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  color: var(--c-muted);
}
.faq-item.open .faq-a { max-height: 500px; padding-bottom: 24px; }

/* ============== ARTICLE ============== */
.article-hero {
  padding: clamp(40px, 6vw, 80px) 0;
  background: var(--c-bg);
}
.article-meta { display: flex; gap: 18px; font-size: 14px; color: var(--c-muted); margin-bottom: 24px; flex-wrap: wrap; align-items: center; }
.article-meta span { display: flex; align-items: center; gap: 8px; }
.article-tag { background: #fff; padding: 6px 14px; border-radius: 100px; font-family: var(--font-head); font-weight: 500; font-size: 12px; color: var(--c-primary); border: 1px solid var(--c-line); }
.article-featured-img {
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 32px;
  aspect-ratio: 16/8;
  background: var(--c-dark);
}
.article-featured-img img { width: 100%; height: 100%; object-fit: cover; }

.article-body { max-width: 760px; margin: 0 auto; font-size: 18px; line-height: 1.85; color: var(--c-ink); }
.article-body h2 { margin: 50px 0 22px; font-size: 32px; }
.article-body h3 { margin: 38px 0 18px; font-size: 24px; }
.article-body p { margin-bottom: 22px; }
.article-body ul, .article-body ol { margin: 0 0 22px 22px; }
.article-body li { margin-bottom: 10px; }
.article-body blockquote {
  border-left: 4px solid var(--c-accent);
  padding: 20px 28px;
  background: var(--c-bg);
  margin: 32px 0;
  font-style: italic;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--c-primary);
  font-size: 19px;
}

.share-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  margin: 40px 0;
}
.share-bar strong { font-family: var(--font-head); font-size: 14px; }
.share-btn {
  width: 40px; height: 40px;
  background: var(--c-bg);
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: var(--c-primary);
  font-weight: 700;
  transition: background .2s;
}
.share-btn:hover { background: var(--c-soft); }

/* ============== TESTIMONIALS ============== */
.test-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.test-card .quote {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 500;
  color: var(--c-ink);
  margin-bottom: 24px;
  font-style: normal;
  line-height: 1.6;
}
.test-author { display: flex; align-items: center; gap: 14px; }
.test-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
}
.test-name { font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.test-role { font-size: 13px; color: var(--c-muted); }

/* ============== BLOG CARDS ============== */
.post-card {
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--c-line);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card-img { aspect-ratio: 16/10; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.post-card h3 { font-size: 20px; }
.post-card .read-more {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--c-primary);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ============== CTA BANNER ============== */
.cta-banner {
  background: var(--grad-primary);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.85); }
.cta-banner .btn {
  background: #fff;
  color: var(--c-primary);
  justify-self: end;
}

/* ============== ACHIEVEMENTS / BEFORE-AFTER ============== */
.achievement {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.achievement-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--grad-soft);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 28px;
  color: var(--c-primary);
}
.achievement h4 { font-size: 18px; margin-bottom: 10px; }
.achievement p { color: var(--c-muted); font-size: 14px; }

.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.ba-card {
  border-radius: var(--r-md);
  padding: 32px;
  border: 1px solid var(--c-line);
}
.ba-card.before { background: var(--c-bg); }
.ba-card.after { background: var(--c-dark); color: #fff; }
.ba-card.after h4 { color: #fff; }
.ba-tag {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 18px;
  display: inline-block;
}
.ba-card.before .ba-tag { color: var(--c-muted); }
.ba-card.after .ba-tag { color: var(--c-soft); }

/* ============== CONTACT ============== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
}
.contact-info {
  display: grid;
  gap: 24px;
  align-content: start;
}
.contact-info-item {
  background: #fff;
  border-radius: var(--r-md);
  padding: 28px;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
}
.contact-info-item h4 { margin-bottom: 8px; font-size: 16px; }
.contact-info-item p { color: var(--c-muted); margin: 0; }

.map-block {
  aspect-ratio: 16/9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-bg);
  position: relative;
  border: 1px solid var(--c-line);
}

/* ============== PARTNERS STRIP ============== */
.partners-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 36px;
  align-items: center;
}
.partner-logo {
  height: 60px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--c-muted);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color .3s;
}
.partner-logo:hover { color: var(--c-primary); }

/* ============== FLOATING ACTIONS ============== */
.fab-group {
  position: fixed;
  right: 26px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 90;
}
.fab {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  font-size: 22px;
  transition: transform .25s ease;
  border: 0;
  cursor: pointer;
}
.fab:hover { transform: scale(1.1); color: #fff; }

/* ============== LIVE CHAT ============== */
.live-chat {
  background: var(--c-dark);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}
.live-chat h3 { color: #fff; margin-bottom: 6px; }
.live-chat p { color: rgba(255,255,255,0.7); margin: 0; }
.chat-indicator { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c-soft); margin-bottom: 10px; }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #4caf50; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ============== CHARTS / DATA VIZ ============== */
.chart-box {
  background: #fff;
  border-radius: var(--r-md);
  padding: 36px;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
}
.bar-chart { display: flex; gap: 18px; align-items: flex-end; height: 240px; padding: 20px 0; }
.bar {
  flex: 1;
  background: var(--grad-primary);
  border-radius: 8px 8px 0 0;
  position: relative;
  min-height: 20px;
  transition: opacity .25s;
}
.bar:hover { opacity: 0.85; }
.bar-label {
  position: absolute;
  bottom: -28px;
  left: 0; right: 0;
  text-align: center;
  font-size: 12px;
  color: var(--c-muted);
}
.bar-value {
  position: absolute;
  top: -26px;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--c-primary);
}

/* ============== SIDEBAR LAYOUT ============== */
.sidebar-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
}
.sidebar {
  display: grid;
  gap: 28px;
  align-content: start;
}
.sidebar-block {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.sidebar-block h4 { font-size: 16px; margin-bottom: 18px; }
.sidebar-block ul { list-style: none; }
.sidebar-block ul li { padding: 10px 0; border-bottom: 1px solid var(--c-line); font-size: 14px; }
.sidebar-block ul li:last-child { border-bottom: 0; }

/* ============== COMMENTS ============== */
.comment {
  padding: 24px 0;
  border-bottom: 1px solid var(--c-line);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
}
.comment-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--grad-soft);
  display: grid;
  place-items: center;
  color: var(--c-primary);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
}
.comment-meta { display: flex; gap: 14px; font-size: 13px; color: var(--c-muted); margin-bottom: 6px; align-items: center; }
.comment-name { font-family: var(--font-head); font-weight: 600; color: var(--c-ink); }

/* ============== BREADCRUMB ============== */
.breadcrumb {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  align-items: center;
}
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { opacity: 0.5; }

/* ============== LEGAL TEXT (terms / privacy / cookie) ============== */
.legal-wrap { max-width: 880px; margin: 0 auto; }
.legal-wrap h2 { margin: 48px 0 18px; font-size: 28px; }
.legal-wrap h3 { margin: 28px 0 14px; font-size: 21px; }
.legal-wrap p { margin-bottom: 16px; color: var(--c-muted); }
.legal-wrap ul, .legal-wrap ol { margin: 0 0 18px 22px; color: var(--c-muted); }
.legal-wrap li { margin-bottom: 8px; }
.legal-toc {
  background: var(--c-bg);
  border-radius: var(--r-md);
  padding: 28px 32px;
  margin-bottom: 48px;
}
.legal-toc h3 { margin-top: 0; }
.legal-toc ol { margin-left: 18px; }
.legal-toc a { color: var(--c-primary); font-weight: 500; }

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
}
.cookie-table th,
.cookie-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-line);
}
.cookie-table th {
  background: var(--c-primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}
.cookie-table tr:nth-child(even) td { background: var(--c-bg); }

/* ============== CALENDAR ============== */
.calendar {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 18px;
}
.cal-head h3 { margin: 0; font-size: 20px; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
  font-size: 13px;
}
.cal-day-head {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 11px;
  color: var(--c-muted);
  text-transform: uppercase;
  padding: 8px 0;
}
.cal-day {
  padding: 10px 0;
  border-radius: 8px;
  color: var(--c-ink);
}
.cal-day.muted { color: var(--c-soft); }
.cal-day.event { background: var(--c-primary); color: #fff; font-weight: 600; }
.cal-day.today { background: var(--c-bg); font-weight: 700; }

/* ============== RESPONSIVE ============== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: 0; }
  .stat-item { padding: 16px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .sidebar-layout { grid-template-columns: 1fr; }
  .cta-banner { grid-template-columns: 1fr; text-align: left; }
  .cta-banner .btn { justify-self: start; }
  .live-chat { grid-template-columns: 1fr; }
  .partners-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .nav-menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; text-align: center; }
  .nav-menu a { display: block; padding: 14px 24px; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: 0; border-bottom: 1px solid var(--c-line); padding: 18px 0; }
  .stat-item:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .ba-grid { grid-template-columns: 1fr; }
  .partners-strip { grid-template-columns: repeat(2, 1fr); }
  .hero { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%); }
}

@media (max-width: 480px) {
  .partners-strip { grid-template-columns: 1fr; }
  .btn { padding: 14px 24px; font-size: 14px; }
  .footer-meta { flex-direction: column; gap: 8px; }
}

/* ============== ANIMATIONS ============== */
@keyframes fadeUp {
  from { transform: translateY(20px); opacity: 0.4; }
  to { transform: translateY(0); opacity: 1; }
}
.fade-up { animation: fadeUp .6s ease both; }
.fade-up:nth-child(2) { animation-delay: .1s; }
.fade-up:nth-child(3) { animation-delay: .2s; }
.fade-up:nth-child(4) { animation-delay: .3s; }

@keyframes counter-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* utility */
.text-center { text-align: center; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 56px; }
.bg-soft { background: var(--c-bg); }
.bg-dark { background: var(--c-dark); color: #fff; }
.bg-dark h2, .bg-dark h3 { color: #fff; }
