@import url("reset.css");

/* Базовые и переменные */
:root {
	--main-color-white: #f2f2f2;
	--main-color-black: #020202;
	--bg: #0b0f14;
	--bg-soft: #0e141b;
	--glass: rgba(255, 255, 255, 0.06);
	--line: rgba(255, 255, 255, 0.08);
	--muted: rgba(255, 255, 255, 0.75);
	--text: #f3f6f9;
	--primary: #6ee7ff;
	--primary-2: #76a9ff;
	--accent: #00ffc6;
	--danger: #ff6b6b;
	--radius: 16px;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	--blur: 14px;
	--background-item: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
	--grad-1: radial-gradient(1200px 600px at 10% -10%, rgb(81 104 125 / 0%), transparent 60%), radial-gradient(900px 500px at 90% 10%, rgb(0 93 72 / 12%), transparent 60%), radial-gradient(1000px 600px at 50% 120%, rgba(108, 230, 255, 0.14), transparent 60%);
}

* {
	box-sizing: border-box;
	scrollbar-width: thin;
	scrollbar-color: var(--primary) rgba(255, 255, 255, 0.06);
}

/* Типографика и базовые ссылки */
.material-symbols-rounded {
	font-weight: 400;
	font-size: 3rem;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	opacity: 0.7;
}

h1 {
	font-size: 36px;
	margin: 32px 0 20px;
}

h2 {
	font-size: 3rem;
}

h3 {
	font-size: 25px;
	margin-bottom: 20px;
}

/* Документ */
html,
body {
	height: 100%;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	color: var(--text);
	background: var(--bg);
	background-image:
		var(--grad-1),
		linear-gradient(0deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
	background-size: auto, 48px 48px, 48px 48px;
	background-position: 0 0, 0 0, 0 0;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-tap-highlight-color: transparent;
}

/* Контейнеры и сетки */
main {
	position: relative;
	z-index: 2;
	-webkit-box-flex: 1;
	-ms-flex: 1 0 auto;
	flex: 1 0 auto;
	padding-bottom: 40px;
}

.wrapper {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	height: 100%;
	width: 100%;
	max-width: 1900px;
	margin: 0 auto;
}

.container {
	width: min(1180px, 92%);
	margin-inline: auto;
}

/* Хлебные крошки и пагинация */
.breadcrumbs,
.pagination {
	width: 100%;
	position: relative;
	padding: 1rem 0;
	margin: 1rem 0;
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
}

.pagination a {
	border: 1px solid var(--main-color-black);
	padding: 0.5rem;
	text-decoration: none;
	margin-right: 0.7rem;
	color: var(--main-color-black);
}

.pagination .current_step {
	background: var(--main-color-black);
	color: var(--main-color-white);
}

/* Кнопки */
.btn {
	border-radius: 12px;
	padding: 10px 16px;
	font-weight: 600;
	border: 1px solid transparent;
	transition: all .25s ease;
	box-shadow: none;
	cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn_primary {
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
	color: #06111a;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn_primary:hover { filter: brightness(1.08); }
.btn_tg{
  background-image:
    url('../Images/telegram.svg'),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  background-repeat: no-repeat;
  /* иконка + градиент */
  background-position: 10px center, 0 0;
  background-size: 32px 32px, 100% 100%;
  padding-left: 56px;
  position: relative;
  overflow: hidden; /* чтобы “плашка” не вылезала за скругления */
}

.btn_tg::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width: 50px;                 /* зона под иконку */
  /* background: rgba(255,255,255,.12); */ /* или любой ровный цвет/градиент */
  pointer-events:none;
}

.btn_secondary {
	background: rgba(255, 255, 255, 0.06);
	border-color: var(--line);
}

.btn_secondary:hover { background: rgba(255, 255, 255, 0.1); }

.btn_ghost {
	background: transparent;
	border-color: var(--line);
}

.btn_ghost:hover { background: rgba(255, 255, 255, 0.05); }

/* Шапка */
.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	backdrop-filter: blur(var(--blur));
	-webkit-backdrop-filter: blur(var(--blur));
	background: linear-gradient(to bottom, rgba(11,15,20,0.7), rgba(11,15,20,0.25));
	border-bottom: 1px solid var(--line);
}

.header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 0;
}

