:root {
	--page-title-size: 2rem;
	--cookie-border-color: #e5e5e5;
	--cookie-title-color: #22313f;
	--cookie-panel-padding: 24px;
	--cookie-text-sm: 14px;
	--cookie-text-md: 16px;
	--cookie-title-md: 24px;
	--cookie-gap-sm: 10px;
	--cookie-gap-md: 16px;
	--cookie-gap-lg: 24px;
	--cookie-transition-color: color .15s cubic-bezier(.4, 0, .2, 1);
	--cookie-transition-all: all .15s cubic-bezier(.4, 0, .2, 1);
	--cookie-transition-surface: background-color .15s cubic-bezier(.4, 0, .2, 1), color .15s cubic-bezier(.4, 0, .2, 1);
	--site-ui-transition-color: color .15s cubic-bezier(.4, 0, .2, 1);
	--site-ui-transition-surface: color .15s cubic-bezier(.4, 0, .2, 1), background-color .15s cubic-bezier(.4, 0, .2, 1);
	--site-ui-transition-border: color .15s cubic-bezier(.4, 0, .2, 1), background-color .15s cubic-bezier(.4, 0, .2, 1), border-color .15s cubic-bezier(.4, 0, .2, 1);
}

html {
	font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 15px;
}

html,
body {
	margin: 0;
	padding: 0;
}

h1,
h2 {
	font-size: var(--page-title-size);
}

/* Hide reCAPTCHA Enterprise badge (handled via backend verification). */
.grecaptcha-badge,
.hp-field {
	display: none !important;
}

.container {
	margin: 0 auto;
	padding: 0 7%;
}

a {
	color: inherit;
}

.center {
	text-align: center;
}

.clear-fix {
	clear: both;
}

/* Legacy policy popup container is kept in markup, but must not affect page height. */
.policy-wrap {
	display: none;
}

.form-consent {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	margin-top: 0.5rem;
	font-size: 0.75rem;
	line-height: 1.3;
	color: #3c3c3c;
}

.form-consent label {
	text-align: left;
	display: block;
	white-space: normal;
	cursor: pointer;
}

.form-consent .consent-checkbox {
	width: auto;
	margin-top: 0.2rem;
}

.form-secondary {
	margin-top: 0.4rem;
	font-size: 0.75rem;
	color: #6a6a6a;
	text-align: center;
	line-height: 1.4;
	white-space: normal;
	padding: 0 0.5rem;
}

.consult-form-card {
	border: 0;
	border-radius: 0.625rem;
	background: #fff;
	padding: 1.5rem;
}

.consult-form-note {
	margin: -0.5rem 0 1.5rem;
	color: oklch(43.9% 0 0deg);
	font-size: 0.875rem;
	line-height: 1.5;
}

.consult-form-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	margin-bottom: 1rem;
}

.consult-form-input,
.consult-form-card input[type="text"],
.consult-form-card input[type="email"],
.consult-form-card input[type="tel"],
.consult-form-card textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid oklch(87% 0 0deg);
	border-radius: 0.625rem;
	font-size: 1rem;
	line-height: 1.5;
	color: #22313f;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.consult-form-input:focus,
.consult-form-card input:focus,
.consult-form-card textarea:focus {
	outline: none;
	border-color: #20b573;
	box-shadow: 0 0 0 3px color-mix(in oklab, #20b573 20%, transparent);
}

.consult-form-card .form-consent {
	margin-bottom: 1rem;
}

.consult-form-card .form-consent label {
	color: oklch(43.9% 0 0deg);
	font-size: 0.875rem;
	line-height: 1.5;
}

.consult-form-card .form-consent a:hover,
.consult-form-card .form-secondary a:hover {
	color: #1a9d63;
}

.consult-form-submit {
	margin: 0 0 0.75rem;
}

.consult-form-submit button,
.consult-form-submit input[type="submit"] {
	border: 1px solid transparent;
	border-radius: 0.625rem;
	background: #20b573;
	color: #fff;
	padding: 0.75rem 2rem;
	font-size: 1rem;
	line-height: 1.5;
	font-weight: 500;
	transition: background-color 0.15s ease;
}

.consult-form-submit button:hover,
.consult-form-submit input[type="submit"]:hover {
	background: #1a9d63;
}

.consult-form-card .form-secondary {
	color: oklch(55.6% 0 0deg);
	font-size: 0.875rem;
	line-height: 1.5;
}

/* Header */
.navigation.navigation--site {
	background: #fff;
	color: #22313f;
	border-bottom: 1px solid #e5eaf0;
	box-shadow: none;
	padding: 0;
}

.navigation--site .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 76px;
	max-width: 1280px;
	padding: 0 24px;
	gap: 48px;
}

