:root {
	--bg-dark: #0d1117;
	--bg-dark-2: #1a2332;
	--bg-light: #ffffff;
	--accent: #ffb400;
	--accent-hover: #ffc940;
	--text-light: #ffffff;
	--text-light-muted: #a8b3c5;
	--text-dark: #111111;
	--text-dark-muted: #5c6680;
	--border-light: #d8d8e0;
	--border-dark: rgba(255, 255, 255, 0.1);
	--success: #22c55e;
	--danger: #ff3c28;
	--radius-sm: 6px;
	--radius: 12px;
	--container: 1200px;
	--gap: 24px;
	--font: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}
html,
body {
	margin: 0;
	padding: 0;
}
body {
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.55;
	color: var(--text-dark);
	background: var(--bg-light);
	-webkit-font-smoothing: antialiased;
}
img {
	max-width: 100%;
	display: block;
}
button {
	font: inherit;
	cursor: pointer;
}

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}
@media (max-width: 768px) {
	.container {
		padding: 0 16px;
	}
}

.header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--bg-dark);
	color: var(--text-light);
	padding: 14px 0;
	transition: box-shadow 0.2s;
}
.header.is-scrolled {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
}
.header__logo img {
	display: block;
}
.header__nav {
	display: flex;
	gap: 20px;
	margin-left: 24px;
}
.header__nav a {
	color: var(--text-light-muted);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
}
.header__nav a:hover {
	color: var(--accent);
}
.header__actions {
	margin-left: auto;
	display: flex;
	gap: 12px;
	align-items: center;
}
.header__phone {
	color: var(--accent);
	font-weight: 700;
	text-decoration: none;
	font-size: 16px;
}
.header__cta {
	display: inline-flex;
}

[hidden] {
	display: none !important;
}
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	border: none;
	border-radius: var(--radius-sm);
	font-weight: 700;
	text-decoration: none;
	transition: all 0.15s;
}
.btn--primary {
	background: var(--accent);
	color: var(--bg-dark);
}
.btn--primary:hover {
	background: var(--accent-hover);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(255, 180, 0, 0.3);
}
.btn--secondary {
	background: transparent;
	border: 1.5px solid currentColor;
	color: inherit;
}
.btn--lg {
	padding: 16px 28px;
	font-size: 16px;
}
.btn--ghost {
	background: transparent;
	color: var(--text-light-muted);
	border: 1.5px solid var(--border-dark);
}
.btn--ghost:hover {
	color: var(--text-light);
	border-color: var(--text-light);
}

main {
	display: block;
}
section {
	padding: 80px 0;
}
@media (max-width: 768px) {
	section {
		padding: 48px 0;
	}
	.header__nav {
		display: none;
	}
}

.sticky-mobile {
	display: none;
}
@media (max-width: 768px) {
	.sticky-mobile {
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		gap: 10px;
		position: fixed;
		right: 14px;
		bottom: 14px;
		z-index: 40;
	}
	.sticky-mobile__msgs {
		display: flex;
		flex-direction: column;
		gap: 8px;
	}
	.sticky-mobile__msg {
		width: 48px;
		height: 48px;
		border-radius: 50%;
		display: grid;
		place-items: center;
		color: #fff;
		text-decoration: none;
		box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
		transition: transform 0.15s;
	}
	.sticky-mobile__msg:active {
		transform: scale(0.92);
	}
	.sticky-mobile__msg--wa {
		background: #25d366;
	}
	.sticky-mobile__msg--tg {
		background: #229ed9;
	}
	.sticky-mobile__msg--max {
		background: transparent;
		box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
		border-radius: 14px;
		overflow: hidden;
	}
	.sticky-mobile__msg--max img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		display: block;
	}
	.sticky-mobile__quiz {
		background: var(--accent);
		color: var(--bg-dark);
		border: none;
		padding: 0 22px;
		height: 52px;
		border-radius: 26px;
		font-weight: 700;
		font-size: 14px;
		box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	}
}

