/* Сброс стилей */

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

html {
	scroll-behavior: smooth;
}

/* Глобальные стили */
body {
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	background-color: #f8fafc;
	color: #1e293b;
	margin: 0;
}

h1,
h2,
h3,
h4 {
	font-family: 'Fira Sans', sans-serif;
	color: #1e293b;
	margin: 0;
}

p {
	margin: 0;
}

a {
	text-decoration: none;
	color: inherit;
	transition: color 0.3s ease;
}

a:hover {
	color: #2563eb;
}

/* Контейнер */
.header__container,
.footer__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* Хедер */
.header {
	background: #ffffff;
	border-bottom: 1px solid #e2e8f0;
	position: sticky;
	top: 0;
	z-index: 1000;
}

.header__logo {
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1.5rem;
	color: #2563eb;
}

.header__logo img {
	height: 40px;
	width: auto;
}

.header__nav ul {
	display: flex;
	gap: 1.5rem;
	list-style: none;
}

.header__burger {
	display: none;
	background: none;
	border: none;
}

/* Футер */
.footer {
	background: #1e293b;
	color: #ffffff;
	padding: 2rem;
}

.footer__container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
	align-items: start;
}

.footer__logo {
	font-size: 1.5rem;
	font-weight: 700;
	color: #14b8a6;
}

.footer h4 {
	margin-bottom: 0.5rem;
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
}

.footer ul {
	list-style: none;
}

.footer ul li {
	margin-bottom: 0.4rem;
}

.footer ul li a:hover {
	color: #14b8a6;
}

/* Адаптивность */
@media (max-width: 768px) {
	.header__nav {
		display: none;
	}
	.header__burger {
		display: block;
		cursor: pointer;
	}
}

/* Hero */
.hero {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 90vh;
	padding: 3rem 2rem;
	background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}

.hero__container {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 2rem;
}

.hero__content {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.hero__title {
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.2;
}

.hero__title span {
	color: #2563eb;
	border-right: 2px solid #2563eb;
	animation: blink 0.7s infinite;
}

@keyframes blink {
	0%,
	50% {
		border-color: transparent;
	}
	51%,
	100% {
		border-color: #2563eb;
	}
}

.hero__subtitle {
	font-size: 1.1rem;
	color: #475569;
}

.hero__btn {
	display: inline-block;
	background: #2563eb;
	color: #ffffff;
	padding: 0.75rem 1.5rem;
	border-radius: 0.5rem;
	font-weight: 600;
	transition: background 0.3s ease;
	text-align: center;
	max-width: 180px;
}

.hero__btn:hover {
	background: #1d4ed8;
}

.hero__image img {
	width: 100%;
	border-radius: 1rem;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
	.hero__container {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.hero__content {
		align-items: center;
	}
}

/* Секции */
.section {
	padding: 4rem 2rem;
}
.section__container {
	max-width: 1200px;
	margin: 0 auto;
}
.section__title {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}
.section__subtitle {
	color: #64748b;
	margin-bottom: 2rem;
}

/* Карточки */
.cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
}
.card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
	border-color: #bfdbfe;
}
.card__icon {
	width: 28px;
	height: 28px;
}
.card__title {
	font-size: 1.1rem;
}
.card__text {
	color: #475569;
	flex: 1;
}
.card__cta,
.btn {
	display: inline-block;
	align-self: flex-start;
	background: #2563eb;
	color: #fff;
	padding: 0.6rem 1rem;
	border-radius: 0.5rem;
	font-weight: 600;
	transition: background 0.2s ease;
}
.card__cta:hover,
.btn:hover {
	background: #1d4ed8;
}
.btn--accent {
	background: #14b8a6;
}
.btn--accent:hover {
	background: #0ea5a3;
}

/* Табы */
.tabs {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	padding: 1rem;
}
.tabs__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}
.tabs__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	padding: 0.5rem 0.9rem;
	border-radius: 0.5rem;
	cursor: pointer;
	font-weight: 600;
	transition: background 0.2s ease, border-color 0.2s ease;
}
.tabs__btn--active {
	background: #2563eb;
	color: #fff;
	border-color: #2563eb;
}
.tabs__panes .tabs__pane {
	display: none;
}
.tabs__panes .tabs__pane--active {
	display: block;
}
.list {
	margin: 0 0 1rem 1rem;
	color: #475569;
}
.list li {
	margin: 0.4rem 0;
}

