/* ===== VARIABLES ===== */
:root {
	--color-bg:         #ffffff;
	--color-surface:    #f5f4f2;
	--color-border:     #e8e4df;
	--color-text:       #1c1917;
	--color-muted:      #78716c;
	--color-accent:     #2563eb;
	--color-accent-h:   #1d4ed8;
	--color-success:    #16a34a;
	--color-danger:     #dc2626;
	--color-white:      #ffffff;
	--color-highlight:  #fefce8;

	--font-base:        'Segoe UI', system-ui, -apple-system, sans-serif;
	--radius:           12px;
	--radius-lg:        20px;
	--radius-xl:        28px;
	--container:        1200px;
	--section-gap:      96px;
	--header-h:         68px;

	--shadow-sm:        0 1px 4px rgba(0,0,0,.05);
	--shadow-md:        0 8px 24px rgba(0,0,0,.08);
	--shadow-lg:        0 20px 48px rgba(0,0,0,.12);
}

/* ===== 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.65;
	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: 16px;
	text-align: center;
	letter-spacing: -.025em;
}
.section__subtitle {
	text-align: center;
	color: var(--color-muted);
	margin-bottom: 48px;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}
/* тег-пометка перед заголовком */
.section__tag {
	display: inline-block;
	background: var(--color-highlight);
	color: var(--color-accent);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 4px 12px;
	border-radius: 100px;
	margin-bottom: 14px;
}

/* ===== BUTTONS ===== */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 32px;
	border-radius: 100px;
	font-weight: 600;
	font-size: 1rem;
	transition: background .2s, transform .15s, box-shadow .2s;
	text-align: center;
	white-space: nowrap;
}
.btn--primary {
	background: var(--color-accent);
	color: var(--color-white);
	box-shadow: 0 4px 16px rgba(37,99,235,.25);
}
.btn--primary:hover {
	background: var(--color-accent-h);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(37,99,235,.35);
}
.btn--sm { padding: 8px 22px; font-size: .9rem; }
.btn--light {
	background: rgba(37,99,235,.08);
	color: var(--color-accent);
}
.btn--light:hover { background: rgba(37,99,235,.14); }
.btn--outline {
	border: 1.5px solid var(--color-border);
	color: var(--color-text);
}
.btn--outline:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ===== HEADER ===== */
.header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-h);
	background: rgba(255,255,255,.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--color-border);
}
.header__inner {
	height: 100%;
	display: flex;
	align-items: center;
	gap: 32px;
}
.header__logo {
	font-size: 1.2rem;
	font-weight: 800;
	letter-spacing: -.03em;
	margin-right: auto;
	white-space: nowrap;
}
.header__nav { display: none; gap: 4px; }
.header__nav-link {
	padding: 6px 12px;
	border-radius: 8px;
	font-size: .9rem;
	color: var(--color-muted);
	transition: color .2s, background .2s;
	font-weight: 500;
}
.header__nav-link:hover { color: var(--color-text); background: var(--color-surface); }
.header__cta { display: none; }

/* 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); }

.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-flex; }
	.header__logo { margin-right: 0; }
}

/* ===== HERO — центрированный, большой заголовок ===== */
.hero {
	padding: 100px 0 80px;
	text-align: center;
	background: var(--color-surface);
	position: relative;
	overflow: hidden;
}
/* декоративный круг позади */
.hero::before {
	content: '';
	position: absolute;
	width: 600px; height: 600px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(37,99,235,.07) 0%, transparent 70%);
	top: -100px; left: 50%;
	transform: translateX(-50%);
	pointer-events: none;
}
.hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	max-width: 800px;
	margin: 0 auto;
}
.hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: 100px;
	padding: 6px 16px;
	font-size: .85rem;
	font-weight: 600;
	color: var(--color-accent);
	box-shadow: var(--shadow-sm);
}
.hero__title {
	font-size: clamp(2.4rem, 7vw, 4.5rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -.04em;
}
.hero__subtitle {
	font-size: 1.15rem;
	color: var(--color-muted);
	max-width: 540px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero__image {
	width: 100%;
	max-width: 900px;
	margin: 16px auto 0;
	border-radius: var(--radius-xl);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	border: 1px solid var(--color-border);
}
.hero__image img { width: 100%; height: 400px; object-fit: cover; }

@media (min-width: 900px) {
	.hero__image img { height: 520px; }
}

/* ===== ABOUT ===== */
.about__inner {
	display: grid;
	gap: 48px;
	align-items: center;
}
.about__text p + p { margin-top: 16px; color: var(--color-muted); }
.about__stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}
.about__stat {
	background: var(--color-surface);
	border-radius: var(--radius);
	padding: 24px;
	text-align: center;
}
.about__stat-value {
	display: block;
	font-size: 2.2rem;
	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; }
}

