/* ============================================================
   HOME PAGE (index.html) — INDIGO-BIOTECH / editorial.
   Общий reset, токены, кнопки, формы, шапка (.hdr3-*),
   футер (.footer*) и mob-nav — в css/style.css.
   Палитра целиком наследуется из style.css (:root здесь нет).
   ============================================================ */

.svg-defs { position: absolute; width: 0; height: 0; }

/* ── Section head (generic, used across home sections) ── */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent); display: block; flex-shrink: 0; }
.s-title { font-family: 'IBM Plex Sans', sans-serif; font-size: clamp(26px, 3.4vw, 42px); font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; margin-bottom: 14px; }
.s-title span { color: var(--accent); }
.s-sub { font-size: 16px; color: var(--muted); line-height: 1.7; max-width: 560px; }
.s-head { margin-bottom: 56px; }

.btn-ghost-d { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost-d:hover { border-color: var(--accent); color: var(--accent); }

/* ══════════════════════════════════
   TICKER — сплошная индиго-полоса (цветной якорь страницы)
══════════════════════════════════ */
.ticker { background: var(--accent); padding: 12px 0; overflow: hidden; }
.ticker__track { display: flex; animation: tick 42s linear infinite; }
.ticker__track:hover { animation-play-state: paused; }
.ticker__seg { display: flex; align-items: center; flex-shrink: 0; }
.ticker__item { padding: 0 22px; white-space: nowrap; font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.ticker__dot { width: 4px; height: 4px; background: rgba(255,255,255,.5); border-radius: 50%; flex-shrink: 0; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ══════════════════════════════════
   HERO — светлый, высокий контраст, форма-карточка на подъёме
══════════════════════════════════ */
.hero { background: linear-gradient(180deg, #ECEEFC 0%, #F5F6FE 58%, #FFFFFF 100%); position: relative; overflow: hidden; padding: 0; display: block; border-top: 3px solid var(--accent); }
.hero__bg { display: none; }
.hero__in { position: relative; z-index: 1; max-width: var(--W); margin: 0 auto; padding: 70px 40px 78px; display: grid; grid-template-columns: minmax(0,1fr) 420px; gap: 60px; align-items: center; width: 100%; }
.hero__in > * { min-width: 0; }

.hero__promo { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff; border: 1px solid var(--accent-line); border-radius: var(--r8); padding: 8px 14px; font-size: 13px; font-weight: 500; color: var(--ink); letter-spacing: .01em; margin-bottom: 22px; box-shadow: var(--sh-xs); }
.hero__promo strong { font-weight: 700; color: var(--accent-deep); }
.hero__promo s { color: var(--g500); }
.hero__promo-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }

.hero__badge { display: inline-flex; align-items: center; gap: 9px; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--rF); padding: 6px 16px 6px 10px; font-size: 12px; font-weight: 600; color: var(--accent-deep); letter-spacing: .04em; margin-bottom: 22px; }
.hero__badge-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

.hero h1.hero__title { font-family: 'IBM Plex Sans', sans-serif; font-size: clamp(32px, 4.2vw, 52px); font-weight: 700; color: var(--ink); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 18px; }
.hero h1.hero__title em { font-style: normal; color: var(--accent); }
.hero__sub { font-size: 16.5px; color: var(--muted); line-height: 1.72; margin-bottom: 30px; max-width: 520px; }

.hero__contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 480px; }
.hc-btn { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r-btn); font-size: 13.5px; font-weight: 600; color: #fff; border: 1px solid transparent; box-shadow: var(--sh-xs); transition: transform var(--t), box-shadow var(--t), background var(--t); }
.hc-btn:hover { transform: translateY(-1px); box-shadow: var(--sh-sm); }
.hc-btn svg, .hc-btn img { width: 18px; height: 18px; flex-shrink: 0; fill: #fff; }
.hc-btn img { border-radius: 50%; }
.hc-btn--tg { background: var(--tg); }
.hc-btn--wa { background: var(--wa); }
.hc-btn--max { background: var(--vb); }
.hc-btn--call { background: var(--accent); }
.hc-btn--call:hover { background: var(--accent-strong); }

.hero__form { background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r16); padding: 30px 28px; box-shadow: 0 1px 3px rgba(16,20,40,.06), 0 18px 44px rgba(16,20,40,.14); }
.hero__form-badge { display: inline-block; background: var(--accent-soft); color: var(--accent-deep); font-family: 'IBM Plex Sans', sans-serif; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border-radius: var(--r4); margin-bottom: 14px; }
.hero__form-title { font-family: 'IBM Plex Sans', sans-serif; font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 5px; letter-spacing: -.01em; }
.hero__form-sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; line-height: 1.5; }
.hero__form-sub s { color: var(--g500); }
.hero__form-sub strong { color: var(--accent-deep); }
.hero__form .f-note { font-size: 11px; color: var(--g500); text-align: center; margin-top: 10px; line-height: 1.6; }
.hero__form .f-tel { text-align: center; margin-top: 12px; font-size: 13px; color: var(--muted); }
.hero__form .f-tel a { color: var(--accent); font-weight: 700; }

/* ══════════════════════════════════
   DISEASES — плитки
══════════════════════════════════ */
.diseases { padding: 96px 0; background: var(--g50); overflow: hidden; }
.diseases__head { max-width: var(--W); margin: 0 auto 44px; padding: 0 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.diseases__head .s-sub { max-width: 440px; }
.diseases__grid { max-width: var(--W); margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }
.dc { background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r12); padding: 24px 20px 20px; display: flex; flex-direction: column; box-shadow: var(--sh-xs); transition: border-color var(--t), box-shadow var(--t), transform var(--t); }
.dc:hover { border-color: var(--accent); box-shadow: 0 2px 6px rgba(16,20,40,.06), 0 14px 30px rgba(79,70,229,.14); transform: translateY(-3px); }
.dc__icon { width: 44px; height: 44px; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r8); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.dc__icon svg { width: 22px; height: 22px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dc__name { font-family: 'IBM Plex Sans', sans-serif; font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; letter-spacing: -.01em; }
.dc__desc { font-size: 13px; color: var(--g600); line-height: 1.62; flex: 1; margin-bottom: 18px; }
.dc__acts { display: flex; flex-direction: column; gap: 8px; }
.dc__btn { width: 100%; background: var(--accent); color: #fff; border-radius: var(--r-btn); padding: 10px; font-family: 'IBM Plex Sans', sans-serif; font-size: 12.5px; font-weight: 600; transition: background var(--t); }
.dc__btn:hover { background: var(--accent-strong); }
.dc__more { display: block; width: 100%; text-align: center; background: transparent; color: var(--accent); border: 1px solid var(--line-strong); border-radius: var(--r-btn); padding: 9px; font-family: 'IBM Plex Sans', sans-serif; font-size: 12.5px; font-weight: 600; transition: border-color var(--t), color var(--t); }
.dc__more:hover { border-color: var(--accent); color: var(--accent-strong); }

.slider-nav { display: flex; gap: 8px; justify-content: flex-end; padding: 20px 40px 0; }
.sarrow { width: 42px; height: 42px; border-radius: var(--r8); background: var(--white); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: var(--ink); transition: background var(--t), border-color var(--t), color var(--t); }
.sarrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.sarrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ══════════════════════════════════
   EXPERTISE / О КЛИНИКЕ
══════════════════════════════════ */
.expertise { padding: 96px 0; background: var(--white); }
.expertise__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.expertise__text p { font-size: 15px; color: var(--g700); line-height: 1.8; margin-bottom: 16px; }
.expertise__text a { color: var(--accent); font-weight: 600; }
.expertise__text a:hover { color: var(--accent-strong); }
.expertise__stats { display: flex; gap: 32px; flex-wrap: wrap; margin: 28px 0 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.expertise__acts { display: flex; gap: 12px; flex-wrap: wrap; }
.expertise__stat-n { font-family: 'IBM Plex Sans', sans-serif; font-size: 28px; font-weight: 700; color: var(--ink); line-height: 1; margin-bottom: 4px; letter-spacing: -.02em; }
.expertise__stat-n span { color: var(--accent); }
.expertise__stat-l { font-size: 12px; color: var(--muted); line-height: 1.45; }

.expertise__video { position: relative; border-radius: var(--r16); overflow: hidden; aspect-ratio: 16/9; background: var(--ink-2); cursor: pointer; border: 1px solid var(--line); }
.expertise__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--ink-2); }
.expertise__video::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,16,32,.7) 0%, rgba(11,16,32,.1) 55%, transparent 100%); z-index: 1; transition: opacity var(--t); }
.expertise__video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2; width: 64px; height: 64px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform var(--t), background var(--t), opacity var(--t); }
.expertise__video:hover .expertise__video-play { transform: translate(-50%,-50%) scale(1.06); background: var(--accent-strong); }
.expertise__video-play svg { width: 24px; height: 24px; fill: var(--white); margin-left: 3px; }
.expertise__video-cap { position: absolute; left: 20px; bottom: 16px; z-index: 2; color: var(--white); font-size: 12.5px; font-weight: 500; transition: opacity var(--t); }
.expertise__video.playing { cursor: default; }
.expertise__video.playing::before, .expertise__video.playing .expertise__video-play, .expertise__video.playing .expertise__video-cap { opacity: 0; pointer-events: none; }

