/* =========================================================
   Karasai.kz — Global Bereke
   File: assets/css/styles.css
   Purpose: mobile-first professional light-blue design
   ========================================================= */

/* ------------------------------
   1. Base variables
------------------------------ */

:root {
  --color-bg: #f5fbff;
  --color-bg-strong: #e6f6ff;
  --color-surface: #ffffff;
  --color-surface-soft: #f1f8fc;
  --color-text: #102033;
  --color-muted: #5b6f83;
  --color-soft-text: #7890a3;
  --color-line: #d8e8f1;
  --color-line-strong: #bfd8e7;

  --color-primary: #0f82b8;
  --color-primary-dark: #08668f;
  --color-primary-soft: #d7f1ff;
  --color-secondary: #1c4f6e;
  --color-whatsapp: #1fa855;
  --color-whatsapp-dark: #148544;
  --color-warning-soft: #fff5d9;

  --shadow-soft: 0 16px 45px rgba(15, 76, 110, 0.10);
  --shadow-card: 0 12px 34px rgba(20, 82, 112, 0.12);
  --shadow-strong: 0 24px 70px rgba(12, 60, 90, 0.20);

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-xl: 42px;

  --container: 1180px;
  --header-height: 76px;

  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ------------------------------
   2. Reset / global
------------------------------ */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(209, 241, 255, 0.72), transparent 32rem),
    linear-gradient(180deg, #f8fdff 0%, var(--color-bg) 42%, #ffffff 100%);
  overflow-x: hidden;
}

body.is-nav-open,
body.is-modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(15, 130, 184, 0.12);
}

::selection {
  background: var(--color-primary-soft);
  color: var(--color-text);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--color-text);
  color: #fff;
  font-weight: 800;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ------------------------------
   3. Layout helpers
------------------------------ */

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 74px 0;
}

.section--soft {
  background:
    linear-gradient(180deg, rgba(230, 246, 255, 0.52), rgba(255, 255, 255, 0.76));
}

.section--split {
  background: #fff;
}

.section-head {
  max-width: 800px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-head h2,
.split__content h2,
.contact-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.section-head p,
.split__content p,
.contact-copy p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.06rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px !important;
  color: var(--color-primary-dark) !important;
  font-size: 0.78rem !important;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.centered-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* ------------------------------
   4. Buttons
------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 19px;
  font-size: 0.96rem;
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
  text-align: center;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 14px 26px rgba(15, 130, 184, 0.26);
}

.btn--primary:hover {
  box-shadow: 0 18px 34px rgba(15, 130, 184, 0.32);
}

.btn--secondary {
  color: var(--color-primary-dark);
  background: #fff;
  border-color: var(--color-line-strong);
  box-shadow: var(--shadow-soft);
}

.btn--secondary:hover {
  border-color: rgba(15, 130, 184, 0.4);
}

.btn--ghost {
  color: var(--color-secondary);
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(180, 214, 230, 0.8);
}

.btn--light {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--whatsapp {
  color: #fff;
  background: linear-gradient(135deg, var(--color-whatsapp), var(--color-whatsapp-dark));
  box-shadow: 0 14px 28px rgba(31, 168, 85, 0.25);
}

.btn--small {
  min-height: 38px;
  padding: 10px 14px;
  font-size: 0.88rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--color-primary-dark);
  font-weight: 900;
}

.text-link::after {
  content: "→";
  transition: transform 0.18s ease;
}

.text-link:hover::after {
  transform: translateX(3px);
}