.section-title {
	font-size: 40px;
	font-weight: 800;
	letter-spacing: -0.5px;
	margin: 0 0 12px;
	text-align: center;
}
.section-sub {
	font-size: 16px;
	color: var(--text-dark-muted);
	text-align: center;
	margin: 0 auto 48px;
	max-width: 600px;
}
@media (max-width: 768px) {
	.section-title {
		font-size: 28px;
	}
	.section-sub {
		font-size: 14px;
		margin-bottom: 32px;
	}
}

.hero {
	background: var(--bg-dark);
	color: var(--text-light);
	padding: 80px 0 90px;
	position: relative;
	overflow: hidden;
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(
		45deg,
		transparent 0,
		transparent 22px,
		rgba(255, 180, 0, 0.035) 22px,
		rgba(255, 180, 0, 0.035) 44px
	);
	pointer-events: none;
	z-index: 0;
}
.hero::after {
	content: "";
	position: absolute;
	top: -120px;
	right: -180px;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 180, 0, 0.18) 0%, rgba(255, 180, 0, 0) 70%);
	pointer-events: none;
	z-index: 0;
}
.hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 56px;
	align-items: center;
	max-width: var(--container);
}
.hero__text {
	min-width: 0;
}
.hero__badge {
	display: inline-block;
	background: var(--accent);
	color: var(--bg-dark);
	font-size: 12px;
	font-weight: 800;
	padding: 6px 14px;
	border-radius: 3px;
	letter-spacing: 1.2px;
	margin-bottom: 22px;
}
.hero__title {
	font-size: 54px;
	line-height: 1.08;
	font-weight: 800;
	letter-spacing: -1.5px;
	margin: 0 0 18px;
}
.hero__sub {
	font-size: 17px;
	color: var(--text-light-muted);
	margin: 0 0 30px;
	line-height: 1.55;
	max-width: 540px;
}
.hero__cta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.hero__messengers {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 32px;
}
.hero__messengers-label {
	width: 100%;
	font-size: 12px;
	color: var(--text-light-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 4px;
}
.msg-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 8px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	transition: all 0.15s;
	border: 1.5px solid transparent;
}
.msg-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.msg-btn svg {
	flex-shrink: 0;
}
.msg-btn--wa {
	background: #25d366;
}
.msg-btn--wa:hover {
	background: #20bd5a;
}
.msg-btn--tg {
	background: #229ed9;
}
.msg-btn--tg:hover {
	background: #1c8cc1;
}
.msg-btn--max {
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}
.msg-btn--max:hover {
	background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
}
.msg-btn img {
	border-radius: 5px;
}

@media (max-width: 600px) {
	.msg-btn {
		padding: 9px 12px;
		font-size: 13px;
	}
	.msg-btn span {
		display: none;
	}
	.msg-btn svg {
		width: 20px;
		height: 20px;
	}
}
.hero__features {
	display: flex;
	gap: 32px;
	flex-wrap: wrap;
	padding-top: 24px;
	border-top: 1px solid var(--border-dark);
}
.hero__feature {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 12px;
	color: var(--text-light-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.hero__feature-num {
	font-size: 26px;
	font-weight: 800;
	color: var(--accent);
	letter-spacing: -0.5px;
}

.hero__visual {
	position: relative;
	aspect-ratio: 5 / 4;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
	border: 1px solid rgba(255, 180, 0, 0.2);
}
.hero__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}
.hero__photo-tag {
	position: absolute;
	left: 16px;
	bottom: 16px;
	background: rgba(13, 17, 23, 0.85);
	backdrop-filter: blur(8px);
	color: var(--accent);
	font-size: 12px;
	font-weight: 700;
	padding: 8px 12px;
	border-radius: 4px;
	border-left: 3px solid var(--accent);
	letter-spacing: 0.3px;
}

@media (max-width: 960px) {
	.hero__inner {
		grid-template-columns: 1fr;
		gap: 36px;
	}
	.hero__visual {
		aspect-ratio: 16 / 10;
		max-height: 380px;
	}
	.hero__title {
		font-size: 40px;
	}
}
@media (max-width: 768px) {
	.hero {
		padding: 48px 0 56px;
	}
	.hero__title {
		font-size: 32px;
		letter-spacing: -1px;
	}
	.hero__sub {
		font-size: 16px;
	}
	.hero__cta .btn {
		flex: 1 1 100%;
	}
	.hero__features {
		gap: 20px;
	}
	.hero__feature-num {
		font-size: 22px;
	}
}

.services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
@media (max-width: 1024px) {
	.services__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 600px) {
	.services__grid {
		grid-template-columns: 1fr;
	}
}

.service-card {
	background: var(--bg-light);
	border: 1px solid var(--border-light);
	border-radius: var(--radius);
	overflow: hidden;
	transition: all 0.2s;
	display: flex;
	flex-direction: column;
}
.service-card:hover {
	border-color: var(--accent);
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
}
.service-card:hover .service-card__photo img {
	transform: scale(1.06);
}

.service-card__photo {
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #1a1a1a;
	position: relative;
}
.service-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}
.service-card__photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.25) 100%);
	pointer-events: none;
}

