/* ===== Design tokens (extracted from reference site) ===== */
:root {
  --dark: #34353f;
  --gray: #9ca2b5;
  --gray-light-bg: #f4f4f6;
  --teal: #3b837d;
  --teal-dark: #2f6a65;
  --teal-light-bg: #eaf1f2;
  --coral: #fa876b;
  --white: #ffffff;
  --border: #e5e5ea;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container: 1200px;
  --shadow: 0 20px 40px rgba(52, 53, 63, 0.08);
  --shadow-lg: 0 30px 70px -20px rgba(52, 53, 63, 0.22);
  --shadow-soft: 0 12px 32px rgba(52, 53, 63, 0.07);
  /* glass */
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-blur: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--dark);
  background: var(--white);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== Decorative gradient blobs (soft glows behind glass) ===== */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.blob--teal  { background: radial-gradient(circle, rgba(59,131,125,0.55), transparent 70%); }
.blob--coral { background: radial-gradient(circle, rgba(250,135,107,0.42), transparent 70%); }
.blob--mint  { background: radial-gradient(circle, rgba(120,190,180,0.45), transparent 70%); }

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

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

ul { list-style: none; }

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

h1, h2, h3 { font-weight: 800; line-height: 1.15; }

h2 {
  font-size: clamp(28px, 3.6vw, 36px);
}

h3 { font-size: 17px; font-weight: 700; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn--dark { background: var(--dark); color: var(--white); }
.btn--dark:hover { transform: translateY(-1px); }
.btn--lg { padding: 16px 32px; font-size: 16px; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  max-width: 1560px;   /* wider than the 1200 content container so the nav fits in both languages */
}
.logo { font-weight: 800; font-size: 18px; letter-spacing: -0.2px; white-space: nowrap; flex-shrink: 0; }
.nav {
  display: flex;
  gap: 14px;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
}
.nav a { font-size: 13.5px; font-weight: 500; color: var(--dark); opacity: 0.85; transition: opacity .15s; white-space: nowrap; }
.nav a:hover { opacity: 1; color: var(--teal); }
.header__right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.header__phone { font-size: 14px; font-weight: 600; white-space: nowrap; }

/* Language switcher */
.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--gray-light-bg);
  border: 1px solid var(--border);
  gap: 2px;
}
.lang__btn {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--gray);
  padding: 6px 12px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.lang__btn:hover { color: var(--dark); }
.lang__btn.is-active {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 10px -3px rgba(59,131,125,0.6);
}
.lang--mobile { align-self: flex-start; margin-bottom: 8px; }