.header__logo {
	font-weight: 800;
	letter-spacing: 0.2px;
	font-size: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.header__logo::before {
	content: "";
	width: 18px;
	height: 18px;
	border-radius: 6px;
	background: conic-gradient(from 180deg, var(--primary), var(--accent), var(--primary-2), var(--primary));
	filter: drop-shadow(0 0 8px rgba(0, 255, 198, 0.35));
}

.header__nav {
	display: flex;
	gap: 14px;
	font-weight: 500;
	opacity: .92;
}

.header__nav a {
	padding: 8px 10px;
	border-radius: 10px;
	transition: 200ms;
}

.header__nav a:hover { background: var(--glass); }

.header__actions {
	display: flex;
	gap: 10px;
}

/* Хиро */
.hero {
	position: relative;
	isolation: isolate;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(900px 300px at 50% 0%, rgba(118, 169, 255, 0.15), transparent 70%);
	z-index: -1;
}

.hero__content { padding: 20px 0 20px; }

.hero h1 {
	font-size: 40px;
	line-height: 1.1;
	margin: 0 0 16px;
	font-weight: 800;
}

.hero p {
	font-size: clamp(16px, 1.6vw, 18px);
	color: #fff;
}

.hero__actions {
	display: flex;
	gap: 20px;
	margin: 16px 0 16px;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity .5s ease, transform .5s ease;
}

.hero__actions.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.hero__note { opacity: .75; font-size: 14px; }

.divider {
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
	margin: 8px 0 0;
}

section { padding: 40px 0; }

h2 {
	font-size: 32px;
	margin: 20px 0 16px;
}

/* Продукты/карточки */
.products .product {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 40px 40px 90px 40px;
	box-shadow: var(--shadow);
	backdrop-filter: blur(calc(var(--blur) * .6));
	-webkit-backdrop-filter: blur(calc(var(--blur) * .6));
	transition: transform .25s ease, box-shadow .25s ease;
	will-change: transform, box-shadow;
	background: var(--background-item);
}

.products .product:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.products h2 { margin-bottom: 22px; }

.product__badge {
	display: inline-block;
	font-size: 12px;
	letter-spacing: .2px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(0, 255, 198, 0.12);
	color: #a9ffec;
	border: 1px solid rgba(0, 255, 198, 0.25);
	margin-bottom: 10px;
}

.product__title { font-size: 22px; margin: 0 0 8px; }
.product__lead,
.product__desc { color: var(--muted); }

.product__bullets {
	margin: 12px 0 14px;
	padding-left: 18px;
}

.product__bullets li { margin: 6px 0; }

.product__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px;
}

.product__price {
	font-size: 16px;
	color: #dff9ff;
	margin-top: 8px;
}

.product__actions {
	position: absolute;
	bottom: 32px;
}

.product--featured {
	position: relative;
	overflow: hidden;
}

.product--featured::after {
	content: "";
	position: absolute;
	right: -60px;
	top: -60px;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(110, 231, 255, 0.25), transparent 70%);
	filter: blur(12px);
}

/* Сетки */
.products__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin-top: 18px;
}

.products__grid > .product {
	flex: 1 1 calc((100% - 36px)/3);
	min-width: 280px;
}

/* Особенности */
.features__list {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 10px;
	padding: 0;
}

.features__list li {
	flex: 1 1 calc((100% - 14px)/2);
	min-width: 280px;
	list-style: none;
	border: 1px solid var(--line);
	padding: 22px;
	background: var(--background-item);
	border-radius: 14px;
	transition: transform .25s ease, box-shadow .25s ease;
	backdrop-filter: blur(calc(var(--blur) * .6));
	-webkit-backdrop-filter: blur(calc(var(--blur) * .6));
}

.features__list li:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

/* Шаги */
.howitworks__steps {
	counter-reset: step;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 12px 0 0;
	padding: 0;
}

