/* Jukte.kz promo — palette aligned with portal (tokens.css / visual-design.mdc) */
:root {
  --brand-950: #043457;
  --brand-900: #0f466f;
  --brand-800: #245c8e;
  --brand-700: #3f7fbb;
  --brand-600: #6ea5d8;
  --brand-500: #9bc4eb;
  --brand-300: #d7e9fa;
  --brand-200: #eaf3fc;
  --brand-100: #f5faff;

  --jukte-text: #17324a;
  --jukte-muted: #6f879d;
  --jukte-line: #e5eef7;
  --jukte-surface: #ffffff;
  --jukte-bg-soft: #f8fbff;
  --jukte-sidebar: #edf3fc;
  --jukte-success: #2d8d74;
  --jukte-success-soft: #e8f7f2;

  --shadow-card: 0 8px 24px rgba(11, 52, 87, 0.08);
  --shadow-lift: 0 12px 32px rgba(11, 52, 87, 0.12);
  --shadow-glow: 0 0 0 1px rgba(63, 127, 187, 0.2), 0 24px 48px rgba(11, 52, 87, 0.15);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;

  --content-max: 72rem;
  --tap-min: 2.75rem;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--jukte-text);
  background: var(--jukte-bg-soft);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--brand-950);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}

a {
  color: var(--brand-800);
}

a:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.98) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--jukte-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0.875rem clamp(1rem, 4vw, 1.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--brand-950);
  font-weight: 800;
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.45rem);
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: block;
  border-radius: var(--radius-sm);
  background: var(--jukte-surface);
  padding: 0.2rem;
  box-shadow: var(--shadow-card);
  object-fit: contain;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  min-width: 14rem;
  gap: 0.65rem;
}

/* Language switcher (i18n) — compact, secondary to primary CTA */
.lang-switch {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.125rem;
  padding: 0.125rem;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--jukte-line);
  border-radius: 0.45rem;
  box-shadow: none;
}

.lang-switch__btn {
  font: inherit;
  min-height: 1.75rem;
  min-width: 0;
  padding: 0.15rem 0.45rem;
  border-radius: 0.45rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--jukte-muted);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.lang-switch__btn:hover {
  color: var(--brand-950);
  background: var(--brand-100);
}

.lang-switch__btn.is-active {
  background: var(--brand-900);
  color: #fff;
  box-shadow: none;
}

.lang-switch__btn:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 1px;
}

@media (max-width: 767px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 0.75rem;
    row-gap: 0.75rem;
    align-items: center;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    min-width: 0;
  }

  .lang-switch {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin: 0;
    flex-shrink: 0;
    flex-wrap: nowrap;
  }

  .header-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    justify-content: stretch;
  }

  .header-actions .btn {
    width: 100%;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--tap-min);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: clamp(1rem, 0.92rem + 0.25vw, 1.1rem);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-900), var(--brand-950));
  color: #fff;
  box-shadow: var(--shadow-card);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
}

.btn-outline {
  background: var(--jukte-surface);
  color: var(--brand-950);
  border: 2px solid var(--jukte-line);
}

.btn-outline:hover {
  border-color: var(--brand-300);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--brand-900);
  border: 2px solid transparent;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  min-height: auto;
  padding: 0.5rem 0.75rem;
}

.btn-ghost:hover {
  color: var(--brand-950);
}

.btn-lg {
  min-height: 3.25rem;
  padding: 0.85rem 1.75rem;
  font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.2rem);
  border-radius: var(--radius-md);
}

@media (max-width: 767px) {
  .btn {
    width: 100%;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--jukte-sidebar) 0%, #dbeaf8 35%, var(--jukte-bg-soft) 70%, #fff 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: -40% 50% auto -20%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(63, 127, 187, 0.35) 0%, transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto -30% -50% 40%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(4, 52, 87, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 1.75rem) clamp(3rem, 8vw, 5.5rem);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--jukte-surface);
  border: 1px solid var(--brand-300);
  color: var(--brand-900);
  font-size: clamp(0.95rem, 0.88rem + 0.2vw, 1.05rem);
  font-weight: 600;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.25rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 1.35rem + 2.8vw, 3.35rem);
  line-height: 1.12;
  font-weight: 800;
  color: var(--brand-950);
  letter-spacing: -0.03em;
  max-width: 18ch;
}

@media (min-width: 640px) {
  .hero h1 {
    max-width: 22ch;
  }
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.35rem);
  color: var(--jukte-text);
  max-width: 38rem;
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* Sections */
.section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(2.25rem, 5vw, 3.75rem) clamp(1rem, 4vw, 1.75rem);
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 1.35rem + 1.1vw, 2.15rem);
  font-weight: 800;
  color: var(--brand-950);
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 1.75rem;
  font-size: clamp(1.05rem, 0.98rem + 0.2vw, 1.2rem);
  color: var(--jukte-muted);
  max-width: 42rem;
}

.section--surface {
  background: var(--jukte-surface);
  border-block: 1px solid var(--jukte-line);
}