/* Keep the header CTA the same width in RU and KZ so the layout doesn't shift */
.header__right .btn { min-width: 168px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span { width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: .2s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.mobile-menu a { padding: 12px 0; font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 14px; }
.mobile-menu__phone { font-weight: 700 !important; }
.mobile-menu.is-open { display: flex; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 600px at 85% 15%, rgba(59,131,125,0.14), transparent 60%),
    radial-gradient(800px 500px at 10% 90%, rgba(250,135,107,0.12), transparent 55%),
    linear-gradient(180deg, #f3f8f8, #eaf1f2);
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 96px 24px;
}
.hero__text { flex: 1 1 520px; max-width: 580px; }
.uptitle {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 52px);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero__roles { font-size: 17px; font-weight: 500; margin-bottom: 16px; }
.hero__tagline { font-size: 18px; color: #6b7180; margin-bottom: 32px; max-width: 460px; }
.hero__clinic { margin-top: 32px; }
.hero__clinic-name { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.hero__clinic-addr { font-size: 13px; color: var(--gray); }

.hero__photo { flex: 0 0 440px; position: relative; }
.hero__photo-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.6), transparent 45%),
    linear-gradient(145deg, #9fc4bf, #5c9a94);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 88px;
  font-weight: 800;
  color: rgba(255,255,255,0.75);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero__photo-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(52,53,63,0.25));
}

/* Floating glass badges over the hero photo */
.hero__badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.hero__badge b { font-size: 20px; font-weight: 800; display: block; line-height: 1; }
.hero__badge span { font-size: 12px; color: var(--gray); }
.hero__badge-ic {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #4a9c95, #2f6a65);
  box-shadow: 0 8px 16px -6px rgba(59,131,125,0.6);
}
.hero__badge--top { top: 28px; left: -34px; animation-delay: .2s; }
.hero__badge--bottom { bottom: 40px; right: -30px; animation-delay: 1.4s; }
.hero__badge--bottom .hero__badge-ic { background: linear-gradient(145deg, #ff9b81, #f56a49); box-shadow: 0 8px 16px -6px rgba(250,135,107,0.6); }

/* ===== Sections ===== */
.section { padding: 100px 0; position: relative; overflow: hidden; }
.section--tint { background: var(--teal-light-bg); }
.section--gray { background: linear-gradient(180deg, #fafbfc, #f4f4f6); }
.section .container { position: relative; z-index: 2; }

.section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section__head h2 { margin-bottom: 16px; }
.section__head p { color: var(--gray); font-size: 16px; }

/* ===== Grids & Cards ===== */
.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Centered wrap grid — last (incomplete) row sits centered */
.grid--center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.grid--center > * {
  flex: 0 0 calc((100% - 3 * 24px) / 4);
}

/* Glassmorphism card base */
.card {
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}
.card--service:hover, .card--benefit:hover, .card--outline:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59,131,125,0.35);
}
.card--outline { text-align: left; }

.icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.icon--teal {
  background: linear-gradient(145deg, #4a9c95, #2f6a65);
  box-shadow: 0 8px 20px -6px rgba(59,131,125,0.6);
}

.dot {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px;
  color: #fff; font-weight: 800;
}
.dot--coral {
  background: linear-gradient(145deg, #ff9b81, #f56a49);
  box-shadow: 0 8px 20px -6px rgba(250,135,107,0.6);
}

.card--benefit__top { display: flex; align-items: center; justify-content: space-between; }
.tag { font-size: 12px; font-weight: 700; color: var(--teal); background: var(--teal-light-bg); padding: 4px 10px; border-radius: 10px; }
.card--benefit p { color: var(--gray); font-size: 14px; margin-top: 8px; }

/* ===== Method ===== */
.method__inner { display: flex; align-items: flex-start; gap: 60px; }
.method__text { flex: 1 1 520px; max-width: 560px; }
.method__text h2 { margin-bottom: 16px; }
.method__intro { color: #565b6a; margin-bottom: 24px; font-size: 16px; }
.pills { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.pill {
  background: rgba(255,255,255,0.7);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--teal); font-weight: 600; font-size: 14px; padding: 10px 20px; border-radius: 24px;
  box-shadow: var(--shadow-soft);
}
.check-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.check-list li { position: relative; padding-left: 20px; font-size: 14px; font-weight: 500; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.method__approaches { font-size: 13px; color: #6b7180; }

.method__visual { flex: 0 0 420px; display: flex; flex-direction: column; gap: 16px; }
.method__visual-card {
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-soft);
}
.method__step {
  flex: 0 0 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #4a9c95, #2f6a65);
  box-shadow: 0 8px 20px -6px rgba(59,131,125,0.6);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}

/* ===== Testimonial ===== */
.testimonial__inner { display: flex; align-items: center; gap: 60px; }
.testimonial__video {
  flex: 0 0 320px;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  background: var(--dark);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.play-btn {
  position: relative;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--white); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.play-btn:hover { transform: scale(1.08); }
.testimonial__duration { position: absolute; bottom: 16px; left: 16px; color: var(--white); font-size: 12px; font-weight: 600; }
.testimonial__text { flex: 1; max-width: 620px; }
.quote-mark { font-size: 56px; color: var(--teal); font-weight: 800; line-height: 1; display: block; margin-bottom: 8px; }
.testimonial__text p { font-size: clamp(18px, 2.2vw, 22px); font-weight: 500; margin-bottom: 20px; }
.testimonial__author { color: var(--gray); font-size: 14px; }

/* ===== Case cards ===== */
.case-card {
  background: var(--white);
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-card__img {
  display: flex; align-items: center; justify-content: center;
  height: 200px;
  background: linear-gradient(145deg, #d7dee0, #c3cdd0);
  color: rgba(52,53,63,0.4);
  font-weight: 700;
  font-size: 15px;
}
.case-card h3 { padding: 20px; font-size: 15px; }

/* ===== Forms ===== */
.forms { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.form {
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form--filled { background: var(--gray-light-bg); }
.form--outline { background: var(--white); border: 1px solid var(--border); }
.form h3 { margin-bottom: 4px; }
.form input, .form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: inherit;
  font-size: 14px;
  color: var(--dark);
  resize: none;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.form__note { font-size: 13px; color: var(--gray); line-height: 1.5; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: var(--gray); }
.checkbox input { width: auto; margin-top: 2px; }
.checkbox a { color: var(--teal); text-decoration: underline; }
.form .btn { width: 100%; margin-top: 4px; }

/* ===== Footer ===== */
.footer { background: var(--dark); color: #c7cad4; padding: 64px 0 32px; }
.footer__top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; min-width: 160px; }
.footer__logo { color: var(--white); font-weight: 800; font-size: 20px; margin-bottom: 8px; }
.footer__desc { font-size: 13px; line-height: 1.6; }
.footer__col a { font-size: 14px; opacity: 0.85; transition: opacity .15s; }
.footer__col a:hover { opacity: 1; }
.footer__phone { font-weight: 700 !important; color: var(--white); }
.footer__divider { height: 1px; background: rgba(255,255,255,0.12); margin-bottom: 24px; }
.footer__copy { font-size: 12px; opacity: 0.7; }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(52,53,63,0.55); }
.modal__box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 480px;
  width: 100%;
}
.modal__box h3 { margin-bottom: 16px; }
.modal__box p { color: var(--gray); font-size: 15px; line-height: 1.6; }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: var(--gray-light-bg);
  font-size: 20px; cursor: pointer; line-height: 1;
  color: var(--dark);
}

/* ===== Achievement counters ===== */
.stats {
  padding: 64px 0;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(59,131,125,0.10), transparent 60%),
    var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative; z-index: 2;
}
.stat {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stat__num {
  font-size: clamp(34px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(120deg, #3b837d, #5cb0a7);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.stat__label { font-size: 14px; color: var(--gray); font-weight: 500; }

/* ===== About me ===== */
.about__inner { display: flex; align-items: center; gap: 60px; }
.about__photo {
  flex: 0 0 400px;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 70% 20%, rgba(255,255,255,0.5), transparent 45%),
    linear-gradient(145deg, #9fc4bf, #5c9a94);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; font-weight: 800; color: rgba(255,255,255,0.7);
  position: relative;
}
.about__text { flex: 1; }
.about__text h2 { margin-bottom: 20px; }
.about__lead { font-size: 18px; color: #565b6a; margin-bottom: 20px; line-height: 1.6; }
.about__p { color: #6b7180; margin-bottom: 28px; line-height: 1.65; }
.edu-list { display: flex; flex-direction: column; gap: 14px; }
.edu {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  transition: transform .25s ease, box-shadow .25s ease;
}
.edu:hover { transform: translateX(6px); box-shadow: var(--shadow-soft); }
.edu__ic {
  flex: 0 0 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #4a9c95, #2f6a65);
  box-shadow: 0 8px 16px -6px rgba(59,131,125,0.55);
}
.edu b { display: block; font-size: 15px; margin-bottom: 2px; }
.edu span { font-size: 13px; color: var(--gray); }

/* ===== Testimonials slider ===== */
.slider { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.slider__viewport { overflow: hidden; border-radius: var(--radius-xl); }
.slider__track { display: flex; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.slide {
  flex: 0 0 100%;
  padding: 48px;
  text-align: center;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}
.slide__quote { font-size: clamp(18px, 2.3vw, 23px); font-weight: 500; line-height: 1.5; margin-bottom: 24px; }
.slide__stars { color: #f5b74e; font-size: 18px; letter-spacing: 3px; margin-bottom: 16px; }
.slide__author { display: flex; align-items: center; justify-content: center; gap: 12px; }
.slide__avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(145deg, #9fc4bf, #5c9a94);
  color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.slide__name b { display: block; font-size: 15px; }
.slide__name span { font-size: 13px; color: var(--gray); }
.slider__controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 28px; }
.slider__btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--white);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease, color .2s ease;
  color: var(--dark);
}
.slider__btn:hover { background: var(--teal); color: #fff; transform: scale(1.08); border-color: var(--teal); }
.slider__dots { display: flex; gap: 8px; }
.slider__dot {
  width: 9px; height: 9px; border-radius: 50%; border: none;
  background: var(--border); cursor: pointer; transition: all .3s ease; padding: 0;
}
.slider__dot.is-active { background: var(--teal); width: 26px; border-radius: 5px; }

/* ===== FAQ accordion ===== */
.faq { max-width: 780px; margin: 0 auto; position: relative; z-index: 2; }
.faq__item {
  border-radius: var(--radius);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: box-shadow .3s ease;
}
.faq__item.is-open { box-shadow: var(--shadow-lg); }
.faq__q {
  width: 100%; text-align: left; cursor: pointer;
  padding: 22px 26px; background: none; border: none;
  font-family: inherit; font-size: 16px; font-weight: 600; color: var(--dark);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq__icon {
  flex-shrink: 0; width: 26px; height: 26px; position: relative;
  transition: transform .3s ease;
}
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 14px; height: 2px; background: var(--teal); border-radius: 2px;
  transform: translate(-50%, -50%);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s ease; }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq__a-inner { padding: 0 26px 24px; color: #6b7180; line-height: 1.65; }

/* ===== Scroll-reveal animations (Tilda-style) ===== */
.anim .reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1);
  will-change: opacity, transform;
  transition-delay: var(--rd, 0s);
}
.anim .reveal.reveal--zoom  { transform: scale(.93); }
.anim .reveal.reveal--left  { transform: translateX(-52px); }
.anim .reveal.reveal--right { transform: translateX(52px); }
.anim .reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__text > *, .hero__photo, .hero__photo-inner, .play-btn::after { animation: none !important; opacity: 1 !important; }
}

/* ===== Hero entrance on load ===== */
.hero__text > * {
  opacity: 0;
  animation: heroIn .8s cubic-bezier(.2,.6,.2,1) forwards;
}
.hero__text > *:nth-child(1) { animation-delay: .10s; }
.hero__text > *:nth-child(2) { animation-delay: .20s; }
.hero__text > *:nth-child(3) { animation-delay: .30s; }
.hero__text > *:nth-child(4) { animation-delay: .40s; }
.hero__text > *:nth-child(5) { animation-delay: .50s; }
.hero__text > *:nth-child(6) { animation-delay: .60s; }
.hero__photo {
  opacity: 0;
  animation: heroPhotoIn 1s cubic-bezier(.2,.6,.2,1) .25s forwards;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroPhotoIn {
  from { opacity: 0; transform: scale(.96) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* soft float on the hero photo */
.hero__photo-inner { animation: float 6s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* pulse ring on the play button */
.play-btn::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* icon micro-interaction on card hover */
.card--service .icon, .card--benefit .icon { transition: transform .3s ease; }
.card--service:hover .icon, .card--benefit:hover .icon { transform: scale(1.1) rotate(-4deg); }
.card--outline:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card--outline .dot { transition: transform .3s ease; }
.card--outline:hover .dot { transform: scale(1.15); }

/* underline sweep on nav links */
.nav a { position: relative; }
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* button shine */
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}
.btn:hover::before { left: 130%; }

/* case card image zoom */
.case-card__img { transition: transform .5s ease; }
.case-card { position: relative; }
.case-card::after {
  content: 'Подробнее →';
  position: absolute;
  top: 16px; right: 16px;
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .3s ease, transform .3s ease;
}
.case-card:hover::after { opacity: 1; transform: translateY(0); }
.case-card:hover .case-card__img { transform: scale(1.06); }

/* modal fade/scale */
.modal { opacity: 0; transition: opacity .25s ease; }
.modal.is-open { opacity: 1; }
.modal__box { transform: translateY(20px) scale(.97); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.modal.is-open .modal__box { transform: translateY(0) scale(1); }

/* pill hover */
.pill { transition: transform .25s ease, background .25s ease, color .25s ease; }
.pill:hover { background: var(--teal); color: #fff; transform: translateY(-2px); cursor: default; }

/* method step hover */
.method__visual-card { transition: transform .25s ease, box-shadow .25s ease; }
.method__visual-card:hover { transform: translateX(6px); box-shadow: var(--shadow); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--center > * { flex: 0 0 calc((100% - 24px) / 2); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { flex-direction: column-reverse; }
  .hero__photo { flex: 0 0 auto; width: 100%; max-width: 420px; }
  .method__inner, .about__inner { flex-direction: column; }
  .about__photo { flex: 0 0 auto; width: 100%; max-width: 420px; }
  .method__visual { width: 100%; max-width: 420px; }
  .forms { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .nav, .header__right { display: none; }
  .burger { display: flex; }
  .header__inner { padding: 14px 20px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero__inner { padding: 48px 20px; gap: 40px; }
  .grid--4, .grid--3 { grid-template-columns: 1fr; }
  .grid--center > * { flex: 0 0 100%; }
  .footer__top { flex-direction: column; gap: 24px; }
  .slide { padding: 32px 24px; }
  /* keep hero badges from spilling off tiny screens */
  .hero__badge--top { left: 10px; }
  .hero__badge--bottom { right: 10px; }
  .stat { padding: 24px 14px; }
}
