/* ===== Түстер мен негізгі айнымалылар ===== */
:root {
  --brand: #0d9488;        /* негізгі түс (көгілдір-жасыл) */
  --brand-dark: #0f766e;
  --accent: #f59e0b;       /* сары акцент */
  --ink: #0f172a;          /* негізгі мәтін */
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f1f5f9;
  --hero-dark: #1e293b;
  --radius: 10px;
  --max: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }

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

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ===== Cookie жолағы ===== */
.cookie-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--bg-soft); font-size: 13px; padding: 8px 16px; color: var(--muted);
}
.cookie-bar.hidden { display: none; }
.cookie-close {
  background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink);
}

/* ===== Тақырып ===== */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 50; }

.header-top { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 8px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 19px;
}
.logo-text { font-size: 28px; font-weight: 800; letter-spacing: 2px; color: var(--hero-dark); }

.utility-links { display: flex; list-style: none; align-items: stretch; font-size: 13px; }
.utility-links li { border-left: 1px solid var(--line); }
.utility-links li:first-child { border-left: 0; }
.utility-links a {
  display: flex; align-items: center; gap: 6px; height: 100%;
  padding: 4px 12px; text-decoration: none; font-weight: 600;
}
.utility-links a:hover { color: var(--brand); }
.utility-links .stacked { flex-direction: column; justify-content: center; gap: 0; line-height: 1.2; }
.utility-links small { font-size: 10px; font-weight: 400; color: var(--muted); }
.utility-links .login svg { color: var(--brand); }

.header-bottom { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; gap: 16px; }

.main-nav { display: flex; gap: 22px; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 4px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--brand); border-bottom-color: var(--brand); }

.search { display: flex; border: 1px solid #cbd5e1; border-radius: 4px; overflow: hidden; }
.search input { border: 0; padding: 6px 10px; font-size: 14px; width: 180px; outline: none; }
.search button {
  border: 0; background: var(--brand); color: #fff; width: 36px; display: grid; place-items: center; cursor: pointer;
}
.search button:hover { background: var(--brand-dark); }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ===== Hero ===== */
.hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 380px; overflow: hidden; }
.hero-text {
  background: var(--hero-dark); color: #fff;
  display: flex; align-items: center;
  padding: 40px 48px 40px max(16px, calc((100vw - var(--max)) / 2 + 16px));
  position: relative; z-index: 2;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
  margin-right: -15%;
}
.hero-text::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 22%; height: 45%;
  background: var(--brand); clip-path: polygon(100% 0, 100% 100%, 0 100%); opacity: .9;
}
.hero-text h1 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.2; font-weight: 600; max-width: 460px; }
.hero-visual svg { width: 100%; height: 100%; }

/* ===== Статистика ===== */
.stat-band { text-align: center; padding: 48px 0; }
.accent-line { display: block; width: 120px; height: 4px; background: var(--accent); margin: 0 auto 16px; }
.stat-band p { font-size: clamp(20px, 2.4vw, 28px); color: #334155; }
.stat-band strong { color: var(--brand); }

/* ===== Кіріспе ===== */
.intro { background: var(--bg-soft); padding: 64px 0; }
.intro-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.intro h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25; margin-bottom: 16px; }
.intro p { color: #334155; margin-bottom: 24px; }
.donut { max-width: 260px; justify-self: center; }
.donut-progress { transition: stroke-dasharray 1.4s ease; }

/* ===== Батырмалар ===== */
.btn {
  display: inline-block; background: var(--brand); color: #fff; text-decoration: none;
  padding: 10px 24px; border-radius: 4px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; font-size: 14px;
  border: 2px solid var(--brand); transition: .2s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline { background: transparent; color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }

/* ===== Қалай жұмыс істейді ===== */
.how { padding: 72px 0; }
.section-title { font-size: clamp(24px, 2.6vw, 34px); text-align: center; margin-bottom: 12px; }
.section-lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 40px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step-num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 14px;
}
.steps h3 { font-size: 17px; margin-bottom: 6px; }
.steps p { font-size: 14px; color: var(--muted); }

/* ===== Цитата жолағы ===== */
.quote-band { background: var(--brand); color: #fff; padding: 48px 0; text-align: center; }
.quote-band p { font-size: clamp(20px, 2.4vw, 28px); }
.quote-band em { color: #fde68a; font-style: normal; font-weight: 700; }

/* ===== Ерекшеліктер ===== */
.features { padding: 72px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.feature-icon {
  width: 56px; height: 56px; border-radius: 12px; background: #ccfbf1; color: var(--brand-dark);
  display: grid; place-items: center; margin-bottom: 16px;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: #334155; margin-bottom: 12px; }
.link-arrow { color: var(--brand); font-weight: 700; text-decoration: none; text-transform: uppercase; font-size: 13px; letter-spacing: .5px; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* ===== Аудитория карталары ===== */
.audiences { background: var(--bg-soft); padding: 72px 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .08); display: flex; flex-direction: column;
  padding-bottom: 24px; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(15, 23, 42, .12); }
.card-top { height: 120px; margin-bottom: 20px; }
.card-top.c1 { background: linear-gradient(135deg, #0d9488, #2dd4bf); }
.card-top.c2 { background: linear-gradient(135deg, #4f46e5, #818cf8); }
.card-top.c3 { background: linear-gradient(135deg, #d97706, #fbbf24); }
.card h3, .card p, .card .btn { margin-left: 24px; margin-right: 24px; }
.card h3 { font-size: 22px; margin-bottom: 8px; }
.card p { color: #334155; margin-bottom: 20px; flex: 1; }
.card .btn { align-self: flex-start; }

/* ===== Төменгі бөлім ===== */
.site-footer { background: var(--hero-dark); color: #cbd5e1; padding-top: 48px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.site-footer h4 { color: #fff; text-transform: uppercase; font-size: 13px; letter-spacing: 1px; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  border-top: 1px solid #334155; margin-top: 40px; padding-top: 16px; padding-bottom: 24px; color: #94a3b8;
}

/* ===== Көрінгенде анимация ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Планшет ===== */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .search input { width: 130px; }
}

/* ===== Телефон ===== */
@media (max-width: 760px) {
  .utility-links { display: none; }
  .menu-toggle { display: block; }
  .logo-text { font-size: 22px; }
  .logo-mark { width: 36px; height: 36px; font-size: 16px; }

  .header-bottom { flex-direction: column; align-items: stretch; }
  .main-nav { display: none; flex-direction: column; gap: 0; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .search input { width: 100%; flex: 1; }

  .hero { grid-template-columns: 1fr; }
  .hero-text { clip-path: none; margin-right: 0; padding: 32px 16px; }
  .hero-text::after { display: none; }
  .hero-visual { height: 220px; }

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

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Hero батырмасы */
.hero-btn { margin-top: 24px; background: var(--accent); border-color: var(--accent); color: var(--ink); }
.hero-btn:hover { background: #fbbf24; border-color: #fbbf24; }