/* ------------------------------
   5. Header / nav
------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(191, 216, 231, 0.75);
  background: rgba(247, 252, 255, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: 11px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(15, 130, 184, 0.24);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__text strong {
  font-size: 1.06rem;
  letter-spacing: -0.03em;
}

.brand__text small {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.main-nav {
  display: none;
}

.header-actions {
  display: none;
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--color-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.nav-toggle__line {
  width: 20px;
  height: 2px;
  margin: 2px 0;
  border-radius: 99px;
  background: var(--color-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.is-nav-open .nav-toggle__line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.is-nav-open .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

body.is-nav-open .nav-toggle__line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 979px) {
  .main-nav {
    position: fixed;
    inset: var(--header-height) 16px auto;
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--color-line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-strong);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  body.is-nav-open .main-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--color-text);
    font-weight: 850;
  }

  .main-nav a:hover {
    background: var(--color-primary-soft);
  }
}

/* ------------------------------
   6. Hero
------------------------------ */

.hero {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 92px 0 42px;
  color: #fff;
  background: #0e3145;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 33, 49, 0.82) 0%, rgba(7, 33, 49, 0.52) 42%, rgba(7, 33, 49, 0.24) 100%),
    linear-gradient(0deg, rgba(7, 33, 49, 0.78) 0%, transparent 42%);
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  color: #bfeeff !important;
}

.hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.45rem, 7.8vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.hero__lead {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  line-height: 1.48;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trust-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 980px;
  margin-top: 34px;
}

.trust-strip > div {
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  color: #fff;
  font-size: 1rem;
}

.trust-strip span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
}

/* ------------------------------
   7. Purpose cards
------------------------------ */

.cards {
  display: grid;
  gap: 20px;
}

.purpose-card,
.feature-card,
.quiz-card,
.guide-card {
  position: relative;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.purpose-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.purpose-card__body {
  padding: 22px;
}

.purpose-card h3,
.feature-card h3,
.quiz-card h3,
.guide-card h3,
.video-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.purpose-card p,
.feature-card p,
.guide-card p,
.video-card p {
  margin: 0;
  color: var(--color-muted);
}

/* ------------------------------
   8. Quiz
------------------------------ */

.quiz-grid {
  display: grid;
  gap: 22px;
}

.quiz-card {
  padding: 22px;
}

.quiz-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--color-primary), #99dfff, var(--color-secondary));
}

.quiz-card__head {
  margin-bottom: 20px;
}

.quiz-badge {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quiz-form {
  display: grid;
  gap: 18px;
}

.quiz-form fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.quiz-form legend {
  margin-bottom: 2px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.quiz-form label {
  display: grid;
  gap: 7px;
  color: var(--color-text);
  font-weight: 750;
}

.quiz-form fieldset label,
.check-list label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: #fff;
  color: var(--color-text);
  font-weight: 750;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.quiz-form fieldset label:hover,
.check-list label:hover {
  border-color: var(--color-primary);
  background: #f9fdff;
  transform: translateY(-1px);
}

.quiz-form input[type="radio"],
.quiz-form input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  box-shadow: none;
}

.form-row {
  display: grid;
  gap: 14px;
}

.check-list {
  display: grid;
  gap: 10px;
}

.quiz-result {
  display: none;
  padding: 16px;
  border-radius: 18px;
  background: var(--color-warning-soft);
  color: var(--color-text);
  border: 1px solid #f0dc9f;
}

.quiz-result.is-visible {
  display: block;
}

.quiz-result strong {
  display: block;
  margin-bottom: 4px;
}

/* ------------------------------
   9. Split sections
------------------------------ */

.split {
  display: grid;
  gap: 28px;
  align-items: center;
}

.split__media {
  position: relative;
}

.split__media::before {
  content: "";
  position: absolute;
  inset: 14px -8px -8px 14px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-soft);
  z-index: 0;
}

.split__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split__content {
  max-width: 620px;
}

.split__content p + p {
  margin-top: 14px;
}

.steps {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: #fff;
  color: var(--color-muted);
  font-weight: 720;
}

.steps li span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  background: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 950;
}

