* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #000;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid #2015ff;
  outline-offset: 4px;
}

.site-header {
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: #fff;
}

.brand {
  color: #6b6969;
  font-size: 24px;
  line-height: 1.23;
  font-weight: 400;
  white-space: nowrap;
}

.brand strong {
  font-weight: 700;
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
}

.phone-icon {
  width: 21px;
  height: 21px;
  fill: #000;
  stroke: #000;
  stroke-width: 6;
  flex: 0 0 auto;
}

.language-switch {
  margin-top: 3px;
  font-size: 30px;
  line-height: 1.55;
  font-weight: 700;
}

.language-switch span {
  color: #635f5f;
}

.lang-de {
  color: #d63333;
}

.lang-ru {
  color: #f1c610;
}

.hero {
  position: relative;
  height: 700px;
  background: #fff url("/images/hero-bg.png") center / cover no-repeat;
  text-align: center;
  overflow: hidden;
}

.hero-logo {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin-top: 72px;
}

.scroll-arrow {
  position: absolute;
  left: 50%;
  bottom: 38px;
  width: 38px;
  transform: translateX(-50%);
  color: #383737;
  animation: arrow-bounce 1.7s ease-in-out infinite;
}

.scroll-arrow svg {
  display: block;
  width: 38px;
  height: 19px;
  fill: currentColor;
}

@keyframes arrow-bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 8px);
  }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.intro {
  padding-top: 60px;
}

.intro h1 {
  margin: 0 0 40px;
  font-size: 32px;
  line-height: 1.23;
  font-weight: 600;
}

.section-line {
  width: 100px;
  height: 3px;
  margin: 0 auto;
  background: #000;
}

.intro p {
  margin: 40px auto 0;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 300;
}

.features {
  padding-top: 120px;
  padding-bottom: 120px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-top: 65px;
}

.feature-item:first-child {
  margin-top: 0;
}

.feature-icon {
  width: 65px;
  height: 65px;
  object-fit: contain;
  flex: 0 0 65px;
}

.feature-item h2 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
}

.feature-item p {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 300;
}

.contact-map {
  position: relative;
  min-height: 600px;
  background: #e5e3df;
}

.map-frame {
  display: block;
  width: 100%;
  height: 600px;
  border: 0;
  filter: grayscale(1);
}

.contact-card {
  position: absolute;
  z-index: 2;
  top: 100px;
  left: max(100px, calc((100vw - 1160px) / 2 + 100px));
  width: 360px;
  min-height: 300px;
  padding: 60px;
  background: #fff;
  color: #000;
}

.contact-card h2 {
  margin: 0 0 30px;
  font-size: 28px;
  line-height: 1.17;
  font-weight: 600;
}

.contact-card p {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 300;
}

.contact-card a {
  color: #ff8562;
}

.contact-card a[href^="tel"] {
  color: inherit;
}

.contact-card .linkedin-link {
  display: inline-flex;
  width: 25px;
  height: 25px;
  margin-top: 30px;
  color: #000;
}

.linkedin-link svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.site-footer {
  min-height: 4vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 20px 0;
  background: #4d4b4b;
  color: #fff;
  text-align: center;
  font-size: 20px;
  line-height: 1.35;
}

.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.not-found img {
  width: min(500px, 100%);
  height: auto;
}

@media (max-width: 1200px) {
  .site-header {
    padding: 0 20px;
  }

  .contact-card {
    left: max(80px, calc((100vw - 940px) / 2 + 80px));
  }
}

@media (max-width: 980px) {
  .site-header {
    height: auto;
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    padding: 35px 20px;
    text-align: center;
  }

  .brand {
    white-space: normal;
    margin-bottom: 20px;
  }

  .header-contact {
    align-items: center;
  }

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

  .contact-card {
    position: static;
    width: 100%;
    min-height: auto;
    padding: 45px 20px;
    order: 0;
  }

  .map-frame {
    height: 50vh;
    order: 1;
  }
}

@media (max-width: 640px) {
  .phone-icon {
    width: 20px;
    height: 20px;
  }

  .hero {
    height: 520px;
  }

  .hero-logo {
    max-width: min(500px, calc(100vw - 40px));
  }

  .intro h1 {
    font-size: 30px;
  }

  .intro p {
    font-size: 16px;
    line-height: 1.45;
  }

  .features {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .feature-item {
    gap: 20px;
    margin-top: 40px;
  }

  .feature-icon {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .feature-item h2 {
    font-size: 16px;
  }

  .feature-item p {
    font-size: 14px;
    line-height: 1.45;
  }

  .contact-card h2 {
    font-size: 24px;
  }

  .contact-card p {
    font-size: 14px;
    line-height: 1.45;
  }

  .site-footer {
    padding: 40px 20px;
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-arrow {
    animation: none;
  }
}
