/* Brelight: переменные, сброс, типографика, кнопки, общие блоки. Макет: docs/superpowers/mockups/home-a-v2.html */
:root {
	--bg: #040918;
	--bg2: #0b1d3d;
	--ac: #38d6ff;
	--ac-ink: #03121f;
	--tx: #e6eefc;
	--mut: #8ea3c4;
	--line: rgba(120, 180, 255, .14);
	--card: rgba(11, 23, 48, .72);
	--font-head: 'Unbounded', 'Arial Black', sans-serif;
	--font-body: 'Manrope', 'Segoe UI', Arial, sans-serif;
	--font-mono: 'JetBrains Mono', Consolas, monospace;
	--radius: 12px;
	--gutter: 28px;
	--maxw: 1240px;
	--header-h: 64px;
	/* Значки-маски: форма из SVG, цвет — background-color элемента */
	--i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
	--i-cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7.5 7.5l9 9M16.5 7.5l-9 9'/%3E%3C/svg%3E");
	--i-zoom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L20 20M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E");
	color-scheme: dark;
}
@media (max-width: 599px) {
	:root { --gutter: 16px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { background-color: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
	margin: 0;
	min-height: 100vh;
	background: linear-gradient(170deg, var(--bg), var(--bg2) 60%, #071229) fixed;
	color: var(--tx);
	font: 400 16px/1.6 var(--font-body);
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--ac); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; border-radius: 4px; }
button, input, textarea, select { font: inherit; color: inherit; }

/* Полосы прокрутки в стиле сайта: тонкие, дорожка прозрачная, ползунок бирюзовый (решение пользователя, этап 2) */
html, .scroll-x { scrollbar-width: thin; scrollbar-color: rgba(56, 214, 255, .35) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(56, 214, 255, .28); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(56, 214, 255, .5); background-clip: padding-box; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Атрибут hidden сильнее display: у .btn, .request-form__field и др. (ревью этапа 1) */
[hidden] { display: none !important; }
/* main получает фокус по ссылке «Перейти к содержимому» (tabindex=-1) — рамка не нужна */
#main:focus { outline: none; }

h1, h2, h3, h4 { margin: 0 0 .6em; color: var(--tx); line-height: 1.2; }
h1 { font: 700 clamp(26px, 2.2vw + 14px, 40px)/1.15 var(--font-head); overflow-wrap: break-word; }
/* Узкий телефон: «телескопические» в Unbounded 700 должно влезать в строку (320 px — 21 px) */
@media (max-width: 400px) { h1 { font-size: 6.6vw; } }
h2 { font: 500 clamp(19px, 1vw + 14px, 26px)/1.25 var(--font-head); }
h3 { font: 600 18px/1.35 var(--font-body); }
p { margin: 0 0 1em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed !important; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
	padding: 10px 14px; background: var(--ac); color: var(--ac-ink); font-weight: 700; border-radius: 6px;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: 40px; padding-bottom: 40px; }
.section + .section { border-top: 1px solid var(--line); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section__head h2 { margin: 0; }
.section__more { font-size: 14px; white-space: nowrap; }

.tag { display: block; margin-bottom: 10px; font: 400 11px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ac); }
.muted { color: var(--mut); }
.lead { color: var(--mut); font-size: 16px; line-height: 1.65; max-width: 34em; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 18px; border: 1px solid var(--ac); border-radius: 6px;
	background: var(--ac); color: var(--ac-ink);
	font: 700 14px/1.2 var(--font-body); white-space: nowrap; cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; background: #6be2ff; }
.btn--ghost { background: transparent; color: var(--ac); }
.btn--ghost:hover { background: rgba(56, 214, 255, .1); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }

/* Крупный телефон (главная, «Контакты») */
.contact__phone { display: block; margin: 4px 0 8px; font: 700 clamp(20px, 1.4vw + 12px, 26px)/1.2 var(--font-head); color: var(--tx); white-space: nowrap; }

/* Бирка с характеристикой поверх фото */
.spec-badge {
	position: absolute; padding: 3px 7px; border: 1px solid var(--ac); border-radius: 4px;
	background: var(--bg); color: var(--ac); font: 400 11px/1.3 var(--font-mono);
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
