/* ========================================================
   ВОЛНА · Медицина здорового долголетия — webinar landing
   24 июня · 18:00 МСК. Всё заскоупено под .lb-lng,
   чтобы не конфликтовать с GetCourse / платформенными стилями.
   ======================================================== */

/* --- Scoped reset --- */
.lb-lng,
.lb-lng *,
.lb-lng *::before,
.lb-lng *::after {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
}

/* --- Root variables + base --- */
.lb-lng {
    --lng-bg: #EEF3F5;
    --lng-ink: #314853;
    --lng-ink-2: #728F91;
    --lng-ink-3: #729A9C;
    --lng-brand: #8AC0CC;
    --lng-brand-deep: #5F9A9C;
    --lng-white: #FFFFFF;
    --lng-line: #D4DEE2;
    --lng-line-2: #BFD0D6;
    --lng-card: #E3ECEE;
    --lng-dark: #253737;
    --lng-btn: #31494A;
    --lng-field: #EAF0F1;
    --lng-hero: #253737;
    --lng-footer: #4F6464;

    --lng-sans: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

    --lng-fs-hero: clamp(38px, 4.8vw, 64px);
    --lng-fs-h2: clamp(30px, 4vw, 52px);
    --lng-fs-h3: clamp(19px, 1.9vw, 24px);
    --lng-fs-body: clamp(15px, 1.05vw, 17px);
    --lng-fs-lead: clamp(17px, 1.4vw, 21px);

    --lng-wrap: 1320px;
    --lng-pad: clamp(20px, 4vw, 56px);
    --lng-section-y: clamp(72px, 8.5vw, 116px);

    --lng-radius: 16px;
    --lng-radius-lg: 24px;
    --lng-radius-xl: 36px;

    /* Кривые анимации (сильные, не вялые встроенные ease) */
    --lng-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --lng-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

    font-family: var(--lng-sans) !important;
    font-size: var(--lng-fs-body) !important;
    line-height: 1.5 !important;
    color: var(--lng-ink) !important;
    background: var(--lng-bg) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "ss01", "ss02", "cv01";
    overflow-x: hidden;
}

.lb-lng img { max-width: 100%; display: block; }
.lb-lng a { color: inherit; text-decoration: none; }
.lb-lng button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
.lb-lng p { margin: 0; }
.lb-lng em { font-style: italic; font-weight: 400; }

.lb-lng h1, .lb-lng h2, .lb-lng h3 {
    font-family: var(--lng-sans);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.06;
    color: var(--lng-ink);
    margin: 0;
}
.lb-lng h1 { font-size: var(--lng-fs-hero); line-height: 1.02; letter-spacing: -0.03em; }
.lb-lng h2 { font-size: var(--lng-fs-h2); line-height: 1.08; letter-spacing: -0.025em; }
.lb-lng h3 { font-size: var(--lng-fs-h3); line-height: 1.2; letter-spacing: -0.015em; }

/* image placeholder tint (заглушки до получения ссылок) */
.lb-lng .ph { background: linear-gradient(135deg, #C9E0E6, #DCE8EB); object-fit: cover; }

.lb-lng .wrap {
    width: 100%;
    max-width: var(--lng-wrap);
    margin: 0 auto;
    padding: 0 var(--lng-pad);
}

/* --- Eyebrow --- */
.lb-lng .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lng-brand-deep);
}
.lb-lng .eyebrow__line { display: block; width: 28px; height: 1px; background: currentColor; }

/* --- Buttons --- */
.lb-lng .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 17px 30px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
    transition: transform 180ms var(--lng-ease-out), background 220ms var(--lng-ease-out), color 220ms var(--lng-ease-out), box-shadow 220ms var(--lng-ease-out);
    white-space: nowrap;
    line-height: 1;
}
.lb-lng .btn .arrow { width: 18px; height: 18px; transition: transform 180ms var(--lng-ease-out); }
/* Тактильный отклик на нажатие — работает и на тач-устройствах */
.lb-lng .btn:active { transform: scale(0.97); }

