/* ЭТАП 0: Глобальные стили */
:root {
	--font-primary: 'Lato', sans-serif;
	--font-secondary: 'Montserrat', sans-serif;

	--color-text: #2c3e50;
	--color-background: #ffffff;
	--color-background-light: #ecf0f1;
	--color-primary: #1abc9c;
	--color-footer-bg: #34495e;
	--color-footer-text: #ecf0f1;

	--header-height: 70px;
}

*,
*::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;
	color: var(--color-text);
	background-color: var(--color-background);
}

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

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color 0.3s ease;
}

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

ul {
	list-style: none;
}

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

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

/* ЭТАП 1: Хедер */
.header {
	background-color: var(--color-background);
	border-bottom: 1px solid var(--color-background-light);
	height: var(--header-height);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
}

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

.header__logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-secondary);
	font-weight: 700;
	font-size: 24px;
	color: var(--color-text);
}

.header__logo-img {
	width: 32px;
	height: 32px;
}

.header__nav {
	position: fixed;
	top: var(--header-height);
	left: -100%;
	width: 100%;
	height: calc(100vh - var(--header-height));
	background-color: var(--color-background);
	display: flex;
	justify-content: center;
	align-items: center;
	transition: left 0.3s ease-in-out;
}

.header__nav--active {
	left: 0;
}

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

.header__nav-link {
	font-family: var(--font-secondary);
	font-size: 20px;
	font-weight: 600;
	color: var(--color-text);
	padding: 5px;
}
.header__nav-link:hover {
	color: var(--color-primary);
}

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

/* Адаптивность хедера */
@media (min-width: 992px) {
	.header__nav {
		position: static;
		height: auto;
		width: auto;
		background-color: transparent;
		transition: none;
	}

	.header__nav-list {
		flex-direction: row;
		gap: 35px;
	}

	.header__nav-link {
		font-size: 16px;
	}

	.header__burger-btn {
		display: none;
	}
}

/* ЭТАП 2: Футер */
.footer {
	background-color: var(--color-footer-bg);
	color: var(--color-footer-text);
	padding: 60px 0;
}

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

.footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-secondary);
	font-weight: 700;
	font-size: 24px;
	color: var(--color-footer-text);
	margin-bottom: 15px;
}

.footer__logo-img {
	width: 32px;
	height: 32px;
}

.footer__logo-img path {
	stroke: var(--color-footer-text);
}

.footer__copyright {
	font-size: 14px;
	opacity: 0.8;
}

.footer__title {
	font-size: 18px;
	margin-bottom: 20px;
	font-weight: 600;
}

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

.footer__link {
	color: var(--color-footer-text);
	opacity: 0.8;
	transition: opacity 0.3s ease;
}

.footer__link:hover {
	opacity: 1;
	color: var(--color-footer-text);
}

.footer__list--contacts .footer__link,
.footer__address {
	display: flex;
	align-items: center;
	gap: 10px;
}

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

.main-content {
	padding-top: var(--header-height);
}

/* Адаптивность футера */
@media (min-width: 768px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

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

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

.hero__title {
	font-size: 1.5rem;
	line-height: 1.2;
	margin-bottom: 20px;
	color: var(--color-text);
}

.hero__description {
	font-size: 18px;
	line-height: 1.7;
	margin-bottom: 30px;
	max-width: 500px;
}

.btn {
	display: inline-block;
	background-color: var(--color-primary);
	color: #fff;
	padding: 12px 30px;
	border-radius: 5px;
	font-family: var(--font-secondary);
	font-weight: 600;
	text-align: center;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
	background-color: #16a085; /* Более темный оттенок бирюзового */
	color: #fff;
	transform: translateY(-3px);
}

.hero__image-wrapper {
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(44, 62, 80, 0.1);
}

/* Анимация для Hero */
[data-animate='hero-element'] {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate='hero-element'].animate-in {
	opacity: 1;
	transform: translateY(0);
}

/* Адаптивность Hero секции */
@media (min-width: 768px) {
	.hero__title {
		font-size: 48px;
	}
}

@media (min-width: 992px) {
	.hero {
		padding: 80px 0;
	}
	.hero__container {
		grid-template-columns: 1fr 1fr;
		gap: 60px;
	}
	.hero__content {
		order: 1; /* Текст слева */
	}
	.hero__image-wrapper {
		order: 2; /* Картинка справа */
	}
}

/*--------------------
 GLOBAL SECTION STYLES
--------------------*/
.section-header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 60px;
}

