/* Этап 0: Глобальные стили и налаштування */

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

:root {
	--font-primary: 'Poppins', sans-serif;
	--font-secondary: 'Roboto', sans-serif;
	--color-text: #0d1b2a;
	--color-background: #ffffff;
	--color-primary: #00a6fb;
	--color-light-gray: #f0f4f8;
	--header-height: 80px;
}

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

html {
	scroll-behavior: smooth;
}

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

ul {
	list-style: none;
}

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

img,
svg {
	display: block;
	max-width: 100%;
}

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

/* Этап 1: Хедер (<header>) */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
	background-color: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	height: var(--header-height);
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

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

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-primary);
	font-weight: 700;
	font-size: 24px;
}

.logo__svg {
	transition: transform 0.3s ease;
}

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

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

.header__nav-link {
	font-family: var(--font-primary);
	font-weight: 500;
	font-size: 16px;
	position: relative;
	padding: 5px 0;
	transition: color 0.3s ease;
}

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

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

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

.header__nav-link--button {
	background-color: var(--color-primary);
	color: white;
	padding: 10px 20px;
	border-radius: 50px;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.header__nav-link--button:hover {
	background-color: #0085c9;
	transform: translateY(-2px);
	color: white;
}
.header__nav-link--button::after {
	display: none;
}

.header__burger-menu {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px;
}

/* Мобильное меню */
@media (max-width: 992px) {
	.header__nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 300px;
		height: 100vh;
		background-color: var(--color-background);
		box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
		padding: 100px 30px 30px;
		transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
		z-index: 99;
	}

	.header__nav.header__nav--open {
		right: 0;
	}

	.header__nav-list {
		flex-direction: column;
		align-items: flex-start;
		gap: 25px;
	}

	.header__nav-link {
		font-size: 20px;
	}

	.header__burger-menu {
		display: block;
		z-index: 101;
	}

	.header__burger-menu i {
		color: var(--color-text);
		width: 28px;
		height: 28px;
	}
}

/* Этап 2: Футер (<footer>) */
.footer {
	background-color: var(--color-text);
	color: var(--color-light-gray);
	padding: 60px 0;
	margin-top: 80px; /* Отступ от последнего контентного блока */
}

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

.footer__column--about .logo__text {
	color: var(--color-background);
}

.footer__column--about .logo__svg path:nth-child(2) {
	stroke: var(--color-background);
}

.footer__copyright {
	margin-top: 20px;
	font-size: 14px;
	opacity: 0.7;
}

.footer__title {
	font-family: var(--font-primary);
	font-size: 20px;
	margin-bottom: 20px;
	color: var(--color-background);
}

.footer__list li {
	margin-bottom: 12px;
}

.footer__link {
	display: inline-block;
	position: relative;
	transition: color 0.3s ease, transform 0.3s ease;
	opacity: 0.8;
}

.footer__link:hover {
	color: var(--color-primary);
	opacity: 1;
	transform: translateX(5px);
}

.footer__list--contacts .footer__link {
	display: flex;
	align-items: center;
	gap: 10px;
}

.footer__address {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	opacity: 0.8;
}

.footer__icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: var(--color-primary);
}

@media (max-width: 768px) {
	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.footer__column--about,
	.footer__list--contacts a,
	.footer__address {
		justify-content: center;
		align-items: center;
	}
	.footer__address {
		text-align: center;
	}
}

/* --- Global Button Styles --- */
.button {
	display: inline-block;
	padding: 14px 32px;
	font-family: var(--font-primary);
	font-weight: 500;
	font-size: 16px;
	border-radius: 50px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
}

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

.button--primary:hover {
	background-color: #0085c9;
	transform: translateY(-3px);
	box-shadow: 0 4px 15px rgba(0, 166, 251, 0.3);
}

.button--secondary {
	background-color: transparent;
	color: var(--color-text);
	border-color: #dbe4ee;
}