.service-card__body {
	padding: 22px 22px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.service-card__title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 6px;
	line-height: 1.25;
}
.service-card__price {
	font-size: 22px;
	font-weight: 800;
	color: var(--accent);
	margin-bottom: 12px;
	letter-spacing: -0.3px;
}
.service-card__desc {
	font-size: 14px;
	color: var(--text-dark-muted);
	margin: 0 0 20px;
	flex: 1;
	line-height: 1.5;
}
.service-card__cta {
	width: 100%;
}

.quiz {
	background: var(--bg-dark);
	color: var(--text-light);
	padding: 80px 0;
}
.quiz__card {
	max-width: 800px;
	margin: 0 auto;
	background: var(--bg-dark-2);
	border: 1px solid var(--border-dark);
	border-radius: var(--radius);
	padding: 40px;
}
.quiz__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
	flex-wrap: wrap;
}
.quiz__title {
	font-size: 28px;
	font-weight: 800;
	margin: 0 0 4px;
}
.quiz__sub {
	color: var(--text-light-muted);
	margin: 0;
	font-size: 14px;
}
.quiz__progress {
	min-width: 200px;
}
.quiz__progress-bar {
	height: 6px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 3px;
	overflow: hidden;
}
.quiz__progress-fill {
	height: 100%;
	background: var(--accent);
	transition: width 0.3s ease;
}
.quiz__progress-label {
	font-size: 13px;
	color: var(--text-light-muted);
	margin-top: 6px;
	text-align: right;
}
.quiz__step {
	display: none;
	animation: fadeIn 0.3s ease;
}
.quiz__step.is-active {
	display: block;
}
.quiz__step h3 {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 8px;
}
.quiz__hint {
	color: var(--text-light-muted);
	font-size: 13px;
	margin: 0 0 18px;
}
.quiz__options {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}
.quiz__option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: rgba(255, 255, 255, 0.04);
	border: 1.5px solid var(--border-dark);
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: all 0.15s;
	font-size: 14px;
	color: var(--text-light);
	text-align: left;
}
.quiz__option:hover {
	border-color: var(--accent);
	background: rgba(255, 180, 0, 0.06);
}
.quiz__option.is-selected {
	border-color: var(--accent);
	background: rgba(255, 180, 0, 0.12);
}
.quiz__option-check {
	width: 18px;
	height: 18px;
	border: 1.5px solid var(--text-light-muted);
	border-radius: 3px;
	display: grid;
	place-items: center;
	flex-shrink: 0;
}
.quiz__option.is-selected .quiz__option-check {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--bg-dark);
}
.quiz__option.is-selected .quiz__option-check::after {
	content: "✓";
	font-weight: 800;
	font-size: 12px;
}

