/* AIDev Vibe — фирменные цвета AI.DEV Monster */
/* Roboto (OFL) раздаётся локально: без запросов к Google Fonts */
@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/roboto-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/roboto-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
	--bg: #1a1a1a;
	--bg-alt: #222222;
	--card: #262828;
	--line: rgba(255, 255, 255, 0.1);
	--text: #ffffff;
	--muted: #c6c9d8;
	--accent: #3dc492;
	--accent-2: #62fdbc;
	--accent-soft: rgba(61, 196, 146, 0.45);
	--blue: #4472c4;
	--radius: 14px;
	--container: 1200px;
	--font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--accent); color: #111; padding: 8px 16px; }
.skip-link:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px; }

/* Кнопки */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 28px;
	background: var(--accent); color: #fff; border: 2px solid var(--accent);
	border-radius: 10px; font: 500 16px/1 var(--font); cursor: pointer;
	box-shadow: 0 8px 28px var(--accent-soft);
	transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: #111; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); box-shadow: none; }
.btn--ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent-2); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* Шапка */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(26, 26, 26, .86);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.logo img, .custom-logo { display: block; height: 44px; width: auto; }
.nav { margin-left: auto; }
.nav__list, .nav .menu { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--text); font-size: 15px; font-weight: 500; }
.nav a:hover, .nav .current-menu-item > a { color: var(--accent); }
.site-header__actions { display: flex; align-items: center; gap: 14px; }
.icon-link { color: var(--text); display: inline-flex; }
.icon-link:hover { color: var(--accent); }
.burger { display: none; width: 40px; height: 40px; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; height: 2px; background: #fff; margin: 6px 0; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Первый экран */
.hero {
	position: relative; overflow: hidden;
	padding: 110px 0 120px;
	background: radial-gradient(1200px 600px at 75% 20%, rgba(61, 196, 146, .12), transparent 60%), var(--bg);
}
.hero--short { padding: 90px 0; }
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; }
.hero__inner { position: relative; z-index: 2; }
.hero__title { font-size: clamp(34px, 5.2vw, 64px); font-weight: 900; max-width: 900px; letter-spacing: -0.01em; }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 720px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 26px 0 34px; }
.hero__points li { position: relative; padding-left: 26px; font-weight: 500; }
.hero__points li::before {
	content: ""; position: absolute; left: 0; top: 0.35em; width: 14px; height: 16px;
	background: var(--accent); clip-path: var(--hex);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__hex1 { position: absolute; right: 6%; top: 18%; width: 210px; height: 240px; opacity: .9; z-index: 1; }
.hero__hex2 { position: absolute; right: 22%; bottom: 10%; width: 110px; height: 126px; z-index: 1; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; margin-bottom: 14px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

/* Шестиугольники */
.hex { display: block; clip-path: var(--hex); }
.hex--fill { background: var(--accent); }
.hex--mint { background: var(--accent-2); }
.hex--white { background: #fff; }
.hex--line {
	clip-path: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 115'%3E%3Cpath d='M50 4 96 30.5v54L50 111 4 84.5v-54Z' fill='none' stroke='%23fff' stroke-width='6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Секции */
.section { position: relative; padding: 90px 0; }
.section--alt { background: var(--bg-alt); }
.section__title { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 36px; }
.page-head { padding: 70px 0 20px; }
.page-head h1 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 900; }
.intro { font-size: 19px; color: #e6e8f0; }

.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; }
.hex-cluster { position: relative; height: 360px; }
.hex-cluster .hex { position: absolute; }
.hex--xl { width: 230px; height: 264px; left: 18%; top: 14%; opacity: .85; }
.hex--md { width: 120px; height: 138px; right: 6%; top: 0; }
.hex--sm { width: 120px; height: 138px; left: 0; bottom: 0; }
.hex--xs { width: 80px; height: 92px; right: 14%; bottom: 6%; }

/* Карточки */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
	position: relative; display: flex; flex-direction: column;
	padding: 30px 28px; background: var(--card);
	border: 1px solid var(--line); border-radius: var(--radius);
	color: var(--text);
	transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card--link:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); color: var(--text); }
.card__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 60px; height: 68px; margin-bottom: 20px;
	background: rgba(61, 196, 146, .14); color: var(--accent-2); clip-path: var(--hex);
}
.card__title { font-size: 21px; margin-bottom: 10px; }
.card__text { color: var(--muted); font-size: 16px; margin-bottom: 0; }
.card__more { margin-top: auto; padding-top: 18px; color: var(--accent); font-weight: 500; }
.card__thumb { display: block; margin: -30px -28px 20px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.card__thumb img { display: block; width: 100%; height: 200px; object-fit: cover; }

/* Этапы */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps__item { position: relative; padding: 70px 0 0; counter-increment: step; }
.steps__item::before {
	content: counter(step); position: absolute; top: 0; left: 0;
	width: 48px; height: 54px; display: flex; align-items: center; justify-content: center;
	background: var(--accent); color: #fff; font-weight: 900; font-size: 20px; clip-path: var(--hex);
}
.steps__item::after { content: ""; position: absolute; top: 27px; left: 60px; right: 0; height: 1px; background: var(--line); }
.steps__item:last-child::after { display: none; }
.steps__item h3 { font-size: 19px; }
.steps__item p { color: var(--muted); font-size: 16px; }

/* Цена */
.price p { font-size: 18px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
	position: relative; list-style: none; cursor: pointer;
	padding: 22px 40px 22px 0; font-size: 19px; font-weight: 500;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
	content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
	color: var(--accent); font-size: 28px; font-weight: 400; transition: transform .2s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Заявка */
.lead { background: var(--bg-alt); overflow: hidden; }
.lead__hex { position: absolute; left: -60px; bottom: -40px; width: 220px; height: 252px; opacity: .25; }
.lead__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.lead__messengers { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.lead__form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.form { display: grid; gap: 18px; }
.form__field { display: grid; gap: 6px; }
.form__field span { font-size: 14px; color: var(--muted); }
.form input[type="text"],
.form textarea,
.lead__form input:not([type="checkbox"]):not([type="submit"]):not([type="hidden"]),
.lead__form textarea {
	width: 100%; padding: 13px 15px;
	background: var(--bg); color: var(--text);
	border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px;
	font: 16px/1.4 var(--font);
}
.form input:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
.form__check { display: flex; gap: 10px; font-size: 14px; color: var(--muted); align-items: flex-start; }
.form__check input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; }
.notice--success { background: rgba(61, 196, 146, .15); border: 1px solid var(--accent); }
.notice--error { background: rgba(230, 80, 80, .12); border: 1px solid #e65050; }

/* Контент из редактора */
.entry h2 { font-size: 30px; margin-top: 1.6em; }
.entry h3 { font-size: 22px; margin-top: 1.4em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: .4em; }
.entry blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.entry table { width: 100%; border-collapse: collapse; }
.entry th, .entry td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
.entry img { border-radius: var(--radius); }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); }
.pagination .current { background: var(--accent); border-color: var(--accent); }

/* Подвал */
.site-footer { background: #141414; border-top: 1px solid var(--line); padding: 60px 0 0; font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer__brand .logo img { height: 52px; margin-bottom: 16px; }
.site-footer__title { font-weight: 700; margin-bottom: 14px; }
.site-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer__list a { color: var(--muted); }
.site-footer__list a:hover { color: var(--accent); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 24px; margin-top: 50px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer__bottom a { color: var(--muted); }

/* Правовая информация */
.site-footer__bottom { align-items: flex-start; }
.site-footer__legal { display: grid; gap: 4px; }
.site-footer__docs { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.link-button { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { color: var(--accent); }
.form__check a { color: var(--accent); text-decoration: underline; }
.requisites { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0 0 1.5em; }
.requisites dt { color: var(--muted); }
.requisites dd { margin: 0; }

/* Баннер cookie */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; }
.cookie[hidden] { display: none; }
.cookie__inner {
	max-width: 960px; margin: 0 auto; padding: 18px 22px;
	display: flex; align-items: center; gap: 20px;
	background: #262828; border: 1px solid rgba(61, 196, 146, .45); border-radius: var(--radius);
	box-shadow: 0 16px 50px rgba(0, 0, 0, .5);
}
.cookie__text { margin: 0; font-size: 14px; color: var(--muted); }
.cookie__actions { display: flex; gap: 10px; flex: none; }

/* Адаптив */
@media (max-width: 1080px) {
	.cards--4 { grid-template-columns: repeat(2, 1fr); }
	.nav__list, .nav .menu { gap: 18px; }
}

@media (max-width: 960px) {
	.burger { display: block; }
	.site-header__actions .btn { display: none; }
	.nav {
		position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
		background: var(--bg); padding: 24px; margin: 0;
		transform: translateX(100%); transition: transform .25s;
		overflow-y: auto;
	}
	.nav.is-open { transform: none; }
	.nav__list, .nav .menu { flex-direction: column; gap: 0; }
	.nav a { display: block; padding: 14px 0; font-size: 20px; border-bottom: 1px solid var(--line); }
	.site-header__actions { margin-left: auto; }
	.cards { grid-template-columns: repeat(2, 1fr); }
	.split, .lead__grid { grid-template-columns: 1fr; gap: 36px; }
	.hex-cluster { display: none; }
	.hero__hex1 { opacity: .25; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.container { padding: 0 16px; }
	.section { padding: 64px 0; }
	.hero { padding: 64px 0 80px; }
	.cards, .cards--4 { grid-template-columns: 1fr; }
	.hero__hex1 { width: 140px; height: 160px; right: -40px; top: 8%; }
	.hero__hex2 { display: none; }
	.hero__cta .btn { width: 100%; }
	.lead__form { padding: 22px; }
	.steps__item::after { display: none; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.cookie__inner { flex-direction: column; align-items: stretch; }
	.cookie__actions { flex-direction: column; }
	.requisites { grid-template-columns: 1fr; gap: 2px; }
	.requisites dd { margin-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
