:root {
  /* Новая цветовая схема */
  --primary-color: #8aaaa5;
  --secondary-color: #cfdbda;
  --light-gray: #e2eeec;
  --cream: #cabd9a;
  --accent-color: #a5956d;
  --accent-color-bright: #bfad7d;
  --text-color: #4a5d5a;
  --white: #ffffff;
  --shadow-light: rgba(0, 0, 0, 0.08);
  --shadow-medium: rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-gray);
  padding-top: 180px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: 0 2px 10px var(--shadow-light);
  transition: all 0.4s ease;
}

.header.scrolled {
  padding: 5px 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  transition: all 0.4s ease;
}

.header.scrolled .nav {
  padding: 0.5rem 2rem;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  transition: all 0.4s ease;
}

.logo-container a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: inherit;
}

.logo-img {
  height: 80px;
  width: auto;
  transition: all 0.4s ease;
}

.header.scrolled .logo-img {
  height: 50px;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: -1rem;
  text-align: center;
  transition: all 0.4s ease;
}

.header.scrolled .logo-text {
  font-size: 1.4rem;
  margin-top: -0.5rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  transition: all 0.4s ease;
}

.nav-links a {
  color: #8aaaa5;
  text-decoration: none;
  padding: 10px 15px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a.active,
.nav-links a.active::after {
  color: #a5956d;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 15%;
  width: 70%;
  height: 2px;
  background-color: #a5956d;
  transform: scaleX(1);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 15%;
  width: 70%;
  height: 2px;
  background-color: #a5956d;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-color);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.startup-btn {
  background-color: var(--accent-color);
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

.startup-btn:hover {
  background-color: var(--primary-color);
  color: white !important;
}

.contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  color: var(--primary-color);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

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

.address-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  text-align: center;
  width: 100%;
  display: block;
}

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  background-color: var(--light-gray);
  background-image: linear-gradient(135deg, #e9f5f3 0%, #d9cea9 100%);
}

.hero-content {
  text-align: center;
  max-width: 1200px;
  width: 100%;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

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

.benefit-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 20px var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid var(--cream);
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-medium);
  border-left-color: var(--accent-color-bright);
}

.benefit-icon {
  font-size: 2.5rem;
  color: var(--accent-color-bright);
  margin-bottom: 1rem;
}

.benefit-card h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.benefit-card p {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.5;
}

.cta-button {
  background-color: var(--accent-color-bright);
  color: var(--white);
  border: none;
  padding: 1.2rem 2.5rem;
  font-size: 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 15px rgba(165, 149, 109, 0.2);
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow-medium);
}

.footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 4rem 2rem 2rem;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  gap: 2rem;
}

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

