/*
 * Site5 – base, shared components, header and footer.
 * Values come from the Figma file "ccsm" (desktop frame 1440 px).
 * Breakpoints: desktop ≥ 1280, laptop 1024–1279, tablet 768–1023, mobile < 768.
 */

/* Fonts (self-hosted, SIL Open Font License) ----------------------------- */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/inter-normal-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;
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/inter-normal-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: "Inter";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/inter-italic-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;
}

@font-face {
	font-family: "Inter";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/inter-italic-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: "Playfair Display";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/playfair-display-normal-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;
}

@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/playfair-display-normal-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;
}

/* Tokens ---------------------------------------------------------------- */

:root {
	--red: #d81e05;
	--red-bright: #e30613;
	--red-soft: rgba(227, 6, 19, 0.1);
	--navy: #0b1f33;
	--ink: #111827;
	--black: #111;
	--night: #080d14;
	--charcoal: #2b2b2b;
	--grey-500: #6b7280;
	--grey-400: #9ca3af;
	--grey-300: #d1d5db;
	--grey-200: #e5e7eb;
	--grey-100: #f3f4f6;
	--bg-alt: #f8f9fa;
	--bg-soft: #f6f6f6;
	--white: #fff;

	--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

	--content: 1216px;
	--gutter: 112px;
	--gutter-wide: 80px; /* SwissEco and testimonials use a 1280 px grid in Figma. */
	--header-height: 97px;
}

@media (max-width: 1279px) {
	:root {
		--gutter: 32px;
		--gutter-wide: 32px;
	}
}

@media (max-width: 767px) {
	:root {
		--gutter: 20px;
		--gutter-wide: 20px;
		--header-height: 72px;
	}
}

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

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: var(--header-height);
}

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
	margin: 0;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

a {
	color: inherit;
	text-decoration: none;
}

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

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

:focus-visible {
	outline: 2px solid var(--red-bright);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
	word-wrap: normal !important;
}

.skip-link:focus {
	top: 0.5rem;
	left: 0.5rem;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto !important;
	clip-path: none;
	background: var(--white);
	color: var(--black);
}

.container {
	width: min(var(--content), 100% - 2 * var(--gutter));
	margin-inline: auto;
}

/* Shared components ----------------------------------------------------- */

.icon {
	flex: none;
}

.kicker {
	color: var(--red-bright);
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.kicker--dark-red {
	color: var(--red);
}

.kicker--wide {
	color: var(--red);
	font-weight: 800;
	letter-spacing: 2.16px;
}

.kicker--13 {
	font-size: 13px;
	line-height: 18px;
	letter-spacing: 1.1px;
}

.section-title {
	color: var(--ink);
	font-family: var(--font-serif);
	font-size: 36px;
	font-weight: 700;
	line-height: 40px;
}

.section-title--32 {
	font-size: 32px;
}

.section-text {
	color: var(--grey-500);
	font-size: 18px;
	line-height: 20px;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
	transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

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

.button--outline {
	padding: 10.8px 16.8px;
	border: 1px solid var(--grey-200);
	border-radius: 9999px;
	background: var(--white);
	color: var(--ink);
}

.button--red {
	padding: 10px 20px;
	border-radius: 9999px;
	background: var(--red);
	box-shadow: 0 10px 15px -3px rgba(216, 30, 5, 0.2), 0 4px 6px -4px rgba(216, 30, 5, 0.2);
	color: var(--white);
}

.button--navy {
	width: 160.4px;
	padding: 12.4px 8px 13.2px;
	background: var(--navy);
	color: var(--white);
}

.button--navy:hover {
	background: #13304d;
}

.button--white {
	padding: 14.4px 20px 15.2px;
	background: var(--white);
	color: var(--night);
}

.pill {
	display: inline-block;
	align-self: flex-start;
	padding: 3.6px 12px;
	border-radius: 9999px;
	font-size: 12px;
	font-weight: 800;
	line-height: 16px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.pill--red {
	background: var(--red-soft);
	color: var(--red-bright);
}

.pill--light {
	background: rgba(255, 255, 255, 0.1);
	color: var(--white);
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--red-bright);
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
}

.link-arrow:hover span {
	text-decoration: underline;
}

.play-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 0 14px 0 18px;
	border-radius: 9999px;
	background: var(--red-bright);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s;
}

a.play-button:hover {
	transform: scale(1.06);
}

/* Horizontal sliders: native scrolling, arrows and dots are progressive enhancement. */
.slider-track {
	display: flex;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.slider-track::-webkit-scrollbar {
	display: none;
}

.slider-track > * {
	flex: none;
	scroll-snap-align: start;
}

.slider-arrows {
	display: flex;
	gap: 8px;
}

.slider-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--grey-200);
	border-radius: 9999px;
	transition: background-color 0.2s, opacity 0.2s;
}

