/* ==========================================================================
   Windalux — design system and components.
   Tokens follow the approved design (design/windalux-vilnius-windows/src/styles.css), converted from oklch to hex.
   Mobile first; breakpoints 640, 768, 1024, 1280 px.
   ========================================================================== */

:root {
	--c-bg: #fcf6ee;
	--c-text: #15110d;
	--c-card: #fffdf9;
	--c-primary: #f8c384;
	--c-on-primary: #110c09;
	--c-secondary: #f2e6d6;
	--c-muted: #f2eade;
	--c-muted-text: #665b53;
	--c-accent: #db9152;
	--c-accent-text: #8c501c; /* the accent darkened for small text on light backgrounds: 5.2:1 on --c-secondary, 6:1 on --c-bg */
	--c-accent-large: #b8702f; /* the accent for large display figures on light backgrounds (3:1+) */
	--c-border: #ddd2c6;
	--c-field-line: #c9bcae;
	--c-focus-line: var(--c-accent);
	--c-ink: #0c0806;
	--c-ink-text: #fbf0e0;
	--c-danger: #a8261b;

	--f-display: "Cormorant Garamond", "Cormorant Fallback", Georgia, serif;
	--f-body: "Manrope", "Manrope Fallback", Arial, sans-serif;

	--fs-h1: clamp(3rem, 1.6rem + 5.4vw, 6rem);
	--fs-h2: clamp(2.25rem, 1.55rem + 2.8vw, 3.75rem);

	--radius: 0.25rem;
	--container: 80rem;
	--gutter: 1.5rem;
	--section: clamp(4.5rem, 2.8rem + 5.5vw, 7rem);
	--header-h: 5.75rem;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--shade: linear-gradient(180deg, rgb(12 8 6 / 0.45) 0%, rgb(12 8 6 / 0.15) 40%, rgb(12 8 6 / 0.85) 100%);
}

/*
 * Metric-matched local fallbacks: while the web fonts load, text takes the same space it will take in the real
 * fonts, so nothing re-wraps or jumps when they arrive. Ratios measured in Chrome against the self-hosted files.
 */
@font-face {
	font-family: "Cormorant Fallback";
	src: local("Georgia");
	size-adjust: 87.98%;
	ascent-override: 104.57%;
	descent-override: 32.96%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Cormorant Fallback";
	font-style: italic;
	src: local("Georgia Italic"), local("Georgia-Italic");
	size-adjust: 78.97%;
	ascent-override: 116.5%;
	descent-override: 36.72%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Manrope Fallback";
	src: local("Arial"), local("ArialMT");
	size-adjust: 101.69%;
	ascent-override: 105.22%;
	descent-override: 29.5%;
	line-gap-override: 0%;
}

/* Sections on the dark ink background flip the colour roles for everything inside them. */
.on-dark {
	--c-text: var(--c-ink-text);
	--c-muted-text: rgb(251 240 224 / 0.72);
	--c-border: rgb(251 240 224 / 0.15);
	--c-field-line: rgb(251 240 224 / 0.3);
	--c-focus-line: var(--c-primary);
	--c-accent-text: var(--c-primary);
	--c-danger: #ffa08f;
	background: var(--c-ink);
	color: var(--c-ink-text);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 5.5rem;
}

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font: 400 1rem/1.65 var(--f-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.wdx-locked {
	overflow: hidden;
}

img,
picture,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

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

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--f-display);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.01em;
	text-wrap: balance;
	/* A long word ("конфиденциальности") breaks on a narrow screen instead of widening the page. */
	overflow-wrap: break-word;
}

/* Hyphenated, and only long words, where the browser can limit it (Safari cannot: there such a word just breaks). */
@supports (hyphenate-limit-chars: 12 5 5) {
	h1,
	h2,
	h3,
	h4 {
		hyphens: auto;
		hyphenate-limit-chars: 12 5 5;
	}
}

h1 em,
h2 em,
h3 em {
	font-style: italic;
	color: var(--c-accent-text);
}

p {
	margin: 0;
}

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

:focus-visible {
	outline: 2px solid var(--c-accent);
	outline-offset: 3px;
}

.on-dark :focus-visible {
	outline-color: var(--c-primary);
}

::selection {
	background: var(--c-primary);
	color: var(--c-on-primary);
}

.visually-hidden,
.call-fab span {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -4rem;
	left: 1rem;
	z-index: 100;
	padding: 0.75rem 1.25rem;
	background: var(--c-primary);
	color: var(--c-on-primary);
	font-weight: 600;
	text-decoration: none;
}

.skip-link:focus {
	top: 1rem;
}

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

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

/* --------------------------------------------------------------------------
   Layout and type helpers
   -------------------------------------------------------------------------- */

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow {
	max-width: 52rem;
}

.section {
	padding-block: var(--section);
}

.section--tight {
	padding-block: clamp(3rem, 2rem + 3vw, 4.5rem);
}

.eyebrow {
	font: 600 0.7rem/1.5 var(--f-body);
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--c-accent-text);
}

.section-head {
	max-width: 42rem;
}

.section-head__title {
	margin-top: 1rem;
	font-size: var(--fs-h2);
	line-height: 1.1;
}

.section-head__text {
	margin-top: 1.25rem;
	max-width: 38rem;
	font-size: 1.125rem;
	color: var(--c-muted-text);
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none;
	color: var(--c-text);
}

.link-arrow .icon {
	transition: transform 0.25s var(--ease);
}

.link-arrow:hover .icon,
.product-card:hover .link-arrow .icon {
	transform: translateX(4px);
}

.link-list {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font: 500 1.5rem/1.3 var(--f-display);
}

