/* Глобальные стили и переменные */
:root {
	--font-primary: 'Manrope', sans-serif;
	--font-secondary: 'Playfair Display', serif;
	--color-text: #111827;
	--color-background: #f9fafb;
	--color-primary: #4f46e5;
	--color-muted: #6b7280;
	--container-width: 1200px;
	--container-padding: 1rem;
}

/* Сброс стилей */
*,
*::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);
	-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;
}

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

/* Контейнер */
.container {
	max-width: var(--container-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-padding);
	padding-right: var(--container-padding);
}

/* Логотип */
.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-primary);
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--color-text);
}

.logo__icon {
	transition: transform 0.3s ease;
}

.logo:hover .logo__icon {
	transform: rotate(15deg);
}

/* Хедер */
.header {
	background-color: var(--color-background);
	padding: 1rem 0;
	border-bottom: 1px solid #e5e7eb;
	position: sticky;
	top: 0;
	z-index: 100;
}

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

.nav__list {
	display: flex;
	gap: 2rem;
}

.nav__link {
	position: relative;
	color: var(--color-text);
	transition: color 0.3s ease;
}

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

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

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

.burger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 110;
}

.burger__line {
	display: block;
	width: 24px;
	height: 2px;
	background-color: var(--color-text);
	margin: 5px 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Футер */
.footer {
	background-color: #e5e7eb;
	padding: 4rem 0;
	color: var(--color-text);
}

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

.footer__column:first-child {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.footer__copyright {
	font-size: 0.875rem;
	color: var(--color-muted);
}

.footer__title {
	font-size: 1.125rem;
	margin-bottom: 1rem;
}

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

.footer__link,
.footer__text {
	font-size: 0.95rem;
	color: var(--color-muted);
	transition: color 0.3s ease;
}

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

/* Адаптивность */
@media (max-width: 768px) {
	.nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 70%;
		height: 100vh;
		background-color: var(--color-background);
		box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
		transition: right 0.4s ease;
		padding-top: 5rem;
	}

	.nav--open {
		right: 0;
	}

	.nav__list {
		flex-direction: column;
		align-items: center;
		gap: 2.5rem;
	}

	.nav__link {
		font-size: 1.25rem;
	}

	.burger {
		display: block;
	}

	.burger--open .burger__line:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}
	.burger--open .burger__line:nth-child(2) {
		opacity: 0;
	}
	.burger--open .burger__line:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	body.no-scroll {
		overflow: hidden;
	}
}

/* assets/css/style.css */

/* --- Стили для Hero секции --- */
.hero {
	padding: 4rem 0;
	overflow-x: hidden; /* Предотвращает горизонтальный скролл из-за анимации */
}

.hero__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
}

.hero__content {
	text-align: center;
}

.hero__title {
	font-size: 2.5rem;
	line-height: 1.2;
	margin-bottom: 1rem;
}

.hero__text {
	font-size: 1.125rem;
	color: var(--color-muted);
	max-width: 600px;
	margin: 0 auto 2rem auto;
}

.btn {
	display: inline-block;
	padding: 0.875rem 2rem;
	background-color: var(--color-primary);
	color: #fff;
	font-weight: 700;
	border-radius: 0.5rem;
	border: 2px solid transparent;
	transition: background-color 0.3s ease, color 0.3s ease,
		border-color 0.3s ease;
}

.btn:hover {
	background-color: transparent;
	color: var(--color-primary);
	border-color: var(--color-primary);
}

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