.section--callout {
  background: var(--jukte-sidebar);
  border-radius: var(--radius-lg);
  /* margin-inline: clamp(1rem, 4vw, 1.75rem); */
  /* padding-inline: clamp(1rem, 4vw, 1.75rem); */
}

/* Marquee strip */
.strip {
  background: linear-gradient(90deg, var(--brand-950), var(--brand-800));
  color: #fff;
  padding: 0.85rem clamp(1rem, 4vw, 1.75rem);
  text-align: center;
  font-size: clamp(1rem, 0.92rem + 0.25vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.strip-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* Two-column pain */
.grid-2 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.pain-card {
  background: var(--jukte-surface);
  border: 1px solid var(--jukte-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-card);
}

.pain-card h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.15rem, 1.05rem + 0.3vw, 1.35rem);
  color: var(--brand-950);
}

.pain-card p {
  margin: 0;
  font-size: clamp(1rem, 0.95rem + 0.15vw, 1.1rem);
  color: var(--jukte-text);
}

/* Feature / hype cards grid */
.cards-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cards-grid--spaced {
  margin-top: 1.75rem;
}

.card {
  background: var(--jukte-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--jukte-line);
  padding: clamp(1.1rem, 2.5vw, 1.45rem);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  border-color: var(--brand-200);
}

.card-accent {
  background: linear-gradient(145deg, #fff 0%, var(--brand-100) 100%);
  border-color: var(--brand-300);
}

.card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--brand-200), var(--jukte-surface));
  border: 1px solid var(--jukte-line);
  color: var(--brand-900);
}

.card-icon__svg {
  display: block;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.1rem, 1rem + 0.25vw, 1.25rem);
  color: var(--brand-950);
}

.card p {
  margin: 0;
  font-size: clamp(1rem, 0.95rem + 0.12vw, 1.08rem);
  color: var(--jukte-text);
}

/* Steps */
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
  }
}

.step {
  position: relative;
  background: var(--jukte-surface);
  border: 1px solid var(--jukte-line);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.1rem 1.1rem;
  box-shadow: var(--shadow-card);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--brand-950);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.65rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.05rem, 0.98rem + 0.2vw, 1.15rem);
  color: var(--brand-950);
}

.step p {
  margin: 0;
  font-size: clamp(0.98rem, 0.93rem + 0.12vw, 1.05rem);
  color: var(--jukte-muted);
}

/* Highlight band */
.band {
  background: linear-gradient(135deg, var(--brand-900), var(--brand-950));
  color: #fff;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 1.75rem);
}

.band-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .band-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

.band h2 {
  margin: 0;
  font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.85rem);
  font-weight: 800;
}

.band p {
  margin: 0.35rem 0 0;
  font-size: clamp(1rem, 0.95rem + 0.15vw, 1.1rem);
  opacity: 0.95;
  max-width: 36rem;
}

.band .btn-primary {
  background: #fff;
  color: var(--brand-950);
  flex-shrink: 0;
}

.band .btn-primary:hover {
  background: var(--brand-100);
}

/* Stats */
.stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  text-align: center;
  padding: 1.35rem 1rem;
  background: var(--jukte-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--jukte-line);
  box-shadow: var(--shadow-card);
}

.stat strong {
  display: block;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  color: var(--brand-950);
  font-weight: 800;
}

.stat span {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(0.95rem, 0.9rem + 0.12vw, 1.05rem);
  color: var(--jukte-muted);
}

.disclaimer-small {
  margin-top: 1rem;
  font-size: clamp(0.9rem, 0.85rem + 0.12vw, 0.98rem);
  color: var(--jukte-muted);
}

/* Footer */
.site-footer {
  background: var(--brand-950);
  color: rgba(255, 255, 255, 0.88);
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 1.75rem);
  font-size: clamp(0.95rem, 0.9rem + 0.12vw, 1.05rem);
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .footer-top {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.site-footer a {
  color: var(--brand-300);
}

.footer-brand-name {
  font-size: 1.2rem;
}

.footer-tagline {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.75);
}

.band-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* CTA row in section */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
}

.muted {
  color: var(--jukte-muted);
}

.tagline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.tagline-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  background: var(--jukte-success-soft);
  color: var(--jukte-success);
  border-radius: 999px;
  font-size: clamp(0.95rem, 0.88rem + 0.15vw, 1.05rem);
  font-weight: 600;
}

.tagline-list li:nth-child(even) {
  background: var(--brand-100);
  color: var(--brand-900);
}

.legal,
.footer-contact-line {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.88rem, 0.82rem + 0.12vw, 0.98rem);
  line-height: 1.5;
}

.legal {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-contact-line {
  padding-top: 1rem;
  text-align: left;
}

.footer-contact-link {
  display: inline;
  padding: 0;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  font-weight: 600;
  color: var(--brand-300);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.footer-contact-link:hover {
  color: #fff;
}

.footer-contact-link:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 2px;
}