.section-header__title {
	font-size: 32px;
	margin-bottom: 15px;
}

.section-header__subtitle {
	font-size: 18px;
	color: #555;
	line-height: 1.7;
}

/*--------------------
 TRENDS SECTION
--------------------*/
.trends {
	padding: 80px 0;
	background-color: var(--color-background-light);
}

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

.trend-card {
	background-color: var(--color-background);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(44, 62, 80, 0.05);
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trend-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(44, 62, 80, 0.1);
}

.trend-card__image-wrapper {
	height: 200px;
}

.trend-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

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

.trend-card__tag {
	display: inline-block;
	background-color: var(--color-primary);
	color: #fff;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 15px;
	align-self: flex-start;
}

.trend-card__title {
	font-size: 20px;
	margin-bottom: 10px;
	line-height: 1.4;
}

.trend-card__description {
	font-size: 15px;
	margin-bottom: 20px;
	flex-grow: 1;
}

.trend-card__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-secondary);
	font-weight: 600;
	color: var(--color-primary);
}

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

.trend-card__link:hover .trend-card__link-icon {
	transform: translateX(4px);
}

/* Адаптивность Trends секции */
@media (min-width: 768px) {
	.trends__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.trends__grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.section-header__title {
		font-size: 38px;
	}
}

/*--------------------
 SKILLS SECTION (ACCORDION)
--------------------*/
.skills {
	padding: 80px 0;
	background-color: var(--color-background);
}

.accordion {
	max-width: 800px;
	margin: 0 auto;
	border-top: 1px solid var(--color-background-light);
}

.accordion__item {
	border-bottom: 1px solid var(--color-background-light);
}

.accordion__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 20px 0;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	font-family: var(--font-secondary);
	font-size: 18px;
	font-weight: 600;
	color: var(--color-text);
}

.accordion__icon {
	transition: transform 0.3s ease-in-out;
	flex-shrink: 0;
	margin-left: 15px;
	color: var(--color-primary);
}

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

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

.accordion__list {
	list-style: disc;
	padding-left: 20px;
	padding-bottom: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: #555;
}

.accordion__list li::marker {
	color: var(--color-primary);
}

@media (min-width: 768px) {
	.accordion__header {
		font-size: 20px;
	}
}

/*--------------------
 RESUME & CV SECTION
--------------------*/
.resume {
	padding: 80px 0;
	background-color: var(--color-background-light);
	overflow: hidden; /* Чтобы тень от плейсхолдера не вылезала за пределы секции */
}

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

/* Модификаторы для заголовка, чтобы выровнять его по левому краю в этой секции */
.section-header__title--left,
.section-header__subtitle--left {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
}

.section-header__subtitle--left {
	margin-bottom: 40px;
}

