/* ============================================================
   HOME PAGE (index.html) — styles unique to the main page.
   Shared reset, variables, buttons, forms, header (.hdr3-*),
   footer (.footer*) and mob-nav live in css/style.css and use
   hard-coded colors there — untouched by the palette below.
   ============================================================ */

/* ── Палитра главной страницы: холодный медицинский teal-navy +
   тёплый оранжево-красный акцент для CTA (лучший контраст/конверсия).
   Переопределяет переменные из style.css, но только на этой
   странице — home.css больше нигде не подключается. ── */
:root {
  --ink: #0F2E3D; --ink-2: #163C4D; --ink-3: #1E4A5C;
  --or: #FF6A3D; --or-dk: #E1531F; --or-deep: #B23F16;
  --or-lt: #FFF0E8; --or-mid: #FFD3BE;
  --g50: #F5FAFB; --g100: #EAF2F4; --g200: #D7E4E8;
  --g300: #BBD0D6; --g400: #93AEB6; --g500: #6D8890;
  --g600: #4C6470; --g700: #33474F;
  --text: #12313F; --muted: #5C7480;
}

/* ── SVG sprite defs ── */
.svg-defs { position: absolute; }

/* ── Section head (generic, used across home sections) ── */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--or); margin-bottom: 10px; }
.s-title { font-size: clamp(24px,3.2vw,40px); font-weight: 800; color: var(--text); margin-bottom: 12px; }
.s-title span { color: var(--or); }
.s-sub { font-size: 17px; color: var(--muted); line-height: 1.72; max-width: 560px; }
.s-head { margin-bottom: 52px; }

.btn-ghost-d { background: transparent; color: var(--text); border: 1.5px solid var(--g200); }
.btn-ghost-d:hover { border-color: var(--or); color: var(--or); }

