/* ===== GOOGLE FONT ===== */
/* Nunito — округлый, дружелюбный, с кириллицей */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

/* ===== VARIABLES ===== */
/* Тёплая молочно-кремовая палитра + акцент зелень луга */
:root {
	--color-bg:         #fffdf7;
	--color-surface:    #f5f0e8;
	--color-border:     #e6ddd0;
	--color-text:       #2b1f14;
	--color-muted:      #7a6651;
	--color-accent:     #5a8a3c;
	--color-accent-h:   #477230;
	--color-success:    #3a7d44;
	--color-danger:     #c0392b;
	--color-white:      #fffdf7;

	--font-base:        'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
	--radius:           10px;
	--radius-lg:        16px;
	--container:        1200px;
	--section-gap:      80px;
	--header-h:         64px;

	--shadow-sm:        0 1px 4px rgba(80,50,20,.07);
	--shadow-md:        0 4px 16px rgba(80,50,20,.10);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
	scroll-behavior: smooth;
}
body {
	font-family: var(--font-base);
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-text);
	background: var(--color-bg);
	overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea { font: inherit; }

/* ===== CONTAINER ===== */
.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 20px;
}

/* ===== SECTIONS ===== */
.section {
	padding: var(--section-gap) 0;
}
.section:nth-child(even) {
	background: var(--color-surface);
}
.section__title {
	font-size: clamp(1.5rem, 4vw, 2.2rem);
	font-weight: 700;
	margin-bottom: 40px;
	text-align: center;
}

/* ===== BUTTONS ===== */
.btn {
	display: inline-block;
	padding: 14px 32px;
	border-radius: var(--radius);
	font-weight: 600;
	font-size: 1rem;
	transition: background .2s, transform .1s;
	text-align: center;
}
.btn--primary {
	background: var(--color-accent);
	color: var(--color-white);
}
.btn--primary:hover {
	background: var(--color-accent-h);
	transform: translateY(-1px);
}
.btn--sm {
	padding: 8px 20px;
	font-size: .9rem;
}
.btn--outline {
	border: 2px solid var(--color-accent);
	color: var(--color-accent);
}
.btn--outline:hover {
	background: var(--color-accent);
	color: var(--color-white);
}

/* ===== GRID ===== */
.grid {
	display: grid;
	gap: 24px;
}
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
	.grid--2 { grid-template-columns: repeat(2, 1fr); }
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ===== CARDS ===== */
.card {
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 28px 24px;
	box-shadow: var(--shadow-sm);
	transition: box-shadow .2s, transform .2s;
}
.card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}
.card__icon {
	font-size: 1.8rem;
	margin-bottom: 12px;
	color: var(--color-accent);
}
.card__title {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 8px;
}
.card__text { color: var(--color-muted); font-size: .95rem; }
.card__price {
	display: inline-block;
	margin-top: 12px;
	font-weight: 700;
	color: var(--color-accent);
}

/* ===== HEADER ===== */
.header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-h);
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
	box-shadow: var(--shadow-sm);
}
.header__inner {
	height: 100%;
	display: flex;
	align-items: center;
	gap: 24px;
}
.header__logo {
	font-size: 1.2rem;
	font-weight: 700;
	white-space: nowrap;
	margin-right: auto;
}
.header__nav {
	display: none;
	gap: 20px;
}
.header__nav-link {
	font-size: .95rem;
	color: var(--color-muted);
	transition: color .2s;
}
.header__nav-link:hover { color: var(--color-text); }
.header__cta {
	display: none;
	white-space: nowrap;
}

/* Burger */
.header__burger {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 6px;
}
.header__burger span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--color-text);
	border-radius: 2px;
	transition: transform .2s, opacity .2s;
}
.header__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.open span:nth-child(2) { opacity: 0; }
.header__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.header__nav.open {
	display: flex;
	flex-direction: column;
	position: absolute;
	top: var(--header-h);
	left: 0;
	right: 0;
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
	padding: 16px 20px;
	gap: 16px;
}

@media (min-width: 768px) {
	.header__nav { display: flex; }
	.header__burger { display: none; }
	.header__cta { display: inline-block; }
	.header__logo { margin-right: 0; }
}

