/* Goggle Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Roboto:wght@400;500&display=swap');

/* CSS Variables */
:root {
	--primary-bg-color: #0d0c22;
	--secondary-bg-color: #1f1e3a;
	--accent-color: #4d5bce;
	--accent-hover-color: #3a47a8;
	--text-color: #b0b0cc;
	--heading-color: #f0f0f0;
	--border-color: rgba(255, 255, 255, 0.1);

	--font-primary: 'Poppins', sans-serif;
	--font-secondary: 'Roboto', sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-secondary);
	background-color: var(--primary-bg-color);
	color: var(--text-color);
	font-size: 16px;
	line-height: 1.6;
	overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-primary);
	color: var(--heading-color);
	line-height: 1.2;
}

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

ul {
	list-style: none;
}

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

button {
	font-family: inherit;
	cursor: pointer;
	border: none;
	background: none;
	color: inherit;
}

.container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

/* Header */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
	background-color: rgba(13, 12, 34, 0.8);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border-color);
	padding: 15px 0;
}

.header__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-primary);
	font-weight: 600;
	font-size: 24px;
	color: var(--heading-color);
}

.logo__icon {
	transition: transform 0.3s ease;
}

.logo:hover .logo__icon {
	transform: rotate(180deg);
}

.nav__list {
	display: flex;
	gap: 30px;
}

.nav__link {
	font-family: var(--font-primary);
	font-weight: 500;
	position: relative;
	padding-bottom: 5px;
}

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

.nav__link:hover {
	color: var(--heading-color);
}

.nav__link:hover::after {
	width: 100%;
}

.header__burger {
	display: none;
	color: var(--heading-color);
}

/* Footer */
.footer {
	background-color: var(--secondary-bg-color);
	padding: 60px 0 20px;
	border-top: 1px solid var(--border-color);
}

.footer__container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 40px;
	margin-bottom: 40px;
}

.footer__column--about {
	flex-basis: 30%;
}

.footer__logo {
	margin-bottom: 15px;
}

.footer__description {
	font-size: 14px;
}

.footer__title {
	font-size: 18px;
	margin-bottom: 15px;
	font-weight: 600;
}

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer__link:hover {
	color: var(--accent-color);
}

.footer__list--contacts {
	gap: 15px;
}

.footer__item--contact {
	display: flex;
	align-items: center;
	gap: 10px;
}

.footer__icon {
	color: var(--accent-color);
	width: 20px;
	height: 20px;
}

.footer__bottom {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid var(--border-color);
}

.footer__copyright {
	font-size: 14px;
}

/* Mobile Styles */
@media (max-width: 768px) {
	.nav {
		padding-top: 71px;
		position: fixed;
		top: 0;
		left: -100%;
		width: 80%;
		max-width: 300px;
		height: 100vh;
		background-color: var(--secondary-bg-color);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		transition: left 0.4s ease-in-out;
		box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
	}

	.nav.nav--active {
		left: 0;
	}

	.nav__list {
		flex-direction: column;
		text-align: center;
		gap: 40px;
	}

	.nav__link {
		font-size: 20px;
	}

	.header__burger {
		display: block;
		z-index: 101; /* Поверх навигации */
	}
}

/* Button Styles */
.btn {
	display: inline-block;
	padding: 12px 30px;
	background-color: var(--accent-color);
	color: var(--heading-color);
	font-family: var(--font-primary);
	font-weight: 600;
	border-radius: 50px;
	text-align: center;
	transition: background-color 0.3s ease, transform 0.3s ease;
	box-shadow: 0 4px 15px rgba(77, 91, 206, 0.4);
}

.btn:hover {
	background-color: var(--accent-hover-color);
	transform: translateY(-3px);
}

/* Hero Section */
.hero {
	position: relative;
	height: 100vh;
	min-height: 600px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
	padding-top: 80px; /* Header offset */
}

.hero__canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.hero__container {
	position: relative;
	z-index: 2;
}

.hero__content {
	max-width: 800px;
	margin: 0 auto;
}

.hero__title {
	font-size: 3.5rem;
	font-weight: 700;
	margin-bottom: 20px;
	line-height: 1.1;
	text-shadow: 0 0 20px rgba(13, 12, 34, 0.5);
}

.hero__subtitle {
	font-size: 1.25rem;
	margin-bottom: 40px;
	color: var(--heading-color);
	opacity: 0.9;
	font-weight: 400;
	text-shadow: 0 0 10px rgba(13, 12, 34, 0.5);
}

/* Responsive adjustments for Hero section */
@media (max-width: 768px) {
	.hero__title {
		font-size: 2.5rem;
	}

	.hero__subtitle {
		font-size: 1.1rem;
	}
}

/* General Section Styles */
.section {
	padding: 80px 0;
}

.section__header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 50px;
}

.section__title {
	font-size: 2.5rem;
	margin-bottom: 15px;
}

.section__subtitle {
	font-size: 1.1rem;
	color: var(--text-color);
}

