/* ===== VARIABLES ===== */
:root {
	--color-bg:         #ffffff;
	--color-surface:    #f9f9f9;
	--color-border:     #e8e8e8;
	--color-text:       #111111;
	--color-muted:      #6b7280;
	--color-accent:     #2563eb;
	--color-accent-h:   #1d4ed8;
	--color-success:    #16a34a;
	--color-danger:     #dc2626;
	--color-white:      #ffffff;
	--color-dark:       #0f0f0f;
	--color-dark-2:     #1a1a1a;

	--font-base:        'Segoe UI', system-ui, -apple-system, sans-serif;
	--radius:           4px;
	--radius-lg:        8px;
	--container:        1200px;
	--section-gap:      100px;
	--header-h:         72px;

	--shadow-sm:        0 1px 4px rgba(0,0,0,.06);
	--shadow-md:        0 4px 16px rgba(0,0,0,.08);
}

/* ===== 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.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-size: clamp(1.6rem, 4vw, 2.4rem);
	font-weight: 800;
	margin-bottom: 48px;
	letter-spacing: -.02em;
	/* подчёркивание акцентом */
	display: inline-block;
	position: relative;
}
.section__title::after {
	content: '';
	display: block;
	height: 3px;
	width: 48px;
	background: var(--color-accent);
	margin-top: 10px;
}
.section__title--center {
	display: block;
	text-align: center;
}
.section__title--center::after {
	margin: 10px auto 0;
}

/* ===== BUTTONS ===== */
.btn {
	display: inline-block;
	padding: 14px 36px;
	border-radius: var(--radius);
	font-weight: 600;
	font-size: 1rem;
	transition: background .2s, transform .1s, box-shadow .2s;
	text-align: center;
	letter-spacing: .01em;
}
.btn--primary {
	background: var(--color-accent);
	color: var(--color-white);
	box-shadow: 0 4px 14px rgba(37,99,235,.3);
}
.btn--primary:hover {
	background: var(--color-accent-h);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(37,99,235,.4);
}
.btn--sm { padding: 8px 22px; font-size: .9rem; }
.btn--ghost {
	border: 1.5px solid rgba(255,255,255,.4);
	color: var(--color-white);
}
.btn--ghost:hover {
	border-color: var(--color-white);
	background: rgba(255,255,255,.08);
}
.btn--outline {
	border: 1.5px solid var(--color-accent);
	color: var(--color-accent);
}
.btn--outline:hover {
	background: var(--color-accent);
	color: var(--color-white);
}

/* ===== HEADER ===== */
.header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-h);
	background: var(--color-dark);
	color: var(--color-white);
}
.header__inner {
	height: 100%;
	display: flex;
	align-items: center;
	gap: 32px;
}
.header__logo {
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--color-white);
	margin-right: auto;
	white-space: nowrap;
}
.header__nav { display: none; gap: 28px; }
.header__nav-link {
	font-size: .9rem;
	color: rgba(255,255,255,.6);
	transition: color .2s;
	letter-spacing: .02em;
	text-transform: uppercase;
	font-size: .8rem;
	font-weight: 600;
}
.header__nav-link:hover { color: var(--color-white); }
.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-white);
	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-dark-2);
	padding: 20px 24px;
	gap: 18px;
}

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

/* ===== HERO — fullwidth dark, текст по центру ===== */
.hero {
	background: var(--color-dark);
	color: var(--color-white);
	padding: 120px 0;
	position: relative;
	overflow: hidden;
}
/* фоновое изображение с overlay */
.hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .25;
}
.hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	max-width: 720px;
	gap: 28px;
}
.hero__label {
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--color-accent);
}
.hero__title {
	font-size: clamp(2.2rem, 6vw, 4rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.03em;
}
.hero__subtitle {
	font-size: 1.15rem;
	color: rgba(255,255,255,.65);
	max-width: 560px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== ABOUT — текст + статы в строку ===== */
.about__inner {
	display: grid;
	gap: 60px;
}
.about__text p + p { margin-top: 18px; color: var(--color-muted); }
.about__stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
}
.about__stat {
	padding: 32px 24px;
	text-align: center;
	border-right: 1px solid var(--color-border);
}
.about__stat:last-child { border-right: none; }
.about__stat-value {
	display: block;
	font-size: 2.4rem;
	font-weight: 800;
	color: var(--color-accent);
	letter-spacing: -.03em;
	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; align-items: center; }
}

/* ===== ADVANTAGES — горизонтальный список с номерами ===== */
.advantages__list {
	display: flex;
	flex-direction: column;
	gap: 0;
}
.adv-item {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 24px;
	align-items: start;
	padding: 32px 0;
	border-bottom: 1px solid var(--color-border);
}
.adv-item:last-child { border-bottom: none; }
.adv-item__num {
	font-size: 2rem;
	font-weight: 800;
	color: var(--color-border);
	line-height: 1;
}
.adv-item__title {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 6px;
}
.adv-item__text { color: var(--color-muted); font-size: .95rem; }

@media (min-width: 768px) {
	.advantages__list {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 0;
	}
	.adv-item:nth-child(odd)  { border-right: 1px solid var(--color-border); padding-right: 40px; }
	.adv-item:nth-child(even) { padding-left: 40px; }
}

