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

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

	/* Colors */
	--background-color: #f4f5f7;
	--text-color: #111827;
	--primary-color: #4f46e5;
	--primary-color-hover: #4338ca;
	--secondary-color: #6b7280;
	--border-color: #e5e7eb;
	--container-color: #ffffff;

	/* Fonts */
	--font-body: 'Inter', sans-serif;
	--font-heading: 'Manrope', sans-serif;

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

	/* Z-index */
	--z-header: 100;
	--z-mobile-nav: 101;
}

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

html {
	scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4 {
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--text-color);
}

ul {
	list-style: none;
}

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

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

/* ======== REUSABLE CLASSES ======== */
.container {
	max-width: 1200px;
	margin-left: 1.5rem;
	margin-right: 1.5rem;
}

.button {
	display: inline-block;
	background-color: var(--primary-color);
	color: #fff;
	padding: 0.75rem 1.5rem;
	border-radius: 6px;
	font-weight: 500;
	transition: background-color 0.3s ease;
	border: none;
	cursor: pointer;
}

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

.logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--text-color);
}

/* ======== HEADER ======== */
.header {
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	background-color: rgba(244, 245, 247, 0.8);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	z-index: var(--z-header);
	border-bottom: 1px solid var(--border-color);
}

.header__container {
	height: var(--header-height);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.header__nav-list {
	display: flex;
	gap: 2rem;
}

.header__nav-link {
	color: var(--text-color);
	font-weight: 500;
	position: relative;
	padding: 0.5rem 0;
	transition: color 0.3s ease;
}

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

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

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

.header__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

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

/* ======== MOBILE NAV ======== */
.mobile-nav {
	position: fixed;
	top: 0;
	right: -100%;
	width: 70%;
	height: 100%;
	background-color: var(--container-color);
	z-index: var(--z-mobile-nav);
	padding: 4rem 2rem 2rem;
	transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	box-shadow: -4px 0px 15px rgba(0, 0, 0, 0.1);
}

.mobile-nav.is-active {
	right: 0;
}

.mobile-nav__close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--text-color);
}

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

.mobile-nav__link {
	font-size: 1.25rem;
	font-family: var(--font-heading);
	color: var(--text-color);
	transition: color 0.3s;
}

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

/* ======== FOOTER ======== */
.footer {
	background-color: var(--container-color);
	padding-top: 4rem;
	border-top: 1px solid var(--border-color);
}

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

.footer__column--main {
	margin-right: 2rem;
}

.footer__tagline {
	margin-top: 1rem;
	color: var(--secondary-color);
	font-size: var(--small-font-size);
}

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

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

.footer__link {
	color: var(--secondary-color);
	transition: color 0.3s ease;
}

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

.footer__list--contacts li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	color: var(--secondary-color);
}

.footer__icon {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin-top: 4px;
}

.footer__bottom {
	border-top: 1px solid var(--border-color);
	padding: 1.5rem 0;
	text-align: center;
	font-size: var(--small-font-size);
	color: var(--secondary-color);
}

/* ======== MEDIA QUERIES ======== */
@media screen and (min-width: 1220px) {
	.container {
		margin-left: auto;
		margin-right: auto;
	}
}

@media screen and (max-width: 768px) {
	:root {
		--h1-font-size: 2rem;
		--h2-font-size: 1.5rem;
	}

	.header__nav,
	.header__contact-btn {
		display: none;
	}

	.header__burger {
		display: block;
	}

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

	.footer__column--main {
		margin-right: 0;
	}

	.footer__list--contacts li {
		justify-content: center;
		text-align: left;
	}
}

/* ======== MAIN ======== */
.main {
	/* Добавляем отступ сверху, равный высоте хедера */
	padding-top: var(--header-height);
}

/* ======== HERO SECTION ======== */
.hero {
	padding: 4rem 0;
	min-height: calc(100vh - var(--header-height));
	display: flex;
	align-items: center;
}

.hero__container {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	align-items: center;
	gap: 3rem;
}

.hero__title {
	font-size: var(--h1-font-size);
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1.5rem;
}

.hero__description {
	font-size: 1.125rem;
	color: var(--secondary-color);
	margin-bottom: 2.5rem;
	max-width: 550px;
}

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

.hero__image {
	border-radius: 12px;
	width: 100%;
	max-width: 450px;
	height: auto;
	object-fit: cover;
	aspect-ratio: 1 / 1;
	box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.2);
}

