/* Главная страница, светлый макет: герой с коллажем, категории, специалисты,
   три шага, баннер, цифры, отзывы.
   Места под фотографии (герой, баннер) работают и без файлов: без картинки
   показывается плитка с иконкой, с картинкой — фото на всю плитку. */

/* Значения сняты пипеткой прямо с макета, а не подобраны на глаз:
   заголовок #076DFF, кнопка «Найти» #0067FD, зелёная кнопка #01C87C. */
.hm {
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    --brand: #0067FF;
    --brand-btn: #0067FF;
    --brand-dark: #0052CC;
    --ok: #01C87C;
    --hm-page: #FFFFFF;
    --hm-tint: #EDF4FE;
    --hm-mint: #DDF6EC;
    --hm-line: #E2E8F0;
}

/* ---------- Герой ---------- */
/* Фон героя на макете почти белый, без синего градиента */
.hm-hero { background: linear-gradient(180deg, #FBFCFE 0%, #fff 70%); padding: 30px 0 40px; }
.hm-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.hm-kicker { font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #647B94; margin-bottom: 14px; }
.hm-h1 { font-family: 'Montserrat', sans-serif; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; color: #081638; }
.hm-h1 span { color: var(--brand); }
.hm-lead { font-family: 'Montserrat', sans-serif; margin-top: 18px; font-size: 15.5px; line-height: 1.55; font-weight: 400; color: #435973; }

/* Поиск */
.hm-search { margin-top: 26px; }
/* Строка поиска — крупная пилюля с кнопкой-пилюлей внутри, как на макете */
.hm-search-box { position: relative; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #9FCBFF; border-radius: 14px; padding: 5px 5px 5px 18px; box-shadow: 0 10px 30px rgba(18, 50, 100, .07); }
.hm-search-box:focus-within { border-color: var(--brand); box-shadow: 0 10px 30px rgba(0, 103, 255, .12); }
.hm-search-box > .so-icon { flex: 0 0 auto; width: 21px; height: 21px; color: #0067FF; }
.hm-search-box input { flex: 1; min-width: 0; border: 0; outline: 0; font-family: 'Montserrat', sans-serif; font-size: 14.5px; font-weight: 400; color: #122844; background: transparent; padding: 13px 0; }
.hm-search-box input::placeholder { color: #7B90A6; font-weight: 400; text-overflow: ellipsis; }
.hm-search-btn { flex: 0 0 auto; border: 0; cursor: pointer; background: var(--brand-btn); color: #fff; font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 700; padding: 13px 32px; border-radius: 11px; transition: background-color .15s ease; }
.hm-search-btn:hover { background: var(--brand-dark); }

/* Подсказки поиска */
.hm-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; background: #fff; border: 1px solid var(--hm-line); border-radius: 12px; box-shadow: 0 14px 34px rgba(20, 50, 95, .13); padding: 6px; max-height: 340px; overflow: auto; }
.hm-suggest-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #667788; padding: 8px 10px 6px; }
.hm-suggest-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; border: 0; background: none; cursor: pointer; padding: 9px 10px; border-radius: 8px; font-size: 13.5px; color: var(--ink); }
.hm-suggest-item em { font-style: normal; font-size: 11.5px; color: #667788; white-space: nowrap; }
.hm-suggest-item.is-active, .hm-suggest-item:hover { background: var(--hm-tint); }
.hm-suggest-item.is-cat { font-weight: 600; }
.hm-suggest-empty { padding: 12px 14px; font-size: 13px; color: #6C7C8C; }

/* Популярные запросы */
.hm-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.hm-quick > span { font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 500; color: #647B94; margin-right: 4px; }
/* Чипы на макете — заливка светло-голубым, без контура */
.hm-quick a { font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 500; color: #0052CC; background: #EDF4FE; border: 0; border-radius: 999px; padding: 5px 10px; white-space: nowrap; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.hm-quick a:hover { background: #DBEAFE; color: #0050C8; }

/* Три выгоды — кружки с иконками и вертикальные разделители */
.hm-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin-top: 36px; }
.hm-trust li { flex: 1 1 0; display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.hm-trust li:first-child { padding-left: 0; }
.hm-trust li + li { border-left: 0; }
.hm-trust-ic { flex: 0 0 46px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; }
.hm-trust-ic.is-green { background: #DDF6EC; color: #01C87C; }
.hm-trust-ic.is-blue { background: #E4F1FE; color: #0067FF; }
.hm-trust-ic .so-icon { width: 22px; height: 22px; }
.hm-trust li span:last-child { font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 600; line-height: 1.45; color: #122844; }

/* ---------- Шапка на главной ---------- */
.so-header .so-search-link { display: none !important; }
.so-header, .so-nav, .so-nav a, .so-button { font-family: 'Montserrat', system-ui, -apple-system, sans-serif !important; }
.so-nav a { font-weight: 600 !important; font-size: 13.5px !important; color: #11243A !important; }
.so-header .so-button.so-login { border: 1.5px solid #0067FF !important; color: #0067FF !important; background: #FFFFFF !important; border-radius: 999px !important; font-weight: 700 !important; font-size: 13.5px !important; }
.so-header .so-button.so-login:hover { background: #F0F6FF !important; }
.so-header .so-button.so-header-cta { background: #01C87C !important; border: 1.5px solid #01C87C !important; color: #FFFFFF !important; border-radius: 999px !important; font-weight: 700 !important; font-size: 13.5px !important; }
.so-header .so-button.so-header-cta:hover { background: #01B26E !important; }

/* ---------- Коллаж героя ---------- */
.hm-art { display: flex; align-items: stretch; gap: 16px; }
.hm-art-grid { flex: 1 1 auto; display: flex; gap: 16px; }
.hm-art-col { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.hm-art-col.is-offset { margin-top: 24px; }
.hm-art-tile { position: relative; display: flex; align-items: flex-end; justify-content: space-between; min-height: 0; aspect-ratio: 1 / 1.04; padding: 12px; border-radius: 23px; border: 0; box-shadow: 0 5px 18px rgba(20, 46, 85, 0.04); overflow: hidden; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.hm-art-tile:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(20, 46, 85, 0.14); }

.hm-art-tile.hm-art-t1 { background: linear-gradient(180deg, #FDF1F6 0%, #FCE3EE 100%); }
.hm-art-tile.hm-art-t2 { background: linear-gradient(180deg, #EDF4FE 0%, #DFECFD 100%); }
.hm-art-tile.hm-art-t3 { background: linear-gradient(180deg, #EDFAF5 0%, #DDF5EB 100%); }
.hm-art-tile.hm-art-t4 { background: linear-gradient(180deg, #FFF6EE 0%, #FDE9D6 100%); }

.hm-art-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; pointer-events: none; }

/* Белая пилюля слева внизу */
.hm-art-pill { position: relative; z-index: 2; background: #FFFFFF; border-radius: 999px; padding: 7px 12px; font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700; box-shadow: 0 4px 14px rgba(20, 46, 85, 0.09); white-space: nowrap; }
.hm-art-t1 .hm-art-pill { color: #5C2849; }
.hm-art-t2 .hm-art-pill { color: #0056D6; }
.hm-art-t3 .hm-art-pill { background: #DDF5EB; color: #0D4E3E; }
.hm-art-t4 .hm-art-pill { color: #8A4600; }

/* Круглая иконка справа внизу */
.hm-art-circle { position: relative; z-index: 2; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #FFFFFF; box-shadow: 0 4px 14px rgba(20, 46, 85, 0.09); }
.hm-art-circle.is-pink { background: #FEEBF1; color: #FF3B7F; }
.hm-art-circle.is-pink .so-icon { width: 20px; height: 20px; }
.hm-art-circle.is-blue { background: #E8F2FD; color: #0067FF; }
.hm-art-circle.is-blue .so-icon { width: 20px; height: 20px; }
.hm-art-circle.is-amber { background: #FEF3E2; color: #D97706; }
.hm-art-circle.is-amber .so-icon { width: 20px; height: 20px; }

/* Правая рельса */
.hm-art-rail { flex: 0 0 100px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.hm-note-wrap { padding-top: 18px; }
.hm-note { font-family: 'Caveat', cursive; font-size: 20px; font-weight: 600; line-height: 1.15; color: #4A607A; }
.hm-note-arrow { display: block; width: 54px; height: 44px; margin: 4px 0 0 28px; color: #4A607A; }

/* Плавающая карточка идей */
.hm-art-panel { display: flex; flex-direction: column; justify-content: space-between; background: #EDF5FD; border-radius: 22px; padding: 20px 16px 18px; min-height: 172px; box-shadow: 0 10px 24px rgba(20, 46, 85, 0.05); }
.hm-art-panel p { font-family: 'Montserrat', sans-serif; font-size: 13px; line-height: 1.65; font-weight: 400; color: #53789F; }
.hm-panel-icon { align-self: flex-end; width: 32px; height: 32px; display: grid; place-items: center; color: #0067FF; }
.hm-panel-icon .so-icon { width: 28px; height: 28px; }

/* ---------- Общая секция ---------- */
.hm-sec { padding: 24px 0; }
.hm-sec.is-tinted { background: var(--hm-page); }
.hm-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.hm-sec-head h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.18; font-weight: 700; letter-spacing: -.02em; }
.hm-sec-head p { margin-top: 7px; font-size: 14px; color: #6C7C8C; }
.hm-sec-side { display: flex; align-items: center; gap: 12px; }
.hm-sec-all { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.hm-sec-all .so-icon { width: 16px; height: 16px; }
.hm-sec-all:hover { color: var(--brand-dark); }
/* Стрелки карусели */
.hm-nav { display: flex; gap: 8px; }
.hm-nav button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #D7E3F2; background: #fff; color: var(--brand); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.hm-nav button:hover { border-color: var(--brand); background: var(--hm-tint); }
.hm-nav .so-icon { width: 16px; height: 16px; }
.hm-nav .is-prev .so-icon { transform: rotate(180deg); }

/* ---------- Категории (точно по макету: 8 уникальных пастельных плиток) ---------- */
.hm-cats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
.hm-cat { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 24px 8px 20px; border: 1px solid #EAF0FA; border-radius: 14px; min-height: 142px; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.hm-cat:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(20, 50, 95, .08); }
.hm-cat-ic { display: grid; place-items: center; width: 44px; height: 44px; line-height: 0; }
.hm-cat-ic .so-icon { width: 38px; height: 38px; }
.hm-cat b { font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 600; line-height: 1.45; color: #11243A; display: block; }

/* Темы плиток с акцентными цветными иконками по макету */
.hm-cat-rose   { background: #FDF2F4; color: #F43F5E; }
.hm-cat-blue   { background: #EFF6FF; color: #2563EB; }
.hm-cat-slate  { background: #F0F7FF; color: #3B82F6; }
.hm-cat-mint   { background: #ECFDF5; color: #10B981; }
.hm-cat-navy   { background: #F1F5FD; color: #1E40AF; }
.hm-cat-cyan   { background: #F0FDFA; color: #06B6D4; }
.hm-cat-purple { background: #F5F3FF; color: #7C3AED; }
.hm-cat-coral  { background: #FFF7ED; color: #F97316; }

/* ---------- Популярные специалисты ---------- */
.hm-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hm-tab { border: 1px solid transparent; background: #F1F5F9; border-radius: 10px; padding: 7px 17px; font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600; color: #475569; cursor: pointer; transition: all .15s ease; }
.hm-tab:hover { background: #E2E8F0; color: #0F172A; }
.hm-tab.is-active { background: #0067FF; color: #fff; box-shadow: 0 4px 14px rgba(0, 103, 255, 0.25); }

.hm-masters { display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 8px; scrollbar-width: none; }
.hm-masters::-webkit-scrollbar { display: none; }

.hm-master { position: relative; flex: 0 0 calc((100% - 80px) / 6); width: calc((100% - 80px) / 6); min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid #E6EDF5; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 14px rgba(18, 50, 100, 0.04); transition: transform .18s ease, box-shadow .18s ease, border-color .15s ease; }
.hm-master:hover { transform: translateY(-3px); border-color: #BFDBFE; box-shadow: 0 12px 28px rgba(18, 50, 100, 0.1); }
.hm-master-top { position: relative; height: auto; aspect-ratio: 1.16; background: #F1F5F9; overflow: hidden; }
.hm-master-top img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hm-master-top .ma-ph { width: 100%; height: 100%; }
.hm-master-heart-top { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); display: grid; place-items: center; border: 0; cursor: pointer; color: #64748B; transition: color .15s ease, background .15s ease; z-index: 2; }
.hm-master-heart-top:hover { color: #E11D48; background: #fff; }
.hm-master-heart-top .so-icon { width: 14px; height: 14px; }
.hm-master-heart-top.is-on { color: #E11D48; background: #fff; }
.hm-master-heart-top.is-on .so-icon { fill: #E11D48; }

.hm-master-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.hm-master-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; }
.hm-master-name { font-family: 'Montserrat', sans-serif; font-size: 13.5px; font-weight: 700; line-height: 1.25; color: #0F172A; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 18px; }
.hm-master-spec { font-family: 'Montserrat', sans-serif; font-size: 11.5px; color: #64748B; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-master-row { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: #475569; }
.hm-master-row .so-icon { width: 13px; height: 13px; flex: 0 0 auto; color: #94A3B8; }
.hm-master-row .is-star { color: #F59E0B; }
.hm-master-row b { font-weight: 700; color: #0F172A; }
.hm-master-row span { color: #64748B; }
.hm-master-price { font-family: 'Montserrat', sans-serif; font-size: 13.5px; font-weight: 800; color: #0F172A; margin-top: 2px; }

.hm-master-footer-row { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.hm-master-badge { display: inline-flex; align-items: center; gap: 4px; font-family: 'Montserrat', sans-serif; font-size: 10.5px; font-weight: 700; color: #04785A; background: #D1FAE5; border-radius: 5px; padding: 3px 8px; }
.hm-master-badge .so-icon { width: 11px; height: 11px; }
.hm-master-heart-bottom { color: #94A3B8; cursor: pointer; border: 0; background: none; padding: 0; display: grid; place-items: center; }
.hm-master-heart-bottom:hover { color: #E11D48; }
.hm-master-heart-bottom.is-on { color: #E11D48; }
.hm-master-heart-bottom.is-on .so-icon { fill: #E11D48; }
.hm-master-heart-bottom .so-icon { width: 14px; height: 14px; }

.hm-master-btn { margin-top: 8px; display: block; text-align: center; font-family: 'Montserrat', sans-serif; font-size: 11.5px; font-weight: 700; color: #0067FF; border: 1.5px solid #BFDBFE; border-radius: 999px; padding: 7px 10px; text-decoration: none; transition: all .15s ease; }
.hm-master-btn:hover { background: #EFF6FF; border-color: #0067FF; }

/* ---------- Как это работает (3 шага с пунктирными стрелками) ----------
   По макету: мягкий голубой круг с двухцветной иконкой, номер вынесен
   слева от круга и не участвует в центрировании — подпись центрируется
   ровно под кругом. Стрелки серые и стоят на уровне центров кругов. */
.hm-steps-wrap { position: relative; }
.hm-steps { --hm-step-circle: 82px; --hm-num-size: 36px; --hm-num-gap: clamp(12px, 2.6vw, 44px);
    display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; gap: 16px; margin-top: 18px; }
.hm-step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hm-step-ic { position: relative; width: var(--hm-step-circle); height: var(--hm-step-circle); border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px;
    background: radial-gradient(circle at 50% 50%, #E4EFFB 0%, #E8F2FC 60%, rgba(232, 242, 252, 0) 100%); }
.hm-step-ic .so-icon { width: 40px; height: 40px; overflow: visible; }
.hm-step-num { position: absolute; top: 50%; right: calc(100% + var(--hm-num-gap)); transform: translateY(-50%);
    width: var(--hm-num-size); height: var(--hm-num-size); border-radius: 50%; background: linear-gradient(140deg, #2E92FF 0%, #0067FF 100%); color: #fff;
    font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(0, 103, 255, 0.28); }
.hm-step h3 { font-family: 'Montserrat', sans-serif; font-size: 17px; font-weight: 700; color: #081638; margin-bottom: 8px; }
.hm-step p { font-family: 'Montserrat', sans-serif; font-size: 14px; line-height: 1.55; color: #64748B; max-width: 260px; }
.hm-step-arrow { width: 96px; height: 18px; color: #C3C7CC; flex-shrink: 0; margin-top: calc(var(--hm-step-circle) / 2 - 9px); }

/* ---------- CTA Баннер «Нужен специалист?» ---------- */
.hm-cta { background: linear-gradient(135deg, #F0F7FE 0%, #E2F0FD 100%); border-radius: 28px; padding: 48px 56px; display: grid; grid-template-columns: 1.15fr 0.95fr; gap: 40px; align-items: center; overflow: hidden; position: relative; }
.hm-cta-kicker { display: inline-block; font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #1E40AF; background: #DBEAFE; padding: 5px 14px; border-radius: 999px; margin-bottom: 14px; }
.hm-cta h2 { font-family: 'Montserrat', sans-serif; font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.03em; color: #0F172A; margin-bottom: 12px; }
.hm-cta p { font-family: 'Montserrat', sans-serif; font-size: 15px; line-height: 1.55; color: #475569; }
.hm-cta-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hm-cta-btn { display: inline-flex; align-items: center; gap: 8px; font-family: 'Montserrat', sans-serif; font-size: 14.5px; font-weight: 700; padding: 13px 26px; border-radius: 999px; background: #01C87C; color: #fff; text-decoration: none; transition: background-color .15s ease, transform .15s ease; box-shadow: 0 4px 14px rgba(1, 200, 124, 0.25); }
.hm-cta-btn:hover { background: #01AE6C; transform: translateY(-1px); }
.hm-cta-btn.is-ghost { background: #fff; color: #0067FF; border: 1.5px solid #BFDBFE; box-shadow: 0 4px 14px rgba(0, 103, 255, 0.08); }
.hm-cta-btn.is-ghost:hover { background: #F8FAFC; border-color: #0067FF; }
.hm-cta-btn .so-icon { width: 16px; height: 16px; }

.hm-cta-side { position: relative; display: flex; flex-direction: column; align-items: flex-end; }
.hm-cta-note-wrap { position: absolute; top: -24px; right: 10px; z-index: 3; display: flex; align-items: flex-end; gap: 6px; }
.hm-cta-note { font-family: 'Caveat', cursive; font-size: 20px; font-weight: 600; line-height: 1.15; color: #4A607A; text-align: right; }
.hm-cta-note-arrow { width: 36px; height: 26px; color: #01C87C; margin-bottom: -4px; }
.hm-cta-photo-box { width: 100%; max-width: 440px; height: 260px; border-radius: 20px; overflow: hidden; box-shadow: 0 16px 36px rgba(18, 50, 100, 0.1); }
.hm-cta-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

/* ---------- Цифры статистики (4 ярких цветных кружка по макету) ---------- */
.hm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.hm-stat { display: flex; align-items: center; gap: 16px; }
/* По макету кружок бледный, а цветная — сама иконка. Раньше было наоборот:
   заливка насыщенным цветом и белая иконка, которая на ней терялась. */
.hm-stat-ic { width: 54px; height: 54px; flex: 0 0 54px; display: grid; place-items: center; border-radius: 50%; }
.hm-stat-ic.is-blue   { background: #DEEDFB; color: #1180E8; }
.hm-stat-ic.is-green  { background: #DCF4E9; color: #10B981; }
.hm-stat-ic.is-amber  { background: #FDF0D6; color: #F7B32B; }
.hm-stat-ic.is-cyan   { background: #DEEDFB; color: #1180E8; }
.hm-stat-ic .so-icon { width: 27px; height: 27px; }
/* Только прямые потомки текстового блока: кружок с иконкой — тоже span внутри
   .hm-stat, и правило «.hm-stat span» перебивало ему display: grid (иконка
   уезжала в левый верхний угол). */
.hm-stat > div > strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: #0F172A; }
.hm-stat > div > span { display: block; margin-top: 3px; font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 500; color: #64748B; }

/* ---------- Отзывы пользователей (3 аккуратные карточки по макету) ---------- */
/* auto-fit, а не жёсткие три колонки: отзывов в базе может быть два — пустой
   третьей ячейки в сетке быть не должно. */
.hm-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.hm-review { background: #fff; border: 1px solid #E6EDF5; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 6px 20px rgba(18, 50, 100, 0.03); transition: transform .18s ease, box-shadow .18s ease; }
.hm-review:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(18, 50, 100, 0.08); }
.hm-review-top { display: flex; align-items: flex-start; gap: 14px; }
/* Фото у клиентов нет — кружок с первой буквой имени вместо стокового лица. */
.hm-review-av { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; display: grid; place-items: center;
    font-family: 'Montserrat', sans-serif; font-size: 19px; font-weight: 700; }
.hm-review-av.is-blue   { background: #DEEDFB; color: #1180E8; }
.hm-review-av.is-green  { background: #DCF4E9; color: #0EA271; }
.hm-review-av.is-amber  { background: #FDF0D6; color: #D9902A; }
.hm-review-av.is-violet { background: #EAE7FD; color: #6D5AE0; }
.hm-review-av.is-cyan   { background: #DBF1F8; color: #0E8DAE; }
.hm-review-who { min-width: 0; }
.hm-review-who strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 700; color: #0F172A; }
.hm-review-who > a { display: block; font-family: 'Montserrat', sans-serif; font-size: 12px; color: #64748B; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-review-who > a:hover { color: var(--brand); }
.hm-review-stars { display: flex; gap: 3px; color: #F7B32B; margin-top: 6px; }
.hm-review-stars .so-icon { width: 15px; height: 15px; }
/* Отзывы в базе бывают в несколько абзацев — на витрине показываем начало,
   целиком его видно на странице исполнителя. */
.hm-review p { font-family: 'Montserrat', sans-serif; font-size: 13.5px; line-height: 1.6; color: #334155; white-space: pre-line;
    display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.hm-review time { font-family: 'Montserrat', sans-serif; font-size: 12px; color: #94A3B8; margin-top: auto; }


/* Главная использует общий .so-wrap: та же ширина, что у шапки и каталога. */
.hm { color: #081638; }
.hm-art, .hm-art-grid, .hm-art-col { min-width: 0; }
.hm-art { gap: 12px; }
.hm-art-grid { gap: 14px; }
.hm-art-col { gap: 22px; }
.hm-art-col.is-offset { margin-top: 12px; padding-top: 6px; }
.hm-art-t1 { transform: rotate(-4deg); }
.hm-art-t2 { transform: rotate(4deg); }
.hm-art-t3 { transform: rotate(-3deg); }
.hm-art-t4 { transform: rotate(3deg); }
.hm-art-t4 .hm-art-pill { color: #0056D6; }
.hm-art-rail { padding: 30px 0 40px; }
.hm-art-circle { border-radius: 15px; transform: rotate(9deg); }
.hm-note { font-size: 18px; }
.hm-trust { margin-top: 42px; }
.hm-trust li { padding: 0 8px; gap: 9px; }
.hm-master-body { padding: 11px; }
.hm-master-name { font-size: 12px; }
.hm-master-spec, .hm-master-row { font-size: 10px; }
.hm-master-btn { font-size: 10px; padding-inline: 4px; }
.hm-master-price { font-size: 12px; }
.hm-steps { margin-top: 12px; --hm-step-circle: 76px; }
.hm-step-ic { margin-bottom: 12px; }
.hm-cta { min-height: 252px; padding: 30px 40px; display: block; border-radius: 16px; background: #EDF7FF; }
.hm-cta-copy { position: relative; z-index: 2; width: 64%; }
.hm-cta-kicker { background: none; padding: 0; border-radius: 0; margin-bottom: 12px; font-weight: 600; color: #5477A6; }
.hm-cta h2 { margin-bottom: 8px; }
.hm-cta p { line-height: 1.5; }
.hm-cta-side { position: absolute; inset: 0 0 0 auto; width: 43%; }
.hm-cta-photo-box { width: 100%; height: 100%; max-width: none; border-radius: 0; box-shadow: none; mask-image: linear-gradient(to right, transparent, #000 28%); }
.hm-cta-photo { object-position: 55% center; }
.hm-cta-note-wrap { top: 24px; right: 20px; padding: 8px; border-radius: 12px; background: #edf7ffdd; }
.hm-stat > div > strong { font-size: 24px; }
.hm-sec:has(.hm-stats) { padding-top: 8px; padding-bottom: 30px; }
.hm-sec:has(.hm-reviews) { padding-bottom: 44px; }
.hm a:focus-visible, .hm button:focus-visible { outline: 3px solid #80BCFF; outline-offset: 4px; }
@media (min-width: 1060px) {
    body:has(.hm) .so-header-row { height: 64px; gap: 24px; }
    body:has(.hm) .so-nav { gap: 24px; }
    /* Узкий десктоп: шапка влезает впритык, крупнее 11px меню уже не помещается. */
    body:has(.hm) .so-nav a { font-size: 11px !important; }
    body:has(.hm) .so-logo img { width: 174px; }
    body:has(.hm) .so-button { padding: 11px 24px; }
}
/* Шрифт меню растёт вместе с шириной: в шапке главной нет запаса, при 1060px
   строка «логотип + меню + город + две кнопки» занимает её целиком. */
@media (min-width: 1240px) {
    body:has(.hm) .so-nav a { font-size: 13px !important; }
}
@media (min-width: 1360px) {
    body:has(.hm) .so-nav { gap: 28px; }
    body:has(.hm) .so-nav a { font-size: 15px !important; }
}
@media (max-width: 1150px) {
    .hm-art-rail { flex-basis: 80px; }
    .hm-art-panel { padding: 16px 10px; }
    .hm-art-circle { width: 32px; height: 32px; flex-basis: 32px; }
    .hm-art-pill { font-size: 9px; padding: 6px 8px; }
    .hm-h1 { font-size: 36px; }
    .hm-master { flex-basis: calc((100% - 48px) / 4); }
    .hm-cat b { font-size: 10px; }
}
@media (max-width: 900px) {
    .hm-hero-in { grid-template-columns: 1fr; gap: 34px; }
    .hm-hero-copy { max-width: 640px; }
    .hm-art { width: 100%; max-width: 560px; margin: 0 auto; }
    .hm-art-pill { font-size: 12px; }
    .hm-art-rail { flex-basis: 100px; }
    .hm-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hm-cat b { font-size: 12px; }
    .hm-steps { gap: 8px; --hm-num-gap: 6px; --hm-num-size: 28px; }
    .hm-step-arrow { width: 44px; }
    .hm-step h3 { font-size: 14px; }
    .hm-step p { font-size: 12px; }
    .hm-cta { padding: 28px; }
    .hm-cta-copy { width: 70%; }
    .hm-cta-note-wrap { display: none; }
    .hm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .hm-reviews { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .hm-hero { padding: 24px 0; }
    .hm-h1 { font-size: clamp(27px, 7.5vw, 38px); }
    .hm-lead { font-size: 13px; }
    .hm-search-box { gap: 8px; padding-left: 12px; }
    .hm-search-box input { font-size: 16px; width: 0; }
    .hm-search-btn { padding: 12px 18px; font-size: 13px; }
    .hm-quick > span { width: 100%; }
    .hm-trust { margin-top: 26px; gap: 8px; align-items: flex-start; }
    .hm-trust li { flex-direction: column; align-items: flex-start; padding: 0; }
    .hm-trust li span:last-child { font-size: 10px; }
    .hm-art { max-width: 400px; }
    .hm-art-rail { display: none; }
    .hm-art-circle { width: 34px; height: 34px; flex-basis: 34px; }
    .hm-art-pill { font-size: 10px; }
    .hm-sec { padding: 22px 0; }
    .hm-sec-head { gap: 12px; align-items: flex-start; flex-wrap: wrap; }
    .hm-sec-head h2 { font-size: 24px; }
    .hm-sec-all { font-size: 11px; }
    .hm-nav { display: none; }
    .hm-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .hm-cat { min-height: 128px; padding: 18px 8px; }
    .hm-tabs { flex-wrap: nowrap; overflow: auto; padding-bottom: 4px; gap: 6px; }
    .hm-tab { flex-shrink: 0; font-size: 11px; padding: 8px 12px; }
    .hm-master { flex-basis: 170px; }
    .hm-steps { grid-template-columns: 1fr; gap: 28px; --hm-num-gap: 24px; }
    .hm-step-arrow { display: none; }
    .hm-step h3 { font-size: 17px; }
    .hm-step p { font-size: 14px; }
    .hm-cta { padding: 26px 22px 0; }
    .hm-cta-copy { width: 100%; }
    .hm-cta h2 { font-size: 28px; }
    .hm-cta p { font-size: 13px; }
    .hm-cta-btns { flex-wrap: wrap; gap: 10px; }
    .hm-cta-btn { padding: 13px 18px; font-size: 12px; }
    .hm-cta-side { position: relative; width: calc(100% + 44px); height: 210px; margin: 20px -22px 0; }
    .hm-cta-photo-box { mask-image: linear-gradient(to bottom, transparent, #000 25%); }
    .hm-stat { gap: 10px; }
    .hm-stat-ic { width: 42px; height: 42px; flex-basis: 42px; }
    .hm-stat > div { min-width: 0; }
    .hm-stat > div > strong { font-size: 18px; }
    .hm-stat > div > span { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .hm *, .hm *::before, .hm *::after { scroll-behavior: auto; transition: none; }
}