.button--secondary:hover {
	background-color: var(--color-light-gray);
	border-color: var(--color-light-gray);
	transform: translateY(-3px);
}

/* --- Hero Section Styles --- */
.hero {
	padding-top: calc(var(--header-height) + 80px); /* Отступ от хедера */
	padding-bottom: 80px;
	background-color: var(--color-background);
	overflow: hidden; /* Чтобы анимация не выходила за пределы */
}

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

.hero__title {
	font-family: var(--font-primary);
	font-size: 2.5rem;
	line-height: 1.2;
	font-weight: 700;
	margin-bottom: 20px;
	color: var(--color-text);
}

.hero__subtitle {
	font-size: 18px;
	margin-bottom: 35px;
	max-width: 500px;
	color: #4a5a6a; /* Немного приглушенный цвет для лучшей иерархии */
}

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

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

.hero__img {
	width: 100%;
	height: auto;
	border-radius: 30px;
	/* Можно добавить эффект, например, легкую тень */
	box-shadow: 0 20px 40px -10px rgba(13, 27, 42, 0.15);
}

/* Адаптивность для Hero */
@media (max-width: 992px) {
	.hero__container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.hero__visual {
		order: -1; /* Изображение будет сверху на мобильных */
		margin-bottom: 40px;
	}

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

	.hero__title {
		font-size: 2rem;
	}

	.hero__cta {
		justify-content: center;
	}
}

@media (max-width: 576px) {
	.hero {
		padding-top: calc(var(--header-height) + 40px);
		padding-bottom: 60px;
	}

	.hero__title {
		font-size: 1.5rem;
	}

	.hero__subtitle {
		font-size: 16px;
	}

	.hero__cta {
		flex-direction: column;
		align-items: center;
	}

	.button {
		width: 100%;
		max-width: 300px;
	}
}

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

.section__header {
	text-align: center;
	margin-bottom: 60px;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.section__subtitle {
	display: block;
	font-family: var(--font-primary);
	font-weight: 500;
	color: var(--color-primary);
	margin-bottom: 8px;
	text-transform: uppercase;
	font-size: 14px;
	letter-spacing: 0.5px;
}

.section__title {
	font-family: var(--font-primary);
	font-size: 42px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--color-text);
}

/* --- Features Section Styles --- */
.features {
	background-color: var(--color-light-gray);
}

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

.features__card {
	background-color: var(--color-background);
	padding: 40px;
	border-radius: 20px;
	text-align: center;
	border: 1px solid #e0e7ff;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features__card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 30px -5px rgba(13, 27, 42, 0.1);
}

.features__card-icon {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background-color: #e6f6ff; /* Светлый оттенок основного цвета */
	margin-bottom: 25px;
}

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

.features__card-title {
	font-family: var(--font-primary);
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 15px;
}

.features__card-text {
	font-size: 16px;
	line-height: 1.6;
	color: #4a5a6a;
}

/* Адаптивность для Sections & Features */
@media (max-width: 768px) {
	.section {
		padding: 60px 0;
	}

	.section__title {
		font-size: 34px;
	}
}

@media (max-width: 576px) {
	.section__title {
		font-size: 28px;
	}

	.features__card {
		padding: 30px;
	}
}

/* --- How It Works Section Styles --- */
.how-it-works {
	background-color: var(--color-background);
}

.how-it-works__timeline {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
}

/* The vertical line */
.how-it-works__timeline::after {
	content: '';
	position: absolute;
	width: 3px;
	background-color: var(--color-light-gray);
	top: 20px;
	bottom: 20px;
	left: 50%;
	margin-left: -1.5px;
	z-index: 1;
}

.how-it-works__step {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
	align-items: center;
	margin-bottom: 60px;
	position: relative;
	z-index: 2;
}

.how-it-works__step:last-child {
	margin-bottom: 0;
}

.how-it-works__step--reversed .how-it-works__visual {
	order: 2;
}

.how-it-works__img {
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(13, 27, 42, 0.1);
}