.quiz__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 420px;
}
.quiz__form input[type="text"],
.quiz__form input[type="tel"] {
	padding: 14px 16px;
	background: rgba(255, 255, 255, 0.06);
	border: 1.5px solid var(--border-dark);
	border-radius: var(--radius-sm);
	color: var(--text-light);
	font: inherit;
	font-size: 16px;
}
.quiz__form input:focus {
	outline: none;
	border-color: var(--accent);
}
.quiz__form input.is-invalid {
	border-color: var(--danger);
}
.quiz__agree {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 13px;
	color: var(--text-light-muted);
	cursor: pointer;
}
.quiz__agree a {
	color: var(--accent);
}

.quiz__nav {
	display: flex;
	gap: 12px;
	margin-top: 28px;
	justify-content: space-between;
}
.quiz__nav [data-quiz-next] {
	margin-left: auto;
}

.quiz__step--done {
	text-align: center;
	padding: 24px 0;
}
.quiz__done-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	background: var(--success);
	color: #fff;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 32px;
	font-weight: 800;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 600px) {
	.quiz__card {
		padding: 24px 18px;
	}
	/* Одиночный выб, мало пунктов — в один столбец */
	.quiz__options {
		grid-template-columns: 1fr;
	}
	/* Услуги (много пунктов) — в два столбца, чтобы помещались на экран */
	.quiz__step[data-step="1"] .quiz__options {
		grid-template-columns: repeat(2, 1fr);
	}
	.quiz__title {
		font-size: 22px;
	}
}

.cta-form {
	background: var(--bg-dark);
	color: var(--text-light);
}
.cta-form__card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	max-width: 1000px;
	margin: 0 auto;
	align-items: center;
}
.cta-form__text h2 {
	font-size: 32px;
	margin: 0 0 12px;
	font-weight: 800;
}
.cta-form__text p {
	font-size: 16px;
	color: var(--text-light-muted);
	margin: 0 0 20px;
}
.cta-form__phone {
	font-size: 14px;
	color: var(--text-light-muted);
}
.cta-form__phone a {
	color: var(--accent);
	font-weight: 700;
	text-decoration: none;
}
.cta-form__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.cta-form__form input,
.cta-form__form textarea {
	padding: 14px 16px;
	background: rgba(255, 255, 255, 0.06);
	border: 1.5px solid var(--border-dark);
	border-radius: var(--radius-sm);
	color: var(--text-light);
	font: inherit;
	font-size: 16px;
	font-family: var(--font);
}
.cta-form__form input:focus,
.cta-form__form textarea:focus {
	outline: none;
	border-color: var(--accent);
}
.cta-form__agree {
	font-size: 13px;
	color: var(--text-light-muted);
	display: flex;
	gap: 8px;
	align-items: flex-start;
	cursor: pointer;
}
.cta-form__agree a {
	color: var(--accent);
}
@media (max-width: 800px) {
	.cta-form__card {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

.footer {
	background: #0a0e14;
	color: var(--text-light-muted);
	padding: 60px 0 0;
	font-size: 14px;
}
.footer__inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 40px;
}
.footer__col h4 {
	color: var(--text-light);
	font-size: 14px;
	margin: 0 0 14px;
	font-weight: 700;
}
.footer__col a {
	display: block;
	color: var(--text-light-muted);
	text-decoration: none;
	margin-bottom: 8px;
}
.footer__col a:hover {
	color: var(--accent);
}
.footer__col p {
	margin: 0 0 12px;
	line-height: 1.5;
}
.footer__logo {
	margin-bottom: 14px;
	opacity: 0.9;
}
.footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 20px 0;
	font-size: 12px;
}
@media (max-width: 800px) {
	.footer__inner {
		grid-template-columns: 1fr 1fr;
		gap: 30px;
	}
}
@media (max-width: 480px) {
	.footer__inner {
		grid-template-columns: 1fr;
	}
}

