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

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

	/* Colors */
	--color-bg: #f9f9f7;
	--color-text: #1a2e2a;
	--color-primary: #007f5f;
	--color-accent: #e6a941;
	--color-border: #e0e0e0;
	--color-white: #ffffff;

	/* Font and Typography */
	--font-body: 'Inter', sans-serif;
	--font-heading: 'Manrope', sans-serif;

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

	/* z-index */
	--z-header: 100;
	--z-menu: 110;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	font-size: var(--font-size-normal);
	background-color: var(--color-bg);
	color: var(--color-text);
	line-height: 1.6;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

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

h1,
h2,
h3,
h4 {
	font-family: var(--font-heading);
	font-weight: 800;
	color: var(--color-text);
	line-height: 1.3;
	margin-bottom: 1rem;
}

h1 {
	font-size: var(--font-size-h1);
}
h2 {
	font-size: var(--font-size-h2);
}
h3 {
	font-size: var(--font-size-h3);
}

ul {
	list-style: none;
}

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

a:hover {
	text-decoration: underline;
}

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

/* ==================== REUSABLE CLASSES ==================== */
.container {
	max-width: 1140px;
	width: calc(100% - 2rem);
	margin-left: auto;
	margin-right: auto;
}

.main {
	flex: 1; /* Pushes footer down */
}

/* Button Styles */
.btn {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 6px;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: var(--font-size-normal);
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
	text-decoration: none;
	transform: translateY(-3px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn--primary {
	background-color: var(--color-accent);
	color: var(--color-text);
}

.btn--primary:hover {
	background-color: #f0b550; /* Slightly lighter accent */
}

/* ==================== HEADER & LOGO ==================== */
.header {
	width: 100%;
	height: var(--header-height);
	background-color: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
	position: fixed;
	top: 0;
	left: 0;
	z-index: var(--z-header);
}

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

.logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	color: var(--color-text);
}

.logo__svg {
	width: 32px;
	height: 32px;
}
/* SVG Path styling */
.logo__svg path {
	stroke: var(--color-primary);
	fill: none;
}

.logo__text {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--color-text);
}

/* ==================== NAVIGATION (Mobile First) ==================== */
.header__nav {
	position: fixed;
	top: 0;
	right: -100%; /* Hidden by default */
	width: 80%;
	height: 100vh;
	background-color: var(--color-bg);
	box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
	padding: 6rem 2rem 2rem;
	transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
	z-index: var(--z-menu);
}

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

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

.header__nav-link {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--color-text);
	text-decoration: none;
	transition: color 0.3s ease;
}

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

/* Specific style for CTA in mobile nav */
.header__nav-list .btn--primary {
	text-align: center;
}

/* Burger Menu Button */
.header__burger {
	display: block;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--color-text);
	z-index: var(--z-menu); /* Above nav overlay */
}

.header__burger-icon {
	width: 28px;
	height: 28px;
}

.header__burger-icon--close {
	display: none;
}

/* Toggle icons */
.header__burger--open .header__burger-icon--menu {
	display: none;
}
.header__burger--open .header__burger-icon--close {
	display: block;
}

/* ==================== FOOTER ==================== */
.footer {
	background-color: var(--color-text);
	color: var(--color-bg);
	padding: 4rem 0 2rem;
	margin-top: 4rem; /* Space before footer */
}

.footer__grid {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: 1fr; /* Mobile: 1 column */
	margin-bottom: 3rem;
}

.footer__title {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 1.25rem;
	color: var(--color-accent);
	margin-bottom: 1rem;
}

.footer__description {
	font-size: var(--font-size-small);
	line-height: 1.5;
	opacity: 0.8;
}

/* Footer logo styles */
.footer__logo .logo__text {
	color: var(--color-bg);
}
.footer__logo .logo__svg path {
	stroke: var(--color-accent);
}

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

.footer__link {
	color: var(--color-bg);
	text-decoration: none;
	font-size: var(--font-size-normal);
	opacity: 0.8;
	transition: opacity 0.3s ease, color 0.3s ease;
}

.footer__link:hover {
	opacity: 1;
	color: var(--color-accent);
	text-decoration: none;
}

.footer__address {
	font-style: normal;
}
.footer__address p {
	margin-bottom: 0.5rem;
	opacity: 0.8;
	line-height: 1.5;
}
.footer__address .footer__link {
	opacity: 1; /* Make links in address fully visible */
}

.footer__bottom {
	text-align: center;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 2rem;
	font-size: var(--font-size-small);
	opacity: 0.7;
}

/* ==================== HERO SECTION ==================== */
.hero {
	padding: 4rem 0;
	/* Відступ зверху, щоб компенсувати фіксований хедер */
	margin-top: var(--header-height);
}

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

.hero__subtitle {
	display: block;
	font-family: var(--font-heading);
	font-weight: 600;
	color: var(--color-primary);
	margin-bottom: 0.5rem;
}

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

.hero__description {
	font-size: 1rem;
	line-height: 1.7;
	margin-bottom: 2rem;
	color: var(--color-text);
	opacity: 0.9;
}

