:root {
  --main-color2: #800080;
  --main-color: rgb(144, 70, 132);
  --background-color: #fff;
  --text-color: #000; /* Изменено, так как белый на белом не видно */
  --dark-overlay: rgba(0, 0, 0, 0.5);
  --footer-background: #230C2B;
  --footer-text: #800080;
}

body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  line-height: 1.6;
  color: var(--text-color); 
}

/* ---------- BASE STYLES ---------- */
a {
  text-decoration: none;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ---------- HEADER ---------- */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #f8f8f8;
}

.logo img {
  height: 50px;
}

.contact-info {
  text-align: right;
}

.contact-info a {
  margin-left: 10px;
  color: black; 
}

.contact-info a:hover {
  color: var(--main-color);
}

.separator {
  margin: 0 5px;
  color: #ccc;
}

/* ---------- NAVBAR ---------- */
.navbar-container {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--background-color);
  z-index: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.nav-links {
  display: flex;
  justify-content: center;
  flex-grow: 1;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: var(--main-color2);
  padding: 0 15px;
  display: block;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--main-color);
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--background-color);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 3;
}

.dropdown-content a {
  color: var(--main-color);
  padding: 12px 16px;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.hamburger {
  display: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--main-color2);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* ---------- MAIN HEADER ---------- */
.main-header,
.split {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

/* ---------- CONTENT ---------- */
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  width: 100%;
  margin-left: 30px;
  margin-right: 30px;
}

.column {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.column:hover {
  transform: scale(1.05);
}

.column-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.column img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.column:hover img {
  opacity: 0.7;
}

.column h2 {
  text-align: center;
  padding: 10px;
  background-color: var(--main-color);
  color: white;
  font-size: 1.2em;
  margin: 0;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 1em;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.column:hover .overlay {
  display: flex;
  opacity: 1;
}

/* ---------- IMAGE CONTAINER ---------- */
.image-container {
  position: relative;
  height: 520px;
  background: url('../image/f1920x1080.jpg') center center/cover no-repeat;
  background-position: bottom;
  overflow: hidden;
}

.yellow-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background-color: #00000087;
  color: white;
  padding: 20px;
  box-sizing: border-box;
  clip-path: polygon(0% 0%, 100% 0%, 90% 50%, 100% 100%, 0.0% 100%);
}

.green-overlay {
  position: absolute;
  top: 0;
  bottom: 0px;
  width: 77.2%;
  height: 100%;
  background-color: #74298f;
  color: white;
  padding: 40px;
  box-sizing: border-box;
  clip-path: polygon(0% 0%, 100% 0%, 90% 50%, 100% 100%, 0.0% 100%);
}

.green-overlay-text {
  position: relative;
  width: 80%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  box-sizing: border-box;
  font-size: 30px;
  text-align: inherit;
}

.green-overlay-text p {
  margin: 0;
}

/* ---------- FOOTER ---------- */
.bottom {
    background-color: #f1f1f1;
    color: #800080;
    padding: 20px 0;
    font-size: 14px;
}

.bottom-columns {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
}

.bottom-column-content {
    width: 23%; 
}

.bottom-column-content h3 {
    margin-bottom: 10px;
}

.bottom-column-content ul {
    list-style: none;
    padding: 0;
}

.bottom-column-content ul li a {
    color: var(--footer-text);
    text-decoration: none;
}

.bottom-column-content img {
  height: 50px;
}

.social-links a {
    display: inline-block;
    margin-right: 10px;
    font-size: 20px;
    color: var(--footer-text);
}

.copyright {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

/* ---------- MEDIA QUERIES ---------- */
@media (max-width: 768px) {
  /* Header */
  .header-top {
    flex-direction: column;
    text-align: center;
  }

  .contact-info {
    text-align: center;
    margin-top: 10px;
  }

  /* Navbar */
  .navbar {
    height: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    display: none; 
  }

  .nav-links li {
    text-align: center;
  }

  .nav-links a {
    padding: 10px;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
  }

  .dropdown:hover .dropdown-content {
    display: none; 
  }

  .hamburger {
    display: block; 
    cursor: pointer;
  }

  
  .navbar-container.responsive .nav-links {
    display: flex; 
  }

  /* Content */
  .columns {
    grid-template-columns: 1fr;
    margin-left: 10px;
    margin-right: 10px;
  }

  /* Image Container */
  .image-container {
    height: 300px;
  }

  .yellow-overlay {
    width: 100%;
    height: auto;
    position: relative;
    clip-path: none;
    padding: 10px;
  }

  .green-overlay {
    width: 100%;
    height: auto;
    position: relative;
    clip-path: none;
    padding: 10px;
  }

  .green-overlay-text {
    font-size: 1em;
  }

  /* Footer */
  .bottom-columns {
    flex-direction: column; 
  }

  .bottom-column-content {
    width: 100%; 
    margin-bottom: 20px; 
  }

  .bottom-column-content h3 {
    margin-top: 0; 
  }

  .bottom-column-content iframe {
    height: 200px; 
  }
}