.how-it-works__content {
	padding: 20px;
}

.how-it-works__step-number {
	font-family: var(--font-primary);
	font-size: 80px;
	font-weight: 700;
	color: var(--color-light-gray);
	line-height: 1;
}

.how-it-works__step-title {
	font-family: var(--font-primary);
	font-size: 28px;
	font-weight: 700;
	margin: 10px 0 15px;
}

.how-it-works__step-text {
	color: #4a5a6a;
	line-height: 1.7;
}

/* Адаптивность для How It Works */
@media (max-width: 768px) {
	.how-it-works__timeline::after {
		left: 30px;
	}

	.how-it-works__step {
		grid-template-columns: 1fr;
	}

	.how-it-works__visual {
		display: none; /* Скрываем картинки для экономии места */
	}

	.how-it-works__content {
		padding-left: 60px; /* Отступ от линии */
	}

	.how-it-works__step--reversed .how-it-works__content {
		padding-left: 60px;
	}

	.how-it-works__step-number {
		position: absolute;
		left: -15px;
		top: -15px;
		font-size: 60px;
		z-index: -1;
		opacity: 0.5;
	}
}

@media (max-width: 576px) {
	.how-it-works__timeline::after {
		left: 20px;
	}

	.how-it-works__content {
		padding-left: 45px;
		padding-right: 0;
	}

	.how-it-works__step-title {
		font-size: 24px;
	}
}

/* --- Showcase Section Styles --- */
.showcase {
	background-color: var(--color-light-gray);
}

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

.showcase__card {
	background-color: var(--color-background);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 5px 25px -5px rgba(13, 27, 42, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase__card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 30px -5px rgba(13, 27, 42, 0.1);
}

.showcase__card-image img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.showcase__card:hover .showcase__card-image img {
	transform: scale(1.05);
}

.showcase__card-content {
	padding: 25px 30px;
}

.showcase__card-tag {
	display: inline-block;
	padding: 6px 14px;
	background-color: #e6f6ff;
	color: var(--color-primary);
	border-radius: 50px;
	font-size: 13px;
	font-weight: 500;
	font-family: var(--font-primary);
}

.showcase__card-title {
	font-family: var(--font-primary);
	font-size: 22px;
	font-weight: 700;
	margin-top: 15px;
	margin-bottom: 10px;
}

.showcase__card-text {
	color: #4a5a6a;
}

/* --- FAQ Section Styles --- */
.faq {
	background-color: var(--color-background);
}

.faq__accordion {
	max-width: 800px;
	margin: 0 auto;
	border: 1px solid #e0e7ff;
	border-radius: 20px;
	overflow: hidden;
}

.faq__item {
	border-bottom: 1px solid #e0e7ff;
}

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

.faq__item-question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 20px 25px;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	font-family: var(--font-primary);
	font-size: 18px;
	font-weight: 500;
	color: var(--color-text);
	transition: background-color 0.3s ease;
}

.faq__item-question:hover {
	background-color: var(--color-light-gray);
}

.faq__item-icon {
	flex-shrink: 0;
	margin-left: 20px;
	color: var(--color-primary);
	transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.faq__item-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s cubic-bezier(0.65, 0, 0.35, 1),
		padding 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.faq__item-answer p {
	padding: 0 25px 20px;
	color: #4a5a6a;
	line-height: 1.7;
}

/* Active state */
.faq__item.faq__item--active .faq__item-question {
	background-color: #f8fafc;
}

.faq__item.faq__item--active .faq__item-icon {
	transform: rotate(45deg);
}

.faq__item.faq__item--active .faq__item-answer {
	/* max-height будет установлен через JS */
}

/* --- Contact Section Styles --- */
.contact {
	background-color: var(--color-light-gray);
	padding: 100px 0;
}

.contact__wrapper {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 80px;
	align-items: center;
	background-color: var(--color-background);
	padding: 60px;
	border-radius: 20px;
	box-shadow: 0 10px 40px -10px rgba(13, 27, 42, 0.1);
}

.contact__info .section__title,
.contact__info .section__subtitle {
	text-align: left;
}
.contact__info .section__title {
	margin-bottom: 20px;
}

.contact__info-text {
	color: #4a5a6a;
	line-height: 1.7;
}

/* Form Styles */
.form__group {
	position: relative;
	margin-bottom: 25px;
}

.form__input {
	width: 100%;
	padding: 14px 18px;
	border: 1px solid #dbe4ee;
	border-radius: 8px;
	font-size: 16px;
	font-family: var(--font-secondary);
	transition: border-color 0.3s ease;
}

.form__input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(0, 166, 251, 0.2);
}

