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

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

	--color-background: #f0ead6;
	--color-text-primary: #1d2d44;
	--color-text-secondary: #3e5062;
	--color-accent: #c9a959;
	--color-white: #ffffff;
	--color-dark-bg: #1d2d44;

	--header-height: 80px;
}

/* GLOBAL RESET & BASE STYLES */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

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

ul {
	list-style: none;
}

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

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

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

/* LOGO */
.logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-secondary);
	font-weight: 700;
	font-size: 24px;
	transition: opacity 0.3s ease;
}

.logo:hover {
	opacity: 0.8;
}

.logo svg {
	flex-shrink: 0;
}

/* HEADER */
.header {
	background-color: var(--color-background);
	height: var(--header-height);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	border-bottom: 1px solid rgba(29, 45, 68, 0.1);
}

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

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

.header__nav-link {
	font-size: 16px;
	font-weight: 500;
	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-accent);
	transition: width 0.3s ease;
}

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

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

.header__burger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--color-text-primary);
}

/* FOOTER */
.footer {
	background-color: var(--color-dark-bg);
	color: var(--color-white);
	padding: 60px 0;
}

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

.footer__column--logo .logo {
	color: var(--color-white);
}

.footer__column--logo .logo svg path {
	stroke: var(--color-white);
}

.footer__copy {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
	margin-top: 15px;
}

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

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer__link {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.7);
	transition: color 0.3s ease, padding-left 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.footer__link:hover {
	color: var(--color-accent);
	padding-left: 5px;
}

.footer__icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.footer__address {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 15px;
}

/* MOBILE MENU STYLES */
.header__nav {
	transition: all 0.3s ease;
}

.header__nav--mobile {
	position: fixed;
	top: var(--header-height);
	left: 0;
	right: 0;
	bottom: 0;
	background-color: var(--color-background);
	z-index: 99;
	transform: translateX(-100%);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	overflow-y: auto;
	padding: 20px;
}

.header__nav--mobile.is-open {
	transform: translateX(0);
	opacity: 1;
	visibility: visible;
}

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

.header__nav-link--mobile {
	font-size: 18px;
	font-weight: 500;
	padding: 15px 0;
	width: 100%;
	border-bottom: 1px solid rgba(29, 45, 68, 0.1);
	transition: all 0.3s ease;
}

.header__nav-link--mobile:hover {
	color: var(--color-accent);
	padding-left: 10px;
}

.header__nav-link--mobile::after {
	display: none;
}

/* Burger menu animation */
.header__burger {
	position: relative;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.header__burger i {
	transition: all 0.3s ease;
}

.header__burger.is-active i {
	transform: rotate(90deg);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 98;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.mobile-menu-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

/* Body scroll lock when menu is open */
.body--menu-open {
	overflow: hidden;
}

/* RESPONSIVE STYLES (Mobile-first approach) */
@media (max-width: 768px) {
	.header__nav {
		display: none; /* Hide desktop navigation on mobile */
	}

	.header__nav--mobile {
		display: block; /* Show mobile navigation */
	}

	.header__burger {
		display: flex; /* Show burger icon */
	}

	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}

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

	.footer__link,
	.footer__address {
		justify-content: center;
	}
}

@media (min-width: 769px) {
	.header__nav--mobile {
		display: none; /* Hide mobile navigation on desktop */
	}

	.header__burger {
		display: none; /* Hide burger icon on desktop */
	}

	.mobile-menu-overlay {
		display: none; /* Hide overlay on desktop */
	}
}

/* BUTTONS */
.button {
	display: inline-block;
	padding: 14px 32px;
	font-family: var(--font-secondary);
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	border-radius: 8px;
	cursor: pointer;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: none;
	background-color: var(--color-accent);
	color: var(--color-dark-bg);
}

.button:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(201, 169, 89, 0.3);
}

/* HERO SECTION */
.hero {
	padding: 80px 0;
	overflow: hidden; /* Важно для анимации */
}

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

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

