/* ev-gerasimov.ru — главная страница (24.10.2026). Подключается после /_site/ev.css (шрифт, токены, шапка, подвал).
   Классы — с префиксом hm-. Сначала телефон: 320 px без горизонтальной прокрутки, отступы по бокам 16 px. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.hm { margin: 0; background: #fff; color: var(--ev-text); font-family: var(--ev-font); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
.hm h1, .hm h2, .hm h3, .hm p, .hm ul, .hm ol, .hm figure { margin: 0; padding: 0; }
.hm ul { list-style: none; }
.hm img { display: block; max-width: 100%; height: auto; }
.hm a { color: var(--ev-accent); text-underline-offset: 3px; }
.hm :focus-visible { outline: 3px solid rgba(36, 87, 255, .45); outline-offset: 2px; border-radius: 8px; }
.hm-skip { position: absolute; left: -10000px; top: 8px; z-index: 1100; background: #fff; color: var(--ev-text); padding: 10px 14px; border-radius: 10px; font-weight: 700; box-shadow: var(--ev-shadow-lg); }
.hm-skip:focus { left: 16px; }

.hm-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.hm-sec { padding: 96px 0; }
.hm-soft { background: #F6F8FC; border-top: 1px solid #EDF0F6; border-bottom: 1px solid #EDF0F6; }
.hm-head { max-width: 760px; margin-bottom: 40px; }
.hm-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.hm-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ev-accent); }
.hm-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(36, 87, 255, .14); flex: none; }
.hm-h1 { margin-top: 18px !important; font-size: clamp(32px, 3.4vw + 14px, 58px); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; }
.hm-hl { background: linear-gradient(100deg, #2457FF 0%, #4F7BFF 60%, #2457FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-h2 { margin-top: 12px !important; font-size: clamp(26px, 1.8vw + 16px, 42px); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; }
.hm-h3 { font-size: 21px; line-height: 1.3; font-weight: 800; letter-spacing: -.015em; }
.hm-sub { margin-top: 16px !important; font-size: 18px; line-height: 1.6; color: var(--ev-muted); }
.hm-lead { margin-top: 22px !important; font-size: 19px; line-height: 1.6; color: var(--ev-muted); max-width: 640px; }

/* кнопки — как ui-btn кабинетов, крупнее */
.hm-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 14px 24px; border: 1px solid transparent; border-radius: 14px; background: var(--ev-accent); color: #fff; font: 700 16px/1.2 var(--ev-font); text-align: center; text-decoration: none; box-shadow: 0 1px 2px rgba(12, 19, 35, .08), 0 8px 22px rgba(36, 87, 255, .26); transition: background .15s, box-shadow .15s, transform .15s, border-color .15s; }
.hm a.hm-btn, .hm a.hm-btn:hover { color: #fff; text-decoration: none; }
.hm-btn:hover { background: var(--ev-accent-hover); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(12, 19, 35, .08), 0 14px 30px rgba(36, 87, 255, .32); }
.hm-btn .ev-i { width: 18px; height: 18px; }
.hm-btn--line, .hm a.hm-btn--line, .hm a.hm-btn--line:hover { background: #fff; color: var(--ev-text); border-color: var(--ev-line-2); box-shadow: var(--ev-shadow-xs); }
.hm-btn--line:hover { background: var(--ev-surface-2); border-color: #BCC6D8; box-shadow: var(--ev-shadow); }
.hm-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.hm a.hm-more:hover { text-decoration: underline; }
.hm-more .ev-i { width: 18px; height: 18px; }

/* ---------- герой ---------- */
.hm-hero { position: relative; overflow: hidden; padding: 64px 0 88px; background: radial-gradient(900px 560px at 92% -10%, rgba(36, 87, 255, .14), transparent 62%), radial-gradient(700px 480px at -10% 110%, rgba(36, 87, 255, .07), transparent 60%), linear-gradient(180deg, #F5F7FD 0%, #fff 100%); }
.hm-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(12, 19, 35, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(12, 19, 35, .045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 75% 20%, #000 10%, transparent 65%); mask-image: radial-gradient(ellipse at 75% 20%, #000 10%, transparent 65%); pointer-events: none; }
.hm-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 56px; align-items: center; }
.hm-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; border-top: 1px solid var(--ev-line); }
.hm-facts li { padding: 18px 16px 0 0; }
.hm-facts li + li { padding-left: 16px; border-left: 1px solid var(--ev-line); }
.hm-facts b { display: block; font-size: 24px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.hm-facts span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ev-muted); }

.hm-portrait { position: relative; justify-self: end; width: 100%; max-width: 420px; }
.hm-portrait img { width: 100%; aspect-ratio: 488 / 560; object-fit: cover; border-radius: 28px; box-shadow: 0 2px 6px rgba(12, 19, 35, .06), 0 40px 80px rgba(12, 19, 35, .18); }
.hm-portrait-cap { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(12, 19, 35, .14); }
.hm-portrait-cap b { display: block; font-size: 17px; font-weight: 800; line-height: 1.25; }
.hm-portrait-cap span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--ev-muted); }
.hm-portrait-badge { position: absolute; top: 18px; left: -28px; display: inline-flex; align-items: center; gap: 10px; max-width: 290px; padding: 10px 14px; border-radius: 14px; background: #fff; color: var(--ev-text); font-size: 13.5px; font-weight: 700; line-height: 1.35; text-decoration: none; box-shadow: 0 12px 32px rgba(12, 19, 35, .14), 0 0 0 1px var(--ev-line); }
.hm a.hm-portrait-badge, .hm a.hm-portrait-badge:hover { color: var(--ev-text); text-decoration: none; }
.hm a.hm-portrait-badge:hover { box-shadow: 0 16px 36px rgba(12, 19, 35, .18), 0 0 0 1px var(--ev-accent-line); }
.hm-dot { width: 10px; height: 10px; border-radius: 50%; background: #12A15E; box-shadow: 0 0 0 4px rgba(18, 161, 94, .16); flex: none; }

/* ---------- продукты Ozon ---------- */
.hm-products { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.hm-prod { display: flex; flex-direction: column; padding: 28px 26px 26px; border: 1px solid var(--ev-line); border-radius: 24px; background: #fff; box-shadow: var(--ev-shadow-xs); transition: box-shadow .2s, border-color .2s, transform .2s; }
.hm-prod:hover { box-shadow: var(--ev-shadow-lg); border-color: #D6DEEC; transform: translateY(-2px); }
.hm-prod--main { border: 1.5px solid var(--ev-accent-line); background: radial-gradient(520px 260px at 100% 0%, rgba(36, 87, 255, .09), transparent 70%), #fff; box-shadow: 0 2px 6px rgba(12, 19, 35, .04), 0 24px 56px rgba(36, 87, 255, .12); }
.hm-prod-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.hm-prod-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--ev-accent-soft); color: var(--ev-accent); flex: none; }
.hm-prod--main .hm-prod-ico { background: var(--ev-accent); color: #fff; box-shadow: 0 8px 18px rgba(36, 87, 255, .3); }
.hm-prod-ico .ev-i { width: 23px; height: 23px; }
.hm-tag { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border-radius: 9px; background: var(--ev-surface-3); color: var(--ev-muted); font-size: 12.5px; font-weight: 800; letter-spacing: .02em; line-height: 1.3; }
.hm-tag--ozon { background: rgba(0, 91, 255, .1); color: var(--ev-ozon); }
.hm-prod > p { margin-top: 10px; font-size: 15.5px; line-height: 1.6; color: var(--ev-muted); }
.hm-price { margin-top: 20px !important; padding-top: 16px; border-top: 1px dashed var(--ev-line-2); display: grid; gap: 10px; }
.hm-price b { display: block; font-size: 17.5px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; }
.hm-price span { display: block; font-size: 13.5px; line-height: 1.45; color: var(--ev-muted); }
.hm-prod-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 24px; }
.hm-prod-btns .hm-btn { flex: 1 1 auto; min-height: 50px; padding: 12px 18px; font-size: 15.5px; }
.hm-ozon-more { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 26px; }
.hm-ozon-more a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; text-decoration: none; }
.hm-ozon-more a:hover { text-decoration: underline; }
.hm-ozon-more .ev-i { width: 16px; height: 16px; }

/* ---------- услуги ---------- */
.hm-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hm-services li { min-width: 0; }
.hm-svc { display: flex; flex-direction: column; height: 100%; padding: 24px 22px 20px; border: 1px solid var(--ev-line); border-radius: 20px; background: #fff; color: var(--ev-text); text-decoration: none; transition: box-shadow .2s, border-color .2s, transform .2s; }
.hm a.hm-svc, .hm a.hm-svc:hover { color: var(--ev-text); text-decoration: none; }
.hm a.hm-svc:hover { border-color: var(--ev-accent-line); box-shadow: var(--ev-shadow-lg); transform: translateY(-2px); }
.hm-svc-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--ev-accent-soft); color: var(--ev-accent); margin-bottom: 18px; }
.hm-svc-ico .ev-i { width: 21px; height: 21px; }
.hm-svc b { font-size: 17px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; }
.hm-svc span { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--ev-muted); }
.hm-svc em { margin-top: auto; padding-top: 16px; font-style: normal; font-size: 14.5px; font-weight: 800; color: var(--ev-accent); }

/* ---------- проекты ---------- */
.hm-cases { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.hm-case { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; border-radius: 22px; border: 1px solid var(--ev-line); background: #fff; color: var(--ev-text); text-decoration: none; }
.hm a.hm-case, .hm a.hm-case:hover { color: var(--ev-text); text-decoration: none; }
.hm-case .hm-tag { align-self: flex-start; }
.hm-case b { font-size: 19px; line-height: 1.3; font-weight: 800; letter-spacing: -.015em; }
.hm-case > span:not(.hm-tag) { font-size: 15px; line-height: 1.55; color: var(--ev-muted); }
.hm-case em { margin-top: auto; padding-top: 6px; font-style: normal; font-weight: 800; color: var(--ev-accent); font-size: 15px; }
a.hm-case--plain:hover { border-color: var(--ev-accent-line); box-shadow: var(--ev-shadow-lg); }
.hm-case--feature { border: 0; color: #fff; background: radial-gradient(520px 320px at 100% 0%, rgba(36, 87, 255, .55), transparent 65%), var(--ev-ink); box-shadow: 0 30px 60px rgba(10, 16, 34, .22); }
.hm a.hm-case--feature, .hm a.hm-case--feature:hover { color: #fff; }
.hm-case--feature b { font-size: 23px; }
.hm-case--feature > span:not(.hm-tag) { color: #B9C3DA; }
.hm-case--feature .hm-tag { background: rgba(255, 255, 255, .1); color: #C9D6FF; }
.hm-case--feature em { color: #9DB6FF; }
.hm-case--feature:hover { box-shadow: 0 36px 70px rgba(10, 16, 34, .3); }
.hm-sites { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px !important; }
.hm-site { border: 1px solid var(--ev-line); border-radius: 20px; background: #fff; overflow: hidden; }
.hm-site img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-bottom: 1px solid var(--ev-line); background: var(--ev-bg); }
.hm-site div { padding: 16px 18px 18px; }
.hm-site b { display: block; font-size: 16px; line-height: 1.35; font-weight: 800; }
.hm-site span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--ev-muted); }

/* ---------- материалы ---------- */
.hm-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hm-posts li { min-width: 0; }
.hm-posts a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 22px; border: 1px solid var(--ev-line); border-radius: 18px; background: #fff; color: var(--ev-text); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.hm .hm-posts a:hover { color: var(--ev-text); border-color: var(--ev-accent-line); box-shadow: var(--ev-shadow); }
.hm-posts b { font-size: 16.5px; line-height: 1.35; font-weight: 800; }
.hm .hm-posts a:hover b { color: var(--ev-accent); }
.hm-posts span { font-size: 14.5px; line-height: 1.5; color: var(--ev-muted); }

/* ---------- об авторе и контакты ---------- */
.hm-about { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.hm-about-card { padding: 32px; border: 1px solid var(--ev-line); border-radius: 26px; background: #fff; box-shadow: var(--ev-shadow-xs); }
.hm-person { display: flex; align-items: center; gap: 20px; }
.hm-ava { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--ev-line), 0 10px 24px rgba(12, 19, 35, .12); }
.hm-person .hm-h2 { margin-top: 6px !important; font-size: clamp(24px, 1vw + 18px, 32px); }
.hm-role { margin-top: 2px !important; font-size: 15px; color: var(--ev-muted); }
.hm-roles { margin-top: 24px !important; display: grid; gap: 12px; }
.hm-roles li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.55; color: var(--ev-muted); }
.hm-roles li b { color: var(--ev-text); }
.hm-roles li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 7px; background: var(--ev-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3l2.6 2.6L14.2 7' fill='none' stroke='%232457FF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.hm-about-card .hm-more { margin-top: 18px; white-space: normal; }
.hm-contact { display: flex; flex-direction: column; padding: 32px; border-radius: 26px; color: #E9EDF7; background: radial-gradient(520px 320px at 100% 0%, rgba(36, 87, 255, .5), transparent 65%), var(--ev-ink); box-shadow: 0 30px 60px rgba(10, 16, 34, .2); }
.hm-contact .hm-eyebrow { color: #9DB6FF; }
.hm-contact .hm-eyebrow::before { box-shadow: 0 0 0 4px rgba(157, 182, 255, .18); }
.hm-contact .hm-h2 { color: #fff; }
.hm-contact .hm-sub { color: #B4BDD2; font-size: 16px; }
.hm-contact-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hm-contact-btns .hm-btn { flex: 1 1 140px; }
.hm-contact .hm-btn--line, .hm-contact a.hm-btn--line, .hm-contact a.hm-btn--line:hover { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .22); box-shadow: none; }
.hm-contact .hm-btn--line:hover { background: rgba(255, 255, 255, .12); }
.hm-contact-list { margin-top: 22px !important; border-top: 1px solid rgba(255, 255, 255, .1); }
.hm-contact-list li { display: flex; justify-content: space-between; align-items: center; gap: 4px 16px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 15px; }
.hm-contact-list span { color: #8E99B3; }
.hm-contact-list a { color: #fff; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.hm-contact-list a:hover { text-decoration: underline; }
.hm-contact > .hm-more { margin-top: auto; padding-top: 16px; color: #9DB6FF; align-self: flex-start; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
    .hm-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-sites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-products { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .hm-prod--main { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
    .hm-hero { padding: 40px 0 64px; }
    .hm-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .hm-portrait { justify-self: start; max-width: 420px; }
    .hm-portrait-badge { left: 16px; top: 16px; }
    .hm-cases { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .hm-case--feature { grid-column: 1 / -1; }
    .hm-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-about { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
    .hm-sec { padding: 64px 0; }
    .hm-head { margin-bottom: 28px; }
    .hm-products, .hm-cases, .hm-posts, .hm-services, .hm-sites { grid-template-columns: minmax(0, 1fr); }
    .hm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 36px; }
    .hm-facts li, .hm-facts li + li { padding: 16px 12px 16px 0; border-left: 0; }
    .hm-facts li:nth-child(2n) { padding-left: 14px; border-left: 1px solid var(--ev-line); }
    .hm-facts li:nth-child(n+3) { border-top: 1px solid var(--ev-line); }
}
@media (max-width: 640px) {
    body.hm { font-size: 16px; }
    .hm-wrap { padding: 0 16px; }
    .hm-hero { padding: 28px 0 52px; }
    .hm-lead { font-size: 17px; margin-top: 18px !important; }
    .hm-sub { font-size: 16.5px; }
    .hm-btns { flex-direction: column; margin-top: 26px; }
    .hm-btn { width: 100%; min-height: 52px; padding: 13px 18px; }
    .hm-facts b { font-size: 21px; }
    .hm-facts span { font-size: 13.5px; }
    .hm-portrait { max-width: none; }
    .hm-portrait img { aspect-ratio: 4 / 3.4; object-position: center 20%; border-radius: 22px; }
    .hm-portrait-badge { left: 12px; right: 12px; top: 12px; max-width: none; font-size: 13px; }
    .hm-portrait-cap { left: 12px; right: 12px; bottom: 12px; }
    .hm-prod { padding: 22px 18px 20px; border-radius: 20px; }
    .hm-prod-btns { flex-direction: column; }
    .hm-prod-btns .hm-btn { width: 100%; }
    .hm-svc { padding: 20px 18px 18px; border-radius: 18px; }
    .hm-case { padding: 22px 18px; border-radius: 20px; }
    .hm-case--feature b { font-size: 20px; }
    .hm-about-card, .hm-contact { padding: 24px 18px; border-radius: 22px; }
    .hm-person { gap: 14px; }
    .hm-ava { width: 72px; height: 72px; }
    .hm-ozon-more { gap: 0 20px; }
}
@media (max-width: 380px) {
    .hm-facts { grid-template-columns: minmax(0, 1fr); }
    .hm-facts li:nth-child(2n) { padding-left: 0; border-left: 0; }
    .hm-facts li + li { border-top: 1px solid var(--ev-line); }
}
@media (prefers-reduced-motion: reduce) {
    .hm * { transition: none !important; }
}

/* ---------- форма заявки (главная, страницы услуг; /_site/lead.js) ---------- */
.hm-form { margin-top: 22px; display: grid; gap: 14px; }
.hm-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.hm-field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: #DDE3F0; }
.hm-field label span { font-weight: 600; color: #8E99B3; }
.hm-field input, .hm-field textarea { display: block; width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; font: 500 16px/1.4 var(--ev-font); -webkit-appearance: none; appearance: none; }
.hm-field textarea { min-height: 88px; resize: vertical; }
.hm-field input::placeholder, .hm-field textarea::placeholder { color: #7F8AA5; }
.hm-field input:focus, .hm-field textarea:focus { outline: none; border-color: #7FA0FF; box-shadow: 0 0 0 4px rgba(127, 160, 255, .25); }
.hm-field [aria-invalid="true"] { border-color: #FF8A80; }
.hm-err { margin-top: 6px !important; font-size: 13.5px; font-weight: 700; color: #FFB4AB; }
.hm-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: #B4BDD2; cursor: pointer; }
.hm-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: #2457FF; cursor: pointer; }
.hm-check a { color: #C9D6FF; }
.hm-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.hm-alert { padding: 12px 14px; border-radius: 12px; background: rgba(255, 138, 128, .12); color: #FFD3CE; font-size: 14.5px; font-weight: 600; }
.hm-form .hm-btn { width: 100%; margin-top: 2px; }
.hm-form .hm-btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.hm-done { margin-top: 22px; padding: 18px; border-radius: 16px; background: rgba(18, 161, 94, .14); outline: none; }
.hm-done b { display: block; color: #fff; font-size: 18px; }
.hm-done span { display: block; margin-top: 4px; color: #C9D1E3; font-size: 15px; }
@media (max-width: 480px) { .hm-fields { grid-template-columns: minmax(0, 1fr); } }

/* ================= нативные страницы услуг (/webmaster, /site, /optimization; tools/build_services.py) ================= */
.sv-hero .hm-hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.sv-crumbs { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 16px !important; padding: 0; font-size: 14px; color: var(--ev-subtle); }
.sv-crumbs li { display: inline-flex; align-items: center; }
.sv-crumbs li + li::before { content: "/"; margin: 0 8px; color: #B4BDCC; }
.sv-crumbs a { color: var(--ev-muted); text-decoration: none; }
.sv-crumbs a:hover { color: var(--ev-accent); text-decoration: underline; }
.sv-h1 { font-size: clamp(30px, 2.8vw + 14px, 50px); }
.sv-tagline { margin-top: 14px !important; font-size: 19px; font-weight: 700; color: var(--ev-accent); }
.sv-bullets { margin-top: 18px !important; display: grid; gap: 10px; }
.sv-bullets li, .sv-checks li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.5; }
.sv-bullets li::before, .sv-checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 7px; background: var(--ev-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3l2.6 2.6L14.2 7' fill='none' stroke='%232457FF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.sv-note { margin-top: 12px !important; font-size: 14px; color: var(--ev-muted); }
.sv-portrait img { aspect-ratio: 632 / 612; }

.sv-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sv-group { padding: 22px; border: 1px solid var(--ev-line); border-radius: 20px; background: #fff; }
.sv-group-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sv-group-h .hm-svc-ico { margin: 0; flex: none; }
.sv-group-h .hm-h3 { font-size: 17.5px; }
.sv-checks { display: grid; gap: 8px; }
.sv-checks li { font-size: 15px; color: var(--ev-text); }
.sv-ozon { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 18px 22px; border-radius: 20px; background: var(--ev-accent-soft); color: var(--ev-text); text-decoration: none; border: 1px solid var(--ev-accent-line); }
.hm a.sv-ozon, .hm a.sv-ozon:hover { color: var(--ev-text); text-decoration: none; }
.sv-ozon > span:nth-child(2) { flex: 1; min-width: 0; }
.sv-ozon b { display: block; font-size: 17px; }
.sv-ozon span span { display: block; color: var(--ev-muted); font-size: 15px; margin-top: 2px; }
.sv-ozon .hm-svc-ico { margin: 0; background: #fff; flex: none; }
.sv-ozon > .ev-i { width: 22px; height: 22px; color: var(--ev-accent); }

.sv-band-sec { padding: 0 0 8px; }
.sv-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border-radius: 24px; color: #fff; background: radial-gradient(520px 300px at 100% 0%, rgba(36, 87, 255, .5), transparent 65%), var(--ev-ink); }
.sv-band-t { font-size: 22px; font-weight: 800; letter-spacing: -.015em; line-height: 1.3; }
.sv-band-s { margin-top: 6px !important; color: #B4BDD2; font-size: 15.5px; }
.sv-band-btns { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }
.sv-band .hm-btn--line, .hm .sv-band a.hm-btn--line, .hm .sv-band a.hm-btn--line:hover { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .24); box-shadow: none; }

.sv-who { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--ev-line); }
.sv-who-list { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 15.5px; line-height: 1.6; color: var(--ev-muted); }
.sv-who-list b { color: var(--ev-text); }
.sv-after { margin-top: 18px !important; }

.sv-offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: center; padding: 34px 36px; border-radius: 26px; color: #fff; background: radial-gradient(600px 360px at 0% 100%, rgba(36, 87, 255, .45), transparent 65%), var(--ev-ink); }
.sv-offer .hm-eyebrow { color: #9DB6FF; }
.sv-offer .hm-h2 { color: #fff; }
.sv-offer p { margin-top: 10px !important; color: #C9D1E3; font-size: 16px; line-height: 1.6; max-width: 720px; }
.sv-offer .sv-offer-price { color: #fff; font-size: 19px; font-weight: 800; }

.hm .sv-sites { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sv-sites .hm-site div { display: flex; flex-direction: column; }
.sv-site-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; font-weight: 800; text-decoration: none; }
.sv-site-link .ev-i { width: 15px; height: 15px; }
.sv-site-link.is-off { color: var(--ev-subtle); }

.sv-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sv-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 180px; gap: 18px; align-items: start; padding: 18px 22px; border: 1px solid var(--ev-line); border-radius: 18px; background: #fff; }
.sv-time { display: inline-flex; align-self: start; justify-self: start; padding: 5px 10px; border-radius: 9px; background: var(--ev-accent-soft); color: var(--ev-accent); font-size: 13px; font-weight: 800; line-height: 1.3; }
.sv-body b { display: block; font-size: 16.5px; line-height: 1.35; }
.sv-body p { margin-top: 6px !important; font-size: 15px; line-height: 1.6; color: var(--ev-muted); }
.sv-price { justify-self: end; text-align: right; font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.sv-simple { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 18px 24px; align-items: center; padding: 22px 24px; border: 1px solid var(--ev-line); border-radius: 20px; background: #fff; }
.sv-simple p { font-size: 16px; line-height: 1.6; }
.sv-total { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin-bottom: 16px; padding: 24px 28px; border-radius: 22px; background: var(--ev-ink); color: #fff; }
.sv-total-t { font-size: 22px; font-weight: 700; }
.sv-total-t b { font-weight: 800; }
.sv-total-t s { color: #8E99B3; font-size: 18px; margin-left: 6px; }
.sv-total-s { margin-top: 4px !important; color: #B4BDD2; }
.sv-quote-sec { padding: 56px 0 8px; }
.sv-quote { margin: 0; padding: 30px 34px; border-radius: 24px; background: var(--ev-accent-soft); border-left: 4px solid var(--ev-accent); }
.sv-quote p { font-size: 21px; line-height: 1.5; font-weight: 600; letter-spacing: -.01em; }
.sv-quote footer { margin-top: 12px; color: var(--ev-muted); font-size: 15px; font-weight: 700; }

.sv-aside { display: flex; flex-direction: column; }
.sv-pay { margin-top: 14px !important; font-weight: 800; font-size: 16px; }
.sv-contacts { margin-top: 20px !important; border-top: 1px solid var(--ev-line); }
.sv-contacts li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--ev-line); font-size: 15px; }
.sv-contacts span { color: var(--ev-muted); }
.sv-contacts a { font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.sv-asks { margin-top: 16px !important; display: grid; gap: 10px; }
.sv-asks li { padding: 14px 16px; border-radius: 14px; background: var(--ev-surface-2); border: 1px solid var(--ev-line); }
.sv-asks b { display: block; font-size: 15.5px; }
.sv-asks span { display: block; margin-top: 4px; color: var(--ev-muted); font-size: 14.5px; line-height: 1.5; }

@media (max-width: 1100px) {
    .hm .sv-sites { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sv-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .sv-hero .hm-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .sv-portrait { max-width: 360px; }
    .sv-row { grid-template-columns: minmax(0, 1fr) auto; }
    .sv-row .sv-body { grid-column: 1 / -1; grid-row: 2; }
    .sv-band { flex-direction: column; align-items: flex-start; }
    .sv-offer { grid-template-columns: minmax(0, 1fr); }
    .sv-simple { grid-template-columns: minmax(0, 1fr) auto; }
    .sv-simple p { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 720px) {
    .sv-groups, .hm .sv-sites { grid-template-columns: minmax(0, 1fr); }
    .sv-who { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
}
@media (max-width: 640px) {
    .sv-tagline { font-size: 17px; }
    .sv-portrait img { aspect-ratio: 4 / 3.4; object-position: center 25%; }
    .sv-row { padding: 16px; gap: 10px 12px; }
    .sv-price { font-size: 16.5px; }
    .sv-band { padding: 22px 18px; }
    .sv-band-btns, .sv-band-btns .hm-btn { width: 100%; }
    .sv-offer { padding: 24px 18px; }
    .sv-offer .hm-btn { width: 100%; }
    .sv-total { padding: 20px 18px; }
    .sv-total .hm-btn { width: 100%; }
    .sv-simple { padding: 18px 16px; }
    .sv-simple .hm-btn { grid-column: 1 / -1; width: 100%; }
    .sv-quote { padding: 22px 18px; }
    .sv-quote p { font-size: 18px; }
    .sv-ozon { padding: 16px; align-items: flex-start; }
}