.lb-lng .btn--primary {
    background: var(--lng-btn);
    color: var(--lng-field);
    box-shadow: 0 18px 40px -22px rgba(37, 55, 55, 0.55);
}
.lb-lng .btn--light {
    background: var(--lng-white);
    color: var(--lng-ink);
    box-shadow: 0 14px 34px -20px rgba(0, 0, 0, 0.45);
}

/* Hover-эффекты только для устройств с настоящим курсором (без «залипания» на тач) */
@media (hover: hover) and (pointer: fine) {
    .lb-lng .btn:hover .arrow { transform: translateX(4px); }
    .lb-lng .btn--primary:hover {
        background: var(--lng-dark);
        transform: translateY(-1px);
        box-shadow: 0 22px 48px -22px rgba(37, 55, 55, 0.6);
    }
    .lb-lng .btn--light:hover {
        background: var(--lng-brand-deep);
        color: var(--lng-white);
        transform: translateY(-1px);
    }
}

/* --- VOLNA logo (mask SVG) --- */
.lb-lng .hero__logo,
.lb-lng .ftr__logo {
    display: inline-block;
    width: 124px;
    height: 26px;
    -webkit-mask: url('/uploads/logo-volna.svg') no-repeat center / contain;
            mask: url('/uploads/logo-volna.svg') no-repeat center / contain;
}
.lb-lng .hero__logo { background-color: var(--lng-white); }
.lb-lng .ftr__logo { background-color: var(--lng-white); width: 112px; height: 23px; }

/* --- Sticky navbar (появляется при прокрутке) --- */
.lb-lng .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: clamp(10px, 1vw, 16px) var(--lng-pad);
    transform: translateY(-130%);
    opacity: 0;
    transition: transform 360ms var(--lng-ease-out), opacity 360ms var(--lng-ease-out);
    pointer-events: none;
}
.lb-lng .navbar.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.lb-lng .navbar__inner {
    max-width: var(--lng-wrap);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--lng-white);
    border-radius: 999px;
    box-shadow: 0 16px 40px -20px rgba(37, 55, 55, 0.4), 0 0 0 1px rgba(37, 55, 55, 0.04);
    padding: 12px 12px 12px clamp(20px, 2vw, 32px);
}
.lb-lng .navbar__logo {
    display: inline-block;
    width: 110px;
    height: 23px;
    background-color: var(--lng-ink);
    -webkit-mask: url('/uploads/logo-volna.svg') no-repeat center / contain;
            mask: url('/uploads/logo-volna.svg') no-repeat center / contain;
}
.lb-lng .navbar__cta { padding: 13px 26px; }

/* ============================ HERO ============================ */
.lb-lng .hero {
    position: relative;
    background: #253737 url('/uploads/hero-bg.webp') no-repeat center / cover;
    color: var(--lng-white);
    overflow: hidden;
    max-width: var(--lng-wrap);
    margin: clamp(8px, 1vw, 16px) auto 0;
    border-radius: clamp(24px, 2.4vw, 36px);
}
.lb-lng .hero__bg {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 54%;
    height: auto;
    top: 26%;
    left: 3%;
    right: auto;
    object-fit: contain;
    opacity: 0.6;
    /* ДНК в исходнике красная — уводим в светлую мяту под палитру героя */
    filter: hue-rotate(140deg) saturate(0.45) brightness(1.5);
    mix-blend-mode: screen;
    -webkit-mask-image: radial-gradient(72% 72% at 50% 50%, #000 32%, transparent 80%);
            mask-image: radial-gradient(72% 72% at 50% 50%, #000 32%, transparent 80%);
    z-index: 0;
}
/* Главный герой первого блока (вырезанное фото врача) */
.lb-lng .hero__figure {
    display: none;
    position: absolute;
    left: 43%;
    bottom: -12%;
    transform: translateX(-50%);
    height: 115%;
    width: auto;
    z-index: 1;
    pointer-events: none;
}
.lb-lng .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(55% 45% at 30% 30%, rgba(150, 195, 198, 0.08), transparent 65%);
    z-index: 0;
}
.lb-lng .hero__inner {
    position: relative;
    z-index: 2;
    padding-bottom: clamp(56px, 7vw, 100px);
}
.lb-lng .hero__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 0 8px;
}
.lb-lng .hero__grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(24px, 3vw, 48px);
    align-items: start;
    padding-top: clamp(24px, 4vw, 56px);
}
.lb-lng .hero__content { max-width: 580px; }

