* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	color: var(--color-ink);
	background: #f4f5f6;
	overflow-x: clip;
}

body.has-open-nav {
	overflow: hidden;
}

body.has-open-panel {
	overflow: hidden;
}

body.has-open-nav .site-header {
	transform: none;
	z-index: 1000;
}

a {
	color: var(--color-accent-strong);
}

.front-main {
	max-width: 960px;
	margin: 0 auto;
}

.flash {
	align-items: center;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: .75rem;
	border-radius: 16px;
	box-shadow: 0 18px 42px rgba(18, 67, 107, .1);
	font-weight: 780;
	line-height: 1.45;
	margin: 1rem 0 1.15rem;
	padding: .85rem .95rem;
}

.flash__icon {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 999px;
	flex: 0 0 auto;
}

.flash__icon::before {
	font-size: .92rem;
	font-weight: 900;
	line-height: 1;
}

.flash-success {
	background:
		linear-gradient(135deg, rgba(236, 253, 245, .98), rgba(224, 242, 254, .9)),
		#ecfdf5;
	border: 1px solid rgba(20, 184, 166, .22);
	color: #0f513f;
}

.flash-success .flash__icon {
	background: linear-gradient(135deg, #11a36a, #0f766e);
	box-shadow: 0 10px 22px rgba(15, 118, 110, .2);
	color: #fff;
}

.flash-success .flash__icon::before {
	content: "✓";
}

.flash-error {
	background:
		linear-gradient(135deg, rgba(255, 241, 242, .98), rgba(254, 226, 226, .9)),
		#fff1f2;
	border: 1px solid rgba(225, 29, 72, .22);
	color: #9f1239;
}

.flash-error .flash__icon {
	background: linear-gradient(135deg, #e11d48, #be123c);
	box-shadow: 0 10px 22px rgba(190, 18, 60, .18);
	color: #fff;
}

.flash-error .flash__icon::before {
	content: "!";
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(248, 250, 251, 0.96);
	backdrop-filter: blur(12px);
	box-shadow: 0 12px 34px rgba(31, 79, 104, 0.12);
}

.site-header__bar,
.site-nav__list {
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
}

.site-header__bar {
	display: grid;
	grid-template-columns: auto minmax(260px, 1fr) auto;
	gap: 22px;
	align-items: center;
	padding: 14px 0 10px;
}

.site-header__brand img {
	display: block;
	width: 178px;
	height: auto;
}

.site-search {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 38px;
	gap: 4px;
	border: 0;
	border-radius: 999px;
	background: #e9edf0;
	box-shadow: none;
	overflow: visible;
	padding: 4px;
}

.site-search__label {
	display: grid;
	place-items: center;
	color: #1f4f68;
}

.site-search__label span {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.site-search input,
.site-search button {
	min-height: 42px;
	border: 0;
	font: inherit;
}

.site-search input {
	min-width: 0;
	padding: 0 10px 0 0;
	background: transparent;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.site-search input:focus {
	outline: none;
	box-shadow: none;
}

.site-search button,
.site-actions__link {
	background: #1f4f5f;
	color: #fff;
	padding: 0 16px;
	text-decoration: none;
	font-weight: 700;
}

.site-search button {
	display: grid;
	place-items: center;
	padding: 0;
	width: 38px;
	height: 38px;
	min-height: 0;
	aspect-ratio: 1 / 1;
	border-left: 0;
	border-radius: 50%;
	background: #101820;
	color: #fff;
	cursor: pointer;
}

.site-search svg,
.site-actions svg,
.back-to-top svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.site-actions {
	display: flex;
	gap: 10px;
}

.site-actions__link {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	border-radius: 8px;
}

.site-nav {
	border-top: 0;
}

.site-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	align-items: stretch;
	padding: 0;
	list-style: none;
}

.site-nav__item {
	position: relative;
}

.site-nav__summary,
.site-nav__link {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 13px;
	color: #243642;
	text-decoration: none;
	font-weight: 700;
	cursor: pointer;
	border-radius: 8px 8px 0 0;
}

.site-nav__summary {
	list-style: none;
}

.site-nav__summary::-webkit-details-marker {
	display: none;
}

.site-nav__details[open] .site-nav__summary,
.site-nav__link:hover {
	background: #e8f0f4;
	color: #173b50;
}

.site-nav__summary svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	color: #173b50;
	transition: transform 0.18s ease;
}

.site-nav__details[open] .site-nav__summary svg {
	transform: rotate(180deg);
}

.site-submenu {
	position: absolute;
	z-index: 20;
	left: 0;
	top: 100%;
	width: min(940px, calc(100dvw - 32px));
	padding: 22px;
	background: #fbfcfd;
	border: 1px solid #d5dde2;
	border-top: 4px solid #f2c94c;
	border-radius: 0 8px 8px 8px;
	box-shadow: 0 18px 42px rgba(31, 41, 51, 0.16);
}

.site-submenu__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.site-nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #101820;
	cursor: pointer;
	position: relative;
}

.site-nav-toggle span {
	position: absolute;
	left: 11px;
	right: 11px;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
	transition: transform 0.18s ease, opacity 0.18s ease, top 0.18s ease;
}

.site-nav-toggle span:nth-child(1) { top: 14px; }
.site-nav-toggle span:nth-child(2) { top: 21px; }
.site-nav-toggle span:nth-child(3) { top: 28px; }
.site-nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.site-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.site-footer {
	background: #fff;
	color: #263943;
	padding: 42px 0 28px;
}

.site-footer__inner {
	display: grid;
	gap: 28px;
	width: min(1240px, calc(100% - 32px));
	margin: 0 auto;
}

.site-footer__columns {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px;
}

.site-footer h2,
.site-footer h3 {
	margin: 0 0 10px;
	color: #142331;
	font-size: 1rem;
}

.site-footer h3 {
	margin-top: 24px;
	font-size: 0.95rem;
}

.site-footer p,
.site-footer li {
	color: #46555f;
	line-height: 1.55;
}

.site-footer p {
	margin: 0;
}

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

.site-footer a {
	color: #173b50;
	text-decoration: none;
}

.site-footer__bottom,
.site-social {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.site-footer__bottom {
	justify-content: space-between;
	align-items: center;
	padding-top: 24px;
	border-top: 1px solid #d8e0e5;
}

.site-social a {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #eef2f5;
	color: #173b50;
}

.site-social svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (max-width: 980px) {
	.site-header {
		position: sticky;
	}

	.site-header__bar {
		grid-template-columns: 1fr;
	}

	.site-submenu {
		position: static;
		width: 100%;
		box-shadow: none;
	}

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

@media (max-width: 620px) {
	.site-header__bar {
		grid-template-columns: auto 1fr auto auto auto;
		gap: 10px;
	}

	.site-header__brand img {
		width: 178px;
	}

	.site-search {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.site-actions {
		display: contents;
	}

	.site-actions__link {
		width: 42px;
		height: 42px;
		padding: 0;
		border-radius: 0;
		background: transparent;
		color: #101820;
	}

	.site-actions__link span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.site-nav-toggle {
		display: grid;
		place-items: center;
	}

	.site-nav {
		display: none;
		position: fixed;
		inset: var(--site-header-height, 112px) 0 0;
		z-index: 1001 !important;
		padding: 18px;
		background: rgba(0, 0, 0, 0.72);
		overflow: auto;
	}

	body.has-open-nav .site-header {
		transform: none !important;
		z-index: 1000 !important;
	}

	.site-nav.is-open,
	body.has-open-nav .site-nav {
		display: block;
	}

	.site-nav__list {
		display: grid;
		width: 100%;
		max-width: 420px;
		margin: 0 auto;
		padding: 12px;
		border-radius: 10px;
		background: #fff;
	}

	.site-footer__columns {
		grid-template-columns: 1fr;
	}

	.site-footer__bottom {
		justify-content: center;
		text-align: center;
	}
}
