/* =====================================================================
   HELMS v2 — вся главная страница
   Проверено поверх живого helmsadvisory.com на ширине 1440px.
   Высота страницы: 5042px (сейчас) -> ~5240px (с патчем, вариант B в Who We Work With).

   Как применить к исходникам:
   1. В разметке hero, внутри .premium-actions, ПЕРЕД кнопкой Live chat добавить:
        <a class="premium-primary book-cta-btn hv2-book"
           href="https://cal.com/helmsadvisory/30min" data-cal-popup>Book a 30-min call</a>
   2. Подключить этот файл последним и добавить class="hv2" на <html>.
   3. Правильный финал — перенести значения в исходные правила и удалить
      старые дубли (размер h1 в hero сейчас задан 7 раз с !important).
   ===================================================================== */

/* ---------- Общее ---------- */
html.hv2 .section-head h2{font-size:clamp(32px,3vw,44px)!important;line-height:1.08!important}
html.hv2 section.block:is(#clients,#work,#process,#about){padding:52px 0!important}
html.hv2 section#alongside.block{padding:34px 0!important}
html.hv2 :is(#clients,#work,#process,#about) .card:not(.book-card){background:none!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;border-radius:0!important;padding:0!important;min-height:0!important;transform:none!important;overflow:visible!important}
html.hv2 :is(#clients,#work,#process,#about) .card:not(.book-card)::before,
html.hv2 :is(#clients,#work,#process,#about) .card:not(.book-card)::after{display:none!important}
html.hv2 :is(#clients,#work,#process) .card .icon{display:none!important}
html.hv2 :is(#clients,#work,#process) .card .meta{font:500 11px/1.2 var(--mono)!important;letter-spacing:.08em!important;text-transform:uppercase;color:var(--gold)!important;margin:0 0 10px!important}

/* ---------- Логотип в шапке: только надпись, 116x32 (src меняется в HTML, см. INSTRUCTIONS.md) ---------- */
html.hv2 .hx-brand img{height:32px!important;width:auto!important;max-height:none!important;max-width:none!important;aspect-ratio:637/176;object-fit:contain}

/* ---------- Hero (левая колонка = высота терминала) ---------- */
html.hv2 #home .premium-hero-grid{grid-template-columns:1.08fr .92fr!important;gap:64px!important}
html.hv2 #home .hero-reference-title{line-height:1!important;letter-spacing:-.022em!important;max-width:none!important;margin:12px 0 0!important}
html.hv2 #home .premium-lead{font-size:18px!important;line-height:1.5!important;max-width:54ch!important;margin-top:16px!important}
html.hv2 #home .premium-copy .premium-actions{margin-top:22px!important;gap:12px}
html.hv2 #home .premium-actions{align-items:center!important}
html.hv2 #home .premium-actions>*{margin:0!important;transform:none}
html.hv2 #home .premium-primary{animation:none!important}
html.hv2 #home .premium-actions .hv2-book{min-width:0;padding:0 26px;text-decoration:none}
html.hv2 #home .premium-actions .desk-cta{min-width:0;padding:0 22px;color:var(--text);border-color:rgba(255,255,255,.18);animation:none!important}
html.hv2 #home .premium-actions .desk-cta::before{content:"";width:8px;height:8px;border-radius:50%;background:#37c46e;margin-right:10px}
html.hv2 #home .premium-actions .desk-cta:hover{border-color:rgba(255,255,255,.34);background:rgba(255,255,255,.04)}
html.hv2 #home .premium-hero-trust{font:500 12px/1.5 var(--sans)!important;letter-spacing:0!important;margin-top:10px!important}
html.hv2 #home .premium-hero-trust .desk-dot{display:none}
html.hv2 #home .premium-whatwedo{max-width:none!important;padding-top:20px}
html.hv2 #home .premium-whatwedo .premium-eyebrow{margin-bottom:10px!important}
html.hv2 #home .premium-pills{gap:0 24px!important;max-width:none!important}
html.hv2 #home .premium-pills li{border:0!important;border-top:1px solid var(--line2)!important;border-radius:0!important;padding:8px 0!important;text-align:left!important;font:500 13px/1.3 var(--sans)!important;letter-spacing:0!important;color:var(--muted)!important}
html.hv2 #home .term :is(.term-tagline,.tstat-k,.tstat-sub,.term-emt-lbl,.term-emt-meta,.term-foot){font-size:11px!important}

/* ---------- Services: нумерованный список ---------- */
html.hv2 section#services.block{padding:72px 0 56px!important}
html.hv2 #services .section-head{margin-bottom:0!important}
html.hv2 #services .section-head h2{margin-top:14px}
html.hv2 #services .section-head>p{font-size:17px!important;line-height:1.55!important;max-width:60ch!important;margin-top:16px!important}
html.hv2 #services .grid-3{display:block!important;counter-reset:svc;border-top:1px solid var(--line2);margin-top:32px}
html.hv2 #services .card{display:grid!important;grid-template-columns:64px minmax(0,1fr) minmax(0,1.45fr);column-gap:32px;align-items:baseline;padding:18px 0!important;min-height:0!important;background:none!important;border:0!important;border-bottom:1px solid var(--line2)!important;border-radius:0!important;box-shadow:none!important;backdrop-filter:none!important;transform:none!important;overflow:visible!important;counter-increment:svc}
html.hv2 #services .card::before{content:counter(svc,decimal-leading-zero);position:static;width:auto;height:auto;background:none;grid-column:1;grid-row:1;font:500 13px/1 var(--mono);letter-spacing:.08em;color:var(--gold)}
html.hv2 #services .card::after{display:none}
html.hv2 #services .card .icon{display:none!important}
html.hv2 #services .card h3{grid-column:2;grid-row:1;font-size:30px!important;line-height:1.1!important;margin:0!important;transition:color .2s}
html.hv2 #services .card:hover h3{color:var(--gold2)!important}
html.hv2 #services .card>p{grid-column:3;grid-row:1;font-size:16px!important;line-height:1.55!important;color:var(--text)!important;margin:0}
html.hv2 #services .card .card-fill{grid-column:3;grid-row:2;position:static;display:block;opacity:1;transform:none;padding:0;margin-top:6px;background:none;border-radius:0;pointer-events:auto}
html.hv2 #services .card .card-fill::before{display:none}
html.hv2 #services .card-fill p{padding-left:0!important;font-size:13.5px!important;line-height:1.5!important;font-weight:400!important;color:var(--soft)!important}
html.hv2 #services .seg-row{margin-top:28px}

/* ---------- Who we work with: заголовок слева, индекс 2x3 справа ---------- */
html.hv2 #clients #sectors{position:absolute}
html.hv2 #clients .grid-3{grid-template-columns:repeat(2,1fr)!important;gap:0 48px!important}
html.hv2 #clients .seg-card-link{display:contents;text-decoration:none;color:inherit}
html.hv2 #clients .card:not(.book-card){border-top:1px solid var(--line2)!important;padding:16px 0 18px!important}
html.hv2 #clients .card h3{font-size:23px!important;margin:0 0 6px!important;transition:color .2s}
html.hv2 #clients .seg-card-link:hover h3{color:var(--gold2)!important}
html.hv2 #clients .card>p{font-size:14.5px!important;line-height:1.5!important;color:var(--muted)!important;margin:0!important}
/* Вариант B (утверждён): текст, который раньше открывался по наведению, виден всегда второй строкой */
html.hv2 #clients .card .card-fill{position:static!important;display:block!important;opacity:1!important;transform:none!important;padding:0!important;background:none!important;margin-top:6px;pointer-events:auto}
html.hv2 #clients .card .card-fill::before{display:none!important}
html.hv2 #clients .card-fill p{padding-left:0!important;font-size:13.5px!important;line-height:1.5!important;font-weight:400!important;color:var(--soft)!important}
html.hv2 #clients .seg-cta{display:inline-block;margin-top:8px;font-size:13px}
html.hv2 #clients .seg-row{margin-top:18px;font-size:13.5px}
@media (min-width:1000px){
  html.hv2 #clients .wrap{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,2fr);column-gap:64px;align-items:start}
  html.hv2 #clients .section-head{grid-column:1;grid-row:1 / span 2;margin:0!important}
  html.hv2 #clients .grid-3,html.hv2 #clients .seg-row{grid-column:2}
}

/* ---------- Example engagements: реестр ---------- */
html.hv2 #work .work-grid{display:block!important;border-top:1px solid var(--line2)}
html.hv2 #work .card:not(.book-card){display:grid!important;grid-template-columns:210px minmax(0,1.1fr) minmax(0,1.15fr);column-gap:32px;align-items:baseline;padding:12px 0!important;border-bottom:1px solid var(--line2)!important}
html.hv2 #work .card .meta{margin:0!important}
html.hv2 #work .card h3{font-size:20px!important;line-height:1.2!important;margin:0!important}
html.hv2 #work .card p{font-size:14.5px!important;line-height:1.5!important;color:var(--muted)!important;margin:0!important}
html.hv2 #work .work-cta{margin-top:18px!important}

/* ---------- How we work ---------- */
html.hv2 #process .grid-4{gap:0!important;border-top:1px solid var(--line)}
html.hv2 #process .card.step:not(.book-card){padding:22px 32px 0 0!important;position:relative}
html.hv2 #process .card.step::before{display:block!important;content:"";position:absolute;left:0;top:-4px;right:auto;bottom:auto;width:7px;height:7px;border-radius:50%;background:var(--gold2)}
html.hv2 #process .step .num{font:500 12px/1 var(--mono)!important;letter-spacing:.08em;color:var(--gold)!important;-webkit-text-fill-color:var(--gold);background:none!important;margin:0 0 10px!important;height:auto!important}
html.hv2 #process .step h3{font-size:24px!important;margin:0 0 6px!important}
html.hv2 #process .step p{font-size:14.5px!important;line-height:1.5!important;color:var(--muted)!important}
html.hv2 #process .sub-sep{margin-top:52px!important}
html.hv2 #process .section-head.sub-sep h2,html.hv2 #process h2.sub-head{font-size:28px!important;line-height:1.15!important}
html.hv2 #process h2.sub-head{margin:52px 0 16px!important}
html.hv2 #process .section-head.sub-sep{margin-bottom:16px!important}
html.hv2 #process .grid-3{gap:0 40px!important}
html.hv2 #process .grid-3 .card:not(.book-card){border-top:1px solid var(--line2)!important;padding:16px 0 0!important}
html.hv2 #process .card h3{font-size:22px!important;margin:0 0 6px!important}
html.hv2 #process .card p{font-size:14.5px!important;line-height:1.5!important;color:var(--muted)!important}
html.hv2 #process .compare{gap:0!important;border:1px solid var(--line2);border-radius:12px;overflow:hidden}
html.hv2 #process .compare .card:not(.book-card){padding:20px 24px!important;border-left:1px solid var(--line2)!important}
html.hv2 #process .compare .card:first-child{border-left:0!important}
html.hv2 #process .compare .card.hl{background:rgba(212,157,49,.07)!important}
html.hv2 #process .compare .card:not(.hl) .meta{color:var(--soft)!important}
html.hv2 #process .faq-wrap.sub-sep{margin-top:32px!important}

/* ---------- About + запись: единственная карточка-акцент ---------- */
html.hv2 #about .abk-grid{gap:64px!important;align-items:center!important}
html.hv2 #about .about-card>div{padding:0!important}

/* ---------- Адаптив ---------- */
@media (max-width:1199px){
  html.hv2 #home .premium-hero-grid{grid-template-columns:1fr!important;gap:40px!important}
}
@media (max-width:900px){
  html.hv2 #work .card:not(.book-card){grid-template-columns:1fr;row-gap:6px}
  html.hv2 #process .grid-4{border-top:0}
  html.hv2 #process .card.step:not(.book-card){border-top:1px solid var(--line)!important;margin-top:20px}
  html.hv2 #process .compare .card:not(.book-card){border-left:0!important;border-top:1px solid var(--line2)!important}
  html.hv2 #process .grid-3 .card:not(.book-card){margin-top:18px}
}
@media (max-width:820px){
  html.hv2 section#services.block{padding:56px 0 44px!important}
  html.hv2 #services .card{grid-template-columns:36px minmax(0,1fr);column-gap:12px}
  html.hv2 #services .card h3{font-size:25px!important}
  html.hv2 #services .card>p{grid-column:2;grid-row:2;margin-top:10px}
  html.hv2 #services .card .card-fill{grid-column:2;grid-row:3}
}
@media (max-width:640px){
  html.hv2 #home .premium-lead{font-size:16.5px!important}
  html.hv2 #home .premium-actions>*{width:100%}
  html.hv2 #home .premium-pills{grid-template-columns:repeat(2,1fr)!important}
  html.hv2 #clients .grid-3{grid-template-columns:1fr!important}
}
/* ---- 2026-11-16: правки после проверки предпросмотра ---- */

/* Services: номер и название по центру высоты строки (только десктоп, мобильная раскладка не меняется) */
@media (min-width: 821px) {
  html.hv2 #services .grid-3 > article.card { align-items: center; }
}

/* Шапка: убрать кнопку «Book a 30-min call» справа */
html.hv2 header.hx-bar .hx-cta a.hx-portal { display: none !important; }

/* Подвал: убрать надпись HELMS над © 2026 */
html.hv2 footer .foot-brand > .goldtext { display: none !important; }
/* About HELMS: надпись и заголовок на одной линии с карточкой Book (только десктоп) */
@media (min-width: 821px) {
  html.hv2 #about .abk-grid { align-items: start !important; }
  html.hv2 #about .abk-grid > .about-card { padding-top: 33px !important; }
}

/* Терминал: вместо дубля логотипа — подпись-картинка в стиле логотипа (шрифт, градиент и кант сняты с helms-crown.webp) */
html.hv2 #home .term-head .term-crown{display:none!important}
html.hv2 #home .term-head{justify-content:center;min-height:34px;padding:0!important}
html.hv2 #home .term-head::before{content:"";display:block;width:min(100%,240px);aspect-ratio:1403/64;background:url(/img/eu-registry-terminal.webp?v=1) center/contain no-repeat}

/* ---------- Адаптив v4 (проверено на 320/360/390/430/768/820/1024/1180/1280/1366/1440/1920) ---------- */
/* Подпись внизу терминала не переносилась и на телефоне растягивала страницу шире экрана */
html.hv2 #home .term .term-foot{white-space:normal!important}
/* Планшеты в одну колонку: заголовок не мельче, чем на 768px */
@media (min-width:921px) and (max-width:1199px){
  html.hv2 #home .hero-reference-title{font-size:clamp(44px,4.6vw,52px)!important}
}
/* Шаги «How we work» в два ряда: линия с точкой над каждым шагом */
@media (max-width:1199px){
  html.hv2 #process .grid-4{border-top:0!important;gap:0 32px!important}
  html.hv2 #process .card.step:not(.book-card){border-top:1px solid var(--line)!important;margin-top:22px}
}
/* Узкие телефоны (до 400px): длинные слова заголовка и строка LIVE в терминале */
@media (max-width:400px){
  html.hv2 #home .hero-reference-title{font-size:clamp(28px,8.6vw,34px)!important}
  html.hv2 #home .term-emt-top{flex-wrap:wrap;row-gap:6px}
}
/* Телефоны: подзаголовок терминала в исходном размере — иначе рвётся на 3 неровные строки */
@media (max-width:640px){
  html.hv2 #home .term .term-tagline{font-size:10.25px!important}
}

/* ---------- Заливка блоков = шапка (v5): терминал, карточка записи, колонка HELMS в сравнении ---------- */
/* Было: коричневый градиент rgba(26,23,16)->rgba(9,9,7) и золотое свечение в углу. Стало: цвет шапки .hx-bar. Только тёмная тема. */
html.hv2:not([data-theme="light"]) #home .term,
html.hv2:not([data-theme="light"]) #about .book-card,
html.hv2:not([data-theme="light"]) #process .compare .card.hl{background:rgba(13,12,9,.94)!important;background-image:none!important}
html.hv2:not([data-theme="light"]) #about .book-card::before,
html.hv2:not([data-theme="light"]) #about .book-card::after{display:none!important}

/* ---------- Терминал: шрифты по системе сайта (v6) — фразы и подписи Satoshi, моноширинный только у чисел ---------- */
html.hv2 #home .term :is(.term-tagline,.term-tagline span,.term-emt-meta,.term-foot){font-family:var(--sans)!important;font-weight:500!important;letter-spacing:0!important;word-spacing:normal!important}
html.hv2 #home .term .term-tagline{font-size:12px!important;color:var(--muted)!important}
html.hv2 #home .term .term-emt-meta b{font-family:var(--sans)!important;font-weight:700!important;font-variant-numeric:tabular-nums}
html.hv2 #home .term .term-foot{color:var(--soft)!important;line-height:1.5!important}
html.hv2 #home .term :is(.tstat-k,.term-emt-lbl,.term-synced,.term-sync-sep){font-family:var(--sans)!important;font-weight:500!important;letter-spacing:.12em!important;text-transform:uppercase}
html.hv2 #home .term .tstat-v > span:not(.term-star){font-family:var(--mono)!important;font-weight:600!important}
@media (max-width:640px){html.hv2 #home .term .term-tagline{font-size:11px!important}}