/* Practices Section */
.practices {
	background-color: var(--primary-bg-color);
}

.practices__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
}

.practice-card {
	background-color: var(--secondary-bg-color);
	padding: 30px;
	border-radius: 12px;
	border: 1px solid var(--border-color);
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.practice-card__icon-wrapper {
	width: 70px;
	height: 70px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background-color: rgba(77, 91, 206, 0.1);
	display: flex;
	justify-content: center;
	align-items: center;
}

.practice-card__icon {
	color: var(--accent-color);
	width: 32px;
	height: 32px;
}

.practice-card__title {
	font-size: 1.5rem;
	margin-bottom: 10px;
	color: var(--heading-color);
}

.practice-card__description {
	font-size: 1rem;
	line-height: 1.6;
}

@media (max-width: 768px) {
	.section {
		padding: 60px 0;
	}

	.section__title {
		font-size: 2rem;
	}
}

/* Tools Section */
.tools {
	background-color: var(--secondary-bg-color);
	overflow: hidden; /* To contain decorative elements */
}

.tools__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 60px;
}

.tools__visual {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}

.tools__image-wrapper {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	transform: rotate(3deg);
	border: 2px solid var(--border-color);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.tools__image {
	max-width: 100%;
}

.tools__image-wrapper::before {
	content: '';
	position: absolute;
	top: -20px;
	left: -20px;
	right: -20px;
	bottom: -20px;
	background: linear-gradient(
		45deg,
		var(--accent-color),
		var(--primary-bg-color)
	);
	z-index: -1;
	filter: blur(30px);
	opacity: 0.3;
}

/* Accordion */
.accordion__item {
	border-bottom: 1px solid var(--border-color);
}

.accordion__item:first-child {
	border-top: 1px solid var(--border-color);
}

.accordion__header {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 0;
	font-size: 1.25rem;
	font-family: var(--font-primary);
	font-weight: 500;
	color: var(--heading-color);
}

.accordion__icon {
	transition: transform 0.4s ease;
	color: var(--accent-color);
}

.accordion__content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-out;
}

.accordion__content p {
	padding-bottom: 20px;
	line-height: 1.7;
}

.accordion__item.accordion__item--active .accordion__header {
	color: var(--accent-color);
}

.accordion__item.accordion__item--active .accordion__icon {
	transform: rotate(45deg);
}

/* Responsive for Tools Section */
@media (max-width: 992px) {
	.tools__grid {
		grid-template-columns: 1fr;
		gap: 50px;
	}
	.tools__visual {
		grid-row: 1; /* Image appears on top on mobile */
		margin-bottom: 20px;
	}
	.tools__image-wrapper {
		transform: rotate(0);
	}
	.section__header {
		text-align: center !important; /* Override inline style */
	}
}

/* Cases Section */
.cases {
	background-color: var(--primary-bg-color);
}

.cases__slider {
	width: 100%;
	padding: 20px 0 50px; /* Extra padding for pagination */
}

.case-card {
	background-color: var(--secondary-bg-color);
	border-radius: 15px;
	overflow: hidden;
	border: 1px solid var(--border-color);
	display: flex;
	flex-direction: column;
	height: 100%;
}