.howitworks__steps li {
	list-style: none;
	position: relative;
	flex: 1 1 calc((100% - 42px)/4);
	min-width: 220px;
	padding: 70px 32px 32px 32px;
	background: var(--background-item);
	border: 1px solid var(--line);
	border-radius: 14px;
	transition: transform .25s ease, box-shadow .25s ease;
	backdrop-filter: blur(calc(var(--blur) * .6));
	-webkit-backdrop-filter: blur(calc(var(--blur) * .6));
}

.howitworks__steps li:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.howitworks__steps li::before {
	counter-increment: step;
	content: counter(step);
	position: absolute;
	left: 20px;
	top: 20px;
	width: 32px;
	height: 32px;
	line-height: 30px;
	border-radius: 40px;
	background: linear-gradient(135deg, var(--primary), var(--primary-2));
	color: #000;
	font-weight: 700;
	text-align: center;
}

/* Кейсы */
.cases__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

.cases__grid .case {
	flex: 1 1 calc((100% - 36px)/3);
	min-width: 280px;
}

.case__title {
	margin: 0 0 6px;
	font-size: 18px;
}

.case__kpi {
	margin: 0 0 10px;
	color: #bfeeff;
}

.case__link {
	display: inline-flex;
	gap: 8px;
	align-items: center;
}

.case__link::after {
	content: "→";
	opacity: .8;
}

/* CTA и форма */
.cta { }

.cta .form {
	margin-top: 20px;
	display: flex;
	flex-wrap: wrap;
	backdrop-filter: blur(calc(var(--blur) * .6));
	-webkit-backdrop-filter: blur(calc(var(--blur) * .6));
	background: var(--background-item);
	border-radius: 14px;
	padding: 10px 20px 20px 20px;
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
}

.form__row {
	min-width: 260px;
	width: 48%;
	margin-bottom: 20px;
	margin: 20px 1% 0 0;
}

.form__row label {
	font-size: 14px;
	display: block;
	vertical-align: top;
	margin-bottom: 8px;
}

input,
textarea {
	background: var(--background-item);
	border: 1px solid var(--line);
	border-radius: 12px;
	color: var(--text);
	padding: 12px 14px;
	outline: none;
	transition: 150ms;
	width: 100%;
}

textarea {
	min-height: 110px;
	resize: vertical;
}

input:focus,
textarea:focus {
	border-color: rgba(118, 169, 255, 0.6);
	box-shadow: 0 0 0 3px rgba(118, 169, 255, 0.15);
}

.form__note {
	font-size: 14px;
	color: var(--muted);
	display: inline-block;
	vertical-align: top;
	padding-left: 10px;
}

.cta .btn { float: left; }

/* About */
.about { }

.about__integrations {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 0;
	margin: 20px 0 0 0;
}

.about__integrations li {
	list-style: none;
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
}

/* Подвал */
.footer {
	border-top: 1px solid var(--line);
	background: linear-gradient(to bottom, rgba(11,15,20,0.7), rgba(11,15,20,0.25));
	margin-bottom: 40px;
	backdrop-filter: blur(var(--blur));
	-webkit-backdrop-filter: blur(var(--blur));
	position: relative;
	z-index: 10;
	-ms-flex: 0 0 auto;
	-webkit-box-flex: 0;
	flex: 0 0 auto;
	margin-top: 40px;
}

.footer__cols {
	display: flex;
	flex-wrap: wrap;
	padding: 40px 0;
}

.footer__col {
	width: 33%;
	padding-right: 32px;
}

.footer__bottom {
	border-top: 1px solid var(--line);
	padding: 12px 0;
	opacity: .7;
}

.footer__logo {
	font-weight: 600;
	text-transform: uppercase;
	font-size: 18px;
	margin-bottom: 20px;
}

.footer__title {
	font-weight: 600;
	text-transform: uppercase;
	font-size: 18px;
	margin-bottom: 20px;
}

.footer__item {
	display: block;
	margin-bottom: 10px;
}

.footer ul {
	margin: 0;
	padding-left: 18px;
}