.owner {
	background: linear-gradient(135deg, rgba(13, 17, 23, 0.96) 0%, rgba(26, 35, 50, 0.92) 100%);
	color: var(--text-light);
	padding: 90px 0;
	position: relative;
	overflow: hidden;
}
.owner::before {
	content: "";
	position: absolute;
	top: -100px;
	left: -100px;
	width: 400px;
	height: 400px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 180, 0, 0.12) 0%, rgba(255, 180, 0, 0) 70%);
	pointer-events: none;
}
.owner__inner {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: 64px;
	align-items: center;
	position: relative;
	z-index: 1;
}
.owner__visual {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(255, 180, 0, 0.2);
}
.owner__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}
.owner__badge {
	position: absolute;
	top: 16px;
	left: 16px;
	background: var(--accent);
	color: var(--bg-dark);
	font-size: 11px;
	font-weight: 800;
	padding: 5px 11px;
	border-radius: 3px;
	letter-spacing: 1px;
}
.owner__label {
	font-size: 12px;
	font-weight: 700;
	color: var(--accent);
	letter-spacing: 1.5px;
	margin-bottom: 14px;
}
.owner__title {
	font-size: 40px;
	font-weight: 800;
	letter-spacing: -1px;
	line-height: 1.1;
	margin: 0 0 22px;
}
.owner__lead {
	font-size: 17px;
	color: var(--text-light-muted);
	line-height: 1.6;
	margin: 0 0 22px;
	max-width: 580px;
}
.owner__quote {
	font-size: 19px;
	font-weight: 600;
	color: var(--text-light);
	line-height: 1.45;
	margin: 0 0 32px;
	padding: 18px 22px;
	border-left: 3px solid var(--accent);
	background: rgba(255, 180, 0, 0.06);
	border-radius: 0 6px 6px 0;
	max-width: 580px;
}
.owner__quote span {
	color: var(--accent);
	display: block;
	margin-top: 6px;
	font-weight: 700;
}
.owner__meta {
	display: flex;
	gap: 36px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}
.owner__meta-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.owner__meta-num {
	font-size: 32px;
	font-weight: 800;
	color: var(--accent);
	letter-spacing: -1px;
	line-height: 1;
}
.owner__meta-lbl {
	font-size: 12px;
	color: var(--text-light-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1.35;
}
.owner__sign {
	font-family: Georgia, serif;
	font-size: 22px;
	font-style: italic;
	color: var(--text-light-muted);
}

@media (max-width: 960px) {
	.owner__inner {
		grid-template-columns: 1fr;
		gap: 36px;
		max-width: 600px;
		margin: 0 auto;
	}
	.owner__visual {
		aspect-ratio: 16 / 10;
		max-height: 360px;
	}
	.owner__title {
		font-size: 30px;
	}
}
@media (max-width: 600px) {
	.owner {
		padding: 56px 0;
	}
	.owner__title {
		font-size: 26px;
	}
	.owner__lead,
	.owner__quote {
		font-size: 15px;
	}
	.owner__meta {
		gap: 20px;
	}
	.owner__meta-num {
		font-size: 24px;
	}
}

.certs {
	background: var(--bg-light);
	padding: 90px 0;
}
.certs__intro {
	max-width: 860px;
	margin: 0 auto 40px;
	padding: 18px 24px;
	border-left: 3px solid var(--accent);
	background: rgba(255, 180, 0, 0.07);
	border-radius: 0 8px 8px 0;
	font-style: italic;
	color: var(--text-dark);
	font-size: 16px;
	line-height: 1.6;
}
.certs__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
	margin-bottom: 24px;
}
.cert {
	display: flex;
	flex-direction: column;
	background: var(--bg-light);
	border: 1.5px solid var(--border-light);
	border-radius: var(--radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: all 0.2s;
}
.cert:hover {
	transform: translateY(-3px);
	border-color: var(--accent);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}
.cert__img {
	background: #f4f5f8;
	aspect-ratio: 4/5;
	display: grid;
	place-items: center;
	padding: 10px;
	overflow: hidden;
}
.cert__img img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}
.cert__caption {
	font-size: 12px;
	text-align: center;
	padding: 10px 12px 14px;
	font-weight: 600;
	color: var(--text-dark-muted);
	line-height: 1.4;
}
.certs__note {
	text-align: center;
	font-size: 13px;
	color: var(--text-dark-muted);
	margin: 0;
}