.slider-arrow:hover {
	background: var(--white);
}

.slider-arrow:disabled,
.round-arrow:disabled {
	cursor: default;
}

/* Logo marquee: the track holds the list twice and slides by half its width. */
.marquee {
	overflow: hidden;
}

.marquee__track {
	display: flex;
	width: max-content;
	animation: site5-marquee var(--marquee-duration, 40s) linear infinite;
}

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
	animation-play-state: paused;
}

.marquee--reverse .marquee__track {
	animation-direction: reverse;
}

.marquee__list {
	display: flex;
	flex: none;
	align-items: center;
}

.marquee__item {
	flex: none;
}

@keyframes site5-marquee {
	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.marquee__track {
		animation: none !important;
	}

	.marquee--reverse {
		display: flex;
		justify-content: flex-end;
	}
}

/* Top bar --------------------------------------------------------------- */

.topbar {
	position: relative;
	z-index: 30;
	border-bottom: 0.8px solid rgba(255, 255, 255, 0.1);
	background: var(--night);
	color: var(--grey-300);
	font-size: 13px;
	line-height: 16.5px;
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 1500px;
	min-height: 52.2px;
	margin-inline: auto;
	padding: 4.95px 32px;
}

.topbar__group {
	display: flex;
	align-items: center;
	gap: 20px;
}

.topbar__group--end {
	gap: 19px;
}

.topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.topbar__item:hover span {
	color: var(--white);
}

.topbar__search-toggle {
	padding-left: 20.8px;
	border-left: 0.8px solid rgba(255, 255, 255, 0.1);
}

.topbar__item--strong {
	font-weight: 600;
}

.topbar__contact {
	display: inline-flex;
	align-items: center;
	height: 31px;
	padding: 10px;
	border-radius: 4px;
	background: var(--red-bright);
	font-size: 11px;
	font-weight: 600;
	line-height: 16.5px;
	white-space: nowrap;
}

.topbar__contact:hover {
	background: #c70511;
}

.lang-switch {
	display: flex;
	padding: 2.8px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.05);
}

.lang-switch__item {
	padding: 4px 10px;
	border-radius: 6px;
	color: var(--grey-400);
	font-size: 11px;
	font-weight: 700;
	line-height: 16.5px;
}

.lang-switch__item.is-current {
	background: var(--red);
	color: var(--white);
}

.lang-switch__item:not(.is-current):hover {
	color: var(--white);
}

.topbar__search {
	display: flex;
	max-width: 1500px;
	margin-inline: auto;
	padding: 0 32px 12px;
}

.topbar__search[hidden] {
	display: none;
}

.topbar__search input {
	flex: 1;
	min-width: 0;
	height: 40px;
	padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px 0 0 8px;
	background: #1c1c1c;
	color: var(--white);
}

.topbar__search button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	border-radius: 0 8px 8px 0;
	background: var(--red-bright);
}

.topbar__search button .icon {
	filter: brightness(0) invert(1);
}

/* New members band ------------------------------------------------------ */

