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

/*=============== CSS VARIABLES ===============*/
:root {
	/* Colors */
	--bg-color: #0d1117;
	--first-color: #ffffff;
	--second-color: #58a6ff;
	--text-color: #c9d1d9;
	--white-color: #161b22;

	/* Typography */
	--body-font: 'Inter', sans-serif;
	--title-font: 'Montserrat', sans-serif;

	--h1-font-size: 2.25rem;
	--h2-font-size: 1.5rem;
	--normal-font-size: 1rem;
	--small-font-size: 0.875rem;

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

/*=============== BASE ===============*/
* {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}

html {
	scroll-behavior: smooth;
}

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

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

ul {
	list-style: none;
}

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

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

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
	max-width: 1120px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 1.5rem;
}

/*=============== HEADER ===============*/
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: var(--bg-color);
	z-index: var(--z-header);
	transition: box-shadow 0.3s;
}

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

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

.header__logo-icon {
	transition: transform 0.3s ease;
}

.header__logo:hover .header__logo-icon {
	transform: rotate(15deg);
}

.header__toggle {
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--first-color);
}

/*=============== NAV ===============*/
@media screen and (max-width: 767px) {
	.nav {
		position: fixed;
		top: 0;
		right: -100%;
		background-color: var(--first-color);
		width: 80%;
		height: 100%;
		padding: 6rem 2rem 2rem;
		z-index: var(--z-menu);
		transition: right 0.4s ease-in-out;
	}
}

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

.nav__link {
	color: var(--white-color);
	font-weight: 500;
	transition: color 0.3s;
}

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

.nav__close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	font-size: 1.5rem;
	color: var(--white-color);
	cursor: pointer;
}

/* Show menu */
.nav--show {
	right: 0;
}

/* Add shadow to header on scroll */
.header--scroll {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/*=============== FOOTER ===============*/
.footer {
	background-color: #010409;
	color: var(--text-color);
	padding: 4rem 0 2rem;
}

.footer__container {
	display: grid;
	gap: 2.5rem;
}

.footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--title-font);
	font-weight: 700;
	font-size: 1.25rem;
	margin-bottom: 1rem;
	color: var(--white-color);
}

.footer__description {
	font-size: var(--small-font-size);
	max-width: 300px;
	opacity: 0.8;
}

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

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

.footer__link {
	opacity: 0.8;
	transition: opacity 0.3s, color 0.3s;
}

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

.footer__list--contacts li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.footer__icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	margin-top: 2px;
}

.footer__bottom {
	margin-top: 4rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copy {
	text-align: center;
	font-size: var(--small-font-size);
	opacity: 0.7;
}

/*=============== BREAKPOINTS ===============*/
/* For medium devices */
@media screen and (min-width: 768px) {
	.nav {
		all: unset; /* Reset mobile styles */
	}
	.nav__list {
		flex-direction: row;
		gap: 2.5rem;
	}
	.nav__link {
		color: var(--text-color);
	}
	.nav__link:hover {
		color: var(--second-color);
	}
	.header__toggle,
	.nav__close {
		display: none;
	}
	.footer__container {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	}
}

/* ... ваши предыдущие стили ... */

/*=============== REUSABLE CSS CLASSES ===============*/
/* ... ваш класс .container ... */
.button {
	display: inline-block;
	background-color: var(--second-color);
	color: var(--white-color);
	padding: 1rem 2rem;
	font-family: var(--title-font);
	font-weight: 600;
	border-radius: 4px;
	transition: background-color 0.3s, transform 0.3s;
}

.button:hover {
	background-color: #4493f8; /* A slightly lighter shade of second-color */
	transform: translateY(-2px);
}

/*=============== HERO ===============*/
.hero {
	padding: 8rem 0 4rem;
	background-color: var(--bg-color);
}

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

.hero__title {
	font-size: 2rem;
	margin-bottom: 1.5rem;
	line-height: 1.3;
}

.hero__description {
	font-size: var(--normal-font-size);
	line-height: 1.6;
	margin-bottom: 2.5rem;
	max-width: 500px;
}

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

.hero__image {
	width: 100%;
	max-width: 450px;
	border-radius: 8px;
	object-fit: cover;
}

/*=============== BREAKPOINTS ===============*/
/* ... ваши предыдущие медиа-запросы ... */

/* For large devices */
@media screen and (min-width: 992px) {
	:root {
		--h1-font-size: 3rem;
		--h2-font-size: 1.75rem;
		--normal-font-size: 1.125rem;
	}

	.hero {
		padding: 10rem 0 6rem;
	}

	.hero__container {
		grid-template-columns: 1.2fr 1fr;
		gap: 2rem;
	}

	.hero__title {
		margin-bottom: 2rem;
	}

	.hero__description {
		margin-bottom: 3rem;
	}
}

/*=============== REUSABLE CSS CLASSES ===============*/
/* ... .container, .button ... */

.section {
	padding: 5rem 0 3rem;
}

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

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

.section__subtitle {
	font-size: var(--normal-font-size);
	max-width: 600px;
	margin: 0 auto;
	color: var(--text-color);
}

/*=============== SERVICES ===============*/
.services__grid {
	display: grid;
	gap: 1.5rem;
}

.services__card {
	background-color: var(--white-color);
	padding: 2.5rem 2rem;
	border: 1px solid #30363d;
	border-radius: 8px;
	transition: transform 0.3s, box-shadow 0.3s;
}

.services__card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.services__card-icon {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--second-color);
	color: var(--white-color);
	border-radius: 50%;
	margin-bottom: 1.5rem;
}

