/* GLOBAL STYLES */
:root {
	--background-color: #ffffff;
	--text-color: #111827;
	--primary-color: #3b82f6;
	--primary-hover-color: #2563eb;
	--secondary-color: #6b7280;
	--border-color: #e5e7eb;
	--header-height: 70px;
	--font-family-base: 'Manrope', sans-serif;
	--font-family-mono: 'Roboto Mono', monospace;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-family-base);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-color);
	background-color: var(--background-color);
}

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

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

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

ul {
	list-style: none;
}

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

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

/* HEADER */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-height);
	background-color: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border-color);
	z-index: 1000;
	display: flex;
	align-items: center;
}

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

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text-color);
}

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

.logo__img {
	width: 32px;
	height: 32px;
}

.nav__list {
	display: flex;
	align-items: center;
	gap: 30px;
}

.nav__link {
	font-size: 1rem;
	color: var(--secondary-color);
	font-weight: 400;
	position: relative;
	padding: 5px 0;
}

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

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

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

.nav__link--button {
	background-color: var(--primary-color);
	color: white;
	padding: 10px 20px;
	border-radius: 8px;
	transition: background-color 0.3s ease;
}

.nav__link--button:hover {
	background-color: var(--primary-hover-color);
	color: white;
}

.nav__link--button::after {
	display: none;
}

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

/* FOOTER */
.footer {
	background-color: #f1f5f9;
	padding-top: 60px;
	border-top: 1px solid var(--border-color);
}

.footer__container {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.5fr;
	gap: 40px;
	padding-bottom: 40px;
}

.footer__column--about .logo {
	margin-bottom: 15px;
}

.footer__description {
	color: var(--secondary-color);
	font-size: 0.9rem;
}

.footer__title {
	font-size: 1.1rem;
	margin-bottom: 20px;
	font-weight: 700;
}

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

.footer__link {
	color: var(--secondary-color);
	font-size: 0.9rem;
}
.footer__link:hover {
	color: var(--primary-color);
	text-decoration: underline;
}

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

.footer__icon {
	width: 16px;
	height: 16px;
	color: var(--secondary-color);
}

.footer__bottom {
	border-top: 1px solid var(--border-color);
	padding: 20px 0;
	text-align: center;
	font-size: 0.9rem;
	color: var(--secondary-color);
}

/* MOBILE ADAPTATION */
@media (max-width: 768px) {
	.nav {
		position: fixed;
		top: var(--header-height);
		left: -100%;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: white;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		transition: left 0.4s ease-in-out;
	}

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

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

	.nav__link {
		font-size: 1.5rem;
	}

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

	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.footer__column--contacts .footer__item {
		justify-content: center;
	}

	.logo {
		justify-content: center;
	}
}

