/* Майстер Житомир — лендінг */

:root {
	--bg: #f6f3ef;
	--bg-card: #ffffff;
	--text: #1c1b19;
	--text-muted: #5c5650;
	--accent: #c45c26;
	--accent-hover: #a54d1f;
	--blue: #1e5a7a;
	--blue-light: #e8f1f5;
	--border: #e0d8ce;
	--shadow: 0 12px 40px rgba(28, 27, 25, 0.08);
	--radius: 14px;
	--font: "Segoe UI", system-ui, -apple-system, sans-serif;
	--header-h: 68px;
	--ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font);
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.container {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

/* Header */
.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	height: var(--header-h);
	background: rgba(246, 243, 239, 0.94);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}

.header.is-scrolled {
	box-shadow: 0 4px 24px rgba(28, 27, 25, 0.06);
}

.header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	height: var(--header-h);
	flex-wrap: wrap;
}

.logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--text);
	text-decoration: none;
	font-size: 1.05rem;
}

.logo strong {
	color: var(--accent);
	font-weight: 800;
}

.logo__icon {
	font-size: 1.35rem;
}

.header__phone {
	font-weight: 700;
	color: var(--blue);
	text-decoration: none;
	white-space: nowrap;
}

.header__phone:hover {
	color: var(--accent);
}

.nav {
	display: flex;
	gap: 1.35rem;
	align-items: center;
}

.nav a {
	color: var(--text-muted);
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 500;
}

.nav a:hover {
	color: var(--accent);
}

.nav-toggle {
	display: none;
	order: 3;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--bg-card);
	cursor: pointer;
}

.nav-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	margin: 0 auto;
	background: var(--text);
	border-radius: 2px;
	transition: 0.25s var(--ease);
}

.nav-toggle.is-open span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
	opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 880px) {
	.header {
		height: auto;
	}

	.header__inner {
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"logo toggle"
			"phone phone"
			"nav nav";
		gap: 0;
		height: auto;
		padding: 0.65rem 0 0;
		position: relative;
		align-items: center;
	}

	.logo {
		grid-area: logo;
	}

	.nav-toggle {
		display: flex;
		grid-area: toggle;
		justify-self: end;
		order: unset;
	}

	.header__phone {
		grid-area: phone;
		justify-self: center;
		width: 100%;
		text-align: center;
		padding: 0.65rem 0;
		margin-top: 0.35rem;
		border-top: 1px solid var(--border);
		font-size: 1.05rem;
	}

	.nav {
		grid-area: nav;
		order: unset;
		width: 100%;
		flex-direction: column;
		align-items: center;
		padding: 0;
		margin: 0;
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		background: var(--bg-card);
		border-top: 1px solid transparent;
		transition: max-height 0.35s var(--ease), opacity 0.25s, border-color 0.25s, padding 0.25s;
	}

	.nav.is-open {
		max-height: 220px;
		opacity: 1;
		border-top-color: var(--border);
		padding: 0.25rem 0 0.5rem;
		box-shadow: 0 10px 28px rgba(28, 27, 25, 0.08);
	}

	.nav a {
		width: 100%;
		padding: 0.45rem 0;
		border-bottom: 1px solid var(--border);
		color: var(--text);
		text-align: center;
		font-size: 0.95rem;
	}

	.nav a:last-child {
		border-bottom: none;
		padding-bottom: 0.15rem;
	}

	.hero {
		padding-top: 8.5rem;
	}
}

/* Hero */
.hero {
	padding: calc(var(--header-h) + 3rem) 0 4rem;
	background:
		linear-gradient(165deg, var(--blue-light) 0%, transparent 45%),
		var(--bg);
}

.hero__grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 2.5rem;
	align-items: start;
}

.hero__badge {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--blue);
	background: var(--bg-card);
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	border: 1px solid var(--border);
	margin-bottom: 1rem;
}

.hero__title {
	font-size: clamp(1.85rem, 4.5vw, 2.65rem);
	line-height: 1.12;
	font-weight: 800;
	margin-bottom: 1rem;
	letter-spacing: -0.02em;
}

.hero__title span {
	display: block;
	color: var(--accent);
	margin-top: 0.25rem;
}

.hero__lead {
	color: var(--text-muted);
	font-size: 1.05rem;
	max-width: 34rem;
	margin-bottom: 1.5rem;
}

.hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.75rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.55rem;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: 10px;
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}

.btn:hover {
	transform: translateY(-2px);
}

.btn--primary {
	background: var(--accent);
	color: #fff;
	box-shadow: 0 8px 24px rgba(196, 92, 38, 0.3);
}

.btn--primary:hover {
	background: var(--accent-hover);
	color: #fff;
	box-shadow: 0 10px 28px rgba(196, 92, 38, 0.38);
}

.btn--outline {
	background: transparent;
	border: 2px solid var(--blue);
	color: var(--blue);
}

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

.btn--accent {
	background: var(--blue);
	color: #fff;
}

.btn--accent:hover {
	background: #164a65;
	color: #fff;
}

.btn--block {
	width: 100%;
}

.hero__checks {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	font-size: 0.92rem;
	color: var(--text-muted);
}

.hero__checks li::before {
	content: "✓ ";
	color: var(--accent);
	font-weight: 700;
}