/* Roadmap */
.roadmap {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	margin-bottom: 1rem;
}
.roadmap__step {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	padding: 1rem;
	position: relative;
}
.roadmap__num {
	position: absolute;
	top: -12px;
	left: -12px;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: #14b8a6;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}

/* Инструменты */
.tools__filter {
	margin-bottom: 1rem;
}
.tools__search {
	width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 0.6rem;
	padding: 0.75rem 0.9rem;
	outline: none;
}
.tools__search:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.cards--tools .card--tool {
	position: relative;
}

/* Мобильное меню — активное состояние */
.header__nav.active {
	display: block;
	position: absolute;
	top: 64px;
	left: 0;
	right: 0;
	background: #ffffff;
	border-bottom: 1px solid #e2e8f0;
	padding: 1rem 2rem;
}
.header__nav.active ul {
	flex-direction: column;
	gap: 1rem;
}

/* Адаптивность сеток */
@media (max-width: 1024px) {
	.cards {
		grid-template-columns: repeat(2, 1fr);
	}
	.roadmap {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 640px) {
	.cards {
		grid-template-columns: 1fr;
	}
	.section {
		padding: 3rem 1.25rem;
	}
}

/* Contact */
.contact {
	padding: 4rem 2rem;
	background: linear-gradient(180deg, #f8fafc 0%, #eef6ff 100%);
}
.contact__container {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	gap: 2rem;
	grid-template-columns: 1.4fr 1fr;
}
.contact__title {
	font-size: 2rem;
	margin-bottom: 0.25rem;
}
.contact__subtitle {
	color: #64748b;
	margin-bottom: 1rem;
}
.contact__form {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	padding: 1.25rem;
}
.contact__field {
	margin-bottom: 1rem;
}
.contact__label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.4rem;
}
.contact__control {
	position: relative;
}
.contact__icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	color: #64748b;
}
.contact__input {
	width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 0.6rem;
	padding: 0.7rem 0.9rem 0.7rem 2.2rem;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	background: #fff;
}
.contact__input:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.contact__error {
	color: #b91c1c;
	font-size: 0.875rem;
	min-height: 1rem;
	margin-top: 0.25rem;
}
.contact__field--captcha .contact__captcha-text {
	display: inline-block;
	margin-bottom: 0.5rem;
	color: #0f172a;
}
.contact__captcha-row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.5rem;
	align-items: center;
}
.contact__input--captcha {
	padding-left: 0.9rem;
}
.contact__refresh {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	padding: 0.6rem 0.7rem;
	border-radius: 0.6rem;
	cursor: pointer;
}
.contact__refresh:hover {
	background: #eef2ff;
}
.contact__agree {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	margin: 0.75rem 0 0.5rem;
	font-size: 0.95rem;
	color: #0f172a;
}
.contact__agree a {
	color: #2563eb;
}
.contact__submit {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	background: #2563eb;
	color: #fff;
	padding: 0.75rem 1.25rem;
	border-radius: 0.6rem;
	border: none;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}
.contact__submit:hover {
	background: #1d4ed8;
}
.contact__submit:disabled {
	background: #94a3b8;
	cursor: not-allowed;
}
.contact__spinner {
	width: 16px;
	height: 16px;
	border: 2px solid #fff;
	border-top-color: transparent;
	border-radius: 50%;
	display: none;
	animation: spin 0.8s linear infinite;
}
@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}
.contact__submit.loading .contact__spinner {
	display: inline-block;
}

.contact__success {
	margin-top: 0.9rem;
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
	padding: 0.75rem 1rem;
	border-radius: 0.6rem;
}

.contact__info {
	display: grid;
	gap: 0.75rem;
	align-content: start;
}
.contact__card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.75rem;
	align-items: center;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	padding: 0.9rem;
}
.contact__card i {
	width: 22px;
	height: 22px;
	color: #2563eb;
}
.contact__card h4 {
	font-size: 1rem;
	margin-bottom: 0.1rem;
}

/* Адаптивность */
@media (max-width: 960px) {
	.contact__container {
		grid-template-columns: 1fr;
	}
}

/* ===== Cookie Pop-up ===== */
.cookie {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2000;
	padding: 0.75rem;
	background: transparent;
	display: grid;
	place-items: center;
}
.cookie__inner {
	width: min(960px, 96%);
	background: #0f172a;
	color: #e2e8f0;
	border: 1px solid #334155;
	border-radius: 0.75rem;
	padding: 0.9rem 1rem;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.75rem;
	box-shadow: 0 12px 30px rgba(2, 6, 23, 0.45);
}
.cookie__text {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.75rem;
	align-items: center;
}
.cookie__icon {
	width: 22px;
	height: 22px;
	color: #fbbf24;
}
.cookie a {
	color: #93c5fd;
	text-decoration: underline;
}
.cookie__btn {
	align-self: center;
	background: #14b8a6;
	color: #0f172a;
	border: none;
	font-weight: 700;
	padding: 0.6rem 1rem;
	border-radius: 0.6rem;
	cursor: pointer;
	transition: transform 0.05s ease, background 0.2s ease;
}
.cookie__btn:hover {
	background: #0ea5a3;
}
.cookie__btn:active {
	transform: translateY(1px);
}
@media (max-width: 640px) {
	.cookie__inner {
		grid-template-columns: 1fr;
	}
}

/* ===== Текстовые страницы политик ===== */
.pages {
	padding: 3rem 1.25rem;
	background: #f8fafc;
}
.pages .container {
	max-width: 860px;
	margin: 0 auto;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	padding: 1.5rem 1.25rem;
}
.pages h1 {
	font-family: 'Fira Sans', sans-serif;
	font-weight: 700;
	font-size: 1.9rem;
	margin-bottom: 1rem;
	color: #0f172a;
}
.pages h2 {
	font-size: 1.25rem;
	margin: 1.25rem 0 0.5rem;
	color: #0f172a;
}
.pages p {
	color: #334155;
	margin: 0.65rem 0;
}
.pages ul {
	margin: 0.5rem 0 0.75rem 1.25rem;
	color: #334155;
}
.pages li {
	margin: 0.35rem 0;
}
.pages a {
	color: #2563eb;
	text-decoration: underline;
}
.pages strong {
	font-weight: 700;
}
