/* ===== VARIABLES ===== */
:root {
	--color-bg:         #0d0d0d;
	--color-surface:    #161616;
	--color-surface-2:  #1e1e1e;
	--color-border:     #2a2a2a;
	--color-text:       #e8e8e8;
	--color-muted:      #888888;
	--color-accent:     #00e5a0;
	--color-accent-h:   #00c98c;
	--color-accent-bg:  rgba(0,229,160,.08);
	--color-success:    #00e5a0;
	--color-danger:     #ff4d4d;
	--color-white:      #ffffff;

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

	--shadow-sm:        0 1px 4px rgba(0,0,0,.4);
	--shadow-md:        0 4px 20px rgba(0,0,0,.5);
	--glow:             0 0 20px rgba(0,229,160,.2);
}

/* ===== 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:nth-child(even) { background: var(--color-surface); }
.section__title {
	font-size: clamp(1.5rem, 4vw, 2.2rem);
	font-weight: 700;
	margin-bottom: 48px;
	text-align: center;
	color: var(--color-white);
}
/* акцентная линия под заголовком */
.section__title::after {
	content: '';
	display: block;
	width: 40px;
	height: 2px;
	background: var(--color-accent);
	margin: 12px auto 0;
}

/* ===== BUTTONS ===== */
.btn {
	display: inline-block;
	padding: 13px 30px;
	border-radius: var(--radius);
	font-weight: 600;
	font-size: .95rem;
	transition: background .2s, box-shadow .2s, transform .15s;
	text-align: center;
}
.btn--accent {
	background: var(--color-accent);
	color: #0d0d0d;
	box-shadow: var(--glow);
}
.btn--accent:hover {
	background: var(--color-accent-h);
	transform: translateY(-2px);
	box-shadow: 0 0 32px rgba(0,229,160,.35);
}
.btn--ghost {
	border: 1.5px solid rgba(255,255,255,.25);
	color: var(--color-white);
}
.btn--ghost:hover {
	border-color: var(--color-accent);
	color: var(--color-accent);
}
.btn--sm { padding: 8px 20px; font-size: .88rem; }

/* ===== HEADER ===== */
.header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-h);
	background: #0d0d0d;
	
	border-bottom: 1px solid var(--color-border);
}
.header__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	height: 100%;
}
.header__logo {
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--color-white);
	letter-spacing: -.02em;
	margin-right: auto;
}
.header__nav { display: flex; gap: 28px; }
.header__nav-link {
	font-size: .9rem;
	color: var(--color-muted);
	transition: color .2s;
}
.header__nav-link:hover { color: var(--color-accent); }
.header__burger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.header__burger span {
	display: block; width: 22px; height: 2px;
	background: var(--color-text); border-radius: 2px;
	transition: .2s;
}

/* ===== HERO — полноэкранный с фото overlay ===== */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
}
.hero__bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
}
.hero__bg img {
	width: 100%; height: 100%;
	object-fit: cover;
	opacity: .3;
}
.hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(13,13,13,.95) 50%, rgba(0,229,160,.04) 100%);
}
.hero__inner {
	position: relative;
	z-index: 1;
	padding: 120px 0 80px;
}
.hero__content { max-width: 640px; }
.hero__tag {
	display: inline-block;
	padding: 4px 12px;
	border: 1px solid var(--color-accent);
	border-radius: 20px;
	font-size: .8rem;
	color: var(--color-accent);
	letter-spacing: .08em;
	text-transform: uppercase;
	margin-bottom: 24px;
}
.hero__title {
	font-size: clamp(2rem, 5vw, 3.4rem);
	font-weight: 800;
	line-height: 1.15;
	color: var(--color-white);
	margin-bottom: 20px;
	letter-spacing: -.03em;
}
.hero__subtitle {
	font-size: 1.15rem;
	color: var(--color-muted);
	margin-bottom: 40px;
	max-width: 520px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== ABOUT ===== */
.about.section { background: var(--color-surface); }
.about__inner {
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 64px;
	align-items: start;
}
.about__text p {
	color: var(--color-muted);
	margin-bottom: 16px;
	line-height: 1.8;
}
.about__stats {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.stat-box {
	padding: 20px 24px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--color-surface-2);
	transition: border-color .2s;
}
.stat-box:hover { border-color: var(--color-accent); }
.stat-box__value {
	display: block;
	font-size: 2rem;
	font-weight: 800;
	color: var(--color-accent);
	line-height: 1;
	margin-bottom: 4px;
}
.stat-box__label {
	font-size: .85rem;
	color: var(--color-muted);
}

/* ===== ADVANTAGES ===== */
.adv-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}
.adv-card {
	padding: 28px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--color-surface-2);
	transition: border-color .2s, box-shadow .2s;
}
.adv-card:hover {
	border-color: var(--color-accent);
	box-shadow: var(--glow);
}
.adv-card__icon { font-size: 1.8rem; margin-bottom: 14px; }
.adv-card__title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-white);
	margin-bottom: 8px;
}
.adv-card__text { font-size: .9rem; color: var(--color-muted); line-height: 1.7; }

