/* Атмосфера — подарочные сертификаты. Цвета и шрифты — переменные темы. */

.atm-cert-block {
	padding: 83px 0;
}

.atm-cert__wrapper {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 56px;
	align-items: start;
	padding: 40px;
	border-radius: 20px;
	background: var(--background_secondary, #f8f8f8);
}

/* фото */
.atm-cert__photo {
	position: sticky;
	top: 100px;
	border-radius: 20px;
	overflow: hidden;
	background: #e9dfec;
	box-shadow: 0 24px 60px -30px rgba(102, 45, 104, 0.45);
}

.atm-cert__photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1280 / 853;
	object-fit: cover;
}

.atm-cert__badge {
	position: absolute;
	left: 20px;
	bottom: 20px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--head_primary, #1a2026);
	font-family: var(--second-font-family, "Manrope", sans-serif);
	font-size: 14px;
	font-weight: 600;
	backdrop-filter: blur(6px);
}

.atm-cert__badge-icon {
	color: var(--primary, #d15bd6);
	font-size: 18px;
	line-height: 1;
}

/* текст */
.atm-cert__eyebrow {
	display: inline-block;
	margin-bottom: 14px;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(209, 91, 214, 0.12);
	color: var(--background_thirdly, #662d68);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.atm-cert__title {
	margin: 0 0 16px;
}

.atm-cert__title::first-letter {
	color: var(--primary, #d15bd6);
}

.atm-cert__subtitle {
	margin: 0 0 20px;
	color: var(--main_text_primary, #5f6367);
}

.atm-cert__bullets {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
	display: grid;
	gap: 10px;
}

.atm-cert__bullets li {
	position: relative;
	padding-left: 28px;
}

.atm-cert__bullets li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35em;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--primary, #d15bd6);
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.6 6.2-4.2 4.2a.8.8 0 0 1-1.1 0L4.4 8.5a.8.8 0 0 1 1.1-1.1l1.3 1.3 3.6-3.6a.8.8 0 1 1 1.2 1.1z'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.6 6.2-4.2 4.2a.8.8 0 0 1-1.1 0L4.4 8.5a.8.8 0 0 1 1.1-1.1l1.3 1.3 3.6-3.6a.8.8 0 1 1 1.2 1.1z'/></svg>") center / contain no-repeat;
}

/* общий состав — когда в админке не задано ни одного типа */
.atm-cert__contents {
	margin-bottom: 28px;
	padding: 22px 24px;
	border-radius: 15px;
	background: var(--background, #fff);
	border: 2px solid rgba(209, 91, 214, 0.35);
	box-shadow: 0 10px 30px -18px rgba(209, 91, 214, 0.7);
}

.atm-cert__contents-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 12px;
}

.atm-cert__contents-title {
	font-family: var(--first-font-family, "Unbounded", sans-serif);
	font-size: 16px;
	font-weight: 500;
	color: var(--head_primary, #1a2026);
}

.atm-cert__contents-price {
	white-space: nowrap;
	font-family: var(--first-font-family, "Unbounded", sans-serif);
	font-size: 18px;
	color: var(--background_thirdly, #662d68);
}

.atm-cert__contents-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
	font-size: 15px;
	line-height: 1.4;
	color: var(--head_primary, #1a2026);
}

.atm-cert__contents-list li {
	position: relative;
	padding-left: 22px;
}

.atm-cert__contents-list li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.55em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--primary, #d15bd6);
}

/* выбор типа сертификата: вкладки форматов и список типов */
.atm-cert__picker {
	margin-bottom: 28px;
}

.atm-cert__tabs {
	display: inline-flex;
	gap: 4px;
	margin-bottom: 14px;
	padding: 4px;
	border-radius: 999px;
	background: var(--background, #fff);
	box-shadow: inset 0 0 0 1px rgba(26, 32, 38, 0.08);
}

.atm-cert__tab {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 10px 20px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--head_primary, #1a2026);
	font-family: var(--second-font-family, "Manrope", sans-serif);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.atm-cert__tab:hover {
	color: var(--primary, #d15bd6);
}

.atm-cert__tab.is-active {
	background: var(--primary, #d15bd6);
	color: #fff;
}

.atm-cert__tab:focus-visible {
	outline: 2px solid var(--background_thirdly, #662d68);
	outline-offset: 2px;
}

.atm-cert__options {
	display: grid;
	gap: 10px;
}

.atm-cert__option[hidden] {
	display: none !important;
}

.atm-cert__option {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0;
	padding: 16px 18px;
	border: 2px solid transparent;
	border-radius: 15px;
	background: var(--background, #fff);
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.atm-cert__option:hover {
	border-color: rgba(209, 91, 214, 0.25);
}

.atm-cert__option.is-selected {
	border-color: rgba(209, 91, 214, 0.6);
	box-shadow: 0 10px 30px -18px rgba(209, 91, 214, 0.7);
}

/* настоящая радиокнопка — для клавиатуры и экранных читалок, видна метка */
.atm-cert__radio {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.atm-cert__option-mark {
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	border: 2px solid rgba(26, 32, 38, 0.25);
	border-radius: 50%;
	background: #fff;
	transition: border 0.2s, box-shadow 0.2s;
}

.atm-cert__option.is-selected .atm-cert__option-mark {
	border: 6px solid var(--primary, #d15bd6);
}

.atm-cert__radio:focus-visible + .atm-cert__option-mark {
	box-shadow: 0 0 0 3px rgba(102, 45, 104, 0.3);
}

.atm-cert__option-body {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
}

.atm-cert__option-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.atm-cert__option-title {
	font-family: var(--first-font-family, "Unbounded", sans-serif);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--head_primary, #1a2026);
}

.atm-cert__option-price {
	flex: 0 0 auto;
	white-space: nowrap;
	font-family: var(--first-font-family, "Unbounded", sans-serif);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--background_thirdly, #662d68);
}

.atm-cert__option-about {
	display: block;
	margin-top: 6px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--main_text_primary, #5f6367);
}

.atm-cert__option-details {
	display: none;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed rgba(209, 91, 214, 0.4);
}

.atm-cert__option.is-selected .atm-cert__option-details {
	display: block;
}

.atm-cert__option-subhead {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 700;
	color: var(--head_primary, #1a2026);
}

.atm-cert__option-list {
	display: grid;
	gap: 6px;
}

.atm-cert__option-item {
	position: relative;
	display: block;
	padding-left: 20px;
	font-size: 15px;
	line-height: 1.4;
	color: var(--head_primary, #1a2026);
}

.atm-cert__option-item::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.55em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--primary, #d15bd6);
}

.atm-cert__option-note {
	display: inline-block;
	margin-top: 10px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(209, 91, 214, 0.12);
	color: var(--background_thirdly, #662d68);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

/* форма */
.atm-cert__form-title {
	margin-bottom: 14px;
	color: var(--head_primary, #1a2026);
}

.atm-cert__form .form-top {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 14px;
}

.atm-cert__form .form-top input {
	width: 100%;
	box-sizing: border-box;
	height: 60px;
	padding: 0 20px;
	border-radius: 10px;
	border: 1px solid var(--stroke_secondary, #d7d5d3);
	background: var(--background, #fff);
	color: var(--head_primary, #1a2026);
	font-family: var(--second-font-family, "Manrope", sans-serif);
	font-size: 16px;
	outline: none;
}

.atm-cert__form .form-top input:focus {
	border-color: var(--primary, #d15bd6);
}

.atm-cert__form .form-top input.error {
	border-color: #e04545;
}

.atm-cert__form .form-bot {
	display: grid;
	gap: 12px;
}

.atm-cert__form .btn {
	width: 100%;
	height: 60px;
	color: var(--secondary_text, #fff);
}

.atm-cert__form .agreement {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--main_text_primary, #5f6367);
}

.atm-cert__form .agreement input {
	margin-top: 3px;
	accent-color: var(--primary, #d15bd6);
}

.atm-cert__form .agreement a {
	color: inherit;
	text-decoration: underline;
}

/* планшет и телефон */
@media (max-width: 1024px) {
	.atm-cert__wrapper {
		grid-template-columns: 1fr;
		gap: 28px;
		padding: 24px;
	}

	.atm-cert__photo {
		position: static;
	}
}

@media (max-width: 767px) {
	.atm-cert-block {
		padding: 48px 0;
	}

	.atm-cert__wrapper {
		padding: 16px;
		border-radius: 16px;
	}

	.atm-cert__badge {
		left: 12px;
		bottom: 12px;
		padding: 8px 12px;
		font-size: 12px;
	}

	.atm-cert__form .form-top {
		grid-template-columns: 1fr;
	}

	.atm-cert__contents {
		padding: 16px 18px;
	}

	.atm-cert__contents-head {
		flex-direction: column;
		gap: 4px;
	}

	.atm-cert__tabs {
		display: flex;
		width: 100%;
		box-sizing: border-box;
	}

	.atm-cert__tab {
		flex: 1 1 0;
		padding: 10px 8px;
		font-size: 14px;
	}

	.atm-cert__option {
		gap: 12px;
		padding: 14px;
	}

	.atm-cert__option-title {
		font-size: 15px;
	}

	.atm-cert__option-price {
		font-size: 16px;
	}

	.atm-cert__option-item {
		font-size: 14px;
	}
}
