/* Goggle Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@600;700&display=swap');

/* CSS Variables */
:root {
	--font-primary: 'Lato', sans-serif;
	--font-secondary: 'Montserrat', sans-serif;

	--color-bg: #fdfbf7;
	--color-text: #2c3e50;
	--color-text-light: #465a6c;
	--color-primary: #2c3e50;
	--color-accent: #e8a87c;
	--color-white: #ffffff;

	--header-height: 80px;
}

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

html {
	scroll-behavior: smooth;
	font-size: 16px;
}

body {
	font-family: var(--font-primary);
	background-color: var(--color-bg);
	color: var(--color-text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: inherit;
	transition: color 0.3s ease;
}

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

/* Logo */
.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-secondary);
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--color-primary);
}

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

/* Header */
.header {
	height: var(--header-height);
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	background-color: rgba(253, 251, 247, 0.85);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(44, 62, 80, 0.1);
}

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

.header__nav {
	display: none;
}

.header__burger {
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--color-primary);
}

/* Mobile Menu (Active State) */
.header__nav--active {
	display: flex;
	flex-direction: column;
	position: absolute;
	top: var(--header-height);
	left: 0;
	width: 100%;
	background-color: var(--color-bg);
	padding: 1.5rem;
	border-bottom: 1px solid rgba(44, 62, 80, 0.1);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.header__nav-list {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
}

.header__nav-link {
	font-family: var(--font-secondary);
	font-weight: 600;
	font-size: 1.1rem;
	position: relative;
	padding-bottom: 0.3rem;
}

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

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

.header__nav-link--button {
	background-color: var(--color-accent);
	color: var(--color-white);
	padding: 0.5rem 1.5rem;
	border-radius: 50px;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

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

/* Footer */
.footer {
	background-color: var(--color-text);
	color: rgba(255, 255, 255, 0.7);
	padding-top: 4rem;
	font-size: 0.95rem;
}

.footer__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	padding-bottom: 4rem;
}

.footer__logo {
	color: var(--color-white);
}

.footer__tagline {
	margin-top: 1rem;
	max-width: 250px;
}

.footer__title {
	font-family: var(--font-secondary);
	color: var(--color-white);
	font-size: 1.2rem;
	margin-bottom: 1rem;
}

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

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

.footer__address {
	font-style: normal;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 1.5rem 0;
	text-align: center;
	font-size: 0.9rem;
}

/* Desktop Styles */
@media (min-width: 768px) {
	.header__burger {
		display: none;
	}
	.header__nav {
		display: block;
	}
	.header__nav-list {
		flex-direction: row;
		gap: 2rem;
	}
	.header__nav-link {
		font-size: 1rem;
	}
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.footer__container {
		grid-template-columns: 2fr 1fr 1fr 1.5fr;
		gap: 3rem;
	}
}

/* Button Component */
.button {
	display: inline-block;
	background-color: var(--color-accent);
	color: var(--color-white);
	padding: 0.8rem 2rem;
	border-radius: 50px;
	font-family: var(--font-secondary);
	font-weight: 600;
	text-align: center;
	border: 2px solid transparent;
	transition: all 0.3s ease;
}

.button:hover {
	background-color: transparent;
	border-color: var(--color-accent);
	color: var(--color-accent);
	transform: translateY(-2px);
}

/* Hero Section */
.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding-top: calc(var(--header-height) + 40px);
	padding-bottom: 4rem;
}

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

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

.hero__subtitle {
	font-size: 1.15rem;
	color: var(--color-text-light);
	margin-bottom: 2.5rem;
	max-width: 500px;
}

.hero__image-wrapper {
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 15px 30px rgba(44, 62, 80, 0.1);
	transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
	transition: transform 0.4s ease;
}

