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

.header {
	position: relative;
	font-family: 'Montserrat', sans-serif;
	z-index: 10;
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 16px;
	flex-wrap: nowrap;
}

.logo img {
	width: 312px;
	height: 56.4px;
}

.nav-menu ul {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0;
	flex: 1;
	justify-content: space-evenly;
	gap: 15px;
}

.nav-menu li {
	position: relative;
	white-space: nowrap;
}

.nav-menu a {
	color: #fff;
	text-decoration: none;
	font-size: 20px;
	padding: 10px;
}

.nav-menu li:hover::before {
	content: '';
	position: absolute;
	width: 100%;
	height: 47px;
	background-color: rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.burger-menu {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}

.burger-menu img {
	width: 29px;
	height: 25px;
	margin-right: 20px;
}

.contact-info {
	display: flex;
	align-items: center;
	margin-right: 7px;
}

.phone-number {
	color: #fff;
	font-size: 17px;
	margin-left: 8px;
	white-space: nowrap;
	text-decoration: none;
	position: relative;
	top: -2px;
	display: flex;
	align-items: center;
}

.phone-number .phone-icon {
	margin-right: 5px;
	width: 25px;
	height: 25px;
	transition: all 0.3s ease;
}

.phone-number:hover .phone-icon {
	filter: brightness(0) saturate(100%) invert(40%) sepia(80%) saturate(700%) hue-rotate(-10deg) brightness(105%) contrast(92%);
}

.phone-number:hover {
	color: rgba(255, 13, 30, 0.7);
}

.social-icons-container {
	height: 48px;
	background-color: rgba(255, 255, 255, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	padding: 0 5px;
	position: relative;
	z-index: 10;
}

.social-icons {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.social-icons a {
	transition: background-color 0.3s ease;
	padding: 5px;
	border-radius: 50%;
}

.social-icons a img {
	width: 27px;
	height: 27px;
}

.social-icons a[href*="vk.com"]:hover img {
	filter: brightness(0) saturate(100%) invert(25%) sepia(100%) saturate(5000%) hue-rotate(240deg) brightness(100%) contrast(100%);
}

.social-icons a[href*="t.me"]:hover img {
	filter: brightness(0) saturate(100%) invert(64%) sepia(100%) saturate(2000%) hue-rotate(190deg) brightness(90%) contrast(100%);
}

.social-icons a[href*="wa.me"]:hover img {
	filter: brightness(0) saturate(100%) invert(51%) sepia(75%) saturate(800%) hue-rotate(85deg) brightness(100%) contrast(92%);
}

.divider-container {
	display: flex;
	justify-content: center;
	position: relative;
	margin: 0 16px;
}

.divider {
	width: calc(100% - 32px);
	height: 3px;
	background-color: rgba(255, 255, 255, 0.33);
	position: absolute;
	top: -15px;
	z-index: 1;
}

/* Медиа-запросы */
@media (max-width: 1200px) {
	.nav-menu a {
		font-size: 16px;
	}

	.logo img {
		width: calc(312px * 0.8);
		height: calc(56.4px * 0.8);
	}

	.social-icons-container {
		height: calc(48px * 0.8);
		padding: 0 8px;
	}

	.social-icons {
		gap: 5px;
	}

	.social-icons a img {
		width: 20px;
		height: 20px;
	}

	.phone-number {
		font-size: 14.45px;
	}

	.divider {
		top: -10px;
	}
}

@media (max-width: 992px) {
	.nav-menu a {
		font-size: 12px;
	}

	.logo img {
		width: calc(312px * 0.6);
		height: calc(56.4px * 0.6);
	}

	.social-icons-container {
		height: calc(48px * 0.6);
		padding: 0 6px;
	}

	.social-icons {
		gap: 3px;
	}

	.social-icons a img {
		width: 18px;
		height: 18px;
	}

	.phone-number {
		font-size: 12.75px;
	}

	.divider {
		top: -10px;
	}
}

@media (max-width: 768px) {
	.header-content {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		text-align: center;
		padding: 20px 16px;
	}

	.nav-menu {
		display: none;
	}

.nav-menu.open {
	display: block;
	position: absolute;
	top: 60px;
	left: 0;
	right: 0;
	background-color: rgba(6, 68, 105, 0.9);
	/* Полупрозрачный фон */
	padding: 15px;
	/* Компактный отступ */
	z-index: 10000;
}

.nav-menu.open ul {
	flex-direction: column;
	/* Вертикальное построение меню */
	margin: 0;
	padding: 0;
}

.nav-menu.open li {
	margin: 10px 0;
	/* Отступ между пунктами меню */
	text-align: center;
}

.nav-menu.open a {
	font-size: 80%;
	/* Уменьшение шрифта на 20% */
	padding: 8px;
	/* Компактное поле для пунктов */
	color: #fff;
	text-decoration: none;
}

	.burger-menu {
		display: block;
		padding: 0;
	}

	.contact-info {
		display: none;
	}

	.social-icons-container {
		display: none;
	}

	.logo {
		flex: 1;
		text-align: left;
	}

	.logo img {
		width: calc(312px * 0.6);
		height: calc(56.4px * 0.6);
	}

	.nav-menu a {
		font-size: 16px;
	}

	.divider {
		top: -10px;
	}

	.burger-menu {
		margin-left: 7px;
	}
}

@media (max-width: 576px) {
	.nav-menu a {
		font-size: 16px;
	}

	.logo img {
		width: calc(312px * 0.6);
		height: calc(56.4px * 0.6);
	}

	.social-icons-container {
		height: calc(48px * 0.4);
		padding: 0 4px;
	}

	.social-icons {
		gap: 3px;
	}

	.social-icons a img {
		width: 16px;
		height: 16px;
	}

	.phone-number {
		font-size: 10.2px;
	}

	.divider {
		top: -10px;
	}

	.burger-menu {
		margin-left: 7px;
	}
}

/* header.css */
.menu-item.activelink.mask-next::before {
	content: '';
	position: absolute;
	width: 100%;
	height: 47px;
	background-color: rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.menu-item.activelink.active2::before {
	content: '';
	position: absolute;
	width: 100%;
	height: 47px;
	background-color: rgba(255, 255, 255, 0);
	border-radius: 5%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
footer {
  background-color: #171A1A;
  padding: 40px 20px;
  color: #fff;
  position: relative;
  z-index: 1;
  height: auto;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(280px, 320px) repeat(3, 1fr);
  gap: 40px;
  padding: 0;
  margin-bottom: 30px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.footer-logo-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.footer-logo {
  width: 320px;
  height: 40px;
  margin-bottom: 16px;
  margin-top: 0;
}

.footer-company-details {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  margin-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
}

.footer-company-details a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.footer-company-details a:hover {
  color: #FF0D1E;
  text-decoration: underline;
}

.footer-sections {
  display: contents;
}

.footer-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 18px;
  text-transform: uppercase;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.red-line {
  width: 30px;
  height: 3px;
  background-color: #FF0D1E;
  margin: 0 0 16px 0;
}

.footer-company-info,
.footer-info,
.footer-socials {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-company-info a,
.footer-info a,
.footer-socials a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.footer-company-info a:hover,
.footer-info a:hover,
.footer-socials a:hover {
  color: #FF0D1E;
  text-decoration: underline;
}

.footer-social-icons {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.footer-social-icon-container {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  border: 1px solid rgba(255, 13, 30, 0.5);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.footer-social-icon-container:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 13, 30, 0.8);
}

.footer-social-icon-container a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.footer-social-icons img {
  width: 20px;
  height: 20px;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

/* Изменение цвета иконок при наведении */
.footer-social-icon-container:hover img {
  filter: brightness(0) saturate(100%) invert(64%) sepia(100%) saturate(2000%) hue-rotate(190deg) brightness(90%) contrast(100%);
}

/* Специфичные цвета для ВКонтакте */
.footer-social-icon-container:hover a[href*="vk.com"] img {
  filter: brightness(0) saturate(100%) invert(25%) sepia(100%) saturate(5000%) hue-rotate(240deg) brightness(100%) contrast(100%);
}

/* Специфичные цвета для Telegram */
.footer-social-icon-container:hover a[href*="t.me"] img {
  filter: brightness(0) saturate(100%) invert(64%) sepia(100%) saturate(2000%) hue-rotate(190deg) brightness(90%) contrast(100%);
}


.footer-social-icon-container:hover a[href*="wa.me"] img {
  filter: brightness(0) saturate(100%) invert(51%) sepia(75%) saturate(800%) hue-rotate(85deg) brightness(100%) contrast(92%);
}


.footer-bottom {
  text-align: center;
  padding-top: 10px;
  margin-top: 20px;
}

.footer-bottom a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.footer-bottom a:hover {
  color: #FF0D1E;
  text-decoration: underline;
}

/* Desktop large: 1200px+ */
@media (min-width: 1200px) {
  .footer-top {
    gap: 50px;
  }
}

/* Desktop medium: 1024-1199px */
@media (max-width: 1199px) {
  .footer-top {
    gap: 32px;
  }
  
  .footer-company-info,
  .footer-info,
  .footer-socials {
    font-size: 15px;
  }
}

/* Tablet large: 900-1023px */
@media (max-width: 1023px) {
  footer {
    padding: 30px 20px;
  }
  
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
  
  .footer-logo-section {
    grid-column: 1 / -1;
  }
  
  .footer-company-details {
    font-size: 15px;
    margin-left: 0;
  }
  
  .footer-company-info,
  .footer-info,
  .footer-socials {
    font-size: 15px;
  }
}

/* Кнопка для скролла наверх */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.scroll-to-top:hover {
  transform: scale(1.1);
}

/* Tablet: 768-899px */
@media (max-width: 899px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
  
  .footer-logo-section {
    grid-column: 1 / -1;
    align-items: center;
  }
  
  .footer-company-details {
    align-items: center;
    text-align: center;
    margin-left: 0;
  }
  
  .footer-section {
    align-items: center;
    text-align: center;
  }
  
  .footer-company-info,
  .footer-info,
  .footer-socials {
    align-items: center;
    text-align: center;
  }
  
  .red-line {
    margin-left: auto;
    margin-right: auto;
  }
  
  .footer-social-icons {
    justify-content: center;
  }
}

/* Mobile large: 480-767px */
@media (max-width: 767px) {
  footer {
    padding: 30px 15px;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-logo-section {
    align-items: center;
    grid-column: 1;
  }
  
  .footer-section {
    width: 100%;
    max-width: 400px;
    align-items: center;
    text-align: center;
    margin: 0 auto;
  }

  .footer-logo {
    width: 240px;
    height: 30px;
  }

  .footer-company-details {
    font-size: 15px;
    text-align: center;
    align-items: center;
    margin-left: 0;
  }

  .footer-section-title {
    font-size: 17px;
    text-align: center;
  }

  .footer-company-info,
  .footer-info,
  .footer-socials {
    font-size: 15px;
    text-align: center;
    align-items: center;
  }

  .red-line {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-social-icons {
    justify-content: center;
  }
}

/* Mobile medium: 375-479px */
@media (max-width: 479px) {
  footer {
    padding: 25px 15px;
  }
  
  .footer-top {
    gap: 28px;
  }
  
  .footer-logo {
    width: 200px;
    height: 25px;
  }

  .footer-company-details {
    font-size: 14px;
  }

  .footer-section-title {
    font-size: 16px;
  }

  .footer-company-info,
  .footer-info,
  .footer-socials {
    font-size: 14px;
  }
  
  .footer-section {
    max-width: 100%;
  }
}

/* Mobile small: 320-374px */
@media (max-width: 374px) {
  footer {
    padding: 20px 10px;
  }
  
  .footer-top {
    gap: 24px;
  }
  
  .footer-logo {
    width: 180px;
    height: 22px;
  }

  .footer-company-details {
    font-size: 13px;
  }

  .footer-section-title {
    font-size: 15px;
  }

  .footer-company-info,
  .footer-info,
  .footer-socials {
    font-size: 13px;
  }
  
  .footer-social-icon-container {
    width: 36px;
    height: 36px;
  }
  
  .footer-social-icons img {
    width: 18px;
    height: 18px;
  }
}

.footer-item.footerselect-next {
  color: #FF0D1E;
  text-decoration: underline;
}

/* Глобальные стили */
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #000;
  overflow-x: hidden;
}

.projects-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #000;
  margin: 0;
  padding: 0;
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: url('/image-fone.svg') no-repeat center center/cover;
  background-size: cover;
}

.fixed-schema {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/shema.svg') no-repeat center center;
  background-size: cover;
  z-index: 0;
  opacity: 1;
  animation: pulse 10s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.2;
  }
}

.header,
.footer {
  z-index: 1000;
  position: relative;
}

.content-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
}

.projects-section {
  flex: 1;
  width: 100%;
  color: white;
  text-align: center;
  padding-top: 50px;
  padding-bottom: 20px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.projects-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
}

/* Фильтр проектов */
.projects-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  padding: 0 20px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(45, 49, 55, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.filter-btn:hover {
  background: rgba(220, 38, 38, 0.3);
  border-color: rgba(220, 38, 38, 0.5);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border-color: #dc2626;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .projects-filter {
    gap: 8px;
    padding: 0 10px;
  }
  
  .filter-btn {
    padding: 10px 16px;
    font-size: 12px;
  }
  
  .filter-count {
    min-width: 20px;
    height: 20px;
    font-size: 10px;
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  padding: 20px;
}

.project-item {
  position: relative;
  background-color: #2D3137;
  border: 1px solid #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  box-shadow: 0 10px 20px rgba(255, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 5px;
  overflow: hidden;
  z-index: 1;
  aspect-ratio: 4/3;
}

.project-item:hover {
  box-shadow: none;
  transform: scale(1.02);
}

.project-image {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  transition: filter 0.3s ease, transform 0.3s ease;
  filter: grayscale(100%);
  object-fit: cover;
}

.project-item:hover .project-image {
  filter: grayscale(0);
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  opacity: 1;
  z-index: 2;
}

.project-item:hover .project-overlay {
  opacity: 0;
  visibility: hidden;
}

.project-text {
  color: white;
  text-align: center;
  z-index: 2;
  margin-left: 10px;
  margin-right: 10px;
}

.project-text p {
  font-size: 19px;
  font-weight: bold;
  color: white;
  margin: 10px 0;
}

.project-address {
  font-size: 12px;
  font-weight: normal;
  color: white;
  margin: 10px 0;
}

.project-button {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background-color: rgba(255, 13, 30, 0.8);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 3;
}

.project-item:hover .project-button {
  opacity: 1;
  visibility: visible;
}

.project-button:hover {
  background-color: rgba(255, 13, 30, 1);
}

.load-more-button {
  margin: 40px auto;
  padding: 12px 30px;
  background-color: rgba(255, 13, 30, 0.8);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  display: block;
  position: relative;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.load-more-button:hover {
  background-color: rgba(255, 13, 30, 1);
}

@media (max-width: 768px) {
  .projects-title {
    font-size: 24px;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-text p {
    font-size: 12px;
    line-height: 1.2;
  }
  .project-address {
    font-size: 9px;
  }
  .load-more-button {
    font-size: 14px;
    padding: 8px 16px;
  }
}

@media (max-width: 576px) {
  .projects-title {
    font-size: 20px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .project-text p {
    font-size: 16px;
    line-height: 1.4;
  }
  .project-address {
    font-size: 11px;
  }
  .load-more-button {
    font-size: 14px;
    padding: 8px 16px;
  }
}

.main-container {
  position: relative;
  padding-top: 0px; /* Отступ сверху, чтобы избежать наложения с шапкой */
  z-index: 1;
}

.fixed-schema {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(/_next/static/media/shema.fd904d0f.svg) no-repeat center center;
  background-size: cover;
  z-index: 0;
  opacity: 1;
  animation: pulse 10s infinite;
}

.content-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
}

@keyframes pulse {
  0% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.2;
  }
  100% {
    opacity: 0.8;
  }
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding-top: 0;
  margin: 0;
}

@media (max-width: 768px) {
  .content-wrapper {
    padding: 0 1px;
  }
}

