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

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

	/* Colors */
	--primary-color: #4682b4; /* SteelBlue - профессиональный и спокойный */
	--secondary-color: #2c3e50; /* Dark Slate Gray - для текста и акцентов */
	--accent-color: #f1c40f; /* Sunflower - для кнопок и CTA */
	--background-color: #f8f9fa; /* Very light gray */
	--text-color: #34495e; /* Wet Asphalt */
	--white-color: #fff;
	--border-color: #e0e0e0;

	/* Fonts */
	--body-font: 'Roboto', sans-serif;
	--title-font: 'Montserrat', sans-serif;

	--biggest-font-size: 2.5rem;
	--h1-font-size: 2.25rem;
	--h2-font-size: 1.5rem;
	--h3-font-size: 1.25rem;
	--normal-font-size: 1rem;
	--small-font-size: 0.875rem;

	/* Font weight */
	--font-medium: 500;
	--font-semibold: 600;
	--font-bold: 700;

	/* z-index */
	--z-tooltip: 10;
	--z-fixed: 100;
	--z-modal: 1000;
}

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

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

ul {
	list-style: none;
}

a {
	text-decoration: none;
}

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

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

.section {
	padding: 6rem 0 2rem;
}

.section__title {
	font-size: var(--h1-font-size);
	text-align: center;
	margin-bottom: 3rem;
}

/* Добавить в конец файла assets/css/style.css */

/*=============== HEADER & NAV ===============*/
.header {
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	background-color: var(--white-color);
	box-shadow: 0 2px 4px hsla(0, 0%, 1%, 0.1);
	z-index: var(--z-fixed);
}

.nav {
	padding-block: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nav__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--title-font);
	font-weight: var(--font-semibold);
	color: var(--secondary-color);
}

.nav__logo-img {
	width: 28px;
	height: 28px;
}

.nav__toggle,
.nav__close {
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--secondary-color);
}

/* Navigation for mobile devices */
@media screen and (max-width: 767px) {
	.nav__menu {
		position: fixed;
		top: 0;
		right: -100%;
		background-color: hsla(0, 0%, 100%, 0.95);
		backdrop-filter: blur(10px);
		width: 80%;
		height: 100%;
		padding: 6rem 2rem 0;
		transition: right 0.4s;
	}
}

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

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

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

.nav__link-button {
	background-color: var(--accent-color);
	color: var(--secondary-color);
	padding: 0.5rem 1rem;
	border-radius: 4px;
	transition: background-color 0.3s;
}

.nav__link-button:hover {
	background-color: #dab10d;
	color: var(--secondary-color);
}

.nav__close {
	position: absolute;
	top: 1rem;
	right: 1.5rem;
}

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

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

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

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

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

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

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

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

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

.footer__link {
	color: #bdc3c7;
	transition: color 0.3s;
}

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

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

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

.footer__contact-item span {
	flex: 1;
}

.footer__contact-item i {
	color: var(--accent-color);
}

.footer__bottom {
	margin-top: 4rem;
	text-align: center;
}

.footer__copy {
	font-size: var(--small-font-size);
	color: #7f8c8d;
}

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

/* For large devices */
@media screen and (min-width: 768px) {
	.nav__toggle,
	.nav__close {
		display: none;
	}
	.nav__menu {
		all: unset;
	}
	.nav__list {
		flex-direction: row;
		gap: 2.5rem;
	}
	.nav__link-button {
		padding: 0.75rem 1.5rem;
	}

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

/*=============== BUTTONS ===============*/
.button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background-color: var(--accent-color);
	color: var(--secondary-color);
	padding: 1rem 2rem;
	border-radius: 4px;
	font-family: var(--title-font);
	font-weight: var(--font-semibold);
	transition: background-color 0.3s, transform 0.3s;
}

.button:hover {
	background-color: #dab10d;
	transform: translateY(-2px);
}

.button__icon {
	width: 20px;
	height: 20px;
}