.footer-logo-img {
  height: 60px;
  width: auto;
  margin-bottom: 0.5rem;
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.footer-menu {
  margin: 0 2rem;
}

.footer-menu h3,
.footer-contacts h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-menu h3::after,
.footer-contacts h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-nav-links {
  list-style: none;
  padding: 0;
}

.footer-nav-links li {
  margin-bottom: 0.8rem;
}

.footer-nav-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav-links a:hover {
  color: var(--accent-color);
}

.footer-contacts p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.footer-contacts i {
  margin-right: 0.8rem;
  color: var(--accent-color);
}

.footer-contacts .social-icons {
  margin-top: 1.5rem;
}

.footer-map {
  width: 40%;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-info,
.footer-menu,
.footer-map {
  flex: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 992px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-map {
    width: 100%;
    margin-top: 2rem;
  }

  .footer-info,
  .footer-menu {
    width: 100%;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-logo {
    grid-column: span 1;
  }

  .footer-map {
    height: 300px;
    width: 100%;
    margin-top: 20px;
    order: 3;
  }

  .footer-info {
    width: 100%;
    order: 1;
  }

  .footer-menu {
    width: 100%;
    order: 2;
    margin-top: 20px;
  }
}

@media (max-width: 576px) {
  .footer-map {
    height: 250px;
  }

  .footer-map iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
  }
}

.slogan {
  font-size: 1.2rem;
  color: var(--accent-color);
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 1s;
  transition: all 0.4s ease;
}

.header.scrolled .slogan {
  opacity: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
  animation: none;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  50% {
    opacity: 0.5;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1200px) {
  .nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    margin: 1rem 0;
  }

  .contacts {
    align-items: center;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

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

  .hero h1 {
    font-size: 2.5rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    padding: 1.5rem;
  }
}

.about-section {
  position: relative;
  padding: 6rem 2rem;
  overflow: hidden;
  background-color: var(--white);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("Images/f2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 0;
}

.about-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 15px 40px var(--shadow-medium);
  border-bottom: 5px solid var(--cream);
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: var(--accent-color);
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  position: relative;
  z-index: 2;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-text .highlight {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--accent-color);
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
  border-left: 4px solid var(--accent-color);
  background-color: rgba(167, 196, 212, 0.1);
}

@media (max-width: 768px) {
  .about-section {
    padding: 4rem 1rem;
  }

  .about-content {
    padding: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

.services-section {
  padding: 6rem 2rem;
  background-color: var(--white);
}

.services-subtitle {
  text-align: center;
  color: var(--text-color);
  font-size: 1.2rem;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 3rem;
  background: none;
  min-height: 280px;
}

.service-image {
  width: 33%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  background-color: var(--light-gray);
  padding: 20px;
  border-radius: 50%;
  box-shadow: 0 4px 8px var(--shadow-light);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  aspect-ratio: 1/1;
  border: 4px solid var(--cream);
}

.service-image.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-content {
  padding: 0 2.5rem;
  flex: 1;
}

.service-content h3 {
  color: var(--primary-color);
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.service-content p {
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Изменяем порядок элементов для шахматного расположения */
.service-item:nth-child(odd) .service-image {
  order: 1;
}

.service-item:nth-child(odd) .service-content {
  order: 2;
}

.service-item:nth-child(even) .service-image {
  order: 2;
}

.service-item:nth-child(even) .service-content {
  order: 1;
}

@media (max-width: 1024px) {
  .service-item {
    flex-direction: column !important;
    max-width: 600px;
    margin: 0 auto;
    gap: 2rem;
    min-height: auto;
  }

  .service-image {
    width: 200px;
    height: 200px;
    order: 1 !important;
    margin: 0 auto;
  }

  .service-content {
    padding: 0;
    order: 2 !important;
  }

  .service-content h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .services-section {
    padding: 4rem 1rem;
  }

  .service-image {
    width: 180px;
    height: 180px;
  }

  .service-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .service-content p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .service-image {
    width: 150px;
    height: 150px;
  }
}

/* Секция "Мы в цифрах" */
.statistics-section {
  background-color: var(--white);
  padding: 5rem 2rem;
}

.statistics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.statistic-item {
  background-color: var(--light-gray);
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-light);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
  border-bottom: 3px solid var(--cream);
}

.statistic-item:hover {
  transform: translateY(-10px);
  border-bottom-color: var(--accent-color);
}

.statistic-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.statistic-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  position: relative;
}

.statistic-number::before {
  content: ">";
  font-size: 2rem;
  margin-right: 0.3rem;
  color: var(--accent-color);
}

.statistic-label {
  font-size: 1.1rem;
  color: var(--text-color);
}

@media (max-width: 1024px) {
  .statistics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .statistics-section {
    padding: 4rem 1rem;
  }

  .statistics-grid {
    gap: 1.5rem;
  }

  .statistic-number {
    font-size: 2.5rem;
  }

  .statistic-number::before {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .statistics-grid {
    grid-template-columns: 1fr;
  }

  .statistic-label {
    font-size: 1rem;
  }

  .statistic-number {
    font-size: 2rem;
  }

  .statistic-number::before {
    font-size: 1.5rem;
  }
}

/* Секция "Наша миссия и ценности" */
.mission-section {
  padding: 6rem 2rem;
  background-color: var(--white);
  background-image: linear-gradient(135deg, var(--white) 0%, #e9f5f3 100%);
  position: relative;
  overflow: hidden;
}

.mission-section::before,
.mission-section::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.3;
  z-index: 0;
  filter: brightness(1.2) contrast(1.1);
}

.mission-section::before {
  top: 50px;
  left: 50px;
  background-image: url("Images/f1.png");
  transform: rotate(-15deg);
}

.mission-section::after {
  bottom: 50px;
  right: 50px;
  background-image: url("Images/f3.png");
  transform: rotate(15deg);
}

.mission-section .container::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.3;
  z-index: -2;
  bottom: 349px;
  left: -39px;
  transform: rotate(22deg);
  background-image: url("Images/f4.png");
  filter: brightness(1.2) contrast(1.1);
}

.mission-section .container {
  position: relative;
  z-index: 1;
}

.mission-content {
  max-width: 1000px;
  margin: 0 auto 4rem;
}

.mission-card {
  background-color: var(--white);
  border-radius: 15px;
  padding: 3rem;
  box-shadow: 0 10px 20px var(--shadow-light);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--cream);
}

.mission-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-medium);
  border-top-color: var(--accent-color);
}

.mission-icon {
  font-size: 3.5rem;
  color: var(--accent-color-bright);
  margin-bottom: 1.5rem;
  background-color: var(--light-gray);
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(165, 149, 109, 0.15);
  margin: 0 auto 1.5rem;
}

.mission-card h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.mission-card p {
  font-size: 1.2rem;
  color: var(--text-color);
  line-height: 1.8;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
}

.value-card {
  background-color: var(--white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 20px var(--shadow-light);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-right: 4px solid var(--cream);
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-medium);
  border-right-color: var(--accent-color);
}

.value-icon {
  font-size: 2.5rem;
  color: var(--accent-color-bright);
  margin-bottom: 1.5rem;
  background-color: var(--light-gray);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(165, 149, 109, 0.15);
  margin: 0 auto 1.5rem;
}

.value-card h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.value-card p {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.6;
}

.team-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
  background-color: var(--white);
  border-radius: 15px;
  padding: 3rem;
  box-shadow: 0 10px 20px var(--shadow-light);
  margin-top: 40px;
  border-left: 4px solid var(--cream);
  border-right: 4px solid var(--accent-color);
}

.team-text {
  flex: 1;
}

.team-text p {
  font-size: 1.2rem;
  color: var(--text-color);
  line-height: 1.8;
}

.team-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.team-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  filter: brightness(1.15) contrast(1.1);
}