.link-list .sub-menu {
	margin: 0.5rem 0 0 1.25rem;
	padding: 0;
	list-style: none;
	font-size: 1.125rem;
}

/* Text written in the editor. */
.entry-content > * + * {
	margin-top: 1.25em;
}

.entry-content {
	font-size: 1.0625rem;
}

.entry-content--lead {
	font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
	line-height: 1.7;
	color: var(--c-muted-text);
}

.entry-content--lead p:first-child {
	color: var(--c-text);
}

.entry-content h2 {
	margin-top: 2.5rem;
	font-size: 2.25rem;
}

.entry-content h3 {
	margin-top: 2rem;
	font-size: 1.75rem;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.25rem;
}

.entry-content li + li {
	margin-top: 0.4em;
}

.entry-content a:not(.btn) {
	color: var(--c-accent-text);
}

/* The editor's "Formatai". */
.entry-content .lead {
	font-size: 1.25rem;
	color: var(--c-text);
}

.entry-content .check-list {
	padding: 0;
	list-style: none;
}

.entry-content .check-list li {
	position: relative;
	padding-left: 1.9rem;
}

.entry-content .check-list li::before {
	content: "";
	position: absolute;
	top: 0.3em;
	left: 0;
	width: 1.15rem;
	height: 1.15rem;
	background: var(--c-accent-text);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.entry-content .highlight {
	padding: 1.5rem 1.75rem;
	border-left: 3px solid var(--c-primary);
	background: var(--c-secondary);
}

.entry-content .highlight > :first-child {
	margin-top: 0;
}

/* Tables in the editor's text (the privacy policy): scroll sideways on narrow screens instead of overflowing. */
.entry-content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.entry-content th,
.entry-content td {
	min-width: 8rem;
	padding: 0.6rem 0.9rem 0.6rem 0;
	border-bottom: 1px solid var(--c-border);
	text-align: left;
	vertical-align: top;
}

.entry-content th {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-muted-text);
}

.entry-content td:first-child {
	font-weight: 600;
	overflow-wrap: anywhere;
}

/* On phones each row becomes a block: the name first, then its details. */
@media (max-width: 639px) {
	.entry-content table,
	.entry-content tbody,
	.entry-content tr,
	.entry-content td {
		display: block;
	}

	.entry-content thead {
		display: none;
	}

	.entry-content tr {
		padding: 0.85rem 0;
		border-bottom: 1px solid var(--c-border);
	}

	.entry-content td {
		min-width: 0;
		padding: 0.1rem 0;
		border: 0;
	}

	.entry-content td + td {
		color: var(--c-muted-text);
	}
}