.members-band {
	display: flex;
	align-items: center;
	gap: 18px;
	max-width: 1500px;
	height: 88px;
	margin-inline: auto;
	padding: 0 32px;
	border-bottom: 0.8px solid var(--grey-100);
	background: var(--white);
}

.members-band__label {
	display: flex;
	flex: none;
	align-items: center;
	gap: 8px;
	padding-right: 16.8px;
	border-right: 0.8px solid var(--grey-200);
	color: var(--ink);
	font-size: 12px;
	font-weight: 800;
	line-height: 16.5px;
	letter-spacing: 1.76px;
	text-transform: uppercase;
	white-space: nowrap;
}

.members-band__label::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 9999px;
	background: var(--red);
}

.members-band__logos {
	--marquee-duration: 45s;
	flex: 1;
	min-width: 0;
}

.members-band .marquee__list {
	gap: 7px;
	padding-right: 7px;
}

.members-band .marquee__logo {
	width: auto;
	max-width: 87px;
	height: 48.9px;
}

/* Main header ----------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	border-bottom: 0.8px solid var(--grey-100);
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 10px 32px -24px rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

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

.site-header__inner {
	display: flex;
	align-items: center;
	/* 126 px in the design, less when the menu needs the room. */
	gap: clamp(24px, calc((min(100vw, 1500px) - 1340px) / 2), 126px);
	max-width: 1500px;
	height: 96.2px;
	margin-inline: auto;
	padding: 0 32px;
}

.site-header__brand {
	flex: none;
	width: 147.25px;
}

.site-header__brand img {
	width: 100%;
	height: 56px;
	object-fit: contain;
}

.site-header__panel {
	display: flex;
	flex: 1;
	align-items: center;
	gap: clamp(24px, calc((min(100vw, 1500px) - 1340px) / 2), 126px);
}

.site-header__actions {
	display: flex;
	flex: none;
	align-items: center;
	gap: 12px;
}

.site-header__burger {
	display: none;
}

.nav__list {
	display: flex;
	align-items: center;
	gap: 28px;
}

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

.nav__list > li > a {
	font-size: 14px;
	font-weight: 700;
	line-height: 21px;
	white-space: nowrap;
}

.nav__list > li {
	color: var(--ink);
}

/* Current section in red (the design leaves "Home" in black on the home page). */
.nav__list > li:hover,
.nav__list > .current-menu-item:not(.menu-item-home),
.nav__list > .current-menu-ancestor,
.nav__list > .current-menu-parent {
	color: var(--red);
}

.nav__list > li > a {
	color: inherit;
}

/* "40 ans" tab (class menu-item-y40 in Appearance › Menus): red with a sparkle; on
   desktop, a navy pill (red on hover) next to the red "Adhérer" button. */
.nav__list > .menu-item-y40 > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--red-bright);
}

.nav__list > .menu-item-y40 > a::before {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("../icons/sparkle.svg") center / contain no-repeat;
	mask: url("../icons/sparkle.svg") center / contain no-repeat;
}

@media (min-width: 1280px) {
	.nav__list > .menu-item-y40 > a {
		padding: 7px 15px 7px 12px;
		border-radius: 9999px;
		background: linear-gradient(135deg, #1d2b40 0%, #0b1421 100%);
		box-shadow: 0 8px 18px -10px rgba(11, 20, 33, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.12);
		color: var(--white);
		letter-spacing: 0.2px;
		transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
	}

	.nav__list > .menu-item-y40 > a::before {
		background: var(--red-bright);
	}

	.nav__list > .menu-item-y40 > a:hover {
		background: linear-gradient(135deg, #f0262f 0%, var(--red-bright) 50%, #b5050f 100%);
		box-shadow: 0 10px 20px -8px rgba(227, 6, 19, 0.75);
		transform: translateY(-1px);
	}

	.nav__list > .menu-item-y40 > a:hover::before {
		background: var(--white);
	}

	.nav__list > .menu-item-y40.current-menu-item > a {
		box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.35), 0 8px 18px -10px rgba(11, 20, 33, 0.8);
	}
}

.nav__toggle {
	display: flex;
	align-items: center;
	height: 21px;
	color: inherit;
}

.nav__caret {
	width: 13px;
	height: 12px;
	background: currentColor;
	-webkit-mask: url("../icons/caret-right.svg") center / contain no-repeat;
	mask: url("../icons/caret-right.svg") center / contain no-repeat;
	transition: transform 0.2s;
}

.nav__list .sub-menu {
	position: absolute;
	top: calc(100% + 18px);
	left: -16px;
	z-index: 10;
	display: flex;
	flex-direction: column;
	width: 286px;
	padding: 10px;
	border: 1px solid #dfe4ea;
	border-radius: 12px;
	background: var(--white);
	filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.1));
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}