.lb-lng .hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--lng-white);
    letter-spacing: 0.01em;
}
.lb-lng .hero__pill-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #FF6B57;
    animation: lng-pulse 2s ease-in-out infinite;
}
@keyframes lng-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 87, 0.55); }
    50%      { box-shadow: 0 0 0 7px rgba(255, 107, 87, 0); }
}
.lb-lng .hero__title { color: var(--lng-white); margin-top: 26px; max-width: none; white-space: nowrap; }
.lb-lng .hero__lede {
    margin-top: 22px;
    max-width: 30ch;
    font-size: var(--lng-fs-lead);
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.4;
    font-weight: 500;
}
.lb-lng .hero__note {
    margin-top: 26px;
    max-width: 44ch;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.6;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--lng-radius);
}
.lb-lng .hero__proof {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.lb-lng .hero__avatars { display: inline-flex; }
.lb-lng .hero__avatar {
    width: 50px; height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--lng-white);
    border: 2px solid var(--lng-white);
    margin-left: -14px;
    flex-shrink: 0;
}
.lb-lng .hero__avatar:first-child { margin-left: 0; }
.lb-lng .hero__avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}
.lb-lng .hero__proof-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.4;
    max-width: 26ch;
}
.lb-lng .hero__proof-text strong { color: var(--lng-white); font-weight: 700; }