/* M Cookie Consent's [m_cookie_settings] button, as an outline button. */
.entry-content .mcc-open-settings {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.6rem 1.25rem;
	border: 1px solid var(--c-text);
	border-radius: var(--radius, 4px);
	background: transparent;
	color: var(--c-text);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.entry-content .mcc-open-settings:hover,
.entry-content .mcc-open-settings:focus-visible {
	background: var(--c-text);
	color: var(--c-bg, #fcf6ee);
}

/* About page: the company's own text next to the years of experience. */
.about--page .entry-content h2 {
	font-size: 1.75rem;
}

.entry-content .btn + .btn {
	margin-left: 0.75rem;
}

.wdx-embed {
	margin-block: 2rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	min-height: 3rem;
	padding: 0.85rem 1.75rem;
	border: 1px solid transparent;
	border-radius: var(--radius);
	background: transparent;
	font: 600 0.875rem/1.2 var(--f-body);
	letter-spacing: 0.01em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn .icon {
	flex: none;
}

.btn--sm {
	min-height: 2.5rem;
	padding: 0.55rem 1.15rem;
	font-size: 0.8125rem;
}

.btn--lg {
	min-height: 3.5rem;
	padding: 1rem 2rem;
}

.btn--block {
	width: 100%;
}

.btn--primary {
	background: var(--c-primary);
	color: var(--c-on-primary);
}

.btn--primary:hover {
	background: var(--c-accent);
}

.btn--outline {
	border-color: var(--c-field-line);
	color: var(--c-text);
}

.btn--outline:hover {
	border-color: var(--c-text);
	background: var(--c-text);
	color: var(--c-bg);
}

.on-dark .btn--outline:hover {
	color: var(--c-ink);
}

.btn--outline-light {
	border-color: rgb(251 240 224 / 0.4);
	color: var(--c-ink-text);
}

.btn--outline-light:hover {
	border-color: var(--c-primary);
	color: var(--c-primary);
}

.btn--dark {
	background: var(--c-ink);
	color: var(--c-ink-text);
}

.btn--dark:hover {
	background: #2b231d;
}

/* --------------------------------------------------------------------------
   Header and navigation
   -------------------------------------------------------------------------- */

.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	background: rgb(252 246 238 / 0.96);
	color: var(--c-text);
	box-shadow: 0 1px 0 var(--c-border);
	transition: background-color 0.3s, box-shadow 0.3s, color 0.3s;
}

/* With JavaScript the header starts transparent over the dark first section and turns solid on scroll. */
.js .site-header:not(.is-solid),
.site-header.is-menu-open {
	background: transparent;
	box-shadow: none;
	color: var(--c-ink-text);
}

.site-header.is-solid:not(.is-menu-open) {
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

/* A soft shade behind the transparent header keeps the menu readable over bright photos. */
.js .site-header:not(.is-solid):not(.is-menu-open)::before {
	content: "";
	position: absolute;
	inset: 0 0 -2.5rem;
	z-index: -1;
	background: linear-gradient(180deg, rgb(12 8 6 / 0.6) 0%, rgb(12 8 6 / 0) 100%);
	pointer-events: none;
}

.site-header__bar {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-height: var(--header-h);
	transition: min-height 0.3s var(--ease);
}

.site-header.is-solid:not(.is-menu-open) .site-header__bar {
	min-height: 4.5rem;
}

.site-header__logo {
	position: relative;
	z-index: 2;
	flex: none;
	display: block;
}

.logo img {
	width: auto;
	height: 3.5rem;
	transition: height 0.3s var(--ease);
}

@media (min-width: 1024px) {
	.site-header .logo img {
		height: 4rem;
	}
}

.site-header.is-solid:not(.is-menu-open) .logo img {
	height: 2.75rem;
}

.site-header .logo--light,
.js .site-header:not(.is-solid) .logo--dark,
.site-header.is-menu-open .logo--dark {
	display: none;
}

.js .site-header:not(.is-solid) .logo--light,
.site-header.is-menu-open .logo--light {
	display: block;
}

.site-header__actions {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-left: auto;
}

.site-header__phone {
	border-color: var(--c-field-line);
	color: var(--c-text);
}

.js .site-header:not(.is-solid) .site-header__phone {
	border-color: rgb(248 195 132 / 0.6);
	color: var(--c-primary);
}

.js .site-header:not(.is-solid) .site-header__phone:hover {
	background: var(--c-primary);
	color: var(--c-on-primary);
}

.site-header__toggle {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	margin-right: -0.5rem;
	border: 0;
	background: none;
	cursor: pointer;
}

.site-header__toggle .icon-close,
.site-header.is-menu-open .site-header__toggle .icon-open {
	display: none;
}

.site-header.is-menu-open .site-header__toggle .icon-close {
	display: block;
}

.site-nav__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list a {
	text-decoration: none;
}

.sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav__sub-toggle {
	display: inline-grid;
	place-items: center;
	padding: 0.25rem;
	border: 0;
	background: none;
	color: inherit;
	opacity: 0.75;
	cursor: pointer;
}

.nav__sub-toggle .icon {
	transition: transform 0.2s;
}

.is-open > .nav__sub-toggle .icon {
	transform: rotate(180deg);
}

.lang-switch {
	display: flex;
	gap: 0.1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
}

.lang-switch a,
.lang-switch span {
	display: inline-block;
	padding: 0.4rem 0.45rem;
	text-decoration: none;
	opacity: 0.6;
}

.lang-switch a:hover {
	opacity: 1;
}

.lang-switch [aria-current] {
	opacity: 1;
	color: var(--c-accent-text);
}

.js .site-header:not(.is-solid) .lang-switch [aria-current],
.site-nav__extras .lang-switch [aria-current] {
	color: var(--c-primary);
}

/* Small screens: the navigation is a full-screen panel. */
@media (max-width: 1023.98px) {
	.site-nav {
		position: fixed;
		inset: 0;
		z-index: 1;
		display: flex;
		flex-direction: column;
		padding: calc(var(--header-h) + 1rem) var(--gutter) 0;
		overflow-y: auto;
		background: var(--c-ink);
		color: var(--c-ink-text);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.25s var(--ease), visibility 0.25s;
	}

	.site-header.is-menu-open .site-nav {
		opacity: 1;
		visibility: visible;
	}

	.site-nav__list {
		font: 500 1.875rem/1.2 var(--f-display);
	}

	.site-nav__list > li {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		border-bottom: 1px solid rgb(251 240 224 / 0.12);
	}

	.site-nav__list > li > a {
		flex: 1;
		padding: 0.85rem 0;
	}

	.site-nav__list .nav__sub-toggle {
		width: 2.75rem;
		height: 2.75rem;
	}

	.site-nav__list .sub-menu {
		display: none;
		flex-basis: 100%;
		padding: 0 0 1rem 1rem;
		font: 400 1.0625rem/1.4 var(--f-body);
	}

	.site-nav__list .is-open > .sub-menu {
		display: block;
	}

	.site-nav__list .sub-menu a {
		display: block;
		padding: 0.55rem 0;
		opacity: 0.85;
	}

	.site-nav__extras {
		display: grid;
		gap: 1.1rem;
		padding: 2rem 0 calc(2.5rem + env(safe-area-inset-bottom));
	}

	.site-nav__phone,
	.site-nav__email {
		display: inline-flex;
		align-items: center;
		gap: 0.75rem;
		font-size: 1.125rem;
		text-decoration: none;
	}

	.site-nav__phone .icon,
	.site-nav__email .icon {
		color: var(--c-primary);
	}

	.site-nav__extras .btn {
		margin-top: 0.5rem;
	}

	.site-header__langs,
	.site-header__phone,
	.site-header__cta {
		display: none;
	}
}

/* Large screens: inline navigation with hover / keyboard dropdowns. */
@media (min-width: 1024px) {
	.site-nav {
		display: flex;
		flex: 1;
		justify-content: center;
	}

	.site-nav__extras,
	.site-header__toggle {
		display: none;
	}

	.site-nav__list {
		display: flex;
		gap: 2rem;
		font-size: 0.875rem;
	}

	.site-nav__list > li {
		position: relative;
		display: flex;
		align-items: center;
	}

	.site-nav__list > li > a {
		padding-block: 0.5rem;
		opacity: 0.85;
		transition: opacity 0.2s, color 0.2s;
	}

	.site-nav__list > li > a:hover,
	.site-nav__list > .current-menu-item > a,
	.site-nav__list > .current-menu-ancestor > a {
		opacity: 1;
		color: var(--c-accent-text);
	}

	.js .site-header:not(.is-solid) .site-nav__list > li > a:hover,
	.js .site-header:not(.is-solid) .site-nav__list > .current-menu-item > a,
	.js .site-header:not(.is-solid) .site-nav__list > .current-menu-ancestor > a {
		color: var(--c-primary);
	}

	.site-nav__list .sub-menu {
		position: absolute;
		top: 100%;
		left: -1.25rem;
		min-width: 16rem;
		padding: 0.75rem 0;
		border: 1px solid rgb(251 240 224 / 0.1);
		background: #1a1410;
		box-shadow: 0 18px 40px rgb(12 8 6 / 0.3);
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
	}

	.site-nav__list li:hover > .sub-menu,
	.site-nav__list li:focus-within > .sub-menu,
	.site-nav__list li.is-open > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.site-nav__list .sub-menu a {
		display: block;
		padding: 0.6rem 1.25rem;
		color: var(--c-ink-text);
		opacity: 0.85;
	}

	.site-nav__list .sub-menu a:hover,
	.site-nav__list .sub-menu .current-menu-item > a {
		opacity: 1;
		color: var(--c-primary);
	}
}

@media (min-width: 1024px) and (max-width: 1279.98px) {
	.site-header__cta {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   Home: hero
   -------------------------------------------------------------------------- */

.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 92vh;
	min-height: 92svh;
	overflow: hidden;
}

.hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__shade {
	position: absolute;
	inset: 0;
	/* The design's vertical shade, plus a light one from the left where the text sits. */
	background: linear-gradient(90deg, rgb(12 8 6 / 0.5) 0%, rgb(12 8 6 / 0.15) 55%, rgb(12 8 6 / 0) 80%), var(--shade);
}

.hero__content {
	position: relative;
	padding-block: calc(var(--header-h) + 4rem) clamp(3.5rem, 2rem + 4vw, 5rem);
}

.hero__eyebrow {
	color: var(--c-primary);
}

.hero__title {
	margin-top: 1.5rem;
	max-width: 56rem;
	font-size: var(--fs-h1);
	line-height: 1.02;
}

.hero__title em {
	color: var(--c-primary);
}

.hero__text {
	margin-top: 1.5rem;
	max-width: 36rem;
	font-size: 1.125rem;
	color: rgb(251 240 224 / 0.85);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 2.5rem;
}

@media (max-width: 639.98px) {
	.hero__actions .btn,
	.page-hero__actions .btn,
	.developers__actions .btn {
		flex: 1 1 100%;
	}
}

.hero__note {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 1rem;
	margin-top: 2rem;
	font-size: 0.9375rem;
	color: rgb(251 240 224 / 0.8);
}

.hero__phone {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	color: var(--c-primary);
	text-decoration: none;
}

.hero__phone:hover span {
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Home: products
   -------------------------------------------------------------------------- */

.products__grid {
	display: grid;
	gap: 3rem;
	margin-top: 4rem;
}

.product-card {
	position: relative;
}

.product-card__media {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--c-muted);
}

.product-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--ease);
}

.product-card:hover .product-card__image {
	transform: scale(1.05);
}

.product-card__title {
	margin-top: 1.5rem;
	font-size: 1.875rem;
}

.product-card__link {
	text-decoration: none;
}

.product-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.product-card__link:focus-visible {
	outline: none;
}

.product-card__link:focus-visible::after {
	outline: 2px solid var(--c-accent);
	outline-offset: 4px;
}

.product-card__text {
	margin-top: 0.75rem;
	color: var(--c-muted-text);
}

.product-card .link-arrow {
	margin-top: 1.25rem;
}

.products__more {
	margin-top: 3rem;
}

@media (min-width: 768px) {
	.products__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
	}
}

/* --------------------------------------------------------------------------
   Home: developers
   -------------------------------------------------------------------------- */

.developers__grid {
	display: grid;
	gap: 4rem;
}

.developers .eyebrow {
	color: var(--c-primary);
}

.benefits {
	display: grid;
	gap: 2.5rem;
	margin-top: 3rem;
}

.benefit {
	padding-top: 1.25rem;
	border-top: 1px solid var(--c-border);
}

.benefit__number {
	font: 500 1.5rem/1 var(--f-display);
	color: var(--c-primary);
}

.benefit__title {
	margin-top: 0.5rem;
	font-size: 1.5rem;
}

.benefit__text {
	margin-top: 0.5rem;
	font-size: 0.875rem;
	color: var(--c-muted-text);
}

.developers__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 3rem;
}

