/* Figtree (OFL 1.1) – self-hosted, variable 300–600 */
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 300 600;
	font-display: swap;
	src: url("assets/fonts/figtree-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 300 600;
	font-display: swap;
	src: url("assets/fonts/figtree-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html {
	font-size: 62.5%;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	font-family: var(--wm-font-family__base);
	font-size: var(--wm-font-size__base);
	font-weight: 400;
	line-height: var(--wm-line-height__base);
	color: var(--wm-color__text);
	background: var(--wm-color__primary);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
svg,
iframe {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
	background: none;
	border: 0;
}

ul[class],
ol[class] {
	list-style: none;
}

:root {
	--wm-color__primary: #B30000;
	--wm-color__primary-deep: #9C0000;
	--wm-color__primary-dark: #4A0000;
	--wm-color__text: #FFFFFF;
	--wm-color__text-muted: #F5D3CF;
	--wm-color__line: rgba(255, 255, 255, 0.45);
	--wm-color__focus: #FFD27A;
	--wm-color__icon: #FFFFFF;
	--wm-color__error: #FFD27A;
	--wm-color__success: #C9F2C2;

	--wm-font-family__base: "Figtree", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

	--wm-font-size__logo: clamp(6rem, 2.4rem + 6.5vw, 12rem);
	--wm-font-size__tagline: clamp(2rem, 1.4rem + 1.1vw, 3rem);
	--wm-font-size__h1: clamp(3.6rem, 2.4rem + 2.6vw, 5.6rem);
	--wm-font-size__h2: clamp(3.2rem, 2.2rem + 2vw, 4.8rem);
	--wm-font-size__h3: clamp(2rem, 1.6rem + 0.8vw, 2.6rem);
	--wm-font-size__lead: clamp(1.9rem, 1.5rem + 0.6vw, 2.3rem);
	--wm-font-size__nav: clamp(1.6rem, 1.3rem + 0.5vw, 1.9rem);
	--wm-font-size__base: clamp(1.6rem, 1.5rem + 0.2vw, 1.8rem);
	--wm-font-size__sm: 1.4rem;

	--wm-line-height__tight: 0.9;
	--wm-line-height__heading: 1.15;
	--wm-line-height__base: 1.65;

	--wm-space__5: 5px;
	--wm-space__10: 10px;
	--wm-space__15: 15px;
	--wm-space__20: 20px;
	--wm-space__30: 30px;
	--wm-space__40: 40px;
	--wm-space__60: 60px;
	--wm-space__100: 100px;

	--wm-icon-size__sm: 1.6rem;
	--wm-icon-size__md: 2rem;
	--wm-icon-size__lg: 2.4rem;

	--wm-layout__container: 1240px;
	--wm-layout__text: 68ch;
	--wm-layout__gutter: var(--wm-space__40);
	--wm-layout__nav-height: 70px;
}

@media (max-width: 760px) {
	:root {
		--wm-layout__gutter: var(--wm-space__20);
		--wm-layout__nav-height: 60px;
	}
}

h1,
h2,
h3 {
	font-weight: 300;
	line-height: var(--wm-line-height__heading);
	letter-spacing: -0.01em;
	text-wrap: balance;
}

h1 {
	font-size: var(--wm-font-size__h1);
}

/* Krátká linka posunutá doleva přebírá motiv podtržení z menu původního webu. */
h2 {
	font-size: var(--wm-font-size__h2);
}

h2::after {
	content: "";
	display: block;
	width: 90px;
	height: 5px;
	margin-top: var(--wm-space__15);
	margin-left: calc(var(--wm-space__20) * -1);
	background: currentColor;
}

h3 {
	font-size: var(--wm-font-size__h3);
	font-weight: 400;
}

p,
li {
	max-width: var(--wm-layout__text);
	text-wrap: pretty;
}

strong {
	font-weight: 600;
}

a {
	color: var(--wm-color__text);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color 0.2s, text-decoration-thickness 0.2s;
}

a:visited {
	color: var(--wm-color__text-muted);
}

a:hover {
	color: var(--wm-color__text);
	text-decoration-thickness: 2px;
}

a:active {
	color: var(--wm-color__focus);
}

:focus-visible {
	outline: 3px solid var(--wm-color__focus);
	outline-offset: 3px;
}

ul:not([class]),
ol:not([class]) {
	display: grid;
	gap: var(--wm-space__5);
	padding-left: var(--wm-space__20);
}

ul:not([class]) li::marker {
	color: var(--wm-color__text-muted);
}

blockquote {
	display: grid;
	gap: var(--wm-space__10);
	padding-left: var(--wm-space__30);
	border-left: 5px solid var(--wm-color__text);
	font-size: var(--wm-font-size__lead);
	font-weight: 300;
}

blockquote cite {
	font-size: var(--wm-font-size__sm);
	font-style: normal;
	color: var(--wm-color__text-muted);
}

table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

caption {
	text-align: left;
	padding-bottom: var(--wm-space__10);
}

th,
td {
	padding: var(--wm-space__15) var(--wm-space__20) var(--wm-space__15) 0;
	border-bottom: 1px solid var(--wm-color__line);
	text-align: left;
	vertical-align: top;
}

th:last-child,
td:last-child {
	padding-right: 0;
	text-align: right;
	white-space: nowrap;
}

thead th {
	font-size: var(--wm-font-size__sm);
	font-weight: 400;
	color: var(--wm-color__text-muted);
}

tbody td:last-child {
	font-weight: 600;
}

.wm-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--wm-space__10);
	min-height: 48px;
	padding: var(--wm-space__10) var(--wm-space__30);
	border: 2px solid var(--wm-color__text);
	background: var(--wm-color__text);
	color: var(--wm-color__primary);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s, color 0.2s;
}