.hero__image {
	border-radius: 0.75rem;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
		0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Адаптивность для Hero */
@media (min-width: 768px) {
	.hero {
		padding: 6rem 0;
	}

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

@media (min-width: 992px) {
	.hero__container {
		flex-direction: row;
		justify-content: space-between;
		gap: 4rem;
	}

	.hero__content {
		text-align: left;
		flex: 1 1 50%;
	}

	.hero__text {
		margin-left: 0;
		margin-right: 0;
	}

	.hero__image-wrapper {
		flex: 1 1 45%;
	}
}

/* assets/css/style.css */

/* --- Общие стили для секций --- */
.section-title {
	font-size: 2.25rem;
	text-align: center;
	margin-bottom: 3rem;
}

/* --- Стили для секции Кейсы --- */
.cases {
	padding: 4rem 0;
	background-color: #ffffff;
}

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

.case-card {
	background-color: var(--color-background);
	border-radius: 0.75rem;
	overflow: hidden;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
		0 2px 4px -2px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
		0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.case-card__image {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.case-card__content {
	padding: 1.5rem;
}

.case-card__title {
	font-family: var(--font-primary);
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
}

.case-card__text {
	color: var(--color-muted);
	margin-bottom: 1.25rem;
	font-size: 0.95rem;
}

.case-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tag {
	background-color: #e0e7ff;
	color: var(--color-primary);
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
}

/* Адаптивность для Кейсов */
@media (min-width: 768px) {
	.cases {
		padding: 6rem 0;
	}
	.cases__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

/* assets/css/style.css */

/* --- Стили для секции Стратегии --- */
.strategies {
	padding: 4rem 0;
	overflow-x: hidden;
}

.strategies__container {
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

.strategies__content {
	text-align: center;
}

.section-title.strategies__title {
	text-align: center;
}

.strategies__text {
	font-size: 1.125rem;
	color: var(--color-muted);
	max-width: 600px;
	margin: 0 auto 2rem auto;
}

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

.strategy-item {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
}

.strategy-item__icon-wrapper {
	flex-shrink: 0;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #eef2ff;
	border-radius: 0.5rem;
	color: var(--color-primary);
}

.strategy-item__icon-wrapper i {
	width: 28px;
	height: 28px;
}

.strategy-item__title {
	font-family: var(--font-primary);
	font-weight: 700;
	font-size: 1.125rem;
	margin-bottom: 0.25rem;
}

.strategy-item__text {
	color: var(--color-muted);
	font-size: 0.95rem;
}

/* Адаптивность для Стратегий */
@media (min-width: 768px) {
	.strategies {
		padding: 6rem 0;
	}
}

@media (min-width: 992px) {
	.strategies__container {
		flex-direction: row;
		align-items: center;
		gap: 4rem;
	}

	.strategies__content {
		flex: 1 1 45%;
		text-align: left;
	}

	.section-title.strategies__title {
		text-align: left;
	}

	.strategies__text {
		margin-left: 0;
	}

	.strategies__list {
		flex: 1 1 55%;
	}
}

/* assets/css/style.css */

/* --- Общие стили для секций (дополнение) --- */
.section-subtitle {
	font-size: 1.125rem;
	color: var(--color-muted);
	max-width: 700px;
	margin: -2.5rem auto 3rem auto;
	text-align: center;
}

/* --- Стили для секции Инструменты --- */
.tools {
	padding: 4rem 0;
	background-color: var(--color-background);
}

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

.tool-card {
	background-color: #ffffff;
	padding: 2rem;
	border-radius: 0.75rem;
	text-align: center;
	border: 1px solid #e5e7eb;
	transition: transform 0.3s ease, border-color 0.3s ease;
}

.tool-card:hover {
	transform: translateY(-5px);
	border-color: var(--color-primary);
}

.tool-card__icon-wrapper {
	margin: 0 auto 1.5rem auto;
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #eef2ff;
	border-radius: 50%;
	color: var(--color-primary);
}

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

.tool-card__title {
	font-family: var(--font-primary);
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.tool-card__text {
	color: var(--color-muted);
	font-size: 0.95rem;
	line-height: 1.5;
}

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

@media (min-width: 768px) {
	.tools {
		padding: 6rem 0;
	}
}

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

/* assets/css/style.css */

/* --- Стили для секции Обо мне --- */
.about {
	padding: 4rem 0;
	background-color: #ffffff;
	overflow-x: hidden;
}

.about__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
}

.about__image-wrapper {
	max-width: 400px;
	width: 100%;
}

.about__image {
	border-radius: 0.75rem;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
		0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.section-title.about__title {
	text-align: left;
}

.about__text {
	color: var(--color-muted);
	margin-bottom: 1.5rem;
	line-height: 1.7;
}

.about__list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: 2rem;
}

.about__list-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-weight: 700;
}

.about__list-item i {
	color: var(--color-primary);
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

/* Адаптивность для Обо мне */
@media (min-width: 768px) {
	.about {
		padding: 6rem 0;
	}
}

@media (min-width: 992px) {
	.about__container {
		flex-direction: row;
		gap: 4rem;
	}
	.about__image-wrapper {
		flex: 1 1 40%;
	}
	.about__content {
		flex: 1 1 60%;
	}
}

/* assets/css/style.css */

/* --- Стили для секции Контакты --- */
.contact {
	padding: 4rem 0;
}

.contact__content {
	max-width: 650px;
	margin: 0 auto;
	text-align: center;
}

.form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin-top: 3rem;
	text-align: left;
}

.form__group {
	display: flex;
	flex-direction: column;
}

.form__label {
	font-weight: 700;
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
}

.form__input {
	width: 100%;
	padding: 0.875rem 1rem;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	font-family: var(--font-primary);
	font-size: 1rem;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form__input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.form__group--checkbox {
	flex-direction: row;
	align-items: flex-start;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.form__checkbox {
	margin-top: 4px;
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
}

.form__checkbox-label {
	font-size: 0.875rem;
	color: var(--color-muted);
}

.form__checkbox-label a {
	color: var(--color-primary);
	text-decoration: underline;
}

.form__btn {
	margin-top: 1rem;
}

.success-message {
	padding: 2rem;
	border: 1px solid #a7f3d0;
	background-color: #f0fdf4;
	border-radius: 0.75rem;
	text-align: center;
}

.success-message__icon-wrapper {
	margin: 0 auto 1rem auto;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #d1fae5;
	border-radius: 50%;
	color: #059669;
}

.success-message__icon-wrapper i {
	width: 28px;
	height: 28px;
}

.success-message__title {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

.success-message__text {
	color: #047857;
}

/* Адаптивность для Контактов */
@media (min-width: 768px) {
	.contact {
		padding: 6rem 0;
	}
}

/* assets/css/style.css */

/* --- Стили для Cookie Pop-up --- */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--color-text);
	color: var(--color-background);
	padding: 1.5rem;
	box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	transform: translateY(200%);
	transition: transform 0.5s ease-in-out;
}

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

.cookie-popup__content {
	max-width: var(--container-width);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	text-align: center;
}

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

.cookie-popup__link {
	text-decoration: underline;
	font-weight: 700;
}
.cookie-popup__link:hover {
	text-decoration: none;
}

.btn--small {
	padding: 0.5rem 1.5rem;
	font-size: 0.9rem;
}

/* Адаптивность для Cookie Pop-up */
@media (min-width: 768px) {
	.cookie-popup__content {
		flex-direction: row;
		text-align: left;
	}
}

/* assets/css/style.css */

/* --- Стили для текстовых страниц (политики и т.д.) --- */
.pages {
	padding: 4rem 0;
	background-color: #ffffff;
}

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

.pages h1,
.pages h2 {
	margin-bottom: 1rem;
}

.pages h1 {
	font-size: 1.5rem;
	margin-top: 1rem;
}

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

.pages p,
.pages ul {
	font-size: 1.05rem;
	line-height: 1.8;
	color: var(--color-text);
	margin-bottom: 1.5rem;
}

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

.pages li {
	margin-bottom: 0.75rem;
}

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

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

.pages strong {
	font-weight: 700;
}