.developers__more {
	margin-top: 1.75rem;
	color: var(--c-primary);
}

.developers__image {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

@media (min-width: 640px) {
	.benefits {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.developers__grid {
		grid-template-columns: 1fr 1fr;
		align-items: center;
	}

	.developers__image {
		aspect-ratio: 3 / 4;
	}

	/* Developers page: the photo is in the page hero, so the text and benefits use the full width. */
	.developers--wide .developers__grid {
		grid-template-columns: 1fr;
	}

	.developers--wide .section-head {
		max-width: 50rem;
	}

	.developers--wide .benefits {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* --------------------------------------------------------------------------
   Process
   -------------------------------------------------------------------------- */

.steps {
	display: grid;
	gap: 1px;
	margin: 4rem 0 0;
	padding: 0;
	list-style: none;
	background: var(--c-border);
}

.step {
	padding: 2rem;
	background: var(--c-bg);
}

.step__number {
	font: 500 3.75rem/1 var(--f-display);
	color: var(--c-primary);
}

.step__title {
	margin-top: 1rem;
	font-size: 1.5rem;
}

.step__text {
	margin-top: 0.5rem;
	font-size: 0.875rem;
	color: var(--c-muted-text);
}

@media (min-width: 640px) {
	.steps {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.steps {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about {
	background: var(--c-secondary);
}

.about__grid {
	display: grid;
	gap: 3rem;
}

.about__number {
	margin-top: 1.25rem;
	font: 500 clamp(5rem, 3.5rem + 5vw, 6.5rem)/1 var(--f-display);
	color: var(--c-accent-large);
}

.about__number-text {
	margin-top: 0.5rem;
	color: var(--c-muted-text);
}

.about__title {
	font-size: clamp(2.25rem, 1.7rem + 2.2vw, 3rem);
}

.about__text {
	margin-top: 1.5rem;
	font-size: 1.125rem;
	color: var(--c-muted-text);
}

.about .link-arrow {
	margin-top: 2rem;
}

@media (min-width: 768px) {
	.about__grid {
		grid-template-columns: 1fr 1.4fr;
	}
}

/* --------------------------------------------------------------------------
   Projects teaser
   -------------------------------------------------------------------------- */

.projects__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
}

.projects__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
	margin: 3rem 0 0;
	padding: 0;
	list-style: none;
}

.projects__item {
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--c-muted);
}

.projects__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--ease);
}

.projects__item:hover .projects__image {
	transform: scale(1.04);
}

@media (min-width: 1024px) {
	.projects__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 1rem;
	}
}

/* --------------------------------------------------------------------------
   Manufacturers
   -------------------------------------------------------------------------- */

.brands {
	padding-block: 2.75rem;
	border-block: 1px solid var(--c-border);
}

.brands__inner {
	display: grid;
	gap: 1.25rem;
}

.brands__title {
	color: var(--c-muted-text);
}

.brands__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 2.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font: 500 1.625rem/1.3 var(--f-display);
	color: var(--c-text);
}

