/* ===== VARIABLES ===== */
:root {
	--color-bg:         #fffdf7;
	--color-surface:    #f5f0e8;
	--color-surface-2:  #ede8dc;
	--color-border:     #ddd5c4;
	--color-text:       #2c2416;
	--color-muted:      #7a6e5f;
	--color-accent:     #c8501a;
	--color-accent-h:   #a83f12;
	--color-accent-bg:  #fdf0ea;
	--color-success:    #2d7a3a;
	--color-danger:     #b91c1c;
	--color-white:      #ffffff;

	--font-base:        Georgia, 'Times New Roman', serif;
	--font-ui:          'Segoe UI', system-ui, -apple-system, sans-serif;
	--radius:           8px;
	--radius-lg:        16px;
	--container:        1140px;
	--section-gap:      88px;
	--header-h:         68px;

	--shadow-sm:        0 2px 6px rgba(44,36,22,.06);
	--shadow-md:        0 6px 20px rgba(44,36,22,.10);
	--shadow-lg:        0 16px 40px rgba(44,36,22,.13);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
	font-family: var(--font-ui);
	font-size: 16px;
	line-height: 1.7;
	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 24px;
}

/* ===== SECTIONS ===== */
.section { padding: var(--section-gap) 0; }
.section__title {
	font-family: var(--font-base);
	font-size: clamp(1.6rem, 4vw, 2.4rem);
	font-weight: 700;
	margin-bottom: 10px;
	text-align: center;
	letter-spacing: -.01em;
}
.section__divider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 44px;
	color: var(--color-accent);
	font-size: 1.1rem;
}
.section__divider::before,
.section__divider::after {
	content: '';
	display: block;
	height: 1px;
	width: 48px;
	background: var(--color-border);
}

/* ===== BUTTONS ===== */
.btn {
	display: inline-block;
	padding: 13px 30px;
	border-radius: var(--radius);
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: .95rem;
	transition: background .2s, box-shadow .2s, transform .15s;
	text-align: center;
}
.btn--primary {
	background: var(--color-accent);
	color: var(--color-white);
	box-shadow: 0 4px 14px rgba(200,80,26,.25);
}
.btn--primary:hover {
	background: var(--color-accent-h);
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(200,80,26,.35);
}
.btn--sm { padding: 8px 20px; font-size: .88rem; }
.btn--outline {
	border: 1.5px solid var(--color-accent);
	color: var(--color-accent);
}
.btn--outline:hover { background: var(--color-accent-bg); }
.btn--ghost {
	border: 1.5px solid rgba(255,255,255,.5);
	color: var(--color-white);
}
.btn--ghost:hover { border-color: var(--color-white); background: rgba(255,255,255,.1); }

/* ===== 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: 0 2px 8px rgba(44,36,22,.06);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.header__logo {
	font-family: var(--font-base);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--color-text);
	margin-right: auto;
	white-space: nowrap;
}
.header__nav { display: none; gap: 8px; }
.header__nav-link {
	padding: 6px 14px;
	font-size: .9rem;
	color: var(--color-muted);
	transition: color .2s;
	font-family: var(--font-ui);
}
.header__nav-link:hover { color: var(--color-accent); }
.header__cta { display: none; white-space: nowrap; }

.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); }
.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 24px; gap: 4px;
}

@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);
	padding: 80px 0;
	border-bottom: 1px solid var(--color-border);
}
.hero__inner {
	display: flex;
	flex-direction: column;
	gap: 40px;
	align-items: center;
}
.hero__content { text-align: center; max-width: 620px; }
.hero__eyebrow {
	display: inline-block;
	font-family: var(--font-base);
	font-style: italic;
	color: var(--color-accent);
	font-size: 1.1rem;
	margin-bottom: 12px;
}
.hero__title {
	font-family: var(--font-base);
	font-size: clamp(2rem, 5vw, 3.4rem);
	font-weight: 700;
	line-height: 1.15;
	margin-bottom: 16px;
	letter-spacing: -.01em;
}
.hero__subtitle {
	font-size: 1.05rem;
	color: var(--color-muted);
	margin-bottom: 28px;
	line-height: 1.65;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero__image {
	width: 100%;
	max-width: 520px;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	border: 4px solid var(--color-bg);
	outline: 1px solid var(--color-border);
}
.hero__image img { width: 100%; height: 340px; object-fit: cover; }

@media (min-width: 900px) {
	.hero__inner { flex-direction: row; align-items: center; text-align: left; justify-content: space-between; }
	.hero__content { text-align: left; }
	.hero__actions { justify-content: flex-start; }
	.hero__image { flex-shrink: 0; max-width: 460px; }
}

/* ===== ABOUT ===== */
.about__inner { display: grid; gap: 48px; align-items: center; }
.about__text p + p { margin-top: 18px; color: var(--color-muted); }
.about__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.about__stat {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 24px 16px;
	text-align: center;
}
.about__stat-value {
	display: block;
	font-family: var(--font-base);
	font-size: 2.2rem;
	font-weight: 700;
	color: var(--color-accent);
	line-height: 1;
	margin-bottom: 6px;
}
.about__stat-label { font-size: .85rem; color: var(--color-muted); }

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