/*=============== HERO ===============*/
.hero {
	padding-top: calc(var(--header-height) + 2rem);
	background-color: var(--white-color);
}

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

.hero__data {
	text-align: center;
}

.hero__title {
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
	line-height: 1.2;
	min-height: 58px;
}

.hero__title-animated {
	color: var(--primary-color);
	position: relative;
	white-space: nowrap;
}

/* Blinking cursor effect */
.hero__title-animated::after {
	content: '|';
	position: absolute;
	right: -8px;
	top: -5%;
	height: 100%;
	color: var(--primary-color);
	animation: blink 0.7s infinite;
}

@keyframes blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

.hero__description {
	font-size: var(--h3-font-size);
	margin-bottom: 2.5rem;
	line-height: 1.6;
}

.hero__image img {
	border-radius: 8px;
	box-shadow: 0 10px 25px hsla(0, 0%, 0%, 0.1);
}

/*=============== BREAKPOINTS ===============*/
/* For medium devices */
@media screen and (min-width: 576px) {
	.hero__data {
		text-align: left;
	}
}

/* For large devices */
@media screen and (min-width: 768px) {
	.hero__container {
		grid-template-columns: 1.1fr 0.9fr;
	}
	.hero__title {
		font-size: 2.5rem;
		min-height: 96px;
	}
}

/*=============== SERVICES ===============*/
.services {
	background-color: var(--background-color);
}

.services__container {
	display: grid;
	gap: 2rem;
	padding-top: 1rem;
}

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

.services__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 24px hsla(0, 0%, 0%, 0.1);
}

.services__icon {
	display: inline-block;
	color: var(--primary-color);
	margin-bottom: 1.5rem;
}

.services__icon i {
	width: 48px;
	height: 48px;
	stroke-width: 1.5;
}

.services__title {
	font-size: var(--h3-font-size);
	margin-bottom: 1rem;
}

.services__description {
	line-height: 1.6;
}

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

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

/*=============== CASES ===============*/
.cases {
	background-color: var(--white-color);
}

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

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

.cases__image img {
	border-radius: 8px;
	box-shadow: 0 10px 25px hsla(0, 0%, 0%, 0.08);
}

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

.cases__description {
	line-height: 1.6;
	margin-bottom: 1.5rem;
}

.cases__quote {
	font-style: italic;
	padding-left: 1.5rem;
	border-left: 3px solid var(--accent-color);
	margin-bottom: 2rem;
	color: var(--text-color);
}

.cases__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.cases__tag {
	background-color: var(--background-color);
	color: var(--primary-color);
	padding: 0.5rem 1rem;
	border-radius: 20px;
	font-size: var(--small-font-size);
	font-weight: var(--font-medium);
}

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

	.cases__item--reversed .cases__image {
		order: 2;
	}
}

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

.blog__container {
	display: grid;
	gap: 2rem;
	padding-top: 1rem;
}

.blog__card {
	background-color: var(--white-color);
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--border-color);
	box-shadow: 0 4px 12px hsla(0, 0%, 0%, 0.05);
	transition: transform 0.3s, box-shadow 0.3s;
}

.blog__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 24px hsla(0, 0%, 0%, 0.1);
}

.blog__image {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
}

.blog__data {
	padding: 1.5rem;
}

.blog__category {
	display: inline-block;
	background-color: var(--primary-color);
	color: var(--white-color);
	padding: 0.25rem 0.75rem;
	border-radius: 4px;
	font-size: var(--small-font-size);
	font-weight: var(--font-medium);
	margin-bottom: 1rem;
}

.blog__title {
	font-size: var(--h3-font-size);
	margin-bottom: 0.75rem;
}

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

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

.blog__description {
	line-height: 1.6;
	margin-bottom: 1.5rem;
}

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

.blog__date {
	font-size: var(--small-font-size);
	color: #7f8c8d;
}

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

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

/*=============== ABOUT ===============*/
.about {
	background-color: var(--white-color);
}