.resume__tips-list {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

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

.tip-item__icon-wrapper {
	flex-shrink: 0;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #fff;
	border-radius: 50%;
	color: var(--color-primary);
	box-shadow: 0 4px 15px rgba(44, 62, 80, 0.05);
}

.tip-item__icon {
	width: 24px;
	height: 24px;
}

.tip-item__title {
	font-size: 18px;
	font-family: var(--font-secondary);
	margin-bottom: 5px;
}

.tip-item__text {
	font-size: 15px;
	line-height: 1.6;
	color: #555;
}

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

.resume__placeholder-doc {
	background-color: #fff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 15px 40px rgba(44, 62, 80, 0.1);
	transform: rotate(2deg);
	max-width: 400px;
	width: 100%;
}

.resume__placeholder-img {
	border-radius: 4px;
}

/* Адаптивность Resume секции */
@media (min-width: 992px) {
	.resume__container {
		grid-template-columns: 1.2fr 1fr; /* Текстовый блок чуть шире */
		gap: 80px;
	}
}

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

.accordion__text {
	padding-bottom: 20px;
	color: #555;
	line-height: 1.7;
}

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

.contact-form__wrapper {
	max-width: 600px;
	margin: 0 auto;
	background-color: #fff;
	padding: 40px;
	border-radius: 8px;
	box-shadow: 0 8px 25px rgba(44, 62, 80, 0.1);
}

.contact-form__group {
	position: relative;
	margin-bottom: 25px;
}

.contact-form__input {
	width: 100%;
	padding: 12px 0;
	border: none;
	border-bottom: 2px solid var(--color-background-light);
	background-color: transparent;
	font-size: 16px;
	color: var(--color-text);
	transition: border-color 0.3s;
}

.contact-form__input:focus {
	outline: none;
	border-bottom-color: var(--color-primary);
}

.contact-form__label {
	position: absolute;
	top: 12px;
	left: 0;
	font-size: 16px;
	color: #999;
	pointer-events: none;
	transition: all 0.3s;
}

/* Эффект для плейсхолдера */
.contact-form__input:focus ~ .contact-form__label,
.contact-form__input:not(:placeholder-shown) ~ .contact-form__label {
	top: -15px;
	font-size: 12px;
	color: var(--color-primary);
}

/* Кастомный чекбокс */
.contact-form__group--checkbox {
	margin-bottom: 30px;
}

.contact-form__checkbox {
	display: none; /* Прячем стандартный чекбокс */
}

.contact-form__checkbox-label {
	display: inline-block;
	align-items: center;
	cursor: pointer;
	font-size: 14px;
	color: #555;
}

.contact-form__checkbox-label::before {
	display: inline-block;
	content: '';
	width: 20px;
	height: 20px;
	border: 2px solid var(--color-background-light);
	border-radius: 4px;
	margin-right: 12px;
	flex-shrink: 0;
	transition: background-color 0.3s, border-color 0.3s;
}

.contact-form__checkbox:checked + .contact-form__checkbox-label::before {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
}

.contact-form__btn {
	width: 100%;
}

/* Сообщение об успехе */
.contact-form__success-message {
	display: none; /* Изначально скрыто */
	text-align: center;
	padding: 20px;
}

.contact-form__success-icon {
	color: var(--color-primary);
	width: 60px;
	height: 60px;
	margin-bottom: 20px;
}

.contact-form__success-title {
	font-size: 24px;
	margin-bottom: 10px;
}

/*--------------------
 COOKIE POP-UP
--------------------*/
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Изначально скрыт за пределами экрана */
	left: 0;
	width: 100%;
	background-color: var(--color-footer-bg);
	color: var(--color-footer-text);
	padding: 20px;
	box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	transition: bottom 0.5s ease-in-out;
	z-index: 2000;
}

.cookie-popup--show {
	bottom: 0;
}

.cookie-popup__text {
	font-size: 14px;
	text-align: center;
}

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

.cookie-popup__link:hover {
	color: #fff;
}

.btn--cookie {
	padding: 8px 25px;
	flex-shrink: 0;
}

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

/*--------------------
 POLICY & GENERIC PAGES
--------------------*/
.pages {
	padding: 120px 0;
}

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

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

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

.pages p,
.pages li {
	font-size: 16px;
	line-height: 1.8;
	color: #333;
	margin-bottom: 20px;
}

.pages ul {
	list-style: disc;
	padding-left: 25px;
}

.pages a {
	text-decoration: underline;
}

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

.pages strong {
	font-weight: 700;
}
