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

/*=============== CSS VARIABLES ===============*/
:root {
	--header-height: 3.5rem;

	/*========== Colors ==========*/
	--primary-color: #00b8a9;
	--primary-color-alt: #00a395;
	--title-color: #1d242b;
	--text-color: #5b6268;
	--body-color: #ffffff;
	--container-color: #f7f9fb;
	--border-color: #e9ecef;

	/*========== Font and typography ==========*/
	--body-font: 'Montserrat', sans-serif;
	--title-font: 'Poppins', sans-serif;
	--biggest-font-size: 2.25rem;
	--h1-font-size: 1.75rem;
	--h2-font-size: 1.25rem;
	--h3-font-size: 1rem;
	--normal-font-size: 0.938rem;
	--small-font-size: 0.813rem;

	/*========== Font weight ==========*/
	--font-medium: 500;
	--font-semibold: 600;
	--font-bold: 700;

	/*========== z-index ==========*/
	--z-tooltip: 10;
	--z-fixed: 100;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	background-color: var(--body-color);
	color: var(--text-color);
}

h1,
h2,
h3 {
	color: var(--title-color);
	font-family: var(--title-font);
	font-weight: var(--font-semibold);
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
}

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

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
	max-width: 1024px;
	margin-left: 1.5rem;
	margin-right: 1.5rem;
}

/*==================== HEADER ====================*/
.header {
	width: 100%;
	background-color: var(--body-color);
	position: fixed;
	top: 0;
	left: 0;
	z-index: var(--z-fixed);
	box-shadow: 0 2px 4px hsla(0, 0%, 15%, 0.1);
}

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

.header__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--title-color);
	font-family: var(--title-font);
	font-weight: var(--font-bold);
	transition: color 0.3s;
}

.header__logo img {
	width: 32px;
	height: 32px;
}

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

.header__toggle,
.header__nav-close {
	border: none;
	background-color: transparent;
	font-size: 1.25rem;
	color: var(--title-color);
	cursor: pointer;
}

/* Navigation for mobile devices */
@media screen and (max-width: 767px) {
	.header__nav {
		position: fixed;
		top: 0;
		right: -100%;
		background-color: hsla(0, 0%, 100%, 0.95);
		backdrop-filter: blur(10px);
		width: 80%;
		height: 100%;
		box-shadow: -2px 0 4px hsla(0, 0%, 15%, 0.1);
		padding: 4rem 0 0 3rem;
		transition: right 0.4s;
	}
}

.header__nav-list {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

.header__nav-link {
	color: var(--title-color);
	font-weight: var(--font-medium);
	transition: color 0.3s;
}

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

.header__nav-link--button {
	background-color: var(--primary-color);
	color: #fff;
	padding: 0.5rem 1.5rem;
	border-radius: 5px;
	transition: background-color 0.3s;
}

.header__nav-link--button:hover {
	background-color: var(--primary-color-alt);
	color: #fff;
}

.header__nav-close {
	border: none;
	background-color: transparent;
	position: absolute;
	top: 1rem;
	right: 1.25rem;
}

/* Show menu */
.show-menu {
	right: 0;
}

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

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

.footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--title-color);
	font-family: var(--title-font);
	font-weight: var(--font-bold);
	margin-bottom: 1rem;
}

.footer__logo img {
	width: 32px;
}

.footer__description {
	font-size: var(--small-font-size);
}

.footer__title {
	font-size: var(--h3-font-size);
	margin-bottom: 1.25rem;
}

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

.footer__link {
	color: var(--text-color);
	font-size: var(--small-font-size);
	transition: color 0.3s;
}

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

.footer__list--contact {
	gap: 1rem;
}

.footer__contact-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	font-size: var(--small-font-size);
	color: var(--text-color);
}

.footer__contact-icon {
	width: 18px; /* For alignment */
	flex-shrink: 0;
	margin-top: 2px;
}

.footer__copy {
	margin-top: 4rem;
	padding-block: 1.5rem;
	text-align: center;
	border-top: 1px solid var(--border-color);
	font-size: var(--small-font-size);
	color: var(--text-color);
}

