:root {
  --main-bg-color: #141414;
  --main-text-color: #fafafa;
  --accent-color-1: #878787;
  --accent-color-2: #f0a500;
  --accent-color-3: #ff4500;
  --font-family-main: 'Arial Narrow Bold', sans-serif;
  --header-height: 100px;
  --header-padding: 10px 0;
  --main-font-size: 36px;
  --secondary-font-size: 24px;
  --third-font-size: 20px;
  --transition-speed: 0.4s;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 90px 0 0;
  font-family: var(--font-family-main);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--main-bg-color);
  color: var(--main-text-color);
  height: var(--header-height);
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: var(--header-padding);
  transition: top 0.3s ease;
}

header .logo {
  font-size: 24px;
  font-weight: bold;
}

.new-logo {
  display: block;
  margin-top: 10px;
  width: 220px;
  height: 112px;
  background-image: url('./public/logo.jpg');
  background-size: contain;
  cursor: pointer;
}

.logo600 {
  display: none;
}

header .logo a {
  color: var(--main-text-color);
  text-decoration: none;
  position: relative;
  display: inline-block;
  overflow: hidden;
}

header .logo a span {
  position: relative;
  z-index: 1;
  transition: color var(--transition-speed) ease-in-out;
}

.logo {
  margin-left: 32px;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  font-size: 14px;
}

header nav ul a {
  color: var(--main-text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

header nav ul a:hover {
  color: var(--accent-color-1);
}

li {
  color: var(--main-text-color);
  text-decoration: none;
  margin: 0 10px;
}

header .contact-email a {
  color: var(--main-text-color);
  text-decoration: none;
}

.contact-email {
  margin-right: 40px;
  margin-left: 20px;
}

#lang-toggle, #lang-toggle-responsive {
  background-color: var(--main-bg-color);
  color: var(--accent-color-1);
  border: none;
  cursor: pointer;
  margin-right: 20px;
  text-align: end;
}

#lang-toggle:hover {
  background-color: var(--accent-color-1);
  color: var(--main-bg-color);
  border: none;
  cursor: pointer;
}

.button-container {
  width: 220px;
  display: flex;
  justify-content: end;
}

.main-section {
  height: calc(100vh - 100px);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--main-text-color);
  position: relative;
  z-index: 1;
}

.main-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

.parallax {
  background-image: url('./public/1.png');
  height: calc(100vh - 100px);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  margin-top: var(--header-height);
}

.parallax .overlay {
  position: absolute;
  top: calc(50% + 40px);
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--main-text-color);
  text-align: center;
  padding: 20px;
}

.main-content {
  font-size: var(--main-font-size);
  margin: 0;
  text-align: center;
}

h1 {
  margin: auto;
  text-align: center;
}

.subtitle {
  margin-top: 48px;
}

.main-content p {
  font-size: var(--secondary-font-size);
  margin-top: -18px;
}

.black-section {
  display: flex;
  flex-direction: column;
  background-color: #000;
  color: var(--main-text-color);
  justify-content: center;
  text-align: center;
  align-items: center;
  padding: 50px 0px;
  height: 240px;
}

.title {
  font-size: 44px; margin: 0;
}

.info {
  font-size: 20px;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(100px, auto);
  max-width: 100vw;
}

.split {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.content {
  display: flex;
  align-items: center;
  color: var(--main-text-color);
  font-size: var(--third-font-size);
  line-height: 24px;
  background-color: #1b1818;
  width: 100%;
  height: 100vh;
  padding: 0 20px;
}

.content-container {
  margin: auto 0; 
  text-align: left
}

.extra-container {
  width: 80%;
  margin: auto;
}

.split-ul {
  list-style-type: none; 
  margin-left: -40px;
}

.split-photo {
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
}

.photo1 {
  background-image: url('./public/2.png');
}

.photo2 {
  background-image: url('./public/3.png');
}

.photo3 {
  background-image: url('./public/4.png');
}

.photo4 {
  background-image: url('./public/5.png');
}

.map-image {
  background-image: url('./public/static-map.png');
}

.map-link {
  cursor: pointer;
  display: block;
}

.instead-map {
  width: 100%;
  height: 400px;
}

.map-image {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
}

.cooperation {
  width: 100%;
}

.welcome {
  font-size: var(--third-font-size);
  font-weight: 600;
}

.divider {
  width: 100%;
  height: 1px;
  border-bottom: 1px solid white;
}

.personal-card {
  display: flex;
  justify-content:space-between;
  vertical-align: middle;
  margin: 0;
}

.personal-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: end;
}