/* ===== ADVANTAGES — карточки с иконкой ===== */
.adv-grid { display: grid; gap: 20px; }
.adv-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;
}
.adv-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.adv-card__icon {
	font-size: 1.8rem;
	margin-bottom: 12px;
	color: var(--color-accent);
}
.adv-card__title { font-family: var(--font-base); font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.adv-card__text { font-size: .9rem; color: var(--color-muted); }

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

/* ===== SERVICES ===== */
.services__grid { display: grid; gap: 20px; }
.srv-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;
}
.srv-card:hover { box-shadow: var(--shadow-md); }
.srv-card__title { font-family: var(--font-base); font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.srv-card__text { font-size: .9rem; color: var(--color-muted); margin-bottom: 12px; }
.srv-card__price { font-weight: 700; color: var(--color-accent); font-size: .95rem; }

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

/* ===== STAGES — вертикальный таймлайн с точками ===== */
.stages__list { display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 32px; }
/* вертикальная линия */
.stages__list::before {
	content: '';
	position: absolute;
	left: 10px;
	top: 12px; bottom: 12px;
	width: 1px;
	background: var(--color-border);
}
.stages__item { padding: 0 0 32px 24px; position: relative; }
.stages__item:last-child { padding-bottom: 0; }
/* точка на линии */
.stages__item::before {
	content: '';
	position: absolute;
	left: -24px;
	top: 8px;
	width: 12px; height: 12px;
	border-radius: 50%;
	background: var(--color-accent);
	border: 2px solid var(--color-bg);
	box-shadow: 0 0 0 2px var(--color-accent);
}
.stages__num { display: none; }
.stages__name { font-family: var(--font-base); font-weight: 700; margin-bottom: 4px; font-size: 1.05rem; }
.stages__desc { font-size: .9rem; color: var(--color-muted); }

@media (min-width: 768px) {
	.stages__list { padding-left: 48px; }
	.stages__list::before { left: 16px; }
	.stages__item { padding-left: 32px; }
	.stages__item::before { left: -32px; width: 14px; height: 14px; top: 7px; }
}

/* ===== CASES ===== */
.cases__grid { display: grid; gap: 20px; }
.case-card {
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 28px 24px;
	box-shadow: var(--shadow-sm);
}
.case-card__num { font-size: .8rem; font-weight: 600; color: var(--color-muted); margin-bottom: 8px; display: block; font-style: italic; font-family: var(--font-base); }
.case-card__title { font-family: var(--font-base); font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.case-card__result { font-weight: 600; color: var(--color-success); margin-bottom: 10px; font-size: .9rem; }
.case-card__desc { font-size: .9rem; color: var(--color-muted); }

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

/* ===== 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-2);
	font-family: var(--font-base);
}
.price-table tr:hover td, .cmp-table tr:hover td { background: var(--color-surface); }
.cmp-table__us { background: var(--color-accent-bg); }
.check { color: var(--color-success); font-weight: 700; }
.cross { color: var(--color-danger);  font-weight: 700; }

/* ===== REVIEWS — цитаты с засечками ===== */
.reviews__grid { display: grid; gap: 20px; }
.review-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 28px 24px;
	display: flex; flex-direction: column; gap: 16px;
	position: relative;
}
/* большая кавычка */
.review-card::before {
	content: '\201C';
	font-family: var(--font-base);
	font-size: 4rem;
	color: var(--color-accent);
	opacity: .25;
	position: absolute;
	top: 8px; left: 20px;
	line-height: 1;
}
.review-card__text {
	font-family: var(--font-base);
	font-style: italic;
	color: var(--color-text);
	font-size: .95rem;
	flex: 1;
	padding-top: 16px;
}
.review-card__name  { font-weight: 600; display: block; font-family: var(--font-ui); }
.review-card__role  { font-size: .85rem; color: var(--color-muted); }

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

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

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

/* ===== ERRORS / TIPS ===== */
.errors__grid { display: grid; gap: 16px; }
.error-card {
	display: flex; gap: 16px; padding: 22px;
	border-radius: var(--radius);
	border: 1px solid var(--color-border);
	background: var(--color-bg);
}
.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.2rem; flex-shrink: 0; }
.error-card__title { font-weight: 700; margin-bottom: 4px; font-family: var(--font-base); }
.error-card__text  { font-size: .9rem; color: var(--color-muted); }

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