/* Hero Animation */
.hero__content > * {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hero__content.is-animated > * {
	opacity: 1;
	transform: translateY(0);
}

/* Задержка для последовательной анимации */
.hero__content.is-animated .hero__title {
	transition-delay: 0.2s;
}
.hero__content.is-animated .hero__description {
	transition-delay: 0.4s;
}
.hero__content.is-animated .hero__cta-button {
	transition-delay: 0.6s;
}

/* ======== MEDIA QUERIES (add to existing blocks) ======== */
@media screen and (max-width: 992px) {
	.hero__container {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.hero__image-wrapper {
		order: -1; /* Ставим картинку сверху на мобильных */
		margin-bottom: 2rem;
	}
	.hero__description {
		margin-left: auto;
		margin-right: auto;
	}
}

@media screen and (max-width: 768px) {
	.hero {
		padding: 2rem 0;
		min-height: auto;
	}
}

/* ======== REUSABLE SECTION STYLES ======== */
.section {
	padding: 5rem 0;
}

.section__header {
	text-align: center;
	margin-bottom: 3rem;
}

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

.section__subtitle {
	font-size: 1.125rem;
	color: var(--secondary-color);
	max-width: 700px;
	margin: 0 auto;
}

/* ======== STRATEGY SECTION ======== */
.strategy {
	background-color: var(--container-color);
}

.strategy__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

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

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

.strategy-card__icon {
	margin-bottom: 1.5rem;
}

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

.strategy-card__title {
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
}

.strategy-card__description {
	color: var(--secondary-color);
	font-size: var(--normal-font-size);
}

/* ======== MEDIA QUERIES (add to existing blocks) ======== */
@media screen and (max-width: 992px) {
	.strategy__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 768px) {
	.section {
		padding: 3rem 0;
	}
	.section__title {
		font-size: 1.75rem;
	}
	.strategy__grid {
		grid-template-columns: 1fr;
	}
}

/* ======== TOOLS SECTION ======== */
.tools__container {
	display: grid;
	grid-template-columns: 250px 1fr;
	gap: 2rem;
}

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

.tools__tab-btn {
	display: flex;
	align-items: center;
	gap: 1rem;
	width: 100%;
	padding: 1rem;
	border-radius: 8px;
	background-color: transparent;
	border: 1px solid var(--border-color);
	font-family: var(--font-body);
	font-size: var(--normal-font-size);
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.3s, color 0.3s, border-color 0.3s;
	text-align: left;
}

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

.tools__tab-btn.is-active {
	background-color: var(--primary-color);
	color: #fff;
	border-color: var(--primary-color);
}

.tools__tab-btn i {
	width: 24px;
	height: 24px;
}

.tools__tabs-content {
	background-color: var(--container-color);
	border-radius: 12px;
	border: 1px solid var(--border-color);
	padding: 2rem;
	min-height: 400px;
}

.tools__tab-panel {
	display: none;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 2rem;
	animation: fadeIn 0.5s ease-in-out;
}

.tools__tab-panel.is-active {
	display: grid;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.tools__panel-title {
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.tools__panel-description {
	color: var(--secondary-color);
	margin-bottom: 1.5rem;
}

.tools__panel-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.tools__panel-list li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.tools__panel-list i {
	width: 20px;
	height: 20px;
	color: var(--primary-color);
}

.tools__panel-image img {
	border-radius: 8px;
	max-width: 100%;
	object-fit: cover;
	aspect-ratio: 4 / 3;
}

/* ======== MEDIA QUERIES (add to existing blocks) ======== */
@media screen and (max-width: 992px) {
	.tools__container {
		grid-template-columns: 1fr;
	}
	.tools__tabs-nav {
		flex-direction: row;
		justify-content: center;
		margin-bottom: 1rem;
	}
	.tools__tab-btn {
		flex: 1;
		justify-content: center;
	}
	.tools__tab-btn span {
		display: none; /* Hide text on smaller tablets */
	}
}

@media screen and (max-width: 768px) {
	.tools__tab-panel {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.tools__panel-image {
		order: -1;
		margin-bottom: 2rem;
	}
	.tools__panel-list li {
		justify-content: center;
	}
}

@media screen and (max-width: 576px) {
	.tools__tabs-nav {
		flex-wrap: wrap; /* Allow buttons to wrap */
	}
	.tools__tab-btn {
		flex-basis: 100%; /* Each button takes full width */
	}
	.tools__tab-btn span {
		display: inline; /* Show text again when buttons are stacked */
	}
}

/* ======== REUSABLE CLASSES (add modifier) ======== */
.button--outline {
	background-color: transparent;
	border: 2px solid var(--container-color);
	color: var(--container-color);
}

.button--outline:hover {
	background-color: var(--container-color);
	color: var(--primary-color);
}

/* ======== NETWORKING SECTION ======== */
.networking {
	position: relative;
	padding: 6rem 0;
	background-image: url('../img/n1.webp'); /* Путь к вашему плейсхолдеру */
	background-size: cover;
	background-position: center center;
	background-attachment: fixed; /* Parallax effect */
	color: var(--container-color);
	text-align: center;
}

.networking__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(17, 24, 39, 0.75); /* Dark overlay */
	z-index: 1;
}

.networking__container {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Переопределяем цвета для заголовков на темном фоне */
.networking__title,
.networking__subtitle {
	color: var(--container-color);
}

.networking__subtitle {
	color: rgba(244, 245, 247, 0.9); /* Slightly less bright for subtitle */
	margin-bottom: 2.5rem;
}

.networking__list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 2.5rem;
	max-width: 500px; /* Limit width for readability */
}

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

.networking__list i {
	width: 20px;
	height: 20px;
	color: #fff; /* White icon color */
}

/* ======== MEDIA QUERIES (add to existing blocks) ======== */
@media screen and (max-width: 768px) {
	.networking {
		background-attachment: scroll; /* Disable parallax on mobile for performance */
		padding: 4rem 0;
	}
}

/* ======== BLOG SECTION ======== */
.blog {
	background-color: var(--background-color); /* Back to light background */
}

.blog__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.blog-card {
	display: block;
	background-color: var(--container-color);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: var(--text-color);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.1);
}

.blog-card__image-wrapper img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 0.4s ease;
}

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

.blog-card__content {
	padding: 1.5rem;
}

.blog-card__category {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	background-color: #e0e7ff; /* Light Indigo background */
	color: var(--primary-color);
	font-size: var(--small-font-size);
	font-weight: 500;
	border-radius: 99px;
	margin-bottom: 1rem;
}

.blog-card__title {
	font-size: 1.25rem;
	line-height: 1.4;
	margin-bottom: 1rem;
	/* Prevent title from breaking link hover state */
	position: relative;
	z-index: 2;
}

.blog-card__date {
	font-size: var(--small-font-size);
	color: var(--secondary-color);
}

/* ======== MEDIA QUERIES (add to existing blocks) ======== */
@media screen and (max-width: 992px) {
	.blog__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 768px) {
	.blog__grid {
		grid-template-columns: 1fr;
	}
}

/* ======== CONTACT SECTION ======== */
.contact {
	background-color: var(--container-color);
}

.contact__container {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 3rem;
	align-items: center;
}

.contact__image-wrapper img {
	width: 100%;
	border-radius: 12px;
	object-fit: cover;
	aspect-ratio: 4 / 3;
}

.contact__form-group {
	margin-bottom: 1.5rem;
}

.contact__form-label {
	display: block;
	font-weight: 500;
	margin-bottom: 0.5rem;
}

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

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

.contact__form-input.is-invalid {
	border-color: #ef4444;
}

.contact__form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.contact__form-checkbox {
	margin-top: 5px;
	flex-shrink: 0;
}

.contact__form-checkbox-label {
	font-size: var(--small-font-size);
	color: var(--secondary-color);
}

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

.contact__form-button {
	width: 100%;
	padding: 1rem;
	font-size: 1.1rem;
}

/* Success Message */
.contact__success-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 2rem;
	border: 1px solid #10b981;
	background-color: #f0fdf4;
	border-radius: 12px;
}

.contact__success-message i {
	width: 48px;
	height: 48px;
	color: #10b981;
	margin-bottom: 1rem;
}

.contact__success-message h4 {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

/* ======== MEDIA QUERIES (add to existing blocks) ======== */
@media screen and (max-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr;
	}
	.contact__image-wrapper {
		display: none; /* Hide image on smaller screens to focus on form */
	}
}

/* ======== COOKIE POP-UP ======== */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--container-color);
	padding: 1.5rem 0;
	box-shadow: 0 -4px 20px -5px rgba(0, 0, 0, 0.1);
	z-index: 110; /* Higher than other elements */

	/* Initially hidden */
	transform: translateY(100%);
	opacity: 0;
	visibility: hidden;
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s,
		visibility 0.5s;
}

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

.cookie-popup__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
}

.cookie-popup__text {
	color: var(--secondary-color);
}

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

.cookie-popup__button {
	flex-shrink: 0;
}

/* ======== MEDIA QUERIES (add to existing blocks) ======== */
@media screen and (max-width: 768px) {
	.cookie-popup__container {
		flex-direction: column;
		text-align: center;
	}
}

/* ======== STATIC PAGES (Privacy, Terms, etc.) ======== */
.pages {
	background-color: var(--container-color);
	padding: 8rem 0;
}

/* Ограничиваем ширину контента для лучшей читабельности */
.pages .container > * {
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

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

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

.pages p {
	margin-bottom: 1.5rem;
	line-height: 1.7;
	color: var(--secondary-color);
}

.pages ul {
	list-style: disc;
	padding-left: 25px;
	margin-bottom: 1.5rem;
	color: var(--secondary-color);
}

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

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

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

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