/*
 * The shared base of every design: the brand's fonts and colours as
 * variables, and a plain, tidy look of every part in designs/_base. It sits
 * in the cascade layer `base`, so any rule of a design's own style.css
 * (unlayered) wins over it whatever its specificity. A design sets the role
 * variables on :root and restyles the rest; the brand's own values (the
 * --sr-black … --sr-graphite block and the fonts) stay as they are.
 *
 * The preview strip (.sr-preview) is outside the layer: it is the same in
 * every design.
 */

/*
 * Two font files (bin/brand-assets), both variable in weight. Each has a
 * fallback face: a local font resized to take the same room, so the text
 * shown before the web font arrives does not move when it does. The numbers
 * are printed by bin/brand-assets.
 */
@font-face {
	font-family: "Noto Serif Display";
	src: url("../../assets/fonts/noto-serif-display/NotoSerifDisplay.woff2") format("woff2");
	font-weight: 300 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Ysabeau";
	src: url("../../assets/fonts/ysabeau/Ysabeau.woff2") format("woff2");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Noto Serif Display Fallback";
	src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif");
	size-adjust: 116.11%;
	ascent-override: 92.07%;
	descent-override: 25.24%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Ysabeau Fallback";
	src: local("Arial"), local("ArialMT"), local("Liberation Sans");
	size-adjust: 91.6%;
	ascent-override: 115.07%;
	descent-override: 31.55%;
	line-gap-override: 0%;
}