.wm-button:visited {
	color: var(--wm-color__primary);
}

.wm-button:hover {
	background: transparent;
	color: var(--wm-color__text);
}

.wm-button:active {
	transform: translateY(1px);
}

.wm-button--outline,
.wm-button--outline:visited {
	background: transparent;
	color: var(--wm-color__text);
}

.wm-button--outline:hover {
	background: var(--wm-color__text);
	color: var(--wm-color__primary);
}

.wm-button:disabled,
.wm-button[aria-disabled="true"] {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.wm-icon {
	flex-shrink: 0;
	width: var(--wm-icon-size__md);
	height: var(--wm-icon-size__md);
}

.wm-icon--sm {
	width: var(--wm-icon-size__sm);
	height: var(--wm-icon-size__sm);
}

.wm-icon--lg {
	width: var(--wm-icon-size__lg);
	height: var(--wm-icon-size__lg);
}

.wm-icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--wm-color__line);
	background: var(--wm-color__primary-dark);
	color: var(--wm-color__text);
	transition: background-color 0.2s, border-color 0.2s;
}

.wm-icon-button:hover {
	background: var(--wm-color__primary);
	border-color: var(--wm-color__text);
}

.wm-field {
	display: grid;
	gap: var(--wm-space__5);
}

.wm-field__label {
	font-size: var(--wm-font-size__sm);
	font-weight: 600;
}

.wm-field__input {
	width: 100%;
	min-height: 48px;
	padding: var(--wm-space__10) var(--wm-space__15);
	border: 1px solid var(--wm-color__line);
	background: var(--wm-color__primary-deep);
	color: var(--wm-color__text);
}

.wm-field__input:hover {
	border-color: var(--wm-color__text);
}

.wm-field__input::placeholder {
	color: var(--wm-color__text-muted);
	opacity: 1;
}

textarea.wm-field__input {
	min-height: 120px;
	resize: vertical;
}

select.wm-field__input option {
	background: var(--wm-color__primary-deep);
}

.wm-field__message {
	font-size: var(--wm-font-size__sm);
}

.wm-field--error .wm-field__input {
	border: 2px solid var(--wm-color__error);
}

