/* Тема New: главная (design_handoff README «Главная»): заголовок, факты, «Топ услуг», подсказки. */
.home-new { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 28px; align-items: stretch; margin-top: 18px; margin-bottom: 40px; }
.home-new__main { display: flex; flex-direction: column; min-width: 0; }
.home-new__title { margin: 0; font-size: 36px; line-height: 1.1; font-weight: 800; letter-spacing: -0.035em; color: var(--ink-h); text-wrap: pretty; }
.home-new__accent { color: var(--accent); }
.home-new__title-line { font-weight: 600; color: var(--ink2); }
.home-new__facts { margin-top: 22px; overflow: hidden; font-size: 13.5px; font-weight: 400; color: var(--muted); }
.home-new__facts-track { display: flex; width: max-content; }
.home-new__facts-run { display: flex; align-items: center; gap: 18px; padding-right: 18px; white-space: nowrap; }
.home-new__facts-run + .home-new__facts-run { display: none; }
.home-new__facts b { font-weight: 700; color: var(--ink); }
.home-new__facts i { flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--dash); }
.home-new__facts-run i:last-child { display: none; }
.home-new__guest { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.home-new__guest a { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 14px; font-size: 15px; font-weight: 600; white-space: nowrap; transition: color .18s, box-shadow .18s; }
.home-new__signup { background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-tile); color: var(--ink); }
.home-new__login { box-shadow: inset 0 0 0 1px var(--line); color: var(--ink2); }
.home-new__guest a:hover { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.home-new__tabs { display: flex; align-items: center; gap: 4px; margin-top: 26px; }
.home-new__tab { height: 32px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--muted); }
.home-new__tab.is-active { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line2), 0 6px 16px -12px rgba(40, 30, 20, 0.4); }
.home-new__note { margin-left: auto; padding-right: 4px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-new__top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(9, auto); grid-auto-flow: column; column-gap: 22px; margin: 10px 0 0; padding: 10px 14px; list-style: none; border-radius: 22px; background: var(--card); box-shadow: var(--shadow-card); }
.home-new__top a { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 6px; border-radius: 10px; color: var(--ink2); font-size: 14.5px; font-weight: 500; transition: color .18s; }
.home-new__top a:hover { color: var(--accent); }
.home-new__place { flex: none; min-width: 24px; height: 24px; padding: 0 6px; box-sizing: border-box; border-radius: 8px; background: var(--chip); color: var(--ink2); font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.home-new__top img { flex: none; width: 20px; height: 20px; object-fit: contain; }
.home-new__name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-new__price { flex: none; font-size: 13px; color: var(--muted); white-space: nowrap; }
.home-new__arrow { flex: none; width: 0; overflow: hidden; color: var(--accent); font-weight: 700; opacity: 0; transform: translateX(-4px); transition: opacity .18s, transform .18s, width .18s; }
.home-new__top a:hover .home-new__arrow { width: 10px; opacity: 1; transform: none; }
.home-new__tips { display: flex; flex-direction: column; gap: 16px; }
.home-new__tip { display: flex; align-items: center; gap: 13px; padding: 12px 15px; border-radius: 20px; background: var(--card); border: 1px solid var(--line2); box-shadow: var(--shadow-tile); font-size: 14.5px; line-height: 1.45; color: var(--ink2); transition: box-shadow .3s; }
.home-new__tip:hover { box-shadow: var(--shadow-tile-hover); }
.home-new__tip-icon { flex: none; align-self: stretch; display: flex; align-items: center; padding-right: 13px; border-right: 0.5px solid rgba(90, 72, 56, 0.22); font-size: 19px; }
.home-new__tip-head { font-weight: 500; }
.home-new__tip-head a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.home-new__tip-head a:hover { color: var(--accent); }
.home-new__tip-sub { margin-top: 2px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 1023px) {
 .home-new { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 760px) {
 .home-new { margin-top: 6px; }
 .home-new__title { font-size: 34px; }
 .home-new__facts { margin: 16px -10px 0; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); font-size: 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
 .home-new__facts-track { animation: home-new-mq 14s linear infinite; }
 .home-new__facts-run { padding: 8px 18px 8px 0; }
 .home-new__facts-run + .home-new__facts-run, .home-new__facts-run i:last-child { display: flex; }
 .home-new__facts i { background: var(--accent); }
 .home-new__top { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; padding: 8px 10px; }
 .home-new__note { display: none; }
}
@keyframes home-new-mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .home-new__facts-track { animation: none; } }

/* «Услуги и цены» (README «Главная → Услуги и цены»): прежняя разметка и скрипт, вид нового дизайна. */
.service-and-cards .service .service-title { margin-bottom: 14px; }
.service-and-cards .service .service-title span { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; color: var(--ink-h); }
.service-and-cards .service .service-in .service-tab { padding: 0; border: 0; border-radius: 0; background: transparent; }
.service-and-cards .service .service-in .service-tab .tab-content { display: grid !important; grid-template-columns: 260px minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
.service-and-cards .service .service-in .service-tab .tab-content .tab-content__item { width: auto; max-width: none; margin: 0; }
.service-and-cards .service .service-in .service-tab .tab-content .tab-content__item .tab-content-item__in { border-radius: 22px; background: var(--card); box-shadow: var(--shadow-card); overflow: clip; }
.service-and-cards .service .service-in .service-tab .tab-content .tab-content__item .item-head { padding: 14px 12px 12px; border-bottom: 1px solid var(--line3); }
.service-and-cards .service .service-in .service-tab .tab-content .tab-content__item .item-head .item-title { font-size: 15px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
.service-and-cards .service .service-in .service-tab .tab-content .tab-content__item .item-head .reset-filter__btn { font-size: 13px; color: var(--muted); }
.service-and-cards #main-platform-search { margin: 10px 10px 2px; }
.service-and-cards .tab-content__item .filter-button__group .filter-button__head { justify-content: center; padding: 11px 10px 5px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted2); background: transparent; }
.service-and-cards .service .service-in .service-tab .tab-content .tab-content__item .filter-button__group .filter-item .filter-btn { min-height: 38px; margin: 0 6px; width: calc(100% - 12px); padding: 0 10px; border-radius: 10px; background: transparent; font-size: 14.5px; color: var(--ink2); transition: background .15s, color .15s; }
.service-and-cards .service .service-in .service-tab .tab-content .tab-content__item .filter-button__group .filter-item:nth-child(2n+1) .filter-btn { background: var(--zebra); }
.service-and-cards .service .service-in .service-tab .tab-content .tab-content__item .filter-button__group .filter-item .filter-btn:hover { background: var(--hover); }
.service-and-cards .service .service-in .service-tab .tab-content .tab-content__item .filter-button__group .filter-item .filter-btn.active { background: var(--sel); }
.service-and-cards .service .service-in .service-tab .tab-content .tab-content__item .filter-button__group .filter-item .filter-btn.active span { color: var(--accent); font-weight: 600; }
.service-and-cards .service .service-in .service-tab .tab-content .tab-content__item .filter-button__group .filter-item .filter-btn::before, .service-and-cards .service .service-in .service-tab .tab-content .tab-content__item .filter-button__group .filter-item .filter-btn::after { display: none; }
.service-and-cards .filter-menu__body { padding: 16px; }
.service-and-cards .goto-service-start, .service-and-cards .goto-service-end { margin: 0 0 8px; }
.service-and-cards .goto-service__btn { display: flex !important; align-items: center; justify-content: center; width: 100%; min-height: 46px; padding: 10px 16px; border: 0 !important; border-radius: 14px !important; background: var(--chip) !important; box-shadow: none !important; color: var(--ink) !important; font-size: 14.5px; font-weight: 700; transition: background .18s, color .18s; }
.service-and-cards .goto-service__btn span { color: inherit !important; background: none !important; -webkit-text-fill-color: currentColor; }
.service-and-cards .goto-service__btn:hover { color: var(--accent) !important; }
.service-and-cards .goto-service__btn.open_category_separately { background: var(--accent) !important; color: #fff !important; }
.service-and-cards .goto-service__btn.open_category_separately:hover { background: var(--accent-hover) !important; color: #fff !important; }
.service-and-cards .goto-service-line { margin: 14px -16px; border-top: 1px solid var(--line3); }
.service-and-cards .sweet-service__title { font-size: 13px; font-weight: 600; color: var(--muted); text-align: center; }
.service-and-cards .sweet-service .premium-amount { padding: 6px 10px; border-radius: 10px; font-size: 14px; color: var(--ink2); }
.service-and-cards .sweet-service .premium-amount:nth-child(2n) { background: var(--zebra); }
.service-and-cards .filter-menu__description-block, .service-and-cards #category_description_main { margin-top: 12px; padding: 0; border-radius: 22px; background: var(--card) !important; box-shadow: var(--shadow-card); }
.service-and-cards .filter-menu__description, .service-and-cards #category_description_main_source { padding: 14px 16px !important; border-radius: 22px; background: var(--zebra) !important; font-size: 14px; line-height: 1.5; color: var(--ink2); }
.service-and-cards .required-service { margin-top: 12px; padding: 12px 16px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line2); font-size: 14px; color: var(--ink2); }
.service-and-cards .required-service__link { font-weight: 600; color: var(--accent); }
@media (max-width: 1023px) {
 .service-and-cards .service .service-in .service-tab .tab-content { grid-template-columns: minmax(0, 1fr); }
}

/* «Топ игр»: 3 колонки × 4 ряда (узко — 2), плитка = обложка · название · категория · цена; hover — обводка всей плитки */
[data-home-panel][hidden], [data-home-note][hidden] { display: none !important; }
.home-new__tab { border: 0; cursor: pointer; font-family: inherit; background: transparent; transition: background .15s, color .15s; }
.home-new__main { container-type: inline-size; }
.home-new__games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.home-new__game { position: relative; display: flex; align-items: stretch; min-width: 0; min-height: 60px; overflow: hidden; border-radius: 16px; background: var(--card); box-shadow: 0 10px 24px -20px rgba(40, 30, 20, 0.4); color: var(--ink); }
.home-new__game::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line2); pointer-events: none; transition: box-shadow .18s; }
.home-new__game:hover::after { box-shadow: inset 0 0 0 1px var(--accent); }
.home-new__game img, .home-new__game-img { flex: none; width: 86px; object-fit: cover; object-position: center; background: var(--chip); }
.home-new__game-text { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 8px 10px; }
.home-new__game-name { font-size: 13.5px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-new__game-cat { font-size: 11.5px; line-height: 1.3; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-new__game-price { font-size: 12.5px; line-height: 1.3; font-weight: 700; color: var(--ink); white-space: nowrap; }
@container (max-width: 620px) { .home-new__games { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* фильтр направлений — панель в заголовке колонки платформ (образец: «▤ Все платформы ˄», «Фильтр направлений», галочка у выбранного) */
.service-and-cards .service .service-in .service-tab .tab-content .social-media { position: relative; z-index: 3; }
.service-and-cards .service .service-in .service-tab .tab-content .social-media .tab-content-item__in { overflow: visible; }
.service-and-cards .service .service-in .service-tab .tab-content .tab-content__item .item-head.home-new__dir { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px; }
.home-new__dir-toggle { display: flex; align-items: center; gap: 7px; padding: 5px 10px; border: 0; border-radius: 10px; background: transparent; font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); cursor: pointer; transition: background .15s, color .15s; }
.home-new__dir-toggle:hover { background: var(--hover); }
.home-new__dir-toggle svg { flex: none; width: 16px; height: 16px; color: var(--muted); }
.home-new__dir-toggle .home-new__dir-chev { width: 12px; height: 12px; transform: rotate(180deg); transition: transform .18s; }
.home-new__dir-toggle[aria-expanded="true"] .home-new__dir-chev { transform: none; }
.home-new__dir-panel { position: absolute; top: calc(100% - 6px); left: 10px; z-index: 5; width: max-content; min-width: calc(100% - 20px); max-width: min(360px, calc(100vw - 32px)); padding: 8px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 22px 48px -20px rgba(40, 30, 20, 0.35); }
.home-new__dir-panel[hidden] { display: none; }
.home-new__dir-title { padding: 2px 8px 6px; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }
.home-new__dir-panel #main_napravlenia_buttons { display: flex; flex-direction: column; gap: 1px; }
.home-new__dir-panel #main_napravlenia_buttons .tab-btn { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 30px; padding: 4px 10px; border: 0; border-radius: 10px; background: transparent; font-family: inherit; font-size: 14px; font-weight: 500; text-align: left; white-space: nowrap; color: var(--ink2); cursor: pointer; transition: background .15s, color .15s; }
.home-new__dir-panel #main_napravlenia_buttons .tab-btn:hover { background: var(--hover); }
.home-new__dir-panel #main_napravlenia_buttons .tab-btn.active { background: var(--sel); color: var(--accent); font-weight: 600; }
.home-new__dir-panel #main_napravlenia_buttons .tab-btn.active::after { content: '✓'; margin-left: auto; padding-left: 14px; font-weight: 600; }
.home-new__dir-ico { flex: none; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.home-new__dir-ico svg { width: 16px; height: 16px; }
.home-new__dir-panel .header-direction-icon { flex: none; display: flex; width: 22px; height: 22px; margin: 0; background: none; box-shadow: none; color: var(--accent); }
.home-new__dir-panel .header-direction-icon svg { width: 22px; height: 22px; }
@media (max-width: 576px) {
 .service-and-cards .service .service-in .service-tab .tab-content .tab-content__item .item-head.home-new__dir { display: flex; }
}