.lb-lng .hero__when {
    margin-top: 36px;
    display: inline-flex;
    align-items: center;
    gap: 28px;
    background: var(--lng-white);
    color: var(--lng-ink);
    padding: 22px 34px;
    border-radius: var(--lng-radius);
    box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.55);
}
.lb-lng .hero__when-item { display: flex; flex-direction: column; align-items: center; }
.lb-lng .hero__when-num { font-size: clamp(30px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.lb-lng .hero__when-unit { margin-top: 6px; font-size: 14px; color: var(--lng-ink-3); font-weight: 500; }
.lb-lng .hero__when-divider { width: 1px; align-self: stretch; background: var(--lng-line); }

/* Кнопка-CTA внутри контента героя нужна только на мобильном (см. media 760px) */
.lb-lng .hero__cta { display: none; }

/* --- Hero registration card (dark, как в макете) --- */
.lb-lng .hero__form { position: relative; z-index: 3; max-width: 500px; margin-left: auto; width: 100%; }
.lb-lng .reg-card {
    position: relative;
    background: var(--lng-dark);
    color: var(--lng-white);
    border-radius: var(--lng-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: clamp(22px, 2.4vw, 32px);
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.7);
}
/* Крестик нужен только в мобильном модальном окне (см. media 760px) */
.lb-lng .reg-card__close { display: none; }
/* Плашка подарка стоит под формой — она не обещание, а напоминание,
   что придёт после регистрации */
.lb-lng .reg-card__gift {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(112deg, #7E7EFF 3%, #3949F1 78%);
    border-radius: 16px;
    padding: 10px 18px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--lng-white);
    margin-top: 20px;
}
.lb-lng .reg-card__gift strong { font-weight: 700; }
.lb-lng .reg-card__gift-thumb {
    flex-shrink: 0;
    width: 60px; height: 50px;
    border-radius: 8px;
    background: url('/uploads/gift-thumb.webp') no-repeat 14% center / auto 150%;
}
.lb-lng .reg-card__title { color: var(--lng-white); font-size: clamp(26px, 3.4vw, 34px); }
.lb-lng .reg-card__lead {
    margin-top: 12px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.4;
}

/* ============================ SECTION base ============================ */
.lb-lng .section { padding: var(--lng-section-y) 0; position: relative; }
.lb-lng .section__head { max-width: 880px; margin-bottom: clamp(40px, 5vw, 64px); }
.lb-lng .section__head--row {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}
.lb-lng .section__head--center { max-width: none; text-align: center; }
.lb-lng .section__title { margin-top: 18px; }
.lb-lng .section__head-cta { flex-shrink: 0; }
.lb-lng .section__cta { margin-top: clamp(40px, 5vw, 56px); display: flex; justify-content: center; }
.lb-lng .topics__cta-mobile { display: none; }

/* --- Topics grid --- */
.lb-lng .topics { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--lng-line); }
.lb-lng .topic {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 24px;
    padding: 34px 0;
    border-bottom: 1px solid var(--lng-line);
    align-items: start;
}
.lb-lng .topic:nth-child(odd) { padding-right: 48px; border-right: 1px solid var(--lng-line); }
.lb-lng .topic:nth-child(even) { padding-left: 48px; }
.lb-lng .topic__num { font-size: 34px; font-weight: 400; color: var(--lng-ink-3); letter-spacing: -0.02em; line-height: 1; padding-top: 2px; }
.lb-lng .topic__body h3 { margin-bottom: 10px; }
.lb-lng .topic__body p { color: var(--lng-ink-2); font-size: 15px; line-height: 1.55; }

/* --- Bento (Этот эфир для вас) --- */
.lb-lng .bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    grid-auto-rows: clamp(232px, 18.5vw, 282px);
}
.lb-lng .bento__card {
    border-radius: var(--lng-radius-lg);
    overflow: hidden;
    position: relative;
}
.lb-lng .bento__card--text {
    background-color: var(--lng-card);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: clamp(24px, 2.4vw, 30px);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.lb-lng .bento__bg-icon {
    position: absolute;
    right: -16px;
    bottom: -16px;
    width: 150px;
    height: 150px;
    color: var(--lng-brand);
    opacity: 0.28;
    pointer-events: none;
}
.lb-lng .bento__title { font-size: clamp(22px, 2.2vw, 27px); font-weight: 500; line-height: 1.2; position: relative; z-index: 1; max-width: none; }
.lb-lng .bento__sub { color: var(--lng-ink-2); font-size: 15px; position: relative; z-index: 1; }
.lb-lng .bento__tags { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.lb-lng .bento__tags { gap: 9px; }
.lb-lng .bento__tags span {
    background: var(--lng-white);
    border: 1px solid var(--lng-line);
    border-radius: 999px;
    padding: 9px 15px;
    font-size: 14px;
    font-weight: 500;
    color: var(--lng-ink-2);
    white-space: nowrap;
}
.lb-lng .bento__card--photo { background: var(--lng-card); }
.lb-lng .bento__card--photo .ph { width: 100%; height: 100%; min-height: 220px; display: block; }

/* --- Speakers (4) --- */
.lb-lng .speakers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.lb-lng .speaker { text-align: center; display: flex; flex-direction: column; align-items: center; }
.lb-lng .speaker__photo {
    width: 130px; height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 22px;
}
.lb-lng .speaker__name { font-size: 19px; font-weight: 700; color: var(--lng-ink); letter-spacing: -0.01em; margin-bottom: 12px; }
.lb-lng .speaker__bio { font-size: 14px; color: var(--lng-ink-2); line-height: 1.55; max-width: 24ch; }

/* --- About + stats (dark) --- */
.lb-lng .about-section {
    position: relative;
    background: var(--lng-dark) url('/uploads/about-bg.webp') no-repeat center center / cover;
    color: var(--lng-white);
    border-radius: var(--lng-radius-xl);
    max-width: var(--lng-wrap);
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: clamp(300px, 27vw, 450px);
    overflow: hidden;
}
.lb-lng .about-section .wrap { padding-left: clamp(28px, 4vw, 64px); padding-right: clamp(28px, 4vw, 64px); }
.lb-lng .about__inner { position: relative; z-index: 2; }

/* Башня теперь запечена в фон секции */
.lb-lng .about__tower { display: none; }

.lb-lng .about {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}
.lb-lng .about__title { color: var(--lng-white); font-size: clamp(28px, 3.3vw, 44px); }
.lb-lng .about__copy { font-size: 15px; color: rgba(255, 255, 255, 0.78); line-height: 1.6; }
.lb-lng .about__copy p + p { margin-top: 14px; }
.lb-lng .about__copy p:first-child { color: var(--lng-white); font-weight: 600; font-size: 16px; }

/* ----- Статы на перекрывающихся кругах ----- */
.lb-lng .stats {
    margin-top: clamp(32px, 4vw, 56px);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    align-items: start;
}
.lb-lng .stat {
    position: relative;
    text-align: center;
    padding: clamp(44px, 4.4vw, 62px) 10px 0;
    z-index: 1;
}
.lb-lng .stat::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: clamp(150px, 15vw, 215px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 42%,
                rgba(255, 255, 255, 0.10) 0%,
                rgba(255, 255, 255, 0.05) 52%,
                rgba(255, 255, 255, 0.015) 70%,
                rgba(255, 255, 255, 0) 73%);
    z-index: -1;
    pointer-events: none;
}
.lb-lng .stat__num { font-size: clamp(28px, 2.9vw, 40px); font-weight: 600; color: var(--lng-white); letter-spacing: -0.03em; line-height: 1; margin-bottom: 10px; }
.lb-lng .stat__num-sm { font-size: 17px; color: rgba(255, 255, 255, 0.6); font-weight: 500; }
.lb-lng .stat__lbl { font-size: 12px; color: rgba(255, 255, 255, 0.7); line-height: 1.45; max-width: 160px; margin: 0 auto; }

/* ----- Фото врачей (вырезка) на переднем плане ----- */
.lb-lng .about__doctors {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: clamp(840px, 86%, 1140px);
    height: auto;
    display: block;
    z-index: 3;
    pointer-events: none;
}
.lb-lng .about__cta {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    bottom: clamp(28px, 3.5vw, 52px);
    z-index: 4;
}

/* ============================ FOOTER (минимальный: лого + год) ============================ */
.lb-lng .ftr {
    position: relative;
    background: var(--lng-footer);
    color: rgba(255, 255, 255, 0.85);
    max-width: var(--lng-wrap);
    margin: clamp(16px, 2vw, 32px) auto clamp(16px, 2vw, 32px);
    border-radius: var(--lng-radius-xl);
    padding: clamp(28px, 3vw, 40px) 0;
    overflow: hidden;
}
.lb-lng .ftr__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 3vw, 48px);
}
.lb-lng .ftr__brand { display: flex; flex-direction: column; gap: 12px; }
.lb-lng .ftr__copy { font-size: 14px; color: rgba(255, 255, 255, 0.7); white-space: nowrap; }
.lb-lng .ftr__meta { text-align: right; }
.lb-lng .ftr__when { font-size: 14px; font-weight: 600; color: var(--lng-white); }
.lb-lng .ftr__policy { margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.65); line-height: 1.5; max-width: 42ch; }
.lb-lng .ftr__policy a { color: rgba(255, 255, 255, 0.85); text-decoration: underline; text-underline-offset: 2px; transition: color 200ms var(--lng-ease-out); }
@media (hover: hover) and (pointer: fine) {
    .lb-lng .ftr__policy a:hover { color: var(--lng-white); }
}
@media (max-width: 640px) {
    .lb-lng .ftr__inner { flex-direction: column; align-items: flex-start; gap: 22px; }
    .lb-lng .ftr__meta { text-align: left; }
    .lb-lng .ftr__policy { max-width: none; }
}