.wm-field--error .wm-field__message {
	color: var(--wm-color__error);
}

.wm-field--success .wm-field__input {
	border: 2px solid var(--wm-color__success);
}

.wm-field--success .wm-field__message {
	color: var(--wm-color__success);
}

.wm-choice {
	display: flex;
	align-items: center;
	gap: var(--wm-space__10);
	min-height: 32px;
	cursor: pointer;
}

.wm-choice input {
	width: 20px;
	height: 20px;
	accent-color: var(--wm-color__text);
}

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

.wm-skip-link {
	position: absolute;
	top: var(--wm-space__10);
	left: var(--wm-space__10);
	z-index: 100;
	padding: var(--wm-space__10) var(--wm-space__20);
	background: var(--wm-color__text);
	color: var(--wm-color__primary);
	font-weight: 600;
	transform: translateY(-200%);
}

.wm-skip-link:focus {
	transform: none;
}

.wm-header__container,
.wm-nav__container,
.wm-text__container,
.wm-gallery__list,
.wm-contact__container,
.wm-footer__container,
.wm-styleguide__container {
	width: 100%;
	max-width: var(--wm-layout__container);
	margin-inline: auto;
	padding-inline: var(--wm-layout__gutter);
}

.wm-header {
	--header-bg: var(--wm-color__primary);
	background: var(--header-bg);
	overflow: hidden;
}

.wm-header__container {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: center;
	gap: var(--wm-space__60);
	padding-bottom: var(--wm-space__60);
}

.wm-header__title {
	grid-column: 2;
	grid-row: 1;
	display: grid;
	gap: var(--wm-space__20);
	font-size: inherit;
	font-weight: inherit;
	padding-top: var(--wm-space__60);
}

.wm-header__logo {
	font-size: var(--wm-font-size__logo);
	font-weight: 600;
	line-height: var(--wm-line-height__tight);
	letter-spacing: -0.035em;
}

.wm-header__tagline {
	font-size: var(--wm-font-size__tagline);
	font-weight: 300;
	line-height: var(--wm-line-height__heading);
	color: var(--wm-color__text);
}

.wm-header__image {
	grid-column: 1;
	grid-row: 1;
	align-self: start;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 0;
}

.wm-header__phone {
	display: none;
}

.wm-nav {
	--nav-bg: var(--wm-color__primary);
	position: sticky;
	top: 0;
	z-index: 10;
	background: var(--nav-bg);
	border-block: 1px solid var(--wm-color__line);
}

.wm-nav__container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wm-space__30);
	min-height: var(--wm-layout__nav-height);
}

.wm-nav__brand,
.wm-nav__brand:visited {
	font-size: 2.4rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	color: var(--wm-color__text);
	text-decoration: none;
}

.wm-nav__list {
	display: flex;
	gap: var(--wm-space__40);
}

.wm-nav__link,
.wm-nav__link:visited {
	position: relative;
	display: block;
	padding-block: var(--wm-space__15);
	font-size: var(--wm-font-size__nav);
	color: var(--wm-color__text);
	text-decoration: none;
}

.wm-nav__link::after {
	content: "";
	position: absolute;
	left: calc(var(--wm-space__10) * -1);
	bottom: var(--wm-space__10);
	width: 56px;
	height: 4px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease-out;
}

.wm-nav__link:hover::after,
.wm-nav__link[aria-current="true"]::after {
	transform: scaleX(1);
}

.wm-nav__phone,
.wm-nav__phone:visited {
	display: inline-flex;
	align-items: center;
	gap: var(--wm-space__10);
	font-weight: 600;
	color: var(--wm-color__text);
	text-decoration: none;
	white-space: nowrap;
}

.wm-nav__phone:hover {
	text-decoration: underline;
}

.wm-text {
	--text-bg: var(--wm-color__primary);
	background: var(--text-bg);
	padding-block: var(--wm-space__100);
	scroll-margin-top: var(--wm-layout__nav-height);
}

.wm-text--deep {
	--text-bg: var(--wm-color__primary-deep);
}