.navigation--site #smsp-logo {
	float: none;
	margin-top: 0;
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.navigation-logo {
	width: 68px;
	height: 48px;
	display: block;
	max-width: 100%;
	vertical-align: middle;
	object-fit: contain;
}

.navigation-main {
	display: flex;
	align-items: center;
	gap: 22px;
	justify-content: space-between;
	flex: 1;
	min-width: 0;
}

.navigation-links {
	display: flex;
	align-items: center;
	gap: 32px;
}

.navigation-links a,
.navigation-login-link,
.navigation-access-btn,
.site-footer__title,
.site-footer__links,
.site-footer__contact-line,
.site-footer__contact-label,
.site-footer__support > span,
.site-footer__status > a,
.site-footer .service-status__link {
	font-size: 14px;
}

.navigation-links a {
	color: #404c5a;
	padding: 0;
	font-weight: 500;
	line-height: 1.25;
	text-decoration: none;
	transition: var(--site-ui-transition-surface);
}

.consult-form-card .form-consent a,
.consult-form-card .form-secondary a,
.navigation-links a:not(.active):hover,
.navigation-login-link:hover,
.site-footer a:hover {
	color: #20b573;
}

.navigation-links .active {
	background: transparent;
}

.navigation-auth {
	display: flex;
	align-items: center;
	gap: 14px;
}

.navigation-login-link {
	color: #22313f;
	text-decoration: none;
	font-weight: 600;
}

.navigation-access-btn {
	background: #20b573;
	color: #fff;
	border-radius: 10px;
	padding: 10px 24px;
	line-height: 1.4286;
	text-decoration: none;
	font-weight: 500;
	transition: var(--site-ui-transition-border);
}

.navigation-access-btn:hover {
	background: #1b9f64;
}

/* Footer */
.site-footer {
	--site-footer-border-color: #3f4d5d;
	--site-footer-muted: #9ca8b6;
	--site-footer-small: 12px;
	background: #22313f;
	color: #fff;
	padding: 48px 0 32px;
}

.site-footer .container {
	max-width: 1280px;
	padding: 0 24px;
}

.site-footer a {
	color: var(--site-footer-muted);
	text-decoration: none;
}

.site-footer__top {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--site-footer-border-color);
}

.site-footer__title {
	font-weight: 600;
	margin-bottom: 16px;
	color: #fff;
}

.site-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.site-footer__contacts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	padding: 32px 0 0;
	margin-bottom: 32px;
	border-top: 1px solid var(--site-footer-border-color);
}

.site-footer__contacts-col:last-child {
	padding-top: 2px;
}

.site-footer__contact-line {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--site-footer-muted);
	margin-bottom: 12px;
}

.site-footer__contact-line a {
	color: #ffffff;
	font-weight: 600;
}

.site-footer__worktime {
	margin-top: 2px;
	color: #7b8591;
	font-size: var(--site-footer-small);
	line-height: 1.4;
	display: block;
}

.site-footer__support {
	margin-top: 16px;
}

.site-footer__support > span {
	display: block;
	color: var(--site-footer-muted);
	margin-bottom: 12px;
}

.navigation-auth,
.site-footer__support-icons {
	display: flex;
	align-items: center;
}

.site-footer__support-icons a {
	width: auto;
	height: auto;
	display: inline-block;
	line-height: 0;
	background: transparent;
	opacity: .7;
	transition: opacity .2s ease;
}

.site-footer__support-icons a:hover {
	opacity: 1;
}

.site-footer__support-icons img {
	width: 32px;
	height: 32px;
	display: block;
}