/*=============== MEDIA QUERIES ===============*/
/* For medium devices */
@media screen and (min-width: 768px) {
	.header__nav {
		display: block;
	}
	.header__nav-list {
		flex-direction: row;
		align-items: center;
		gap: 2rem;
	}
	.header__toggle,
	.header__nav-close {
		display: none;
	}
}

/* For large devices */
@media screen and (min-width: 1024px) {
	.container {
		margin-left: auto;
		margin-right: auto;
	}
}

/*=============== REUSABLE CSS CLASSES ===============*/
/* ... ваші існуючі класи ... */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background-color: var(--primary-color);
	color: #fff;
	padding: 1rem 1.75rem;
	border-radius: 0.5rem;
	font-weight: var(--font-medium);
	font-family: var(--title-font);
	transition: background-color 0.3s, transform 0.3s;
}

.button:hover {
	background-color: var(--primary-color-alt);
	transform: translateY(-2px);
}

.button__icon {
	width: 20px;
	height: 20px;
}

/*==================== HERO SECTION ====================*/
.hero {
	padding-top: calc(var(--header-height) + 2rem);
	padding-bottom: 4rem;
}

.hero__container {
	display: grid;
	gap: 3rem;
	align-items: center;
}

.hero__title {
	font-size: var(--h2-font-size);
	line-height: 1.2;
	margin-bottom: 1.25rem;
}

.hero__description {
	margin-bottom: 2.5rem;
	line-height: 1.6;
}

.hero__button {
	margin-bottom: 2.5rem;
}

.hero__benefits {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.hero__benefits-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: var(--small-font-size);
	color: var(--title-color);
}

.hero__benefits-icon {
	color: var(--primary-color);
	width: 20px;
	height: 20px;
}

.hero__image-wrapper {
	position: relative;
	justify-self: center;
}

.hero__image {
	border-radius: 1rem;
	box-shadow: 0 10px 20px hsla(206, 12%, 15%, 0.1);
}

/*=============== MEDIA QUERIES ===============*/
/* For medium devices */
@media screen and (min-width: 768px) {
	.hero__container {
		grid-template-columns: 1fr 1fr;
	}
}

/* For large devices */
@media screen and (min-width: 1024px) {
	:root {
		--biggest-font-size: 3rem;
		--h1-font-size: 2.25rem;
		--h2-font-size: 1.5rem;
		--h3-font-size: 1.25rem;
		--normal-font-size: 1rem;
		--small-font-size: 0.875rem;
	}

	.hero {
		padding-top: calc(var(--header-height) + 4rem);
		padding-bottom: 6rem;
	}

	.hero__container {
		gap: 5rem;
	}
}

/*==================== FEATURES SECTION ====================*/
.features {
	background-color: var(--container-color);
	padding-block: 5rem;
}

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

.features__title {
	font-size: var(--h1-font-size);
	margin-bottom: 1rem;
}

.features__subtitle {
	line-height: 1.6;
}

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

.features__card {
	background-color: var(--body-color);
	padding: 2rem;
	border-radius: 0.75rem;
	border: 1px solid var(--border-color);
	text-align: center;
	transition: transform 0.3s, box-shadow 0.3s;
}

.features__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 8px 16px hsla(206, 12%, 15%, 0.1);
}

.features__card-icon {
	display: inline-flex;
	padding: 1rem;
	background-color: var(--primary-color);
	color: #fff;
	border-radius: 50%;
	margin-bottom: 1.5rem;
}

.features__card-icon i {
	width: 32px;
	height: 32px;
}

.features__card-title {
	font-size: var(--h3-font-size);
	margin-bottom: 0.75rem;
}

.features__card-description {
	font-size: var(--small-font-size);
	line-height: 1.6;
}

/*==================== HOW IT WORKS SECTION ====================*/
.how-it-works {
	padding-block: 5rem;
}

.how-it-works__header {
	text-align: center;
	max-width: 600px;
	margin: 0 auto 4rem;
}

.how-it-works__title {
	font-size: var(--h1-font-size);
	margin-bottom: 1rem;
}