.form__label {
	position: absolute;
	top: 15px;
	left: 18px;
	color: #8898aa;
	pointer-events: none;
	transition: all 0.2s ease;
	background-color: var(--color-background);
	padding: 0 5px;
}

.form__input:focus ~ .form__label,
.form__input:not(:placeholder-shown) ~ .form__label {
	top: -10px;
	left: 12px;
	font-size: 13px;
	color: var(--color-primary);
}

.form__group--checkbox {
	display: flex;
	align-items: flex-start;
	margin-bottom: 30px;
}

.form__checkbox-input {
	margin-top: 4px;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.form__checkbox-label {
	font-size: 14px;
	color: #4a5a6a;
	margin-left: 10px;
	line-height: 1.5;
}

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

.form__button {
	width: 100%;
}

/* Success Message */
.contact__form-container {
	position: relative;
}
.contact__success-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 40px;
}

.contact__success-icon {
	display: inline-block;
	margin: 0 auto;
	color: #22c55e; /* Green color for success */
	margin-bottom: 20px;
}

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

.contact__success-title {
	font-family: var(--font-primary);
	font-size: 28px;
	margin-bottom: 10px;
}

.contact__success-text {
	color: #4a5a6a;
}

/* Адаптивность для Contact */
@media (max-width: 992px) {
	.contact__wrapper {
		grid-template-columns: 1fr;
		gap: 50px;
		padding: 40px;
	}
	.contact__info {
		text-align: center;
	}
	.contact__info .section__title,
	.contact__info .section__subtitle {
		text-align: center;
	}
}
@media (max-width: 576px) {
	.contact__wrapper {
		padding: 30px 20px;
	}
}

/* --- Cookie Pop-up Styles --- */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 0;
	width: 100%;
	background-color: var(--color-text);
	color: var(--color-background);
	padding: 20px;
	box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
	z-index: 200;
	transition: bottom 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

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

.cookie-popup__content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	gap: 20px;
}

.cookie-popup__text {
	font-size: 15px;
}

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

.cookie-popup__button {
	background-color: var(--color-primary);
	color: var(--color-background);
	border: none;
	padding: 10px 25px;
	border-radius: 50px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
	transition: background-color 0.3s ease;
}

.cookie-popup__button:hover {
	background-color: #0085c9;
}

/* --- Policy Pages Styles (privacy.html, terms.html etc.) --- */
.pages {
	padding-top: calc(var(--header-height) + 60px);
	padding-bottom: 80px;
}

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

.pages h1,
.pages h2 {
	font-family: var(--font-primary);
	font-weight: 700;
	margin-bottom: 20px;
	color: var(--color-text);
}

.pages h1 {
	font-size: 1.5rem;
	line-height: 1.2;
	margin-bottom: 30px;
}

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

.pages p,
.pages li {
	font-size: 16px;
	line-height: 1.8;
	color: #4a5a6a;
	margin-bottom: 15px;
}

.pages ul {
	list-style: disc;
	padding-left: 20px;
	margin-bottom: 20px;
}

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

.pages a:hover {
	text-decoration: none;
}

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

/* Адаптивность для доп. элементов */
@media (max-width: 768px) {
	.cookie-popup__content {
		flex-direction: column;
		text-align: center;
	}
}