.site-footer__text {
	font-size: var(--site-footer-small);
	line-height: 1.5;
	color: var(--site-footer-muted);
}

.site-footer__text p {
	margin: 0 0 4px;
}

.site-footer__text p:last-child {
	margin-bottom: 0;
}

.site-footer__contacts,
.site-footer__status,
.site-footer__payments {
	padding-top: 32px;
}

.site-footer__status,
.site-footer__payments {
	border-top: 1px solid var(--site-footer-border-color);
}

.site-footer__status {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 32px;
}

.site-footer__status > a {
	color: #a3acb8;
	text-decoration: underline;
	transition: var(--site-ui-transition-color);
}

.site-footer .service-status__link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #fff;
	font-weight: 500;
}

.service-status__indicator {
	position: relative;
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: #20b573;
}

.service-status__indicator::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: currentcolor;
	opacity: .75;
	animation: service-status-ping 1s cubic-bezier(0, 0, .2, 1) infinite;
}

.service-status__indicator.is-up {
	color: #20b573;
	background: #20b573;
}

.service-status__indicator.is-down {
	color: #ef4444;
	background: #ef4444;
}

.service-status__indicator.is-unknown {
	color: #9ca3af;
	background: #9ca3af;
}

@keyframes service-status-ping {
	75%,
	100% {
		transform: scale(2);
		opacity: 0;
	}
}

.site-footer__payments {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin: 0;
	align-items: center;
}

.site-footer__payment-logo {
	width: auto;
	height: 24px;
	max-width: 100%;
	opacity: .3;
	filter: blur(0.25px);
	transition: opacity .2s ease, filter .2s ease;
	cursor: pointer;
}

.site-footer__payment-logo--h5 {
	height: 20px;
}

.site-footer__payment-logo--h4 {
	height: 10px;
}

.site-footer__payment-logo:hover {
	opacity: 1;
	filter: blur(0);
}

/* Shared validation styling */
.input-error {
	border: 2px solid #d22 !important;
	background: #fff8f8 !important;
	box-shadow: 0 0 0 1px rgba(210, 34, 34, 0.15);
}

.field-errors {
	list-style: none;
	margin: 6px 0 0;
	padding-left: 0;
	color: #d22;
	font-size: 14px;
}

.field-errors li {
	list-style: none;
	margin: 0;
	padding: 0;
}

@media screen and (max-width: 1100px) {
	.site-footer__top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

@media screen and (max-width: 980px) {
	.navigation.navigation--site .container {
		flex-direction: column;
		align-items: center;
		padding: 12px 16px;
		min-height: 0;
	}

	.navigation-main {
		width: 100%;
		align-items: center;
	}

	.navigation-links a {
		display: inline-block;
		font-size: 14px;
		padding: 6px 8px;
	}

	.navigation-auth {
		margin-top: 8px;
	}

	.site-footer__top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 28px;
	}

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

@media screen and (max-width: 640px) {
	.site-footer__top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 20px;
	}

	.site-footer__title {
		margin-bottom: 14px;
	}

	.site-footer__links {
		gap: 10px;
	}
}

/* Cookie consent */
.cookie-banner,
.cookie-settings-panel,
.cookie-setting-item,
.cookie-settings-close,
.cookie-btn {
	border-radius: 10px;
}

.cookie-banner,
.cookie-btn,
.cookie-settings-panel,
.cookie-settings-header,
.cookie-settings-actions {
	background: #fff;
}

.cookie-banner-text,
.cookie-settings-description,
.cookie-setting-description,
.cookie-settings-links {
	color: #525252;
	font-size: var(--cookie-text-sm);
}

.cookie-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 2000;
	display: none;
	max-width: 980px;
	margin: 0 auto;
	border: 1px solid var(--cookie-border-color);
	box-shadow: 0 16px 40px rgba(16, 24, 40, 0.2);
	padding: 16px;
}

.cookie-banner-text {
	line-height: 1.55;
}

.cookie-banner-text a {
	color: #20b573;
	text-decoration: underline;
}

.cookie-banner-actions {
	margin-top: 12px;
	display: flex;
	gap: var(--cookie-gap-sm);
	flex-wrap: wrap;
}