.hero__btn {
	padding: 1rem 2rem; /* Робимо кнопку трохи більшою */
	font-size: 1.125rem;
}

.hero__image-wrapper {
	width: 100%;
	max-width: 500px;
	margin: 0 auto;
}

.hero__image {
	width: 100%;
	height: auto;
	border-radius: 12px;
	object-fit: cover;
	/* М'яка тінь для зображення */
	box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
}

/* ==================== STRATEGIES SECTION ==================== */
.strategies {
	padding: 4rem 0;
	background-color: var(--color-white); /* Змінимо фон для контрасту */
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
}

.strategies__header {
	max-width: 700px;
	margin: 0 auto 3rem auto;
	text-align: center;
}

.strategies__subtitle {
	display: block;
	font-family: var(--font-heading);
	font-weight: 600;
	color: var(--color-primary);
	margin-bottom: 0.5rem;
}

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

.strategies__description {
	font-size: 1.125rem;
	opacity: 0.9;
}

.strategies__grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr; /* 1 колонка на мобільних */
}

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

.strategies__card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.strategies__icon-wrapper {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: var(--color-primary);
	color: var(--color-white);
	margin-bottom: 1.5rem;
}

.strategies__icon-wrapper i {
	width: 32px;
	height: 32px;
}

.strategies__card-title {
	font-size: 1.25rem;
	font-family: var(--font-heading);
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.strategies__card-description {
	font-size: var(--font-size-normal);
	opacity: 0.8;
	line-height: 1.6;
}

/* ==================== RESPONSIVE (Desktop) ==================== */

/* Tablet and small desktop */
@media (min-width: 768px) {
	:root {
		--font-size-h1: 3rem;
		--font-size-h2: 2.25rem;
		--font-size-h3: 1.75rem;
	}

	body {
		/* Add margin-top to body to offset fixed header */
		margin-top: var(--header-height);
	}

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

	.header__nav {
		position: static;
		width: auto;
		height: auto;
		background: none;
		box-shadow: none;
		padding: 0;
		transition: none;
	}

	.header__nav-list {
		flex-direction: row;
		align-items: center;
		gap: 2rem;
	}

	.header__nav-link {
		font-size: var(--font-size-normal);
		font-weight: 700;
	}

	.header__nav-list .btn--primary {
		margin-left: 1rem;
	}

	.footer__grid {
		/* 2 columns for tablet */
		grid-template-columns: repeat(2, 1fr);
	}

	/* Hero section update */
	.hero__container {
		grid-template-columns: 1fr 1fr; /* 2 колонки на планшеті */
		text-align: left;
	}
	.hero__image-wrapper {
		margin: 0;
	}

	/* Strategies section update */
	.strategies__grid {
		grid-template-columns: repeat(3, 1fr); /* 3 колонки на планшеті */
	}

	.cv__container {
		grid-template-columns: 1fr 1fr;
	}

	.brand__container {
		grid-template-columns: 1fr 1fr;
	}

	.brand__image-wrapper {
		order: 2; /* Змінюємо порядок, щоб зображення було праворуч */
	}

	.brand__content {
		order: 1;
	}

    /* Cookie Popup update */
    .cookie-popup__container {
        flex-direction: row;
        justify-content: space-between;
        gap: 2rem;
    }

    .cookie-popup__text {
        text-align: left;
    }

    .cookie-popup__btn {
        width: auto; /* Автоматична ширина на десктопі */
        flex-shrink: 0; /* Щоб кнопка не стискалася */
    }
}

/* Large desktop */
@media (min-width: 992px) {
	.footer__grid {
		/* 4 columns as requested */
		grid-template-columns: 2fr 1fr 1fr 1.5fr;
		gap: 3rem;
	}
}

/* ==================== CV SECTION ==================== */
.cv {
	padding: 4rem 0;
}

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

.cv__image-wrapper {
	width: 100%;
	max-width: 500px;
	margin: 0 auto;
}

.cv__image {
	width: 100%;
	height: auto;
	border-radius: 12px;
	object-fit: cover;
	box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
}

.cv__subtitle {
	display: block;
	font-family: var(--font-heading);
	font-weight: 600;
	color: var(--color-primary);
	margin-bottom: 0.5rem;
}

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

.cv__description {
	font-size: 1.125rem;
	opacity: 0.9;
	margin-bottom: 2rem;
}

.cv__checklist {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 2.5rem;
}

.cv__checklist-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: var(--font-size-normal);
}

.cv__checklist-icon {
	width: 24px;
	height: 24px;
	color: var(--color-primary);
	flex-shrink: 0; /* Щоб іконка не стискалася */
}

/* ==================== INTERVIEW (Accordion) ==================== */
.interview {
	padding: 4rem 0;
	background-color: var(--color-white); /* Змінимо фон */
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
}

.interview__header {
	max-width: 700px;
	margin: 0 auto 3rem auto;
	text-align: center;
}

.interview__subtitle {
	display: block;
	font-family: var(--font-heading);
	font-weight: 600;
	color: var(--color-primary);
	margin-bottom: 0.5rem;
}

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