/* ============================ Scroll reveal ============================ */
.lb-lng .fade-in { opacity: 0; transform: translateY(16px); transition: opacity 620ms var(--lng-ease-out), transform 620ms var(--lng-ease-out); }
.lb-lng .fade-in.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .lb-lng *, .lb-lng *::before, .lb-lng *::after { animation: none !important; transition: none !important; }
    .lb-lng .fade-in { opacity: 1; transform: none; }
}

/* ============================ Responsive ============================ */
@media (max-width: 1000px) {
    /* Один столбец + перестановка блоков под мобильный макет:
       плашка → заголовок → подзаголовок → форма → дата → текст → пруф.
       display:contents «разворачивает» hero__content, чтобы when/note/proof
       можно было переставить относительно формы (она — соседний блок). */
    .lb-lng .hero__grid { display: flex; flex-direction: column; gap: 0; }
    .lb-lng .hero__content { display: contents; }
    .lb-lng .hero__pill  { order: 1; }
    .lb-lng .hero__title { order: 2; }
    .lb-lng .hero__lede  { order: 3; }
    .lb-lng .hero__form  { order: 4; max-width: none; width: 100%; margin: 30px 0 0; }
    .lb-lng .hero__when  { order: 5; width: 100%; justify-content: space-evenly; }
    .lb-lng .hero__note  { order: 6; }
    .lb-lng .hero__proof { order: 7; }
    .lb-lng .hero__figure { display: none; }
    .lb-lng .hero__bg { width: 100%; opacity: 0.35; }
    .lb-lng .speakers { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
    .lb-lng .stats { grid-template-columns: repeat(3, 1fr); }
    .lb-lng .about { grid-template-columns: 1fr; gap: 28px; }
    .lb-lng .ftr__top { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}

@media (max-width: 760px) {
    .lb-lng .section__head--row { flex-direction: column; align-items: stretch; gap: 24px; }
    .lb-lng .section__head-cta { align-self: flex-start; }
    .lb-lng .topics { grid-template-columns: 1fr; }
    .lb-lng .topic,
    .lb-lng .topic:nth-child(odd),
    .lb-lng .topic:nth-child(even) { padding: 26px 0; padding-left: 0; padding-right: 0; border-right: 0; }
    /* По макету карточки одинаковой высоты (контент сверху, иллюстрация заполняет низ).
       380px, а не 340: под тегами нужна полоса, куда встаёт иллюстрация. */
    .lb-lng .bento { grid-template-columns: 1fr; grid-auto-rows: minmax(380px, auto); }
    /* Иллюстрация нарисована в правом нижнем углу картинки 585×290. На узкой
       карточке cover + center масштабировал её по высоте и срезал как раз этот
       угол — от иконки оставалось размытое пятно. Прижимаем к углу карточки
       (origin: border-box, иначе отсчёт пойдёт от padding-box) и уменьшаем. */
    .lb-lng .bento__card--text {
        background-origin: border-box;
        background-size: 116% auto;
        background-position: right bottom;
    }
    /* На мобильном оставляем только текстовые карточки, фото убираем */
    .lb-lng .bento__card--photo { display: none; }
    /* Плашки в bento: на 14px самые длинные строки («Гормональный баланс + Питание»,
       «Сон + Метаболическое здоровье») упирались в правый край карточки — 4px справа
       против 24px слева, читалось как «вылезли». Убавляем кегль и паддинги. */
    .lb-lng .bento__tags { gap: 8px; }
    .lb-lng .bento__tags span { font-size: 13px; padding: 8px 13px; }
    .lb-lng .stats { grid-template-columns: repeat(2, 1fr); }
    .lb-lng .ftr__bottom { flex-direction: column; align-items: flex-start; }

    /* Кнопка «Записаться» — под списком тем, а не в шапке */
    .lb-lng #topics .section__head-cta { display: none; }
    .lb-lng .topics__cta-mobile { display: flex; }

    /* ==================== HERO на мобильном ====================
       По макету первый экран — только контент и одна кнопка: плашка → заголовок →
       подзаголовок → дата → пояснение → пруф → CTA. Форма из потока убрана
       совсем — живёт в модальном окне (порядок ниже перебивает media 1000px).
       Фон — тёмный градиент, светлеющий к низу, поверх крупная ДНК. */
    .lb-lng .hero {
        background: linear-gradient(170deg, #1F2E2D 0%, #26383A 45%, #37504E 100%);
        border-radius: 28px;
    }
    .lb-lng .hero__inner { padding-bottom: 36px; }
    .lb-lng .hero__top { padding: 26px 0 0; }
    .lb-lng .hero__top .btn { display: none; } /* в шапке остаётся только логотип */
    .lb-lng .hero__logo { width: 106px; height: 22px; }
    .lb-lng .hero__grid { padding-top: 24px; }

    .lb-lng .hero__when  { order: 4; margin-top: 22px; }
    .lb-lng .hero__note  { order: 5; }
    .lb-lng .hero__proof { order: 6; }
    .lb-lng .hero__cta   { order: 7; }

    /* Плашка-анонс: белая, во всю ширину, текст тёмный.
       Кегль привязан к vw — строка должна остаться одной на любом телефоне. */
    .lb-lng .hero__pill {
        width: 100%;
        justify-content: flex-start;
        background: var(--lng-white);
        border-color: var(--lng-white);
        color: var(--lng-ink);
        font-size: clamp(11px, 3.35vw, 15px);
        white-space: nowrap;
        padding: 13px 16px;
        gap: 9px;
        -webkit-backdrop-filter: none;
                backdrop-filter: none;
    }
    .lb-lng .hero__pill-dot { width: 9px; height: 9px; flex-shrink: 0; background: #FF4A32; }

    .lb-lng .hero__title { white-space: normal; margin-top: 22px; font-size: clamp(34px, 11vw, 48px); }
    .lb-lng .hero__lede { margin-top: 20px; max-width: none; font-size: clamp(18px, 5.5vw, 24px); }

    /* Дата: полупрозрачная плашка на фоне героя, значение и подпись — в одну строку */
    .lb-lng .hero__when {
        width: 100%;
        padding: 18px 16px;
        gap: 0;
        background: rgba(255, 255, 255, 0.26);
        border: 1px solid rgba(255, 255, 255, 0.14);
        color: var(--lng-white);
        border-radius: 22px;
        box-shadow: none;
    }
    .lb-lng .hero__when-item {
        flex: 1;
        flex-direction: row;
        align-items: baseline;
        justify-content: center;
        gap: 7px;
    }
    .lb-lng .hero__when-num { font-size: 30px; }
    .lb-lng .hero__when-unit { margin-top: 0; font-size: 16px; font-weight: 400; color: rgba(255, 255, 255, 0.92); }
    /* «мск» — надстрочно к времени, «августа» — по базовой линии числа */
    .lb-lng .hero__when-item--time .hero__when-unit { align-self: flex-start; font-size: 13px; }
    .lb-lng .hero__when-divider { align-self: center; height: 34px; background: rgba(255, 255, 255, 0.32); }

    /* Пояснение — по макету обычный текст, без плашки и рамки */
    .lb-lng .hero__note {
        margin-top: 22px;
        max-width: none;
        padding: 0;
        background: none;
        border: 0;
        border-radius: 0;
        font-size: 16px;
        line-height: 1.45;
        color: rgba(255, 255, 255, 0.78);
    }
    .lb-lng .hero__proof { margin-top: 24px; gap: 10px; }
    .lb-lng .hero__avatar { width: 40px; height: 40px; margin-left: -12px; }
    .lb-lng .hero__proof-text { font-size: 14px; max-width: none; }

    /* CTA вместо формы в первом экране */
    .lb-lng .hero__cta {
        display: flex;
        width: 100%;
        margin-top: 26px;
        padding: 23px 24px;
        font-size: 17px;
    }

    /* ---------- Форма регистрации = модальное окно ----------
       Из потока убрана (position: fixed), поэтому первый экран заканчивается
       на CTA. Открывает её любая кнопка «Записаться» — см. script.js.
       z-index выше sticky-навбара (1000). */
    .lb-lng .hero__form {
        position: fixed;
        inset: 0;
        z-index: 1100;
        display: flex;
        align-items: flex-end;   /* лист снизу — ближе к большому пальцу */
        justify-content: center;
        max-width: none;
        width: auto;
        margin: 0;
        background: rgba(12, 20, 20, 0.72);
        -webkit-backdrop-filter: blur(4px);
                backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 260ms var(--lng-ease-out), visibility 260ms var(--lng-ease-out);
    }
    .lb-lng .hero__form.is-open { opacity: 1; visibility: visible; }

    .lb-lng .hero__form .reg-card {
        width: 100%;
        max-width: 540px;
        max-height: 92vh;
        max-height: 92svh;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        border-radius: 26px 26px 0 0;
        border-bottom: 0;
        padding: 26px 20px calc(24px + env(safe-area-inset-bottom));
        transform: translateY(28px);
        transition: transform 320ms var(--lng-ease-out);
    }
    .lb-lng .hero__form.is-open .reg-card { transform: none; }

    .lb-lng .reg-card__title { padding-right: 46px; font-size: 26px; }
    .lb-lng .reg-card__close {
        display: block;
        position: absolute;
        top: 18px;
        right: 16px;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
    }
    .lb-lng .reg-card__close::before,
    .lb-lng .reg-card__close::after {
        content: "";
        position: absolute;
        top: 18px;
        left: 11px;
        width: 16px;
        height: 2px;
        border-radius: 2px;
        background: rgba(255, 255, 255, 0.8);
    }
    .lb-lng .reg-card__close::before { transform: rotate(45deg); }
    .lb-lng .reg-card__close::after { transform: rotate(-45deg); }

    /* ДНК заходит на нижнюю половину первого экрана и уходит за правый край.
       Привязка top/width к vw, а не к высоте героя: под контентом ниже стоит форма,
       и процент от высоты увёл бы картинку ей за спину. */
    .lb-lng .hero__bg {
        display: block !important; /* перебиваем инлайн display:none (анти-FOUC) */
        top: 114vw;
        bottom: auto;
        right: -38vw;
        left: auto;
        width: 130vw;
        height: auto;
        opacity: 0.33;
    }
}

@media (max-width: 480px) {
    .lb-lng .hero__top { flex-wrap: wrap; gap: 14px; }
    .lb-lng .hero__top .btn { width: 100%; }
    .lb-lng .hero__when { width: 100%; justify-content: space-evenly; }
    .lb-lng .speakers { grid-template-columns: 1fr; }
    .lb-lng .ftr__top { grid-template-columns: 1fr; }
    .lb-lng .btn { width: 100%; }
    .lb-lng .section__head-cta { width: 100%; }
}

/* На совсем узких экранах строка плашки-анонса уже не влезает в одну —
   отдаём её в две, иначе текст вылезает за пилюлю (nowrap не даёт сжаться) */
@media (max-width: 340px) {
    .lb-lng .hero__pill { white-space: normal; font-size: 12px; }
}

@media (max-width: 760px) {
    .lb-lng .about-section { padding-bottom: clamp(150px, 42vw, 240px); }
    .lb-lng .stat { padding-top: clamp(44px, 11vw, 60px); }
    /* пятый стат — по центру во всю ширину под сеткой 2×2 */
    .lb-lng .stats { row-gap: 8px; }
    .lb-lng .stat:last-child { grid-column: 1 / -1; }
    .lb-lng .about__tower { left: 50%; opacity: 0.35; }
    /* фото врачей — крупнее, чтобы лица читались (края слегка кадрируются) */
    .lb-lng .about__doctors { max-width: none; width: 124%; }
}