.how-it-works__subtitle {
	line-height: 1.6;
}

.how-it-works__steps {
	position: relative;
	display: grid;
	gap: 2.5rem;
	max-width: 500px;
	margin: 0 auto;
}

/* The vertical line */
.how-it-works__steps::before {
	content: '';
	position: absolute;
	top: 20px;
	bottom: 20px;
	left: 28px;
	width: 2px;
	background-color: var(--border-color);
}

.how-it-works__step {
	position: relative;
	display: flex;
	gap: 1.5rem;
	align-items: flex-start;
}

.how-it-works__step-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	z-index: 1; /* To be above the line */
}

.how-it-works__step-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	background-color: var(--primary-color);
	border-radius: 50%;
	color: #fff;
	margin-bottom: 0.5rem;
}

.how-it-works__step-icon i {
	width: 28px;
	height: 28px;
}

.how-it-works__step-number {
	font-family: var(--title-font);
	font-weight: var(--font-bold);
	color: var(--title-color);
	background-color: var(--body-color);
	padding: 0 0.5rem;
}

.how-it-works__step-title {
	font-size: var(--h3-font-size);
	margin-bottom: 0.5rem;
	margin-top: 1rem; /* Align with icon center */
}

.how-it-works__step-description {
	font-size: var(--normal-font-size);
	line-height: 1.6;
}

/*=============== MEDIA QUERIES ===============*/
@media screen and (min-width: 768px) {
	.how-it-works__steps {
		gap: 3rem;
	}
}

/*==================== BENEFITS SECTION ====================*/
.benefits {
	padding-block: 5rem;
	background-color: var(--container-color);
}

.benefits__container {
	display: grid;
	gap: 3rem;
	align-items: center;
}

.benefits__image-wrapper {
	position: relative;
	justify-self: center;
}

.benefits__image {
	border-radius: 1rem;
	box-shadow: 0 10px 20px hsla(206, 12%, 15%, 0.1);
}

.benefits__header {
	margin-bottom: 2.5rem;
}

.benefits__title {
	font-size: var(--h1-font-size);
	margin-bottom: 1rem;
}

.benefits__subtitle {
	line-height: 1.6;
}

.benefits__accordion-item {
	background-color: var(--body-color);
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	margin-bottom: 1rem;
	padding: 0.5rem 1.25rem;
}

.benefits__accordion-header {
	display: grid;
	grid-template-columns: max-content 1fr max-content;
	align-items: center;
	gap: 1rem;
	cursor: pointer;
	padding-block: 0.75rem;
}

.benefits__accordion-icon {
	color: var(--primary-color);
	width: 24px;
	height: 24px;
}

.benefits__accordion-title {
	font-size: var(--h3-font-size);
}

.benefits__accordion-arrow {
	transition: transform 0.3s;
}

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

.benefits__accordion-description {
	padding: 0 0 1.25rem 3.5rem;
	font-size: var(--small-font-size);
	line-height: 1.6;
}

/* Accordion open state */
.accordion-open .benefits__accordion-arrow {
	transform: rotate(180deg);
}

/*=============== MEDIA QUERIES ===============*/
@media screen and (min-width: 768px) {
	.benefits__container {
		grid-template-columns: 1fr 1fr;
	}
}

/*==================== REVIEWS SECTION ====================*/
.reviews {
	padding-block: 5rem;
}

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

.reviews__title {
	font-size: var(--h1-font-size);
	margin-bottom: 1rem;
}

.reviews__subtitle {
	line-height: 1.6;
}

.reviews__swiper {
	padding-bottom: 3.5rem; /* Space for pagination */
}

