/**
 * Услуги — coded services overview page (v2).
 * Layout + hover + responsive for tpl-services.php; the CTA card is also the
 * call band of the service pages (template-parts/service-cta.php). Frost page, white cards, the
 * "how we work" steps on a navy band. Reuses home.css / v2.css (.dwrap,
 * .btn, .v2-btn-*, .ak-crumbs).
 */

.ak.ak-services { background: var(--frost); color: var(--ink); }

/* ---------- hero ---------- */
.ak-services .ak-svc-hero { margin-top: 22px; }
.ak .ak-svc-h1 {
	font-family: var(--ak-font-d); font-size: 54px; font-weight: 800; letter-spacing: -.02em; color: var(--ink);
	margin: 14px 0 0; max-width: 760px; line-height: 1;
}
.ak .ak-svc-sub {
	color: var(--ink-2); font-size: 18px;
	margin-top: 14px; max-width: 620px; line-height: 1.55;
}

/* ---------- services grid — flat photo cards (style of the montage price cards) ---------- */
.ak .ak-svc-list { margin-top: 52px; }
.ak .ak-svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ak .ak-svc-card {
	--svc-bg: #fff; --svc-edge: var(--line); --svc-ink: var(--ink); --svc-ink-2: var(--ink-2); --svc-price: var(--hot); --svc-more: var(--cold-ink);
	border-radius: 6px; background: var(--svc-bg); border: 1px solid var(--svc-edge); overflow: hidden;
	display: flex; flex-direction: column;
	color: inherit; text-decoration: none; cursor: pointer;
	transition: background-color .15s, border-color .15s;
}
/* navy state (photo unchanged): keyboard focus always; hover only on real-pointer
   devices, so a tapped card doesn't stay navy on phones */