/* ===== SERVICES — карточки с левой полосой ===== */
.services__grid {
	display: grid;
	gap: 24px;
}
.srv-card {
	padding: 28px 28px 28px 24px;
	border: 1px solid var(--color-border);
	border-left: 4px solid var(--color-accent);
	border-radius: var(--radius);
	transition: box-shadow .2s;
}
.srv-card:hover { box-shadow: var(--shadow-md); }
.srv-card__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.srv-card__text { color: var(--color-muted); font-size: .95rem; 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;
	counter-reset: stages;
}
.stages__item {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	padding: 28px 0;
	border-bottom: 1px solid var(--color-border);
	position: relative;
}
.stages__item:last-child { border-bottom: none; }
.stages__num {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border: 2px solid var(--color-accent);
	border-radius: 50%;
	color: var(--color-accent);
	font-weight: 800;
	font-size: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
}
.stages__name  { font-weight: 700; margin-bottom: 4px; font-size: 1.05rem; }
.stages__desc  { font-size: .95rem; color: var(--color-muted); }

/* ===== CASES ===== */
.cases__grid { display: grid; gap: 24px; }
.case-card {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 32px;
	position: relative;
	overflow: hidden;
	transition: box-shadow .2s;
}
.case-card:hover { box-shadow: var(--shadow-md); }
.case-card__num {
	font-size: 4rem;
	font-weight: 800;
	color: var(--color-surface);
	position: absolute;
	right: 24px;
	top: 16px;
	line-height: 1;
	user-select: none;
}
.case-card__title  { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.case-card__result { font-weight: 700; color: var(--color-accent); margin-bottom: 10px; font-size: .95rem; }
.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: 16px 18px;
	text-align: left;
	border-bottom: 1px solid var(--color-border);
}
.price-table th, .cmp-table th {
	font-weight: 700;
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--color-muted);
	background: var(--color-surface);
}
.price-table tr:hover td, .cmp-table tr:hover td { background: var(--color-surface); }
.cmp-table__us { background: rgba(37,99,235,.03); }
.check { color: var(--color-success); font-weight: 700; }
.cross { color: var(--color-danger);  font-weight: 700; }

/* ===== REVIEWS — горизонтальная полоса с кавычкой ===== */
.reviews__grid { display: grid; gap: 24px; }
.review-card {
	padding: 32px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: relative;
}
.review-card::before {
	content: '\201C';
	position: absolute;
	top: 16px;
	right: 24px;
	font-size: 5rem;
	line-height: 1;
	color: var(--color-border);
	font-family: Georgia, serif;
}
.review-card__text  { color: var(--color-muted); font-size: .95rem; flex: 1; }
.review-card__name  { font-weight: 700; display: block; }
.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);
	background: var(--color-surface);
	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: 600px; } }
.slider__btn {
	position: absolute;
	top: 50%; transform: translateY(-50%);
	background: rgba(255,255,255,.9);
	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 ===== */
.errors__grid { display: grid; gap: 16px; }
.error-card {
	display: flex;
	gap: 16px;
	padding: 24px;
	border-radius: var(--radius);
	border: 1px solid var(--color-border);
}
.error-card--error { border-left: 3px solid var(--color-danger); }
.error-card--tip   { border-left: 3px solid var(--color-success); }
.error-card__badge { font-size: 1.2rem; flex-shrink: 0; }
.error-card__title { font-weight: 700; margin-bottom: 4px; }
.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: 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: 22px 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 .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: 22px; }

/* ===== CTA ===== */
.cta {
	background: var(--color-dark) !important;
	color: var(--color-white);
}
.cta__inner { max-width: 600px; margin: 0 auto; text-align: center; }
.cta__title {
	font-size: clamp(1.6rem, 4vw, 2.2rem);
	font-weight: 800;
	letter-spacing: -.02em;
	margin-bottom: 12px;
}
.cta__subtitle { margin-bottom: 32px; color: rgba(255,255,255,.6); }
.cta__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 12px;
}
.cta__input {
	padding: 14px 18px;
	border-radius: var(--radius);
	border: 1.5px solid rgba(255,255,255,.15);
	background: rgba(255,255,255,.07);
	color: var(--color-white);
	font-size: 1rem;
	outline: none;
	transition: border-color .2s;
}
.cta__input::placeholder { color: rgba(255,255,255,.4); }
.cta__input:focus { border-color: var(--color-accent); }
.cta .btn--primary {
	background: var(--color-accent);
	color: var(--color-white);
	box-shadow: 0 4px 14px rgba(37,99,235,.4);
}
.cta .btn--primary:hover { background: var(--color-accent-h); }
.cta__privacy { font-size: .8rem; color: rgba(255,255,255,.4); }
.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: #0a0a0a; color: #999; padding-top: 60px; }
.footer__inner { display: grid; gap: 40px; padding-bottom: 48px; }
.footer__logo {
	display: block;
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--color-white);
	letter-spacing: -.02em;
	margin-bottom: 12px;
}
.footer__desc { font-size: .9rem; }
.footer__heading { font-size: .75rem; font-weight: 700; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer__contact-link { display: block; margin-bottom: 6px; transition: color .2s; font-size: .9rem; }
.footer__contact-link:hover { color: var(--color-white); }
.footer__hours, .footer__address { margin-top: 8px; font-size: .85rem; }
.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,.06); 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; } }

/* === Custom overrides === */
:root {
	--color-bg: #f3f4f6;
	--color-surface: #e5e7eb;
	--color-text: #222222;
	--color-accent: #c0392b;
	--font-base: DM Serif Display;
	--radius: 10px;
}