@media (min-width: 1024px) {
	.brands__inner {
		grid-template-columns: 16rem 1fr;
		align-items: center;
		gap: 3rem;
	}
}

/* --------------------------------------------------------------------------
   Questions
   -------------------------------------------------------------------------- */

.faq-section__grid {
	display: grid;
	gap: 3rem;
}

.faq {
	border-top: 1px solid var(--c-border);
}

.faq__item {
	border-bottom: 1px solid var(--c-border);
}

.faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.4rem 0;
	list-style: none;
	cursor: pointer;
	font: 500 1.375rem/1.3 var(--f-display);
}

.faq__question::-webkit-details-marker {
	display: none;
}

.faq__icon {
	flex: none;
	color: var(--c-accent-text);
	transition: transform 0.25s var(--ease);
}

.faq__item[open] .faq__icon {
	transform: rotate(45deg);
}

.faq__answer {
	max-width: 46rem;
	padding-bottom: 1.5rem;
	color: var(--c-muted-text);
}

@media (min-width: 1024px) {
	.faq-section__grid {
		grid-template-columns: 1fr 1.6fr;
	}
}

/* --------------------------------------------------------------------------
   Contact and the lead form
   -------------------------------------------------------------------------- */

.contact__grid {
	display: grid;
	gap: 4rem;
}

.contact .eyebrow {
	color: var(--c-primary);
}

.contact__list {
	display: grid;
	gap: 1.25rem;
	margin: 3rem 0 0;
	font-size: 1.125rem;
}

.contact__list dt {
	color: var(--c-muted-text);
}

.contact__list dd {
	margin: 0.35rem 0 0;
}

.contact__list a {
	text-decoration: none;
}

.contact__list a:hover {
	color: var(--c-primary);
}

.contact__sep {
	margin-inline: 0.35rem;
	opacity: 0.5;
}

.contact__map {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	margin-left: 0.6rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--c-primary);
}

@media (min-width: 1024px) {
	.contact__grid {
		grid-template-columns: 1fr 1fr;
	}

	.contact__form {
		align-self: end;
	}
}

.lead-form__grid {
	display: grid;
	gap: 1.5rem;
}

.field {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.field__label {
	padding: 0;
	font: 600 0.68rem/1.4 var(--f-body);
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--c-muted-text);
}

.field__req {
	color: var(--c-accent-text);
}

.field__input {
	width: 100%;
	margin-top: 0.35rem;
	padding: 0.65rem 0;
	border: 0;
	border-bottom: 1px solid var(--c-field-line);
	border-radius: 0;
	background: transparent;
	font-size: 1rem;
	outline: none;
	transition: border-color 0.2s;
}

.field__input:focus {
	border-bottom-color: var(--c-focus-line);
	box-shadow: 0 1px 0 var(--c-focus-line);
}

.field__input::placeholder {
	color: var(--c-muted-text);
	opacity: 0.6;
}

textarea.field__input {
	min-height: 5.5rem;
	resize: vertical;
}

input[type="number"].field__input {
	-moz-appearance: textfield;
}

input[type="number"].field__input::-webkit-inner-spin-button,
input[type="number"].field__input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.field.has-error .field__input {
	border-bottom-color: var(--c-danger);
}

.field__error {
	margin-top: 0.4rem;
	font-size: 0.8125rem;
	color: var(--c-danger);
}

.field__error:empty {
	display: none;
}

.field--houses[hidden] {
	display: none;
}

.choice__options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.choice__option {
	position: relative;
}

