/*
  Главная gzt.med (public/main.html), редизайн 2026-11.
  База — токены портала (style.css :root): --default, --red, --blue, Arimo для крупных заголовков,
  Inter Display для текста. Из Академии ГЗТ.РФ: сиреневые и тёмные панели, радиус 28px,
  «пиксели» из квадратов, 3D-предметы, пара крупных карточек-действий внизу первого экрана.
*/
.home-page {
    --hm-ink: var(--default);
    --hm-ink-72: rgba(2, 13, 32, 0.72);
    --hm-ink-56: rgba(2, 13, 32, 0.56);
    --hm-red-grad: linear-gradient(231deg, #ED3237 41.75%, #FF777B 129.55%);
    --hm-coral: #FF777B;
    --hm-periwinkle: #99AEFF;
    --hm-lavender: #BFCAFC;
    --hm-sky: #D3E4FF;
    --hm-mist: #EBF1FF;
    --hm-cloud: #F2F5FA;
    --hm-r-panel: 28px;
    --hm-r-card: 22px;
    --hm-gap: 20px;
}

/* ── Общие элементы ─────────────────────────────────────────── */
.hm-section {
    padding-top: 120px;
}

.hm-head {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: end;
    gap: 24px 48px;
    margin-bottom: 40px;
}

.hm-head--row {
    grid-template-columns: 1fr auto;
}

.hm-head__text {
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: -0.2px;
    color: var(--hm-ink-56);
    max-width: 460px;
    justify-self: end;
}

.hm-title {
    font-family: Arimo, sans-serif;
    font-size: 59px;
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -1.77px;
    color: var(--hm-ink);
    margin-top: 18px;
}

.hm-title span {
    color: var(--red);
}

.hm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border-radius: 30px;
    background: var(--hm-cloud);
    font-size: 14px;
    line-height: 1;
    letter-spacing: -0.2px;
    color: var(--hm-ink);
}

.hm-eyebrow i {
    width: 7px;
    height: 7px;
    background: var(--red);
    flex: 0 0 auto;
}

.hm-eyebrow--dark {
    background: rgba(255, 255, 255, 0.1);
    color: #FFF;
}

.hm-eyebrow--light {
    background: var(--default);
    color: #FFF;
}

.hm-eyebrow--glass {
    background: rgba(255, 255, 255, 0.18);
    color: #FFF;
    backdrop-filter: blur(8px);
}

.hm-eyebrow--glass i,
.hm-eyebrow--dark i {
    background: #FFF;
}

.hm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 34px;
    border: none;
    border-radius: 32px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.3px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.hm-btn:active {
    transform: scale(0.98);
}

.hm-btn--red {
    background: var(--red);
    color: #FFF;
}

.hm-btn--red:hover {
    background: #D4282D;
}

.hm-btn--white {
    background: #FFF;
    color: var(--hm-ink);
}

.hm-btn--white:hover {
    background: var(--hm-mist);
}

.hm-btn--dark {
    background: var(--default);
    color: #FFF;
}

.hm-btn--dark:hover {
    background: #1B2840;
}

.hm-link-all {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    margin-top: 24px;
    border-radius: 18px;
    background: var(--hm-cloud);
    color: var(--hm-ink);
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.25s ease;
}

.hm-link-all:hover {
    background: var(--hm-mist);
}

/* Квадраты-«пиксели» — приём из Академии */
.hm-pixels {
    position: absolute;
    display: grid;
    grid-template-columns: repeat(3, 18px);
    grid-template-rows: repeat(2, 18px);
    pointer-events: none;
}

.hm-pixels i {
    background: #FFF;
}

.hm-pixels i:nth-child(1) { grid-area: 1 / 2; }
.hm-pixels i:nth-child(2) { grid-area: 1 / 3; opacity: 0.55; }
.hm-pixels i:nth-child(3) { grid-area: 2 / 1; opacity: 0.55; }
.hm-pixels i:nth-child(4) { grid-area: 2 / 3; }