.hero-card {
	background: var(--bg-card);
	border-radius: var(--radius);
	padding: 1.75rem;
	box-shadow: var(--shadow);
	border: 1px solid var(--border);
	position: sticky;
	top: calc(var(--header-h) + 1rem);
}

.hero-card__title {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.hero-card__text {
	font-size: 0.95rem;
	color: var(--text-muted);
	margin-bottom: 1.25rem;
}

.hero-card__list {
	list-style: none;
	margin-bottom: 1.25rem;
}

.hero-card__list li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.55rem 0;
	border-bottom: 1px solid var(--border);
	font-weight: 600;
}

.hero-card__list span {
	font-size: 1.2rem;
}

@media (max-width: 880px) {
	.hero__grid {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 2rem;
	}

	.hero__content {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.hero__lead {
		margin-inline: auto;
	}

	.hero__cta {
		justify-content: center;
	}

	.hero__checks {
		align-items: center;
	}

	.hero-card {
		position: static;
		max-width: 28rem;
		margin-inline: auto;
		text-align: left;
	}

	.section__lead {
		margin-inline: auto;
	}
}

/* Sections */
.section {
	padding: 4rem 0;
}

.section__title {
	font-size: clamp(1.6rem, 3vw, 2rem);
	font-weight: 800;
	margin-bottom: 0.75rem;
}

.section__lead {
	color: var(--text-muted);
	max-width: 38rem;
	margin-bottom: 2rem;
}

/* Services */
.services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

.service {
	background: var(--bg-card);
	border-radius: var(--radius);
	padding: 1.5rem;
	border: 1px solid var(--border);
	box-shadow: 0 4px 20px rgba(28, 27, 25, 0.04);
	transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.service:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow);
}

.service h3 {
	color: var(--blue);
	font-size: 1.2rem;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--accent);
}

.service ul {
	list-style: none;
	font-size: 0.92rem;
	color: var(--text-muted);
}

.service li {
	padding: 0.45rem 0;
	padding-left: 1.1rem;
	position: relative;
}

.service li::before {
	content: "•";
	position: absolute;
	left: 0;
	color: var(--accent);
	font-weight: 700;
}

@media (max-width: 900px) {
	.services__grid {
		grid-template-columns: 1fr;
	}
}

/* Why */
.why {
	background: var(--blue);
	color: #f0f4f7;
}

.why .section__title {
	color: #fff;
}

.why__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
	align-items: start;
}

.why__copy p {
	opacity: 0.92;
	line-height: 1.65;
}

.why__list {
	list-style: none;
}

.why__list li {
	padding: 1rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	font-size: 0.98rem;
	opacity: 0.95;
}

.why__list li strong {
	color: #ffc9a8;
}

@media (max-width: 768px) {
	.why__inner {
		grid-template-columns: 1fr;
	}
}

/* Prices */
.prices__cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

.price-card {
	background: var(--bg-card);
	border-radius: var(--radius);
	padding: 1.5rem;
	text-align: center;
	border: 1px solid var(--border);
}

.price-card h3 {
	font-size: 1rem;
	margin-bottom: 0.5rem;
}

.price-card__sum {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--accent);
}

.price-card__note {
	font-size: 0.85rem;
	color: var(--text-muted);
	margin-top: 0.5rem;
}

@media (max-width: 768px) {
	.prices__cards {
		grid-template-columns: 1fr;
	}
}

/* CTA */
.cta {
	padding: 4rem 0;
}

.cta__box {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: start;
	background: var(--bg-card);
	padding: 2.25rem;
	border-radius: calc(var(--radius) + 4px);
	box-shadow: var(--shadow);
	border: 1px solid var(--border);
}

.cta__text h2 {
	margin-bottom: 0.75rem;
}

.cta__text p {
	color: var(--text-muted);
}

.cta__form {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.cta__form input,
.cta__form textarea {
	width: 100%;
	padding: 0.85rem 1rem;
	font-family: inherit;
	font-size: 1rem;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--bg);
}

.cta__form input:focus,
.cta__form textarea:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 3px var(--blue-light);
}

@media (max-width: 768px) {
	.cta__box {
		grid-template-columns: 1fr;
	}
}

/* Footer */
.footer {
	padding: 2.5rem 0 3rem;
	background: var(--text);
	color: rgba(255, 255, 255, 0.85);
	text-align: center;
}

.footer__inner p {
	font-size: 0.95rem;
}

.footer__phone {
	margin-top: 0.75rem;
}

.footer__phone a {
	color: #ffc9a8;
	font-weight: 700;
	font-size: 1.15rem;
	text-decoration: none;
}

.footer__phone a:hover {
	text-decoration: underline;
}

.footer__copy {
	margin-top: 1rem;
	font-size: 0.8rem;
	opacity: 0.65;
}

.footer__credit {
	margin-top: 0.5rem;
	font-size: 0.8rem;
	opacity: 0.65;
}

.footer__checkbox-link {
	text-decoration: none;
}

.checkbox-brand {
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #d4d4d4;
}

.checkbox-brand__box {
	background: linear-gradient(135deg, #2dd4bf 0%, #38bdf8 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Reveal */
[data-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
	}

	[data-reveal] {
		opacity: 1;
		transform: none;
	}
}