/* SHARED COMPONENTS */
.button {
	display: inline-block;
	background-color: var(--primary-color);
	color: white;
	padding: 14px 32px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 1rem;
	text-align: center;
	transition: background-color 0.3s ease, transform 0.3s ease;
	box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.button:hover {
	background-color: var(--primary-hover-color);
	color: white;
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* HERO SECTION */
.hero {
	display: flex;
	align-items: center;
	min-height: 100vh;
	padding-top: var(--header-height); /* Offset for fixed header */
}

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

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

.hero__title--highlight {
	color: var(--primary-color);
	font-family: var(--font-family-mono);
}

.hero__subtitle {
	font-size: 1.1rem;
	color: var(--secondary-color);
	margin-bottom: 40px;
	max-width: 500px;
}

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

.hero__image {
	width: 100%;
	max-width: 500px;
	border-radius: 16px;
}

/* MOBILE ADAPTATION for HERO */
@media (max-width: 992px) {
	.hero__title {
		font-size: 2rem;
	}
}

@media (max-width: 768px) {
	.hero {
		min-height: auto;
		padding: 60px 0;
		text-align: center;
	}

	.hero__container {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.hero__content {
		order: 2; /* Text goes below image on mobile */
	}

	.hero__image-wrapper {
		order: 1;
	}

	.hero__title {
		font-size: 1.5rem;
	}

	.hero__subtitle {
		margin-left: auto;
		margin-right: auto;
	}
}

/* SHARED SECTION STYLES */
.section-header {
	text-align: center;
	margin-bottom: 50px;
}

.section-header__title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 10px;
}

.section-header__subtitle {
	font-size: 1.1rem;
	color: var(--secondary-color);
	max-width: 600px;
	margin: 0 auto;
}

/* PRACTICES SECTION */
.practices {
	padding: 80px 0;
	background-color: #f8fafc; /* Slightly different from white for contrast */
}

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

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

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

.practice-card__icon-wrapper {
	width: 60px;
	height: 60px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background-color: #e0e7ff;
	display: flex;
	justify-content: center;
	align-items: center;
}

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

.practice-card__title {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 10px;
}

.practice-card__description {
	font-size: 0.95rem;
	color: var(--secondary-color);
	line-height: 1.6;
}

/* MOBILE ADAPTATION for PRACTICES */
@media (max-width: 992px) {
	.practices__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

	.section-header__title {
		font-size: 2rem;
	}
}

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

/* TOOLS SECTION */
.tools {
	padding: 80px 0;
}

.tools__container {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 40px;
	background-color: var(--background-color);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 40px;
}

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

.tools__tab {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 15px;
	align-items: center;
	padding: 15px;
	border-radius: 10px;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.tools__tab:hover {
	background-color: #f8fafc;
}

.tools__tab.is-active {
	background-color: #eef2ff;
	border-color: #c7d2fe;
}

.tools__tab-icon {
	grid-row: 1 / 3;
	width: 28px;
	height: 28px;
	color: var(--primary-color);
}

.tools__tab-title {
	font-weight: 700;
	color: var(--text-color);
}

.tools__tab-subtitle {
	font-size: 0.9rem;
	color: var(--secondary-color);
}

.tools__content {
	position: relative;
}

.tools__pane {
	display: none; /* Hidden by default */
	flex-direction: column;
	align-items: flex-start;
	animation: fadeIn 0.5s ease;
}

.tools__pane.is-active {
	display: flex; /* Shown when active */
}

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

.tools__pane-image {
	width: 100%;
	height: 250px;
	object-fit: cover;
	border-radius: 12px;
	margin-bottom: 20px;
}

.tools__pane-title {
	font-size: 1.75rem;
	margin-bottom: 10px;
}

.tools__pane-description {
	color: var(--secondary-color);
	margin-bottom: 30px;
	line-height: 1.7;
}

/* MOBILE ADAPTATION for TOOLS */
@media (max-width: 992px) {
	.tools__container {
		grid-template-columns: 1fr;
	}
}

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

	.tools__container {
		padding: 20px;
	}
}

/* CASES SECTION */
.cases {
	padding: 80px 0;
	background-color: #f8fafc;
}

.cases__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.case-card {
	background-color: var(--background-color);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.case-card__image {
	height: 200px;
	overflow: hidden;
}

.case-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.case-card:hover .case-card__image img {
	transform: scale(1.05);
}

.case-card__content {
	padding: 30px;
}

.case-card__title {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 15px;
	color: var(--text-color);
}

.case-card__description {
	color: var(--secondary-color);
	line-height: 1.6;
	margin-bottom: 20px;
}

.case-card__stats {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
}

.case-card__stat {
	background-color: #e0e7ff;
	color: var(--primary-color);
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 600;
}

/* MOBILE ADAPTATION for CASES */
@media (max-width: 992px) {
	.cases__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

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

/* FAQ SECTION */
.faq {
	padding: 80px 0;
}

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

.faq__item {
	border-bottom: 1px solid var(--border-color);
}

.faq__item:last-child {
	border-bottom: none;
}

.faq__question {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 25px 0;
	text-align: left;
	background: none;
	border: none;
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--text-color);
	cursor: pointer;
	transition: color 0.3s ease;
}

.faq__question:hover {
	color: var(--primary-color);
}

.faq__icon {
	width: 24px;
	height: 24px;
	color: var(--primary-color);
	transition: transform 0.3s ease;
}

.faq__item.is-active .faq__icon {
	transform: rotate(180deg);
}

.faq__answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq__item.is-active .faq__answer {
	max-height: 200px;
	padding-bottom: 25px;
}

.faq__answer p {
	color: var(--secondary-color);
	line-height: 1.7;
	margin: 0;
}

/* MOBILE ADAPTATION for FAQ */
@media (max-width: 768px) {
	.faq {
		padding: 60px 0;
	}

	.faq__question {
		font-size: 1rem;
		padding: 20px 0;
	}
}

/* CONTACT SECTION */
.contact {
	padding: 80px 0;
	background-color: #f8fafc;
}

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

.contact__form-wrapper {
	background-color: var(--background-color);
	padding: 40px;
	border-radius: 16px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact__form {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.form__group {
	display: flex;
	flex-direction: column;
}

.form__label {
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--text-color);
}

.form__input {
	padding: 12px 16px;
	border: 2px solid var(--border-color);
	border-radius: 8px;
	font-size: 1rem;
	transition: border-color 0.3s ease;
	font-family: inherit;
}

.form__input:focus {
	outline: none;
	border-color: var(--primary-color);
}

.form__checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 0.9rem;
	line-height: 1.5;
}

.form__checkbox {
	margin-top: 2px;
	flex-shrink: 0;
}

.form__checkbox-text {
	color: var(--secondary-color);
}

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

.contact__success {
	text-align: center;
	padding: 40px 20px;
}

.success__icon {
	width: 60px;
	height: 60px;
	margin: 0 auto 20px;
	color: #10b981;
}

.success__title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 15px;
	color: var(--text-color);
}

.success__message {
	color: var(--secondary-color);
	line-height: 1.6;
}

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

.contact__item {
	display: flex;
	align-items: flex-start;
	gap: 15px;
}

.contact__icon {
	width: 50px;
	height: 50px;
	background-color: #e0e7ff;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.contact__icon i {
	width: 24px;
	height: 24px;
	color: var(--primary-color);
}

.contact__details {
	flex: 1;
}

.contact__title {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 5px;
	color: var(--text-color);
}

.contact__link {
	color: var(--primary-color);
	font-weight: 500;
}

.contact__text {
	color: var(--secondary-color);
	line-height: 1.5;
}

/* MOBILE ADAPTATION for CONTACT */
@media (max-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

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

	.contact__form-wrapper {
		padding: 30px 20px;
	}
}

/* COOKIE POPUP */
.cookie-popup {
	position: fixed;
	bottom: 20px;
	left: 20px;
	right: 20px;
	background-color: var(--background-color);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	z-index: 10000;
	transform: translateY(100px);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.cookie-popup__content {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 20px;
}

.cookie-popup__text {
	flex: 1;
}

.cookie-popup__text p {
	margin: 0;
	color: var(--secondary-color);
	font-size: 0.9rem;
	line-height: 1.5;
}

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

.cookie-popup__button {
	background-color: var(--primary-color);
	color: white;
	padding: 10px 20px;
	border-radius: 8px;
	font-weight: 600;
	transition: background-color 0.3s ease;
	flex-shrink: 0;
}

.cookie-popup__button:hover {
	background-color: var(--primary-hover-color);
}

/* MOBILE ADAPTATION for COOKIE POPUP */
@media (max-width: 768px) {
	.cookie-popup__content {
		flex-direction: column;
		text-align: center;
		gap: 15px;
	}

	.cookie-popup__button {
		width: 100%;
	}
}

/* POLICY PAGES STYLES */
.pages {
	padding: 120px 0 80px; /* Extra top padding for fixed header */
	min-height: 100vh;
}

.pages .container {
	max-width: 800px;
}

.pages h1 {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 30px;
	color: var(--text-color);
	text-align: center;
}

.pages h2 {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 40px 0 20px;
	color: var(--text-color);
	border-bottom: 2px solid var(--primary-color);
	padding-bottom: 10px;
}

.pages p {
	font-size: 1rem;
	line-height: 1.7;
	margin-bottom: 20px;
	color: var(--secondary-color);
}

.pages ul {
	margin: 20px 0;
	padding-left: 0;
}

.pages li {
	margin-bottom: 10px;
	padding-left: 20px;
	position: relative;
	color: var(--secondary-color);
	line-height: 1.6;
}

.pages li::before {
	content: '•';
	color: var(--primary-color);
	font-weight: bold;
	position: absolute;
	left: 0;
}

.pages li strong {
	color: var(--text-color);
	font-weight: 700;
}

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

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

/* MOBILE ADAPTATION for POLICY PAGES */
@media (max-width: 768px) {
	.pages {
		padding: 100px 0 60px;
	}


	.pages .container {
		padding: 0 20px;
	}
}
