/* Блок «Останемся на связи» (подписка на почту, Телеграм, MAX).
   Макет: «Шаблон страницы Спасибо за заявку v10».
   Все классы с префиксом sts-, чтобы не пересекаться с main.min.css:
   блок выводится и на главной, и на /order_done. */

.sts-section {
	--sts-ink: #15241b;
	--sts-muted: #68756c;
	--sts-line: #dce4dd;
	--sts-pine: #00441d;
	--sts-mint: #e8f2eb;
	--sts-shell: min(1340px, calc(100vw - 64px));

	padding: 56px 0 28px;
	color: var(--sts-ink);
	font-family: Rubik, Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 1.55;
}

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

.sts-shell {
	width: var(--sts-shell);
	margin: 0 auto;
}

.sts-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 28px;
}

.sts-section .sts-head h2 {
	max-width: 835px;
	margin: 0;
	font-family: Rubik, Arial, Helvetica, sans-serif;
	font-size: clamp(27px, 3vw, 44px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: var(--sts-ink);
}

.sts-head > p {
	max-width: 440px;
	margin: 0 0 4px;
	color: var(--sts-muted);
	font-size: 15px;
	line-height: 1.5;
}

/* Карточки ---------------------------------------------------------------- */

.sts-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: 1fr;
	gap: 16px;
}

.sts-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 26px;
	border: 1px solid var(--sts-line);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 8px 25px rgba(20, 54, 34, 0.06);
}

.sts-card__head {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 46px;
}

.sts-section .sts-card__head h3 {
	margin: 0;
	font-family: Rubik, Arial, Helvetica, sans-serif;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.025em;
	color: var(--sts-ink);
}

.sts-card__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	color: var(--sts-pine);
	background: var(--sts-mint);
}

.sts-card__icon svg {
	width: 23px;
	height: 23px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sts-card__text {
	margin: 18px 0 24px;
	color: var(--sts-muted);
	font-size: 15px;
	line-height: 1.55;
}

/* Кнопка — одна и та же у почты и соцсетей ------------------------------- */

.sts-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 12px 18px;
	border: 1px solid #d3e4d8;
	border-radius: 13px;
	color: var(--sts-pine);
	background: var(--sts-mint);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.18s, border-color 0.18s;
}

.sts-section a.sts-button {
	color: var(--sts-pine);
	text-decoration: none;
}

.sts-button:hover,
.sts-section a.sts-button:hover {
	color: var(--sts-pine);
	background: #dcece1;
	border-color: #b8d3c1;
}

.sts-button:focus-visible {
	outline: 3px solid rgba(8, 107, 63, 0.25);
	outline-offset: 3px;
}

/* Почта ------------------------------------------------------------------- */

.sts-form {
	display: flex;
	flex-direction: column;
	margin-top: auto;
}

.sts-section .sts-form input[type="email"] {
	display: block;
	width: 100%;
	min-width: 0;
	height: 52px;
	margin: 0;
	padding: 13px 15px;
	border: 1px solid #cbd8ce;
	border-radius: 12px;
	background: #fafcf9;
	color: var(--sts-ink);
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
	transition: border-color 0.18s, box-shadow 0.18s;
}

.sts-section .sts-form input[type="email"]::placeholder {
	color: #77827b;
	opacity: 1;
}

.sts-section .sts-form input[type="email"]:focus {
	outline: none;
	border-color: #086b3f;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(8, 107, 63, 0.12);
}

.sts-section .sts-form input[type="email"]:invalid:not(:placeholder-shown) {
	border-color: #b73b2d;
}

.sts-form .sts-button {
	margin-top: 12px;
}

.sts-form__note {
	margin: 10px 0 0;
	color: var(--sts-muted);
	font-size: 11px;
	line-height: 1.45;
}

.sts-section .sts-form__note a {
	color: inherit;
	text-decoration: underline;
}

/* Соцсети: QR рядом с кнопкой ------------------------------------------- */

.sts-card__actions {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	align-items: end;
	gap: 16px;
	min-width: 0;
	margin-top: auto;
}

.sts-qr {
	display: block;
	width: 112px;
	height: 112px;
	border: 1px solid var(--sts-line);
	border-radius: 12px;
	background: #fff;
}

@media (min-width: 901px) and (max-width: 1050px) {
	.sts-card__actions {
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 12px;
	}

	.sts-qr {
		width: 96px;
		height: 96px;
	}

	.sts-card__actions > .sts-button {
		padding-inline: 10px;
		font-size: 14px;
	}
}

@media (max-width: 1050px) {
	.sts-section {
		--sts-shell: min(1340px, calc(100vw - 40px));
	}

	.sts-card {
		padding: 20px;
	}

	.sts-card__head {
		align-items: flex-start;
		gap: 12px;
	}

	.sts-section .sts-card__head h3 {
		font-size: 20px;
	}

	.sts-card__icon {
		width: 40px;
		height: 40px;
	}
}

@media (min-width: 701px) and (max-width: 900px) {
	.sts-card__actions {
		grid-template-columns: 1fr;
	}

	.sts-qr {
		display: none;
	}
}

@media (max-width: 700px) {
	.sts-section {
		--sts-shell: calc(100% - 28px);

		padding: 36px 0 20px;
	}

	.sts-head {
		display: block;
		margin-bottom: 22px;
	}

	.sts-head > p {
		max-width: none;
		margin: 16px 0 0;
	}

	.sts-grid {
		grid-template-columns: 1fr;
		grid-auto-rows: auto;
		align-items: start;
	}

	.sts-card {
		padding: 24px 22px;
	}

	.sts-section .sts-card__head h3 {
		font-size: 21px;
	}

	.sts-card__text {
		margin: 16px 0 22px;
	}

	.sts-card--social .sts-card__text {
		margin-bottom: 22px;
	}

	.sts-card__actions {
		display: block;
		margin-top: 0;
	}

	.sts-qr {
		display: none;
	}

	.sts-button {
		min-height: 50px;
	}
}

/* На /order_done ритм и типографику задаёт страница: ширина поля, отступы
   и заголовки берутся из order-done.css, чтобы блок не выбивался из остальных. */
.od-page .sts-section {
	--sts-shell: var(--od-shell);
	--sts-ink: var(--od-ink);
	--sts-muted: var(--od-muted);
	--sts-line: var(--od-line);

	padding: 0;
}

.od-page .sts-section .sts-head h2 {
	font-size: var(--od-type-section);
	font-weight: 500;
	letter-spacing: -0.035em;
}

.od-page .sts-head > p {
	max-width: 430px;
	font-size: 15px;
}