/* ══════════════════════════════════
   METHOD — 3 шага
══════════════════════════════════ */
.method { padding: 96px 0; background: var(--g50); }
.method__steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.ms { background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r12); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sh-xs); transition: border-color var(--t), box-shadow var(--t), transform var(--t); }
.ms:hover { border-color: var(--accent); box-shadow: 0 2px 6px rgba(16,20,40,.06), 0 14px 30px rgba(79,70,229,.14); transform: translateY(-3px); }
.ms__img { height: 168px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; overflow: hidden; background: var(--g100); }
.ms__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ms__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,16,32,.4) 0%, rgba(11,16,32,0) 55%); }
.ms__num { position: absolute; top: 14px; left: 14px; z-index: 1; width: 28px; height: 28px; background: var(--accent); border-radius: var(--r-btn); display: flex; align-items: center; justify-content: center; font-family: 'IBM Plex Sans', sans-serif; font-size: 13px; font-weight: 700; color: var(--white); }
.ms__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.ms__title { font-family: 'IBM Plex Sans', sans-serif; font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 10px; letter-spacing: -.01em; }
.ms__desc { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin-bottom: 18px; flex: 1; }
.ms__btn { display: inline-flex; align-items: center; gap: 6px; font-family: 'IBM Plex Sans', sans-serif; font-size: 12.5px; font-weight: 600; color: var(--accent); margin-top: auto; transition: gap var(--t), color var(--t); }
.ms__btn:hover { gap: 10px; color: var(--accent-strong); }
.ms__btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ══════════════════════════════════
   REVIEWS — вкладки по диагнозу