/* Hover bridge so the pointer can travel from the link to the submenu. */
.nav__list .sub-menu::before {
	content: "";
	position: absolute;
	inset: -19px 0 auto;
	height: 19px;
}

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

.nav__list > li.is-open > .nav__toggle .nav__caret {
	transform: rotate(90deg);
}

.nav__list .sub-menu a {
	display: flex;
	align-items: center;
	min-height: 40px;
	padding: 6px 8px;
	border-radius: 8px;
	color: #0b1421;
	font-size: 12px;
	line-height: 16px;
}

.nav__list .sub-menu a:hover,
.nav__list .sub-menu a:focus-visible,
.nav__list .sub-menu .current-menu-item > a {
	background: var(--red-bright);
	color: var(--white);
}

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

.site-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	background: var(--black);
	color: var(--grey-400);
}

.site-footer__inner {
	width: min(1216px, 100% - 2 * var(--gutter));
	margin-inline: auto;
	padding: 50px 0 34px;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 48px;
	align-items: start;
	min-height: 293px;
}

.site-footer__about {
	grid-column: span 2;
}

.site-footer__logo {
	display: flex;
	align-items: center;
	width: 166.2px;
	height: 72px;
	padding: 12px 20px;
	border-radius: 12px;
	background: var(--white);
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
}

.site-footer__logo img {
	width: 126.2px;
	height: 48px;
	object-fit: contain;
}

.site-footer__text {
	max-width: 384px;
	margin-top: 30px;
	font-size: 14px;
	line-height: 22.75px;
}

.site-footer__details {
	margin-top: 24px;
	font-size: 12px;
	line-height: 16px;
}

.site-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

.site-footer__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 50%;
	transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
	border-color: var(--red-bright);
	background: var(--red-bright);
	transform: translateY(-2px);
}

.site-footer__details li + li {
	margin-top: 12px;
}

.site-footer__details strong {
	margin-right: 4px;
	color: var(--white);
	font-weight: 700;
}

.site-footer__title {
	color: var(--white);
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
}

.site-footer__menu {
	margin-top: 24px;
}

.site-footer__menu a {
	display: block;
	margin-right: -16px;
	color: var(--grey-400);
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
}

.site-footer__menu a:hover,
.site-footer__legal a:hover {
	color: var(--white);
}

.site-footer__col--footer-services .site-footer__menu li {
	padding-top: 16px;
}

.site-footer__col--footer-other .site-footer__menu {
	margin-top: 24px;
}

.site-footer__col--footer-other .site-footer__menu li + li {
	padding-top: 12px;
}

.site-footer__small {
	margin-top: 24px;
	font-size: 12px;
	line-height: 16px;
}

.newsletter {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 16px;
}

.newsletter input {
	height: 38px;
	padding: 0 17px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 4px;
	background: #1c1c1c;
	color: var(--white);
	font-size: 12px;
}

.newsletter input::placeholder {
	color: var(--grey-400);
	opacity: 1;
}

.newsletter button {
	height: 36px;
	border-radius: 4px;
	background: var(--red-bright);
	color: var(--white);
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
}

.newsletter button:disabled {
	cursor: not-allowed;
}