.ceo-name {
  font-size: 18px; 
  font-weight: 700;
}

.company {
  font-size: var(--third-font-size);
  font-weight: 500;
}

.manager {
  font-size: var(--third-font-size);
  font-weight: 600;
}

.personal-photo {
  width: 140px;
  margin: 40px 0;
}

.contact-section {
  background-color: #000;
  color: var(--main-text-color);
  text-align: center;
  padding: 32px 20px;
}

.contacts-links {
  display: block;
  text-decoration: none;
  color: var(--main-text-color);
  margin: 16px 0;
}
.contact-us {
  font-size: var(--third-font-size);
  margin-bottom: 32px;
}

.contact-company {
  font-weight: bold;
}

.list-item {
  margin-bottom: 8px;
}

.map-section {
  height: 400px;
}

#map {
  width: 100%;
  height: 100%;
}

footer {
  background-color: var(--main-bg-color);
  color: var(--main-text-color);
  text-align: center;
  padding: 10px 0;
}

/* Responsive Styles */
@media (max-width: 1100px) {
  .main-content {
    font-size: 34px;
  }

  .main-content p {
    font-size: 20px;
  }
}

@media (max-width: 900px) {
  header nav ul {
    gap: 4px;
  }

  .main-content {
    font-size: 32px;
  }

  .main-content p {
    font-size: 18px;
  }

  .split-section {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .split {
    height: auto;
  }

  .split:nth-child(1) {
    order: 1;
  }
  
  .split:nth-child(2) {
    order: 2;
  }
  
  .split:nth-child(3) {
    order: 4;
  }
  
  .split:nth-child(4) {
    order: 3;
  }
  
  .split:nth-child(5) {
    order: 5;
  }
  
  .split:nth-child(6) {
    order: 6;
  }

  .split:nth-child(7) {
    order: 8;
  }
  
  .split:nth-child(8) {
    order: 7;
  }

  .content {
    height: auto;
    padding: 20px;
  }

  .split-photo {
    height: 50vh;
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    height: auto;
    padding: var(--header-padding);
  }

  header nav {
    height: 24px;
    margin-top: -12px;
  }

  .logo {
    display: none;
  }

  .logo1 {
    display: block;
    margin-left: 12px;
  }

  .logo600 {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  header nav ul {
    padding: 0;
  }

  .contact-email {
    margin-right: 0;
  }

  .contact-email {
    margin-left: 0;
  }

  .button {
    display: none;
  }
  
  .button600 {
    display: inline;
    margin-right: 0;
  }

  .main-content {
    font-size: 32px;
  }

  .main-content p {
    font-size: 18px;
  }

  .content {
    padding: 20px;
  }

  .split-photo {
    height: 40vh;
  }

  .ceo-name {
    font-size: 14px; 
  }
  
  .company {
    font-size: 16px; 
  }
  
  .manager {
    font-size: 12px; 
  }

  .personal-photo {
    width: 100px;
  }
}

@media (max-width: 400px) {
  header nav ul {
    font-size: 12px;
  }

  .main-content {
    font-size: 28px;
  }

  .main-content p {
    font-size: 16px;
  }

  .black-section {
    padding: 30px 10px;
  }

  .contact-section {
    padding: 30px 10px;
  }

  .content {
    padding: 15px;
  }

  .split-photo {
    height: 30vh;
  }
}
