/* GLOBAL STYLES */
:root {
	--primary-color: #4f46e5;
	--secondary-color: #111827;
	--text-color: #f9fafb;
	--muted-text-color: #9ca3af;
	--border-color: #374151;
	--background-color: #030712;
	--header-height: 80px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Inter', sans-serif;
	background-color: var(--background-color);
	color: var(--text-color);
	font-size: 16px;
	line-height: 1.6;
	overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: 'Space Grotesk', sans-serif;
	color: var(--text-color);
	line-height: 1.2;
}

a {
	color: var(--primary-color);
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: var(--text-color);
}

ul {
	list-style: none;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

/* HEADER */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	background-color: rgba(3, 7, 18, 0.8);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border-color);
}

.header__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: var(--header-height);
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text-color);
}

.logo__svg {
	transition: transform 0.3s ease;
}

.logo:hover .logo__svg {
	transform: rotate(15deg);
}

.header__nav-list {
	display: flex;
	gap: 2rem;
}

.header__nav-link {
	color: var(--muted-text-color);
	font-weight: 500;
	position: relative;
	padding: 0.5rem 0;
}

.header__nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--primary-color);
	transition: width 0.3s ease;
}

.header__nav-link:hover {
	color: var(--text-color);
}

.header__nav-link:hover::after {
	width: 100%;
}

.header__menu-toggle {
	display: none;
	background: none;
	border: none;
	color: var(--text-color);
	cursor: pointer;
}

/* FOOTER */
.footer {
	background-color: var(--secondary-color);
	padding-top: 4rem;
	border-top: 1px solid var(--border-color);
}

.footer__container {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 3rem;
	padding-bottom: 4rem;
}

.footer__column--about .logo {
	margin-bottom: 1rem;
}

.footer__description {
	color: var(--muted-text-color);
	max-width: 300px;
}

.footer__heading {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 1.25rem;
	margin-bottom: 1.5rem;
	color: var(--text-color);
}

.footer__list li {
	margin-bottom: 0.75rem;
}

.footer__link {
	color: var(--muted-text-color);
}

.footer__link:hover {
	color: var(--primary-color);
	text-decoration: underline;
}

.footer__address {
	font-style: normal;
	color: var(--muted-text-color);
}

.footer__address p {
	margin-bottom: 0.75rem;
}

.footer__bottom {
	border-top: 1px solid var(--border-color);
	padding: 1.5rem 0;
}

.footer__bottom-container {
	text-align: center;
	color: var(--muted-text-color);
	font-size: 0.9rem;
}

/* RESPONSIVE STYLES */
@media (min-width: 768px) {
	.footer__container {
		grid-template-columns: 2fr 1fr 1fr 1.5fr;
		gap: 2rem;
	}
}

@media (max-width: 767px) {
	.header__nav {
		position: fixed;
		top: var(--header-height);
		left: 0;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--secondary-color);
		transform: translateX(-100%);
		transition: transform 0.3s ease-in-out;
		padding-top: 2rem;
	}

	.header__nav--active {
		transform: translateX(0);
	}

	.header__nav-list {
		flex-direction: column;
		align-items: center;
		gap: 1.5rem;
	}

	.header__nav-link {
		font-size: 1.2rem;
	}

	.header__menu-toggle {
		display: block;
		z-index: 1001; /* Above the nav panel */
	}
}

/* HERO SECTION */
.hero {
	padding-top: calc(var(--header-height) + 60px);
	padding-bottom: 80px;
	min-height: 100vh;
	display: flex;
	align-items: center;
	overflow: hidden;
}

.hero__container {
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
	gap: 3rem;
}

.hero__title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	max-width: 600px;
}

.hero__title--animated {
	color: var(--primary-color);
	position: relative;
}

/* Blinking cursor for typing effect */
.hero__title--animated::after {
	content: '|';
	position: absolute;
	right: -10px;
	animation: blink 1s infinite;
}

@keyframes blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

.hero__description {
	font-size: 1.125rem;
	color: var(--muted-text-color);
	margin-bottom: 2.5rem;
	max-width: 550px;
}

.hero__cta-button {
	display: inline-block;
	background-color: var(--primary-color);
	color: var(--text-color);
	padding: 1rem 2.5rem;
	border-radius: 8px;
	font-weight: 500;
	font-size: 1rem;
	transition: transform 0.3s ease, background-color 0.3s ease;
}

.hero__cta-button:hover {
	transform: translateY(-3px);
	background-color: #4338ca; /* A bit darker shade of primary */
}

.hero__visual {
	display: flex;
	justify-content: center;
	align-items: center;
}

.hero__image {
	width: 100%;
	border-radius: 16px;
	opacity: 0.7;
}

/* Responsive Styles for Hero */
@media (min-width: 992px) {
	.hero__container {
		grid-template-columns: 1fr 1fr;
		text-align: left;
	}

	.hero__title {
		font-size: 2.5rem;
	}
}

@media (max-width: 991px) {
	.hero {
		text-align: center;
	}

	.hero__content {
		order: 2;
	}

	.hero__visual {
		order: 1;
	}

	.hero__title,
	.hero__description {
		margin-left: auto;
		margin-right: auto;
	}
}