.cookie-btn {
	border: 1px solid #d4d4d4;
	padding: 10px 16px;
	color: var(--cookie-title-color);
	line-height: 1.25;
	font-weight: 500;
	cursor: pointer;
	transition: var(--cookie-transition-all);
}

.cookie-btn:hover {
	border-color: var(--cookie-title-color);
}

.cookie-btn-primary {
	/* Требование для РБ: в баннере согласия кнопки "Принять" и "Отклонить" должны иметь одинаковый визуальный вес. */
	background: #20b573;
	border-color: #20b573;
	color: #fff;
}

.cookie-btn-primary:hover {
	background: #1a9d63;
	border-color: #1a9d63;
}

.cookie-btn-outline {
	border: 2px solid var(--cookie-title-color);
}

.cookie-btn-outline:hover {
	background: var(--cookie-title-color);
	color: #fff;
}

.cookie-settings {
	position: fixed;
	inset: 0;
	z-index: 2100;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(15, 23, 42, 0.5);
}

.cookie-settings.is-visible {
	display: flex;
}

.cookie-settings-panel {
	position: relative;
	box-shadow: 0 24px 48px rgba(2, 8, 23, 0.28);
	max-width: 672px;
	width: calc(100% - 32px);
	max-height: 90vh;
	overflow-y: auto;
}

.cookie-settings-header {
	--tw-duration: .2s;
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom-style: solid;
	border-bottom-width: 1px;
	border-color: var(--cookie-border-color);
	padding: var(--cookie-panel-padding);
}

.cookie-settings-title {
	margin: 0;
	color: var(--cookie-title-color);
	font-size: var(--cookie-title-md);
	line-height: 1.3333;
	font-weight: 600;
}

.cookie-settings-close {
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	color: #737373;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: var(--cookie-transition-surface);
}

.cookie-settings-close:hover {
	background: #f5f5f5;
	color: #171717;
}

.cookie-settings-close svg {
	width: 20px;
	height: 20px;
	display: block;
}

.cookie-settings-body {
	padding: var(--cookie-panel-padding);
	display: grid;
	gap: var(--cookie-gap-lg);
}

.cookie-settings-description {
	margin: 0;
	line-height: 1.625;
}

.cookie-setting-item {
	border: 1px solid var(--cookie-border-color);
	padding: 16px;
}

.cookie-setting-item.is-interactive {
	cursor: pointer;
}

.cookie-setting-head {
	margin-bottom: 8px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: var(--cookie-gap-md);
}

.cookie-setting-head strong {
	display: block;
	margin: 0;
	color: var(--cookie-title-color);
	font-size: var(--cookie-text-md);
	line-height: 1.5;
	font-weight: 600;
}

.cookie-setting-description {
	display: block;
	line-height: 1.4286;
}

.cookie-setting-toggle input[type="checkbox"] {
	width: 20px;
	height: 20px;
	accent-color: #20b573;
	cursor: pointer;
}

.cookie-setting-toggle input[type="checkbox"][disabled] {
	cursor: not-allowed;
	opacity: .5;
}

.cookie-settings-links a {
	color: #20b573;
	text-decoration: none;
	transition: var(--cookie-transition-color);
}

.cookie-settings-links a:hover {
	text-decoration: underline;
}

.cookie-settings-actions {
	position: sticky;
	bottom: 0;
	z-index: 2;
	border-top: 1px solid var(--cookie-border-color);
	padding: var(--cookie-panel-padding);
	display: flex;
	gap: var(--cookie-gap-md);
}

.cookie-settings-actions .cookie-btn {
	flex: 1;
	justify-content: center;
	padding: 12px 24px;
	font-size: var(--cookie-text-md);
}

@media screen and (max-width: 640px) {
	.navigation.navigation--site .container {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		padding: 12px 16px;
	}

	.navigation-main {
		width: auto;
		flex: 0 0 auto;
		justify-content: flex-end;
	}

	.navigation-links {
		display: none;
	}

	.navigation-auth {
		margin-top: 0;
	}

	.cookie-settings-actions {
		flex-direction: column;
	}
}
