@font-face {
  font-family: 'Gilroy';
  src: url('./assets/gilroy-font/Gilroy-Bold.woff') format('woff');
  font-weight: 700; /* For bold */
}

@font-face {
  font-family: 'Gilroy';
  src: url('./assets/gilroy-font/Gilroy-Medium.woff') format('woff');
  font-weight: 600; /* For semibold */
}

@font-face {
  font-family: 'Gilroy';
  src: url('./assets/gilroy-font/Gilroy-Regular.woff') format('woff');
  font-weight: 400; /* For regular */
}

@font-face {
  font-family: 'Gilroy';
  src: url('./assets/gilroy-font/Gilroy-Light.woff') format('woff');
  font-weight: 300; /* For light */
}

:root {
  --light-blue-color: #B6E4FC;
  --dark-blue-color: #324E7B;
  --light-grey-color: #F5F5F5;
  --dark-grey-color: #D9D9D9;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 145px;
}


h1 {
  font-size: 54px;
}

h2 {
  font-size: 38px;
  font-weight: normal;
}

h3 {
  font-size: 24px;
}

body {
  font-family: "Gilroy";
  margin: 0;
  padding: 0;
}

main {
  overflow: hidden;
}

.main-title {
  font-size: 32px;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  color: var(--dark-blue-color);
  white-space: normal;
}

/* Header */

header {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  top: 0;
  width: 100%;
  z-index: 100;
  transition: box-shadow 0.3s;
  box-sizing: border-box;
  animation: slideDown 1s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

header.scrolled {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.logo-block {
  display: flex;
  align-items: center;
}

.logo {
  height: 93px;
  width: 93px;
}

.logo img {
  height: 100%;
  width: 100%;
  animation: fadeIn 2s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.navbar {
  position: relative;
}

.burger-menu {
  display: none;
  cursor: pointer;
  font-size: 2em;
  color: #000;
}

.navbar ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.navbar ul li {
  margin-left: 24px;
}

.navbar ul li a:not(.contact-us-button) {
  text-decoration: none;
  color: #000;
  font-size: 1em;
  text-transform: uppercase;
  transition: color 0.3s;
  animation: fadeIn 1s ease-in-out;
}

.navbar ul li a:hover:not(.contact-us-button) {
  color: var(--light-blue-color);
  font-weight: 600;
}

.language-switcher select {
  border: 1px solid transparent;
  outline: none;
  border-radius: 0;
  padding: 10px 15px;
  cursor: pointer;
  color: #000;
  animation: fadeIn 1s ease-in-out;
}

#language-select-mob {
  background: transparent;
}

.language-switcher {
  display: flex;
  gap: 10px;
}

.contact-us-button {
  text-align: center;
  display: block;
  text-decoration: none;
  color: #fff;
  background: var(--dark-blue-color);
  height: 50px;
  line-height: 50px;
  width: 193px;
  cursor: pointer;
}

.hero-banner {
  height: 100vh;
  width: 100%;
  position: relative;
  margin-top: 93px;
  margin-bottom: 60px;
  padding-bottom: 28px;
  background-image: url("./assets/heroBanner-orig.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100vh + 28px);
  background-color: rgba(0, 0, 0, .3);
  z-index: 1;
}

.hero-banner-content {
  width: 600px;
  margin-left: 60px;
  z-index: 2;
}

.hero-banner-text {
  color: white;
  position: relative;
  z-index: 12;
  margin-bottom: 64px;
}

.about-us {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding-left: 60px;
  padding-bottom: 60px;
  margin: 28px 0;
}

.about-us-text {
  min-width: 340px;
  max-width: 600px;
  margin: 0 12px;
}

#about-us-pic {
  background-image: url('./assets/aboutus.webp');
  background-size: cover;
  min-width: 420px;
  height: 300px;
  box-shadow: -20px 20px 0 var(--light-blue-color);
}

.services {
  padding: 0 60px;
  padding-bottom: 60px;
  position: relative;
}

.services:before {
  content: '';
  height: 400px;
  width: 30px;
  border-left: 14px solid var(--light-blue-color);
  border-bottom: 400px solid var(--light-blue-color);
  position: absolute;
  left: 0
}

#services-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.column-1 {
  margin-top: 160px;
}

.column-2 {
  margin-top: 80px;
}

.column-3 {
  margin-top: 0;
}

.services-item {
  width: 340px;
  padding: 24px 0 60px;
  border-top: 2px solid var(--light-blue-color);
  position: relative;
}

.services-item::before {
  content: '';
  display: block;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  border-top: 1px solid var(--light-blue-color);
  border-right: 1px solid var(--light-blue-color);
}

.services .contact-us-button {
  position: absolute;
  bottom: 28px;
  right: 60px;
}

.gallery {
  padding: 0 60px 60px;
  margin-bottom: 60px;
  position: relative;
  user-select: none;
}

.gallery::after {
  content: '';
  display: block;
  width: 100vw;
  position: absolute;
  left: 0;
  bottom: 20px;
  height: 345px;
  background-color: var(--light-blue-color);
  z-index: 0;

}

.glide {
  width: 100%;
  margin: auto;
  z-index: 22;
}

.glide__track .glide__slides .glide__slide {
  height: 500px;
}

.glide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.glide__slide {
  cursor: grab;
}

.glide__slide:active {
  cursor: grabbing;
}

.glide__arrow--left {
  left: -60px;
}

.glide__arrow--right {
  transform: rotate(180deg);
  right: -60px;
}

.glide__arrow {
  border: 0;
  height: 60px;
  width: 60px;
  position: absolute;
  top: calc(50% - 30px);
  background: url('./assets/arrow-left.svg');
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
}

.contact {
  margin-bottom: 20px;
  padding-bottom: 28px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.map {
  max-width: 530px;
  margin-bottom: 40px;
  margin-top: 32px;
}

.map iframe {
  width: 100%
}


.contact p {
  margin-bottom: 20px;
}

.contact-form {
  max-width: 530px;
}

.contact form {
  display: flex;
  flex-direction: column;
}

.contact form button {
  align-self: center;
}

.contact-form-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.contact label {
  flex: 1;
  margin: 8px 0;
  gap: 8px;
  display: flex;
  flex-direction: column;
}

.contact input[type="text"],
.contact input[type="email"],
.contact textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 8px;
  border: 1px solid #eee;
  border-radius: 4px;
  background: #eeeeee;
}

.contact textarea {
  height: 120px;
  min-height: 40px;
  max-width: 700px;
}

#contact-us-submit {
  margin-top: 8px;
  border: none;
}