/* Телефон с настоящим экраном кабинета */
.hm-phone {
    position: absolute;
    width: 270px;
    aspect-ratio: 600 / 1303;
    padding: 9px;
    border-radius: 46px;
    background: var(--default);
    box-shadow: 0 40px 80px -24px rgba(2, 13, 32, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.hm-phone img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 38px;
}

/* ── 1. Первый экран ───────────────────────────────────────── */
.hm-hero {
    padding: 112px 0 20px;
    overflow: hidden;
}

.hm-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 20px;
    min-height: 600px;
}

.hm-hero__text {
    display: flex;
    flex-direction: column;
    padding-top: 28px;
}

.hm-hero__title {
    font-family: Arimo, sans-serif;
    font-size: 80px;
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -3.2px;
    color: var(--hm-ink);
    max-width: 720px;
}

.hm-hero__title span {
    display: block;
    color: var(--red);
}

.hm-hero__lead {
    margin-top: 28px;
    max-width: 560px;
    font-size: 20px;
    line-height: 1.35;
    letter-spacing: -0.3px;
    color: var(--hm-ink-72);
}

.hm-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 36px 0 40px;
}

.hm-hero .podcasts {
    margin-top: auto;
}

.hm-hero__visual {
    position: relative;
    min-height: 600px;
}

.hm-phone--front {
    left: 14%;
    top: 4px;
    transform: rotate(-5deg);
    z-index: 2;
}

.hm-phone--back {
    right: 4%;
    top: 56px;
    width: 250px;
    transform: rotate(7deg);
    opacity: 0.96;
}

.hm-hero__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--hm-gap);
    margin-top: 28px;
}

.hm-service {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 24px;
    min-height: 300px;
    padding: 32px;
    border-radius: var(--hm-r-panel);
    color: #FFF;
    overflow: hidden;
}

.hm-service--dark {
    background: var(--default);
}

.hm-service--red {
    background: var(--hm-red-grad);
}

.hm-service__title {
    font-family: Arimo, sans-serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -1.2px;
}

.hm-service__text {
    margin-top: 12px;
    max-width: 440px;
    font-size: 17px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.72);
}

.hm-service--red .hm-service__text {
    color: rgba(255, 255, 255, 0.9);
}

.hm-service__rows {
    align-self: end;
}

.hm-service__row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: baseline;
    gap: 20px;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hm-service__name {
    font-size: 19px;
}

.hm-service__time {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.56);
}

.hm-service__row b {
    min-width: 96px;
    font-family: Arimo, sans-serif;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: -0.9px;
    text-align: right;
}

.hm-service__price {
    align-self: end;
    font-size: 19px;
}

.hm-service__price b {
    margin-left: 8px;
    font-family: Arimo, sans-serif;
    font-size: 44px;
    font-weight: 400;
    letter-spacing: -1.3px;
}

.hm-service__btn {
    justify-self: start;
}

.hm-service .hm-pixels {
    top: 32px;
    right: 32px;
}

/* ── 2. Как это работает ───────────────────────────────────── */
.hm-flow {
    margin-top: 80px;
}

.hm-flow__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 1fr auto;
    gap: 32px;
    padding: 56px;
}

.hm-flow__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

.hm-flow__title {
    max-width: 820px;
    font-family: Arimo, sans-serif;
    font-size: 64px;
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -1.92px;
    color: #FFF;
}

.hm-flow__btn {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
}

.hm-steps {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hm-steps li {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    min-height: 200px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
    color: #FFF;
}

.hm-steps__num {
    font-family: Arimo, sans-serif;
    font-size: 40px;
    line-height: 1;
    letter-spacing: -1px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: auto;
}

.hm-steps b {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.4px;
}

.hm-steps li > span:last-child {
    font-size: 16px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.86);
}

/* ── 3. Чекапы ─────────────────────────────────────────────── */
.hm-clinic {
    position: relative;
    min-height: 400px;
    border-radius: var(--hm-r-panel);
    overflow: hidden;
    background: linear-gradient(108deg, #5C83C3 2.9%, #B2CFFE 60.3%);
}

.hm-clinic__bg {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: auto;
}

.hm-clinic__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 520px;
    min-height: 400px;
    padding: 40px;
    color: #FFF;
}

.hm-clinic__title {
    font-family: Arimo, sans-serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -1.4px;
}

