:root {
	--bg: #fff;
	--alt: #f3f6fa;
	--ink: #0f1f33;
	--mut: #5a6a7e;
	--brand: #0b4f9c;
	--cta: #ff9900;
	--ctaink: #111;
	--card: #fff;
	--line: #e1e7ef;
	--ok: #1a9b4b;
	--err: #c62828;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0d1520;
		--alt: #121d2b;
		--ink: #eef3f9;
		--mut: #9fb0c4;
		--brand: #6fb1ff;
		--card: #16222f;
		--line: #243447;
		--err: #ff6b6b;
	}
	:root:not([data-theme="light"]) .mem {
		background: #1a2d44;
		color: #dbe9fa;
	}
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	background: var(--bg);
	color: var(--ink);
	line-height: 1.5;
}

body.has-sticky { padding-bottom: 70px; }

.w { max-width: none; width: 100%; margin: 0 auto; padding: 0 32px; }

.top {
	background: #0b4f9c;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}
.top-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding-top: 8px;
	padding-bottom: 8px;
}
.top p { margin: 0; }
.top-links { display: flex; gap: 18px; flex-wrap: wrap; }
.top-links a { color: #fff; text-decoration: none; }
.top-links a:hover { color: #ff9900; }

.site-head {
	background: var(--card);
	border-bottom: 3px solid #0b4f9c;
}
.head-row {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px;
	min-height: 86px;
	padding-top: 8px;
	padding-bottom: 8px;
}
.site-head .head-shop { padding: 12px 22px; }

header a.back {
	color: var(--mut);
	font-size: 14px;
	text-decoration: none;
}

.logo {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	text-decoration: none;
}
.logo img {
	display: block;
	height: 54px;
	width: auto;
}

.bar-start { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--card);
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	cursor: pointer;
}
.nav-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: var(--ink);
}
.drawer-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(8, 16, 28, 0.62);
	z-index: 70;
}
.drawer-backdrop[hidden] { display: none; }
.drawer-head,
.drawer-phone,
.drawer-social,
.drawer-close { display: none; }
.primary-nav { background: transparent; }
.primary-nav .menu {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: none;
}
.primary-nav .menu > li { position: relative; }
.primary-nav .menu a {
	display: block;
	padding: 10px 12px;
	color: var(--ink);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
}
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .menu a:hover { color: #0b4f9c; }
.primary-nav .current-menu-item > a { box-shadow: inset 0 -3px 0 #ff9900; }
.menu-item-has-children > a:after { content: " \25BE"; font-size: 11px; }
.primary-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 250px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: var(--card);
	border: 1px solid var(--line);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
	z-index: 30;
}
.primary-nav .menu > li:hover > .sub-menu,
.primary-nav .menu > li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a {
	color: var(--ink);
	font-weight: 600;
	padding: 10px 16px;
}
.primary-nav .sub-menu a:hover { color: var(--brand); background: var(--alt); }

.btn {
	display: inline-block;
	background: var(--cta);
	color: var(--ctaink);
	font-weight: 800;
	text-decoration: none;
	padding: 14px 26px;
	border-radius: 999px;
	text-align: center;
	border: 0;
	font-size: 16px;
	cursor: pointer;
}

.btn:hover { filter: brightness(0.95); }

.hero { background: var(--alt); padding: 48px 0; }
.hero .w {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 30px;
	align-items: center;
}

h1 {
	font-size: clamp(28px, 5vw, 46px);
	line-height: 1.1;
	margin: 0 0 14px;
}

.stars { color: #f5a800; letter-spacing: 2px; }
.sub { color: var(--mut); font-size: 18px; margin: 0 0 20px; }

.ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.ticks li { padding-left: 26px; position: relative; margin: 6px 0; }
.ticks li:before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: #1a9b4b;
	font-weight: 800;
}

.heroimg,
.pimg {
	background: #fff;
	border-radius: 14px;
	text-align: center;
}
.heroimg { padding: 10px; }
.heroimg img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.pimg { margin-bottom: 12px; padding: 8px; }
.pimg img { height: 220px; width: auto; max-width: 100%; }

section { padding: 54px 0; }
h2 { text-align: center; font-size: clamp(24px, 4vw, 34px); margin: 0 0 8px; }
.lead { text-align: center; color: var(--mut); margin: 0 0 32px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 22px;
	text-align: center;
}
.card h3 { font-size: 18px; margin: 0 0 4px; }
.code { font-size: 12px; color: var(--mut); }
.price { font-size: 32px; font-weight: 800; margin: 12px 0 2px; }
.price small {
	font-size: 12px;
	color: var(--mut);
	font-weight: 600;
	display: block;
}
.mem {
	background: #e8f2fd;
	color: #0b2d55;
	border-radius: 10px;
	padding: 10px;
	margin: 12px 0 16px;
	font-size: 14px;
}
.card .btn { width: 100%; }
.best {
	display: inline-block;
	background: #1a9b4b;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	border-radius: 6px;
	padding: 2px 8px;
	margin-bottom: 8px;
}

.alt { background: var(--alt); }
.feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.feat div { padding: 10px; }
.feat b { display: block; font-size: 17px; margin: 6px 0 4px; }
.feat p { margin: 0; color: var(--mut); font-size: 14px; }
.ic { font-size: 30px; }

.rev {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 20px;
	text-align: left;
}
.rev .n { font-weight: 700; }
.rev .d { font-size: 13px; color: var(--mut); }
.rev p { margin: 10px 0 0; }
.badge { text-align: center; margin-bottom: 26px; font-weight: 700; }
.badge span { font-weight: 500; color: var(--mut); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: center; }
.steps p { color: var(--mut); margin: 4px 0 0; }
.num {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--brand);
	color: #fff;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 10px;
}