.ak .ak-svc-card:focus-visible { --svc-bg: var(--night); --svc-edge: var(--night); --svc-ink: #fff; --svc-ink-2: #a9c3db; --svc-price: #fff; --svc-more: #fff; }
@media (hover: hover) {
	.ak .ak-svc-card:hover { --svc-bg: var(--night); --svc-edge: var(--night); --svc-ink: #fff; --svc-ink-2: #a9c3db; --svc-price: #fff; --svc-more: #fff; }
}
/* overflow: hidden keeps the 4:3 box (tall enough for whole units / people in the photos) when a photo has another ratio (no content-sized min-height) */
.ak .ak-svc-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cold-50); }
.ak .ak-svc-media picture { display: contents; } /* the img sizes against .ak-svc-media */
.ak .ak-svc-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* several photos (data-slides, home.js): stacked, the current one (.is-on) fades in */
.ak .ak-svc-media.is-slides { position: relative; }
.ak .ak-svc-media.is-slides img { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.ak .ak-svc-media.is-slides img.is-on { opacity: 1; }
.ak .ak-svc-ph {
	display: flex; align-items: center; justify-content: center; height: 100%; padding: 8px; text-align: center;
	background: repeating-linear-gradient(135deg, #dfe7ee 0 10px, #e8eef3 10px 20px);
	color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.ak .ak-svc-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.ak .ak-svc-t {
	font-family: var(--ak-font-d); font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--svc-ink); margin: 0;
}
.ak .ak-svc-rule { display: block; width: 64px; height: 2px; background: var(--svc-ink); margin: 12px 0 14px; }
.ak .ak-svc-d { color: var(--svc-ink-2); font-size: 15.5px; line-height: 1.55; margin: 0; flex: 1; }
.ak .ak-svc-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 16px; }
.ak .ak-svc-foot .price {
	font-family: var(--ak-font-d); font-weight: 800; font-size: 24px; color: var(--svc-price);
}
.ak .ak-svc-foot .more {
	margin-left: auto; /* stays right when a card has no price (Оглед) */
	display: inline-flex; align-items: center; gap: 2px; white-space: nowrap;
	color: var(--svc-more); font-weight: 800; font-size: 14.5px;
}
.ak .ak-svc-foot .more svg { stroke: currentColor; }
/* text fades with the card background */
.ak :is(.ak-svc-t, .ak-svc-d, .ak-svc-foot .price, .ak-svc-foot .more) { transition: color .15s; }
.ak .ak-svc-rule { transition: background-color .15s; }
/* service page still being built (ak_is_wip_slug()): greyed out, not a link, no navy hover */
.ak .ak-svc-card.is-wip { --svc-ink: var(--muted); --svc-ink-2: var(--muted); cursor: default; }
.ak .ak-svc-card.is-wip .ak-svc-media { filter: grayscale(1); opacity: .55; }
.ak .ak-svc-card.is-wip .ak-svc-body { opacity: .75; }
.ak .ak-svc-soon {
	display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px;
	background: var(--cold-50); color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .02em;
}

/* ---------- how we work (real sequence → numbered) — navy band ---------- */
.ak .ak-svc-process { margin-top: 64px; padding: 52px 0; background: var(--night); color: #fff; }
.ak .ak-svc-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.ak .ak-svc-step-top { display: flex; align-items: center; gap: 14px; }
.ak .ak-svc-step .n {
	width: 40px; height: 40px; flex: 0 0 auto; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
	background: var(--cold); color: var(--night);
	font-family: var(--ak-font-d); font-weight: 800; font-size: 20px; line-height: 1;
}
.ak .ak-svc-step h3 {
	font-family: var(--ak-font); font-size: 18px; font-weight: 800; color: #fff; margin: 18px 0 0;
}
.ak .ak-svc-step p { color: rgba(255,255,255,.78); font-size: 15px; margin-top: 8px; line-height: 1.55; }

/* ---------- CTA card (Услуги + service pages) ---------- */
.ak .ak-svc-ctawrap { margin-top: 56px; }
.ak .ak-svc-cta {
	border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-card);
	padding: 36px 40px; position: relative; overflow: hidden;
	display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.ak .ak-svc-cta-txt { position: relative; }
.ak .ak-svc-cta-txt h2 { font-family: var(--ak-font-d); color: var(--ink); font-size: 36px; font-weight: 800; line-height: 1.05; margin: 0; }
.ak .ak-svc-cta-txt p { color: var(--ink-2); font-size: 17px; margin: 10px 0 0; max-width: 520px; line-height: 1.5; }
.ak .ak-svc-cta-btns { position: relative; display: flex; flex-wrap: wrap; gap: 12px; flex: 0 0 auto; }
.ak .ak-svc-cta-btns .btn { text-decoration: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
	.ak .ak-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ak .ak-svc-h1 { font-size: 44px; }
}
@media (max-width: 720px) {
	.ak .ak-svc-grid { grid-template-columns: 1fr; }
	.ak .ak-svc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
	.ak .ak-svc-h1 { font-size: 36px; }
	.ak .ak-svc-cta { flex-direction: column; align-items: flex-start; padding: 26px 20px; }
	.ak .ak-svc-cta-txt h2 { font-size: 30px; }
	.ak .ak-svc-cta-btns { width: 100%; }
	.ak .ak-svc-cta-btns .btn { flex: 1 1 auto; }
	.ak .ak-svc-process { padding: 36px 0; margin-top: 44px; }
	.ak .ak-svc-list { margin-top: 40px; }
}
@media (max-width: 460px) {
	.ak .ak-svc-steps { grid-template-columns: 1fr; }
}
/* phones + tablets: same 16px gutter as the mobile header and every other
   coded page (dwrap's 40px is the desktop gutter) */
@media (max-width: 1023px) {
	.ak-services-body .ak .dwrap { padding-left: 16px; padding-right: 16px; }
}
/* phones: compact row cards (thumbnail left, title + price right) so all the
   services fit in ~1½ screens instead of one tall photo card each */
@media (max-width: 720px) {
	.ak .ak-svc-list { margin-top: 28px; }
	.ak .ak-svc-grid { gap: 10px; }
	.ak .ak-svc-card { flex-direction: row; align-items: stretch; border-radius: 10px; }
	.ak .ak-svc-media { flex: 0 0 104px; aspect-ratio: auto; min-height: 104px; }
	.ak .ak-svc-ph { font-size: 0; padding: 0; } /* stripes only, the label doesn't fit */
	.ak .ak-svc-body { min-width: 0; padding: 12px 14px; }
	.ak .ak-svc-t { font-size: 18.5px; line-height: 1.15; }
	.ak .ak-svc-rule { display: none; }
	.ak .ak-svc-d {
		margin-top: 4px; font-size: 13.5px; line-height: 1.4;
		display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
	}
	.ak .ak-svc-foot { align-items: center; margin-top: 8px; }
	.ak .ak-svc-foot .price { font-size: 17px; }
	.ak .ak-svc-foot .more { font-size: 0; gap: 0; } /* chevron only */
	.ak .ak-svc-foot .more svg { width: 18px; height: 18px; }
	.ak .ak-svc-soon { padding: 3px 9px; font-size: 12px; }
}