/* ===== SERVICES — карточки с accent-border слева ===== */
.services.section { background: var(--color-surface); }
.srv-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}
.srv-card {
	padding: 24px 24px 24px 28px;
	border: 1px solid var(--color-border);
	border-left: 3px solid var(--color-accent);
	border-radius: var(--radius);
	background: var(--color-surface-2);
	transition: transform .2s, box-shadow .2s;
}
.srv-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}
.srv-card__title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-white);
	margin-bottom: 8px;
}
.srv-card__text { font-size: .9rem; color: var(--color-muted); margin-bottom: 12px; }
.srv-card__price {
	font-size: .88rem;
	font-weight: 700;
	color: var(--color-accent);
}

/* ===== STAGES ===== */
.stages__list { display: flex; flex-direction: column; gap: 0; }
.stages__item {
	display: flex;
	gap: 24px;
	padding: 28px 0;
	border-bottom: 1px solid var(--color-border);
	position: relative;
}
.stages__item:last-child { border-bottom: none; }
.stages__dot {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2px solid var(--color-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-accent-bg);
}
.stages__dot span {
	font-size: .88rem;
	font-weight: 700;
	color: var(--color-accent);
}
.stages__name {
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-white);
	margin-bottom: 6px;
}
.stages__desc { font-size: .9rem; color: var(--color-muted); }

/* ===== CASES ===== */
.cases.section { background: var(--color-surface); }
.cases-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}
.case-card {
	padding: 28px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--color-surface-2);
	transition: border-color .2s;
}
.case-card:hover { border-color: var(--color-accent); }
.case-card__num {
	display: inline-block;
	font-size: 2.5rem;
	font-weight: 800;
	color: var(--color-border);
	line-height: 1;
	margin-bottom: 12px;
}
.case-card__title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-white);
	margin-bottom: 8px;
}
.case-card__result {
	font-size: .88rem;
	font-weight: 700;
	color: var(--color-accent);
	margin-bottom: 10px;
}
.case-card__desc { font-size: .88rem; color: var(--color-muted); }

/* ===== PRICE TABLE ===== */
.table-wrap { overflow-x: auto; }
.price-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .95rem;
}
.price-table th {
	padding: 14px 16px;
	text-align: left;
	background: var(--color-surface-2);
	color: var(--color-muted);
	font-weight: 600;
	font-size: .85rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	border-bottom: 1px solid var(--color-border);
}
.price-table td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--color-border);
	color: var(--color-text);
}
.price-table tr:hover td { background: var(--color-surface-2); }

/* ===== REVIEWS ===== */
.reviews-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}
.review-card {
	padding: 28px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--color-surface-2);
	position: relative;
}
.review-card__quote {
	position: absolute;
	top: 16px;
	right: 20px;
	font-size: 3rem;
	line-height: 1;
	color: var(--color-accent);
	opacity: .3;
	font-family: Georgia, serif;
}
.review-card__text {
	font-size: .9rem;
	color: var(--color-muted);
	line-height: 1.8;
	margin-bottom: 20px;
}
.review-card__author { display: flex; flex-direction: column; gap: 2px; }
.review-card__name { font-weight: 700; font-size: .9rem; color: var(--color-white); }
.review-card__role { font-size: .82rem; color: var(--color-accent); }

/* ===== GALLERY / SLIDER ===== */
.slider { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.slider__track { display: flex; transition: transform .4s ease; }
.slider__slide { flex-shrink: 0; width: 100%; }
.slider__slide img { width: 100%; height: 420px; object-fit: cover; }
.slider__btn {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 44px; height: 44px;
	border-radius: 50%;
	background: rgba(13,13,13,.8);
	border: 1px solid var(--color-border);
	color: var(--color-white);
	font-size: 1.1rem;
	transition: background .2s, border-color .2s;
	z-index: 2;
}
.slider__btn:hover { background: var(--color-accent); border-color: var(--color-accent); color: #0d0d0d; }
.slider__btn--prev { left: 16px; }
.slider__btn--next { right: 16px; }
.slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.slider__dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--color-border);
	cursor: pointer; transition: background .2s;
}
.slider__dot.active { background: var(--color-accent); }

/* ===== SEO TEXT ===== */
.seo-text.section { background: var(--color-surface); }
.seo-text__inner { max-width: 800px; }
.seo-text__inner p {
	color: var(--color-muted);
	margin-bottom: 16px;
	line-height: 1.8;
}

/* ===== ERRORS ===== */
.errors-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}
.error-card {
	display: flex;
	gap: 16px;
	padding: 20px;
	border-radius: var(--radius);
	border: 1px solid var(--color-border);
	background: var(--color-surface-2);
}
.error-card--tip { border-color: rgba(0,229,160,.3); }
.error-card--error { border-color: rgba(255,77,77,.2); }
.error-card__badge {
	flex-shrink: 0;
	width: 28px; height: 28px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: .85rem; font-weight: 700;
}
.error-card--tip .error-card__badge { background: var(--color-accent-bg); color: var(--color-accent); }
.error-card--error .error-card__badge { background: rgba(255,77,77,.1); color: var(--color-danger); }
.error-card__title { font-weight: 700; font-size: .9rem; color: var(--color-white); margin-bottom: 4px; }
.error-card__text { font-size: .85rem; color: var(--color-muted); }