/* ===== ADVANTAGES — иконка + текст ===== */
.adv-grid { display: grid; gap: 20px; }
.adv-card {
	background: var(--color-surface);
	border-radius: var(--radius-lg);
	padding: 28px;
	display: flex;
	gap: 18px;
	align-items: flex-start;
	transition: box-shadow .2s;
}
.adv-card:hover { box-shadow: var(--shadow-md); }
.adv-card__icon {
	font-size: 1.6rem;
	flex-shrink: 0;
	width: 48px; height: 48px;
	background: var(--color-bg);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-sm);
}
.adv-card__title { font-weight: 700; margin-bottom: 4px; }
.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;
	transition: box-shadow .2s, transform .2s;
}
.srv-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.srv-card__title { font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.srv-card__text { color: var(--color-muted); font-size: .9rem; margin-bottom: 14px; }
.srv-card__price {
	display: inline-block;
	background: rgba(37,99,235,.07);
	color: var(--color-accent);
	font-weight: 700;
	font-size: .9rem;
	padding: 4px 12px;
	border-radius: 100px;
}

@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__track {
	display: grid;
	gap: 0;
}
.stages__item {
	display: flex;
	gap: 20px;
	padding: 24px 0;
	border-bottom: 1px solid var(--color-border);
}
.stages__item:last-child { border-bottom: none; }
.stages__num {
	flex-shrink: 0;
	width: 36px; height: 36px;
	background: var(--color-accent);
	color: var(--color-white);
	border-radius: 50%;
	font-weight: 800;
	font-size: .9rem;
	display: flex; align-items: center; justify-content: center;
}
.stages__name { font-weight: 700; margin-bottom: 4px; }
.stages__desc { font-size: .9rem; color: var(--color-muted); }

@media (min-width: 768px) {
	.stages__track {
		grid-template-columns: repeat(2, 1fr);
	}
	.stages__item:nth-child(odd) {
		border-right: 1px solid var(--color-border);
		padding-right: 32px;
	}
	.stages__item:nth-child(even) { padding-left: 32px; }
	/* убираем нижнюю границу у предпоследнего если пар чётное */
	.stages__item:nth-last-child(-n+2) { border-bottom: none; }
}

/* ===== CASES ===== */
.cases__grid { display: grid; gap: 20px; }
.case-card {
	background: var(--color-surface);
	border-radius: var(--radius-lg);
	padding: 32px;
	transition: box-shadow .2s;
}
.case-card:hover { box-shadow: var(--shadow-md); }
.case-card__num {
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--color-accent);
	margin-bottom: 10px;
	display: block;
}
.case-card__title  { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.case-card__result {
	display: inline-block;
	background: rgba(22,163,74,.1);
	color: var(--color-success);
	font-size: .85rem;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 100px;
	margin-bottom: 12px;
}
.case-card__desc { font-size: .9rem; color: var(--color-muted); }

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

/* ===== PRICE — тарифные карточки вместо таблицы ===== */
.price__grid { display: grid; gap: 20px; }
.price-card {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	transition: box-shadow .2s, transform .2s;
}
.price-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
/* выделенная карточка */
.price-card--featured {
	border-color: var(--color-accent);
	background: rgba(37,99,235,.03);
	position: relative;
}
.price-card--featured::before {
	content: 'Популярное';
	position: absolute;
	top: -12px;
	left: 24px;
	background: var(--color-accent);
	color: var(--color-white);
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 3px 12px;
	border-radius: 100px;
}
.price-card__name { font-weight: 700; font-size: 1.05rem; }
.price-card__desc { font-size: .9rem; color: var(--color-muted); flex: 1; }
.price-card__duration { font-size: .85rem; color: var(--color-muted); }
.price-card__price {
	font-size: 1.8rem;
	font-weight: 800;
	letter-spacing: -.03em;
	color: var(--color-accent);
}

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

/* ===== REVIEWS ===== */
.reviews__grid { display: grid; gap: 20px; }
.review-card {
	background: var(--color-surface);
	border-radius: var(--radius-lg);
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.review-card__text { color: var(--color-muted); font-size: .95rem; flex: 1; font-style: italic; }
.review-card__name { font-weight: 700; display: block; }
.review-card__role { font-size: .85rem; color: var(--color-muted); }
.review-card__stars { color: #f59e0b; letter-spacing: 2px; font-size: .95rem; }

@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-xl);
	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: 560px; } }
.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: 16px; }
.slider__btn--next { right: 16px; }
.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);
	background: var(--color-bg);
}
.error-card--error { background: rgba(220,38,38,.03); border-color: rgba(220,38,38,.2); }
.error-card--tip   { background: rgba(22,163,74,.03);  border-color: rgba(22,163,74,.2); }
.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); } }

/* ===== 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);
}
.price-table tr:hover td, .cmp-table tr:hover td { background: var(--color-surface); }
.cmp-table__us { background: rgba(37,99,235,.04); }
.check { color: var(--color-success); font-weight: 700; font-size: 1.1rem; }
.cross { color: var(--color-danger);  font-weight: 700; font-size: 1.1rem; }

/* ===== 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: 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 .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;
}
.cta__inner {
	max-width: 560px;
	margin: 0 auto;
	text-align: center;
}
.cta__title {
	font-size: clamp(1.6rem, 4vw, 2.2rem);
	font-weight: 800;
	letter-spacing: -.025em;
	margin-bottom: 12px;
}
.cta__subtitle { margin-bottom: 32px; color: var(--color-muted); }
.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 var(--color-border);
	background: var(--color-bg);
	font-size: 1rem;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}
.cta__input:focus {
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.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; }
}

/* ===== FOOTER ===== */
.footer { background: var(--color-text); color: rgba(255,255,255,.5); padding-top: 60px; }
.footer__inner { display: grid; gap: 40px; padding-bottom: 48px; }
.footer__logo {
	display: block;
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--color-white);
	letter-spacing: -.03em;
	margin-bottom: 12px;
}
.footer__desc { font-size: .9rem; }
.footer__heading { font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.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,.07); 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: #ffffff;
	--color-surface: #f5f4f2;
	--color-text: #1c1917;
	--color-accent: #2563eb;
	--font-base: 'Segoe UI', system-ui, sans-serif;
	--radius: 12px;
}