.choice__option input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.choice__option span {
	display: inline-block;
	padding: 0.55rem 1rem;
	border: 1px solid var(--c-field-line);
	border-radius: 999px;
	font-size: 0.875rem;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.choice__option input:checked + span {
	border-color: var(--c-primary);
	background: var(--c-primary);
	color: var(--c-on-primary);
}

.choice__option input:focus-visible + span {
	outline: 2px solid var(--c-focus-line);
	outline-offset: 2px;
}

.dropzone {
	position: relative;
	margin-top: 0.6rem;
	padding: 1.1rem 1.25rem;
	border: 1px dashed var(--c-field-line);
	border-radius: var(--radius);
	transition: border-color 0.2s, background-color 0.2s;
}

.dropzone.is-dragover {
	border-color: var(--c-primary);
	background: rgb(248 195 132 / 0.08);
}

.dropzone__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.dropzone__label {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.9375rem;
	cursor: pointer;
}

.dropzone__label .icon {
	flex: none;
	color: var(--c-accent-text);
}

.dropzone__label strong {
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.dropzone__input:focus-visible + .dropzone__label {
	outline: 2px solid var(--c-focus-line);
	outline-offset: 4px;
}

.dropzone__hint {
	margin-top: 0.4rem;
	font-size: 0.8125rem;
	color: var(--c-muted-text);
}

.dropzone__list {
	display: grid;
	gap: 0.5rem;
	margin: 0.85rem 0 0;
	padding: 0;
	list-style: none;
}

.dropzone__list:empty {
	display: none;
}

.dropzone__file {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.45rem 0.5rem 0.45rem 0.75rem;
	border-radius: var(--radius);
	background: rgb(248 195 132 / 0.12);
	font-size: 0.875rem;
}

.dropzone__file-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dropzone__file-size {
	color: var(--c-muted-text);
	font-variant-numeric: tabular-nums;
}

.dropzone__remove {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border: 0;
	border-radius: var(--radius);
	background: none;
	cursor: pointer;
	opacity: 0.75;
}

.dropzone__remove:hover {
	opacity: 1;
	background: rgb(248 195 132 / 0.2);
}

.lead-form__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	margin-top: 2rem;
}

.lead-form__privacy {
	flex: 1 1 15rem;
	font-size: 0.8125rem;
	color: var(--c-muted-text);
}

.lead-form__status {
	margin-top: 1.25rem;
	padding: 1rem 1.25rem;
	border-left: 3px solid var(--c-primary);
	background: rgb(248 195 132 / 0.12);
	font-size: 0.9375rem;
}

.lead-form__status:empty {
	display: none;
}

.lead-form__status.is-error {
	border-left-color: var(--c-danger);
}

/* A field people never see: bots fill it in. */
.lead-form__trap {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.lead-form.is-sending .lead-form__submit {
	cursor: progress;
	opacity: 0.7;
}

.lead-form__progress {
	margin-top: 1.5rem;
}

.lead-form__bar {
	height: 6px;
	overflow: hidden;
	border-radius: 3px;
	background: var(--c-border);
}

.lead-form__bar span {
	display: block;
	width: 0;
	height: 100%;
	background: var(--c-primary);
	transition: width 0.3s var(--ease);
}

.lead-form__progress-text {
	margin-top: 0.5rem;
	font-size: 0.875rem;
	color: var(--c-muted-text);
	font-variant-numeric: tabular-nums;
}

/* The message that replaces a sent form. */
.lead-success {
	padding: clamp(1.75rem, 1rem + 2vw, 2.5rem);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
}

.lead-success:focus {
	outline: none;
}

.lead-success__icon {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	margin-bottom: 1.25rem;
	border-radius: 50%;
	background: var(--c-primary);
	color: var(--c-on-primary);
}

.lead-success__title {
	font: 400 clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem) / 1.2 var(--f-display);
}

.lead-success__number {
	margin-top: 0.75rem;
	font-size: 0.9375rem;
	color: var(--c-muted-text);
}

.lead-success__number strong {
	color: var(--c-text);
	letter-spacing: 0.02em;
}

.lead-success__text {
	margin-block: 0.75rem 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
	.lead-form__bar span {
		transition: none;
	}
}

@media (min-width: 640px) {
	.lead-form__grid {
		grid-template-columns: 1fr 1fr;
	}

	.field--full {
		grid-column: 1 / -1;
	}
}

/* --------------------------------------------------------------------------
   Inner pages: hero, systems, call-to-action band
   -------------------------------------------------------------------------- */

.page-hero {
	padding-block: calc(var(--header-h) + 3rem) clamp(3.5rem, 2rem + 4vw, 5.5rem);
}

.page-hero .eyebrow {
	color: var(--c-primary);
}

/* Two dark sections in a row (contacts): a hairline keeps them apart. */
.page-hero + .on-dark {
	border-top: 1px solid rgb(251 240 224 / 0.1);
}

.page-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 3rem;
	align-items: center;
}

.page-hero__title {
	margin-top: 1.25rem;
	max-width: 44rem;
	font-size: clamp(2.6rem, 1.6rem + 3.8vw, 4.75rem);
	line-height: 1.04;
}

.page-hero__intro {
	margin-top: 1.5rem;
	max-width: 38rem;
	font-size: 1.125rem;
	color: var(--c-muted-text);
}

.page-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 2.25rem;
}