.case-card__image {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.case-card__content {
	padding: 25px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.case-card__quote {
	font-size: 1.4rem;
	font-weight: 600;
	color: var(--heading-color);
	margin-bottom: 15px;
	flex-grow: 1;
}

.case-card__description {
	margin-bottom: 20px;
}

.case-card__author {
	font-style: normal;
	font-weight: 500;
	color: var(--accent-color);
}

/* Swiper Customization */
.swiper-pagination-bullet {
	background-color: var(--text-color);
	width: 10px;
	height: 10px;
	opacity: 0.7;
}

.swiper-pagination-bullet-active {
	background-color: var(--accent-color);
	opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
	color: var(--accent-color);
	width: 50px !important;
	height: 50px !important;
	background-color: var(--secondary-bg-color);
	border-radius: 50%;
	border: 1px solid var(--border-color);
	transition: background-color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
	background-color: var(--accent-hover-color);
	color: var(--heading-color);
}

.swiper-button-next::after,
.swiper-button-prev::after {
	font-size: 20px !important;
	font-weight: bold;
}

@media (max-width: 768px) {
	.swiper-button-next,
	.swiper-button-prev {
		display: none !important;
	}
}

/* CTA Section (Future) */
.cta {
	position: relative;
	padding: 120px 0;
	background-image: url('../img/image2.webp');
	background-size: cover;
	background-position: center center;
	background-attachment: fixed; /* This creates the parallax effect */
	text-align: center;
	color: #fff;
}

.cta__overlay {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(
		13,
		12,
		34,
		0.75
	); /* Dark overlay for text readability */
	z-index: 1;
}

.cta__container {
	position: relative;
	z-index: 2;
	max-width: 800px;
}

.cta__title {
	font-size: 2.8rem;
	font-weight: 700;
	margin-bottom: 20px;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cta__text {
	font-size: 1.2rem;
	margin-bottom: 40px;
	color: var(--heading-color);
	opacity: 0.9;
}

.btn--large {
	padding: 15px 40px;
	font-size: 1.1rem;
}

@media (max-width: 768px) {
	.cta {
		background-attachment: scroll; /* Parallax is often disabled on mobile for performance */
		padding: 80px 0;
	}

	.cta__title {
		font-size: 2.2rem;
	}
}

/* Contact Section */
.contact {
	background-color: var(--secondary-bg-color);
	padding: 80px 0;
}

.contact__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
	margin-top: 50px;
	align-items: flex-start;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

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

.form-label {
	margin-bottom: 8px;
	font-weight: 500;
	color: var(--heading-color);
}

.form-input {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid var(--border-color);
	background-color: var(--primary-bg-color);
	border-radius: 8px;
	color: var(--text-color);
	font-size: 1rem;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
	outline: none;
	border-color: var(--accent-color);
	box-shadow: 0 0 0 3px rgba(77, 91, 206, 0.3);
}

.form-group--checkbox {
	flex-direction: row;
	align-items: center;
	gap: 10px;
}

.form-checkbox {
	width: 18px;
	height: 18px;
	accent-color: var(--accent-color);
}

.form-checkbox-label {
	font-size: 14px;
}
.form-checkbox-label a {
	color: var(--accent-color);
	text-decoration: underline;
}

.contact-form__btn {
	margin-top: 10px;
	width: 100%;
}

.contact__form-wrapper {
	position: relative;
}

.contact-form__success-message {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--secondary-bg-color);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease, visibility 0.5s ease;
}

.contact-form__success-message.is-visible {
	opacity: 1;
	visibility: visible;
}

.contact-form__success-message i {
	color: #28a745; /* Success green */
	width: 60px;
	height: 60px;
	margin-bottom: 20px;
}

.contact-form__success-message h3 {
	font-size: 1.8rem;
	color: var(--heading-color);
}

.contact__info {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.contact-info-card {
	background-color: var(--primary-bg-color);
	padding: 30px;
	border-radius: 12px;
	border: 1px solid var(--border-color);
}

.contact-info-card__icon {
	width: 40px;
	height: 40px;
	color: var(--accent-color);
	margin-bottom: 15px;
}

.contact-info-card__title {
	font-size: 1.5rem;
	margin-bottom: 10px;
}

@media (max-width: 992px) {
	.contact__grid {
		grid-template-columns: 1fr;
	}
}

/* Cookie Pop-up */
.cookie-popup {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	max-width: 95%;
	width: 600px;
	background-color: var(--secondary-bg-color);
	padding: 20px;
	border-radius: 12px;
	border: 1px solid var(--border-color);
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	z-index: 200;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
}

.cookie-popup.is-visible {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
	visibility: visible;
}

.cookie-popup__text {
	font-size: 14px;
	line-height: 1.5;
}

.cookie-popup__text a {
	color: var(--accent-color);
	text-decoration: underline;
}

.btn--small {
	padding: 8px 20px;
	font-size: 14px;
	flex-shrink: 0; /* Prevent button from shrinking */
}

@media (max-width: 768px) {
	.cookie-popup {
		flex-direction: column;
		bottom: 10px;
		width: calc(100% - 20px);
	}

	.cookie-popup__text {
		text-align: center;
	}
}

/*--------------------------------------------------------------
# Policy & Text Pages (.pages)
--------------------------------------------------------------*/
.pages {
	padding: 120px 0 80px; /* 120px top padding to offset the fixed header */
	background-color: var(--primary-bg-color);
}

.pages .container {
	max-width: 800px; /* Optimal width for readability of long texts */
}

.pages h1,
.pages h2 {
	font-family: var(--font-primary);
	color: var(--heading-color);
	margin-bottom: 20px;
	line-height: 1.3;
}

.pages h1 {
	font-size: 1.5rem;
	padding-bottom: 15px;
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 30px;
}

.pages h2 {
	font-size: 1.5rem;
	margin-top: 40px;
}

.pages p {
	font-family: var(--font-secondary);
	font-size: 1.1rem;
	line-height: 1.8;
	color: var(--text-color);
	margin-bottom: 20px;
}

.pages a {
	color: var(--accent-color);
	text-decoration: underline;
	transition: color 0.3s ease;
}

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

.pages ul,
.pages ol {
	padding-left: 25px;
	margin-bottom: 20px;
}

.pages ul li,
.pages ol li {
	font-size: 1.1rem;
	line-height: 1.8;
	color: var(--text-color);
	margin-bottom: 10px;
}

.pages ul {
	list-style-type: disc;
}

.pages ol {
	list-style-type: decimal;
}

.pages strong {
	font-weight: 600;
	color: var(--heading-color);
}