/* Гласс */
.glass {
	background: var(--glass);
	border: 1px solid var(--line);
	backdrop-filter: blur(var(--blur));
	-webkit-backdrop-filter: blur(var(--blur));
	box-shadow: var(--shadow);
}

/* Модалка */
.modal {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 70;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease;
}

.modal[aria-hidden="false"] {
	opacity: 1;
	pointer-events: auto;
}

.modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.modal__dialog {
	position: relative;
	width: min(680px, 92%);
	max-height: calc(100vh - 120px);
	overflow: auto;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 40px;
	transform: translateY(10px) scale(0.99);
	opacity: 0;
	transition: opacity .3s ease, transform .3s ease;
}

.modal[aria-hidden="false"] .modal__dialog {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 6px 10px;
	cursor: pointer;
	color: #eafcff;
	transition: background .2s ease, transform .2s ease;
}

.modal__close:hover {
	background: rgba(255, 255, 255, 0.1);
	transform: translateY(-1px);
}

.modal__actions { margin-top: 32px; }

/* Скроллбары */
*::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

*::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.04);
}

*::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, var(--primary-2), var(--primary));
	border-radius: 10px;
	border: 2px solid rgba(0, 0, 0, 0);
	background-clip: padding-box;
}

/* Ревилы и печать текста */
.js-reveal {
	opacity: 0;
	transform: translateY(12px);
}

.js-reveal.is-visible {
	opacity: 1;
	transform: none;
	transition: all 0.2s, opacity .6s ease, transform .6s ease;
}

@keyframes revealUp {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes revealFade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.js-reveal[data-anim="reveal-up"].is-visible { animation: revealUp .6s ease both; }
.js-reveal[data-anim="reveal-fade"].is-visible { animation: revealFade .6s ease both; }

.typing {
	border-right: 2px solid rgba(255, 255, 255, 0.6);
	animation: caret 1s steps(1) infinite;
}

@keyframes caret {
	50% { border-color: transparent; }
}

/* Хиро дополнительные состояния */
#hero-lead { visibility: hidden; }

.hero__actions,
.hero__note {
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .45s ease, transform .45s ease;
}

.hero__actions.is-visible,
.hero__note.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Фоновый канвас */
#bg-canvas {
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	opacity: 0.8;
}

.header__panel {
	display: flex;
	align-items: center;
	gap: 22px;
}
.header__contacts {
	display: none;
}

.header__contacts .footer__item {
	display: block;
	margin-bottom: 8px;
	color: var(--text);
	text-decoration: none;
}

.header__burger {
	display: none;
	appearance: none;
	border: 1px solid var(--line);
	background: rgba(255,255,255,0.06);
	border-radius: 12px;
	padding: 8px 10px;
	cursor: pointer;
	color: var(--text);
	transition: background .2s ease, transform .2s ease, opacity .2s ease;
}
.header__burger:hover { background: rgba(255,255,255,0.1); transform: translateY(-1px); }
.header__burger:active { transform: translateY(0); }
.header__burger .material-symbols-rounded { font-size: 28px; line-height: 1; }

.offcanvas__overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.5);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	opacity: 0;
	pointer-events: none;
	z-index: 98;
	transition: opacity .25s ease;
}

.offcanvas__overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

body.no-scroll {
	overflow: hidden;
	touch-action: none;
}

.header__burger:focus-visible,
.header__nav a:focus-visible,
.header__actions .btn:focus-visible {
	outline: 2px solid rgba(118,169,255,0.8);
	outline-offset: 2px;
}
.header__panel-head {
	display: flex;
	align-items: center;
	justify-content: right;
	margin-bottom: 12px;
	width: 100%;
	display: none;
}

.header__close {
	appearance: none;
	border: 1px solid var(--line);
	background: rgba(255,255,255,0.06);
	border-radius: 10px;
	padding: 6px 10px;
	cursor: pointer;
	color: var(--text);
	transition: background .2s ease, transform .2s ease;
}
.header__close:hover { background: rgba(255,255,255,0.1); transform: translateY(-1px); }
.header__close:active { transform: translateY(0); }
.header__close .material-symbols-rounded { font-size: 26px; }
.desctop-none{
	display:none;
}