.page-hero__image {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

@media (min-width: 1024px) {
	.page-hero--media .page-hero__grid {
		grid-template-columns: 1.25fr 1fr;
	}

	.page-hero__image {
		aspect-ratio: 4 / 5;
		max-height: 34rem;
	}
}

.systems {
	background: var(--c-secondary);
}

.systems__list {
	display: grid;
	gap: 1.5rem;
	margin-top: 3.5rem;
}

.system {
	display: grid;
	gap: 1.75rem;
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: var(--c-card);
}

.system__media {
	display: grid;
	place-items: center;
	max-width: 12rem;
	aspect-ratio: 1;
	padding: 0.75rem;
	border: 1px solid var(--c-border);
	background: #fff;
}

.system__image {
	width: auto;
	max-height: 100%;
	object-fit: contain;
}

.system__title {
	margin-top: 0.5rem;
	font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
}

.system__text {
	margin-top: 1rem;
	color: var(--c-muted-text);
}

.system__text p + p {
	margin-top: 0.75em;
}

.system__features {
	display: grid;
	gap: 0.5rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.9375rem;
}

.system__features li {
	display: flex;
	gap: 0.6rem;
}

.system__features .icon {
	flex: none;
	margin-top: 0.2rem;
	color: var(--c-accent-text);
}

.system {
	position: relative;
}

.system__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	margin-top: 1.75rem;
}

.system__specs {
	align-self: start;
	margin: 0;
	border-top: 1px solid var(--c-border);
}

.system__spec {
	display: grid;
	grid-template-columns: minmax(7.5rem, 1fr) 1.2fr;
	gap: 1rem;
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--c-border);
	font-size: 0.875rem;
}

.system__spec dt {
	color: var(--c-muted-text);
	/* Long labels ("Воздухонепроницаемость") break inside the column on phones. */
	overflow-wrap: anywhere;
	hyphens: auto;
}

.system__spec dd {
	margin: 0;
	font-weight: 600;
}

@media (min-width: 768px) {
	.system {
		grid-template-columns: 11rem 1fr;
	}

	.system__specs {
		grid-column: 1 / -1;
	}
}

