/* ==================== GOOGLE FONTS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Manrope:wght@600;700&display=swap');

/* ==================== CSS VARIABLES ==================== */
:root {
	/* Colors */
	--bg-color: #ffffff;
	--text-color: #111827;
	--primary-color: #4338ca;
	--primary-color-hover: #3730a3;
	--secondary-bg-color: #f3f4f6;
	--subtle-text-color: #6b7280;
	--border-color: #e5e7eb;
	--footer-bg-color: #111827;
	--footer-text-color: #d1d5db;

	/* Typography */
	--font-body: 'Inter', sans-serif;
	--font-heading: 'Manrope', sans-serif;

	/* Other */
	--header-height: 4.5rem;
	--container-width: 1120px;
	--border-radius: 0.5rem;
	--transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==================== BASE ==================== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

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

ul {
	list-style: none;
}

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

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

.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

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

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

.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--primary-color);
	transition: var(--transition);
}

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

.header__toggle {
	display: none; /* Hidden on desktop */
	font-size: 1.5rem;
	cursor: pointer;
	background: none;
	border: none;
	color: var(--text-color);
}

.header__list {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.header__link {
	font-weight: 500;
	transition: var(--transition);
}

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

.header__link--button {
	background-color: var(--primary-color);
	color: var(--bg-color);
	padding: 0.6rem 1.2rem;
	border-radius: var(--border-radius);
}

.header__link--button:hover {
	background-color: var(--primary-color-hover);
	color: var(--bg-color);
}

/* ==================== FOOTER ==================== */
.footer {
	background-color: var(--footer-bg-color);
	color: var(--footer-text-color);
	padding: 4rem 0 2rem;
}

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

.footer__column .logo {
	color: var(--bg-color);
	margin-bottom: 1rem;
}

.footer__copyright {
	font-size: 0.9rem;
	color: var(--subtle-text-color);
}

.footer__title {
	font-family: var(--font-heading);
	font-size: 1.1rem;
	margin-bottom: 1rem;
	color: var(--bg-color);
}

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.footer__list--contact .footer__item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

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

.footer__link {
	transition: var(--transition);
}

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

/* ==================== RESPONSIVE (Mobile Menu) ==================== */
@media screen and (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: var(--header-height);
		right: -100%;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--bg-color);
		padding: 2rem;
		transition: var(--transition);
		overflow-y: auto;
	}

	.header__nav--show {
		right: 0;
	}

	.header__list {
		flex-direction: column;
		gap: 2.5rem;
		align-items: flex-start;
	}

	.header__link {
		font-size: 1.2rem;
	}

	.header__toggle {
		display: block;
	}

	.container {
		padding-left: 1rem;
		padding-right: 1rem;
	}
}

/* ==================== HERO ==================== */
.hero {
	padding-top: var(--header-height);
	background-color: var(--bg-color);
	overflow: hidden; /* Важно для анимации */
}

.hero__container {
	min-height: calc(100vh - var(--header-height));
	display: grid;
	align-items: center;
	grid-template-columns: 1fr;
	gap: 2rem;
}

.hero__content {
	text-align: center;
}

.hero__title {
	font-family: var(--font-heading);
	font-size: clamp(1.5rem, 5vw, 3rem); /* Адаптивный размер шрифта */
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1rem;
}

.hero__description {
	font-size: 1.125rem;
	color: var(--subtle-text-color);
	max-width: 600px;
	margin: 0 auto 2.5rem;
}

.hero__button {
	display: inline-block;
	background-color: var(--primary-color);
	color: var(--bg-color);
	padding: 1rem 2rem;
	border-radius: var(--border-radius);
	font-weight: 500;
	transition: var(--transition);
}