.interview__description {
	font-size: 1.125rem;
	opacity: 0.9;
}

.interview__accordion {
	max-width: 800px;
	margin: 0 auto;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	overflow: hidden; /* Для заокруглення кутів */
	background-color: var(--color-bg);
}

.interview__item {
	border-bottom: 1px solid var(--color-border);
}
.interview__item:last-child {
	border-bottom: none;
}

.interview__item-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.interview__item-header:hover {
	background-color: rgba(0, 0, 0, 0.02);
}

.interview__item-title {
	font-size: 1.125rem;
	font-family: var(--font-heading);
	font-weight: 600;
	margin-bottom: 0;
}

.interview__item-icon {
	width: 24px;
	height: 24px;
	color: var(--color-primary);
	transition: transform 0.3s ease;
	flex-shrink: 0;
	margin-left: 1rem;
}

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

.interview__item-content p {
	padding: 0 1.5rem 1.5rem;
	line-height: 1.7;
	opacity: 0.9;
}

/* Accordion Open State */
.interview__item--open .interview__item-icon {
	transform: rotate(180deg);
}

.interview__item--open .interview__item-content {
	/* JS буде встановлювати max-height */
}

/* ==================== BRAND SECTION ==================== */
.brand {
	padding: 4rem 0;
}

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

.brand__image-wrapper {
	width: 100%;
	max-width: 500px;
	margin: 0 auto;
}

.brand__image {
	width: 100%;
	height: auto;
	border-radius: 12px;
	object-fit: cover;
	box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
}

.brand__subtitle {
	display: block;
	font-family: var(--font-heading);
	font-weight: 600;
	color: var(--color-primary);
	margin-bottom: 0.5rem;
}

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

.brand__description {
	font-size: 1.125rem;
	opacity: 0.9;
	margin-bottom: 2rem;
}

.brand__checklist {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.brand__checklist-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: var(--font-size-normal);
}

.brand__checklist-icon {
	width: 24px;
	height: 24px;
	color: var(--color-primary);
	flex-shrink: 0;
}

.brand__note {
	font-size: var(--font-size-small);
	opacity: 0.7;
	font-style: italic;
	margin-bottom: 2.5rem;
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    padding: 4rem 0;
    background-color: var(--color-white); /* Контрастний фон */
    border-top: 1px solid var(--color-border);
}

.contact__header {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.contact__subtitle {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

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

.contact__description {
    font-size: 1.125rem;
    opacity: 0.9;
}

.contact__content-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--color-bg);
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

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

.contact__input-group {
    display: flex;
    flex-direction: column;
}

.contact__label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--font-size-small);
    margin-bottom: 0.5rem;
}

.contact__input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background-color: var(--color-white);
    font-family: var(--font-body);
    font-size: var(--font-size-normal);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 127, 95, 0.2);
}

/* Checkbox */
.contact__checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.contact__checkbox {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.15em; /* Вирівнювання по тексту */
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.contact__checkbox-label {
    font-size: var(--font-size-small);
    line-height: 1.5;
    opacity: 0.8;
}
.contact__checkbox-label a {
    text-decoration: underline;
}
.contact__checkbox-label a:hover {
    color: var(--color-text);
}

.contact__btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
}

/* Success Message */
.contact__success-message {
    display: none; /* Приховано за замовчуванням */
    padding: 1.5rem;
    background-color: rgba(0, 127, 95, 0.1); /* --color-primary з прозорістю */
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    text-align: center;
    color: var(--color-text);
    font-weight: 600;
}

.contact__success-message i {
    color: var(--color-primary);
    width: 32px;
    height: 32px;
    margin-bottom: 0.5rem;
}

.contact__success-message--show {
    display: block; /* Показати при успіху */
}

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-text);
    color: var(--color-bg);
    padding: 1.5rem 0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    z-index: 200; /* Поверх усього */
    transform: translateY(100%); /* Приховано за замовчуванням */
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Стан "показано" */
.cookie-popup--show {
    transform: translateY(0);
}

.cookie-popup__container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.cookie-popup__text {
    font-size: var(--font-size-small);
    line-height: 1.5;
    opacity: 0.9;
    text-align: center;
}

.cookie-popup__link {
    color: var(--color-accent);
    text-decoration: underline;
}
.cookie-popup__link:hover {
    color: var(--color-white);
}

.cookie-popup__btn {
    width: 100%; /* На всю ширину на мобільних */
    padding: 0.75rem 1rem;
}

/* ==================== PAGES (Політики, Умови) ==================== */
.pages {
    padding: 4rem 0;
    margin-top: var(--header-height); /* Відступ для фіксованого хедера */
    min-height: 60vh; /* Мінімальна висота, щоб футер не прилипав */
}

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

/* * Для цих сторінок ми використовуємо стандартні теги 
 * без БЭМ-класів, щоб було легко вставляти контент.
 */

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

.pages h2 {
    font-size: var(--font-size-h2);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.pages p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.pages ul {
    list-style: disc; /* Повертаємо стандартні маркери */
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.pages li {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

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

.pages a {
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

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