.footer {
  background-color: var(--dark-blue-color);
  padding: 20px;
  text-align: center;
  display: flex;
  align-items: center;
}

.footer-contacts {
  margin: 0 auto
}

.footer-contacts p {
  font-size: 1em;
  color: var(--light-grey-color);
  animation: fadeIn 1.5s ease-in-out;
}

.footer-contacts a {
  color: var(--light-blue-color);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contacts a:hover {
  color: #fff;
}

.contacts-map-link {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contacts-map-link img {
  width: 32px;
  height: 24px;
  margin-right: 8px;
}

@media (max-width: 500px) {
  .hero-banner {
    background-attachment: local;
  }

  .gallery {
    padding: 12px;
  }

  .gallery::after {
    display: none;
  }
}

@media (min-width: 1130px) {
  .language-switcher-mob {
    display: none;
  }
}

@media (max-width: 1130px) {
  .navbar {
    display: flex;
    justify-content: space-between;
    width: 160px;
  }

  .navbar .language-switcher-desc {
    display: none;
  }

  .navbar ul li .contact-us-button {
    display: none;
  }

  .navbar ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    height: 160px;
    right: 0;
    width: 100%;
    min-width: 200px;
    background-color: #fff;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
  }

  .navbar ul li {
    margin: 10px 0;
    text-align: center;
  }

  .burger-menu {
    display: block;
  }

  .navbar.active ul {
    display: flex;
  }

  .language-switcher {
    gap: 12px;
  }

  .hero-banner-content {
    margin: 0;
    width: auto;
    text-align: center; 
  }

  .hero-banner-content .contact-us-button {
    margin: 0 auto;
  }

  .about-us {
    flex-direction: column;
    align-items: center;
    padding: 0 28px;
    gap: 0;
  }

  #about-us-pic {
    margin-top: 28px;
    height: 200px;
    min-width: 280px;
  }

  .about-us-text {
    margin: 0 60px;
  }

  .services {
    padding: 0;
  }

  .services-item {
    width: auto;
    max-width: 600px;
    margin: 0 60px;
  }

  .services-item h4 {
    text-align: center;
  }

  .services:before {
    display: none;
  }

  .services-title {
    margin: 40px;
  }

  #services-list {
    grid-template-columns: 1fr;
    margin-right: 0;
  }

  .column-1, .column-2, .column-3 {
    margin-top: 0;
  }

  .services {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .services .contact-us-button {
    position: relative;
    margin-top: 32px;
    right: 0;
  }

  .contact-form {
    left: 0;
  }
}