@layer base {
	:root {
		/* The brand (hub/Systems/brand.md, rule 5). Not for a design to change. */
		--sr-black: #000;
		--sr-gold: #c69955;
		--sr-beige: #f3e9dd;
		--sr-white: #fff;
		/* Supporting tones measured on the logobook: its carriers and moodboard. */
		--sr-graphite: #282829;
		--sr-nude-1: #ede6e1;
		--sr-nude-2: #e8d5c5;
		--sr-nude-3: #e0bea9;
		--sr-nude-4: #d8a583;

		/*
		 * Roles: what a design sets. Gold is never a text or a line colour on
		 * a light ground; --sr-muted and --sr-line follow --sr-text.
		 */
		--sr-bg: var(--sr-white);
		--sr-surface: var(--sr-beige);
		--sr-text: var(--sr-black);
		--sr-muted: color-mix(in srgb, var(--sr-text) 68%, transparent);
		--sr-line: color-mix(in srgb, var(--sr-text) 15%, transparent);
		--sr-button-bg: var(--sr-gold);
		--sr-button-text: var(--sr-black);
		--sr-header-bg: var(--sr-bg);
		--sr-header-text: var(--sr-text);

		--sr-font-heading: "Noto Serif Display", "Noto Serif Display Fallback", "Times New Roman", serif;
		--sr-font: "Ysabeau", "Ysabeau Fallback", Arial, sans-serif;
		--sr-weight-heading: 400;
		--sr-size-h1: clamp(2.5rem, 1.6rem + 4.2vw, 5.5rem);
		--sr-size-title: clamp(2.25rem, 1.7rem + 2.4vw, 3.75rem);
		--sr-size-h2: clamp(1.875rem, 1.5rem + 1.6vw, 3rem);
		--sr-size-h3: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem);
		--sr-size-text: 1.0625rem;
		--sr-size-small: 0.9375rem;

		/*
		 * The grid: 4 columns on a phone, 8 on a tablet, 12 from 1024 px.
		 * The side field grows from 16 px at 390 to 64 px at 1440, so at 1440
		 * the content is 1312 px wide (1440 − 2 × 64); wider screens keep 1312
		 * and widen the fields. The page's ground runs the full width.
		 */
		--sr-gutter: clamp(1rem, 4.5714vw - 0.1143rem, 4rem);
		--sr-wide: 1312px;
		--sr-columns: 4;
		--sr-gap: 1rem;
		--sr-section: clamp(3rem, 7vw, 6rem);
		--sr-radius: 0;
		--sr-fast: 200ms;

		/* The sticky header's height and the phone's booking bar: 100 px together. */
		--sr-header-h: 52px;
		--sr-bookbar-h: 48px;
	}

	@media (min-width: 768px) {
		:root {
			--sr-header-h: 72px;
			--sr-size-text: 1.125rem;
			--sr-size-small: 1rem;
			--sr-columns: 8;
		}
	}

	@media (min-width: 1024px) {
		:root {
			--sr-columns: 12;
			--sr-gap: 1.5rem;
		}
	}

	*,
	*::before,
	*::after {
		box-sizing: border-box;
	}

	html {
		-webkit-text-size-adjust: 100%;
		text-size-adjust: 100%;
	}

	@media (prefers-reduced-motion: no-preference) {
		html {
			scroll-behavior: smooth;
		}
	}

	body {
		margin: 0;
		background: var(--sr-bg);
		color: var(--sr-text);
		font-family: var(--sr-font);
		font-size: var(--sr-size-text);
		/* Ysabeau's default figures are old-style; prices and hours need lining ones. */
		font-feature-settings: "lnum";
		line-height: 1.55;
		overflow-wrap: break-word;
	}

	h1,
	h2,
	h3,
	h4 {
		font-family: var(--sr-font-heading);
		font-weight: var(--sr-weight-heading);
		line-height: 1.15;
		text-wrap: balance;
	}

	a {
		color: inherit;
		text-underline-offset: 0.2em;
		text-decoration-thickness: 1px;
	}

	img {
		max-width: 100%;
		height: auto;
		display: block;
	}

	[id] {
		scroll-margin-top: calc(var(--sr-header-h) + 1rem);
	}

	:focus-visible {
		outline: 2px solid currentColor;
		outline-offset: 2px;
	}

	.sr-container {
		width: 100%;
		max-width: calc(var(--sr-wide) + 2 * var(--sr-gutter));
		margin-inline: auto;
		padding-inline: var(--sr-gutter);
	}

	/* Columns of the grid inside a container: children span them with grid-column. */
	.sr-grid {
		display: grid;
		grid-template-columns: repeat(var(--sr-columns), minmax(0, 1fr));
		gap: var(--sr-gap);
	}

	.sr-visually-hidden {
		position: absolute !important;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	/* The mark (starrise_brand_mark()): the colour is the text's, the size is its height. */
	.sr-mark {
		display: block;
		width: auto;
		height: 3rem;
		flex: none;
	}

	.sr-mark--wordmark {
		height: 1.125rem;
	}

	.sr-mark--emblem {
		height: 7.5rem;
	}

	.sr-mark--monogram {
		height: 2rem;
	}

	/* Buttons and links that look like them. */
	.sr-button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 44px;
		padding: 0.25rem 1.25rem;
		border: 1px solid transparent;
		border-radius: var(--sr-radius);
		background: var(--sr-button-bg);
		color: var(--sr-button-text);
		font: inherit;
		font-weight: 600;
		line-height: 1.2;
		text-align: center;
		text-decoration: none;
		cursor: pointer;
		transition: transform 150ms ease-out, background-color var(--sr-fast) ease-out, color var(--sr-fast) ease-out;
	}

	.sr-button:active {
		transform: scale(0.98);
	}

	.sr-button--soft {
		border-color: currentColor;
		background: transparent;
		color: var(--sr-text);
	}

	.sr-button--big {
		min-height: 52px;
		padding-inline: 1.75rem;
	}

	.sr-actions {
		display: flex;
		flex-wrap: wrap;
		gap: 0.75rem;
	}

	.sr-actions .sr-button--big {
		flex: 1 1 100%;
	}

	@media (min-width: 600px) {
		.sr-actions .sr-button--big {
			flex: 0 0 auto;
		}
	}

	/*
	 * A text link as tall as a touch target. Its arrow («← Усі послуги»,
	 * «Записатися →») is a span of its own: the gap is the space, which a flex
	 * item's edge would swallow.
	 */
	.sr-link {
		display: inline-flex;
		align-items: center;
		gap: 0.375rem;
		min-height: 44px;
	}

	/* Chips: the first screen's jumps, the service groups, the portfolio filter. */
	.sr-chips,
	.sr-jumps {
		display: flex;
		flex-wrap: wrap;
		gap: 0.5rem;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.sr-chip,
	.sr-jumps a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		padding: 0 1rem;
		border: 1px solid currentColor;
		border-radius: var(--sr-radius);
		background: var(--sr-bg);
		color: var(--sr-text);
		font: inherit;
		white-space: nowrap;
		text-decoration: none;
		cursor: pointer;
	}

	.sr-chip[aria-current="page"],
	.sr-chip[aria-pressed="true"] {
		background: var(--sr-text);
		color: var(--sr-bg);
	}

	/* From 1024 px the header's menu is in sight: the first screen's jumps would repeat it. */
	@media (min-width: 1024px) {
		.sr-jumps {
			display: none;
		}
	}

	/*
	 * A row of chips that stays in sight under the header. On a phone the
	 * header hides on the way down, so the row sticks to the top edge and the
	 * returning header covers it; that needs JS, without it the row is not
	 * sticky on a phone.
	 */
	.sr-sticky {
		z-index: 20;
		margin-inline: calc(-1 * var(--sr-gutter));
		padding: 0.5rem var(--sr-gutter);
		background: var(--sr-bg);
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.js .sr-sticky {
		position: sticky;
		top: 0;
	}

	@media (min-width: 768px) {
		.sr-sticky {
			position: sticky;
			top: var(--sr-header-h);
		}

		.js .sr-sticky {
			top: var(--sr-header-h);
		}
	}

	/* Header: exactly --sr-header-h tall, its bottom line drawn inside. */
	.sr-header {
		position: sticky;
		top: 0;
		z-index: 50;
		box-shadow: inset 0 -1px 0 var(--sr-line);
		background: var(--sr-header-bg);
		color: var(--sr-header-text);
		transition: transform var(--sr-fast) ease-out;
	}

	.sr-header__bar {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 0 0.5rem;
		min-height: var(--sr-header-h);
	}

	.js .sr-header__bar {
		flex-wrap: nowrap;
	}

	/* The full logo and, once the page is scrolled, the wordmark in its place. */
	.sr-logo {
		display: grid;
		align-items: center;
		min-height: 44px;
		margin-right: auto;
		color: inherit;
	}

	.sr-logo .sr-mark {
		grid-area: 1 / 1;
		transition: opacity var(--sr-fast) ease-out;
	}

	.sr-logo__full {
		height: calc(var(--sr-header-h) - 12px);
	}

	.sr-logo__compact {
		height: 1rem;
		opacity: 0;
	}

	.is-scrolled .sr-logo__full {
		opacity: 0;
	}

	.is-scrolled .sr-logo__compact {
		opacity: 1;
	}

	.sr-nav {
		order: 3;
		flex: 1 0 100%;
	}

	.sr-nav__list,
	.sr-menu__list {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.sr-nav__list {
		display: flex;
		flex-wrap: wrap;
		gap: 0 1.25rem;
	}

	.sr-nav__link {
		display: inline-flex;
		align-items: center;
		min-width: 44px;
		min-height: 44px;
		text-decoration: none;
	}

	.sr-nav__link:hover,
	.sr-nav__link[aria-current="page"] {
		text-decoration: underline;
	}

	.sr-header__book {
		padding-inline: 0.875rem;
	}

	.sr-menu-toggle {
		display: none;
		align-items: center;
		min-height: 44px;
		padding: 0 0.875rem;
		border: 1px solid currentColor;
		border-radius: var(--sr-radius);
		background: none;
		color: inherit;
		font: inherit;
		font-weight: 600;
		cursor: pointer;
	}

	.sr-menu {
		display: none;
	}

	/* With JS, below the desktop width the menu's links are behind the button. */
	@media (max-width: 1023.98px) {
		.js .sr-nav {
			display: none;
		}

		.js .sr-menu-toggle {
			display: inline-flex;
		}

		/* The full-screen menu: closed it is invisible and inert (site.js). */
		.js .sr-menu {
			position: fixed;
			inset: 0;
			z-index: 60;
			display: flex;
			flex-direction: column;
			overflow-y: auto;
			overscroll-behavior: contain;
			background: var(--sr-bg);
			color: var(--sr-text);
			visibility: hidden;
			opacity: 0;
			transform: translateY(8px);
			transition: opacity var(--sr-fast) ease-out, transform var(--sr-fast) ease-out, visibility 0s var(--sr-fast);
		}

		.is-menu-open .sr-menu {
			visibility: visible;
			opacity: 1;
			transform: none;
			transition: opacity 280ms ease-out, transform 280ms ease-out, visibility 0s;
		}

		.is-menu-open {
			overflow: hidden;
		}
	}

	/* A phone's header leaves on the way down and returns on the way up. */
	@media (max-width: 767.98px) {
		.is-header-hidden .sr-header {
			transform: translateY(-100%);
		}
	}

	@media (min-width: 768px) {
		.sr-header__bar {
			gap: 0 1rem;
		}

		.sr-logo__compact {
			height: 1.25rem;
		}

		.sr-header__book {
			padding-inline: 1.5rem;
		}
	}

	@media (min-width: 1024px) {
		.sr-header__bar {
			flex-wrap: nowrap;
			gap: 0 2rem;
		}

		.sr-nav {
			order: 0;
			flex: 0 1 auto;
		}

		.sr-nav__list {
			flex-wrap: nowrap;
			gap: 0 1.75rem;
			white-space: nowrap;
		}
	}

	.sr-menu__top {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: var(--sr-header-h);
	}

	.sr-menu__close {
		width: 44px;
		height: 44px;
		margin-right: -0.5rem;
		padding: 0;
		border: 0;
		background: none;
		color: inherit;
		font: inherit;
		font-size: 2rem;
		line-height: 1;
		cursor: pointer;
	}

	.sr-menu__nav {
		flex: 1;
		padding-block: 1.5rem;
	}

	.sr-menu__link {
		display: flex;
		align-items: center;
		min-height: 56px;
		font-family: var(--sr-font-heading);
		font-size: 1.75rem;
		line-height: 1.2;
		text-decoration: none;
	}

	.sr-menu__link[aria-current="page"] {
		text-decoration: underline;
		text-underline-offset: 0.25em;
	}

	.sr-menu__foot {
		display: grid;
		gap: 0.75rem;
		padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
	}

	.sr-menu__hours {
		margin: 0.25rem 0 0;
		color: var(--sr-muted);
		text-align: center;
	}

	/* The phone's booking bar (bookbar.php): shown by site.js as html.is-bookbar. */
	.sr-bookbar {
		display: none;
	}

	@media (max-width: 767.98px) {
		.js .sr-bookbar {
			position: fixed;
			inset: auto 0 0;
			z-index: 40;
			display: block;
			padding-bottom: env(safe-area-inset-bottom);
			background: var(--sr-button-bg);
			visibility: hidden;
			transform: translateY(100%);
			transition: transform var(--sr-fast) ease-out, visibility 0s var(--sr-fast);
		}

		.is-bookbar .sr-bookbar {
			visibility: visible;
			transform: none;
			transition: transform var(--sr-fast) ease-out, visibility 0s;
		}

		.sr-bookbar__button {
			display: flex;
			width: 100%;
			min-height: var(--sr-bookbar-h);
			border-radius: 0;
		}
	}

	/* Sections and their heads. */
	.sr-section {
		padding-block: var(--sr-section);
		border-top: 1px solid var(--sr-line);
	}

	.sr-head {
		margin-bottom: 1.5rem;
	}

	.sr-eyebrow {
		margin: 0 0 0.75rem;
		color: var(--sr-muted);
		font-size: 0.875rem;
		font-weight: 600;
		letter-spacing: 0.12em;
		text-transform: uppercase;
	}

	.sr-head__title {
		margin: 0;
		font-size: var(--sr-size-h2);
	}

	.sr-head__lead {
		max-width: 40rem;
		margin: 0.75rem 0 0;
	}

	.sr-more {
		margin: 2rem 0 0;
	}

	/* First screen. */
	.sr-hero {
		padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(2.5rem, 6vw, 5rem);
	}

	.sr-hero__inner {
		display: grid;
		gap: clamp(1.5rem, 4vw, 3rem);
	}

	.sr-hero__title {
		margin: 0;
		font-size: var(--sr-size-h1);
		line-height: 1.05;
	}

	.sr-hero__lead {
		max-width: 34rem;
		margin: 1rem 0 0;
	}

	.sr-hero__action {
		margin: 1.5rem 0 0.75rem;
	}

	.sr-hero__action .sr-button {
		width: 100%;
	}

	.sr-hero__photos {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.5rem;
	}

	.sr-hero__photos[data-count="1"] {
		grid-template-columns: minmax(0, 24rem);
	}

	.sr-hero__photo {
		margin: 0;
		overflow: hidden;
		aspect-ratio: 4 / 5;
		background: var(--sr-surface);
	}

	.sr-hero__photo img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	/* A phone shows two photos side by side. */
	.sr-hero__photo:nth-child(n + 3) {
		display: none;
	}

	@media (min-width: 768px) {
		.sr-hero__action .sr-button {
			width: auto;
			min-width: 15rem;
		}

		.sr-hero__photos[data-count="3"] {
			grid-template-columns: repeat(3, minmax(0, 1fr));
			gap: 0.75rem;
		}

		.sr-hero__photo:nth-child(n + 3) {
			display: block;
		}
	}

	@media (min-width: 1024px) {
		.sr-hero__inner {
			grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
			align-items: center;
		}
	}

	/* Services: groups and rows. */
	.sr-group {
		margin-top: 2.5rem;
		scroll-margin-top: calc(var(--sr-header-h) + 5rem);
	}

	.sr-group__head {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 0 0.75rem;
	}

	.sr-group__title {
		margin: 0;
		font-size: var(--sr-size-h3);
	}

	.sr-group__count {
		margin: 0;
		color: var(--sr-muted);
		font-size: var(--sr-size-small);
	}

	.sr-group__list {
		margin: 0.75rem 0 0;
		padding: 0;
		border-top: 1px solid var(--sr-text);
		list-style: none;
	}

	.sr-group__list > li {
		border-bottom: 1px solid var(--sr-line);
	}

	/*
	 * A row: the name, description and note on the left; on the right the
	 * price with the duration under it, so prices stand in one vertical, and
	 * «Записатися →» under them.
	 */
	.sr-service {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-rows: auto 1fr;
		grid-template-areas:
			"text facts"
			"text book";
		gap: 0.25rem 1rem;
		padding-block: 1.25rem;
	}

	.sr-service__text {
		grid-area: text;
	}

	.sr-service__name {
		margin: 0;
		font-size: var(--sr-size-h3);
	}

	/* The name is a target of its own: as tall as a finger even on one line. */
	.sr-service__name a,
	.sr-course__name a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		text-decoration: none;
	}

	.sr-service__name a:hover {
		text-decoration: underline;
	}

	.sr-service__desc,
	.sr-service__note {
		margin: 0.25rem 0 0;
	}

	.sr-service__note,
	.sr-service__time {
		color: var(--sr-muted);
		font-size: var(--sr-size-small);
	}

	.sr-service__facts {
		display: grid;
		grid-area: facts;
		align-content: start;
		justify-items: end;
		margin: 0.25rem 0 0;
		text-align: right;
		white-space: nowrap;
	}

	.sr-price {
		font-weight: 600;
		font-feature-settings: "lnum", "tnum";
		white-space: nowrap;
	}

	.sr-service__book {
		grid-area: book;
		align-self: start;
		justify-self: end;
		font-size: var(--sr-size-small);
		text-decoration: none;
	}

	.sr-service__book-label {
		text-decoration: underline 1px;
		text-underline-offset: 0.35em;
	}

	@media (min-width: 768px) {
		.sr-service {
			column-gap: 2rem;
		}
	}

	/* One line of facts: «від 1 200 грн · 1 год 30 хв». */
	.sr-facts {
		margin: 0.5rem 0 0;
	}

	.sr-facts__item {
		white-space: nowrap;
	}

	/* Works and the full-screen viewer. */
	.sr-work-grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.5rem;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.sr-work[hidden] {
		display: none;
	}

	.sr-work__link {
		display: block;
		overflow: hidden;
		aspect-ratio: 4 / 5;
		background: var(--sr-surface);
	}

	.sr-work__img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: transform 400ms ease-out;
	}

	@media (hover: hover) {
		.sr-work__link:hover .sr-work__img {
			transform: scale(1.03);
		}
	}

	@media (min-width: 768px) {
		.sr-work-grid {
			grid-template-columns: repeat(3, minmax(0, 1fr));
			gap: 0.75rem;
		}
	}

	@media (min-width: 1024px) {
		/* Four photos a row: three columns of the 12 each. */
		.sr-work-grid {
			grid-template-columns: repeat(4, minmax(0, 1fr));
			gap: var(--sr-gap);
		}
	}

	.sr-filter {
		margin-bottom: 1rem;
	}

	/* The filter's row scrolls sideways; a tab keeps the width of its name. */
	.sr-filter .sr-chip {
		flex: none;
	}

	.sr-lightbox {
		width: 100vw;
		max-width: none;
		height: 100vh;
		height: 100dvh;
		max-height: none;
		margin: 0;
		padding: 0;
		border: 0;
		overscroll-behavior: contain;
		background: var(--sr-black);
		color: var(--sr-white);
	}

	.sr-lightbox[open] {
		display: grid;
		grid-template-rows: auto minmax(0, 1fr) auto;
		animation: sr-fade 220ms ease-out;
	}

	.sr-lightbox::backdrop {
		background: var(--sr-black);
	}

	@keyframes sr-fade {
		from {
			opacity: 0;
		}
	}

	.sr-lightbox__top,
	.sr-lightbox__bottom {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		min-height: 52px;
		padding: 0.25rem 0.25rem 0.25rem 1rem;
	}

	.sr-lightbox__bottom {
		padding: 0.5rem 1rem calc(0.5rem + env(safe-area-inset-bottom));
	}

	.sr-lightbox__count,
	.sr-lightbox__caption {
		margin: 0;
		font-feature-settings: "lnum", "tnum";
	}

	.sr-lightbox__figure {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 0;
		margin: 0;
		overflow: hidden;
		/* The swipe is the script's; two fingers still zoom. */
		touch-action: pinch-zoom;
	}

	.sr-lightbox__img {
		max-width: 100%;
		max-height: 100%;
		object-fit: contain;
	}

	.sr-lightbox__img.is-settling {
		transition: transform var(--sr-fast) ease-out, opacity var(--sr-fast) ease-out;
	}

	.sr-lightbox__close,
	.sr-lightbox__prev,
	.sr-lightbox__next {
		width: 44px;
		height: 44px;
		padding: 0;
		border: 0;
		background: none;
		color: inherit;
		font: inherit;
		font-size: 1.75rem;
		line-height: 1;
		cursor: pointer;
	}

	.sr-lightbox__prev,
	.sr-lightbox__next {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
	}

	.sr-lightbox__prev {
		left: 0.5rem;
	}

	.sr-lightbox__next {
		right: 0.5rem;
	}

	/* Arrows on every screen — a finger may also swipe; none for a single photo. */
	.sr-lightbox.is-single .sr-lightbox__prev,
	.sr-lightbox.is-single .sr-lightbox__next {
		display: none;
	}

	/* Reviews. */
	.sr-review-list,
	.sr-course-list {
		display: grid;
		gap: 1rem;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.sr-review {
		height: 100%;
		margin: 0;
		padding: 1.25rem;
		border-radius: var(--sr-radius);
		background: var(--sr-surface);
	}

	.sr-review__img {
		width: 48px;
		height: 48px;
		margin-bottom: 0.75rem;
		border-radius: 50%;
		object-fit: cover;
	}

	.sr-review__text,
	.sr-review__text p {
		margin: 0;
	}

	.sr-review__by {
		display: flex;
		flex-wrap: wrap;
		gap: 0 0.5rem;
		margin-top: 0.75rem;
		font-size: var(--sr-size-small);
	}

	.sr-review__name {
		font-weight: 600;
	}

	.sr-review__service,
	.sr-review__source {
		color: var(--sr-muted);
	}

	@media (min-width: 768px) {
		.sr-review-list {
			grid-template-columns: repeat(3, minmax(0, 1fr));
		}

		.sr-course-list {
			grid-template-columns: repeat(2, minmax(0, 1fr));
		}
	}

	/* Courses. */
	.sr-course {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 1rem;
		height: 100%;
		padding: 1.25rem;
		border: 1px solid var(--sr-line);
		border-radius: var(--sr-radius);
	}

	.sr-course__img {
		width: 5.5rem;
		aspect-ratio: 4 / 5;
		object-fit: cover;
	}

	.sr-course__name {
		margin: 0;
		font-size: var(--sr-size-h3);
	}

	.sr-course__name a:hover {
		text-decoration: underline;
	}

	.sr-course__desc {
		margin: 0.25rem 0 0;
	}

	.sr-course__actions {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 0.25rem 1.25rem;
		margin: 1rem 0 0;
	}

	@media (min-width: 1024px) {
		.sr-course__img {
			width: 8rem;
		}
	}

	/* About the studio. */
	.sr-about__inner {
		display: grid;
		gap: 1.5rem;
	}

	.sr-about__text {
		max-width: 40rem;
		margin: 1rem 0 0;
	}

	.sr-about__img {
		max-width: min(100%, 30rem);
	}

	@media (min-width: 768px) {
		.sr-about__inner {
			grid-template-columns: minmax(0, 1fr) auto;
			align-items: center;
			gap: 3rem;
		}
	}

	/* Contacts, hours and the map. */
	.sr-contact {
		display: grid;
		gap: 2rem;
	}

	.sr-contact__address {
		margin: 0;
		font-size: 1.25rem;
	}

	.sr-contact__phone {
		margin: 0.25rem 0 0;
	}

	.sr-contact__actions {
		margin-top: 1.25rem;
	}

	.sr-contact__title {
		margin: 0 0 0.5rem;
		font-family: var(--sr-font);
		font-size: var(--sr-size-text);
		font-weight: 600;
	}

	.sr-contact__how {
		max-width: 40rem;
		margin-top: 2rem;
	}

	.sr-hours {
		max-width: 28rem;
		margin: 0;
	}

	.sr-hours__row {
		display: flex;
		justify-content: space-between;
		gap: 1rem;
		padding: 0.5rem 0;
		border-bottom: 1px solid var(--sr-line);
	}

	/*
	 * The time keeps its own width, so «10:00–20:00» stays on one line and the
	 * day's name wraps instead; a long text from the admin wraps within 60 %.
	 */
	.sr-hours__row dd {
		flex: none;
		max-width: 60%;
		margin: 0;
		text-align: right;
	}

	.sr-hours__row.is-today {
		font-weight: 700;
	}

	.sr-map {
		margin-top: 1.5rem;
	}

	html:not(.js) .sr-map {
		display: none;
	}

	.sr-map__note {
		margin: 0.5rem 0 0;
		color: var(--sr-muted);
		font-size: var(--sr-size-small);
	}

	.sr-map__frame {
		display: block;
		width: 100%;
		border: 0;
		aspect-ratio: 4 / 3;
	}

	@media (min-width: 1024px) {
		.sr-contact {
			grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
			gap: 4rem;
		}
	}

	/* Booking block. */
	.sr-book__text {
		max-width: 40rem;
		margin: 0.75rem 0 1.5rem;
	}

	/* Inner pages. */
	.sr-page {
		padding-top: clamp(1.25rem, 4vw, 3rem);
	}

	.sr-page > .sr-container {
		padding-bottom: var(--sr-section);
	}

	.sr-page__title {
		margin: 0 0 1rem;
		font-size: var(--sr-size-title);
		line-height: 1.08;
	}

	.sr-page__lead {
		max-width: 40rem;
		margin: 0 0 1.5rem;
	}

	.sr-back {
		margin: 0 0 0.25rem;
	}

	.sr-single > * {
		max-width: 44rem;
	}

	.sr-single__lead {
		margin: 0;
	}

	.sr-single__action {
		margin: 1.25rem 0 2rem;
	}

	.sr-single__action .sr-button {
		width: 100%;
	}

	.sr-single__img {
		max-width: min(100%, 30rem);
		margin-block: 0 2rem;
	}

	.sr-program h2 {
		font-size: var(--sr-size-h3);
	}

	.sr-program__list li {
		margin-bottom: 0.5rem;
	}

	.sr-index {
		padding-left: 1.25rem;
	}

	@media (min-width: 600px) {
		.sr-single__action .sr-button {
			width: auto;
			min-width: 15rem;
		}
	}

	/* A page's text from the editor. */
	.sr-content {
		max-width: 44rem;
	}

	.sr-content h2 {
		margin: 2rem 0 0.75rem;
		font-size: var(--sr-size-h3);
	}

	.sr-content h3 {
		margin: 1.5rem 0 0.5rem;
		font-family: var(--sr-font);
		font-size: var(--sr-size-text);
		font-weight: 700;
	}

	/* Footer. */
	.sr-footer {
		padding-block: 2.5rem 1.5rem;
		background: var(--sr-surface);
	}

	.sr-footer__top {
		display: grid;
		gap: 1.5rem 2rem;
	}

	.sr-footer__brand .sr-mark {
		height: 1.25rem;
	}

	.sr-footer ul {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.sr-footer a {
		display: inline-flex;
		align-items: center;
		min-width: 44px;
		min-height: 44px;
	}

	.sr-footer__title {
		margin: 0 0 0.25rem;
		font-family: var(--sr-font);
		font-size: var(--sr-size-small);
		font-weight: 700;
	}

	.sr-footer__address {
		padding-block: 0.5rem;
	}

	.sr-footer__bottom {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 0 1rem;
		margin-top: 1.5rem;
		padding-top: 0.75rem;
		border-top: 1px solid var(--sr-line);
		font-size: var(--sr-size-small);
	}

	.sr-footer__bottom p {
		margin: 0;
	}

	.sr-footer--thin .sr-footer__nav ul {
		display: flex;
		flex-wrap: wrap;
		gap: 0 1.5rem;
	}

	@media (min-width: 768px) {
		.sr-footer__top {
			grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
		}

		.sr-footer--thin .sr-footer__top {
			display: flex;
			flex-wrap: wrap;
			align-items: center;
			justify-content: space-between;
		}
	}

	/* No movement for a visitor who asked for none; a design cannot undo this. */
	@media (prefers-reduced-motion: reduce) {
		*,
		*::before,
		*::after {
			transition-duration: 0.01ms !important;
			animation-duration: 0.01ms !important;
			animation-iteration-count: 1 !important;
			scroll-behavior: auto !important;
		}
	}
}

/* Design preview strip: the same in every design, not sticky. */
.sr-preview {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0 16px;
	margin: 0;
	padding: 4px 16px;
	background: #111;
	color: #fff;
	font: 14px/1.4 system-ui, sans-serif;
}

.sr-preview a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 4px;
	color: #fff;
	text-decoration: underline;
}

.sr-preview a[aria-current="page"] {
	font-weight: 700;
	text-decoration: none;
}

.sr-preview :focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
