/* GLOBAL STYLES */
:root {
	--background-color: #ffffff;
	--text-color: #2d3748;
	--primary-color: #2a4365;
	--accent-color: #f6ad55;
	--light-gray-color: #f7fafc;
	--header-height: 80px;
	--font-family-base: 'Montserrat', sans-serif;
	--font-family-heading: 'Lora', serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-family-base);
	background-color: var(--background-color);
	color: var(--text-color);
	line-height: 1.6;
	font-size: 16px;
}

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

ul {
	list-style: none;
}

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

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

.logo:hover {
	opacity: 0.8;
}

.logo__icon {
	color: var(--accent-color);
}

/* HEADER */
.header {
	background-color: var(--background-color);
	border-bottom: 1px solid #e2e8f0;
	height: var(--header-height);
	position: sticky;
	top: 0;
	z-index: 1000;
}

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

.header__nav {
	display: none;
}

.nav__list {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.nav__link {
	font-weight: 500;
	transition: color 0.3s ease;
	padding: 8px 0;
	position: relative;
}

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

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

.nav__link:hover::after {
	width: 100%;
}

.nav__link--button {
	background-color: var(--accent-color);
	color: var(--background-color);
	padding: 10px 20px;
	border-radius: 5px;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.nav__link--button:hover {
	background-color: var(--primary-color);
	color: var(--background-color);
}
.nav__link--button::after {
	display: none;
}

/* BURGER */
.burger {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	width: 2rem;
	height: 2rem;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 10;
}

.burger__line {
	width: 2rem;
	height: 0.25rem;
	background: var(--primary-color);
	border-radius: 10px;
	transition: all 0.3s linear;
	position: relative;
	transform-origin: 1px;
}

/* Mobile Nav Styles */
.nav--open {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(5px);
}

.nav--open .nav__list {
	flex-direction: column;
	font-size: 1.5rem;
	gap: 30px;
}

.header.nav-open .burger__line:first-child {
	transform: rotate(45deg);
}

.header.nav-open .burger__line:nth-child(2) {
	opacity: 0;
	transform: translateX(20px);
}

.header.nav-open .burger__line:last-child {
	transform: rotate(-45deg);
}

/* FOOTER */
.footer {
	background-color: var(--light-gray-color);
	padding: 60px 0;
	border-top: 1px solid #e2e8f0;
}

.footer__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
}

.footer__column:first-child {
	margin-bottom: 20px;
}

.footer__logo {
	margin-bottom: 15px;
}

.footer__copyright {
	font-size: 0.9rem;
	color: #718096;
}

.footer__title {
	font-family: var(--font-family-heading);
	font-size: 1.2rem;
	margin-bottom: 20px;
	color: var(--primary-color);
}

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

.footer__link {
	transition: color 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

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

.footer__list--contacts li {
	display: flex;
	align-items: center;
}

.footer__icon {
	width: 20px;
	height: 20px;
	color: var(--primary-color);
	flex-shrink: 0;
}
.footer__address {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

/* DESKTOP STYLES */
@media (min-width: 768px) {
	.burger {
		display: none;
	}

	.header__nav {
		display: block;
	}

	.nav__list {
		flex-direction: row;
		align-items: center;
		gap: 30px;
	}

	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.footer__container {
		grid-template-columns: repeat(4, 1fr);
		gap: 30px;
	}
}

/* BUTTON */
.button {
	display: inline-block;
	background-color: var(--accent-color);
	color: #ffffff; /* Белый текст для контраста */
	padding: 12px 28px;
	border-radius: 5px;
	font-weight: 700;
	text-align: center;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
	background-color: #dd9236; /* Более темный оттенок оранжевого при наведении */
	transform: translateY(-2px);
}

/* HERO SECTION */
.hero {
	padding: 60px 0;
	background-color: var(--background-color);
	display: flex;
	align-items: center;
	min-height: calc(100vh - var(--header-height));
}

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

.hero__title {
	font-family: var(--font-family-heading);
	font-size: 2.5rem;
	color: var(--primary-color);
	line-height: 1.2;
	margin-bottom: 20px;
}

.hero__title-word {
	display: inline-block;
	opacity: 0;
	transform: translateY(25px);
	transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

.hero__description {
	font-size: 1.1rem;
	margin-bottom: 30px;
	max-width: 500px;
}

.hero__image-wrapper {
	text-align: center;
}

.hero__image {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* DESKTOP STYLES for HERO */
@media (min-width: 768px) {
	.hero {
		padding: 80px 0;
	}

	.hero__title {
		font-size: 3rem;
	}
}

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

	.hero__title {
		font-size: 3.5rem;
	}
}

/* SECTION TITLE */
.section-title {
	font-family: var(--font-family-heading);
	font-size: 2.2rem;
	color: var(--primary-color);
	text-align: center;
	margin-bottom: 50px;
}

/* STRATEGIES SECTION */
.strategies {
	padding: 80px 0;
	background-color: var(--light-gray-color);
}

.strategies__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}

.strategy-card {
	background-color: var(--background-color);
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 30px;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.strategy-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 20px rgba(42, 67, 101, 0.1);
}

.strategy-card__icon-wrapper {
	margin: 0 auto 20px;
	width: 64px;
	height: 64px;
	background-color: #e9d8fd; /* Нежный фиолетовый фон */
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.strategy-card__icon {
	width: 32px;
	height: 32px;
	color: var(--primary-color);
}

.strategy-card__title {
	font-family: var(--font-family-heading);
	font-size: 1.5rem;
	color: var(--primary-color);
	margin-bottom: 15px;
}

.strategy-card__description {
	font-size: 1rem;
	line-height: 1.6;
}

/* DESKTOP STYLES for STRATEGIES */
@media (min-width: 768px) {
	.strategies__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.strategies__grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.section-title {
		font-size: 2.5rem;
	}
}

/* RESUME SECTION */
.resume {
	padding: 80px 0;
	background-color: var(--background-color);
}

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

.resume__image {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.resume__title {
	text-align: left;
	margin-bottom: 20px;
}

.resume__description {
	margin-bottom: 30px;
}

.resume__feature-list {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.resume__feature-item {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.resume__feature-icon {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	color: var(--accent-color);
	margin-top: 5px;
}

.resume__feature-text {
	display: flex;
	flex-direction: column;
}

.resume__feature-text strong {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 5px;
}

/* DESKTOP STYLES for RESUME */
@media (min-width: 768px) {
	.resume__container {
		grid-template-columns: 1fr 1.2fr; /* Правая колонка чуть шире */
		gap: 50px;
	}
}

/* INTERVIEWS SECTION */
.interviews {
	padding: 80px 0;
	background-color: var(--light-gray-color);
}

.interviews__container {
	max-width: 800px;
	margin: 0 auto;
}

/* ACCORDION */
.accordion {
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
}

.accordion__item {
	border-bottom: 1px solid #e2e8f0;
}

.accordion__item:last-child {
	border-bottom: none;
}

.accordion__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 20px;
	background-color: var(--background-color);
	border: none;
	cursor: pointer;
	text-align: left;
	font-family: var(--font-family-base);
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--primary-color);
	transition: background-color 0.3s ease;
}

.accordion__header:hover {
	background-color: #f7fafc;
}

.accordion__icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	transition: transform 0.3s ease-in-out;
}

.accordion__content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-in-out, padding 0.3s ease;
	background-color: var(--background-color);
}

.accordion__text {
	padding: 0 20px 20px;
	line-height: 1.7;
}

/* Active state for accordion */
.accordion__item--active .accordion__header {
	background-color: #f7fafc;
}

.accordion__item--active .accordion__icon {
	transform: rotate(180deg);
}

.accordion__item--active .accordion__content {
	/* max-height should be large enough to fit content */
	max-height: 300px;
}

/* BRAND SECTION */
.brand {
	padding: 80px 0;
	background-color: var(--background-color);
}

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

.brand__image-wrapper {
	/* На мобильных устройствах изображение будет вторым */
	order: 1;
}
.brand__content {
	order: 2;
}

.brand__image {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.brand__title {
	text-align: left;
	margin-bottom: 20px;
}

.brand__description {
	margin-bottom: 20px;
}
.brand__description:last-of-type {
	margin-bottom: 30px;
}

/* DESKTOP STYLES for BRAND */
@media (min-width: 768px) {
	.brand__container {
		grid-template-columns: 1.2fr 1fr; /* Левая колонка чуть шире */
		gap: 50px;
	}
	.brand__image-wrapper {
		/* На десктопе изображение будет справа */
		order: 2;
	}
	.brand__content {
		order: 1;
	}
}

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

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

.contact__title {
	text-align: left;
}

.contact__description {
	margin-top: 20px;
}

/* CONTACT FORM */
.form-group {
	margin-bottom: 20px;
}

.form-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
}

.form-input {
	width: 100%;
	padding: 12px;
	border: 1px solid #cbd5e0;
	border-radius: 5px;
	font-size: 1rem;
	font-family: var(--font-family-base);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 2px rgba(42, 67, 101, 0.2);
}

.form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 10px;
}

.form-checkbox {
	margin-top: 5px;
	flex-shrink: 0;
}
.form-checkbox-label {
	font-size: 0.9rem;
}
.form-checkbox-label a {
	color: var(--primary-color);
	text-decoration: underline;
}

.contact-form__button {
	width: 100%;
}

/* SUCCESS MESSAGE */
.success-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 40px;
	border: 1px solid #a0aec0;
	border-radius: 8px;
}
.success-message__icon {
	width: 48px;
	height: 48px;
	color: var(--accent-color);
	margin-bottom: 20px;
}
.success-message__title {
	font-family: var(--font-family-heading);
	font-size: 1.8rem;
	color: var(--primary-color);
	margin-bottom: 10px;
}

/* DESKTOP STYLES for CONTACT */
@media (min-width: 768px) {
	.contact__container {
		grid-template-columns: 1fr 1.2fr;
		gap: 60px;
	}
}

/* COOKIE POP-UP */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--primary-color);
	color: var(--background-color);
	padding: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
	z-index: 2000;
	transform: translateY(100%);
	transition: transform 0.5s ease-in-out;
}

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

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

.cookie-popup__text a {
	color: var(--background-color);
	text-decoration: underline;
	font-weight: 700;
}

.cookie-popup__button {
	background-color: var(--accent-color);
	color: var(--primary-color);
	padding: 8px 24px;
}
.cookie-popup__button:hover {
	background-color: #ffffff;
}

/* DESKTOP STYLES for COOKIE */
@media (min-width: 768px) {
	.cookie-popup {
		flex-direction: row;
		justify-content: center;
		padding: 20px 30px;
	}
	.cookie-popup__text {
		text-align: left;
	}
}

/* ==========================================================================
   STYLES FOR STATIC CONTENT PAGES (PRIVACY, TERMS, ETC.)
   ========================================================================== */

.pages {
	padding: 60px 0;
}

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

.pages h1,
.pages h2 {
	font-family: var(--font-family-heading);
	color: var(--primary-color);
	margin-bottom: 20px;
}

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

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

.pages p,
.pages li {
	line-height: 1.8;
	margin-bottom: 15px;
}

.pages ul {
	list-style: disc;
	padding-left: 20px;
	margin-top: 20px;
}

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

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

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