/* ============================================================
   ДОКТОР ОСТЕОПАТИИ ТАСТАНБЕКОВ — Алматы
============================================================ */

:root {
    --teal: #0d9488;
    --teal-bright: #14b8a6;
    --teal-dark: #0f766e;
    --teal-deep: #052e2b;
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;

    --amber: #f59e0b;
    --amber-light: #fbbf24;

    --ink: #0b1f1d;
    --slate: #475569;
    --slate-light: #94a3b8;

    --white: #ffffff;
    --cloud: #f6faf9;
    --mist: #eefcf9;
    --border: #e3ece9;
    --border-soft: #eef4f2;

    --wa: #25d366;
    --star: #f59e0b;

    --grad-teal: linear-gradient(135deg, #14b8a6 0%, #0d9488 50%, #0f766e 100%);
    --grad-amber: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --grad-hero: linear-gradient(160deg, #f0fdfa 0%, #e0f7f3 40%, #ffffff 100%);
    --grad-dark: linear-gradient(160deg, #0f766e 0%, #052e2b 100%);

    --sh-sm: 0 2px 8px rgba(13, 148, 136, 0.08);
    --sh: 0 8px 24px rgba(13, 148, 136, 0.1), 0 2px 8px rgba(11, 31, 29, 0.04);
    --sh-md: 0 18px 40px rgba(13, 148, 136, 0.14), 0 6px 16px rgba(11, 31, 29, 0.06);
    --sh-lg: 0 30px 64px rgba(13, 148, 136, 0.18), 0 12px 28px rgba(11, 31, 29, 0.08);
    --sh-teal: 0 16px 36px rgba(13, 148, 136, 0.35);
    --sh-amber: 0 16px 36px rgba(245, 158, 11, 0.35);

    --r-sm: 12px;
    --r: 18px;
    --r-md: 24px;
    --r-lg: 32px;
    --r-xl: 40px;

    --font: 'Montserrat', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --container: 1240px;
    --header-h: 80px;
    --t: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    font-size: 16px; line-height: 1.6;
    color: var(--slate); background: var(--white);
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
}
button, a, [role="button"], summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
input, textarea { -webkit-appearance: none; appearance: none; }
img, svg, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration: none; transition: color var(--t); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--teal); color: #fff; }

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

.skip-link { position: absolute; top: -100px; left: 0; background: var(--teal); color: #fff; padding: 12px 20px; z-index: 10000; border-radius: 0 0 10px 0; }
.skip-link:focus { top: 0; color: #fff; }

h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.5rem, 7vw, 5rem); margin-bottom: 1.4rem; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.6rem; font-weight: 700; letter-spacing: -0.02em; }
h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px; font-weight: 700; }
p { margin-bottom: 1rem; }
.accent { background: var(--grad-teal); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--teal-dark); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 18px; padding: 8px 16px; background: var(--teal-50); border-radius: 999px; }
.eyebrow-light { background: rgba(255,255,255,0.12); color: var(--teal-200); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 30px; border-radius: 999px; font-weight: 700; font-size: 0.95rem; line-height: 1; transition: all var(--t); cursor: pointer; white-space: nowrap; border: none; position: relative; overflow: hidden; }
.btn-lg { padding: 19px 38px; font-size: 1.02rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--grad-teal); color: #fff; box-shadow: var(--sh-teal); }
.btn-primary:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 22px 44px rgba(13,148,136,0.42); }
.btn-gold { background: var(--grad-amber); color: #fff; box-shadow: var(--sh-amber); }
.btn-gold:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 22px 44px rgba(245,158,11,0.42); }
.btn-outline { background: #fff; color: var(--teal-dark); border: 2px solid var(--teal-100); }
.btn-outline:hover { border-color: var(--teal); background: var(--teal-50); transform: translateY(-3px); color: var(--teal-dark); }
.btn-ghost { background: rgba(255,255,255,0.9); color: var(--ink); border: 2px solid var(--border); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); transform: translateY(-3px); }
.btn-arrow { transition: transform var(--t); }
.btn:hover .btn-arrow { transform: translateX(5px); }