.info-card {
  display: grid;
  gap: 4px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.info-card strong {
  color: var(--color-primary-dark);
}

.info-card span {
  color: var(--color-text);
  font-weight: 800;
}

.note {
  margin-top: 14px !important;
  padding: 14px 16px;
  border-left: 4px solid var(--color-primary);
  border-radius: 14px;
  background: var(--color-primary-soft);
}

/* ------------------------------
   10. Features / principles / price
------------------------------ */

.feature-grid {
  display: grid;
  gap: 20px;
}

.feature-card {
  padding: 16px;
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 18px;
}

.principles {
  display: grid;
  gap: 12px;
}

.principle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  color: var(--color-text);
  font-weight: 850;
}

.principle span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  font-size: 0.85rem;
}

.price-factors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.price-factors span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  color: var(--color-secondary);
  font-weight: 850;
}

/* ------------------------------
   11. Video cards
------------------------------ */

.video-grid {
  display: grid;
  gap: 22px;
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.video-card__preview {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 0;
  background: #14364a;
  overflow: hidden;
}

.video-card__preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 20, 30, 0.10), rgba(5, 20, 30, 0.52)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.12), transparent 38%);
}

.video-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card__play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(10px);
}

.video-card__label {
  position: absolute;
  z-index: 2;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: block;
  padding: 9px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
  backdrop-filter: blur(10px);
}

.video-card__body {
  padding: 18px;
}

.video-card__body .btn {
  margin-top: 14px;
  width: 100%;
}

/* ------------------------------
   12. Guide cards
------------------------------ */

.guide-grid {
  display: grid;
  gap: 16px;
}

.guide-card {
  display: block;
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 130, 184, 0.42);
  box-shadow: var(--shadow-strong);
}

.guide-card span {
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-weight: 950;
}

/* ------------------------------
   13. FAQ
------------------------------ */

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
  margin-inline: auto;
}

.faq-list details {
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--color-primary-dark);
  font-size: 1.3rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--color-muted);
}

/* ------------------------------
   14. Contact
------------------------------ */

.section--contact {
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(166, 225, 255, 0.28), transparent 38rem),
    linear-gradient(135deg, #0d3045, #113f5c 42%, #0b2638);
}

.section--contact .eyebrow {
  color: #bfeeff !important;
}

.section--contact p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-layout {
  display: grid;
  gap: 30px;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-card {
  display: grid;
  gap: 4px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
}

.contact-card strong {
  color: #fff;
}

.contact-card a,
.contact-card span {
  color: rgba(255, 255, 255, 0.82);
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-text);
  box-shadow: var(--shadow-strong);
}

.lead-form label {
  display: grid;
  gap: 7px;
  font-weight: 850;
}

.lead-form .btn {
  width: 100%;
}

.form-note {
  margin: 0 !important;
  color: var(--color-muted) !important;
  font-size: 0.88rem;
}

/* ------------------------------
   15. Footer
------------------------------ */

.site-footer {
  padding: 42px 0 92px;
  background: #071d2b;
  color: #fff;
}

.footer-inner {
  display: grid;
  gap: 24px;
}

.brand--footer .brand__text small {
  color: rgba(255, 255, 255, 0.64);
}

.site-footer p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.68);
}

.footer-disclaimer {
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

/* ------------------------------
   16. Mobile sticky CTA
------------------------------ */

.mobile-sticky-cta {
  position: fixed;
  z-index: 90;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(191, 216, 231, 0.85);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(12, 60, 90, 0.24);
  backdrop-filter: blur(16px);
}

.mobile-sticky-cta a {
  display: grid;
  place-items: center;
  min-height: 46px;
  border-radius: 999px;
  color: #fff;
  background: var(--color-secondary);
  font-weight: 950;
}

.mobile-sticky-cta a:last-child {
  background: var(--color-whatsapp);
}

/* ------------------------------
   17. Video modal
------------------------------ */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.video-modal.is-open {
  display: flex;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 17, 27, 0.78);
  backdrop-filter: blur(8px);
}

.video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(430px, 96vw);
  max-height: 94svh;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.video-modal__close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.92);
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.video-modal__content {
  aspect-ratio: 9 / 16;
  width: 100%;
  max-height: 92svh;
  background: #0d3045;
}