.hm-clinic__list {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 18px;
}

.hm-clinic__list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hm-clinic__list li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #FFF;
    flex: 0 0 auto;
}

.hm-clinic__foot {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: auto;
}

.hm-clinic__city {
    font-size: 18px;
    font-weight: 500;
}

.hm-checkups__list {
    display: flex;
    gap: var(--hm-gap);
    margin-top: var(--hm-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 8px;
}

.hm-checkups__list::-webkit-scrollbar {
    display: none;
}

.hm-ck {
    flex: 0 0 calc((100% - 3 * var(--hm-gap)) / 3.4);
    min-width: 290px;
    display: flex;
    flex-direction: column;
    border-radius: var(--hm-r-card);
    background: #FFF;
    border: 1px solid rgba(2, 13, 32, 0.08);
    overflow: hidden;
    color: var(--hm-ink);
    text-decoration: none;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hm-ck:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -20px rgba(2, 13, 32, 0.25);
}

.hm-ck__cover {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--hm-sky);
}

.hm-ck__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hm-ck__tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 14px;
    border-radius: 20px;
    background: var(--red);
    color: #FFF;
    font-size: 14px;
    font-weight: 500;
}

.hm-ck__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    padding: 22px 22px 22px;
}

.hm-ck__title {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.hm-ck__for {
    font-size: 15px;
    line-height: 1.35;
    color: var(--hm-ink-56);
}

.hm-ck__foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
}

.hm-ck__price small {
    display: block;
    font-size: 13px;
    color: var(--hm-ink-56);
    margin-bottom: 4px;
}

.hm-ck__price b {
    font-family: Arimo, sans-serif;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: -0.9px;
}

.hm-ck__chip {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 16px;
    background: #FFF2F2;
    color: var(--red);
    font-size: 13px;
    font-weight: 500;
}

.hm-ck__go {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--default);
    flex: 0 0 auto;
}

.hm-ck__go::before {
    content: '';
    width: 10px;
    height: 10px;
    border-top: 2px solid #FFF;
    border-right: 2px solid #FFF;
    transform: translateX(-2px) rotate(45deg);
}

/* ── 4. Кабинет (бенто) ────────────────────────────────────── */
.hm-bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 300px;
    gap: var(--hm-gap);
}

.hm-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    border-radius: var(--hm-r-card);
    overflow: hidden;
    color: var(--hm-ink);
}

.hm-tile--wide {
    grid-column: span 2;
    grid-row: span 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 24px;
    padding: 36px 0 0 36px;
}

.hm-tile__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hm-tile__title {
    position: relative;
    z-index: 1;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.6px;
    max-width: 260px;
}

.hm-tile--wide .hm-tile__title {
    max-width: none;
    font-family: Arimo, sans-serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -1.4px;
}

.hm-tile__text {
    position: relative;
    z-index: 1;
    font-size: 16px;
    line-height: 1.35;
    max-width: 260px;
    opacity: 0.72;
}

.hm-tile--wide .hm-tile__text {
    max-width: 360px;
    font-size: 18px;
}

.hm-tile__link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    align-self: flex-start;
    font-size: 17px;
    font-weight: 500;
    color: inherit;
    text-decoration: none;
}

.hm-tile__link::after {
    content: '→';
    transition: transform 0.25s ease;
}

.hm-tile__link:hover::after {
    transform: translateX(4px);
}

.hm-tile--wide .hm-tile__link {
    margin-bottom: 36px;
}

.hm-tile__screen {
    position: relative;
    align-self: end;
    height: 100%;
    overflow: hidden;
}

.hm-tile__screen img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 330px;
    border-radius: 34px 34px 0 0;
    border: 8px solid #1B2840;
    border-bottom: none;
}

.hm-tile__obj {
    position: absolute;
    pointer-events: none;
}

.hm-tile__obj--clipboard {
    right: -18px;
    bottom: -90px;
    width: 150px;
    transform: rotate(-12deg);
}

.hm-tile__obj--building {
    right: -30px;
    bottom: -40px;
    width: 170px;
}

.hm-tile__obj--board {
    right: -24px;
    bottom: -36px;
    width: 190px;
}