.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	margin-top: 64px;
	padding-top: 33px;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	font-size: 12px;
	line-height: 16px;
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

/* Header & footer – responsive ------------------------------------------ */

@media (max-width: 1439px) {
	.site-header__inner {
		padding: 0 24px;
	}

	.site-header__inner,
	.site-header__panel {
		gap: 24px;
	}

	.site-header__panel {
		justify-content: space-between;
	}

	.nav__list {
		gap: clamp(12px, calc(1.3vw - 2px), 28px);
	}
}

@media (max-width: 1279px) {
	.site-header__inner {
		justify-content: space-between;
	}

	.site-header__burger {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		border: 1px solid var(--grey-200);
		border-radius: 12px;
	}

	.site-header__burger span:first-child,
	.site-header__burger span:first-child::before,
	.site-header__burger span:first-child::after {
		position: absolute;
		width: 18px;
		height: 2px;
		border-radius: 2px;
		background: var(--ink);
		transition: transform 0.2s, opacity 0.2s;
	}

	.site-header__burger span:first-child::before,
	.site-header__burger span:first-child::after {
		content: "";
		left: 0;
	}

	.site-header__burger span:first-child::before {
		top: -6px;
	}

	.site-header__burger span:first-child::after {
		top: 6px;
	}

	.site-header__burger[aria-expanded="true"] span:first-child {
		background: transparent;
	}

	.site-header__burger[aria-expanded="true"] span:first-child::before {
		transform: translateY(6px) rotate(45deg);
	}

	.site-header__burger[aria-expanded="true"] span:first-child::after {
		transform: translateY(-6px) rotate(-45deg);
	}

	.site-header__panel {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
		max-height: calc(100vh - var(--header-height));
		padding: 16px var(--gutter) 24px;
		overflow-y: auto;
		border-bottom: 1px solid var(--grey-100);
		background: var(--white);
		box-shadow: 0 24px 32px -24px rgba(0, 0, 0, 0.25);
	}

	.site-header__panel:not(.is-open) {
		display: none;
	}

	.nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.nav__list > li {
		flex-wrap: wrap;
		justify-content: space-between;
		border-bottom: 1px solid var(--grey-100);
	}

	.nav__list > li > a {
		padding: 14px 0;
		font-size: 16px;
	}

	.nav__toggle {
		justify-content: center;
		width: 44px;
		height: 44px;
	}

	.nav__list .sub-menu {
		position: static;
		width: 100%;
		margin-bottom: 12px;
		filter: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.nav__list .sub-menu::before {
		display: none;
	}

	.nav__list > li:not(.is-open) > .sub-menu {
		display: none;
	}

	.site-header__actions {
		flex-wrap: wrap;
	}
}

@media (max-width: 1023px) {
	.topbar__item--email span,
	.topbar__search-toggle span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.site-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 40px 32px;
	}

	.site-footer__about {
		grid-column: 1 / -1;
	}
}

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

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

@media (max-width: 767px) {
	.topbar__inner,
	.topbar__search {
		padding-inline: var(--gutter);
	}

	.topbar__inner {
		gap: 12px;
	}

	.topbar__group {
		gap: 14px;
	}

	.topbar__group--end {
		gap: 10px;
	}

	.topbar__item:first-child span,
	.topbar__item--strong span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.topbar__search-toggle {
		padding-left: 14px;
	}

	.members-band {
		height: 72px;
		padding: 0 var(--gutter);
	}

	.members-band__label {
		max-width: 92px;
		white-space: normal;
		font-size: 10px;
		line-height: 13px;
		letter-spacing: 1px;
	}

	.members-band__label::before {
		display: none;
	}

	.members-band .marquee__logo {
		height: 40px;
	}

	.site-header__inner {
		height: var(--header-height);
		padding: 0 var(--gutter);
	}

	.site-header__brand {
		width: 118px;
	}

	.site-header__brand img {
		height: 45px;
	}

	.site-footer__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.site-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}