.hero__text {
	font-size: 18px;
	line-height: 1.7;
	margin-bottom: 30px;
	color: var(--color-text-secondary);
	max-width: 500px;
}

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

.hero__image {
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Animation initial states */
.hero__title,
.hero__text,
.hero__cta {
	opacity: 0;
	transform: translateY(30px);
}

/* RESPONSIVE FOR HERO */
@media (max-width: 992px) {
	.hero__title {
		font-size: 1.5rem;
	}
	.hero__text {
		font-size: 16px;
	}
}

@media (max-width: 768px) {
	.hero {
		padding: 60px 0;
		text-align: center;
	}
	.hero__container {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.hero__content {
		order: 2;
	}
	.hero__image-wrapper {
		order: 1;
	}
	.hero__text {
		margin-left: auto;
		margin-right: auto;
	}
}

/* SECTION HEADER (Reusable) */
.section-header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 60px;
}

.section-header__title {
	font-family: var(--font-secondary);
	font-size: 36px;
	line-height: 1.3;
	margin-bottom: 15px;
}

.section-header__subtitle {
	font-size: 18px;
	color: var(--color-text-secondary);
}

/* SERVICES SECTION */
.services {
	padding: 80px 0;
	background-color: var(--color-white);
}

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

.service-card {
	background-color: #fff;
	border-radius: 12px;
	padding: 30px;
	text-align: center;
	border: 1px solid rgba(29, 45, 68, 0.1);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.07);
}

.service-card__icon {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: var(--color-background);
	color: var(--color-accent);
	margin-bottom: 20px;
}

.service-card__icon i {
	width: 32px;
	height: 32px;
}

.service-card__title {
	font-family: var(--font-secondary);
	font-size: 20px;
	margin-bottom: 10px;
}

.service-card__description {
	font-size: 15px;
	color: var(--color-text-secondary);
	line-height: 1.6;
}

/* RESPONSIVE FOR SERVICES */
@media (max-width: 768px) {
	.services {
		padding: 60px 0;
	}
	.section-header__title {
		font-size: 30px;
	}
	.section-header__subtitle {
		font-size: 16px;
	}
}

/* PATH SECTION */
.path {
	padding: 80px 0;
	position: relative;
	/* Убираем фон, чтобы он был как у body */
}

.path__timeline {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
}

/* Вертикальная линия таймлайна */
.path__timeline::after {
	content: '';
	position: absolute;
	width: 3px;
	background-color: rgba(201, 169, 89, 0.3);
	top: 0;
	bottom: 0;
	left: 50%;
	margin-left: -1.5px;
}

.path__item {
	padding: 10px 40px;
	position: relative;
	width: 50%;
}

/* Размещение блоков слева и справа */
.path__item:nth-child(odd) {
	left: 0;
	padding-right: 60px; /* Отступ от центральной линии */
	text-align: right;
}

.path__item:nth-child(even) {
	left: 50%;
	padding-left: 60px; /* Отступ от центральной линии */
}

/* Точки на таймлайне */
.path__dot {
	content: '';
	position: absolute;
	width: 15px;
	height: 15px;
	background-color: var(--color-white);
	border: 3px solid var(--color-accent);
	top: 25px;
	border-radius: 50%;
	z-index: 1;
}

.path__item:nth-child(odd) .path__dot {
	right: -7.5px;
}

.path__item:nth-child(even) .path__dot {
	left: -7.5px;
}

.path__content {
	padding: 20px;
	background-color: var(--color-white);
	position: relative;
	border-radius: 8px;
	border: 1px solid rgba(29, 45, 68, 0.1);
}

.path__step {
	font-family: var(--font-secondary);
	font-size: 14px;
	font-weight: 600;
	color: var(--color-accent);
	margin-bottom: 5px;
	display: block;
}

.path__title {
	font-family: var(--font-secondary);
	font-size: 22px;
	margin-bottom: 10px;
}