@media (max-width: 1024px) {
	.certs__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 600px) {
	.certs__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	.certs__intro {
		font-size: 14px;
	}
}

.portfolio {
	background: #f8f8fb;
}
.portfolio__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 220px;
	gap: 14px;
}
.portfolio__item {
	margin: 0;
	border-radius: var(--radius);
	overflow: hidden;
	background: #1a1a1a;
	position: relative;
	cursor: pointer;
	transition: transform 0.2s;
}
.portfolio__item:hover {
	transform: translateY(-3px);
}
.portfolio__item:hover img {
	transform: scale(1.06);
}
.portfolio__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}
.portfolio__item figcaption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 16px 18px 14px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}
@media (max-width: 1024px) {
	.portfolio__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 720px) {
	.portfolio__grid {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: 180px;
	}
}
@media (max-width: 420px) {
	.portfolio__grid {
		grid-template-columns: 1fr;
		grid-auto-rows: 220px;
	}
}
@media (max-width: 576px) {
	.header__actions {
		flex-direction: column;
		gap: 5px;
		align-items: flex-end;
	}
}

/* ─── Доработки (08.06.2026) ─────────────────────────────────────── */

/* П.3 — кнопка «Позвонить» только на мобиле (на ПК скрыта) */
@media (min-width: 769px) {
	.hero__call {
		display: none !important;
	}
}

/* П.5 — мягкая подпись под формами */
.form-reassure {
	font-size: 12px;
	line-height: 1.45;
	color: var(--text-light-muted);
	margin: 4px 0 0;
}

/* Сообщение об ошибке отправки (создаёт forms.js) */
.form-error {
	margin-top: 10px;
	padding: 10px 12px;
	font-size: 13px;
	color: #fff;
	background: rgba(255, 60, 40, 0.14);
	border: 1px solid var(--danger);
	border-radius: var(--radius-sm);
}

/* П.8 — exit-popup (ПК) */
.exit-popup {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.exit-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	backdrop-filter: blur(2px);
}
.exit-popup__card {
	position: relative;
	width: 100%;
	max-width: 440px;
	background: var(--bg-dark-2);
	color: var(--text-light);
	border: 1px solid var(--border-dark);
	border-radius: var(--radius);
	padding: 36px 32px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	animation: fadeIn 0.25s ease;
}
.exit-popup__close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	color: var(--text-light-muted);
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}
.exit-popup__close:hover {
	color: var(--text-light);
}
.exit-popup__title {
	font-size: 26px;
	font-weight: 800;
	margin: 0 0 10px;
}
.exit-popup__lead {
	font-size: 15px;
	color: var(--text-light-muted);
	margin: 0 0 20px;
}
.exit-popup__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.exit-popup__form input[type="text"],
.exit-popup__form input[type="tel"] {
	padding: 14px 16px;
	background: rgba(255, 255, 255, 0.06);
	border: 1.5px solid var(--border-dark);
	border-radius: var(--radius-sm);
	color: var(--text-light);
	font: inherit;
	font-size: 16px;
}
.exit-popup__form input:focus {
	outline: none;
	border-color: var(--accent);
}
.exit-popup__form input.is-invalid {
	border-color: var(--danger);
}

/* П.6 — на мобиле квиз компактнее, чтобы вопрос помещался на экран */
@media (max-width: 600px) {
	.quiz {
		padding: 48px 0;
		scroll-margin-top: 70px;
	}
	.quiz__card {
		scroll-margin-top: 70px;
	}
	.quiz__head {
		margin-bottom: 18px;
		gap: 12px;
	}
	.quiz__step h3 {
		font-size: 19px;
	}
	.quiz__options {
		gap: 6px;
	}
	.quiz__option {
		padding: 11px 12px;
	}
	.quiz__nav {
		margin-top: 20px;
	}
}