/* ===== HERO ===== */
.hero {
	background: var(--color-surface);
}
.hero__inner {
	display: flex;
	flex-direction: column;
	gap: 40px;
	align-items: center;
}
.hero__content { max-width: 560px; }
.hero__title {
	font-size: clamp(1.8rem, 5vw, 3rem);
	font-weight: 800;
	line-height: 1.2;
	margin-bottom: 16px;
}
.hero__subtitle {
	font-size: 1.1rem;
	color: var(--color-muted);
	margin-bottom: 28px;
}
.hero__image {
	width: 100%;
	max-width: 480px;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-md);
}
.hero__image img {
	width: 100%;
	height: 320px;
	object-fit: cover;
}

@media (min-width: 900px) {
	.hero__inner {
		flex-direction: row;
		justify-content: space-between;
	}
	.hero__image { max-width: 460px; flex-shrink: 0; }
}

/* ===== ABOUT ===== */
.about__inner {
	display: grid;
	gap: 40px;
}
.about__text p + p { margin-top: 16px; }
.about__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}
.about__stat { text-align: center; min-width: 100px; }
.about__stat-value {
	display: block;
	font-size: 2rem;
	font-weight: 800;
	color: var(--color-accent);
}
.about__stat-label { font-size: .9rem; color: var(--color-muted); }

@media (min-width: 768px) {
	.about__inner { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ===== STAGES ===== */
.stages__list { display: flex; flex-direction: column; gap: 0; }
.stages__item {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	padding: 24px 0;
	border-bottom: 1px solid var(--color-border);
}
.stages__item:last-child { border-bottom: none; }
.stages__num {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--color-accent);
	color: var(--color-white);
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}
.stages__name { font-weight: 600; margin-bottom: 4px; }
.stages__desc { font-size: .95rem; color: var(--color-muted); }

/* ===== CASES ===== */
.case-card {
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 28px 24px;
	position: relative;
}
.case-card__num {
	font-size: 2.5rem;
	font-weight: 800;
	color: var(--color-border);
	display: block;
	line-height: 1;
	margin-bottom: 8px;
}
.case-card__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.case-card__result {
	font-weight: 600;
	color: var(--color-accent);
	margin-bottom: 10px;
	font-size: .95rem;
}
.case-card__desc { font-size: .9rem; color: var(--color-muted); }

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.price-table, .cmp-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .95rem;
}
.price-table th, .price-table td,
.cmp-table th, .cmp-table td {
	padding: 14px 16px;
	text-align: left;
	border-bottom: 1px solid var(--color-border);
}
.price-table th, .cmp-table th {
	font-weight: 700;
	background: var(--color-surface);
	white-space: nowrap;
}
.price-table tr:hover td, .cmp-table tr:hover td {
	background: var(--color-surface);
}

/* Comparison highlights */
.cmp-table__us { background: rgba(90,138,60,.05); }
.check { color: var(--color-success); font-weight: 700; font-size: 1.1rem; }
.cross { color: var(--color-danger);  font-weight: 700; font-size: 1.1rem; }

/* ===== REVIEWS ===== */
.review-card {
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 28px 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.review-card__text {
	font-style: italic;
	color: var(--color-muted);
	flex: 1;
}
.review-card__text::before { content: '\201C'; }
.review-card__text::after  { content: '\201D'; }
.review-card__name  { font-weight: 600; display: block; }
.review-card__role  { font-size: .85rem; color: var(--color-muted); }

/* ===== GALLERY / SLIDER ===== */
.slider {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--color-surface);
}
.slider__track {
	display: flex;
	transition: transform .4s ease;
}
.slider__slide {
	min-width: 100%;
	flex-shrink: 0;
}
.slider__slide img {
	width: 100%;
	height: 400px;
	object-fit: cover;
}
.slider__btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255,253,247,.85);
	border-radius: 50%;
	width: 44px;
	height: 44px;
	font-size: 1.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-md);
	transition: background .2s;
	z-index: 2;
}
.slider__btn:hover { background: var(--color-white); }
.slider__btn--prev { left: 12px; }
.slider__btn--next { right: 12px; }
.slider__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 14px 0;
}
.slider__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--color-border);
	transition: background .2s;
	border: none;
	cursor: pointer;
}
.slider__dot.active { background: var(--color-accent); }