details {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px 18px;
	margin: 10px auto;
	max-width: 760px;
}
summary { font-weight: 700; cursor: pointer; }
details p { color: var(--mut); margin: 10px 0 0; }

.final { background: var(--brand); color: #fff; text-align: center; }
.final h2 { color: #fff; }
.final p { opacity: 0.9; }

.site-foot {
	background: #0f1f33;
	color: #eef3f9;
	border-top: 6px solid #0b4f9c;
	box-shadow: inset 0 4px 0 #ff9900;
	padding-top: 46px;
}
.foot-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 1fr;
	gap: 28px;
	padding-bottom: 28px;
}
.site-foot h2 {
	color: #ff9900;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: left;
	margin: 0 0 14px;
}
.foot-social { display: flex; gap: 10px; margin-top: 16px; }
.foot-social a {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #163154;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.foot-social svg { width: 16px; height: 16px; fill: #fff; }
.foot-social a:hover { background: #ff9900; }
.foot-social a:hover svg { fill: #111; }
.site-foot p { color: #9fb0c4; margin: 12px 0 0; }
.foot-logo img { height: 46px; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin: 0; }
.foot-links a {
	display: block;
	color: #eef3f9;
	text-decoration: none;
	padding: 5px 0;
	font-weight: 600;
}
.foot-links a:hover { color: var(--cta); }
.site-foot .btn { margin-top: 14px; }
.foot-bar {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	text-align: center;
	color: #9fb0c4;
	font-size: 13px;
	padding: 16px 20px 20px;
}

.sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--card);
	border-top: 1px solid var(--line);
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
	display: none;
	z-index: 9;
}
.sticky .btn { width: 100%; padding: 12px; }

.trustbar { background: var(--alt); padding: 18px 0; }
.trustbar .w {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 36px;
	justify-content: center;
	font-weight: 600;
	font-size: 15px;
}

.center-cta { text-align: center; margin-top: 26px; }

.page-shell { padding-bottom: 20px; }
.page-hero {
	background: var(--alt);
	padding: 46px 0 56px;
	text-align: center;
}
.page-hero h1 {
	margin: 0;
	color: var(--ink);
	font-size: clamp(28px, 4vw, 42px);
}
.page-hero .lead { margin: 10px 0 0; }
.page-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 28px 26px;
	margin: -28px auto 48px;
}
.page-card h1,
.page-card h2,
.page-card h3 { color: var(--ink); text-align: left; }
.page-card .content,
.page-card .content p,
.page-card .content li { color: var(--ink); }
.page-card .content a { color: var(--brand); font-weight: 700; }
.page-card .content img,
.page-card .content iframe {
	max-width: 100%;
	height: auto;
	border-radius: 14px;
	margin: 8px 12px 8px 0;
}
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	margin: -28px 0 48px;
}
.post-card { margin: 0; display: flex; flex-direction: column; }
.post-thumb {
	display: block;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 14px;
	min-height: 180px;
}
.post-thumb img { width: 100%; height: 200px; object-fit: cover; display: block; margin: 0; border-radius: 0; }
.post-thumb-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 200px;
	color: var(--brand);
	font-weight: 800;
	letter-spacing: 1px;
}
.post-card h2 { font-size: 22px; margin: 6px 0 8px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--brand); }
.post-card p { color: var(--mut); }
.post-card .btn { margin-top: auto; align-self: flex-start; }
.page-nav { text-align: center; margin: 0 0 40px; }
.page-nav a,
.page-nav span {
	display: inline-block;
	margin: 0 4px;
	color: var(--brand);
	font-weight: 700;
}