/* ===== FAQ ===== */
.faq__list { display: flex; flex-direction: column; max-width: 780px; 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;
	font-family: var(--font-base);
}
.faq__arrow { flex-shrink: 0; transition: transform .3s; color: var(--color-accent); font-family: var(--font-ui); }
.faq__question[aria-expanded="true"] .faq__arrow { transform: rotate(180deg); }
.faq__answer {
	display: grid; grid-template-rows: 0fr;
	transition: grid-template-rows .5s ease; color: var(--color-muted);
}
.faq__answer > p { overflow: hidden; padding-bottom: 0; transition: padding-bottom .5s ease; }
.faq__answer.open { grid-template-rows: 1fr; }
.faq__answer.open > p { padding-bottom: 20px; }

/* ===== CTA ===== */
.cta {
	background: var(--color-surface) !important;
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
}
.cta__inner { max-width: 560px; margin: 0 auto; text-align: center; }
.cta__title {
	font-family: var(--font-base);
	font-size: clamp(1.6rem, 4vw, 2.2rem);
	font-weight: 700;
	margin-bottom: 12px;
}
.cta__subtitle { margin-bottom: 28px; color: var(--color-muted); }
.cta__form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.cta__input {
	padding: 13px 16px;
	border: 1.5px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-bg);
	font-size: .95rem;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
	color: var(--color-text);
	font-family: var(--font-ui);
}
.cta__input:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(200,80,26,.12); }
.cta__privacy { font-size: .8rem; color: var(--color-muted); }
.cta__msg { margin-top: 12px; font-weight: 600; min-height: 24px; }

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

/* ===== FOOTER ===== */
.footer { background: #2c2416; color: rgba(255,253,247,.45); padding-top: 60px; }
.footer__inner { display: grid; gap: 40px; padding-bottom: 48px; }
.footer__logo {
	display: block; font-family: var(--font-base);
	font-size: 1.2rem; font-weight: 700;
	color: rgba(255,253,247,.9); margin-bottom: 12px;
}
.footer__desc { font-size: .88rem; }
.footer__heading { font-size: .75rem; font-weight: 700; color: rgba(255,253,247,.3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; font-family: var(--font-ui); }
.footer__contact-link { display: block; margin-bottom: 6px; font-size: .88rem; transition: color .2s; }
.footer__contact-link:hover { color: rgba(255,253,247,.9); }
.footer__hours, .footer__address { margin-top: 8px; font-size: .84rem; }
.footer__nav { display: flex; flex-direction: column; gap: 8px; }
.footer__nav-link { font-size: .88rem; transition: color .2s; }
.footer__nav-link:hover { color: rgba(255,253,247,.9); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; }
.footer__bottom-inner {
	display: flex; flex-wrap: wrap; gap: 8px;
	justify-content: space-between; align-items: center; font-size: .82rem;
}
.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; } }

/* === Custom overrides === */
:root {
	--color-bg: #F6EBC1;
	--color-surface: #FEF9E7;
	--color-text: #5C4B51;
	--color-accent: #F7A9A3;
	--font-base: Comfortaa;
	--radius: 12px;
}
