@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: normal;
  src: url('fonts/public-sans.woff2') format('woff2'),
       url('fonts/public-sans.woff') format('woff');
}

@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: normal;
  src: url('fonts/work-sans.woff2') format('woff2'),
       url('fonts/work-sans.woff') format('woff');
}

:root {
  --font-family-public-sans: 'Public Sans', sans-serif;
  --font-family-work-sans: 'Work Sans', sans-serif;
  --font-family-roboto: 'Roboto', sans-serif;
  --container-width: 80vw;
  --max-container-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-roboto);
  background-color: #fff;
  color: #000;
  width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: var(--container-width);
  max-width: var(--max-container-width);
  margin: 0 auto;
}

.header {
  display: flex;
  align-items: center;
  padding: 10px 10px;
  border-bottom: 0.7px solid #a5a5a5;
  background-color: #fff;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  height: 50px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-container img {
  max-height: 40px;
  border-radius: 5px;
}

.logo-container h1 {
  font-family: var(--font-family-public-sans);
  font-size: 18px;
  font-weight: 700;
}

/* Banner */
.banner-container {
  position: relative;
  margin-top: 80px;
  border-radius: 12px;
  overflow: hidden;
  width: var(--container-width);
  max-width: var(--max-container-width);
  margin-bottom: 40px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
}

.banner-container:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.banner-container img {
  width: 100%;
  height: 400px;
  display: block;
  border-radius: 12px;
}

.banner-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-color: rgba(110,125,152, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px;
  border-bottom-right-radius: 12px;
  border-top-right-radius: 12px;
  transition: background-color 1s ease;
}

.banner-container:hover .banner-overlay {
  background-color: rgba(82, 93, 113, 0.8);
}

.banner-overlay h1 {
  font-family: var(--font-family-work-sans);
  font-size: 42px;
  font-weight: 900;
  color: #fff;
}

.banner-overlay p {
  font-family: var(--font-family-public-sans);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

/* Section Animations */
.section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* About, Key Areas, Presence */
.about-section,
.key-areas-section,
.presence-section,
.contact-section {
  width: var(--container-width);
  max-width: var(--max-container-width);
  margin: 40px auto;
  padding: 20px 0;
}

.about-heading,
.presence-heading,
.contact-heading {
  font-family: var(--font-family-public-sans);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #000;
}

.about-text,
.presence-text {
  font-family: var(--font-family-public-sans);
  font-size: 14px;
  font-weight: 400;
  color: #000;
  line-height: 1.5;
  text-align: justify;
}

.key-areas-heading {
  font-family: var(--font-family-roboto);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: left;
}

.key-areas-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
}

.key-area {
  flex: 1 1 calc(33% - 20px);
  background-color: #f9f9f9;
  border-radius: 8px;
  text-align: justify;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.key-area:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.key-area-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.key-area-title {
  font-family: var(--font-family-roboto);
  font-size: 16px;
  font-weight: 500;
  margin: 10px;
  transition: color 0.3s ease;
}

.key-area-title:hover {
  color: #698273;
}

.key-area-description {
  font-family: var(--font-family-public-sans);
  font-size: 14px;
  font-weight: 400;
  color: #698273;
  margin: 0 10px 10px 10px;
}

/* Contact Section */
.contact-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
  align-items: stretch;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: #f2f5f7;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 32%;
  min-height: 150px;
  box-sizing: border-box;
  justify-content: flex-start; /* добавлено */
}


.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-icon {
  font-size: 24px;
  color: rgba(110,125,152);
  transition: color 0.3s ease;
}

.contact-icon:hover {
  color: #698273;
}

.contact-text {
  display: flex;
  flex-direction: column;
  justify-content: center; /* чтобы текст центрировался по высоте */
  height: auto;            /* убираем принудительную высоту */
}

.contact-title {
  font-family: var(--font-family-public-sans);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.contact-info {
  font-family: var(--font-family-public-sans);
  font-size: 12px;
  font-weight: 400;
  color: #000;
  margin: 0;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px 0;
  font-family: var(--font-family-public-sans);
  font-size: 14px;
  color: #666;
}

/* Responsive Styles */
@media (max-width: 768px) {
  :root {
    --container-width: 90vw;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 10px;
  }

  .logo-container h1 {
    font-size: 16px;
    text-align: left;
  }

  .banner-container img {
    height: auto;
    border-radius: 0;
  }

  .banner-overlay {
    width: 100%;
    padding: 20px;
    align-items: center;
    border-radius: 0;
    text-align: center;
  }

  .banner-overlay h1 {
    font-size: 28px;
  }

  .banner-overlay p {
    font-size: 14px;
  }

  .key-areas-container,
  .contact-container {
    flex-direction: column;
    gap: 20px;
  }

  .key-area,
  .contact-item {
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .banner-overlay h1 {
    font-size: 22px;
  }

  .banner-overlay p {
    font-size: 12px;
  }

  .about-heading,
  .presence-heading,
  .contact-heading {
    font-size: 20px;
  }

  .key-areas-heading {
    font-size: 18px;
  }

  .about-text,
  .presence-text,
  .key-area-description {
    font-size: 12px;
  }

  .key-area-title {
    font-size: 14px;
  }

  .contact-title {
    font-size: 16px;
  }

  .contact-info {
    font-size: 14px;
  }

  .contact-container {
    flex-direction: column;
    gap: 15px;
  }

  .contact-item {
    width: 100%;
  }
}