body.page-order,
body.page-thank-you { background: var(--alt); }

.order-wrap { max-width: none; padding-top: 8px; padding-bottom: 50px; }
.order-wrap h1 { font-size: clamp(26px, 4vw, 36px); margin: 10px 0 6px; text-align: left; }
.order-wrap > .lead { text-align: left; margin: 0 0 20px; }

.order-steps { margin-bottom: 24px; font-size: 14px; gap: 12px; }
.order-steps div {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 12px;
}
.order-steps b { display: block; color: var(--brand); }

.layout {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: 24px;
	align-items: start;
}
.box {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 22px;
}
.prod { position: sticky; top: 16px; text-align: center; }
.prod h2 { font-size: 18px; margin: 0 0 4px; text-align: center; }
.prod .pimg img { width: 100%; max-width: 300px; height: auto; }

.sum {
	text-align: left;
	margin-top: 16px;
	border-top: 1px solid var(--line);
	padding-top: 12px;
	font-size: 15px;
}
.sum div { display: flex; justify-content: space-between; padding: 3px 0; }
.sum .tot {
	font-weight: 800;
	font-size: 19px;
	border-top: 1px solid var(--line);
	margin-top: 6px;
	padding-top: 8px;
}
.save { color: var(--ok); font-weight: 700; }
.note { font-size: 12px; color: var(--mut); margin-top: 8px; text-align: left; }

fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font-weight: 800; font-size: 17px; margin-bottom: 12px; padding: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f { margin-bottom: 14px; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
label i { color: var(--err); font-style: normal; }

input,
select,
textarea {
	width: 100%;
	font: inherit;
	color: var(--ink);
	background: var(--bg);
	border: 1.5px solid var(--line);
	border-radius: 10px;
	padding: 11px 12px;
}
input:focus,
select:focus,
textarea:focus {
	outline: 2px solid var(--brand);
	border-color: var(--brand);
}
textarea { min-height: 80px; resize: vertical; }

.qty { display: flex; gap: 8px; align-items: center; }
.qty button {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	border: 1.5px solid var(--line);
	background: var(--bg);
	color: var(--ink);
	font-size: 22px;
	cursor: pointer;
}
.qty input { text-align: center; width: 90px; }
.hint { font-size: 12px; color: var(--mut); margin-top: 4px; }

.radios { display: flex; gap: 16px; flex-wrap: wrap; }
.radios label {
	font-weight: 500;
	display: flex;
	gap: 6px;
	align-items: center;
	margin: 0;
}
.radios input { width: auto; }

form.box .btn { width: 100%; font-size: 17px; padding: 15px; }
.trust {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	justify-content: center;
	font-size: 13px;
	color: var(--mut);
	margin-top: 12px;
}
.hp { position: absolute; left: -9999px; }
.agree {
	font-weight: 500;
	display: flex;
	gap: 8px;
	align-items: flex-start;
}
.agree input { width: auto; margin-top: 4px; }

.form-error {
	background: #fdecea;
	color: var(--err);
	border-radius: 10px;
	padding: 12px 14px;
	margin: 0 0 16px;
}

.thanks { padding: 48px 32px 80px; max-width: none; }
.thanks .box { text-align: center; }
.thanks h1 { text-align: center; }
.thanks .lead { text-align: center; }
.thanks .btn { margin-top: 8px; }

@media (max-width: 1100px) {
	.post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
	.layout,
	.row,
	.order-steps { grid-template-columns: 1fr; }
	.prod { position: static; }
	.prod .pimg img { max-width: 240px; }
}

@media (min-width: 801px) {
	.drawer {
		position: static;
		width: auto;
		background: transparent;
		transform: none;
		overflow: visible;
		padding: 0;
	}
}

@media (max-width: 800px) {
	.logo img { height: 42px; }
	.nav-toggle { display: inline-flex; }
	.top-inner { flex-direction: column; text-align: center; gap: 4px; }
	.head-row { grid-template-columns: 1fr auto; min-height: 72px; }
	.w { padding: 0 16px; }
	.foot-grid,
	.post-grid { grid-template-columns: 1fr; }
	body.drawer-open { overflow: hidden; }
	.drawer {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: min(340px, 88vw);
		background: #0f1f33;
		color: #eef3f9;
		z-index: 80;
		overflow: auto;
		padding: 18px 18px 32px;
		transform: translateX(-105%);
		transition: transform 0.28s ease;
		box-shadow: 12px 0 40px rgba(0, 0, 0, 0.28);
	}
	body.drawer-open .drawer { transform: none; }
	.drawer-head,
	.drawer-phone,
	.drawer-social { display: flex; }
	.drawer-head {
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		margin-bottom: 16px;
	}
	.drawer-head .logo img { height: 40px; }
	.drawer-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		border: 0;
		border-radius: 50%;
		background: var(--cta);
		color: #111;
		font-size: 28px;
		line-height: 1;
		cursor: pointer;
		flex: 0 0 auto;
	}
	.drawer-phone {
		color: #fff;
		font-weight: 800;
		text-decoration: none;
		font-size: 18px;
		margin: 4px 0 14px;
	}
	.drawer-social { gap: 10px; margin-bottom: 18px; }
	.drawer-social a {
		width: 40px;
		height: 40px;
		border-radius: 50%;
		background: #163154;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
	.drawer-social svg { width: 18px; height: 18px; fill: #fff; }
	.drawer-social a:hover { background: var(--cta); }
	.drawer-social a:hover svg { fill: #111; }
	.primary-nav .menu {
		display: flex;
		flex-direction: column;
		align-items: stretch;
	}
	.primary-nav .menu a {
		color: #eef3f9;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
		padding: 13px 4px;
	}
	.primary-nav .sub-menu {
		position: static;
		display: block;
		min-width: 0;
		box-shadow: none;
		border: 0;
		background: transparent;
		padding: 0 0 6px 12px;
	}
	.primary-nav .sub-menu a {
		color: #9fb0c4;
		font-weight: 600;
		border: 0;
		padding: 8px 4px;
	}
	.menu-item-has-children > a:after { content: none; }
	.hero .w,
	.grid,
	.feat,
	.steps { grid-template-columns: 1fr; }
	.feat { grid-template-columns: 1fr 1fr; }
	.heroimg { order: -1; }
	body.has-sticky .sticky { display: block; }
}