.services__card-icon i {
	width: 24px;
	height: 24px;
}

.services__card-title {
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
}

.services__card-description {
	line-height: 1.6;
}

/*=============== BREAKPOINTS ===============*/
/* ... */
/* For medium devices */
@media screen and (min-width: 576px) {
	.services__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (min-width: 768px) {
	.section {
		padding: 6rem 0 4rem;
	}
	.section__header {
		margin-bottom: 4rem;
	}
}

/* For large devices */
@media screen and (min-width: 992px) {
	/* ... */
	.services__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/*=============== CASES ===============*/
.cases__content {
	display: grid;
	gap: 5rem;
}

.case__item {
	display: grid;
	gap: 2rem;
	align-items: center;
}

.case__image {
	border-radius: 8px;
	width: 100%;
}

.case__tag {
	display: inline-block;
	background-color: rgba(
		88,
		166,
		255,
		0.15
	); /* Dark blue, related to second-color */
	color: var(--second-color);
	padding: 0.25rem 0.75rem;
	border-radius: 4px;
	font-size: var(--small-font-size);
	font-weight: 500;
	margin-bottom: 1rem;
	font-family: var(--body-font);
}

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

.case__description {
	line-height: 1.6;
	margin-bottom: 2rem;
}

.case__results-list {
	display: grid;
	gap: 1rem;
}

.case__results-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.case__results-item i {
	color: var(--second-color);
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/*=============== BREAKPOINTS ===============*/
/* ... */
/* For medium devices */
@media screen and (min-width: 768px) {
	.case__item {
		grid-template-columns: repeat(2, 1fr);
	}

	.case__item--reversed .case__image-wrapper {
		order: 1; /* This moves the image to the right */
	}
}

/*=============== APPROACH ===============*/
.approach {
	background-color: var(--white-color);
}

.approach__steps {
	display: grid;
	gap: 2rem;
	position: relative;
}

.approach__step {
	padding: 2rem;
	border: 1px solid #30363d;
	border-radius: 8px;
	position: relative;
	background-color: var(--bg-color);
}

.approach__step-number {
	font-size: 3rem;
	font-weight: 700;
	font-family: var(--title-font);
	color: #30363d; /* Dark gray for the number */
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	line-height: 1;
}

.approach__step-title {
	font-size: 1.25rem;
	margin-bottom: 1rem;
	position: relative; /* To be on top of the number */
}

.approach__step-description {
	line-height: 1.6;
	max-width: 90%; /* To avoid text overlapping with the number */
	position: relative;
}

/*=============== BREAKPOINTS ===============*/
/* ... */
@media screen and (min-width: 768px) {
	.approach__steps {
		grid-template-columns: repeat(2, 1fr);
		gap: 2.5rem 2rem;
	}

	.approach__step:nth-child(odd)::after,
	.approach__step:nth-child(even)::after {
		content: '';
		position: absolute;
		background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%2330363D' stroke-width='2' stroke-dasharray='6%2c 10' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
		background-size: 12px 1px;
		background-repeat: repeat-x;
		height: 2px;
		width: 32px; /* 2rem gap */
	}

	.approach__step:nth-child(odd)::after {
		top: 50%;
		right: -32px; /* 2rem gap */
		transform: translateY(-50%);
	}

	.approach__step:nth-child(even)::after {
		top: 50%;
		left: -32px; /* 2rem gap */
		transform: translateY(-50%);
	}

	/* Vertical line for connecting rows */
	.approach__step:nth-child(2)::before {
		content: '';
		position: absolute;
		background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%2330363D' stroke-width='2' stroke-dasharray='6%2c 10' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
		background-size: 1px 12px;
		background-repeat: repeat-y;
		width: 2px;
		height: 40px; /* 2.5rem gap */
		top: -40px;
		left: 50%;
		transform: translateX(-50%);
	}

	/* Remove lines where they are not needed */
	.approach__step:nth-child(2)::after,
	.approach__step:nth-child(4)::after {
		display: none;
	}
}

@media screen and (min-width: 992px) {
	/* If we had more than 2 columns, we'd add styles here, but for 4 items 2 columns is fine */
}

/* ... ваши предыдущие стили ... */

/*=============== BLOG ===============*/
.blog__grid {
	display: grid;
	gap: 1.5rem;
}

.blog__card {
	background-color: var(--white-color);
	border: 1px solid #30363d;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.3s;
}

.blog__card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.blog__image-wrapper {
	overflow: hidden;
}

.blog__image {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform 0.4s ease-out;
}

.blog__card:hover .blog__image {
	transform: scale(1.05);
}

.blog__content {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1; /* Makes content area fill the space */
}

.blog__meta {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: var(--small-font-size);
	margin-bottom: 0.75rem;
}

.blog__tag {
	background-color: rgba(88, 166, 255, 0.15);
	color: var(--second-color);
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	font-weight: 500;
}

.blog__date {
	color: #8b949e; /* Muted gray for dark theme */
}

.blog__title {
	font-size: 1.25rem;
	margin-bottom: 1rem;
	flex-grow: 1; /* Pushes the link to the bottom */
}

.blog__title a {
	color: var(--first-color);
	transition: color 0.3s;
}

.blog__card:hover .blog__title a {
	color: var(--second-color);
}

.blog__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 500;
	color: var(--second-color);
	align-self: flex-start; /* Align link to the start of the flex container */
}

.blog__link i {
	width: 16px;
	height: 16px;
	transition: transform 0.3s;
}

.blog__link:hover i {
	transform: translateX(4px);
}

/*=============== BREAKPOINTS ===============*/
/* ... */
@media screen and (min-width: 576px) {
	.blog__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

/* ... ваши предыдущие стили ... */
.button--full {
	width: 100%;
	text-align: center;
	padding: 1.25rem 2rem;
}

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

.contact__container {
	display: grid;
	gap: 4rem;
}

.contact__content .section__header {
	text-align: left;
	margin-bottom: 3rem;
}
.contact__content .section__subtitle {
	margin-left: 0;
	margin-right: 0;
}

.contact__info {
	display: grid;
	gap: 2rem;
}
.contact__info-item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}
.contact__info-item i {
	width: 28px;
	height: 28px;
	color: var(--second-color);
}
.contact__info-title {
	font-size: var(--normal-font-size);
}
.contact__info-link {
	color: var(--text-color);
	transition: color 0.3s;
}
.contact__info-link:hover {
	color: var(--second-color);
}

/* Form Styles */
.contact__form {
	display: grid;
	gap: 1.5rem;
}
.form__group {
	position: relative;
}
.form__label {
	display: none;
	position: absolute;
	top: 1rem;
	left: 1rem;
	font-size: var(--normal-font-size);
	color: #8b949e;
	padding: 0 0.25rem;
	background-color: var(--white-color);
	transition: all 0.3s;
	pointer-events: none;
}
.form__input {
	width: 100%;
	padding: 1rem;
	border: 1px solid #30363d;
	border-radius: 4px;
	font-size: var(--normal-font-size);
	font-family: var(--body-font);
	outline: none;
	background-color: var(--bg-color);
	color: var(--text-color);
}
.form__input:focus {
	border-color: var(--second-color);
}
.form__input:focus + .form__label,
.form__input:not(:placeholder-shown) + .form__label {
	top: -0.75rem;
	font-size: var(--small-font-size);
}

/* Checkbox */
.form__group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-top: -0.5rem;
}
.form__checkbox-input {
	width: 1rem;
	height: 1rem;
	margin-top: 0.25rem;
	accent-color: var(--second-color);
}
.form__checkbox-label {
	font-size: var(--small-font-size);
	line-height: 1.5;
}
.form__checkbox-label a {
	color: var(--second-color);
	text-decoration: underline;
}

/* Success Message */
.contact__form-wrapper {
	position: relative;
	min-height: 450px; /* To prevent layout jump */
}
.contact__success-message {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--bg-color);
	border: 1px solid #30363d;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 2rem;
	opacity: 1;
	transition: opacity 0.5s, visibility 0.5s;
}
.contact__success-message.is-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}
.contact__success-message i {
	width: 48px;
	height: 48px;
	color: var(--second-color);
	margin-bottom: 1rem;
}