.hero__image-wrapper:hover {
	transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Animation styles */
[data-animate] {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (min-width: 768px) {
	.hero {
		padding-bottom: 0;
	}
}

@media (min-width: 992px) {
	.hero__container {
		grid-template-columns: 1fr 1fr;
	}
	.hero__content {
		text-align: left;
	}
}

/* Generic Section Styles */
.section {
	padding-top: 5rem;
	padding-bottom: 5rem;
}

.section-header {
	text-align: center;
	margin-bottom: 3.5rem;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.section-header__title {
	font-family: var(--font-secondary);
	font-size: clamp(1.8rem, 4vw, 2.5rem);
	margin-bottom: 1rem;
}

.section-header__subtitle {
	font-size: 1.1rem;
	color: var(--color-text-light);
	line-height: 1.7;
}

/* Services Section */
.services {
	background-color: var(--color-white);
}

.services__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

.services__card {
	background-color: var(--color-bg);
	border: 1px solid rgba(44, 62, 80, 0.1);
	border-radius: 12px;
	padding: 2.5rem 2rem;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 30px rgba(44, 62, 80, 0.08);
}

.services__card-icon {
	margin-bottom: 1.5rem;
	color: var(--color-accent);
}

.services__card-icon svg {
	width: 48px;
	height: 48px;
	margin: 0 auto;
	stroke-width: 1.5;
}

.services__card-title {
	font-family: var(--font-secondary);
	font-size: 1.3rem;
	margin-bottom: 0.75rem;
}

.services__card-description {
	color: var(--color-text-light);
	font-size: 0.95rem;
}

@media (min-width: 576px) {
	.services__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.services__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Cases Section */
.cases {
	background-color: var(
		--color-bg
	); /* Or keep it white, depends on visual flow */
}

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

.cases__tabs-nav {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex-shrink: 0;
}

.cases__tabs-button {
	display: flex;
	align-items: center;
	gap: 1rem;
	width: 100%;
	padding: 1rem 1.5rem;
	font-family: var(--font-secondary);
	font-size: 1rem;
	font-weight: 600;
	text-align: left;
	background-color: var(--color-white);
	border: 1px solid rgba(44, 62, 80, 0.1);
	border-radius: 8px;
	cursor: pointer;
	color: var(--color-text-light);
	transition: all 0.3s ease;
}

.cases__tabs-button svg {
	width: 24px;
	height: 24px;
	stroke-width: 1.5;
	flex-shrink: 0;
}

.cases__tabs-button:hover {
	background-color: var(--color-accent);
	color: var(--color-white);
	border-color: var(--color-accent);
}

.cases__tabs-button.is-active {
	background-color: var(--color-primary);
	color: var(--color-white);
	border-color: var(--color-primary);
	box-shadow: 0 5px 15px rgba(44, 62, 80, 0.1);
}

.cases__tabs-content {
	background-color: var(--color-white);
	border-radius: 12px;
	border: 1px solid rgba(44, 62, 80, 0.1);
	padding: 2rem;
	width: 100%;
}

.cases__tabs-pane {
	display: none;
	animation: fadeIn 0.5s ease;
}

.cases__tabs-pane.is-active {
	display: block;
}

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

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

.cases__pane-image-wrapper {
	border-radius: 8px;
	overflow: hidden;
}

.cases__pane-title {
	font-family: var(--font-secondary);
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.cases__pane-description {
	color: var(--color-text-light);
	margin-bottom: 2rem;
}

.cases__pane-kpi {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.cases__pane-kpi li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-weight: 700;
}

.cases__pane-kpi svg {
	color: var(--color-accent);
	width: 20px;
	height: 20px;
}

@media (min-width: 768px) {
	.cases__pane-grid {
		grid-template-columns: 300px 1fr;
	}
}

@media (min-width: 992px) {
	.cases__tabs {
		flex-direction: row;
		gap: 2.5rem;
	}
	.cases__tabs-nav {
		width: 300px;
	}
}

/* Approach Section */
.approach {
	background-color: var(--color-white);
}

.approach__timeline {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
	padding: 2rem 0;
}

/* The vertical line */
.approach__timeline::after {
	content: '';
	position: absolute;
	width: 3px;
	background-color: rgba(44, 62, 80, 0.1);
	top: 0;
	bottom: 0;
	left: 20px;
}

.approach__item {
	padding: 10px 40px;
	padding-left: 50px;
	position: relative;
	margin-bottom: 2.5rem;
}

/* The circle on the timeline */
.approach__item::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	left: 11.5px;
	top: 5px;
	background-color: var(--color-bg);
	border: 3px solid var(--color-accent);
	border-radius: 50%;
	z-index: 1;
}

.approach__item-content {
	padding: 1.5rem;
	background-color: var(--color-bg);
	border-radius: 8px;
	border: 1px solid rgba(44, 62, 80, 0.1);
	position: relative;
}

.approach__item-number {
	position: absolute;
	top: -20px;
	left: -20px;
	font-size: 3rem;
	font-weight: 700;
	font-family: var(--font-secondary);
	color: rgba(44, 62, 80, 0.08);
	z-index: 0;
}

.approach__item-title {
	font-family: var(--font-secondary);
	font-size: 1.4rem;
	margin-bottom: 0.5rem;
	position: relative;
	z-index: 2;
}

.approach__item-description {
	color: var(--color-text-light);
	font-size: 0.95rem;
	position: relative;
	z-index: 2;
}

/* Desktop Styles for Zigzag Timeline */
@media (min-width: 768px) {
	.approach__timeline::after {
		left: 50%;
		margin-left: -1.5px;
	}

	.approach__item {
		padding-left: 0;
		padding-right: 0;
		width: 50%;
	}

	/* Place items on the left */
	.approach__item:nth-child(odd) {
		left: 0;
		padding-right: 40px;
		text-align: right;
	}

	/* Place items on the right */
	.approach__item:nth-child(even) {
		left: 50%;
		padding-left: 40px;
	}

	/* Adjust circles for left and right items */
	.approach__item:nth-child(odd)::after {
		left: auto;
		right: -10px;
	}
	.approach__item:nth-child(even)::after {
		left: -10px;
	}

	.approach__item-number {
		left: auto;
		right: -20px;
	}

	.approach__item:nth-child(even) .approach__item-number {
		right: auto;
		left: -20px;
	}
}

/* Blog Section */
.blog {
	background-color: var(--color-bg);
}

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

.blog__card {
	display: flex;
	flex-direction: column;
	background-color: var(--color-white);
	border-radius: 12px;
	border: 1px solid rgba(44, 62, 80, 0.1);
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(44, 62, 80, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 30px rgba(44, 62, 80, 0.1);
}

.blog__card-image-wrapper {
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.blog__card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

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

.blog__card-content {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1; /* Pushes footer to the bottom */
}

.blog__card-category {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--color-accent);
	margin-bottom: 0.75rem;
	text-transform: uppercase;
}

.blog__card-title {
	font-family: var(--font-secondary);
	font-size: 1.25rem;
	line-height: 1.4;
	margin-bottom: 1rem;
	flex-grow: 1; /* Pushes footer to the bottom */
}

.blog__card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: auto; /* Pushes footer to the bottom */
	font-size: 0.9rem;
}

.blog__card-date {
	color: var(--color-text-light);
}

.blog__card-link {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	font-weight: 700;
	color: var(--color-accent);
}

.blog__card-link svg {
	width: 16px;
	height: 16px;
	transition: transform 0.3s ease;
}

.blog__card:hover .blog__card-link svg {
	transform: translateX(4px);
}

@media (min-width: 576px) {
	.blog__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

/* Contact Section */
.contact {
	background-color: var(--color-white);
}

.contact__wrapper {
	max-width: 700px;
	margin: 0 auto;
	background-color: var(--color-bg);
	padding: 2.5rem;
	border-radius: 12px;
	border: 1px solid rgba(44, 62, 80, 0.1);
}

.form__group {
	position: relative;
	margin-bottom: 1.5rem;
}

.form__input {
	width: 100%;
	padding: 0.8rem 1rem;
	border: 2px solid rgba(44, 62, 80, 0.2);
	border-radius: 8px;
	background-color: var(--color-white);
	font-size: 1rem;
	font-family: var(--font-primary);
	transition: border-color 0.3s ease;
}

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

.form__label {
	display: none;
	position: absolute;
	top: 0.8rem;
	left: 1rem;
	color: var(--color-text-light);
	pointer-events: none;
	transition: all 0.3s ease;
}

.form__input:focus ~ .form__label,
.form__input:not(:placeholder-shown) ~ .form__label {
	top: -0.6rem;
	left: 0.8rem;
	font-size: 0.8rem;
	background-color: var(--color-bg);
	padding: 0 0.25rem;
	color: var(--color-accent);
}

.form__group--checkbox {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.form__group--checkbox input[type='checkbox'] {
	width: 1.25em;
	height: 1.25em;
	accent-color: var(--color-accent);
}

.form__group--checkbox label {
	font-size: 0.9rem;
	color: var(--color-text-light);
}

.form__group--checkbox a {
	color: var(--color-accent);
	text-decoration: underline;
}

.contact__form-button {
	width: 100%;
	padding-top: 1rem;
	padding-bottom: 1rem;
	font-size: 1.1rem;
}

.contact__form-button:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* Success Message */
.contact__success-message {
	display: none; /* Initially hidden */
	text-align: center;
	padding: 2rem;
	animation: fadeIn 0.5s ease;
}

.contact__success-message.is-visible {
	display: block;
}

.contact__success-message svg {
	color: var(--color-accent);
	width: 60px;
	height: 60px;
	margin-bottom: 1rem;
}

.contact__success-message h3 {
	font-family: var(--font-secondary);
	font-size: 1.8rem;
	margin-bottom: 0.5rem;
}

/* Cookie Popup */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: var(--color-primary);
	color: var(--color-white);
	padding: 1.5rem;
	box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	transform: translateY(120%);
	transition: transform 0.5s ease-in-out;
}

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

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

.cookie-popup__text {
	font-size: 0.95rem;
	text-align: center;
}

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

.cookie-popup__button {
	flex-shrink: 0;
	padding: 0.6rem 1.8rem;
}

@media (min-width: 768px) {
	.cookie-popup__content {
		flex-direction: row;
	}
	.cookie-popup__text {
		text-align: left;
	}
}

/* Static Pages Styling (privacy.html, terms.html, etc.) */
.pages {
	padding-top: calc(var(--header-height) + 4rem);
	padding-bottom: 5rem;
	background-color: var(--color-white);
}

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

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

.pages h1 {
	font-size: clamp(1.5rem, 4vw, 2rem);
	border-bottom: 1px solid rgba(44, 62, 80, 0.1);
	padding-bottom: 1.5rem;
	margin-bottom: 2.5rem;
}

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

.pages p {
	margin-bottom: 1.5rem;
	line-height: 1.8;
	color: var(--color-text-light);
}

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

.pages li {
	margin-bottom: 1rem;
	line-height: 1.8;
	color: var(--color-text-light);
}

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

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

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