/* PLATFORMS SECTION */
.platforms {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: var(--secondary-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.platforms__header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.platforms__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.platforms__subtitle {
    font-size: 1.125rem;
    color: var(--muted-text-color);
}

.platforms__grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

.platforms__card {
    background-color: var(--background-color);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.platforms__card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.1);
}

.platforms__card-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.platforms__card-icon i {
    width: 28px;
    height: 28px;
}

.platforms__card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.platforms__card-description {
    color: var(--muted-text-color);
}

/* Responsive Styles for Platforms */
@media (min-width: 768px) {
    .platforms__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .platforms__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* GUIDES SECTION */
.guides {
    padding-top: 80px;
    padding-bottom: 80px;
}

.guides__header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.guides__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.guides__subtitle {
    font-size: 1.125rem;
    color: var(--muted-text-color);
}

.guides__layout {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

.guides__item {
    background-color: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guides__item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.guides__item-link {
    display: block;
    color: inherit;
}

.guides__item-link:hover {
    color: inherit;
}

.guides__item-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.guides__item-content {
    padding: 1.5rem;
}

.guides__item-category {
    display: inline-block;
    margin-bottom: 0.75rem;
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.guides__item-title {
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.guides__item-link:hover .guides__item-title {
    color: var(--primary-color);
}

.guides__item-excerpt {
    color: var(--muted-text-color);
    margin-bottom: 1.5rem;
}

.guides__item-readmore {
    color: var(--text-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.guides__item-arrow {
    transition: transform 0.3s ease;
    width: 20px;
    height: 20px;
}

.guides__item-link:hover .guides__item-arrow {
    transform: translateX(5px);
}

/* Responsive Styles for Guides */
@media (min-width: 768px) {
    .guides__layout {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .guides__layout {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* USE CASES SECTION */
.use-cases {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: var(--secondary-color);
}

.use-cases__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.use-cases__title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.use-cases__description {
    font-size: 1.125rem;
    color: var(--muted-text-color);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.use-cases__accordion-item {
    border-bottom: 1px solid var(--border-color);
}
.use-cases__accordion-item:first-child {
    border-top: 1px solid var(--border-color);
}

.use-cases__accordion-header {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
    text-align: left;
}

.use-cases__accordion-title {
    font-size: 1.25rem;
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-color);
}

.use-cases__accordion-icon {
    color: var(--muted-text-color);
    transition: transform 0.3s ease;
    width: 24px;
    height: 24px;
}

.use-cases__accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease;
    color: var(--muted-text-color);
}

.use-cases__accordion-content p {
    padding-bottom: 1.5rem;
}

/* Active state for accordion */
.use-cases__accordion-item--active .use-cases__accordion-icon {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.use-cases__accordion-item--active .use-cases__accordion-title {
    color: var(--primary-color);
}

.use-cases__visual {
    display: flex;
    justify-content: center;
}

.use-cases__image {
    max-width: 400px;
    width: 100%;
    border-radius: 16px;
    opacity: 0.7;
}


/* Responsive Styles for Use Cases */
@media (min-width: 992px) {
    .use-cases__container {
        grid-template-columns: 1fr 1fr;
    }
}

/* TOOLS SECTION */
.tools {
    padding-top: 80px;
    padding-bottom: 80px;
}

.tools__header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tools__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tools__subtitle {
    font-size: 1.125rem;
    color: var(--muted-text-color);
}

.tools__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.tools__item {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.tools__item:hover {
    background-color: var(--border-color);
    transform: scale(1.05);
}

.tools__item-icon {
    width: 40px;
    height: 40px;
    color: var(--muted-text-color);
}

.tools__item-name {
    font-weight: 500;
    color: var(--text-color);
}

/* Responsive Styles for Tools */
@media (min-width: 576px) {
    .tools__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .tools__grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* CONTACT SECTION */
.contact {
    padding-top: 80px;
    padding-bottom: 80px;
}

.contact__header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact__subtitle {
    font-size: 1.125rem;
    color: var(--muted-text-color);
}

.contact__form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

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

.contact__form-group {
    display: flex;
    flex-direction: column;
}

.contact__form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--muted-text-color);
}

.contact__form-input {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    color: var(--text-color);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact__form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.contact__form-group--checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact__form-checkbox {
    width: 1.25em;
    height: 1.25em;
    accent-color: var(--primary-color);
}

.contact__form-checkbox-label {
    color: var(--muted-text-color);
    font-size: 0.9rem;
}

.contact__form-checkbox-label a {
    text-decoration: underline;
}
.contact__form-checkbox-label a:hover {
    color: var(--text-color);
}

.contact__form-button {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.contact__form-button:hover {
    transform: translateY(-3px);
    background-color: #4338ca;
}

.contact__success-message {
    display: none; /* Hidden by default */
    text-align: center;
    padding: 3rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--secondary-color);
}

.contact__success-message-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact__success-message-icon i {
    width: 48px;
    height: 48px;
}

.contact__success-message-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

/* ... (весь предыдущий CSS код остается без изменений) ... */

/* STYLES FOR STATIC PAGES (privacy.html, etc.) */
.pages {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
}

.pages h1 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.pages h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.pages p, .pages ul {
    color: var(--muted-text-color);
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.pages ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.pages li {
    margin-bottom: 0.75rem;
}

.pages a {
    text-decoration: underline;
}

.pages a:hover {
    color: var(--text-color);
}

.pages strong {
    color: var(--text-color);
}


/* COOKIE POPUP */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    z-index: 1100;
    transition: bottom 0.5s ease-in-out;
}

.cookie-popup--visible {
    bottom: 0;
}

.cookie-popup__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.cookie-popup__text {
    color: var(--muted-text-color);
}

.cookie-popup__text a {
    text-decoration: underline;
}

.cookie-popup__button {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.cookie-popup__button:hover {
    background-color: #4338ca;
}

@media (max-width: 767px) {
    .cookie-popup__container {
        flex-direction: column;
        text-align: center;
    }
}