.path__description {
	font-size: 15px;
	color: var(--color-text-secondary);
}

/* RESPONSIVE FOR PATH */
@media screen and (max-width: 768px) {
	.path {
		padding: 60px 0;
	}

	.path__timeline::after {
		left: 20px; /* Смещаем линию влево */
	}

	.path__item {
		width: 100%;
		padding-left: 50px; /* Отступ для контента */
		padding-right: 15px;
	}

	.path__item:nth-child(odd),
	.path__item:nth-child(even) {
		left: 0;
		text-align: left;
	}

	.path__dot {
		left: 12.5px !important; /* Ставим точку на линию */
	}
}

/* CASES SECTION */
.cases {
	padding: 80px 0;
	background-color: var(--color-white);
}

.cases__slider {
	width: 100%;
	padding: 15px 0 40px; /* Добавили отступ снизу для навигации */
}

.case-card {
	background-color: var(--color-background);
	border-radius: 12px;
	padding: 25px;
	height: 100%;
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(29, 45, 68, 0.05);
}

.case-card__avatar {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 20px;
	border: 3px solid var(--color-white);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.case-card__name {
	font-family: var(--font-secondary);
	font-size: 20px;
	margin-bottom: 5px;
}

.case-card__journey {
	font-size: 14px;
	color: var(--color-accent);
	font-weight: 600;
	margin-bottom: 15px;
}

.case-card__quote {
	font-size: 15px;
	color: var(--color-text-secondary);
	border-left: 3px solid var(--color-accent);
	padding-left: 15px;
	margin: 0;
	font-style: italic;
}

/* SWIPER NAVIGATION */
.cases__navigation {
	position: relative;
	max-width: 150px;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	gap: 30px;
}

.swiper-button-prev,
.swiper-button-next {
	position: static;
	margin: 0;
	width: 44px !important;
	height: 44px !important;
	background-color: var(--color-white);
	border: 1px solid rgba(29, 45, 68, 0.1);
	border-radius: 50%;
	color: var(--color-accent);
	transition: background-color 0.3s, color 0.3s;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
	background-color: var(--color-accent);
	color: var(--color-white);
}

.swiper-button-prev::after,
.swiper-button-next::after {
	font-size: 18px !important;
	font-weight: 900;
}

/* BLOG SECTION */
.blog {
	padding: 80px 0;
	/* Фон как у body */
}

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

.blog-card {
	background-color: var(--color-white);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(29, 45, 68, 0.1);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.07);
}

.blog-card__image-link {
	display: block;
	overflow: hidden;
}

.blog-card__image {
	width: 100%;
	height: 200px;
	object-fit: cover;
	transition: transform 0.4s ease;
}

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

.blog-card__content {
	padding: 25px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.blog-card__category {
	font-size: 13px;
	font-weight: 600;
	color: var(--color-accent);
	text-transform: uppercase;
	margin-bottom: 10px;
}

.blog-card__title {
	font-family: var(--font-secondary);
	font-size: 20px;
	line-height: 1.4;
	margin-bottom: 15px;
	flex-grow: 1;
}

.blog-card__title a {
	transition: color 0.3s ease;
}

.blog-card__title a:hover {
	color: var(--color-accent);
}

.blog-card__read-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--color-text-primary);
	transition: color 0.3s ease, gap 0.3s ease;
}

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

.blog-card__read-more:hover {
	color: var(--color-accent);
	gap: 12px;
}

/* CONTACT SECTION */
.contact {
	padding: 80px 0;
	background-color: var(--color-white);
}

.contact__wrapper {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 60px;
	background-color: var(--color-background);
	padding: 60px;
	border-radius: 16px;
}

.contact__title {
	font-family: var(--font-secondary);
	font-size: 36px;
	line-height: 1.3;
}

.contact__description {
	font-size: 18px;
	color: var(--color-text-secondary);
	margin-top: 20px;
}

