/* Home page service areas – review variants a / b / c (inc/home-services.php). Tokens: style.css :root. */

.hsv { background: var(--bg-elev); }
.hsv .section-head { margin-bottom: 28px; }
.hsv-gold { background: linear-gradient(135deg, #EAD3AE 0%, #CA9B5E 100%); }

/* shared bits */
.hsv-ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px; background: var(--green-50); color: var(--green-700); }
.hsv-eyebrow { display: block; font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--tan-500); }
.hsv-price { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--green-700); margin: 0; }
.hsv-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; }
.hsv-chips a { display: inline-flex; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--stone-100); color: var(--fg); font-size: 13.5px; font-weight: 500; text-decoration: none; border-bottom: none; transition: background .15s, color .15s; }
.hsv-chips a:hover { background: var(--green-50); color: var(--green-700); border-bottom: none; }
.hsv-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.hsv-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 12px; background: var(--brand-fill); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 14.5px; text-decoration: none; border-bottom: none; transition: background .15s, transform .15s; }
.hsv-btn:hover { background: var(--brand-hover); color: #fff; transform: translateY(-1px); border-bottom: none; }
.hsv-more { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--brand-hover); text-decoration: none; border-bottom: none; white-space: nowrap; }
.hsv-more:hover { color: var(--green-800); border-bottom: none; }

