/* Service families use one photograph and a compact, linked list of variants. */
.grouped-services, .home-service-grid.grouped-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px; }
.grouped-services .service-group { display: block; min-width: 0; margin: 0; padding: 0; border: 1px solid #ffffff24; border-radius: 16px; overflow: hidden; background: #151516; }
.service-group-heading { display: grid; grid-template-columns: minmax(0, 1fr) 38%; align-items: center; min-height: 106px; background: #202021; }
.service-group-heading h2 { margin: 0; padding: 16px 20px; color: #f5f4f0; font-size: clamp(24px, 3vw, 36px); line-height: 1.05; }
.service-group-heading img { display: block; width: 100%; height: 106px; object-fit: cover; object-position: center 54%; }
[data-service-group="tint"] img { object-position: center 62%; }
[data-service-group="interior"] img { object-position: center 26%; }
.service-group-list { margin: 0; padding: 0 16px; list-style: none; }
.service-group-list li + li { border-top: 1px solid #ffffff20; }
.grouped-services .service-group-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 12px; align-items: center; gap: 10px; min-height: 48px; padding: 9px 4px; margin: 0; color: #f5f4f0; background: none; border: 0; border-radius: 0; text-decoration: none; text-transform: none; }
.grouped-services .service-group-row::before, .grouped-services .service-group-row::after { content: none; }
.service-group-name { font-size: 19px; line-height: 1.2; }
.grouped-services .service-group-row .service-group-meta { color: #c3c1bd; font: inherit; font-size: 15px; white-space: nowrap; text-transform: none; letter-spacing: normal; }
.grouped-services .service-group-row .service-group-arrow { color: #ddd; font-size: 23px; line-height: 1; }
.grouped-services .service-group-row:hover, .grouped-services .service-group-row:focus-visible { background: #ffffff0d; outline-offset: -2px; }
.grouped-catalog-link { justify-self: start; grid-column: 1 / -1; }
.grouped-services [hidden] { display: none !important; }

/* Existing booking, Telegram and bonus controls live in a smaller account shell. */
@font-face {
 font-family: "BRO I Numerals";
 src: url('/fonts/Manrope-SemiBold.ttf') format('truetype');
 font-display: swap;
 unicode-range: U+0030-0039;
}
body.customer-dashboard.studio-backdrop {
 background: #101011;
 color: #e5e0d8;
 font-family: "BRO I Numerals", Meta, sans-serif;
 font-variant-numeric: lining-nums tabular-nums;
}
body.customer-dashboard.studio-backdrop::before { content: none; }
.customer-dashboard :is(.account-page, input, button, select, .account-car, .bonus-value, .bonus-entry) {
 font-family: "BRO I Numerals", Meta, sans-serif;
}
body.customer-dashboard .account-page { width: min(100% - 40px, 1000px); max-width: 1000px !important; box-sizing: border-box; margin: 0 auto 42px; padding: 24px 0 !important; background: transparent; border-radius: 0; }
body.customer-dashboard .account-page > h1 { margin: 22px 0 20px; font-size: clamp(30px, 4vw, 42px) !important; line-height: 1.1; }
.dashboard-top { display: flex; align-items: center; justify-content: space-between; min-height: 50px; border-bottom: 1px solid #2c2c2c; }
.dashboard-top img { display: block; object-fit: contain; }
.dashboard-return { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 44px; box-sizing: border-box; padding: 8px 14px; border: 1px solid #827971; border-radius: 10px; color: #e5e0d8; text-decoration: none; white-space: nowrap; }
.dashboard-return:hover { background: #49443f; }
.customer-dashboard #customer-auth { max-width: 460px; }
@media (min-width: 900px) {
 .customer-dashboard #customer-auth { position: relative; max-width: 440px; }
 .customer-dashboard #customer-auth::after { content: ''; position: absolute; left: calc(100% + 28px); top: 0; width: min(42vw, 480px); height: 360px; border-radius: 14px; background: #181818 url('/assets/service-groups/studio.webp') center 52% / cover no-repeat; }
}
.customer-dashboard #customer-app { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 20px; align-items: start; }
.customer-dashboard #customer-app[hidden] { display: none !important; }
.dashboard-sidebar, .dashboard-content { display: grid; min-width: 0; gap: 14px; }
.customer-dashboard :is(.account-profile, .dashboard-panel, .bonus-wallet, .customer-telegram, #customer-auth) {
 background: #f5f4f0;
 color: #1d1d1e;
 border: 1px solid #dedcd5;
 border-radius: 14px;
 min-width: 0;
}
.customer-dashboard :is(.account-profile, .dashboard-panel, #customer-auth) { padding: 18px; }
.customer-dashboard .account-profile { display: grid; gap: 12px; }
.customer-dashboard .account-profile h2, .dashboard-panel h2 { font-size: 25px; margin: 0; line-height: 1.15; }
.customer-dashboard #customer-contact { overflow-wrap: anywhere; color: #514f4c; font-size: 16px; }
.dashboard-sidebar nav { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0 8px; }
.dashboard-sidebar nav a { display: inline-flex; align-items: center; min-height: 44px; color: #e1e1e1; text-underline-offset: 4px; }
.dashboard-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dashboard-panel, #account-balance { scroll-margin-top: 20px; }
.customer-dashboard .account-car { border: 0; border-top: 1px solid #d5d2cb; margin: 12px 0 0; padding: 12px 0 !important; background: none; border-radius: 0; gap: 8px !important; }
.customer-dashboard .account-car > div { flex-basis: 100%; }
.customer-dashboard .account-car h3 { font-size: 21px; }
.customer-dashboard .bonus-wallet { margin: 0; padding: 16px; }
.customer-dashboard :is(.bonus-value span, .bonus-entry small, .account-car p, #customer-auth p, .customer-telegram p) { color: #514f4c; }
.customer-dashboard .bonus-entry { border-color: #d5d2cb; }
.customer-dashboard :is(.dashboard-panel, .bonus-wallet, .customer-telegram, #customer-auth) .secondary-action { background: #e5e2db; color: #202021; }
.customer-dashboard :is(.dashboard-panel, #customer-auth) form { background: #ebe9e3; color: #1d1d1e; }
.customer-dashboard :is(.dashboard-panel, #customer-auth) form :is(label,input,select) { color: #1d1d1e; }
.customer-dashboard :is(.dashboard-panel, #customer-auth) form :is(input:not([type=checkbox]), select) { background: #fff; border-color: #c9c6bf; }
.customer-dashboard #customer-logout { justify-self: start; min-height: 44px; margin: 4px 0 0; padding: 8px 20px; background: #b52c32; color: #fff; }
.customer-dashboard #customer-logout:hover { background: #cf343b; }
.story-caption .story-garage-link { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 18px; border-radius: 999px; background: #cc2029; color: white; font-size: 18px; text-decoration: none; }
.story-caption .story-garage-link[hidden] { display: none !important; }
.customer-dashboard .bonus-heading { display: grid; gap: 12px; }
.customer-dashboard .bonus-heading .secondary-action { justify-self: start; white-space: normal; }
.customer-dashboard .customer-telegram { margin: 0; padding: 14px; }
.customer-dashboard .customer-telegram h2 { font-size: 20px; }
.customer-dashboard #customer-car-form { margin: 8px 0 0; padding: 12px !important; }
#account-car-editor > summary { color: #252526; cursor: pointer; padding: 12px 0; }

/* Compact profiles and review previews. */
#team.live-section, #bloggers.live-section { padding-block: clamp(28px, 4vw, 54px); }
#team .section-head, #bloggers .section-head { margin-bottom: 14px; padding-bottom: 14px; }
#team .section-head h2, #bloggers .section-head h2 { font-size: clamp(30px, 4vw, 50px); line-height: 1.05; }
#team .team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 152px)); gap: 12px 20px; margin-top: 0; }
#team .team-grid article { min-height: 0; }
#team .team-grid article::after { content: none; }
#team .team-grid article > div { position: static; }
#team .team-grid img { height: auto; width: 100%; aspect-ratio: 1; border-radius: 12px; object-position: center 36%; }
#team .team-grid h3 { font-size: 20px; margin: 7px 0 2px; }
#team .team-grid p { font-size: 16px; line-height: 1.3; }
#blogger-list { display: flex; gap: 14px; overflow-x: auto; padding: 3px 3px 10px; scroll-snap-type: x proximity; }
#blogger-list .blogger-item { display: block; flex: 0 0 clamp(120px, 15vw, 170px); min-width: 0; min-height: 0; padding: 0; border: 0; scroll-snap-align: start; }
#blogger-list .review-cover { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; text-align: left; color: #fff; text-decoration: none; }
#blogger-list .review-cover::after { content: ''; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, #09090aee); pointer-events: none; }
#blogger-list .review-cover svg { top: 8px; right: 8px; width: 36px; height: 36px; padding: 9px; }
.review-story-copy { position: absolute; inset: auto 10px 10px; z-index: 1; display: grid; gap: 3px; line-height: 1.12; overflow-wrap: anywhere; }
.review-story-copy strong { font-size: 19px; }
.review-story-copy small, #blogger-list .blogger-item p { font-size: 14px; }
#blogger-list .blogger-item p { margin: 8px 0 0; line-height: 1.3; overflow-wrap: anywhere; }
@media (max-width: 660px) {
 body.customer-dashboard.studio-backdrop { background-attachment: scroll; }
 .grouped-services, .home-service-grid.grouped-services { grid-template-columns: 1fr !important; }
 .customer-dashboard #customer-app { grid-template-columns: 1fr; }
 .service-group-heading { min-height: 84px; }
 .service-group-heading img { height: 84px; }
 #team .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
 #team .team-grid h3 { font-size: 17px; overflow-wrap: anywhere; }
 #team .team-grid p { font-size: 14px; }
 #blogger-list { gap: 10px; }
 #blogger-list .blogger-item { flex-basis: clamp(98px, 28vw, 126px); }
 .review-story-copy strong { font-size: 16px; }
}