/* FORM STYLES */
.form-group {
	position: relative;
	margin-bottom: 25px;
}

.form-group__input {
	width: 100%;
	padding: 14px 15px;
	font-size: 16px;
	font-family: var(--font-primary);
	border: 1px solid rgba(29, 45, 68, 0.2);
	border-radius: 8px;
	background-color: var(--color-white);
	transition: border-color 0.3s ease;
}

.form-group__label {
	position: absolute;
	left: 15px;
	top: 15px;
	background-color: var(--color-white);
	padding: 0 5px;
	color: var(--color-text-secondary);
	pointer-events: none;
	transition: transform 0.3s ease, font-size 0.3s ease, color 0.3s ease;
}

.form-group__input:focus,
.form-group__input:not(:placeholder-shown) {
	outline: none;
	border-color: var(--color-accent);
}

.form-group__input:focus + .form-group__label,
.form-group__input:not(:placeholder-shown) + .form-group__label {
	transform: translateY(-26px) scale(0.9);
	font-size: 14px;
	color: var(--color-accent);
}

/* CHECKBOX */
.form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 30px;
}

.form-group--checkbox input[type='checkbox'] {
	margin-top: 4px;
	flex-shrink: 0;
}

.form-group--checkbox label {
	font-size: 14px;
	color: var(--color-text-secondary);
}

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

.contact-form__button {
	width: 100%;
}

.form-success {
	text-align: center;
	padding: 40px;
	border: 2px dashed var(--color-accent);
	border-radius: 8px;
	background-color: rgba(201, 169, 89, 0.05);
	transition: all 0.3s ease;
}

.form-success h3 {
	font-family: var(--font-secondary);
	font-size: 24px;
	margin-bottom: 10px;
	color: var(--color-accent);
}

.form-success p {
	font-size: 16px;
	color: var(--color-text-secondary);
	margin: 0;
}

/* RESPONSIVE FOR CONTACT */
@media (max-width: 992px) {
	.contact__wrapper {
		grid-template-columns: 1fr;
		padding: 40px;
	}
}
@media (max-width: 768px) {
	.contact {
		padding: 60px 0;
	}
	.contact__wrapper {
		padding: 30px;
	}
}

/* COOKIE POP-UP */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: var(--color-dark-bg);
	color: var(--color-white);
	padding: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
	transform: translateY(100%);
	transition: transform 0.5s ease-in-out;
	z-index: 200;
}

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

.cookie-popup__text {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.8);
}

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

.cookie-popup__button {
	background-color: var(--color-accent);
	color: var(--color-dark-bg);
	border: none;
	padding: 10px 20px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	white-space: nowrap;
	transition: opacity 0.3s ease;
}

.cookie-popup__button:hover {
	opacity: 0.9;
}

/* RESPONSIVE FOR COOKIE POP-UP */
@media (max-width: 768px) {
	.cookie-popup {
		flex-direction: column;
		text-align: center;
	}
}

/* ============================================= */
/* LEGAL & TEXT PAGES STYLES           */
/* ============================================= */

.pages {
	padding: 80px 0;
	background-color: var(--color-white);
}

.pages .container {
	max-width: 800px; /* Делаем контейнер уже для лучшей читабельности текста */
}

.pages h1,
.pages h2 {
	font-family: var(--font-secondary);
	line-height: 1.3;
	margin-bottom: 20px;
	color: var(--color-text-primary);
}

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

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

.pages p {
	font-size: 16px;
	line-height: 1.8;
	color: var(--color-text-secondary);
	margin-bottom: 20px;
}

.pages ul,
.pages ol {
	padding-left: 25px;
	margin-bottom: 20px;
}

.pages li {
	font-size: 16px;
	line-height: 1.8;
	color: var(--color-text-secondary);
	margin-bottom: 10px;
}

.pages a {
	color: var(--color-accent);
	text-decoration: underline;
	transition: color 0.3s ease;
}

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

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