/* ===== COMPARISON ===== */
.cmp-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.cmp-table th {
	padding: 14px 16px;
	text-align: left;
	background: var(--color-surface-2);
	color: var(--color-muted);
	font-size: .82rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	border-bottom: 1px solid var(--color-border);
}
.cmp-table td { padding: 13px 16px; border-bottom: 1px solid var(--color-border); }
.cmp-table__us { color: var(--color-accent); }
.check { color: var(--color-accent); font-weight: 700; }
.cross { color: var(--color-danger); }

/* ===== FAQ ===== */
.faq.section { background: var(--color-surface); }
.faq__list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.faq__item { border-bottom: 1px solid var(--color-border); }
.faq__question {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 20px 0;
	text-align: left;
	font-size: .95rem;
	font-weight: 600;
	color: var(--color-text);
	transition: color .2s;
}
.faq__question:hover { color: var(--color-accent); }
.faq__arrow { flex-shrink: 0; transition: transform .3s; color: var(--color-muted); }
.faq__question[aria-expanded="true"] .faq__arrow { transform: rotate(180deg); color: var(--color-accent); }
.faq__answer { display: none; padding: 0 0 20px; }
.faq__answer p { font-size: .9rem; color: var(--color-muted); line-height: 1.8; }
.faq__answer.open { display: block; }

/* ===== CTA ===== */
.cta.section {
	background: linear-gradient(135deg, var(--color-surface) 0%, rgba(0,229,160,.05) 100%);
	border-top: 1px solid var(--color-border);
}
.cta__inner { max-width: 560px; margin: 0 auto; text-align: center; }
.cta__title {
	font-size: clamp(1.5rem, 4vw, 2.2rem);
	font-weight: 800;
	color: var(--color-white);
	margin-bottom: 12px;
}
.cta__subtitle { color: var(--color-muted); margin-bottom: 36px; }
.cta__form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.cta__input {
	padding: 14px 18px;
	border-radius: var(--radius);
	border: 1px solid var(--color-border);
	background: var(--color-surface-2);
	color: var(--color-text);
	font-size: .95rem;
	transition: border-color .2s;
}
.cta__input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-bg); }
.cta__privacy { font-size: .8rem; color: var(--color-muted); }
.cta__msg { margin-top: 12px; font-size: .9rem; }
.cta__msg.success { color: var(--color-success); }
.cta__msg.error { color: var(--color-danger); }

/* ===== FOOTER ===== */
.footer {
	background: var(--color-surface);
	border-top: 1px solid var(--color-border);
}
.footer__inner {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr;
	gap: 48px;
	padding: 56px 0 40px;
}
.footer__logo { font-size: 1.1rem; font-weight: 700; color: var(--color-white); display: block; margin-bottom: 10px; }
.footer__desc { font-size: .88rem; color: var(--color-muted); line-height: 1.7; }
.footer__heading { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--color-muted); margin-bottom: 16px; }
.footer__contact-link { display: block; font-size: .9rem; color: var(--color-text); margin-bottom: 8px; transition: color .2s; }
.footer__contact-link:hover { color: var(--color-accent); }
.footer__hours, .footer__address { font-size: .85rem; color: var(--color-muted); margin-top: 8px; }
.footer__nav-link { display: block; font-size: .9rem; color: var(--color-muted); margin-bottom: 8px; transition: color .2s; }
.footer__nav-link:hover { color: var(--color-accent); }
.footer__bottom {
	border-top: 1px solid var(--color-border);
	padding: 16px 0;
}
.footer__bottom-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: .82rem;
	color: var(--color-muted);
}
.footer__dev-link { transition: color .2s; }
.footer__dev-link:hover { color: var(--color-accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
	.about__inner { grid-template-columns: 1fr; gap: 40px; }
	.footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	:root { --section-gap: 64px; }
	.header__nav, .header__cta { display: none; }
	.header__burger { display: flex; }
	.header__nav.open {
		display: flex; flex-direction: column;
		position: fixed; inset: var(--header-h) 0 0 0;
		background: var(--color-bg);
		padding: 32px 24px;
		gap: 24px;
		z-index: 99;
	}
	.header__nav.open .header__nav-link { font-size: 1.1rem; }
	.hero__title { font-size: 2rem; }
    .hero__inner { padding: 24px; }
	.footer__inner { grid-template-columns: 1fr; gap: 32px; padding: 24px; }
	.footer__bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
}

/* === Custom overrides === */
:root {
	--color-bg: #0d0d0d;
	--color-surface: #161616;
	--color-text: #e8e8e8;
	--color-accent: #00e5a0;
	--font-base: 'Segoe UI', system-ui, sans-serif;
	--radius: 6px;
}