.topbar { background: var(--teal-deep); color: rgba(255,255,255,0.8); font-size: 0.8rem; padding: 9px 0; letter-spacing: 0.02em; }
.topbar-inner { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar-link { color: rgba(255,255,255,0.8); }
.topbar-link:hover { color: var(--teal-200); }

.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.88); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid var(--border-soft); transition: box-shadow var(--t); }
.header.scrolled { box-shadow: 0 6px 30px rgba(11,31,29,0.07); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.logo { display: flex; align-items: center; gap: 13px; color: var(--ink); flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo-icon { width: 50px; height: 50px; background: var(--grad-teal); color: #fff; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: var(--sh-teal); font-weight: 800; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-title { font-size: 1.2rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.logo-sub { font-size: 0.66rem; color: var(--teal-dark); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; }
.nav ul { display: flex; gap: 30px; }
.nav a { color: var(--slate); font-weight: 600; font-size: 0.92rem; position: relative; padding: 8px 0; }
.nav a::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 3px; background: var(--grad-teal); border-radius: 3px; transition: all var(--t); transform: translateX(-50%); }
.nav a:hover { color: var(--teal-dark); }
.nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.phone-icon { font-size: 22px; }
.phone-text { display: flex; flex-direction: column; line-height: 1.1; }
.phone-text small { font-size: 0.66rem; color: var(--slate-light); text-transform: uppercase; letter-spacing: 0.08em; }
.phone-text strong { font-size: 0.95rem; color: var(--ink); font-weight: 800; }
.header-cta { padding: 13px 24px; font-size: 0.9rem; }
.burger { display: none; flex-direction: column; gap: 5px; padding: 10px; z-index: 110; }
.burger span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: var(--t); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* HERO */
.hero { position: relative; padding: 80px 0 110px; overflow: hidden; background: var(--grad-hero); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-bg::before { content: ''; position: absolute; top: -15%; right: -10%; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(20,184,166,0.18) 0%, transparent 70%); animation: float-slow 12s ease-in-out infinite; }
.hero-bg::after { content: ''; position: absolute; bottom: -20%; left: -10%; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, transparent 70%); animation: float-slow 15s ease-in-out infinite reverse; }
@keyframes float-slow { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, 30px); } }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--teal-dark); padding: 10px 20px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; margin-bottom: 28px; box-shadow: var(--sh-sm); border: 1px solid var(--teal-100); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(13,148,136,0.2); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(13,148,136,0.45); } 50% { box-shadow: 0 0 0 10px rgba(13,148,136,0); } }
.hero-text h1 { font-size: clamp(2.6rem, 6.5vw, 5.2rem); line-height: 1; margin-bottom: 26px; }
.hero-lead { font-size: 1.15rem; color: var(--slate); margin-bottom: 32px; max-width: 560px; line-height: 1.65; }
.hero-lead strong { color: var(--ink); font-weight: 700; }
.hero-checks { margin-bottom: 38px; display: flex; flex-direction: column; gap: 14px; }
.hero-checks li { font-size: 1rem; color: var(--ink); font-weight: 600; padding-left: 38px; position: relative; }
.hero-checks li::before { content: '✓'; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; background: var(--grad-teal); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; box-shadow: var(--sh-sm); }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-meta { display: flex; align-items: center; gap: 22px; padding: 18px 24px; background: #fff; border-radius: var(--r); box-shadow: var(--sh); width: fit-content; max-width: 100%; }
.hero-meta-item { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--slate); }
.hero-meta-item strong { color: var(--ink); font-weight: 800; }
.stars { color: var(--star); letter-spacing: 2px; font-size: 0.95rem; }
.check-circle { width: 26px; height: 26px; background: var(--grad-teal); color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.hero-meta-divider { width: 1px; height: 30px; background: var(--border); }

.hero-image-wrap { position: relative; aspect-ratio: 872/845; max-width: 540px; width: 100%; margin-left: auto; }
.hero-image-frame { position: relative; width: 100%; height: 100%; }
.hero-image { position: relative; width: 100%; height: 100%; z-index: 2; border-radius: 50% 50% var(--r-lg) var(--r-lg) / 46% 46% var(--r-lg) var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); background: var(--grad-teal); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-image-decoration { position: absolute; inset: -18px; z-index: 1; background: var(--grad-teal); opacity: 0.12; border-radius: 50% 50% var(--r-xl) var(--r-xl) / 46% 46% var(--r-xl) var(--r-xl); animation: float-slow 10s ease-in-out infinite; }
.hero-portrait-name { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 3; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); padding: 12px 26px; border-radius: 999px; box-shadow: var(--sh-md); text-align: center; white-space: nowrap; }
.portrait-name { font-size: 1rem; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.portrait-title { font-size: 0.68rem; color: var(--teal-dark); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }

/* STATS — плавающая карточка */
.stats { background: var(--white); padding: 0; margin-top: -50px; position: relative; z-index: 5; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; background: #fff; border-radius: var(--r-lg); padding: 44px 32px; box-shadow: var(--sh-lg); border: 1px solid var(--border-soft); }
.stat { text-align: center; position: relative; }
.stat:not(:last-child)::after { content: ''; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); width: 1px; height: 56%; background: var(--border); }
.stat-num { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1; margin-bottom: 8px; letter-spacing: -0.04em; background: var(--grad-teal); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 0.82rem; color: var(--slate); font-weight: 600; }

.section { padding: 100px 0; }
.section-alt { background: var(--cloud); }
.section-dark { background: var(--grad-dark); color: #fff; position: relative; overflow: hidden; }
.section-dark::before { content: ''; position: absolute; top: -10%; right: -5%; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(20,184,166,0.2) 0%, transparent 70%); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 64px; position: relative; }
.section-head .eyebrow { justify-content: center; }
.section-head-light h2 { color: #fff; }
.section-head-light .section-lead { color: rgba(255,255,255,0.78); }
.section-lead { font-size: 1.12rem; color: var(--slate); margin-top: 16px; line-height: 1.65; }

/* PAIN */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pain-card { background: #fff; padding: 36px 30px; border-radius: var(--r-md); border: 1px solid var(--border-soft); transition: all var(--t); position: relative; overflow: hidden; }
.pain-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--grad-teal); transform: scaleX(0); transform-origin: left; transition: transform var(--t); }
.pain-card:hover { transform: translateY(-10px); box-shadow: var(--sh-md); border-color: transparent; }
.pain-card:hover::before { transform: scaleX(1); }
.pain-icon { font-size: 30px; width: 70px; height: 70px; background: var(--teal-50); border-radius: 20px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; transition: var(--t); }
.pain-card:hover .pain-icon { background: var(--grad-teal); transform: rotate(-8deg) scale(1.05); }
.pain-card h3 { color: var(--ink); margin-bottom: 10px; }
.pain-card p { color: var(--slate); font-size: 0.95rem; margin: 0; line-height: 1.6; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: center; }
.about-image { position: relative; }
.about-image-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); aspect-ratio: 872/845; }
.about-image-frame::before { content: ''; position: absolute; inset: -20px -20px 20px 20px; background: var(--grad-amber); opacity: 0.15; border-radius: var(--r-lg); z-index: -1; }
.about-image-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-signature { position: absolute; bottom: -22px; right: -14px; background: #fff; padding: 18px 26px; border-radius: var(--r); box-shadow: var(--sh-md); border-left: 4px solid var(--teal); }
.sig-name { font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.sig-title { font-size: 0.7rem; color: var(--teal-dark); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.about-text h2 { margin-bottom: 24px; }
.about-lead { font-size: 1.15rem; color: var(--ink); font-weight: 700; margin-bottom: 18px; line-height: 1.55; }
.about-text p { color: var(--slate); line-height: 1.75; }
.about-text p strong { color: var(--ink); font-weight: 700; }
.about-credentials { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 32px 0; padding: 30px; background: var(--mist); border-radius: var(--r-md); }
.cred { display: flex; gap: 14px; align-items: flex-start; }
.cred-icon { font-size: 22px; width: 48px; height: 48px; background: #fff; border-radius: 14px; color: var(--teal); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: var(--sh-sm); }
.cred strong { display: block; font-size: 0.95rem; color: var(--ink); line-height: 1.3; font-weight: 700; }
.cred small { color: var(--slate); font-size: 0.8rem; margin-top: 3px; display: block; }

/* EXPERIENCE */
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.exp-col-title { display: flex; align-items: center; gap: 14px; font-size: 1.3rem; font-weight: 800; margin-bottom: 30px; }
.exp-col-title span { font-size: 1.4rem; width: 52px; height: 52px; background: var(--teal-50); border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.timeline-pro { position: relative; padding-left: 30px; }
.timeline-pro::before { content: ''; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, var(--teal) 0%, var(--teal-100) 100%); }
.timeline-pro li { position: relative; padding-bottom: 26px; }
.timeline-pro li:last-child { padding-bottom: 0; }
.timeline-pro li::before { content: ''; position: absolute; left: -30px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--teal); }
.timeline-edu li::before { border-color: var(--amber); }
.timeline-pro .tl-year { display: inline-block; font-size: 0.76rem; font-weight: 800; color: var(--teal-dark); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 5px; }
.timeline-edu .tl-year { color: var(--amber); }
.timeline-pro strong { display: block; font-size: 1.05rem; color: var(--ink); font-weight: 700; margin-bottom: 4px; }
.timeline-pro p { margin: 0; font-size: 0.9rem; color: var(--slate); line-height: 1.55; }
.edu-highlight { background: var(--grad-dark); color: #fff; border-radius: var(--r-md); padding: 34px; text-align: center; margin-bottom: 34px; position: relative; overflow: hidden; }
.edu-highlight::before { content: ''; position: absolute; top: -30px; right: -30px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(245,158,11,0.3) 0%, transparent 70%); }
.edu-hours { font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; background: var(--grad-amber); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.edu-hours-label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.85); margin: 6px 0 16px; }
.edu-school { font-size: 0.92rem; color: rgba(255,255,255,0.9); margin: 0; line-height: 1.5; position: relative; }

/* TRUST */
.trust-strip { background: var(--white); padding: 48px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.trust-strip-label { text-align: center; color: var(--slate); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 22px; font-weight: 700; }
.trust-strip-items { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px 18px; font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.trust-strip-items span:nth-child(even) { color: var(--teal-200); }

/* CERTIFICATES */
.credentials { background: var(--cloud); position: relative; overflow: hidden; }
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 48px; }
.cert-card { background: #fff; border-radius: var(--r-md); padding: 24px; border: 1px solid var(--border-soft); transition: all var(--t); position: relative; display: flex; flex-direction: column; gap: 20px; cursor: pointer; }
.cert-card:hover { transform: translateY(-10px); box-shadow: var(--sh-md); border-color: transparent; }
.cert-card:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 4px; }
.cert-card-featured { border: 2px solid var(--teal); box-shadow: var(--sh); }
.cert-badge-popular { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad-amber); color: #fff; padding: 6px 16px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; box-shadow: var(--sh-amber); z-index: 2; }
.cert-doc { position: relative; background: linear-gradient(135deg, #fefcf5 0%, #fff9ed 100%); border: 1px solid #e8dcc4; border-radius: var(--r-sm); padding: 32px 22px 22px; text-align: center; aspect-ratio: 4/3; display: flex; flex-direction: column; overflow: hidden; transition: transform var(--t); }
.cert-card:hover .cert-doc { transform: scale(1.02); }
.cert-doc::before { content: ''; position: absolute; inset: 8px; border: 1.5px solid rgba(168,138,78,0.35); border-radius: 8px; pointer-events: none; }
.cert-doc-2 { background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%); border-color: #5eead4; }
.cert-doc-2::before { border-color: rgba(13,148,136,0.3); }
.cert-doc-3 { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); border-color: #f59e0b; }
.cert-doc-3::before { border-color: rgba(180,83,9,0.4); }
.cert-doc-4 { background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%); border-color: #a78bfa; }
.cert-doc-4::before { border-color: rgba(109,40,217,0.35); }
.cert-doc-5 { background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%); border-color: #f472b6; }
.cert-doc-5::before { border-color: rgba(190,24,93,0.35); }
.cert-doc-6 { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); border-color: #60a5fa; }
.cert-doc-6::before { border-color: rgba(29,78,216,0.35); }
.cert-doc-ribbon { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 46px; height: 46px; background: var(--grad-teal); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: var(--sh-sm); z-index: 2; }
.cert-doc-corner { position: absolute; width: 14px; height: 14px; border: 2px solid rgba(168,138,78,0.6); z-index: 1; }
.cert-doc-2 .cert-doc-corner { border-color: rgba(13,148,136,0.5); }
.cert-doc-3 .cert-doc-corner { border-color: rgba(180,83,9,0.5); }
.cert-doc-4 .cert-doc-corner { border-color: rgba(109,40,217,0.5); }
.cert-doc-5 .cert-doc-corner { border-color: rgba(190,24,93,0.5); }
.cert-doc-6 .cert-doc-corner { border-color: rgba(29,78,216,0.5); }
.cert-doc-corner-tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-top-left-radius: 4px; }
.cert-doc-corner-tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-top-right-radius: 4px; }
.cert-doc-corner-bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-bottom-left-radius: 4px; }
.cert-doc-corner-br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-bottom-right-radius: 4px; }
.cert-doc-org { margin-top: 40px; font-size: 0.72rem; color: #78603c; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.3; z-index: 1; position: relative; }
.cert-doc-2 .cert-doc-org { color: #0a5d54; } .cert-doc-3 .cert-doc-org { color: #92400e; }
.cert-doc-4 .cert-doc-org { color: #5b21b6; } .cert-doc-5 .cert-doc-org { color: #9d174d; } .cert-doc-6 .cert-doc-org { color: #1e40af; }
.cert-doc-divider { width: 40px; height: 1px; background: currentColor; margin: 10px auto; opacity: 0.3; position: relative; z-index: 1; }
.cert-doc-label { font-size: 0.65rem; color: var(--slate); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; z-index: 1; position: relative; }
.cert-doc-title { font-size: 1rem; font-weight: 800; color: var(--ink); line-height: 1.2; margin-bottom: 10px; z-index: 1; position: relative; }
.cert-doc-name { font-size: 0.8rem; color: #78603c; margin-bottom: auto; z-index: 1; position: relative; font-weight: 600; }
.cert-doc-2 .cert-doc-name { color: #0a5d54; } .cert-doc-3 .cert-doc-name { color: #92400e; }
.cert-doc-4 .cert-doc-name { color: #5b21b6; } .cert-doc-5 .cert-doc-name { color: #9d174d; } .cert-doc-6 .cert-doc-name { color: #1e40af; }
.cert-doc-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid rgba(168,138,78,0.2); font-size: 0.7rem; color: var(--slate); z-index: 1; position: relative; }
.cert-doc-stamp { background: #fff; color: var(--teal-dark); padding: 3px 10px; border-radius: 999px; font-weight: 800; border: 1px solid var(--teal-100); font-size: 0.68rem; }
.cert-info { text-align: center; }
.cert-info h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--ink); }
.cert-info p { color: var(--slate); font-size: 0.88rem; margin: 0 0 14px; line-height: 1.5; }
.cert-view { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-dark); font-weight: 700; font-size: 0.88rem; background: none; border: none; cursor: pointer; padding: 6px 0; transition: gap var(--t); }
.cert-view span { transition: transform var(--t); }
.cert-card:hover .cert-view { gap: 10px; }
.cert-card:hover .cert-view span { transform: translateX(4px); }
.cert-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 48px 40px; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--border-soft); box-shadow: var(--sh); }
.cert-summary-item { text-align: center; position: relative; }
.cert-summary-item:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 60%; background: var(--border); }
.cert-summary-num { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1; margin-bottom: 10px; letter-spacing: -0.04em; background: var(--grad-teal); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cert-summary-label { font-size: 0.8rem; color: var(--slate); line-height: 1.5; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

/* SERVICES */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service { background: #fff; padding: 40px 32px; border-radius: var(--r-md); border: 1px solid var(--border-soft); transition: all var(--t); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.service:hover { transform: translateY(-10px); box-shadow: var(--sh-md); border-color: transparent; }
.service:hover .service-icon { background: var(--grad-teal); transform: rotate(-8deg); }
.service-featured { background: var(--grad-dark); }
.service-featured h3 { color: #fff; }
.service-featured p { color: rgba(255,255,255,0.82); }
.service-featured .service-icon { background: rgba(255,255,255,0.15); }
.service-featured:hover .service-icon { background: var(--grad-amber); }
.service-badge { position: absolute; top: 20px; right: 20px; background: var(--grad-amber); color: #fff; font-size: 0.68rem; font-weight: 800; padding: 6px 13px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.service-icon { font-size: 30px; width: 72px; height: 72px; background: var(--teal-50); border-radius: 22px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; transition: all var(--t); }
.service h3 { margin-bottom: 12px; }
.service p { color: var(--slate); font-size: 0.94rem; margin: 0; flex: 1; line-height: 1.6; }

/* DISEASES */
.diseases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.disease-card { background: #fff; padding: 36px; border-radius: var(--r-md); border: 1px solid var(--border-soft); transition: all var(--t); }
.disease-card:hover { box-shadow: var(--sh-md); transform: translateY(-8px); border-color: transparent; }
.disease-card h3 { color: var(--ink); margin-bottom: 22px; padding-bottom: 16px; border-bottom: 2px solid var(--teal-50); display: flex; align-items: center; gap: 12px; font-size: 1.15rem; }
.disease-card h3 span { font-size: 1.3rem; width: 46px; height: 46px; background: var(--teal-50); border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.disease-card ul { display: flex; flex-direction: column; gap: 12px; }
.disease-card li { padding-left: 26px; position: relative; color: var(--slate); font-size: 0.94rem; line-height: 1.5; }
.disease-card li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; background: var(--teal-50); color: var(--teal); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }

/* STEPS */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.step { padding: 36px 28px; background: rgba(255,255,255,0.06); border-radius: var(--r-md); border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(8px); transition: all var(--t); }
.step:hover { background: rgba(255,255,255,0.1); transform: translateY(-8px); }
.step-num { font-size: 3rem; font-weight: 800; line-height: 1; margin-bottom: 18px; letter-spacing: -0.04em; background: var(--grad-amber); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.step h3 { color: #fff; margin-bottom: 10px; font-size: 1.2rem; }
.step p { color: rgba(255,255,255,0.7); font-size: 0.93rem; margin: 0 0 16px; line-height: 1.6; }
.step small { display: inline-block; padding: 6px 14px; background: rgba(20,184,166,0.18); color: var(--teal-200); border-radius: 999px; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

/* WHY-ME */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why-card { padding: 40px 32px; background: #fff; border-radius: var(--r-md); transition: all var(--t); border: 1px solid var(--border-soft); }
.why-card:hover { box-shadow: var(--sh-md); transform: translateY(-10px); border-color: transparent; }
.why-icon { font-size: 30px; width: 70px; height: 70px; background: var(--teal-50); border-radius: 22px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; transition: var(--t); }
.why-card:hover .why-icon { background: var(--grad-teal); transform: rotate(-8deg); }
.why-card h3 { margin-bottom: 10px; }
.why-card p { color: var(--slate); font-size: 0.95rem; margin: 0; line-height: 1.6; }

/* TESTIMONIALS */
.rating-inline { display: inline-block; margin-left: 10px; color: var(--ink); font-weight: 700; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 48px; }
.testimonial { background: #fff; padding: 44px 32px 32px; border-radius: var(--r-md); border: 1px solid var(--border-soft); transition: all var(--t); position: relative; }
.testimonial::before { content: '"'; position: absolute; top: 6px; left: 28px; font-size: 90px; color: var(--teal-100); line-height: 1; font-weight: 800; }
.testimonial:hover { transform: translateY(-8px); box-shadow: var(--sh-md); border-color: transparent; }
.testimonial-rating { color: var(--star); letter-spacing: 3px; font-size: 1rem; margin-bottom: 18px; position: relative; z-index: 1; }
.testimonial-text { color: var(--ink); font-size: 0.97rem; line-height: 1.65; margin-bottom: 24px; position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--border-soft); }
.testimonial-avatar { width: 48px; height: 48px; background: var(--grad-teal); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem; flex-shrink: 0; }
.testimonial-author strong { display: block; color: var(--ink); font-size: 0.95rem; font-weight: 700; }
.testimonial-author small { color: var(--slate); font-size: 0.82rem; }
.testimonials-cta { text-align: center; }

/* GUARANTEE */
.guarantee { background: var(--grad-dark); color: #fff; padding: 80px 0; position: relative; overflow: hidden; }
.guarantee::before { content: ''; position: absolute; top: -20%; right: -5%; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(245,158,11,0.18) 0%, transparent 70%); }
.guarantee-inner { position: relative; display: flex; align-items: center; gap: 50px; max-width: 960px; margin: 0 auto; }
.guarantee-icon { font-size: 60px; flex-shrink: 0; width: 120px; height: 120px; background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.guarantee-eyebrow { display: inline-block; color: var(--amber-light); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 12px; font-weight: 700; }
.guarantee h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 14px; }
.guarantee p { color: rgba(255,255,255,0.82); font-size: 1.05rem; margin: 0; line-height: 1.7; }

/* FAQ */
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #fff; border-radius: var(--r); border: 1px solid var(--border-soft); transition: box-shadow var(--t), border-color var(--t); }
.faq-item[open] { box-shadow: var(--sh); border-color: var(--teal); }
.faq-item summary { padding: 22px 26px; cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; transition: color var(--t); font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--teal); font-size: 1.6rem; font-weight: 300; line-height: 1; transition: transform var(--t), background var(--t); flex-shrink: 0; width: 34px; height: 34px; background: var(--teal-50); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.faq-item[open] summary { color: var(--teal-dark); padding-bottom: 14px; }
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--grad-teal); color: #fff; }
.faq-item summary:hover { color: var(--teal-dark); }
.faq-item p { margin: 0 26px; padding: 16px 0 22px; color: #2a3b40; line-height: 1.75; font-size: 1rem; border-top: 1px solid var(--border-soft); animation: faqReveal 0.3s ease; }
.faq-item p a { color: var(--teal-dark); font-weight: 700; text-decoration: underline; }
@keyframes faqReveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* SEO content */
.seo-content { background: var(--mist); }
.seo-text { max-width: 820px; margin: 0 auto; }
.seo-text p { font-size: 1.05rem; line-height: 1.8; color: var(--slate); margin-bottom: 20px; }
.seo-text strong { color: var(--ink); font-weight: 700; }
.seo-tags { max-width: 820px; margin: 36px auto 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.seo-tags span { background: #fff; border: 1px solid var(--border); color: var(--slate); padding: 9px 18px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.seo-cta { display: flex; gap: 14px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }

/* LEAD */
.lead { background: var(--grad-dark); padding: 100px 0; color: #fff; position: relative; overflow: hidden; }
.lead::before { content: ''; position: absolute; top: -10%; right: -8%; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(20,184,166,0.22) 0%, transparent 70%); }
.lead::after { content: ''; position: absolute; bottom: -15%; left: -10%; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, transparent 70%); }
.lead-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.lead-text h2 { color: #fff; margin-bottom: 18px; }
.lead-text > p { color: rgba(255,255,255,0.82); font-size: 1.1rem; margin-bottom: 28px; line-height: 1.65; }
.lead-text > p strong { color: #fff; }
.lead-benefits { margin-bottom: 34px; display: flex; flex-direction: column; gap: 13px; }
.lead-benefits li { color: rgba(255,255,255,0.92); font-size: 1rem; }
.lead-contacts { display: flex; gap: 14px; flex-wrap: wrap; }
.lead-contact { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); border-radius: 999px; color: #fff; font-weight: 600; font-size: 0.95rem; transition: var(--t); }
.lead-contact:hover { background: rgba(255,255,255,0.16); color: #fff; transform: translateY(-2px); border-color: var(--teal-200); }
.lead-cta-card { background: #fff; padding: 40px 36px; border-radius: var(--r-lg); box-shadow: var(--sh-lg); text-align: center; }
.lead-cta-avatar { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; margin: 0 auto 16px; border: 4px solid var(--teal-50); box-shadow: var(--sh); }
.lead-cta-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.lead-cta-name { font-size: 1.3rem; font-weight: 800; color: var(--ink); }
.lead-cta-role { font-size: 0.8rem; color: var(--teal-dark); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; margin-bottom: 28px; }
.lead-cta-btn { margin-bottom: 14px; }
.lead-cta-btn:last-of-type { margin-bottom: 0; }
.lead-cta-note { margin: 20px 0 0; font-size: 0.85rem; color: var(--slate); font-weight: 600; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; padding: 20px 24px; background: #fff; border-radius: var(--r); border: 1px solid var(--border-soft); transition: var(--t); }
.contact-item:hover { box-shadow: var(--sh); transform: translateX(6px); border-color: var(--teal-100); }
.contact-icon { font-size: 22px; width: 52px; height: 52px; background: var(--teal-50); border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.contact-item p { color: var(--slate); margin: 0; font-size: 1rem; line-height: 1.5; }
.contact-info .btn { margin-top: 8px; }
.contact-map { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); border: 1px solid var(--border-soft); height: 500px; }
.contact-map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* FOOTER */
.footer { background: var(--teal-deep); color: #fff; padding: 90px 0 0; position: relative; overflow: hidden; }
.footer::before { content: ''; position: absolute; top: -20%; right: -5%; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(20,184,166,0.12) 0%, transparent 70%); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 50px; padding-bottom: 56px; }
.footer-col-main { max-width: 340px; }
.footer .logo { margin-bottom: 20px; }
.footer .logo-title { color: #fff; }
.footer .logo-sub { color: var(--teal-200); }
.footer-about { color: rgba(255,255,255,0.65); font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 46px; height: 46px; background: rgba(255,255,255,0.08); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; transition: var(--t); }
.footer-social a:hover { background: var(--grad-teal); color: #fff; transform: translateY(-3px); }
.footer-col h4 { color: #fff; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li { color: rgba(255,255,255,0.65); font-size: 0.95rem; transition: var(--t); }
.footer-col a:hover { color: var(--teal-200); }
.footer-cta { margin-top: 18px; }
.footer-bottom { position: relative; padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom p { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin: 0 0 4px; }
.footer-disclaimer { font-size: 0.78rem !important; color: rgba(255,255,255,0.38) !important; }

/* FLOAT WHATSAPP */
.float-whatsapp { position: fixed; bottom: 24px; right: 24px; width: 62px; height: 62px; background: var(--wa); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 28px rgba(37,211,102,0.5); z-index: 90; transition: var(--t); }
.float-whatsapp:hover { transform: scale(1.12) rotate(-8deg); color: #fff; }
.float-pulse { position: absolute; inset: 0; border-radius: 50%; background: var(--wa); opacity: 0.5; animation: ripple 2s infinite; z-index: -1; pointer-events: none; }
@keyframes ripple { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.7); opacity: 0; } }

/* MOBILE STICKY CTA — safe-area */
.mobile-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; box-shadow: 0 -8px 28px rgba(11,31,29,0.12); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); z-index: 120; gap: 10px; border-top: 1px solid var(--border-soft); }
.mobile-cta-btn { flex: 1; padding: 15px; border-radius: 14px; font-weight: 800; font-size: 0.95rem; text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; position: relative; z-index: 1; }
.mobile-cta-call { background: var(--cloud); color: var(--ink); border: 1px solid var(--border); }
.mobile-cta-book { background: var(--grad-teal); color: #fff; box-shadow: var(--sh-teal); }

/* MODAL — КРИТИЧНЫЙ ФИКС */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity 0.25s ease; }
.modal[hidden] { display: none !important; }
.modal.open { opacity: 1; }
.modal-overlay { position: absolute; inset: 0; background: rgba(5,46,43,0.85); backdrop-filter: blur(8px); cursor: pointer; }
.modal-window { position: relative; background: #fff; border-radius: var(--r-lg); width: 100%; max-width: 860px; max-height: 92vh; overflow-y: auto; padding: 40px; box-shadow: var(--sh-lg); transform: scale(0.92); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.modal.open .modal-window { transform: scale(1); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; background: var(--cloud); color: var(--ink); border-radius: 50%; font-size: 28px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: var(--t); z-index: 2; }
.modal-close:hover { background: var(--ink); color: #fff; transform: rotate(90deg); }
.modal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; background: #fff; border-radius: 50%; box-shadow: var(--sh-md); font-size: 28px; color: var(--teal); display: flex; align-items: center; justify-content: center; transition: var(--t); z-index: 2; }
.modal-nav:hover { background: var(--grad-teal); color: #fff; transform: translateY(-50%) scale(1.08); }
.modal-prev { left: -24px; } .modal-next { right: -24px; }
.modal-inner { display: flex; flex-direction: column; }
.modal-cert-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.modal-cert-doc { aspect-ratio: 4/3; max-width: 100%; box-shadow: var(--sh-md); }
.modal-cert-info h3 { font-size: 1.7rem; margin-bottom: 14px; }
.modal-cert-info p { color: var(--slate); line-height: 1.7; margin-bottom: 18px; }
.modal-cert-meta { display: flex; gap: 18px; flex-wrap: wrap; }
.modal-cert-meta span { background: var(--cloud); padding: 8px 14px; border-radius: 999px; font-size: 0.9rem; color: var(--ink); font-weight: 600; }
.modal-counter { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--cloud); color: var(--ink); padding: 6px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; }

/* NAV OVERLAY */
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(5,46,43,0.5); backdrop-filter: blur(6px); z-index: 98; opacity: 0; transition: opacity var(--t); }
.nav-overlay.open { display: block; opacity: 1; }

/* CAROUSEL NAV */
.carousel-nav { display: none; }
@media (max-width: 640px) {
    .carousel-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
    .carousel-arrow { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1.5px solid var(--border); color: var(--teal-dark); font-size: 24px; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-sm); transition: var(--t); flex-shrink: 0; padding-bottom: 3px; }
    .carousel-arrow:active { background: var(--teal); color: #fff; border-color: var(--teal); transform: scale(0.94); }
    .carousel-dots { display: flex; gap: 7px; align-items: center; }
    .carousel-dot { width: 8px; height: 8px; padding: 0; border-radius: 50%; background: var(--teal-100); border: none; transition: all var(--t); }
    .carousel-dot.active { width: 24px; border-radius: 5px; background: var(--grad-teal); }
    .section-dark .carousel-arrow { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); color: #fff; }
    .section-dark .carousel-arrow:active { background: var(--amber); border-color: var(--amber); }
    .section-dark .carousel-dot { background: rgba(255,255,255,0.25); }
    .section-dark .carousel-dot.active { background: var(--grad-amber); }
}

/* REVEAL */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 1200px) {
    :root { --container: 100%; }
    .container { padding: 0 28px; }
    .nav ul { gap: 22px; }
    .nav a { font-size: 0.88rem; }
    .header-phone .phone-text small { display: none; }
}

@media (max-width: 1024px) {
    .header .nav { display: none; }
    .burger { display: flex; }
    .header-phone { display: none; }
    .nav.open { display: flex; position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 380px); background: #fff; padding: 90px 28px 28px; box-shadow: -20px 0 60px rgba(11,31,29,0.2); z-index: 99; overflow-y: auto; flex-direction: column; animation: slideIn 0.3s cubic-bezier(0.4,0,0.2,1); }
    @keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
    .nav.open ul { flex-direction: column; gap: 4px; width: 100%; }
    .nav.open a { padding: 16px 18px; display: flex; align-items: center; border-radius: 14px; font-size: 1rem; min-height: 48px; }
    .nav.open a:hover, .nav.open a:active { background: var(--teal-50); color: var(--teal-dark); }
    .nav.open a::after { display: none; }
    .topbar { display: none; }
    :root { --header-h: 72px; }
    .hero-grid, .about-grid, .lead-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero { padding: 50px 0 80px; }
    .hero-text { text-align: center; }
    .hero-badge, .hero-lead, .hero-meta { margin-inline: auto; }
    .hero-checks { display: inline-flex; text-align: left; }
    .hero-buttons { justify-content: center; }
    .hero-image-wrap { max-width: 440px; margin: 0 auto; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
    .stat:not(:last-child)::after { display: none; }
    .pain-grid, .services-grid, .diseases-grid, .why-grid, .testimonials-grid, .cert-grid, .exp-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .cert-summary { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
    .cert-summary-item:not(:last-child)::after { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
    .footer-col-main { grid-column: 1/-1; max-width: 100%; }
    .about-credentials { grid-template-columns: 1fr; }
    .guarantee-inner { flex-direction: column; text-align: center; gap: 24px; }
    .guarantee-icon { font-size: 52px; width: 100px; height: 100px; }
    .section { padding: 76px 0; }
    .section-head { margin-bottom: 48px; }
    .modal-cert-wrap { grid-template-columns: 1fr; gap: 24px; }
    .modal-cert-info { text-align: center; }
    .modal-cert-meta { justify-content: center; }
    .modal-prev { left: 8px; } .modal-next { right: 8px; }
    body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
    .mobile-cta { display: flex; }
    .float-whatsapp { bottom: calc(98px + env(safe-area-inset-bottom)); width: 54px; height: 54px; }
}

@media (max-width: 768px) {
    .container { padding: 0 22px; }
    h1 { font-size: clamp(2rem, 7vw, 2.6rem); }
    h2 { font-size: clamp(1.55rem, 5.5vw, 2rem); }
    h3 { font-size: 1.15rem; }
    .section-lead { font-size: 0.98rem; margin-top: 12px; }
    .section { padding: 56px 0; }
    .section-head { margin-bottom: 36px; }
    .about-image-frame { max-width: 360px; margin: 0 auto; }
    .stats { margin-top: -40px; }
    .stats-grid { padding: 32px 20px; }
}

@media (max-width: 640px) {
    :root { --header-h: 60px; }
    .container { padding: 0 22px; }
    .header-inner { height: 60px; }
    .logo-icon { width: 40px; height: 40px; font-size: 19px; border-radius: 12px; }
    .logo-title { font-size: 1rem; }
    .logo-sub { font-size: 0.6rem; }
    .header-cta { display: none; }

    h1 { font-size: 1.85rem; margin-bottom: 1rem; }
    h2 { font-size: 1.45rem; margin-bottom: 0.7rem; }
    h3 { font-size: 1.08rem; }
    .eyebrow { font-size: 0.7rem; padding: 6px 13px; margin-bottom: 14px; }

    .section { padding: 44px 0; }
    .section-head { margin-bottom: 28px; }
    .section-lead { font-size: 0.92rem; margin-top: 10px; line-height: 1.55; }

    .hero { padding: 20px 0 44px; }
    .hero-grid { gap: 28px; }
    .hero-badge { font-size: 0.7rem; padding: 7px 14px; margin-bottom: 16px; }
    .hero-text h1 { font-size: 2.15rem; line-height: 1.06; margin-bottom: 14px; }
    .hero-lead { font-size: 0.98rem; margin-bottom: 18px; line-height: 1.5; max-width: 100%; }
    .hero-checks { margin-bottom: 22px; gap: 9px; }
    .hero-checks li { font-size: 0.9rem; padding-left: 30px; }
    .hero-checks li::before { width: 21px; height: 21px; font-size: 11px; }
    .hero-buttons { flex-direction: column; width: 100%; gap: 10px; margin-bottom: 18px; }
    .hero-buttons .btn { width: 100%; }
    .hero-meta { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px 14px; width: 100%; padding: 12px 16px; }
    .hero-meta-item { font-size: 0.85rem; }
    .hero-image-wrap { max-width: 290px; margin: 0 auto 22px; order: -1; }

    .stats { margin-top: -28px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; padding: 26px 16px; border-radius: var(--r-md); }
    .stat-num { font-size: 1.9rem; margin-bottom: 4px; }
    .stat-label { font-size: 0.72rem; }
    .stat:nth-child(odd)::after { display: none; }

    /* Свайп-карусели */
    .pain-grid, .services-grid, .diseases-grid, .why-grid, .testimonials-grid, .cert-grid, .steps {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
        gap: 14px;
        margin: 0 -22px;
        padding: 6px 22px 18px;
        scrollbar-width: none;
    }
    .pain-grid::-webkit-scrollbar, .services-grid::-webkit-scrollbar,
    .diseases-grid::-webkit-scrollbar, .why-grid::-webkit-scrollbar,
    .testimonials-grid::-webkit-scrollbar, .cert-grid::-webkit-scrollbar,
    .steps::-webkit-scrollbar { display: none; }
    .pain-card, .service, .disease-card, .why-card, .testimonial, .cert-card, .step {
        flex: 0 0 84%;
        scroll-snap-align: start;
    }
    .exp-grid, .about-credentials { grid-template-columns: 1fr; gap: 16px; }
    .cert-summary { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; padding: 30px 20px; }
    .cert-summary-item:not(:last-child)::after { display: none; }
    .cert-summary-item:nth-child(odd)::after { display: none; }

    .pain-card, .service, .why-card, .disease-card { padding: 24px 22px; }
    .pain-card p, .service p, .why-card p { font-size: 0.92rem; }
    .pain-icon, .service-icon, .why-icon { width: 56px; height: 56px; font-size: 26px; border-radius: 16px; margin-bottom: 16px; }
    .testimonial { padding: 32px 22px 24px; }
    .testimonial-text { font-size: 0.93rem; margin-bottom: 18px; }
    .step { padding: 26px 22px; }
    .step-num { font-size: 2.4rem; margin-bottom: 12px; }
    .cert-card { padding: 18px; gap: 16px; }

    .about-grid, .exp-grid { gap: 36px; }
    .about-credentials { padding: 22px; gap: 14px; margin: 26px 0; }
    .exp-col-title { font-size: 1.15rem; margin-bottom: 22px; }
    .exp-col-title span { width: 44px; height: 44px; font-size: 1.2rem; }
    .timeline-pro strong { font-size: 1rem; }
    .about-signature { right: 8px; bottom: -16px; padding: 12px 18px; }
    .sig-name { font-size: 0.95rem; }

    .disease-card h3 { font-size: 1.05rem; margin-bottom: 16px; }
    .disease-card h3 span { width: 40px; height: 40px; font-size: 1.1rem; }

    .faq-list { gap: 12px; }
    .faq-item summary { padding: 16px 20px; font-size: 0.95rem; gap: 12px; }
    .faq-item[open] summary { padding-bottom: 10px; }
    .faq-item summary::after { width: 30px; height: 30px; font-size: 1.4rem; }
    .faq-item p { margin: 0 20px; padding: 14px 0 18px; font-size: 0.94rem; line-height: 1.7; }

    .lead { padding: 48px 0; }
    .lead-text > p { font-size: 1rem; }
    .lead-benefits li { font-size: 0.93rem; }
    .lead-cta-card { padding: 28px 22px; border-radius: var(--r-md); }
    .lead-contacts { flex-direction: column; }
    .lead-contact { justify-content: center; width: 100%; }

    .contact-item { padding: 15px 18px; gap: 14px; }
    .contact-icon { width: 46px; height: 46px; font-size: 20px; }
    .contact-item p { font-size: 0.95rem; }
    .contact-map { height: 300px; }

    .guarantee { padding: 48px 0; }
    .guarantee-inner { gap: 20px; }
    .guarantee-icon { width: 84px; height: 84px; font-size: 44px; }
    .guarantee p { font-size: 0.98rem; }

    .seo-content .section-head { margin-bottom: 24px; }
    .seo-text p { font-size: 0.95rem; line-height: 1.7; margin-bottom: 16px; }
    .seo-tags { margin-top: 26px; gap: 8px; }
    .seo-tags span { font-size: 0.78rem; padding: 7px 14px; }
    .seo-cta { flex-direction: column; margin-top: 32px; }
    .seo-cta .btn { width: 100%; }

    .footer { padding-top: 48px; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; padding-bottom: 32px; }
    .footer-bottom { padding: 18px 0; }

    .float-whatsapp { bottom: calc(96px + env(safe-area-inset-bottom)); right: 16px; width: 50px; height: 50px; }
    .modal-window { padding: 24px 18px; }
    .modal-cert-info h3 { font-size: 1.3rem; }

    .hero-image { border-radius: 44% 44% var(--r-md) var(--r-md) / 40% 40% var(--r-md) var(--r-md); }
    .trust-strip { padding: 36px 0; }
    .trust-strip-items { font-size: 0.85rem; gap: 8px 14px; }
}

@media (max-width: 400px) {
    .container { padding: 0 16px; }
    .hero-text h1 { font-size: 1.85rem; }
    h2 { font-size: 1.35rem; }
    .hero-image-wrap { max-width: 240px; }
    .mobile-cta-btn { font-size: 0.85rem; padding: 13px 8px; }
    .stat-num { font-size: 1.7rem; }
    .section { padding: 40px 0; }
}

@media (hover: none) {
    .btn { min-height: 48px; }
    .pain-card:hover, .service:hover, .why-card:hover, .disease-card:hover, .testimonial:hover, .cert-card:hover, .contact-item:hover { transform: none; }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hero { padding: 30px 0 50px; }
    .nav.open { padding-top: 64px; }
}