/* ══ A – three photo cards + compact grid ═════════════════════ */
.hsv-a__main { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 900px) { .hsv-a__main { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.hsv-feature { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.hsv-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hsv-feature__photo { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: none; background: var(--stone-100); }
.hsv-feature__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.hsv-feature:hover .hsv-feature__photo img { transform: scale(1.04); }
.hsv-feature__body { display: flex; flex-direction: column; flex: 1 1 auto; gap: 10px; padding: 20px 22px 22px; }
.hsv-feature h3 { font-family: var(--font-display); font-size: 23px; line-height: 1.2; letter-spacing: -.01em; margin: 0; }
.hsv-feature h3 a { color: var(--fg-strong); text-decoration: none; border-bottom: none; }
.hsv-feature p { font-size: 15px; line-height: 1.55; color: var(--stone-700); margin: 0; }
.hsv-feature__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
@media (max-width: 599px) { .hsv-feature .hsv-price { font-size: 13.5px; } .hsv-feature .hsv-btn { min-height: 44px; padding: 9px 16px; font-size: 14px; } }
.hsv-sub { font-family: var(--font-display); font-size: 17px; color: var(--fg-muted); font-weight: 600; margin: 34px 0 14px; }
.hsv-a__rest { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 900px) { .hsv-a__rest { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.hsv-tile { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--stone-100); color: inherit; text-decoration: none; border-bottom: none; transition: background .15s, transform .15s; }
.hsv-tile:hover { background: var(--green-50); transform: translateY(-2px); border-bottom: none; }
.hsv-tile .hsv-ico { background: #fff; }
.hsv-tile__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.hsv-tile__text strong { font-family: var(--font-display); font-size: 16px; color: var(--fg-strong); line-height: 1.25; }
.hsv-tile__text span { font-size: 13px; color: var(--fg-muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.hsv-tile__text .hsv-tile__price { display: block; overflow: visible; color: var(--green-700); font-weight: 600; }
.hsv-tile__go { color: var(--green-600); font-size: 18px; }
@media (max-width: 599px) {
	.hsv-tile { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
	.hsv-tile__go { display: none; }
	.hsv-feature { flex-direction: row; }
	.hsv-feature__photo { flex: 0 0 34%; aspect-ratio: auto; }
	.hsv-feature__body { padding: 14px 14px 16px; gap: 7px; }
	.hsv-feature h3 { font-size: 19px; }
	.hsv-feature p, .hsv-feature .hsv-chips, .hsv-feature .hsv-eyebrow { display: none; }
	.hsv-feature__foot { border-top: 0; padding-top: 4px; }
}

/* ══ B – choose an area: list + panel (accordion on phones) ══ */
.hsv-b__list { display: none; }
.hsv-b__panel { border: 1px solid var(--border); border-radius: 16px; background: #fff; overflow: hidden; }
.hsv-b__panel + .hsv-b__panel { margin-top: 10px; }
.hsv-b__panel summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-family: var(--font-display); font-weight: 600; font-size: 16.5px; color: var(--fg-strong); cursor: pointer; list-style: none; }
.hsv-b__panel summary::-webkit-details-marker { display: none; }
.hsv-b__panel summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--green-600); border-bottom: 2px solid var(--green-600); transform: rotate(45deg); transition: transform .2s; }
.hsv-b__panel[open] summary::after { transform: rotate(-135deg); }
.hsv-b__panel summary .hsv-ico { width: 38px; height: 38px; border-radius: 12px; }
.hsv-b__inner { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 4px 16px 18px; }
.hsv-b__text { display: flex; flex-direction: column; gap: 12px; }
.hsv-b__text h3 { display: none; }
.hsv-b__text p { font-size: 15.5px; line-height: 1.6; color: var(--stone-700); margin: 0; }
.hsv-b__visual { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--stone-100); }
.hsv-b__visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hsv-b__panel--plain .hsv-b__visual { display: none; }
@media (max-width: 899px) { .hsv-b__visual { order: -1; } }
@media (min-width: 900px) {
	.hsv-b { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: stretch; }
	.hsv-b__list { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 20px; background: var(--stone-100); }
	.hsv-b__tab { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 0; border-radius: 14px; background: transparent; font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--fg-strong); text-align: left; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
	.hsv-b__tab .hsv-ico { width: 38px; height: 38px; border-radius: 12px; background: #fff; transition: background .15s, color .15s; }
	.hsv-b__tab:hover { background: rgba(255,255,255,.7); color: var(--fg-strong); }
	.hsv-b__tab.is-active { background: #fff; color: var(--green-700); box-shadow: var(--shadow-sm); }
	.hsv-b__tab.is-active .hsv-ico { background: var(--brand-fill); color: #fff; }
	.hsv-b__panels { position: relative; min-height: 556px; }
	.hsv-b__panel { display: none; height: 100%; border: 0; border-radius: 20px; background: linear-gradient(160deg, var(--green-700), var(--green-900)); color: #fff; }
	.hsv-b__panel + .hsv-b__panel { margin-top: 0; }
	.hsv-b__panel[open] { display: block; }
	.hsv-b__panel summary { display: none; }
	.hsv-b__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 0; padding: 0; min-height: 556px; } /* 556 px = height of the nine-item list */
	.hsv-b__text { justify-content: center; gap: 16px; padding: 40px 40px 40px 44px; }
	.hsv-b__text h3 { display: block; font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1.1; letter-spacing: -.02em; color: #fff; margin: 0; }
	.hsv-b__text p { color: rgba(255,255,255,.88); font-size: 16.5px; }
	.hsv-b .hsv-chips a { background: rgba(255,255,255,.12); color: #fff; }
	.hsv-b .hsv-chips a:hover { background: rgba(255,255,255,.22); color: #fff; }
	.hsv-b .hsv-price { color: var(--tan-100); font-size: 17px; }
	.hsv-b .hsv-btn { background: linear-gradient(135deg, #EAD3AE 0%, #CA9B5E 100%); color: var(--stone-900); }
	.hsv-b .hsv-btn:hover { filter: brightness(1.05); color: var(--stone-900); }
	.hsv-b .hsv-more { color: #fff; }
	.hsv-b__visual { position: relative; aspect-ratio: auto; border-radius: 0 20px 20px 0; background: transparent; }
	.hsv-b__visual img { position: absolute; inset: 0; }
	.hsv-b__panel--plain .hsv-b__visual { display: flex; align-items: center; justify-content: center; background: radial-gradient(360px 300px at 60% 40%, rgba(202,155,94,.30), transparent 70%); }
	.hsv-b__mark { display: inline-flex; align-items: center; justify-content: center; width: 200px; height: 200px; border-radius: 50%; border: 1px solid rgba(234,211,174,.35); box-shadow: 0 0 0 36px rgba(234,211,174,.06), 0 0 0 84px rgba(234,211,174,.04); color: var(--tan-200); }
}

/* ══ C – tiles of mixed size ═════════════════════════════════ */
.hsv-c { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; grid-auto-flow: dense; }
.hsv-c__tile { position: relative; display: flex; flex-direction: column; min-height: 168px; border-radius: 20px; overflow: hidden; color: var(--fg); text-decoration: none; border-bottom: none; background: var(--stone-100); transition: transform .2s, box-shadow .2s; }
.hsv-c__tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-bottom: none; }
.hsv-c__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; padding: 18px; flex: 1 1 auto; }
.hsv-c__body strong { font-family: var(--font-display); font-size: 18px; line-height: 1.2; color: var(--fg-strong); }
.hsv-c__desc { font-size: 13.5px; line-height: 1.45; color: var(--stone-700); }
.hsv-c__price { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--green-700); }
.hsv-c__go { margin-top: auto; padding-top: 8px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--brand-hover); }
.hsv-c__tile .hsv-ico { background: #fff; margin-bottom: 6px; }
.hsv-c__photo { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.hsv-c__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.hsv-c__tile:hover .hsv-c__photo img { transform: scale(1.04); }
.hsv-c__tile.has-photo { background: #fff; border: 1px solid var(--border); }
.hsv-c__tile.has-photo .hsv-ico { display: none; }
.hsv-c__tile--xl, .hsv-c__tile--wide { grid-column: span 2; }
.hsv-c__tile--tint { background: var(--green-50); }
.hsv-c__tile--tan { background: var(--tan-50); }
.hsv-c__tile--tan .hsv-ico { color: var(--tan-600); }
.hsv-c__tile--plain { background: #fff; border: 1px solid var(--border); }
.hsv-c__tile--plain .hsv-ico { background: var(--green-50); }
.hsv-c__tile--deep { background: linear-gradient(160deg, var(--green-700), var(--green-900)); }
.hsv-c__tile--deep strong, .hsv-c__tile--deep .hsv-c__go { color: #fff; }
.hsv-c__tile--deep .hsv-c__desc { color: rgba(255,255,255,.85); }
.hsv-c__tile--deep .hsv-c__price { color: var(--tan-100); }
.hsv-c__tile--deep .hsv-ico { background: rgba(255,255,255,.12); color: var(--tan-200); }
@media (max-width: 899px) { .hsv-c__tile--k-sportas { grid-column: span 2; } }
@media (max-width: 599px) {
	.hsv-c__tile:not(.hsv-c__tile--xl):not(.hsv-c__tile--wide) .hsv-c__photo { aspect-ratio: 4 / 3; }
	.hsv-c__body { padding: 14px; }
	.hsv-c__body strong { font-size: 16.5px; }
}
@media (min-width: 900px) {
	.hsv-c { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 244px); gap: 18px; grid-template-areas: "reab reab seimos seimos" "reab reab kinez kardio" "neuro echo kinez kardio" "sportas sportas ergo psich"; }
	.hsv-c__tile--k-reab { grid-area: reab; } .hsv-c__tile--k-seimos { grid-area: seimos; } .hsv-c__tile--k-kinez { grid-area: kinez; } .hsv-c__tile--k-kardio { grid-area: kardio; }
	.hsv-c__tile--k-neuro { grid-area: neuro; } .hsv-c__tile--k-echo { grid-area: echo; } .hsv-c__tile--k-sportas { grid-area: sportas; } .hsv-c__tile--k-ergo { grid-area: ergo; } .hsv-c__tile--k-psich { grid-area: psich; }
	.hsv-c__tile--deep.hsv-c__tile--k-sportas .hsv-c__body { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 16px; align-content: center; }
	.hsv-c__tile--k-sportas .hsv-ico { margin-bottom: 0; }
	.hsv-c__tile--k-sportas strong { font-size: 22px; flex: 1 1 60%; }
	.hsv-c__tile--k-sportas .hsv-c__desc, .hsv-c__tile--k-sportas .hsv-c__price, .hsv-c__tile--k-sportas .hsv-c__go { flex: 1 1 100%; }
	.hsv-c__tile { min-height: 0; }
	.hsv-c__tile--wide { flex-direction: row; }
	.hsv-c__tile--xl .hsv-c__photo { aspect-ratio: auto; flex: 1 1 0; min-height: 0; }
	.hsv-c__tile--xl .hsv-c__body { flex: 0 0 auto; padding: 22px 24px; }
	.hsv-c__tile--xl .hsv-c__body strong { font-size: 26px; }
	.hsv-c__tile--xl .hsv-c__desc { font-size: 15px; }
	.hsv-c__tile--wide .hsv-c__photo { aspect-ratio: auto; flex: 0 0 44%; }
	.hsv-c__tile--wide .hsv-c__body { justify-content: center; }
	.hsv-c__tile--tall .hsv-c__photo { aspect-ratio: auto; flex: 1 1 0; min-height: 0; }
	.hsv-c__tile--tall .hsv-c__body { flex: 0 0 auto; }
	.hsv-c__tile--tall .hsv-c__photo { flex: 1 1 0; }
	.hsv-c__tile .hsv-ico { width: 40px; height: 40px; margin-bottom: 2px; }
	.hsv-c__body { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) { .hsv-feature, .hsv-tile, .hsv-c__tile, .hsv-btn, .hsv-feature__photo img, .hsv-c__photo img { transition: none; } }