.about__container {
	display: grid;
	gap: 3rem;
	align-items: center;
}

.about__image img {
	border-radius: 8px;
	box-shadow: 0 10px 25px hsla(0, 0%, 0%, 0.08);
}

.about__title {
	text-align: left;
	margin-bottom: 1.5rem;
}

.about__description {
	margin-bottom: 2.5rem;
	line-height: 1.6;
}

.about__stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	text-align: center;
}

.about__stat-number {
	font-size: var(--h1-font-size);
	color: var(--primary-color);
	font-weight: var(--font-bold);
	margin-bottom: 0.5rem;
}

.about__stat-description {
	font-size: var(--small-font-size);
	color: var(--text-color);
}

/*=============== BREAKPOINTS ===============*/
/* For large devices */
@media screen and (min-width: 768px) {
	.about__container {
		grid-template-columns: 0.8fr 1.2fr;
	}
}

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

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

.contact__content {
	text-align: center;
}

.contact__description {
	max-width: 600px;
	margin: 0 auto;
}

.contact__form-group {
	position: relative;
	margin-bottom: 2rem;
	height: 4rem;
}

.contact__form-input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 2px solid var(--border-color);
	background: none;
	color: var(--text-color);
	outline: none;
	padding: 1.5rem;
	border-radius: 0.75rem;
	z-index: 1;
}

.contact__form-label {
	position: absolute;
	top: 1rem;
	left: 1rem;
	padding: 0 0.25rem;
	background-color: var(--white-color);
	color: var(--text-color);
	font-size: var(--normal-font-size);
	transition: 0.3s;
}

/* Move label up when input is focused or has value */
.contact__form-input:focus + .contact__form-label,
.contact__form-input:not(:placeholder-shown) + .contact__form-label {
	top: -0.5rem;
	left: 0.8rem;
	font-size: var(--small-font-size);
	z-index: 10;
}

.contact__form-input:focus {
	border: 2px solid var(--primary-color);
}

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

.contact__form-checkbox-input {
	width: 1.25em;
	height: 1.25em;
	margin-top: 0.15em;
	flex-shrink: 0;
}

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

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

.contact__button {
	width: 100%;
	border: none;
	cursor: pointer;
}

.contact__message {
	font-size: var(--small-font-size);
	text-align: center;
	margin-bottom: 1.5rem;
}

/*=============== BREAKPOINTS ===============*/
/* For large devices */
@media screen and (min-width: 768px) {
	.contact__container {
		grid-template-columns: repeat(2, 1fr);
		align-items: center;
	}
	.contact__content {
		text-align: left;
	}
}

/*=============== COOKIE POPUP ===============*/
.cookie {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--secondary-color);
	color: var(--white-color);
	padding: 1.5rem;
	z-index: var(--z-modal);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	text-align: center;
	box-shadow: 0 -4px 12px hsla(0, 0%, 0%, 0.15);
	transform: translateY(120%);
	transition: transform 0.5s ease-in-out;
}

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

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

.cookie__text a {
	color: var(--accent-color);
	text-decoration: underline;
}

.cookie__button {
	border: none;
	padding: 0.75rem 2rem;
	background-color: var(--accent-color);
}

@media screen and (min-width: 768px) {
	.cookie {
		flex-direction: row;
		justify-content: center;
		gap: 2rem;
	}
}

/*=============== POLICY PAGES ===============*/
.pages {
	padding-top: calc(var(--header-height) + 4rem);
	padding-bottom: 6rem;
	background-color: var(--white-color);
}

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

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

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

.pages .container ul {
	list-style-type: disc;
	padding-left: 2rem;
	margin-bottom: 1.5rem;
}

.pages .container li {
	margin-bottom: 0.75rem;
	line-height: 1.8;
}

.pages .container a {
	color: var(--primary-color);
	text-decoration: underline;
	font-weight: var(--font-medium);
}

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

.pages .container strong {
	font-weight: var(--font-bold);
	color: var(--secondary-color);
}