/* ===== SEO TEXT ===== */
.seo-text__inner { max-width: 800px; margin: 0 auto; }
.seo-text__inner p + p { margin-top: 16px; color: var(--color-muted); }

/* ===== ERRORS / TIPS ===== */
.error-card {
	display: flex;
	gap: 16px;
	padding: 24px;
	border-radius: var(--radius-lg);
	border: 1px solid var(--color-border);
}
.error-card--error { border-left: 4px solid var(--color-danger); }
.error-card--tip   { border-left: 4px solid var(--color-success); }
.error-card__badge {
	font-size: 1.4rem;
	flex-shrink: 0;
	line-height: 1;
}
.error-card__title { font-weight: 600; margin-bottom: 4px; }
.error-card__text  { font-size: .9rem; color: var(--color-muted); }

/* ===== FAQ ===== */
.faq__list { display: flex; flex-direction: column; gap: 0; max-width: 800px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--color-border); }
.faq__question {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 0;
	font-size: 1rem;
	font-weight: 600;
	text-align: left;
	gap: 12px;
}
.faq__arrow {
	flex-shrink: 0;
	transition: transform .3s;
	color: var(--color-accent);
}
.faq__question[aria-expanded="true"] .faq__arrow {
	transform: rotate(180deg);
}
.faq__answer {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .3s ease;
	color: var(--color-muted);
}
.faq__answer > p {
	overflow: hidden;
	padding-bottom: 0;
	transition: padding-bottom .3s ease;
}
.faq__answer.open {
	grid-template-rows: 1fr;
}
.faq__answer.open > p {
	padding-bottom: 20px;
}

/* ===== CTA ===== */
.cta {
	background: var(--color-accent) !important;
	color: var(--color-white);
}
.cta .section__title,
.cta__title {
	color: var(--color-white);
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: 700;
	text-align: center;
	margin-bottom: 12px;
}
.cta__inner { text-align: center; max-width: 560px; margin: 0 auto; }
.cta__subtitle { margin-bottom: 28px; opacity: .85; }
.cta__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 12px;
}
.cta__input {
	padding: 14px 16px;
	border-radius: var(--radius);
	border: none;
	font-size: 1rem;
	outline: 2px solid transparent;
	transition: outline .2s;
}
.cta__input:focus { outline-color: var(--color-white); }
.cta .btn--primary {
	background: var(--color-white);
	color: var(--color-accent);
}
.cta .btn--primary:hover { background: var(--color-surface); }
.cta__privacy { font-size: .8rem; opacity: .65; }
.cta__msg { margin-top: 12px; font-weight: 600; min-height: 24px; }

@media (min-width: 600px) {
	.cta__form { flex-direction: row; flex-wrap: nowrap; }
	.cta__input { flex: 1; }
	.cta__form .btn { flex-shrink: 0; white-space: nowrap; }
}

/* ===== FOOTER ===== */
/* Тёмно-коричневый вместо чёрного — теплее, в тему */
.footer {
	background: #1e1208;
	color: #c4b5a0;
	padding-top: 60px;
}
.footer__inner {
	display: grid;
	gap: 40px;
	padding-bottom: 48px;
}
.footer__logo {
	display: block;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--color-white);
	margin-bottom: 12px;
}
.footer__desc { font-size: .9rem; }
.footer__heading {
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-white);
	margin-bottom: 14px;
}
.footer__contact-link {
	display: block;
	margin-bottom: 6px;
	transition: color .2s;
}
.footer__contact-link:hover { color: var(--color-white); }
.footer__hours, .footer__address { margin-top: 8px; font-size: .9rem; }
.footer__nav { display: flex; flex-direction: column; gap: 8px; }
.footer__nav-link { font-size: .9rem; transition: color .2s; }
.footer__nav-link:hover { color: var(--color-white); }

.footer__bottom {
	border-top: 1px solid rgba(255,255,255,.1);
	padding: 16px 0;
}
.footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: space-between;
	align-items: center;
	font-size: .85rem;
}
.footer__dev-link {
	color: var(--color-accent);
	transition: opacity .2s;
}
.footer__dev-link:hover { opacity: .8; }

@media (min-width: 640px) {
	.footer__inner { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.footer__inner { grid-template-columns: 2fr 1fr 1fr; }
}