@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@700;900&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap");

body {
	font-family: "Source Sans 3", "Segoe UI", sans-serif;
	background: #e8edf2;
	color: #1c1c1c;
}

.masthead {
	background: #fff;
	border-bottom: 4px solid #111;
}

.mast-top {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
	max-width: 1000px;
	margin: 0 auto;
	padding: 8px 16px;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #5c6570;
}

.mast-kicker {
	color: #b42318;
	font-weight: 700;
}

.mast-brand {
	max-width: 1000px;
	margin: 0 auto;
	padding: 14px 16px 10px;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
}

.mast-logo {
	font-family: "Merriweather", Georgia, serif;
	font-weight: 900;
	font-size: 34px;
	line-height: 1;
	color: #111;
	text-decoration: none;
	letter-spacing: -0.03em;
}

.mast-logo span {
	color: #b42318;
}

.mast-logo:hover {
	color: #111;
}

.mast-tag {
	margin: 0;
	font-size: 13px;
	color: #5c6570;
	text-align: right;
}

.mast-nav {
	background: #111;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.mast-nav-inner {
	max-width: 1000px;
	margin: 0 auto;
	display: flex;
	white-space: nowrap;
}

.mast-nav a {
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 12px 16px;
}

.mast-nav a:hover {
	color: #f3c63d;
	background: #1c1c1c;
}

.container {
	padding-top: 18px;
}

.content {
	width: min(760px, 100%);
	padding: 28px 22px 36px;
	box-shadow: 0 8px 28px rgba(17, 24, 39, 0.06);
}

.content h1 {
	font-family: "Merriweather", Georgia, serif;
	font-weight: 900;
	font-size: 32px;
	line-height: 1.28;
	text-align: left;
	color: #121212;
}

.content h2 {
	font-family: "Merriweather", Georgia, serif;
	font-size: 20px;
	line-height: 1.45;
	border-bottom: none;
	padding-bottom: 0;
	color: #1a1a1a;
	font-weight: 700;
}

.content p {
	font-size: 18px;
	line-height: 1.65;
}

.content p b,
.content li b {
	font-weight: 700;
}

.focus-p {
	background: #fff8e6;
	border: 1px solid #e4c98a;
	border-left: 5px solid #b42318;
	border-radius: 8px;
	padding: 12px 14px;
}

.meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	align-items: center;
	margin-bottom: 18px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e6e8eb;
}

.clock-new,
.data-new {
	display: inline;
	margin: 0;
	font-size: 13px;
	color: #667085;
}

.formula {
	margin: 6px 0 22px;
	border: 1px solid #d5dee6;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
}

.formula-head {
	background: #123c38;
	color: #fff;
	padding: 14px 16px;
}

.formula-head p {
	margin: 4px 0 0;
	color: #d7ebe7;
	font-size: 15px;
	line-height: 1.45;
}

.formula-head h2 {
	color: #fff;
	margin: 0;
	font-size: 22px;
	font-family: "Merriweather", Georgia, serif;
}

.formula-item {
	padding: 14px 16px 16px;
	border-top: 1px solid #e6edf1;
}

.formula-item:nth-child(even) {
	background: #f6faf8;
}

.formula-item h3 {
	margin: 0 0 4px;
	font-size: 17px;
	color: #123c38;
	font-family: "Source Sans 3", sans-serif;
}

.formula-lead {
	margin: 0 0 6px;
	font-weight: 700;
	font-size: 16px;
}

.formula-item p {
	margin: 0;
	font-size: 16px;
}

.formula-origin {
	margin-top: 8px !important;
	font-size: 13px !important;
	color: #5d6b72;
}

.ritual {
	margin: 8px 0 26px;
}

.ritual > h2 {
	margin-bottom: 6px;
}

.ritual-lead {
	margin-top: 0;
}

.ritual-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

.ritual-card {
	border: 1px solid #d9e2e8;
	border-radius: 16px;
	padding: 14px;
	background: #fbfcfd;
}

.ritual-card h3 {
	margin: 0 0 8px;
	font-size: 18px;
	color: #123c38;
	font-family: "Source Sans 3", sans-serif;
}

.ritual-video {
	width: 148px;
	height: 148px;
	max-width: 46vw;
	object-fit: cover;
	border-radius: 12px;
	display: block;
	margin: 0 auto 12px;
	background: #111;
}

.ritual-card p {
	font-size: 15px;
	margin-bottom: 8px;
}

.ritual-points {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
}

.ritual-points li {
	position: relative;
	padding: 6px 0 6px 18px;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.35;
}

.ritual-points li::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #1a6b5c;
	position: absolute;
	left: 0;
	top: 11px;
}

