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

/*=============== CSS VARIABLES ===============*/
:root {
	/* Colors */
	--primary-color: #00f5d4; /* Яркий бирюзовый */
	--title-color: #1a2e44; /* Глубокий темно-синий */
	--text-color: #5b6878; /* Спокойный серый */
	--body-color: #ffffff; /* Белый */
	--container-color: #f3f4f6; /* Очень светлый серый для фона секций */

	/* Typography */
	--body-font: 'Poppins', sans-serif;
	--title-font: 'Montserrat', sans-serif;

	--h1-font-size: 2.5rem;
	--h2-font-size: 1.5rem;
	--normal-font-size: 1rem;
	--small-font-size: 0.875rem;

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

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

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);
	line-height: 1.6;
}

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

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: var(--text-color);
}

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

.container {
	max-width: 1120px;
	margin-left: 1.5rem;
	margin-right: 1.5rem;
}

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

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

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

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

.header__toggle,
.header__nav-close {
	border: none;
	background-color: transparent;
	display: none; /* Скрыты по умолчанию */
	cursor: pointer;
	color: var(--title-color);
}

/*=============== NAV ===============*/
@media screen and (max-width: 767px) {
	.header__nav {
		position: fixed;
		top: 0;
		right: -100%;
		background-color: var(--body-color);
		width: 80%;
		height: 100vh;
		padding: 6rem 2rem 0;
		z-index: var(--z-fixed);
		transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
		box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
	}

	.header__nav.is-active {
		right: 0;
	}

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

	.header__nav-link {
		font-size: var(--h2-font-size);
		color: var(--title-color);
		font-weight: 600;
	}

	.header__toggle,
	.header__nav-close {
		display: block;
	}

	.header__nav-close {
		position: absolute;
		top: 1.5rem;
		right: 1.5rem;
	}
}

.header__nav-list {
	display: flex;
	align-items: center;
	gap: 2.5rem;
}

.header__nav-link {
	font-weight: 500;
	transition: color 0.3s;
}
.header__nav-link:hover {
	color: var(--primary-color);
}

/*=============== FOOTER ===============*/
.footer {
	background-color: var(--container-color);
	padding-top: 4rem;
	padding-bottom: 2rem;
}

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

.footer__column .logo {
	margin-bottom: 1rem;
}

.footer__tagline {
	font-style: italic;
	font-size: var(--small-font-size);
}

.footer__title {
	font-size: var(--h2-font-size);
	margin-bottom: 1.5rem;
}

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

.footer__link {
	transition: color 0.3s;
}

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

.footer__list--contact li {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.footer__icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	color: var(--primary-color);
}

.footer__bottom {
	margin-top: 4rem;
	padding-top: 2rem;
	border-top: 1px solid #ddd;
	text-align: center;
	font-size: var(--small-font-size);
}

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

	.header__toggle,
	.header__nav-close {
		display: none;
	}

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

/* For large devices */
@media screen and (min-width: 1024px) {
	:root {
		--h1-font-size: 3rem;
		--h2-font-size: 1.75rem;
		--normal-font-size: 1.05rem;
	}
}

/*=============== BUTTON ===============*/
.button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background-color: var(--primary-color);
	color: var(--title-color);
	padding: 1rem 1.75rem;
	border-radius: 0.5rem;
	font-weight: 600;
	font-family: var(--title-font);
	transition: all 0.3s ease;
	border: 2px solid var(--primary-color);
}

.button:hover {
	background-color: transparent;
	color: var(--primary-color);
	transform: translateY(-3px);
	box-shadow: 0 4px 10px rgba(0, 245, 212, 0.2);
}

.button__icon {
	width: 20px;
	height: 20px;
	transition: transform 0.3s ease;
}

.button:hover .button__icon {
	transform: translateX(4px);
}

/*=============== HERO ===============*/
.hero {
	padding-top: 8rem; /* header height + space */
	padding-bottom: 4rem;
}

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

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

/* --- Hero Title Animation Setup --- */
.hero__title .word {
	display: inline-block;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease, transform 0.6s ease;
	transition-delay: var(--delay); /* Custom property for JS */
}

.hero__title .word.is-visible {
	opacity: 1;
	transform: translateY(0);
}
/* ---------------------------------- */

.hero__description {
	font-size: var(--normal-font-size);
	margin-bottom: 2.5rem;
	max-width: 500px;
}

.hero__image-wrapper {
	position: relative;
	justify-self: center;
	animation: floatAnimation 4s ease-in-out infinite;
}

.hero__image {
	border-radius: 1rem;
	max-width: 450px;
	width: 100%;
}

@keyframes floatAnimation {
	0% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
	100% {
		transform: translateY(0);
	}
}

/*=============== HERO BREAKPOINTS ===============*/
@media screen and (min-width: 768px) {
	.hero__container {
		grid-template-columns: 1fr 0.8fr;
	}
}

@media screen and (min-width: 1024px) {
	.hero {
		padding-top: 9rem;
		padding-bottom: 5rem;
	}
}

/*=============== REUSABLE CSS CLASSES ===============*/
.section {
	padding-top: 5rem;
	padding-bottom: 5rem;
}

.section__header {
	text-align: center;
	margin-bottom: 3.5rem;
}

.section__title {
	font-size: var(--h2-font-size);
	margin-bottom: 0.75rem;
}

.section__subtitle {
	max-width: 600px;
	margin: 0 auto;
	font-size: var(--normal-font-size);
}