.reviews__card {
	background-color: var(--container-color);
	padding: 2rem;
	border-radius: 1rem;
	border: 1px solid var(--border-color);
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.reviews__card-text {
	font-style: italic;
	line-height: 1.7;
	margin-bottom: 2rem;
	flex-grow: 1;
}

.reviews__card-text::before {
	content: '“';
	font-size: 3rem;
	color: var(--primary-color);
	font-weight: var(--font-bold);
	line-height: 0;
}

.reviews__card-profile {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.reviews__card-img {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
}

.reviews__card-name {
	font-size: var(--h3-font-size);
	margin-bottom: 0.25rem;
}

.reviews__card-location {
	font-size: var(--small-font-size);
	color: var(--text-color);
}

/* Swiper pagination styles */
.swiper-pagination-bullet {
	background-color: var(--text-color);
	opacity: 0.5;
}

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

/*==================== CONTACT SECTION ====================*/
.contact {
	padding-block: 5rem;
	background-color: var(--container-color);
}

.contact__container {
	display: grid;
	gap: 3rem;
}

.contact__title {
	font-size: var(--h1-font-size);
	margin-bottom: 1rem;
}

.contact__description {
	line-height: 1.6;
	margin-bottom: 2.5rem;
}

.contact__info {
	display: flex;
	gap: 2rem;
}

.contact__info-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--title-color);
	font-weight: var(--font-medium);
}

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

.contact__form-wrapper {
	background-color: var(--body-color);
	padding: 2.5rem;
	border-radius: 1rem;
	box-shadow: 0 4px 12px hsla(206, 12%, 15%, 0.1);
}

.contact__form-title {
	font-size: var(--h2-font-size);
	text-align: center;
	margin-bottom: 2rem;
}

.contact__form {
	display: grid;
	gap: 1.5rem;
}

.contact__form-group {
	position: relative;
}

.contact__form-input {
	width: 100%;
	padding: 1rem;
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	outline: none;
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	color: var(--title-color);
}

.contact__form-label {
	position: absolute;
	top: 1rem;
	left: 1rem;
	color: var(--text-color);
	background-color: var(--body-color);
	padding: 0 0.25rem;
	transition: top 0.3s, font-size 0.3s, color 0.3s;
	pointer-events: none;
}

/* Floating label effect */
.contact__form-input:focus + .contact__form-label,
.contact__form-input:not(:placeholder-shown).contact__form-input:not(:focus)
	+ .contact__form-label {
	top: -0.75rem;
	font-size: var(--small-font-size);
	color: var(--primary-color);
}

.contact__form-input:focus {
	border-color: var(--primary-color);
}

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

.contact__form-checkbox {
	margin-top: 4px;
}

.contact__form-checkbox-label {
	font-size: var(--small-font-size);
	line-height: 1.5;
}

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

.contact__form-button {
	width: 100%;
	justify-content: center;
}

.contact__form-message {
	font-size: var(--small-font-size);
	text-align: center;
	margin-top: -0.5rem;
	color: var(--primary-color-alt);
}

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

/*==================== COOKIE POP-UP ====================*/
.cookie-popup {
	position: fixed;
	bottom: 2rem;
	left: 2rem;
	right: 2rem;
	background-color: var(--title-color);
	color: #fff;
	padding: 1.25rem 1.5rem;
	border-radius: 0.75rem;
	box-shadow: 0 4px 16px hsla(0, 0%, 0%, 0.2);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	z-index: 110; /* Above other content */
	transform: translateY(200%);
	transition: transform 0.5s ease-in-out;
}

.cookie-popup.show {
	transform: translateY(0);
}

.cookie-popup__text {
	font-size: var(--small-font-size);
}

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

.cookie-popup__button {
	padding: 0.75rem 1.5rem;
	flex-shrink: 0; /* Prevent button from shrinking */
}

/* For mobile view */
@media screen and (max-width: 767px) {
	.cookie-popup {
		flex-direction: column;
		text-align: center;
		bottom: 1rem;
		left: 1rem;
		right: 1rem;
	}
}

/*==================== STYLES FOR POLICY PAGES ====================*/
.pages {
	padding-block: calc(var(--header-height) + 3rem) 5rem;
}

.pages .container {
	max-width: 800px; /* Optimal width for reading */
}

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

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

.pages p {
	line-height: 1.8;
	margin-bottom: 1rem;
}

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

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

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

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

.pages strong {
	color: var(--title-color);
	font-weight: var(--font-bold);
}