.hm-tile__tags {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: auto 0 0;
    padding: 0;
    list-style: none;
}

.hm-tile__tags li {
    padding: 8px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 14px;
}

.hm-tile--dark {
    background: var(--default);
    color: #FFF;
}

.hm-tile--periwinkle {
    background: var(--hm-lavender);
}

.hm-tile--red {
    background: var(--hm-red-grad);
    color: #FFF;
}

.hm-tile--cloud {
    background: var(--hm-cloud);
}

.hm-tile--blue {
    background: var(--blue);
    color: #FFF;
}

.hm-tile--red .hm-tile__text,
.hm-tile--blue .hm-tile__text,
.hm-tile--dark .hm-tile__text {
    opacity: 0.86;
}

.hm-tile__link--dark {
    color: var(--red);
}

.hm-tile__links {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: auto;
}

.hm-tile__links .hm-tile__link {
    margin-top: 0;
}

.hm-tile__link--muted {
    color: var(--hm-ink-56);
}

.hm-pixels--tile {
    top: 28px;
    right: 28px;
}

/* ── 5. Доктор Греков ──────────────────────────────────────── */
.hm-about {
    padding-top: 120px;
}

.hm-about__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hm-about [data-author-books-link] {
    display: none;
}

/* В style.css колонки 33% + 42% + 25% и два зазора по 20px шире ряда: третья цифра уезжала за край */
.hm-about .doctor-stats:not([data-visible="1"]):not([data-visible="2"]) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hm-statement {
    padding: 120px 0 0;
}

.hm-statement__text {
    max-width: 1120px;
    margin: 0 auto;
    font-family: Arimo, sans-serif;
    font-size: 59px;
    line-height: 0.98;
    letter-spacing: -1.77px;
    text-align: center;
    color: var(--hm-ink);
}

.hm-statement__text span {
    color: var(--red);
}

/* ── 6. Книги ──────────────────────────────────────────────── */
.hm-books {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 48px;
    padding: 64px;
    border-radius: var(--hm-r-panel);
    background: var(--default);
    color: #FFF;
    overflow: hidden;
}

.hm-books__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.hm-books__title {
    font-family: Arimo, sans-serif;
    font-size: 64px;
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -1.92px;
}

.hm-books__lead {
    max-width: 420px;
    font-size: 18px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
}

.hm-books__text .hm-btn {
    margin-top: auto;
}

.hm-books__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.hm-book {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #FFF;
    text-decoration: none;
}

.hm-book__cover {
    display: grid;
    place-items: center;
    padding: 28px 0 36px;
    border-radius: 22px;
    background: radial-gradient(120% 90% at 50% 0%, #1E2C47 0%, #0B1629 100%);
    perspective: 1200px;
    margin-bottom: 8px;
}

.hm-book__cover img {
    width: 62%;
    aspect-ratio: 0.7;
    object-fit: cover;
    border-radius: 3px 8px 8px 3px;
    transform: rotateY(-20deg) rotateX(4deg);
    box-shadow: -2px 0 0 rgba(255, 255, 255, 0.25) inset, 24px 32px 48px -10px rgba(0, 0, 0, 0.7);
    transition: transform 0.4s ease;
}

.hm-book:hover .hm-book__cover img {
    transform: rotateY(-8deg) rotateX(2deg) translateY(-4px);
}

.hm-book__title {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.4px;
}

.hm-book__authors {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.56);
}

.hm-book__price {
    font-family: Arimo, sans-serif;
    font-size: 30px;
    letter-spacing: -0.9px;
    margin-top: 4px;
}

.hm-pixels--books {
    top: 40px;
    right: 40px;
}

.hm-pixels--books i {
    background: var(--red);
}

/* ── 7. Специалисты ────────────────────────────────────────── */
.hm-arrows {
    display: flex;
    gap: 8px;
}

.hm-arrow {
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: var(--hm-cloud);
    cursor: pointer;
    position: relative;
    transition: background-color 0.25s ease;
}

.hm-arrow:hover {
    background: var(--hm-mist);
}

.hm-arrow::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 11px;
    height: 11px;
    border-left: 2px solid var(--default);
    border-bottom: 2px solid var(--default);
    transform: translate(-30%, -50%) rotate(45deg);
}