/*=============== STRATEGY ===============*/
.strategy {
	background-color: var(--container-color);
}

.strategy__grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr;
}

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

.strategy__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 8px 24px rgba(26, 46, 68, 0.08);
	border-color: var(--primary-color);
}

.strategy__card-icon {
	display: inline-flex;
	padding: 1rem;
	background-color: #e6fdfa; /* Light version of primary color */
	border-radius: 50%;
	margin-bottom: 1.5rem;
}

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

.strategy__card-title {
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
}

/*=============== STRATEGY BREAKPOINTS ===============*/
@media screen and (min-width: 768px) {
	.strategy__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/*=============== CASES ===============*/
.cases__grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr;
}

.case-card {
	background-color: var(--container-color);
	padding: 2rem;
	border-radius: 1rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	border-left: 4px solid var(--primary-color);
	box-shadow: 0 4px 12px rgba(26, 46, 68, 0.05);
}

.case-card__quote {
	font-style: italic;
	color: var(--title-color);
	margin-bottom: 1.5rem;
	position: relative;
	padding-left: 1.5rem;
}

.case-card__quote::before {
	content: '“';
	position: absolute;
	left: 0;
	top: -0.5rem;
	font-size: 2.5rem;
	color: var(--primary-color);
	font-family: var(--title-font);
}

.case-card__author {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: auto; /* Pushes author to the bottom */
}

.case-card__author-img {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--primary-color);
}

.case-card__author-name {
	margin: 0;
	color: var(--title-color);
}

.case-card__author-role {
	font-size: var(--small-font-size);
	color: var(--text-color);
}

/*=============== CASES BREAKPOINTS ===============*/
@media screen and (min-width: 768px) {
	.cases__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (min-width: 1024px) {
	.cases__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/*=============== BLOG ===============*/
.blog {
	background-color: var(--container-color);
}

.blog__grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr;
}

.blog-card {
	background-color: var(--body-color);
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(26, 46, 68, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 8px 24px rgba(26, 46, 68, 0.1);
}

.blog-card__image-wrapper {
	overflow: hidden;
}

.blog-card__image {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 0.4s ease;
}

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

.blog-card__content {
	padding: 1.5rem;
}

.blog-card__category {
	display: inline-block;
	background-color: #e6fdfa;
	color: var(--primary-color);
	padding: 0.25rem 0.75rem;
	border-radius: 99px;
	font-size: var(--small-font-size);
	font-weight: 600;
	margin-bottom: 1rem;
}

.blog-card__title {
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
	/* Ограничение текста в 2 строки */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blog-card__excerpt {
	margin-bottom: 1.5rem;
	/* Ограничение текста в 3 строки */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blog-card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--title-color);
	font-weight: 600;
	transition: color 0.3s ease, gap 0.3s ease;
}

.blog-card__link i {
	width: 18px;
	height: 18px;
	transition: transform 0.3s ease;
}

.blog-card__link:hover {
	color: var(--primary-color);
	gap: 0.75rem;
}

.blog-card__link:hover i {
	transform: translateX(4px);
}

/*=============== BLOG BREAKPOINTS ===============*/
@media screen and (min-width: 576px) {
	.blog__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (min-width: 992px) {
	.blog__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

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

.contact__content-title {
	font-size: var(--h2-font-size);
	margin-bottom: 1rem;
}

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

.contact__form-label {
	display: block;
	font-weight: 500;
	margin-bottom: 0.5rem;
	color: var(--title-color);
}

.contact__form-input {
	width: 100%;
	padding: 1rem;
	border: 1px solid #ccc;
	border-radius: 0.5rem;
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	transition: border-color 0.3s, box-shadow 0.3s;
}

.contact__form-input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.3);
}

.contact__form-check {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

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

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

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

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

.contact__message {
	text-align: center;
	font-weight: 600;
	margin-bottom: 1.5rem;
}

.contact__message.success {
	color: #0b5345;
	background-color: #d1f2eb;
	padding: 1rem;
	border-radius: 0.5rem;
}

/*=============== CONTACT BREAKPOINTS ===============*/
@media screen and (min-width: 768px) {
	.contact__container {
		grid-template-columns: 0.8fr 1fr;
		align-items: center;
	}
}

/*=============== COOKIE POPUP ===============*/
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 0;
	right: 0;
	width: 100%;

	background-color: var(--title-color);
	color: var(--body-color);
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
	z-index: var(--z-fixed);

	padding: 1.5rem;
	transition: bottom 0.5s ease-in-out;

	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 1.5rem;
	text-align: center;
}

.cookie-popup.is-visible {
	bottom: 0;
}

.cookie-popup__text {
	margin: 0;
}

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

.cookie-popup__button {
	padding: 0.75rem 1.5rem; /* Make button slightly smaller */
}

@media screen and (min-width: 768px) {
	.cookie-popup {
		justify-content: space-between;
		padding-left: 5%;
		padding-right: 5%;
		text-align: left;
	}
}

/*=============== POLICY & TEXT PAGES ===============*/
.pages {
	padding-top: 8rem; /* Space for fixed header */
	padding-bottom: 5rem;
	min-height: 80vh;
}

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

.pages h1,
.pages h2 {
	font-family: var(--title-font);
	color: var(--title-color);
	margin-bottom: 1.5rem;
}

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

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

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

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

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

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

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

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