.wm-text__container,
.wm-contact__container {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: var(--wm-space__60);
	align-items: start;
}

.wm-text__title,
.wm-contact__title {
	position: sticky;
	top: calc(var(--wm-layout__nav-height) + var(--wm-space__40));
}

.wm-text__body,
.wm-contact__body {
	display: grid;
	gap: var(--wm-space__20);
	padding-left: var(--wm-space__40);
	border-left: 1px solid var(--wm-color__line);
}

.wm-text__lead {
	font-size: var(--wm-font-size__lead);
	font-weight: 300;
	line-height: 1.5;
}

.wm-text__note {
	font-size: var(--wm-font-size__sm);
	color: var(--wm-color__text-muted);
}

.wm-gallery {
	--gallery-bg: var(--wm-color__primary-dark);
	background: var(--gallery-bg);
	padding-block: var(--wm-space__40);
}

.wm-gallery__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--wm-space__30);
}

.wm-gallery__link {
	display: block;
	overflow: hidden;
}

.wm-gallery__image {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	transition: transform 0.4s ease-out;
}

.wm-gallery__link:hover .wm-gallery__image {
	transform: scale(1.04);
}

.wm-gallery__dialog {
	width: min(1100px, 100% - var(--wm-space__40));
	max-width: none;
	max-height: none;
	margin: auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wm-color__text);
	overflow: visible;
}

.wm-gallery__dialog::backdrop {
	background: rgba(40, 0, 0, 0.92);
}

.wm-gallery__figure {
	display: grid;
	gap: var(--wm-space__15);
}

.wm-gallery__full {
	width: 100%;
	max-height: 80vh;
	object-fit: contain;
}

.wm-gallery__caption {
	font-size: var(--wm-font-size__sm);
	color: var(--wm-color__text-muted);
	text-align: center;
}

.wm-gallery__control {
	position: absolute;
	top: 50%;
	translate: 0 -50%;
}

.wm-gallery__control[data-gallery="prev"] {
	left: calc(var(--wm-space__20) * -1);
}

.wm-gallery__control[data-gallery="next"] {
	right: calc(var(--wm-space__20) * -1);
}

.wm-gallery__control[data-gallery="close"] {
	top: calc(var(--wm-space__20) * -1);
	right: calc(var(--wm-space__20) * -1);
	translate: none;
}

.wm-contact {
	--contact-bg: var(--wm-color__primary-deep);
	background: var(--contact-bg);
	padding-block: var(--wm-space__100);
	scroll-margin-top: var(--wm-layout__nav-height);
	content-visibility: auto;
	contain-intrinsic-size: auto 700px;
}

.wm-contact__body {
	grid-template-columns: minmax(250px, 2fr) minmax(0, 3fr);
	gap: var(--wm-space__40);
	align-items: start;
}

.wm-contact__details {
	display: grid;
	gap: var(--wm-space__20);
	justify-items: start;
}

.wm-contact__row {
	display: flex;
	gap: var(--wm-space__15);
	align-items: flex-start;
	font-style: normal;
}

.wm-contact__row .wm-icon {
	margin-top: 0.25em;
}

.wm-contact__phone {
	font-size: var(--wm-font-size__lead);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.wm-contact__phone:visited {
	color: var(--wm-color__text);
}

.wm-contact__phone:hover {
	text-decoration: underline;
}

.wm-contact__map {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 783 / 900;
	overflow: hidden;
	background: var(--wm-color__primary-dark);
}

.wm-contact__map-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease-out;
}

.wm-contact__map:hover .wm-contact__map-image {
	transform: scale(1.03);
}

.wm-contact__map-label {
	position: absolute;
	right: 1.2rem;
	bottom: 1.2rem;
	padding: 0.4em 0.8em;
	background: #fff;
	color: var(--wm-color__primary-dark);
	font-size: 1.4rem;
	font-weight: 600;
	line-height: 1.2;
}

