/* Thermo Diesel onepage theme */

@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/barlow-normal-400.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/barlow-normal-500.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/barlow-normal-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/barlow-normal-700.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/source-serif-4-normal-400-700.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400 700; font-display: swap; src: url(../fonts/source-serif-4-italic-400-700.woff2) format('woff2'); }

:root {
	--navy: #0a2647;
	--blue: #2160a7;
	--blue-d: #174a85;
	--ice: #84d0e8;
	--cyan: #2db3e8;
	--frost: #f2f7fb;
	--ink: #0c1c2e;
	--muted: #51647a;
	--line: rgba(10, 38, 71, .16);
	--side: 288px;
	--top: 64px;
	--serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
	--sans: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--pad-x: clamp(24px, 5.5vw, 96px);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
	scroll-behavior: smooth;
	scroll-snap-type: y proximity;
	-webkit-text-size-adjust: 100%;
}
@media (min-width: 1025px) and (min-height: 620px) {
	html { scroll-snap-type: y mandatory; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body {
	margin: 0;
	padding-left: var(--side);
	background: var(--navy);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--sans);
	-webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; }

.screen-reader-text, .sprite {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.skip-link {
	position: absolute;
	top: 8px;
	left: -999px;
	z-index: 100;
	padding: .6em 1em;
	background: #fff;
	color: var(--navy);
}
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

/* Typography */
h1, h2, h3 {
	margin: 0 0 .5em;
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -.01em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.8rem, 6.2vw, 5.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(2.1rem, 3.6vw, 3.4rem); }
h3 { font-size: 1.35rem; }

.kicker {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 1.1rem;
	color: var(--blue);
	font: 600 .8125rem/1 var(--sans);
	letter-spacing: .18em;
	text-transform: uppercase;
}
.kicker::before { content: ""; width: 36px; height: 2px; background: currentColor; }
.slide--dark .kicker { color: var(--ice); }

.lead { font-size: clamp(1.125rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink); }
.lead--serif { font: italic 500 clamp(1.4rem, 2.2vw, 1.9rem)/1.3 var(--serif); }
.slide--dark .lead { color: #fff; }

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	padding: .95em 1.6em;
	border: 2px solid transparent;
	border-radius: 2px;
	font: 600 .875rem/1 var(--sans);
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-d); }
.btn--outline { border-color: var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }
.slide--dark .btn--primary { background: var(--ice); color: var(--navy); }
.slide--dark .btn--primary:hover { background: #fff; }
.slide--dark .btn--outline, .btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.slide--dark .btn--outline:hover, .btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 1.4em; }

.link-btn {
	padding: 0;
	border: 0;
	background: none;
	color: var(--blue);
	font: 600 1rem/1.4 var(--sans);
	text-decoration: underline;
	text-underline-offset: 4px;
	cursor: pointer;
}

/* Sidebar */
.side {
	position: fixed;
	inset: 0 auto 0 0;
	z-index: 60;
	display: flex;
	flex-direction: column;
	width: var(--side);
	background: var(--navy);
	color: #fff;
	border-right: 1px solid rgba(255, 255, 255, .08);
}
.side__brand { display: block; padding: 32px 36px 12px; }
.side__brand img { width: 100%; max-width: 210px; height: auto; }
.side__toggle { display: none; }
.side__panel {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: space-between;
	min-height: 0;
	padding: 0 28px 28px 36px;
}
.side__nav { margin: auto 0; }

.menu { position: relative; margin: 0; padding: 0 0 0 28px; list-style: none; }
.menu::before, .menu::after { content: ""; position: absolute; left: 0; top: 19px; width: 2px; }
.menu::before { bottom: 19px; background: rgba(255, 255, 255, .16); }
.menu::after {
	height: calc((100% - 38px) * var(--p, 0));
	background: linear-gradient(var(--ice), var(--cyan));
	transition: height .7s var(--ease);
}
.menu li { position: relative; }
.menu li::before {
	content: "";
	position: absolute;
	top: 50%;
	left: -28px;
	width: 8px;
	height: 2px;
	background: rgba(255, 255, 255, .3);
	transition: width .3s var(--ease), background-color .3s;
}
.menu li:has(a[aria-current="true"])::before { width: 16px; background: var(--ice); }
.menu a {
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding: 11px 0;
	color: rgba(255, 255, 255, .72);
	font: 500 1.0625rem/1.2 var(--sans);
	letter-spacing: .02em;
	text-decoration: none;
	transition: color .2s;
}
.menu a:hover, .menu a[aria-current="true"] { color: #fff; }
.menu a[aria-current="true"] { font-weight: 600; }
.menu__n {
	min-width: 1.7em;
	color: rgba(255, 255, 255, .4);
	font-size: .75rem;
	letter-spacing: .14em;
	font-variant-numeric: tabular-nums;
}
.menu a[aria-current="true"] .menu__n { color: var(--ice); }

.side__foot {
	display: grid;
	gap: 6px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .12);
}
.side__h24 { margin: 0; color: var(--ice); font: 600 .75rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.side__tel { color: #fff; font: 600 1.7rem/1.2 var(--serif); text-decoration: none; }
.side__social { display: inline-grid; width: 38px; height: 38px; margin-top: 8px; place-items: center; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; color: #fff; transition: background-color .2s, color .2s; }
.side__social:hover { background: var(--ice); border-color: var(--ice); color: var(--navy); }

/* Slides */
.slide {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	min-height: 100vh;
	min-height: 100svh;
	padding: clamp(32px, 5.5vh, 72px) var(--pad-x);
	overflow: hidden;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}
.slide__inner { position: relative; z-index: 1; width: 100%; max-width: 1180px; margin: 0 auto; }
.slide--light { background: var(--frost); }
.slide--white { background: #fff; }
.slide--dark { background: var(--navy); color: #fff; }
.slide--plain { align-items: start; scroll-snap-align: none; scroll-snap-stop: normal; }
.prose { max-width: 1180px; }
.prose > * { max-width: 760px; }
.prose h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.prose h2 { margin-top: 1.6em; font-size: 1.8rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.25rem; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { margin-bottom: 1.1em; padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

.js .reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .8s var(--ease), transform .8s var(--ease);
	transition-delay: calc(var(--i, 0) * 70ms);
}
.js .is-in .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.js .reveal { opacity: 1; transform: none; transition: none; }
}

.split {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	gap: clamp(32px, 5vw, 88px);
	align-items: center;
}
.split--media-left { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }

/* Hero */
.slide--hero { padding: 0; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.slide--hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(98deg, rgba(10, 38, 71, .96) 0%, rgba(10, 38, 71, .84) 34%, rgba(10, 38, 71, .3) 70%, rgba(10, 38, 71, .08) 100%);
}
.hero__inner { max-width: none; margin: 0; padding: clamp(40px, 8vh, 96px) var(--pad-x); z-index: 2; }
.hero__inner > * { max-width: 640px; }
.hero__lead { margin-bottom: .6em; font: italic 500 clamp(1.3rem, 2.2vw, 1.8rem)/1.3 var(--serif); color: var(--ice); }
.hero__text { max-width: 540px; margin-bottom: 1.8em; color: rgba(255, 255, 255, .86); }
.hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 26px;
	margin: 2.2em 0 0;
	padding: 20px 0 0;
	border-top: 1px solid rgba(255, 255, 255, .22);
	list-style: none;
	color: rgba(255, 255, 255, .8);
	font: 600 .75rem/1.2 var(--sans);
	letter-spacing: .16em;
	text-transform: uppercase;
}
.hero__scroll {
	position: absolute;
	bottom: 28px;
	left: var(--pad-x);
	z-index: 2;
	display: grid;
	justify-items: start;
	gap: 10px;
	color: rgba(255, 255, 255, .7);
	font: 600 .6875rem/1 var(--sans);
	letter-spacing: .22em;
	text-transform: uppercase;
	text-decoration: none;
}
.hero__scroll::after { content: ""; width: 1px; height: 44px; background: linear-gradient(var(--ice), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero__scroll::after { animation: none; } }

/* Azienda */
.stats { display: flex; gap: clamp(20px, 3vw, 44px); margin: 28px 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; }
.stats strong { display: block; color: var(--blue); font: 600 clamp(1.9rem, 3vw, 2.7rem)/1 var(--serif); }
.stats span { color: var(--muted); font: 600 .75rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.founder { justify-self: center; width: min(100%, 340px); margin: 0; }
.founder__photo { position: relative; }
.founder__photo::before { content: ""; position: absolute; inset: 20px -20px -20px 20px; border: 2px solid var(--ice); }
.founder img { position: relative; width: 100%; box-shadow: 0 36px 60px -34px rgba(10, 38, 71, .6); }
.founder figcaption { position: relative; display: grid; gap: 2px; margin-top: 34px; }
.founder strong { font: 600 1.4rem/1.2 var(--serif); }
.founder span { color: var(--muted); font: 600 .75rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; }

/* Media blocks (Gruppi Frigo, Rinnovi A.T.P.) */
.media { position: relative; min-height: clamp(380px, 66vh, 620px); }
.media__main { position: absolute; top: 0; left: 0; width: 90%; height: 82%; object-fit: cover; object-position: 78% 50%; filter: brightness(1.1); box-shadow: 0 36px 60px -36px rgba(10, 38, 71, .55); }
.media__aside { position: absolute; right: 0; bottom: 0; width: 54%; aspect-ratio: 16 / 10; object-fit: cover; border: 8px solid #fff; box-shadow: 0 30px 50px -30px rgba(10, 38, 71, .55); }
.media--single { min-height: 0; }
.media--single .media__main { position: relative; width: 100%; height: auto; aspect-ratio: 1 / 1; object-position: 55% 50%; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0; padding: 0; list-style: none; }
.tiles li { padding: 18px 6px 14px; border: 1px solid var(--line); text-align: center; color: var(--blue-d); font: 600 .78rem/1.2 var(--sans); letter-spacing: .05em; text-transform: uppercase; transition: border-color .2s, transform .3s var(--ease); }
.tiles li:hover { border-color: var(--blue); transform: translateY(-3px); }
.tiles svg { display: block; width: 30px; height: 30px; margin: 0 auto 10px; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cert { display: flex; align-items: center; gap: 20px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.cert img { flex: none; width: 150px; height: auto; }
.cert p { margin: 0; }
.cert a { color: var(--blue); font-weight: 600; }

/* Officina */
.flake { position: absolute; color: var(--ice); pointer-events: none; }
.flake--officina { top: -10%; right: -8%; width: min(54vw, 680px); height: min(54vw, 680px); opacity: .07; }
.quote { margin: 1.5em 0; padding-left: 1.3em; border-left: 3px solid var(--ice); color: #fff; font: italic 500 clamp(1.2rem, 1.9vw, 1.55rem)/1.4 var(--serif); }
.photo-panel { position: relative; }
.photo-panel img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 68% 50%; }
.photo-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 38, 71, 0) 45%, rgba(10, 38, 71, .6)), rgba(33, 96, 167, .22); mix-blend-mode: multiply; }
.photo-panel::before { content: ""; position: absolute; inset: 18px 18px -18px -18px; border: 2px solid var(--ice); }
.slide--dark p { color: rgba(255, 255, 255, .86); }
.slide--dark .lead, .slide--dark .quote { color: #fff; }

/* Rinnovi A.T.P. */
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.option { padding: 16px 18px 18px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); }
.option strong { display: block; color: var(--blue); font: 600 2.1rem/1 var(--serif); }
.option span { display: block; margin-top: 8px; color: var(--muted); font-size: .9375rem; line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--blue-d); font: 600 .75rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.chips li { display: flex; align-items: center; gap: 8px; }
.chips li::before { content: ""; width: 7px; height: 7px; background: var(--cyan); transform: rotate(45deg); }

/* Gallery */
.slide--gallery { padding-right: 0; }
.gallery { max-width: none; margin: 0; }
.gallery__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; padding-right: var(--pad-x); }
.gallery__head h2 { margin: 0; }
.gallery__nav { display: flex; gap: 10px; }
.icon-btn { display: inline-grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; transition: background-color .2s, color .2s; }
.icon-btn:hover { background: var(--ice); border-color: var(--ice); color: var(--navy); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.strip {
	display: flex;
	gap: 14px;
	margin: 0;
	padding: 4px 0 14px;
	overflow-x: auto;
	list-style: none;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
	scrollbar-color: var(--blue) transparent;
}
.strip li { flex: 0 0 auto; scroll-snap-align: start; }
.strip a { display: block; overflow: hidden; }
.strip img { width: auto; max-width: none; height: clamp(200px, 54vh, 540px); transition: transform .6s var(--ease), filter .3s; }
.strip a:hover img { transform: scale(1.04); }

.lb { width: 100%; height: 100%; max-width: none; max-height: none; padding: 0; border: 0; background: transparent; color: #fff; }
.lb::backdrop { background: rgba(5, 16, 32, .95); }
.lb__fig { display: grid; height: 100%; margin: 0; padding: 56px 84px 70px; place-items: center; }
.lb__img { width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 140px); object-fit: contain; }
.lb__count { position: absolute; right: 0; bottom: 22px; left: 0; margin: 0; color: rgba(255, 255, 255, .75); font: 600 .875rem/1 var(--sans); letter-spacing: .14em; text-align: center; font-variant-numeric: tabular-nums; }
.lb__btn { position: absolute; display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: rgba(10, 38, 71, .6); color: #fff; cursor: pointer; }
.lb__btn:hover { background: var(--ice); color: var(--navy); }
.lb__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb__close { top: 18px; right: 18px; }
.lb__prev { top: 50%; left: 18px; transform: translateY(-50%); }
.lb__next { top: 50%; right: 18px; transform: translateY(-50%); }

/* Contatti */
.slide--contacts { grid-template-rows: 1fr auto; align-items: center; padding-top: clamp(24px, 4vh, 56px); padding-bottom: clamp(24px, 4vh, 56px); }
.flake--contatti { right: -6%; bottom: -14%; width: min(46vw, 560px); height: min(46vw, 560px); color: var(--blue); opacity: .06; }
.contacts { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.label { margin: 22px 0 8px; color: var(--blue); font: 600 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
address { font-style: normal; }
.phones { display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 36px; margin: 0; padding: 0; list-style: none; }
.phones li { display: flex; gap: 12px; }
.phones span { min-width: 4.2em; color: var(--muted); }
.phones a { font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.phones a:hover { color: var(--blue); }
.mails { display: grid; gap: 4px; margin: 10px 0 0; padding: 0; list-style: none; }
.mails[hidden] { display: none; }
.mails li { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.mails li > span:first-child { min-width: 14.5em; color: var(--muted); }
.mails a { font-weight: 600; }
.where { display: flex; align-items: center; gap: 20px; margin-top: 26px; text-decoration: none; }
.where img { width: 112px; height: 112px; border: 3px solid var(--ice); border-radius: 50%; }
.legal { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; max-width: 1180px; margin: 24px auto 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.legal p { margin: 0; }
.partner { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }
.partner img { width: 44px; height: 44px; }
.partner strong { display: block; color: var(--blue); font: 600 .6875rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; }

.form { position: relative; z-index: 1; padding: clamp(20px, 2.4vw, 32px) clamp(22px, 3vw, 40px); background: var(--frost); border-top: 4px solid var(--blue); }
.form h3 { margin-bottom: .3em; font-size: 1.6rem; }
.form__intro { color: var(--muted); font-size: .9375rem; }
.field { margin-bottom: 13px; }
.field label { display: block; margin-bottom: 6px; color: var(--blue-d); font: 600 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.field input, .field select, .field textarea {
	width: 100%;
	padding: .8em 1em;
	border: 1px solid #b6c5d6;
	border-radius: 2px;
	background: #fff;
	color: var(--ink);
	font: 400 1rem/1.4 var(--sans);
}
.field textarea { min-height: 108px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(45, 179, 232, .35); outline-offset: 0; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__privacy { color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.form__privacy a { color: var(--blue); }
.form__status { min-height: 1.5em; margin: 14px 0 0; font-weight: 600; }
.form__status[data-state="ok"] { color: #0b6b3a; }
.form__status[data-state="error"] { color: #a4262c; }
.form button[disabled] { opacity: .6; cursor: progress; }

/* Short desktop viewports (most laptops): tighter type and spacing so each slide stays on one screen */
@media (min-width: 861px) and (max-height: 860px) {
	html { font-size: 15px; }
	.slide { padding-top: clamp(22px, 4vh, 40px); padding-bottom: clamp(22px, 4vh, 40px); }
	h2 { font-size: clamp(1.9rem, 2.9vw, 2.6rem); }
	.lead { font-size: 1.1rem; line-height: 1.5; }
	p { margin-bottom: .85em; }
	.kicker { margin-bottom: .8rem; }
	.stats { margin: 18px 0; padding-top: 16px; }
	.tiles { margin: 18px 0; }
	.tiles li { padding: 14px 6px 10px; }
	.cert { padding-top: 14px; }
	.cert img { width: 128px; }
	.options { margin: 16px 0; }
	.chips { margin-top: 18px; }
	.quote { margin: 1em 0; }
	.photo-panel img { aspect-ratio: 1 / 1; }
	.form { padding: 24px 30px; }
	.field { margin-bottom: 11px; }
	.field textarea { min-height: 96px; }
	.field input, .field select, .field textarea { padding: .62em .9em; }
	.form__intro { margin-bottom: .7em; }
	.label { margin-top: 16px; }
	.where { margin-top: 18px; }
	.legal { margin-top: 12px; padding-top: 10px; }
	.side__brand { padding-top: 24px; }
	.menu a { padding: 9px 0; }
}
@media (min-width: 861px) and (max-height: 720px) {
	html { font-size: 14px; }
	.media { min-height: 52vh; }
	.hero__facts { margin-top: 1.4em; }
	.form { padding: 16px 26px 18px; }
	.form h3 { font-size: 1.35rem; }
	.field { margin-bottom: 9px; }
	.field textarea { min-height: 72px; }
	.form__status { margin-top: 8px; }
	.where { margin-top: 12px; }
	.legal { margin-top: 8px; padding-top: 8px; }
	.partner img { width: 36px; height: 36px; }
}

/* Tablet and phone: top bar and overlay menu */
@media (max-width: 1100px) {
	.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
	body { padding-top: var(--top); padding-left: 0; }
	html { scroll-padding-top: var(--top); }

	.side { inset: 0 0 auto 0; flex-direction: row; align-items: center; justify-content: space-between; width: auto; height: var(--top); padding: 0 16px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
	.side__brand { padding: 0; }
	.side__brand img { width: auto; height: 46px; }
	.side__toggle { position: relative; display: inline-grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
	.side__toggle-bar, .side__toggle-bar::before, .side__toggle-bar::after { display: block; width: 20px; height: 2px; background: currentColor; transition: transform .3s var(--ease), background-color .3s; }
	.side__toggle-bar { position: relative; }
	.side__toggle-bar::before, .side__toggle-bar::after { content: ""; position: absolute; left: 0; }
	.side__toggle-bar::before { top: -6px; }
	.side__toggle-bar::after { top: 6px; }
	.menu-open .side__toggle-bar { background: transparent; }
	.menu-open .side__toggle-bar::before { transform: translateY(6px) rotate(45deg); }
	.menu-open .side__toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

	.side__panel { position: fixed; inset: var(--top) 0 0 0; z-index: 59; justify-content: space-between; padding: 28px 28px 32px; overflow-y: auto; background: var(--navy); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
	.menu-open .side__panel { opacity: 1; visibility: visible; transform: none; }
	.menu a { padding: 14px 0; font-size: 1.4rem; }
	.side__foot { margin-top: 24px; }

	.slide { min-height: calc(100vh - var(--top)); min-height: calc(100svh - var(--top)); }
	.slide--hero { min-height: calc(100svh - var(--top)); }
}

@media (max-width: 860px) {
	:root { --pad-x: 22px; }
	.split, .split--media-left, .contacts { grid-template-columns: 1fr; gap: 32px; }
	.founder { margin-top: 12px; }
	.photo-panel::before { display: none; }
	.photo-panel img { aspect-ratio: 16 / 10; }
	.media { min-height: min(96vw, 440px); }
	.media--single { min-height: 0; }
	.slide--hero::before { background: linear-gradient(180deg, rgba(10, 38, 71, .55) 0%, rgba(10, 38, 71, .92) 70%); }
	.hero__scroll { display: none; }
	.stats { flex-wrap: wrap; }
	.options { grid-template-columns: 1fr; }
	.phones { grid-template-columns: 1fr; }
	.legal { flex-direction: column; align-items: flex-start; }
	.mails li > span:first-child { min-width: 0; width: 100%; }
	.lb__fig { padding: 64px 12px 90px; }
	.lb__count { bottom: 76px; }
	.lb__prev, .lb__next { top: auto; bottom: 14px; transform: none; }
	.lb__prev { left: 14px; }
	.lb__next { right: 14px; }
}

@media (max-width: 520px) {
	h1 { font-size: 2.6rem; }
	.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cert { flex-direction: column; align-items: flex-start; }
	.actions .btn { width: 100%; justify-content: center; }
}