.team-img.visible {
  opacity: 1;
  transform: translateY(0);
}

.work-with-us {
  max-width: 1000px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: 15px;
  padding: 3rem;
  box-shadow: 0 10px 20px var(--shadow-light);
  border-bottom: 4px solid var(--accent-color);
}

.work-with-us h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
}

.work-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

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

.work-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-top: 0.2rem;
}

.work-item p {
  font-size: 1.1rem;
  color: var(--text-color);
  line-height: 1.6;
}

.work-summary {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--light-gray);
}

.work-summary p {
  font-size: 1.2rem;
  color: var(--primary-color);
  line-height: 1.8;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .mission-card {
    padding: 2rem;
  }

  .mission-icon {
    font-size: 2.5rem;
    width: 100px;
    height: 100px;
  }

  .mission-card h3 {
    font-size: 1.5rem;
  }

  .mission-card p {
    font-size: 1rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .team-content {
    padding: 2rem;
  }

  .work-with-us {
    padding: 2rem;
  }

  .work-with-us h3 {
    font-size: 1.5rem;
  }

  .work-item p {
    font-size: 1rem;
  }

  .work-summary p {
    font-size: 1.1rem;
  }
}

/* Анимация для всех изображений услуг */
.service img,
.service-card img,
.image-container img {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.service img.visible,
.service-card img.visible,
.image-container img.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Адаптивные стили для различных размеров экранов */

/* Большие десктопы (от 1400px) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
    margin: 0 auto;
  }

  .services-grid {
    gap: 3rem;
  }

  .service-image {
    max-width: 400px;
  }
}

/* Средние десктопы (от 1200px до 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
  .container {
    max-width: 1140px;
    margin: 0 auto;
  }

  .services-grid {
    gap: 2.5rem;
  }
}

/* Десктопы (от 992px до 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .container {
    max-width: 960px;
    margin: 0 auto;
  }

  .nav {
    padding: 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .services-grid {
    gap: 2rem;
  }

  .service-item {
    padding: 2rem;
  }
}

/* Планшеты (от 768px до 991px) */
@media (max-width: 991px) {
  body {
    padding-top: 80px;
  }

  .header {
    height: 80px;
    overflow: hidden;
    transition: height 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
  }

  .header.active {
    height: 100vh;
    overflow-y: auto;
  }

  .nav {
    position: relative;
    height: 80px;
    padding: 0.8rem 1rem;
    align-items: flex-start;
  }

  .burger-menu {
    display: flex;
  }

  .logo-container {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .logo-img {
    height: 60px;
  }

  .logo-text {
    font-size: 1.5rem;
    margin-top: -0.7rem;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    padding-top: 2rem;
    gap: 1.2rem;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    pointer-events: none;
  }

  .header.active .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    transition-delay: 0.2s;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
  }

  .header.active .nav-links li {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.3s;
  }

  .header.active .nav-links li:nth-child(2) {
    transition-delay: 0.4s;
  }

  .header.active .nav-links li:nth-child(3) {
    transition-delay: 0.5s;
  }

  .header.active .nav-links li:nth-child(4) {
    transition-delay: 0.6s;
  }

  .header.active .nav-links li:nth-child(5) {
    transition-delay: 0.7s;
  }

  .nav-links a {
    font-size: 1.2rem;
    display: block;
    padding: 0.5rem 0;
  }

  .contacts {
    width: 100%;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    transition-delay: 0.1s;
    pointer-events: none;
  }

  .header.active .contacts {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    transition-delay: 0.8s;
  }
}

/* Мобильные устройства (от 576px до 767px) */
@media (max-width: 767px) {
  .container {
    max-width: 540px;
    padding: 0 1rem;
  }

  .nav-links li {
    margin: 0.3rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

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

  .section-title {
    font-size: 1.8rem;
  }

  .statistics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

  .work-items {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-nav-links {
    flex-direction: column;
    align-items: center;
  }

  .footer-nav-links li {
    margin-bottom: 0.8rem;
  }
}

/* Маленькие мобильные устройства (до 575px) */
@media (max-width: 575px) {
  .nav {
    padding: 0.8rem;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .slogan {
    font-size: 0.8rem;
  }

  .nav-links {
    gap: 0.8rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .hero-content {
    padding: 2rem 1rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .benefit-card {
    padding: 1.2rem;
  }

  .benefit-card h3 {
    font-size: 1.1rem;
  }

  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  .service-item {
    padding: 1.5rem;
  }

  .service-item h3 {
    font-size: 1.2rem;
  }

  .statistics-grid {
    grid-template-columns: 1fr;
  }

  .statistic-number {
    font-size: 2rem;
  }

  .footer-logo-img {
    height: 50px;
  }

  .footer-logo-text {
    font-size: 1.3rem;
  }

  .footer-map {
    height: 250px;
  }
}

/* Бургер-меню */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  position: absolute;
  top: 30px;
  right: 20px;
  z-index: 1001;
  transition: all 0.3s ease;
}

.burger-line {
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  transition: all 0.4s ease;
}

/* Состояние бургера при открытом меню */
.burger-menu.active .burger-line:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
  transition: transform 0.4s ease 0.1s;
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  transition: transform 0.4s ease 0.1s;
}

/* Медиа-запросы для мобильного меню */
@media (max-width: 991px) {
  body {
    padding-top: 80px;
  }

  .header {
    height: 80px;
    overflow: hidden;
    transition: height 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
  }

  .header.active {
    height: 100vh;
    overflow-y: auto;
  }

  .nav {
    position: relative;
    height: 80px;
    padding: 0.8rem 1rem;
    align-items: flex-start;
  }

  .burger-menu {
    display: flex;
  }

  .logo-container {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .logo-img {
    height: 60px;
  }

  .logo-text {
    font-size: 1.5rem;
    margin-top: -0.7rem;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    padding-top: 2rem;
    gap: 1.2rem;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    pointer-events: none;
  }

  .header.active .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    transition-delay: 0.2s;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
  }

  .header.active .nav-links li {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.3s;
  }

  .header.active .nav-links li:nth-child(2) {
    transition-delay: 0.4s;
  }

  .header.active .nav-links li:nth-child(3) {
    transition-delay: 0.5s;
  }

  .header.active .nav-links li:nth-child(4) {
    transition-delay: 0.6s;
  }

  .header.active .nav-links li:nth-child(5) {
    transition-delay: 0.7s;
  }

  .nav-links a {
    font-size: 1.2rem;
    display: block;
    padding: 0.5rem 0;
  }

  .contacts {
    width: 100%;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    transition-delay: 0.1s;
    pointer-events: none;
  }

  .header.active .contacts {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    transition-delay: 0.8s;
  }
}

@media (max-width: 576px) {
  .logo-img {
    height: 50px;
  }

  .logo-text {
    font-size: 1.3rem;
  }

  .nav-links a {
    font-size: 1.1rem;
  }
}

/* Стили для страницы услуг */
body:has(.services-section:first-child) {
  background-color: var(--light-gray);
}

.services-section:first-child {
  padding-top: 8rem;
  min-height: 100vh;
}

.services-section:first-child .section-title {
  margin-bottom: 3rem;
}

.services-section:first-child .services-subtitle {
  margin-bottom: 4rem;
  font-size: 1.4rem;
}

/* Стили для страницы вакансий */
.vacancies-section {
  padding: 60px 0;
}

.page-title {
  text-align: center;
  margin-bottom: 40px;
  color: #1a3b6e;
}

.job-listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.job-card {
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-light);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  height: 380px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border-top: 4px solid var(--cream);
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px var(--shadow-medium);
  border-top-color: var(--accent-color);
}

.job-title {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.3rem;
}

.job-info {
  margin-top: auto;
  margin-bottom: 20px;
}

.job-location,
.job-experience {
  margin-bottom: 10px;
  color: var(--text-color);
  font-size: 16px;
  display: flex;
  align-items: center;
}

.job-location i,
.job-experience i {
  margin-right: 0.5rem;
  color: var(--accent-color);
  width: 20px;
}

.job-salary {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background-color: var(--light-gray);
  color: var(--primary-color);
  border-radius: 50px;
  font-weight: 500;
  margin-top: 0.7rem;
  font-size: 0.95rem;
}

.details-btn {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: 500;
  width: 100%;
  margin-top: 1rem;
}

.details-btn:hover {
  background-color: var(--accent-color);
}

/* Стили для модального окна с деталями вакансии */
.job-details-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
}

.job-details-container.visible {
  opacity: 1;
  visibility: visible;
}

.job-details-content {
  background-color: var(--white);
  border-radius: 10px;
  padding: 2.5rem;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 15px var(--shadow-medium);
  border-top: 5px solid var(--accent-color);
}

.job-details-content h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.job-details-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  background-color: var(--light-gray);
  padding: 1.2rem;
  border-radius: 8px;
}

.job-details-info p {
  margin: 0;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  color: var(--text-color);
}

.job-details-info i {
  margin-right: 0.7rem;
  color: var(--accent-color);
}

.job-details-description h4 {
  color: var(--primary-color);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.job-details-description ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.job-details-description li {
  margin-bottom: 0.8rem;
  position: relative;
  list-style-type: none;
  padding-left: 1.5rem;
  color: var(--text-color);
}

.job-details-description li::before {
  content: "•";
  color: var(--accent-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.job-details-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 2.5rem;
  gap: 1rem;
}

.job-details-actions button {
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.apply-btn {
  background-color: var(--accent-color);
  color: var(--white);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: 500;
}

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

.close-details-btn {
  background-color: var(--light-gray);
  color: var(--text-color);
  border: 1px solid var(--secondary-color);
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: 500;
}

.close-details-btn:hover {
  background-color: var(--secondary-color);
}

/* Стили для формы отклика */
.application-form-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
}

.application-form {
  background-color: var(--white);
  border-radius: 10px;
  padding: 2.5rem;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 15px var(--shadow-medium);
  border-top: 5px solid var(--accent-color);
}

.application-form h3 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.application-form h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: #a5956d;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #8aaaa5;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cfdbda;
  border-radius: 5px;
  color: #8aaaa5;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #8aaaa5;
}

/* Стилизация кнопки прикрепления файла */
.form-group input[type="file"] {
  display: none;
}

.file-upload-wrapper {
  position: relative;
  margin-top: 0.5rem;
}

.custom-file-upload {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  background-color: var(--light-gray);
  color: var(--text-color);
  border: 1px solid var(--secondary-color);
  border-radius: 5px;
  text-align: center;
  transition: background-color 0.3s;
  width: 100%;
  font-weight: 500;
}

.custom-file-upload i {
  margin-right: 0.5rem;
  color: var(--accent-color);
}

.custom-file-upload:hover {
  background-color: var(--secondary-color);
}

.file-name {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #8aaaa5;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
  gap: 1rem;
}

.submit-btn,
.cancel-btn {
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn {
  background-color: var(--accent-color);
  color: var(--white);
  border: none;
}

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

.cancel-btn {
  background-color: var(--light-gray);
  color: var(--text-color);
  border: 1px solid var(--secondary-color);
}

.cancel-btn:hover {
  background-color: var(--secondary-color);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .form-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .submit-btn,
  .cancel-btn {
    width: 100%;
  }
}

/* Отступ для якорных ссылок с учетом фиксированного хедера */
section[id] {
  scroll-margin-top: 120px;
}

section[id].scrolled {
  scroll-margin-top: 80px;
}

/* Стили для модальных окон (вакансии) */
.job-details-container,
.application-form-container {
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.job-details-container.visible,
.application-form-container.visible {
  display: flex;
  opacity: 1;
  visibility: visible;
}

/* Стили для чек-бокса согласия на обработку персональных данных */
.privacy-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.privacy-checkbox input[type="checkbox"] {
  min-width: 16px;
  height: 16px;
  border: 1px solid #ddd;
  border-radius: 3px;
  cursor: pointer;
  margin: 0;
  flex: 0 0 10%;
}

.privacy-checkbox label {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #555;
  cursor: pointer;
  flex: 0 0 90%;
}

.privacy-checkbox a {
  color: #a5956d;
  text-decoration: underline;
}

.privacy-checkbox a:hover {
  color: #8aaaa5;
}

/* Стили для страницы политики конфиденциальности */
.privacy-policy {
  padding: 60px 0;
}

.privacy-policy h1 {
  font-size: 2.5rem;
  color: #8aaaa5;
  text-align: center;
  margin-bottom: 2rem;
}

.privacy-content {
  background-color: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px var(--shadow-light);
}

.privacy-content h2 {
  color: #a5956d;
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2eeec;
}

.privacy-content p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: var(--text-color);
}

.privacy-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.privacy-content ul li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.privacy-content a {
  color: #a5956d;
  text-decoration: underline;
}

.privacy-content a:hover {
  color: #8aaaa5;
}

@media (max-width: 768px) {
  .privacy-policy {
    padding: 40px 15px;
  }

  .privacy-policy h1 {
    font-size: 28px;
  }

  .privacy-content {
    padding: 20px;
  }

  .privacy-content h2 {
    font-size: 22px;
  }
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--white);
  color: var(--text-color);
  margin: 15% auto;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px var(--shadow-medium);
  max-width: 500px;
  position: relative;
  border-left: 5px solid var(--accent-color);
}

.modal-content h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.modal-content p {
  margin-bottom: 25px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.close-modal {
  background-color: var(--accent-color);
  color: var(--white);
  border: none;
  padding: 10px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.3s;
}

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

/* Анимация появления модального окна */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal.show .modal-content {
  animation: modalFadeIn 0.3s ease forwards;
}

@media (max-width: 768px) {
  .modal-content {
    width: 90%;
    padding: 20px;
  }
}

.modal-content a {
  color: #a5956d;
  text-decoration: underline;
}