@media (min-width: 768px) {
	.system--no-media {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 1280px) {
	.system {
		grid-template-columns: 11rem 1.25fr 1fr;
		align-items: start;
	}

	.system__specs {
		grid-column: auto;
	}

	/* Without a product image the text takes the image's column too. */
	.system--no-media {
		grid-template-columns: 1.6fr 1fr;
	}
}

.cta-band {
	padding-block: 3.5rem;
	background: var(--c-primary);
	color: var(--c-on-primary);
}

.cta-band__inner {
	display: grid;
	gap: 2rem;
	align-items: center;
}

.cta-band__title {
	font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.cta-band__text {
	margin-top: 0.75rem;
	opacity: 0.8;
}

.cta-band__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.cta-band .btn--outline {
	border-color: rgb(17 12 9 / 0.45);
	color: var(--c-on-primary);
}

.cta-band .btn--outline:hover {
	background: var(--c-ink);
	color: var(--c-ink-text);
}

@media (min-width: 1024px) {
	.cta-band__inner {
		grid-template-columns: 1fr auto;
	}
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
	padding-top: 4.5rem;
	border-top: 1px solid rgb(251 240 224 / 0.1);
}

.site-footer .eyebrow {
	color: var(--c-primary);
}

.site-footer__grid {
	display: grid;
	gap: 3rem;
}

.site-footer__brand .logo img {
	height: 5.5rem;
}

.site-footer__brand p {
	max-width: 22rem;
	margin-top: 1.5rem;
	font-size: 0.9375rem;
	color: var(--c-muted-text);
}

.site-footer__title {
	margin-bottom: 1.25rem;
	font-family: var(--f-body);
}

.site-footer__links,
.site-footer__contacts {
	display: grid;
	gap: 0.7rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.9375rem;
}

.site-footer a {
	text-decoration: none;
	opacity: 0.85;
	transition: opacity 0.2s, color 0.2s;
}

.site-footer a:hover {
	opacity: 1;
	color: var(--c-primary);
}

.site-footer__contacts li,
.site-footer__contacts a {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.6rem;
}

.site-footer__contacts .icon {
	flex: none;
	margin-top: 0.2rem;
	color: var(--c-primary);
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	margin-top: 4rem;
	padding-block: 1.75rem calc(1.75rem + env(safe-area-inset-bottom));
	border-top: 1px solid rgb(251 240 224 / 0.1);
	font-size: 0.8125rem;
	color: rgb(251 240 224 / 0.55);
}

@media (max-width: 767.98px) {
	/* Room for the floating call button below the last line. */
	.site-footer__bottom {
		padding-bottom: calc(6rem + env(safe-area-inset-bottom));
	}
}

/* "Sukūrė" and the Majevski wordmark: centred between the company line and the copyright on wide screens, the last
   line on narrower ones. */
.site-footer__credit a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.site-footer__credit img {
	width: auto;
	height: 1.25rem;
}

@media (max-width: 1023.98px) {
	.site-footer__credit {
		order: 1;
		flex-basis: 100%;
	}
}

@media (min-width: 1024px) {
	.site-footer__bottom {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		align-items: center;
	}

	.site-footer__bottom > :last-child {
		justify-self: end;
	}
}

@media (min-width: 768px) {
	.site-footer__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.site-footer__grid {
		grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	}
}

/* --------------------------------------------------------------------------
   Floating call button (small screens)
   -------------------------------------------------------------------------- */

.call-fab {
	position: fixed;
	right: max(1rem, env(safe-area-inset-right));
	bottom: max(1rem, env(safe-area-inset-bottom));
	z-index: 40;
	display: grid;
	place-items: center;
	width: 3.75rem;
	height: 3.75rem;
	border-radius: 50%;
	background: var(--c-primary);
	color: var(--c-on-primary);
	box-shadow: 0 10px 30px rgb(12 8 6 / 0.35);
	text-decoration: none;
	transition: transform 0.2s var(--ease), background-color 0.2s;
}

.call-fab .icon {
	width: 1.6rem;
	height: 1.6rem;
}

.call-fab::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 2px solid var(--c-primary);
	border-radius: inherit;
	animation: wdx-pulse 2.6s var(--ease) infinite;
}

.call-fab:active {
	transform: scale(0.94);
}

.wdx-locked .call-fab {
	display: none;
}

@keyframes wdx-pulse {
	0% {
		transform: scale(1);
		opacity: 0.7;
	}

	70%,
	100% {
		transform: scale(1.55);
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.call-fab::before {
		display: none;
	}
}

@media (min-width: 768px) {
	.call-fab {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   Photo gallery and lightbox
   -------------------------------------------------------------------------- */

.projects-intro {
	max-width: 46rem;
	margin-bottom: 2.5rem;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gallery-grid__link {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--c-muted);
}

.gallery-grid__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.gallery-grid__link:hover .gallery-grid__image {
	transform: scale(1.04);
}

@media (min-width: 1024px) {
	.gallery-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 1rem;
	}
}

.lightbox {
	width: 100vw;
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgb(12 8 6 / 0.96);
	color: var(--c-ink-text);
}

.lightbox::backdrop {
	background: rgb(12 8 6 / 0.9);
}

.lightbox__figure {
	display: grid;
	place-items: center;
	height: 100%;
	margin: 0;
	padding: 4rem 1rem 3rem;
}

.lightbox__image {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: calc(100dvh - 7rem);
	object-fit: contain;
}

.lightbox__count {
	position: absolute;
	bottom: 1rem;
	left: 50%;
	transform: translateX(-50%);
	font-size: 0.875rem;
	opacity: 0.7;
}

.lightbox__btn {
	position: absolute;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border: 0;
	border-radius: 50%;
	background: rgb(251 240 224 / 0.12);
	color: inherit;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}

.lightbox__btn:hover {
	background: rgb(251 240 224 / 0.22);
}

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

.lightbox__prev {
	left: 1rem;
}

.lightbox__next {
	right: 1rem;
}

.lightbox__close {
	top: 1rem;
	right: 1rem;
}

/* --------------------------------------------------------------------------
   Map (loaded on request) and contact list
   -------------------------------------------------------------------------- */

.map {
	position: relative;
	min-height: 18rem;
	aspect-ratio: 16 / 7;
	overflow: hidden;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: var(--c-secondary);
}

.map__placeholder {
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 0.75rem;
	height: 100%;
	padding: 2rem;
	text-align: center;
}

.map__icon {
	color: var(--c-accent-text);
}

.map__address {
	font: 500 1.5rem/1.2 var(--f-display);
}

.map__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.map__note {
	font-size: 0.8125rem;
	color: var(--c-muted-text);
}

.map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 639.98px) {
	.map {
		min-height: 22rem;
		aspect-ratio: auto;
	}
}

.contact-list {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact-list li,
.contact-list a {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.6rem;
	text-decoration: none;
}

.contact-list .icon {
	flex: none;
	margin-top: 0.2rem;
	color: var(--c-accent-text);
}

.faq-intro {
	margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   Signed-in editors: admin bar offset and "Redaguoti" shortcuts
   -------------------------------------------------------------------------- */

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.section,
.page-hero,
.brands,
.site-footer {
	position: relative;
}

.wdx-edit {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 6;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.4rem 0.75rem;
	border-radius: 999px;
	background: var(--c-ink);
	color: var(--c-ink-text);
	font: 600 0.75rem/1 var(--f-body);
	text-decoration: none;
	box-shadow: 0 4px 14px rgb(12 8 6 / 0.25);
	opacity: 0.85;
	transition: opacity 0.2s, background-color 0.2s;
}

.wdx-edit:hover {
	opacity: 1;
	background: var(--c-accent);
	color: var(--c-on-primary);
}

.on-dark > .wdx-edit {
	background: var(--c-primary);
	color: var(--c-on-primary);
}

.hero > .wdx-edit,
.page-hero > .wdx-edit {
	top: calc(var(--header-h) + 0.75rem);
}

.system > .wdx-edit {
	top: 0.75rem;
	right: 0.75rem;
}

/* --------------------------------------------------------------------------
   Quote dialog
   -------------------------------------------------------------------------- */

.modal {
	width: min(46rem, calc(100% - 2rem));
	max-height: calc(100dvh - 2rem);
	padding: 0;
	border: 0;
	border-radius: var(--radius);
	background: var(--c-bg);
	color: var(--c-text);
	box-shadow: 0 30px 80px rgb(12 8 6 / 0.45);
}

.modal[open] {
	animation: wdx-modal-in 0.3s var(--ease);
}

.modal::backdrop {
	background: rgb(12 8 6 / 0.7);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.modal__inner {
	position: relative;
	max-height: inherit;
	padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
	overflow-y: auto;
}

.modal__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	border-radius: var(--radius);
	background: none;
	cursor: pointer;
}

.modal__close:hover {
	background: var(--c-muted);
}

.modal__title {
	margin-top: 0.75rem;
	padding-right: 2.5rem;
	font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
}

.modal__text {
	margin-top: 0.75rem;
	color: var(--c-muted-text);
}

.modal .lead-form {
	margin-top: 2rem;
}

.modal__alt {
	margin-top: 1.5rem;
	font-size: 0.9375rem;
	color: var(--c-muted-text);
}

.modal__alt a {
	font-weight: 600;
	color: var(--c-text);
}

@keyframes wdx-modal-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
}

@media (max-width: 639.98px) {
	.modal {
		width: 100%;
		max-width: none;
		height: 100dvh;
		max-height: 100dvh;
		margin: 0;
		border-radius: 0;
	}
}