.video-modal__content iframe,
.video-modal__content blockquote {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border: 0;
}

.video-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  min-height: 100%;
  padding: 26px;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02)),
    url("../img/video-gallery-phones.jpg") center / cover no-repeat;
}

.video-placeholder::before {
  content: "▶";
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 2px solid rgba(255,255,255,0.72);
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  font-size: 1.3rem;
}

.video-placeholder strong,
.video-placeholder p {
  position: relative;
  z-index: 1;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0,0,0,0.36);
}

.video-placeholder code {
  color: #fff;
  background: rgba(0, 0, 0, 0.38);
  border-radius: 6px;
  padding: 2px 5px;
}

/* ------------------------------
   18. Responsive
------------------------------ */

@media (min-width: 560px) {
  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .cards--three,
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quiz-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

@media (min-width: 980px) {
  :root {
    --header-height: 82px;
  }

  .section {
    padding: 96px 0;
  }

  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .main-nav a {
    padding: 10px 11px;
    border-radius: 999px;
    color: var(--color-muted);
    font-size: 0.92rem;
    font-weight: 850;
  }

  .main-nav a:hover {
    color: var(--color-text);
    background: var(--color-primary-soft);
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .header-actions .btn {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: calc(100svh - var(--header-height));
    padding: 120px 0 56px;
  }

  .trust-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .split,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    gap: 58px;
  }

  .split--reverse .split__media {
    order: 2;
  }

  .split--reverse .split__content {
    order: 1;
  }

  .guide-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .principles {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .principle {
    display: grid;
    align-content: start;
    min-height: 142px;
  }

  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mobile-sticky-cta {
    display: none;
  }

  .site-footer {
    padding-bottom: 42px;
  }
}

@media (min-width: 1180px) {
  .video-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .video-card {
    border-radius: 24px;
  }

  .video-card__body {
    padding: 16px;
  }

  .video-card h3 {
    font-size: 1.05rem;
  }

  .video-card p {
    font-size: 0.9rem;
  }

  .video-card__play {
    width: 56px;
    height: 56px;
  }
}

/* ------------------------------
   19. Reduced motion
------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* ------------------------------
   Language switcher
------------------------------ */

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(21, 105, 140, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 22px rgba(10, 72, 103, 0.08);
}

.lang-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  text-decoration: none;
  color: var(--color-ink, #123243);
}

.lang-switcher a[aria-current="true"] {
  color: #ffffff;
  background: var(--color-primary, #0b6b93);
}

.lang-switcher a:not([aria-current="true"]):hover {
  background: rgba(11, 107, 147, 0.10);
}

@media (max-width: 820px) {
  .header-actions .lang-switcher {
    order: -1;
  }

  .lang-switcher a {
    min-width: 40px;
    min-height: 32px;
    font-size: 12px;
  }
}


/* ------------------------------
   Mobile language switcher fix
   Shows RU / ҚАЗ between logo and burger menu on mobile.
------------------------------ */

.lang-switcher--mobile {
  display: inline-flex;
  margin-left: auto;
}

.lang-switcher--desktop {
  display: none;
}

@media (max-width: 979px) {
  .header-inner {
    gap: 8px;
  }

  .lang-switcher--mobile {
    flex: 0 0 auto;
  }

  .lang-switcher--mobile a {
    min-width: 38px;
    min-height: 32px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand__text strong {
    font-size: 0.98rem;
  }

  .brand__text small {
    font-size: 0.72rem;
  }
}

@media (max-width: 374px) {
  .brand__text small {
    display: none;
  }

  .lang-switcher--mobile a {
    min-width: 34px;
    padding: 6px 7px;
  }
}

@media (min-width: 980px) {
  .lang-switcher--mobile {
    display: none;
  }

  .lang-switcher--desktop {
    display: inline-flex;
  }
}