.wm-contact__map:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.wm-footer {
	--footer-bg: var(--wm-color__primary-dark);
	background: var(--footer-bg);
	padding-block: var(--wm-space__30);
	font-size: var(--wm-font-size__sm);
	color: var(--wm-color__text-muted);
}

.wm-footer__container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--wm-space__10) var(--wm-space__30);
}

.wm-styleguide {
	padding-block: var(--wm-space__60);
	border-bottom: 1px solid var(--wm-color__line);
}

.wm-styleguide--deep {
	background: var(--wm-color__primary-deep);
}

.wm-styleguide__container {
	display: grid;
	gap: var(--wm-space__30);
}

.wm-styleguide__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: var(--wm-space__20);
}

.wm-styleguide__swatch {
	display: grid;
	gap: var(--wm-space__5);
	font-size: var(--wm-font-size__sm);
}

.wm-styleguide__swatch::before {
	content: "";
	height: 80px;
	background: var(--swatch);
	border: 1px solid var(--wm-color__line);
}

.wm-styleguide__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wm-space__20);
}

.wm-styleguide__meta {
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: 1.3rem;
	color: var(--wm-color__text-muted);
}

.wm-styleguide__space {
	height: 20px;
	background: var(--wm-color__text);
}

/* Podklad mřížky 24×24 s vyznačenou ochrannou zónou 2px – jen ve styleguide. */
.wm-styleguide__icon {
	display: grid;
	place-items: center;
	width: 96px;
	height: 96px;
	padding: 8px;
	background:
		linear-gradient(var(--wm-color__primary-deep), var(--wm-color__primary-deep)) content-box,
		repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 4px),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 4px);
	outline: 1px dashed var(--wm-color__line);
	outline-offset: -8px;
}

.wm-styleguide__icon .wm-icon {
	width: 80px;
	height: 80px;
}

.wm-styleguide__preview {
	width: 160px;
	height: auto;
	border: 1px solid var(--wm-color__line);
}

@media (max-width: 1100px) {
	.wm-contact__body {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 760px) {
	h2::after {
		margin-left: calc(var(--wm-space__10) * -1);
	}

	.wm-header__container {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--wm-space__30);
		padding-bottom: var(--wm-space__40);
	}

	.wm-header__title {
		grid-column: 1;
		grid-row: 2;
		padding-top: 0;
	}

	.wm-header__image {
		aspect-ratio: 4 / 3;
		margin-inline: calc(var(--wm-layout__gutter) * -1);
		width: calc(100% + var(--wm-layout__gutter) * 2);
		max-width: none;
	}

	.wm-header__phone,
	.wm-header__phone:visited {
		grid-column: 1;
		grid-row: 3;
		justify-self: start;
		display: inline-flex;
		align-items: center;
		gap: var(--wm-space__10);
		margin-top: calc(var(--wm-space__10) * -1);
		font-size: var(--wm-font-size__lead);
		font-weight: 600;
		color: var(--wm-color__text);
		text-decoration: none;
		min-height: 44px;
	}

	.wm-header__phone .wm-icon {
		width: 1.1em;
		height: 1.1em;
	}

	.wm-nav__brand,
	.wm-nav__phone {
		display: none;
	}

	.wm-nav__list {
		width: 100%;
		justify-content: space-between;
		gap: var(--wm-space__20);
	}

	.wm-text,
	.wm-contact {
		padding-block: var(--wm-space__60);
	}

	.wm-text__container,
	.wm-contact__container,
	.wm-contact__body {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--wm-space__30);
	}

	.wm-text__title,
	.wm-contact__title {
		position: static;
	}

	.wm-text__body,
	.wm-contact__body {
		padding-left: var(--wm-space__20);
	}

	.wm-gallery__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--wm-space__15);
	}

	.wm-gallery__control[data-gallery="prev"] {
		left: 0;
	}

	.wm-gallery__control[data-gallery="next"] {
		right: 0;
	}

	.wm-gallery__control[data-gallery="close"] {
		top: calc(var(--wm-space__60) * -1);
		right: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