.hero__button:hover {
	background-color: var(--primary-color-hover);
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero__animation-wrapper {
	display: none; /* Скрываем анимацию на мобильных */
	position: relative;
	height: 100%;
	min-height: 400px;
}

.hero__animation {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.hero__shape {
	position: absolute;
	border-radius: 50%;
	background: radial-gradient(
		circle,
		hsla(244, 70%, 58%, 0.7) 0%,
		hsla(244, 70%, 58%, 0) 70%
	);
}

.hero__shape--1 {
	width: 250px;
	height: 250px;
	top: 10%;
	left: 15%;
}

.hero__shape--2 {
	width: 150px;
	height: 150px;
	top: 25%;
	left: 60%;
}

.hero__shape--3 {
	width: 100px;
	height: 100px;
	top: 65%;
	left: 10%;
}

.hero__shape--4 {
	width: 200px;
	height: 200px;
	top: 70%;
	left: 70%;
}

/* ==================== HERO RESPONSIVE ==================== */
@media screen and (min-width: 768px) {
	.hero__content {
		text-align: left;
		margin: 0;
	}

	.hero__description {
		margin: 0 0 2.5rem 0;
	}
}

@media screen and (min-width: 992px) {
	.hero__container {
		grid-template-columns: 0.8fr 1fr;
		gap: 4rem;
	}

	.hero__animation-wrapper {
		display: block; /* Показываем анимацию на десктопе */
	}
}

/* ==================== REUSABLE SECTION STYLES ==================== */
.section {
	padding: 5rem 0;
}

.section__container {
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

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

.section__title {
	font-family: var(--font-heading);
	font-size: clamp(2rem, 4vw, 2.5rem);
	margin-bottom: 0.75rem;
}

.section__subtitle {
	font-size: 1.125rem;
	color: var(--subtle-text-color);
	line-height: 1.6;
}

/* ==================== DIRECTIONS SECTION ==================== */
.directions {
	background-color: var(--secondary-bg-color);
}

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

.directions-card {
	background-color: var(--bg-color);
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	padding: 2rem;
	text-align: center;
	transition: var(--transition);
}

.directions-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
	border-color: var(--primary-color);
}

.directions-card__icon-wrapper {
	margin: 0 auto 1.5rem;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background-color: var(--secondary-bg-color);
	display: flex;
	align-items: center;
	justify-content: center;
}

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

.directions-card__title {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.directions-card__description {
	color: var(--subtle-text-color);
	font-size: 0.95rem;
}

/* ==================== FORMATS ==================== */
.formats {
	padding: 5rem 0;
	background-color: var(--bg-color);
}

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

.formats__image-wrapper {
	text-align: center;
}

.formats__image {
	max-width: 100%;
	border-radius: var(--border-radius);
}

.formats__header {
	margin-bottom: 2rem;
}

.formats__title {
	font-family: var(--font-heading);
	font-size: clamp(2rem, 4vw, 2.5rem);
	font-weight: 700;
	margin-bottom: 0.75rem;
}

.formats__subtitle {
	font-size: 1.125rem;
	color: var(--subtle-text-color);
	line-height: 1.6;
}

.formats__accordion-item {
	border-bottom: 1px solid var(--border-color);
	padding: 1.5rem 0;
}

.formats__accordion-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
}

.formats__accordion-title {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 600;
}

.formats__accordion-icon {
	transition: var(--transition);
}

.formats__accordion-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
}

.formats__accordion-content p {
	padding-top: 1rem;
	color: var(--subtle-text-color);
}

.formats__feature-list {
	list-style-type: disc;
	padding-left: 1.5rem;
	margin-top: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	color: var(--subtle-text-color);
}

/* Accordion Open State */
.formats__accordion-item--open .formats__accordion-content {
	max-height: 300px; /* Adjust if content is taller */
	transition: max-height 0.4s ease-in;
}

.formats__accordion-item--open .formats__accordion-icon {
	transform: rotate(180deg);
}

/* Formats Responsive */
@media screen and (min-width: 992px) {
	.formats__container {
		grid-template-columns: 1fr 1fr;
	}
}

/* ==================== PROCESS ==================== */
.process {
	padding: 5rem 0;
	background-color: var(--secondary-bg-color);
}

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

.process__title {
	font-family: var(--font-heading);
	font-size: clamp(2rem, 4vw, 2.5rem);
	font-weight: 700;
	margin-bottom: 0.75rem;
}

.process__subtitle {
	font-size: 1.125rem;
	color: var(--subtle-text-color);
	line-height: 1.6;
}

.process__steps {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	position: relative;
}

.process__step {
	background-color: var(--bg-color);
	padding: 2rem;
	border-radius: var(--border-radius);
	text-align: center;
	border: 1px solid var(--border-color);
}

.process__step-header {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.process__step-number {
	font-family: var(--font-heading);
	font-size: 3rem;
	font-weight: 700;
	color: var(--border-color);
}

.process__step-icon {
	width: 32px;
	height: 32px;
	color: var(--primary-color);
}

.process__step-title {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.process__step-description {
	color: var(--subtle-text-color);
	line-height: 1.6;
}

/* Process Responsive */
@media screen and (min-width: 768px) {
	.process__steps {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.5rem;
	}

	.process__step {
		text-align: left;
	}

	.process__step-header {
		justify-content: flex-start;
	}

	/* Connecting line */
	.process__steps::before {
		content: '';
		position: absolute;
		top: 54px; /* Vertically align with icons */
		left: 5%;
		right: 5%;
		height: 2px;
		background-image: linear-gradient(
			to right,
			var(--border-color) 50%,
			transparent 50%
		);
		background-size: 16px 2px;
		background-repeat: repeat-x;
		z-index: 0;
	}

	.process__step {
		position: relative;
		z-index: 1;
	}
}

/* ==================== ABOUT ==================== */
.about {
	padding: 5rem 0;
	background-color: var(--bg-color);
}

.about__mission {
	text-align: center;
	max-width: 800px;
	margin: 0 auto 4rem;
}

.about__title {
	font-family: var(--font-heading);
	font-size: clamp(2rem, 4vw, 2.5rem);
	font-weight: 700;
	margin-bottom: 0.75rem;
}

.about__description {
	font-size: 1.125rem;
	color: var(--subtle-text-color);
	line-height: 1.7;
}

.about__team {
	text-align: center;
}

.about__team-title {
	font-family: var(--font-heading);
	font-size: 1.75rem;
	margin-bottom: 3rem;
}

.about__team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	max-width: 900px;
	margin: 0 auto;
}

.about__team-card {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.about__card-img {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 1.5rem;
	border: 3px solid var(--border-color);
}

.about__card-name {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	margin-bottom: 0.25rem;
}

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

/* ==================== CONTACT ==================== */
.contact {
	padding: 5rem 0;
	background-color: var(--secondary-bg-color);
}

.contact__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
}

.contact__title {
	font-family: var(--font-heading);
	font-size: clamp(2rem, 4vw, 2.5rem);
	font-weight: 700;
	margin-bottom: 0.75rem;
}

.contact__description {
	font-size: 1.125rem;
	color: var(--subtle-text-color);
	line-height: 1.7;
	max-width: 500px;
}

.contact__form-group {
	margin-bottom: 1.5rem;
}

.contact__label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.contact__input {
	width: 100%;
	padding: 0.8rem 1rem;
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	font-family: var(--font-body);
	font-size: 1rem;
	transition: var(--transition);
}

.contact__input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px hsla(244, 70%, 58%, 0.2);
}

.contact__checkbox-group {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.contact__checkbox-input {
	flex-shrink: 0;
	margin-top: 5px;
	width: 1.15em;
	height: 1.15em;
}

.contact__checkbox-label {
	font-size: 0.9rem;
	color: var(--subtle-text-color);
	line-height: 1.5;
}

.contact__checkbox-label a {
	color: var(--primary-color);
	text-decoration: underline;
}

.contact__button {
	width: 100%;
	padding: 1rem;
	background-color: var(--primary-color);
	color: var(--bg-color);
	border: none;
	border-radius: var(--border-radius);
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: var(--transition);
}

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

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

.contact__success-icon {
	width: 48px;
	height: 48px;
	color: var(--primary-color);
	margin-bottom: 1rem;
}

.contact__success-title {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

/* Contact Responsive */
@media screen and (min-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr 1.2fr;
		align-items: center;
	}
}

/* ==================== COOKIE POP-UP ==================== */
.cookie {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 0;
	width: 100%;
	background-color: var(--footer-bg-color);
	color: var(--footer-text-color);
	padding: 1.5rem 0;
	z-index: 200;
	transition: bottom 0.5s ease-in-out;
}

.cookie--show {
	bottom: 0;
}

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

.cookie__text {
	font-size: 0.9rem;
}

.cookie__text a {
	color: var(--bg-color);
	text-decoration: underline;
}

.cookie__button {
	background-color: var(--primary-color);
	color: var(--bg-color);
	padding: 0.6rem 1.2rem;
	border-radius: var(--border-radius);
	border: none;
	cursor: pointer;
	flex-shrink: 0;
	transition: var(--transition);
}

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

/* Cookie Responsive */
@media screen and (max-width: 768px) {
	.cookie__container {
		flex-direction: column;
		text-align: center;
	}
}

/* ==================== GENERIC PAGES (TERMS, PRIVACY, ETC.) ==================== */
.pages {
	padding: calc(var(--header-height) + 4rem) 0 5rem;
	background-color: var(--bg-color);
}

.pages .container {
	max-width: 800px; /* Limit line length for readability */
}

.pages h1,
.pages h2 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 1.5rem;
}

.pages h1 {
	font-size: clamp(2.25rem, 5vw, 3rem);
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 1rem;
}

.pages h2 {
	font-size: clamp(1.5rem, 4vw, 1.75rem);
	margin-top: 2.5rem;
}

.pages p {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--subtle-text-color);
	margin-bottom: 1.5rem;
}

.pages ul {
	list-style-position: outside;
	list-style-type: disc;
	padding-left: 1.5rem;
	margin-bottom: 1.5rem;
	color: var(--subtle-text-color);
}

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

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

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

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