/* ══════════════════════════════════
   TICKER (без изменений по просьбе)
══════════════════════════════════ */
.ticker { background: var(--or); padding: 10px 0; overflow: hidden; }
.ticker__track { display: flex; animation: tick 38s linear infinite; }
.ticker__track:hover { animation-play-state: paused; }
.ticker__seg { display: flex; align-items: center; flex-shrink: 0; }
.ticker__item { padding: 0 24px; white-space: nowrap; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.95); }
.ticker__dot { width: 4px; height: 4px; background: rgba(255,255,255,.4); border-radius: 50%; flex-shrink: 0; }
@keyframes tick { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ══════════════════════════════════
   HERO — контактный блок (форма + 4 способа связи)
══════════════════════════════════ */
.hero { background: var(--ink); position: relative; overflow: hidden; min-height: 600px; display: flex; align-items: center; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__glow1 { position: absolute; right: -5%; top: -10%; width: 55%; height: 110%; background: radial-gradient(ellipse at 65% 40%, rgba(255,106,61,.14) 0%, transparent 65%); }
.hero__glow2 { position: absolute; left: 10%; bottom: -30%; width: 50%; height: 70%; background: radial-gradient(ellipse at 50% 50%, rgba(255,106,61,.06) 0%, transparent 70%); }
.hero__dots { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,.032) 1px, transparent 1px); background-size: 30px 30px; }
.hero__in { position: relative; z-index: 1; max-width: var(--W); margin: 0 auto; padding: 72px 40px; display: grid; grid-template-columns: 1fr 420px; gap: 64px; align-items: center; width: 100%; }
.hero__promo { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; background: linear-gradient(90deg,#e0392c,#f5581e); border: 1px solid rgba(255,255,255,.25); border-radius: var(--r16); padding: 9px 20px 9px 14px; font-size: 13.5px; font-weight: 700; color: #fff; letter-spacing: .01em; margin-bottom: 16px; box-shadow: 0 6px 24px rgba(224,57,44,.35); animation: promoPulse 1.8s ease-in-out infinite; }
.hero__promo strong { font-weight: 900; }
.hero__promo s { opacity: .7; font-weight: 500; }
.hero__promo-dot { width: 8px; height: 8px; background: #fff; border-radius: 50%; flex-shrink: 0; animation: bdot 1.2s ease-in-out infinite; }
@keyframes promoPulse { 0%,100%{box-shadow:0 6px 24px rgba(224,57,44,.35)} 50%{box-shadow:0 6px 30px rgba(224,57,44,.6)} }
.hero__badge { display: inline-flex; align-items: center; gap: 9px; background: rgba(255,106,61,.13); border: 1px solid rgba(255,106,61,.3); border-radius: var(--rF); padding: 6px 16px 6px 10px; font-size: 12px; font-weight: 600; color: var(--or); letter-spacing: .04em; margin-bottom: 22px; }
.hero__badge-dot { width: 7px; height: 7px; background: var(--or); border-radius: 50%; animation: bdot 2.4s ease-in-out infinite; }
@keyframes bdot { 0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(255,106,61,.5)} 50%{opacity:.8;box-shadow:0 0 0 5px rgba(255,106,61,0)} }
.hero__title { font-size: clamp(34px,4.2vw,54px); font-weight: 900; color: var(--white); line-height: 1.07; margin-bottom: 18px; }
.hero__title em { font-style: normal; color: var(--or); }
.hero__sub { font-size: 17px; color: rgba(255,255,255,.58); line-height: 1.76; margin-bottom: 30px; max-width: 500px; }

.hero__contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 480px; }
.hc-btn { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: var(--r-btn); font-size: 14px; font-weight: 700; color: #fff; transition: transform var(--t), box-shadow var(--t), filter var(--t); }
.hc-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.hc-btn svg, .hc-btn img { width: 20px; height: 20px; 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: #7360F2; }
.hc-btn--call { background: var(--or); box-shadow: 0 6px 20px rgba(255,106,61,.35); }

.hero__form { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); border-radius: var(--r24); padding: 36px 32px; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.hero__form-badge { display: inline-block; background: var(--or); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--r4); margin-bottom: 14px; }
.hero__form-title { font-family: 'Unbounded',sans-serif; font-size: 19px; font-weight: 700; color: var(--white); margin-bottom: 4px; letter-spacing: -.01em; }
.hero__form-sub { font-size: 13px; color: rgba(255,255,255,.45); margin-bottom: 24px; }

/* ══════════════════════════════════
   DISEASES SLIDER (без изменений по просьбе)
══════════════════════════════════ */
.diseases { padding: 80px 0; background: var(--g50); overflow: hidden; }
.diseases__head { max-width: var(--W); margin: 0 auto; padding: 0 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.diseases__head .s-sub { max-width: 440px; }
.diseases__slider { display: flex; gap: 18px; padding: 6px 40px 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.diseases__slider::-webkit-scrollbar { display: none; }
.diseases__slider.grab { cursor: grabbing; }
.dc { flex-shrink: 0; width: 210px; background: var(--white); border: 1.5px solid var(--g200); border-radius: var(--r16); padding: 26px 20px 20px; scroll-snap-align: start; display: flex; flex-direction: column; transition: border-color var(--t), box-shadow var(--t), transform var(--t); }
.dc:hover { border-color: var(--or); box-shadow: 0 8px 28px rgba(255,106,61,.14); transform: translateY(-3px); }
.dc__icon { width: 50px; height: 50px; background: var(--or-lt); border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.dc__icon svg { width: 24px; height: 24px; color: var(--or); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dc__name { font-family: 'Unbounded',sans-serif; font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; letter-spacing: -.01em; }
.dc__desc { font-size: 12px; color: var(--muted); line-height: 1.55; flex: 1; margin-bottom: 16px; }
.dc__acts { display: flex; flex-direction: column; gap: 8px; }
.dc__btn { width: 100%; background: var(--or); color: var(--white); border-radius: var(--r-btn); padding: 10px; font-size: 13px; font-weight: 700; transition: background var(--t); }
.dc__btn:hover { background: var(--or-dk); }
.dc__more { display: block; width: 100%; text-align: center; background: transparent; color: var(--or); border: 1.5px solid var(--or-mid); border-radius: var(--r-btn); padding: 9px; font-size: 13px; font-weight: 700; transition: background var(--t), color var(--t), border-color var(--t); }
.dc__more:hover { background: var(--or); color: var(--white); border-color: var(--or); }
.slider-nav { display: flex; gap: 10px; justify-content: flex-end; padding: 18px 40px 0; }
.sarrow { width: 44px; height: 44px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--g200); display: flex; align-items: center; justify-content: center; color: var(--text); transition: background var(--t), border-color var(--t), transform var(--t), color var(--t); }
.sarrow:hover { background: var(--or); border-color: var(--or); color: var(--white); transform: scale(1.06); }
.sarrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ══════════════════════════════════
   EXPERTISE / О КЛИНИКЕ — текст (SEO) + статистика + видео + CTA
══════════════════════════════════ */
.expertise { padding: 84px 0; background: var(--white); }
.expertise__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.expertise__text p { font-size: 15.5px; color: var(--g700); line-height: 1.82; margin-bottom: 16px; }
.expertise__text a { color: var(--or); font-weight: 700; }
.expertise__text a:hover { color: var(--or-dk); }
.expertise__stats { display: flex; gap: 32px; flex-wrap: wrap; margin: 28px 0 32px; padding-top: 28px; border-top: 1px solid var(--g200); }
.expertise__acts { display: flex; gap: 12px; flex-wrap: wrap; }
.expertise__stat-n { font-family: 'Unbounded',sans-serif; font-size: 26px; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 4px; }
.expertise__stat-n span { color: var(--or); }
.expertise__stat-l { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

.expertise__video { position: relative; border-radius: var(--r20); overflow: hidden; aspect-ratio: 16/9; background: var(--ink-2); cursor: pointer; }
.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(0,0,0,.7) 0%, rgba(0,0,0,.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: 68px; height: 68px; background: var(--or); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(255,106,61,.5); transition: transform var(--t), background var(--t), opacity var(--t); }
.expertise__video:hover .expertise__video-play { transform: translate(-50%,-50%) scale(1.08); background: var(--or-dk); }
.expertise__video-play svg { width: 26px; height: 26px; fill: var(--white); margin-left: 4px; }
.expertise__video-cap { position: absolute; left: 20px; bottom: 16px; z-index: 2; color: var(--white); font-size: 13px; font-weight: 600; 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: 84px 0; background: var(--g50); }
.method__steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.ms { background: var(--white); border: 1.5px solid var(--g200); border-radius: var(--r16); overflow: hidden; display: flex; flex-direction: column; transition: border-color var(--t), box-shadow var(--t), transform var(--t); }
.ms:hover { border-color: var(--or); box-shadow: 0 8px 28px rgba(255,106,61,.11); transform: translateY(-3px); }
.ms__img { height: 160px; 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(15,46,61,.45) 0%,rgba(15,46,61,0) 55%); }
.ms__num { position: absolute; top: 14px; left: 14px; z-index: 1; width: 30px; height: 30px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Unbounded',sans-serif; font-size: 13px; font-weight: 800; color: var(--white); }
.ms__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.ms__title { font-family: 'Unbounded',sans-serif; font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 10px; letter-spacing: -.01em; }
.ms__desc { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 18px; flex: 1; }
.ms__btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--or); margin-top: auto; }
.ms__btn:hover { color: var(--or-dk); gap: 10px; transition: gap var(--t); }
.ms__btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ══════════════════════════════════
   REVIEWS — разбивка по диагнозу, ровно 3 карточки
══════════════════════════════════ */
.reviews { padding: 84px 0; background: var(--white); }
.rv-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; border-bottom: 2px solid var(--g100); }
.rv-tab { padding: 10px 22px 12px; border: none; background: transparent; font-family: 'Golos Text',sans-serif; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; position: relative; transition: color var(--t); }
.rv-tab::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--or); transform: scaleX(0); transition: transform .22s var(--ease); border-radius: 2px 2px 0 0; }
.rv-tab:hover { color: var(--text); }
.rv-tab.act { color: var(--or); font-weight: 700; }
.rv-tab.act::after { transform: scaleX(1); }

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

.rc { display: flex; flex-direction: column; background: var(--g50); border: 1.5px solid var(--g200); border-radius: var(--r16); overflow: hidden; width: 100%; transition: border-color var(--t), box-shadow var(--t); }
.rc:hover { border-color: var(--or); box-shadow: 0 6px 24px rgba(255,106,61,.11); }
.rc__photo { height: 150px; background: linear-gradient(135deg,var(--or-lt),var(--or-mid)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rc__photo svg { width: 40px; height: 40px; fill: none; stroke: var(--or-deep); stroke-width: 1.4; opacity: .55; }
.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: 14px; 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: 13.5px; font-weight: 700; color: var(--text); }
.rc__date { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.rc__more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--or); margin-top: auto; }
.rc__more:hover { color: var(--or-dk); gap: 10px; transition: gap var(--t); }
.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-size: 15px; font-weight: 700; padding: 14px 28px; border-radius: var(--r-btn); transition: background var(--t), transform var(--t); }
.reviews__more-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.reviews__more-btn svg { width: 18px; height: 18px; fill: #fff; }

/* ══════════════════════════════════
   NEWS — слайдер, 3 колонки видимо
══════════════════════════════════ */
.news { padding: 84px 0; background: var(--g50); overflow: hidden; }
.news__head { max-width: var(--W); margin: 0 auto; padding: 0 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.news__slider { display: flex; gap: 20px; padding: 6px 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: 340px; background: var(--white); border: 1.5px solid var(--g200); border-radius: var(--r16); overflow: hidden; scroll-snap-align: start; display: flex; flex-direction: column; transition: border-color var(--t), box-shadow var(--t), transform var(--t); }
.nc:hover { border-color: var(--or); box-shadow: 0 8px 28px rgba(255,106,61,.12); transform: translateY(-3px); }
.nc__img { height: 170px; background: linear-gradient(135deg,#1E4A5C,#0F2E3D); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.nc__img svg { width: 36px; height: 36px; fill: none; stroke: rgba(255,255,255,.5); 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-size: 11.5px; font-weight: 700; color: var(--or); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.nc__title { font-family: 'Unbounded',sans-serif; font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.35; margin-bottom: 10px; }
.nc__desc { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 16px; flex: 1; }
.nc__btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--or); margin-top: auto; }
.nc__btn:hover { color: var(--or-dk); gap: 10px; transition: gap var(--t); }
.nc__btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ══════════════════════════════════
   FAQ — 2 колонки
══════════════════════════════════ */
.faq { padding: 84px 0; background: var(--white); }
.faq__in { max-width: 1000px; 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: 20px; }
.faq .faq-it { background: var(--g50); break-inside: avoid; margin-bottom: 14px; display: block; }
.faq .faq-it__q { padding: 20px 22px; font-size: 15.5px; }
.faq .faq-it__ico { width: 28px; height: 28px; }
.faq .faq-it__ico svg { width: 14px; height: 14px; }
.faq .faq-it.open .faq-it__a { max-height: 500px; }
.faq .faq-it__a-in { padding: 0 22px 20px; padding-top: 16px; font-size: 14.5px; }

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

@media(max-width:860px) {
  .hero { min-height: 0; align-items: flex-start; padding: 0; }
  .hero__in { grid-template-columns: 1fr; padding: 32px 20px 56px; gap: 36px; }
  .hero__form { max-width: 100%; }
  .hero__contacts { max-width: 100%; }
  .diseases__head { flex-direction: column; align-items: flex-start; }
  .diseases__head .btn { align-self: flex-start; }
  .diseases__slider { padding: 6px 20px 20px; }
  .slider-nav { padding: 14px 20px 0; }
  .method__steps { grid-template-columns: 1fr; gap: 16px; }
  .rv-grid { grid-template-columns: 1fr; }
  .news__head { flex-direction: column; align-items: flex-start; padding: 0 20px; }
  .news__slider { padding: 6px 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; }
}