══════════════════════════════════ */
.reviews { padding: 96px 0; background: var(--white); }
.rv-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.rv-tab { padding: 10px 18px 14px; border: none; background: transparent; font-family: 'IBM Plex Sans', sans-serif; font-size: 13.5px; font-weight: 500; color: var(--muted); cursor: pointer; position: relative; transition: color var(--t); }
.rv-tab::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s var(--ease); }
.rv-tab:hover { color: var(--ink); }
.rv-tab.act { color: var(--accent); font-weight: 600; }
.rv-tab.act::after { transform: scaleX(1); }

.rv-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.rv-item { display: none; }
.rv-item.show { display: flex; }

.rc { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r12); overflow: hidden; width: 100%; box-shadow: var(--sh-xs); transition: border-color var(--t), box-shadow var(--t), transform var(--t); }
.rc:hover { border-color: var(--accent); box-shadow: 0 2px 6px rgba(16,20,40,.06), 0 14px 30px rgba(79,70,229,.14); transform: translateY(-3px); }
.rc__photo { height: 160px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rc__photo svg { width: 38px; height: 38px; fill: none; stroke: var(--accent); stroke-width: 1.4; opacity: .5; }
.rc__photo img { width: 100%; height: 100%; object-fit: cover; }
.rc__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.rc__text { font-size: 13.5px; color: var(--text); line-height: 1.7; margin-bottom: 14px; flex: 1; }
.rc__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.rc__name { font-size: 13px; font-weight: 700; color: var(--ink); }
.rc__date { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.rc__more { display: inline-flex; align-items: center; gap: 6px; font-family: 'IBM Plex Sans', sans-serif; font-size: 12.5px; font-weight: 600; color: var(--accent); margin-top: auto; transition: gap var(--t), color var(--t); }
.rc__more:hover { gap: 10px; color: var(--accent-strong); }
.rc__more svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.reviews__more { text-align: center; margin-top: 40px; }
.reviews__more-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--tg); color: #fff; font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; font-weight: 600; padding: 13px 26px; border-radius: var(--r-btn); transition: transform var(--t), filter var(--t); }
.reviews__more-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.reviews__more-btn svg { width: 17px; height: 17px; fill: #fff; }

/* ══════════════════════════════════
   NEWS — слайдер
══════════════════════════════════ */
.news { padding: 96px 0; background: var(--g50); overflow: hidden; }
.news__head { max-width: var(--W); margin: 0 auto 44px; padding: 0 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.news__slider { display: flex; gap: 18px; padding: 4px 40px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.news__slider::-webkit-scrollbar { display: none; }
.news__slider.grab { cursor: grabbing; }
.nc { flex-shrink: 0; width: 336px; background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r12); overflow: hidden; scroll-snap-align: start; display: flex; flex-direction: column; box-shadow: var(--sh-xs); transition: border-color var(--t), box-shadow var(--t), transform var(--t); }
.nc:hover { border-color: var(--accent); box-shadow: 0 2px 6px rgba(16,20,40,.06), 0 14px 30px rgba(79,70,229,.14); transform: translateY(-3px); }
.nc__img { height: 168px; background: linear-gradient(135deg, var(--ink-2), var(--ink)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.nc__img svg { width: 34px; height: 34px; fill: none; stroke: rgba(255,255,255,.45); stroke-width: 1.4; }
.nc__img img { width: 100%; height: 100%; object-fit: cover; }
.nc__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.nc__date { font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.nc__title { font-family: 'IBM Plex Sans', sans-serif; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.35; margin-bottom: 10px; letter-spacing: -.01em; }
.nc__desc { font-size: 13px; color: var(--g600); line-height: 1.62; margin-bottom: 16px; flex: 1; }
.nc__btn { display: inline-flex; align-items: center; gap: 6px; font-family: 'IBM Plex Sans', sans-serif; font-size: 12.5px; font-weight: 600; color: var(--accent); margin-top: auto; transition: gap var(--t), color var(--t); }
.nc__btn:hover { gap: 10px; color: var(--accent-strong); }
.nc__btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ══════════════════════════════════
   FAQ — 2 колонки
══════════════════════════════════ */
.faq { padding: 96px 0; background: var(--white); }
.faq__in { max-width: 980px; margin: 0 auto; padding: 0 40px; }
.faq .s-head { text-align: center; }
.faq .eyebrow { justify-content: center; }
.faq .s-title { text-align: center; }
.faq .s-sub { text-align: center; margin: 0 auto; }
.faq__list { margin-top: 44px; column-count: 2; column-gap: 18px; }
.faq .faq-it { break-inside: avoid; margin-bottom: 12px; display: block; }
.faq .faq-it__q { padding: 18px 20px; font-size: 14.5px; }
.faq .faq-it__ico { width: 26px; height: 26px; }
.faq .faq-it__ico svg { width: 13px; height: 13px; }
.faq .faq-it.open .faq-it__a { max-height: 500px; }
.faq .faq-it__a-in { padding: 0 20px 18px; padding-top: 14px; font-size: 13.5px; }

/* ══════════════════════════════════
   RESPONSIVE (только для секций главной)
══════════════════════════════════ */
@media(max-width:1100px) {
  .hero__in { grid-template-columns: minmax(0,1fr) 360px; gap: 48px; }
  .expertise__grid { grid-template-columns: 1fr; gap: 36px; }
}

@media(max-width:860px) {
  .hero__in { grid-template-columns: minmax(0,1fr); padding: 44px 20px 56px; gap: 36px; }
  .hero__form { max-width: 100%; }
  .hero__contacts { max-width: 100%; }
  .diseases, .expertise, .method, .reviews, .news, .faq { padding: 64px 0; }
  .diseases__head { flex-direction: column; align-items: flex-start; }
  .diseases__head .btn { align-self: flex-start; }
  .diseases__grid { padding: 0 20px; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
  .slider-nav { padding: 16px 20px 0; }
  .method__steps { grid-template-columns: 1fr; gap: 14px; }
  .rv-grid { grid-template-columns: 1fr; }
  .news__head { flex-direction: column; align-items: flex-start; padding: 0 20px; }
  .news__slider { padding: 4px 20px 8px; }
  .faq__in { padding: 0 20px; }
  .faq__list { column-count: 1; }
}

@media(max-width:520px) {
  .hero__contacts { grid-template-columns: 1fr; }
  .expertise__stats { gap: 20px; }
}