.coupon-wrap {
	background: linear-gradient(180deg, #f7f1e6 0%, #e5f2f8 100%);
	border-radius: 28px;
	padding: 16px 12px 18px;
	width: 100%;
	max-width: 460px;
	margin: 0 auto;
}

.coupon-ticket {
	position: relative;
	background: #fff;
	border: 2px dashed #c4a36a;
	border-radius: 26px;
	padding: 28px 18px 18px;
	text-align: center;
}

.scissors {
	position: absolute;
	top: -16px;
	left: 22px;
	width: 34px;
	height: 34px;
	background: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.scissors svg {
	transform: rotate(-75deg);
}

@media (prefers-reduced-motion: reduce) {
	.coupon-btn,
	.pulse {
		animation: none;
	}
}

.coupon-ticket h2 {
	font-family: "Source Sans 3", sans-serif;
	color: #123c38;
	font-size: 28px;
	line-height: 1.15;
	margin: 0 0 6px;
	font-weight: 800;
}

.coupon-sub {
	margin: 0 0 12px;
	color: #123c38;
	font-size: 22px !important;
	font-weight: 800;
	line-height: 1.25;
}

.coupon-lead {
	font-size: 16px !important;
	margin: 0 0 14px;
}

.coupon-photo {
	position: relative;
	display: block;
	width: 240px;
	max-width: 100%;
	margin: 0 auto 16px;
}

.coupon-photo img {
	width: 240px !important;
	max-width: 100% !important;
	height: auto !important;
	margin: 0 auto;
	border-radius: 8px;
}

html,
body {
	overflow-x: hidden;
}

.badge-off {
	position: absolute;
	top: 18px;
	right: -6px;
	background: #e10600;
	color: #fff;
	font-weight: 800;
	font-size: 22px;
	line-height: 1;
	padding: 10px 14px 10px 12px;
	border-radius: 6px 8px 8px 2px;
	box-shadow: 0 6px 14px rgba(225, 6, 0, 0.25);
	transform: rotate(8deg);
}

#scroll_element,
#form,
#form-block {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.coupon-ticket {
	box-sizing: border-box;
}

#scroll_element {
	display: block;
	margin: 28px 0 !important;
}

.coupon-btn {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	background: #f3c63d;
	color: #1a1a1a;
	text-decoration: none;
	font-weight: 800;
	font-size: 17px;
	line-height: 1.35;
	border-radius: 999px;
	padding: 14px 16px;
	overflow-wrap: anywhere;
	box-shadow: 0 8px 18px rgba(210, 164, 28, 0.35);
	animation: coupon-move 2.2s ease-in-out infinite;
}

.coupon-btn:hover {
	color: #111;
	background: #ffd45a;
	text-decoration: none;
}

.coupon-note {
	margin: 12px 0 0;
	font-size: 13px !important;
	line-height: 1.45;
	color: #6b7280;
}

@keyframes coupon-move {
	0%,
	68%,
	100% {
		transform: translateY(0) scale(1);
	}
	74% {
		transform: translateY(-4px) scale(1.03);
	}
	82% {
		transform: translateY(2px) scale(1.01);
	}
	90% {
		transform: translateY(-2px) scale(1.02);
	}
}

.site-footer {
	background: #141414;
	color: #c7c7c7;
	padding: 36px 16px 28px;
	margin-top: 28px;
	font-size: 14px;
	line-height: 1.6;
}

.site-footer-inner {
	max-width: 900px;
	margin: 0 auto;
	text-align: center;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	justify-content: center;
	border-top: 1px solid #333;
	border-bottom: 1px solid #333;
	padding: 16px 0;
	margin: 18px 0;
}

.footer-link {
	background: none;
	border: 0;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.footer-link:hover {
	color: #f3c63d;
}

.footer-phones {
	margin: 0 0 8px;
}

.site-footer a {
	color: #f3c63d;
}

body.modal-open {
	overflow: hidden;
}

.legal-modal[hidden] {
	display: none;
}

.legal-modal {
	position: fixed;
	inset: 0;
	z-index: 80;
}

.legal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 16, 20, 0.62);
}

.legal-dialog {
	position: relative;
	z-index: 1;
	width: min(760px, calc(100% - 24px));
	max-height: min(86vh, 860px);
	margin: 7vh auto 0;
	background: #fff;
	color: #1c1c1c;
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.legal-x {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: #f2f4f6;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.legal-scroll {
	overflow: auto;
	padding: 22px 18px 28px;
	text-align: left;
}

.legal-panel h2,
.legal-panel h3 {
	font-family: "Merriweather", Georgia, serif;
	color: #123c38;
	margin: 18px 0 8px;
}

.legal-panel h2 {
	font-size: 24px;
	margin-top: 0;
	padding-right: 36px;
}

.legal-panel h3 {
	font-size: 18px;
}

.legal-panel p,
.legal-panel li {
	font-size: 15px;
	line-height: 1.55;
	margin: 0 0 8px;
}

.legal-panel ul,
.legal-panel ol {
	margin: 0 0 12px 18px;
}

.legal-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	margin: 8px 0 16px;
}

.legal-table th,
.legal-table td {
	border: 1px solid #e3e8ec;
	padding: 6px 8px;
	vertical-align: top;
	text-align: left;
}

.legal-table th {
	background: #f4f7f8;
}

@media (min-width: 860px) {
	.ritual-grid {
		grid-template-columns: repeat(3, 1fr);
		align-items: start;
	}

	.ritual-video {
		width: 100%;
		height: auto;
		aspect-ratio: 1 / 1;
		max-width: none;
	}
}

@media (max-width: 700px) {
	.mast-logo {
		font-size: 26px;
	}

	.mast-brand {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}

	.mast-tag {
		text-align: left;
	}

	.content {
		padding: 18px 14px 28px;
	}

	.content h1 {
		font-size: 24px;
	}

	.content p {
		font-size: 17px;
	}

	.coupon-ticket h2 {
		font-size: 24px;
	}

	.coupon-sub {
		font-size: 18px !important;
	}

	.coupon-btn {
		font-size: 15px;
		padding: 13px 12px;
	}

	.mast-nav-inner {
		white-space: normal;
		flex-wrap: wrap;
	}

	.mast-nav a {
		padding: 10px 12px;
		font-size: 12px;
		letter-spacing: 0.04em;
	}

	.legal-dialog {
		margin-top: 12px;
		max-height: calc(100vh - 24px);
	}
}