.hm-arrow--next::before {
    transform: translate(-70%, -50%) rotate(-135deg);
}

.hm-doctors__row {
    display: flex;
    gap: var(--hm-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.hm-doctors__row::-webkit-scrollbar {
    display: none;
}

.hm-doc {
    flex: 0 0 calc((100% - 4 * var(--hm-gap)) / 4.4);
    min-width: 240px;
    color: var(--hm-ink);
    text-decoration: none;
    scroll-snap-align: start;
}

.hm-doc__photo {
    aspect-ratio: 4 / 5;
    border-radius: var(--hm-r-card);
    background: var(--hm-cloud);
    overflow: hidden;
}

.hm-doc:first-child .hm-doc__photo {
    background: var(--red);
}

.hm-doc__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.hm-doc:hover .hm-doc__photo img {
    transform: scale(1.03);
}

.hm-doc__name {
    margin-top: 16px;
    font-size: 21px;
    font-weight: 500;
    letter-spacing: -0.4px;
}

.hm-doc__role {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.35;
    color: var(--hm-ink-56);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── 8. Знания: существующие блоки получают общий ритм ───── */
.home-page .home-shorts {
    padding-top: 120px;
}

.home-page .publications {
    margin-top: 40px;
}

/* ── 9. Врачам ─────────────────────────────────────────────── */
.hm-pro {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: var(--hm-gap);
}

.hm-pro__main {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    min-height: 520px;
    padding: 56px;
    border-radius: var(--hm-r-panel);
    background: linear-gradient(135deg, #5C83C3 0%, #8FA6EC 100%);
    color: #FFF;
    overflow: hidden;
}

.hm-pro__title {
    max-width: 560px;
    font-family: Arimo, sans-serif;
    font-size: 59px;
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -1.77px;
}

.hm-pro__lead {
    max-width: 480px;
    font-size: 18px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.86);
}

.hm-pro__list {
    display: grid;
    gap: 12px;
    margin: 0 0 auto;
    padding: 0;
    list-style: none;
    font-size: 19px;
}

.hm-pro__list li {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hm-pro__list li::before {
    content: '';
    width: 9px;
    height: 9px;
    background: var(--default);
}

.hm-pro__obj {
    position: absolute;
    right: 24px;
    bottom: 0;
    width: 300px;
    pointer-events: none;
}

.hm-pro__academy {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 40px;
    border-radius: var(--hm-r-panel);
    background: var(--hm-cloud);
    color: var(--hm-ink);
    text-decoration: none;
    overflow: hidden;
    transition: background-color 0.25s ease;
}

.hm-pro__academy:hover {
    background: var(--hm-mist);
}

.hm-pro__academy-title {
    font-family: Arimo, sans-serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -1.2px;
}

.hm-pro__academy-text {
    max-width: 320px;
    font-size: 16px;
    line-height: 1.4;
    color: var(--hm-ink-56);
}

.hm-pro__academy-link {
    margin-top: auto;
    font-size: 18px;
    font-weight: 500;
    color: var(--blue);
}

.hm-pro__academy-link::after {
    content: ' →';
}

.hm-pro__academy-obj {
    position: absolute;
    right: -30px;
    bottom: 40px;
    width: 220px;
    transform: rotate(-8deg);
    pointer-events: none;
}

/* ── 10. Приложение ────────────────────────────────────────── */
.hm-app {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    min-height: 520px;
    padding: 64px;
    border-radius: var(--hm-r-panel);
    background: linear-gradient(120deg, #99AEFF 0%, #BFCAFC 60%, #D3E4FF 100%);
    overflow: hidden;
}

.hm-app__text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.hm-app__title {
    font-family: Arimo, sans-serif;
    font-size: 64px;
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -1.92px;
    color: var(--hm-ink);
}

.hm-app__list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 19px;
    color: var(--hm-ink);
}

.hm-app__list li {
    display: flex;
    gap: 14px;
}

.hm-app__list li::before {
    content: '';
    width: 9px;
    height: 9px;
    margin-top: 7px;
    background: var(--red);
    flex: 0 0 auto;
}

.hm-app__stores {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

.hm-app__stores .footer-store {
    width: 190px;
    max-width: none;
}

.hm-app__phones {
    position: relative;
}

.hm-phone--app1 {
    left: 6%;
    top: 30px;
    width: 250px;
    transform: rotate(-6deg);
}

.hm-phone--app2 {
    right: 4%;
    top: -10px;
    width: 260px;
    transform: rotate(5deg);
}

/* Финальный баннер и FAQ — ритм отступов */
.home-page .faq,
.home-page .test-banner {
    padding-top: 120px;
}

/* ── Адаптив ───────────────────────────────────────────────── */
@media (max-width: 1439px) {
    .hm-hero__title {
        font-size: 68px;
        letter-spacing: -2.6px;
    }

    .hm-phone {
        width: 240px;
    }

    .hm-phone--back {
        width: 222px;
    }
}

@media (max-width: 1199px) {
    .hm-title,
    .hm-statement__text,
    .hm-pro__title {
        font-size: 48px;
        letter-spacing: -1.4px;
    }

    .hm-flow__title,
    .hm-books__title,
    .hm-app__title {
        font-size: 52px;
    }

    /* Карта: шаги поверх карты уже не помещаются — ставим их под картой */
    .hm-flow__card {
        display: flex;
        flex-direction: column;
    }

    .hm-flow__content {
        position: relative;
        inset: auto;
        padding: 0 40px 40px;
        margin-top: -24%;
    }

    .hm-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hm-steps li {
        min-height: 0;
        padding: 20px;
    }

    .hm-steps__num {
        margin-bottom: 12px;
    }

    /* Клиника: фото под текстом, иначе текст наезжает на врача */
    .hm-clinic {
        display: flex;
        flex-direction: column-reverse;
    }

    .hm-clinic,
    .hm-clinic__content {
        min-height: 0;
    }

    .hm-clinic__bg {
        position: relative;
        width: 100%;
        height: 320px;
        object-fit: cover;
        object-position: center 30%;
    }

    .hm-clinic__content {
        max-width: none;
        padding: 36px 40px 12px;
    }

    .hm-about .doctor-stat-item__number * {
        font-size: 32px;
        white-space: nowrap;
    }

    .hm-books {
        padding: 48px;
    }

    .hm-bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hm-pro {
        grid-template-columns: 1fr;
    }

    .hm-pro__academy {
        min-height: 300px;
    }
}

@media (max-width: 991px) {
    .hm-section,
    .hm-about,
    .hm-statement,
    .home-page .home-shorts,
    .home-page .faq,
    .home-page .test-banner {
        padding-top: 72px;
    }

    .hm-flow {
        margin-top: 72px;
    }

    .hm-head,
    .hm-head--row {
        grid-template-columns: 1fr;
        margin-bottom: 28px;
    }

    .hm-head__text {
        justify-self: start;
        font-size: 16px;
    }

    .hm-head--row .hm-arrows {
        display: none;
    }

    .hm-title,
    .hm-statement__text,
    .hm-pro__title,
    .hm-flow__title,
    .hm-books__title,
    .hm-app__title {
        font-size: 38px;
        letter-spacing: -1.1px;
    }

    .hm-hero {
        padding-top: 96px;
    }

    .hm-hero__grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hm-hero__text {
        padding-top: 0;
    }

    .hm-hero__title {
        font-size: 46px;
        letter-spacing: -1.6px;
    }

    .hm-hero__lead {
        margin-top: 18px;
        font-size: 17px;
    }

    .hm-hero__actions {
        margin: 24px 0 28px;
    }

    .hm-hero__actions .hm-btn {
        flex: 1 1 180px;
    }

    .hm-hero__visual {
        width: 100%;
        max-width: 440px;
        min-height: 430px;
        margin: 12px auto 0;
    }

    .hm-phone {
        width: 190px;
        border-radius: 34px;
        padding: 7px;
    }

    .hm-phone img {
        border-radius: 28px;
    }

    .hm-phone--front {
        left: 0;
        width: 178px;
    }

    .hm-phone--back {
        width: 172px;
        right: 0;
        top: 36px;
    }

    .hm-hero__cards {
        grid-template-columns: 1fr;
    }

    .hm-service {
        min-height: 0;
        padding: 24px;
        gap: 20px;
    }

    .hm-service__title {
        font-size: 32px;
    }

    .hm-service__row {
        grid-template-columns: 1fr auto;
        gap: 4px 16px;
    }

    .hm-service__time {
        grid-row: 2;
    }

    .hm-service__row b {
        grid-row: 1 / 3;
        grid-column: 2;
        align-self: center;
        font-size: 26px;
    }

    .hm-service__btn {
        justify-self: stretch;
    }

    .hm-service .hm-pixels {
        top: 24px;
        right: 24px;
        grid-template-columns: repeat(3, 12px);
        grid-template-rows: repeat(2, 12px);
    }

    .hm-flow__content {
        grid-template-columns: 1fr;
        padding: 0 20px 24px;
        gap: 20px;
        margin-top: -36%;
    }

    .hm-flow__btn {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
    }

    .hm-steps {
        grid-row: auto;
        gap: 10px;
    }

    .hm-clinic__bg {
        height: 240px;
        object-position: 70% center;
    }

    .hm-clinic__content {
        padding: 24px;
    }

    .hm-clinic__title {
        font-size: 34px;
    }

    .hm-ck {
        flex-basis: 46%;
        min-width: 0;
    }

    .hm-bento {
        grid-auto-rows: auto;
    }

    .hm-tile {
        min-height: 240px;
        padding: 24px;
    }

    .hm-tile--wide {
        grid-column: 1 / -1;
        grid-row: auto;
        padding: 28px 0 0 28px;
    }

    .hm-tile--wide .hm-tile__title {
        font-size: 34px;
    }

    .hm-tile__screen {
        height: 300px;
    }

    .hm-books {
        grid-template-columns: 1fr;
        padding: 28px 20px;
        gap: 32px;
    }

    .hm-books__list {
        gap: 14px;
    }

    .hm-book__title {
        font-size: 16px;
    }

    .hm-book__price {
        font-size: 24px;
    }

    .hm-doc {
        flex-basis: 34%;
        min-width: 0;
    }

    .hm-pro__main {
        min-height: 0;
        padding: 28px 24px 200px;
    }

    .hm-pro__obj {
        width: 200px;
        right: 12px;
    }

    .hm-pro__academy {
        min-height: 0;
        padding: 28px 24px 120px;
    }

    .hm-pro__academy-title {
        font-size: 32px;
    }

    .hm-pro__academy-obj {
        width: 150px;
        bottom: 16px;
        right: -10px;
    }

    .hm-app {
        grid-template-columns: 1fr;
        padding: 28px 20px 0;
        gap: 24px;
    }

    .hm-app__list {
        font-size: 16px;
    }

    .hm-app__stores .footer-store {
        width: auto;
        flex: 1 1 150px;
    }

    .hm-app__phones {
        width: 100%;
        max-width: 440px;
        height: 360px;
        margin: 0 auto;
    }

    .hm-phone--app1 {
        width: 180px;
        left: 4%;
        top: 40px;
    }

    .hm-phone--app2 {
        width: 185px;
        right: 4%;
        top: 0;
    }
}

@media (max-width: 767px) {
    .hm-steps {
        grid-template-columns: 1fr;
    }

    .hm-steps li {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 4px 16px;
        padding: 18px;
    }

    .hm-steps__num {
        grid-row: 1 / 3;
        font-size: 30px;
        margin: 0;
    }

    .hm-ck {
        flex-basis: 82%;
    }

    .hm-doc {
        flex-basis: 64%;
    }

    .hm-bento {
        grid-template-columns: 1fr;
    }

    .hm-tile {
        min-height: 220px;
    }

    .hm-tile--wide {
        grid-template-columns: 1fr;
        padding: 28px 24px 0;
    }

    .hm-tile--wide .hm-tile__link {
        margin-bottom: 0;
    }

    .hm-tile__screen img {
        left: 50%;
        width: 260px;
        transform: translateX(-50%);
    }
}

@media (max-width: 575px) {
    .hm-statement__text {
        font-size: 32px;
        letter-spacing: -0.9px;
    }
}
