*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Rubik", sans-serif;
}

body.no-scroll {
  overflow: hidden;
}

.main-header {
  display: flex;
  flex-direction: row;
  width: 100%;
  background-color: #e5e5e5;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
}

.logo-header img {
  width: auto;
  height: 40px;
}

.logo-text {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #222222;
  transition: color 0.2s ease;
}

.logo:hover .logo-text {
  color: #ea580c;
}

.main-nav {
  display: flex;
  justify-content: center;
}

.menu-list {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.menu-item {
  font-weight: 500;
  font-size: 16px;
  color: #222222;
  transition: color 0.2s ease;
}

.menu-item a:hover {
  color: #ea580c;
}

.lang-switcher {
  display: flex;
  align-items: center;
  font-family: "Rubik", sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  color: #9ca3af;
}

.lang-link {
  padding: 0 8px;
  transition: color 0.2s ease;
  cursor: pointer;
}

.lang-link:not(:last-child) {
  border-right: 1px solid #d1d5db;
}

a.lang-link:hover {
  color: #ea580c;
}

span.lang-link.active {
  color: #1f2937;
  font-weight: 700;
  cursor: default;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ea580c;
  color: #ffffff;
  padding: 8px 18px;
  font-family: Rubik, sans-serif;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  border: 2px solid #ea580c;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.header-btn:hover {
  background-color: transparent;
  color: #ea580c;
}

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.burger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #222222;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.burger-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger-btn.active span:nth-child(2) {
  opacity: 0;
}

.burger-btn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .header-container {
    padding: 12px 24px;
  }

  .menu-list {
    gap: 16px;
  }

  .logo-text {
    font-size: 19px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 10px 16px;
  }

  .logo-header img {
    height: 32px;
  }

  .logo-text {
    font-size: 16px;
  }

  .lang-switcher {
    margin-left: auto;
    margin-right: 16px;
    gap: 3px;
    font-size: 10px;
    letter-spacing: 0.3px;
  }

  .lang-link {
    padding: 2px 6px;
    border: 1px solid rgba(209, 213, 219, 0.6);
    border-radius: 2px;
  }

  .lang-link:not(:last-child) {
    border-right: 1px solid rgba(209, 213, 219, 0.6);
  }

  .header-btn {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 52px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 52px);
    background-color: #e5e5e5;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.3s ease;
    z-index: 99;
  }

  .main-nav.open {
    right: 0;
  }

  .menu-list {
    flex-direction: column;
    gap: 32px;
  }

  .menu-item {
    font-size: 22px;
    font-weight: 600;
  }
}

/* Главная страница */

.main-content {
  display: flex;
  flex-direction: column;
}

.first-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100vh;
  padding-top: 64px;
  background-image: url("/images/first-block-photo.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.title-hero {
  margin-left: 80px;
}

.hero-part-1 {
  display: flex;
  padding: 160px 16px 0px 0px;
  justify-content: space-between;
}

.text-title {
  color: #222222;
  font-size: 36px;
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.8),
    0 0 20px rgba(255, 255, 255, 0.8),
    0 0 4px rgba(255, 255, 255, 0.8),
    0 0 40px rgba(255, 255, 255, 0.8);
}

.hero-description {
  color: #222222;
  line-height: 1.4;
  font-size: 24px;
  font-weight: 600;
  padding: 24px 16px 0px 0px;
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.8),
    0 0 20px rgba(255, 255, 255, 0.8),
    0 0 4px rgba(255, 255, 255, 0.8),
    0 0 40px rgba(255, 255, 255, 0.8);
}

.title-hero-2 {
  padding-right: 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.hero-2-descr {
  color: #222222;
  font-size: 24px;
  font-weight: 600;
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.8),
    0 0 20px rgba(255, 255, 255, 0.8),
    0 0 4px rgba(255, 255, 255, 0.8),
    0 0 40px rgba(255, 255, 255, 0.8);
}

@media (max-width: 1024px) {
  .title-hero {
    margin-left: 24px;
  }

  .title-hero-2 {
    padding-right: 24px;
  }

  .text-title {
    font-size: 28px;
  }

  .hero-description {
    font-size: 18px;
  }

  .hero-2-descr {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .first-block {
    padding-top: 52px;
    height: auto;
    min-height: 100vh;
    background-position: center 20%;
    justify-content: flex-end;
  }

  .hero-part-1 {
    flex-direction: column;
    padding: 0px 16px 40px 16px;
    gap: 32px;
  }

  .title-hero {
    margin-left: 0;
  }

  .title-hero-2 {
    padding-right: 0;
    flex-direction: row;
    gap: 16px;
    flex-wrap: wrap;
  }

  .text-title {
    font-size: 24px;
  }

  .hero-description {
    font-size: 15px;
    padding-right: 0;
  }

  .hero-2-descr {
    font-size: 15px;
  }
}