/*=============== BREAKPOINTS ===============*/
/* ... */
@media screen and (min-width: 992px) {
	.contact__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ... ваши предыдущие стили ... */

/*=============== COOKIE POPUP ===============*/
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--first-color);
	color: var(--white-color);
	padding: 1.5rem 0;
	z-index: var(--z-menu);
	transition: transform 0.4s ease-out, opacity 0.4s ease-out;
	transform: translateY(0);
	opacity: 1;
}

.cookie-popup.is-hidden {
	transform: translateY(100%);
	opacity: 0;
	pointer-events: none;
}

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

.cookie-popup__text {
	font-size: var(--small-font-size);
}

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

.cookie-popup__button {
	background-color: var(--white-color);
	color: var(--first-color);
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 4px;
	cursor: pointer;
	font-family: var(--title-font);
	font-weight: 600;
	white-space: nowrap; /* Prevent button text from wrapping */
	transition: background-color 0.3s, color 0.3s;
}

.cookie-popup__button:hover {
	background-color: #30363d;
}

/* Adjust for mobile */
@media screen and (max-width: 576px) {
	.cookie-popup__container {
		flex-direction: column;
		text-align: center;
	}
}

/* ... ваши предыдущие стили ... */

/*=============== PAGES (PRIVACY, TERMS, ETC.) ===============*/
.pages {
	padding: 8rem 0 5rem; /* 8rem top padding to offset the fixed header */
	background-color: var(--bg-color);
}

/* Limit the width of the text for better readability */
.pages .container > * {
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.pages h1,
.pages h2 {
	text-align: left;
	margin-bottom: 1.5rem;
}

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

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

.pages p {
	line-height: 1.7;
	margin-bottom: 1.5rem;
}

.pages ul {
	list-style: none;
	padding-left: 1.5rem;
	margin-bottom: 1.5rem;
}

.pages li {
	position: relative;
	padding-left: 1rem;
	margin-bottom: 0.75rem;
}

.pages li::before {
	content: '';
	position: absolute;
	left: -1.5rem;
	top: 0.6em; /* Vertically center the dot */
	transform: translateY(-50%);
	width: 6px;
	height: 6px;
	background-color: var(--second-color);
	border-radius: 50%;
}

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

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

.pages strong {
	color: var(--first-color);
}
