.dogma-ture {
	--dogma-accent: #3e9a3c;
	box-sizing: border-box;
	width: min(100%, 680px);
	margin: 0 auto;
	padding: 24px 26px 28px;
	border: 1px solid #20201e;
	border-radius: 12px;
	background: #0b0b0b;
	color: #fff;
	font-family: Archivo, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	box-shadow: 0 22px 64px rgba(0, 0, 0, 0.2);
}

.dogma-ture,
.dogma-ture * {
	box-sizing: border-box;
}

.dogma-ture__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid #242422;
}

.dogma-ture__logo {
	display: block;
	width: auto;
	max-width: var(--dogma-logo-max-width);
	height: var(--dogma-logo-height);
	object-fit: contain;
	object-position: left center;
}

.dogma-ture__wordmark {
	font-size: 22px;
	letter-spacing: 0.05em;
}

.dogma-ture__tag {
	color: #8f8b84;
	font-size: 10px;
	letter-spacing: 0.18em;
	text-align: right;
	text-transform: uppercase;
}

.dogma-ture__kicker {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	color: var(--dogma-accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.dogma-ture__kicker span {
	width: 24px;
	height: 2px;
	background: currentColor;
}

.dogma-ture__title {
	margin: 12px 0;
	color: #fff;
	font-size: clamp(30px, 6vw, 40px);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.02;
	text-transform: uppercase;
}

.dogma-ture__title em {
	color: var(--dogma-accent);
	font-style: normal;
}

.dogma-ture__intro {
	max-width: 62ch;
	margin: 0 0 18px;
	color: #b4b0aa;
	font-size: 14px;
	line-height: 1.65;
}

.dogma-ture__intro p {
	margin: 0 0 10px;
}

.dogma-ture__intro p:last-child {
	margin-bottom: 0;
}

.dogma-ture__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
}

.dogma-ture__facts li {
	padding: 6px 11px;
	border: 1px solid #30302d;
	border-radius: 999px;
	color: #d1cdc6;
	font-size: 11px;
	line-height: 1.2;
}

.dogma-ture__fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.dogma-ture__label {
	display: block;
	margin: 0 0 7px;
	color: #aaa69f;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.35;
	text-transform: uppercase;
}

.dogma-ture__slots {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 24px;
}

.dogma-ture__slot {
	position: relative;
}

.dogma-ture__slot input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.dogma-ture__slot label {
	display: block;
	min-height: 82px;
	padding: 14px;
	border: 1px solid #30302d;
	border-radius: 10px;
	background: #151513;
	color: #fff;
	cursor: pointer;
	transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.dogma-ture__slot label:hover,
.dogma-ture__slot input:checked + label:hover {
	border-color: #62615b;
	color: #fff;
	transform: translateY(-1px);
}

.dogma-ture__slot label:hover .dogma-ture__availability,
.dogma-ture__slot input:checked + label:hover .dogma-ture__availability {
	color: #fff;
}

.dogma-ture__slot input:focus-visible + label {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.dogma-ture__slot input:checked + label {
	border-color: var(--dogma-accent);
	background: var(--dogma-accent);
	color: #fff;
}

.dogma-ture__slot input:disabled + label {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
}

.dogma-ture__time,
.dogma-ture__availability {
	display: block;
}

.dogma-ture__time {
	font-size: 21px;
	font-weight: 800;
	line-height: 1;
}

.dogma-ture__availability {
	margin-top: 8px;
	color: #aaa69f;
	font-size: 12px;
	line-height: 1.25;
}

.dogma-ture__slot--low .dogma-ture__availability {
	color: #ff8a85;
	font-weight: 700;
}

.dogma-ture__slot input:checked + label .dogma-ture__availability {
	color: #fff;
	font-weight: 700;
}

.dogma-ture__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px 14px;
	margin-bottom: 18px;
}

.dogma-ture__additional-people {
	margin-bottom: 18px;
}

.dogma-ture__person {
	min-width: 0;
	margin: 0 0 16px;
	padding: 16px;
	border: 1px solid #30302d;
	border-radius: 10px;
	background: #10100f;
}

.dogma-ture__person[hidden] {
	display: none !important;
}

.dogma-ture__person legend {
	padding: 0 7px;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.dogma-ture__person .dogma-ture__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-bottom: 0;
}

.dogma-ture input[type="text"],
.dogma-ture input[type="email"],
.dogma-ture input[type="tel"] {
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 13px;
	border: 1px solid #383834;
	border-radius: 8px;
	background: #151513;
	box-shadow: none;
	color: #fff;
	font: inherit;
	font-size: 15px;
}

.dogma-ture input::placeholder {
	color: #77736d;
	opacity: 1;
}

.dogma-ture input:focus-visible {
	border-color: var(--dogma-accent);
	outline: 2px solid var(--dogma-accent);
	outline-offset: 1px;
}

.dogma-ture input[aria-invalid="true"] {
	border-color: #ff625d;
	outline: 2px solid #ff625d;
	outline-offset: 1px;
}

.dogma-ture__slots.dogma-ture--invalid .dogma-ture__slot label {
	border-color: #ff625d;
}

.dogma-ture__stepper {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
}

.dogma-ture__stepper button {
	display: inline-grid;
	width: 38px;
	height: 38px;
	place-items: center;
	margin: 0;
	padding: 0;
	border: 1px solid #383834;
	border-radius: 8px;
	background: #151513;
	color: #fff;
	font: inherit;
	font-size: 19px;
	cursor: pointer;
}

.dogma-ture__stepper button:hover,
.dogma-ture__stepper button:focus-visible {
	border-color: var(--dogma-accent);
	outline: 0;
}

.dogma-ture__stepper input[type="number"] {
	width: 30px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 17px;
	font-weight: 700;
	text-align: center;
	appearance: textfield;
}

.dogma-ture__stepper input::-webkit-inner-spin-button,
.dogma-ture__stepper input::-webkit-outer-spin-button {
	margin: 0;
	appearance: none;
}

.dogma-ture__stepper span {
	color: #8f8b84;
	font-size: 11px;
}

.dogma-ture__privacy {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 16px;
	color: #aaa69f;
	font-size: 12px;
	line-height: 1.55;
	cursor: pointer;
}

.dogma-ture__privacy input {
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
	margin: 2px 0 0;
	accent-color: var(--dogma-accent);
}

.dogma-ture__privacy a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.dogma-ture__privacy--optional {
	padding-top: 13px;
	border-top: 1px solid #282825;
}

.dogma-ture__privacy.dogma-ture--invalid {
	color: #ff8a85;
}

.dogma-ture__privacy.dogma-ture--invalid input {
	outline: 2px solid #ff625d;
	outline-offset: 2px;
}

.dogma-ture__message {
	min-height: 0;
	margin: 0 0 10px;
	color: #ff8a85;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.45;
}

.dogma-ture__message:empty {
	display: none;
}

.dogma-ture button.dogma-ture__submit {
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: 8px;
	background: var(--dogma-accent);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

.dogma-ture button.dogma-ture__submit:hover {
	background: var(--dogma-accent);
	color: #fff;
	filter: brightness(0.9);
}

.dogma-ture button.dogma-ture__submit:focus-visible {
	background: var(--dogma-accent);
	color: #fff;
	filter: brightness(0.9);
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.dogma-ture button.dogma-ture__submit:disabled {
	opacity: 0.6;
	cursor: wait;
	filter: none;
}

.dogma-ture__fineprint {
	margin: 12px 0 0;
	color: #85817a;
	font-size: 11px;
	line-height: 1.5;
	text-align: center;
}

.dogma-ture__closed {
	margin: 0;
	padding: 22px;
	border: 1px solid #30302d;
	border-radius: 10px;
	background: #151513;
	color: #d1cdc6;
	font-size: 15px;
	line-height: 1.5;
	text-align: center;
}

.dogma-ture__success {
	padding: 34px 10px 26px;
	text-align: center;
}

.dogma-ture__success-mark {
	display: grid;
	width: 58px;
	height: 58px;
	place-items: center;
	margin: 0 auto 18px;
	border: 2px solid var(--dogma-accent);
	border-radius: 50%;
	background: #101a0f;
	color: var(--dogma-accent);
	font-size: 29px;
	font-weight: 800;
}

.dogma-ture__success h2 {
	margin: 0 0 12px;
	color: #fff;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.15;
	text-transform: uppercase;
}

.dogma-ture__success p {
	max-width: 48ch;
	margin: 0 auto;
	color: #b4b0aa;
	font-size: 14px;
	line-height: 1.65;
}

.dogma-ture__success strong {
	color: #fff;
}

.dogma-ture__success-note {
	margin-top: 12px !important;
	color: #f3c774 !important;
}

@media (max-width: 560px) {
	.dogma-ture {
		padding: 20px 18px 24px;
		border-radius: 8px;
	}

	.dogma-ture__header {
		align-items: flex-start;
	}

	.dogma-ture__slots,
	.dogma-ture__grid,
	.dogma-ture__person .dogma-ture__grid {
		grid-template-columns: 1fr;
	}

	.dogma-ture__slots {
		gap: 8px;
	}

	.dogma-ture__slot label {
		min-height: 70px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dogma-ture__slot label {
		transition: none;
	}
}
