* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Verdana, sans-serif;
  color: white;
}

body {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-height: 100vh;
  background-color: #F0F8FF;
}

.cherno {
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  z-index: -1;
  position: fixed;
  top: 0;
  left: 0;
}

ul {
  display: flex;
  list-style: none;
  align-items: center;
  justify-content: space-around;
  text-align: center;
}

li,
a,
button {
  font-weight: 500;
  font-size: 16px;
  color: #003459;
  text-decoration: none;
  cursor: pointer;
}

button {
  padding: 9px 25px;
  background-color: rgba(0, 136, 169, 1);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease 0s;
  margin-left: 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 10%;
  width: 100%;
  z-index: 3;
  position: sticky;
  background-color: #D1DAEA;
}

nav {
  order: 2;
  margin-left: auto;
}

.darete {
  order: 1;
  margin-right: auto;
}

.stranici {
  display: flex;
  flex-wrap: nowrap;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: flex-end;
  align-items: center;
}

.stranici li {
  display: inline-block;
  padding: 0px 20px;
}

.stranici li:nth-child(1) {
  padding: 0px 20px 0 0;
}

.stranici li a {
  transition: all 0.3s ease 0s;
  white-space: nowrap;
  font-size: 16px;
}

.stranici li a:hover {
  color: #0088a9;
}

button:hover {
  background-color: rgba(0, 136, 169, 0.8);
}

button {
  color: white !important;
  padding: 9px 25px;
  margin-left: 20px;
}

.activepage {
  text-decoration: underline;
  text-decoration-color: inherit;
}

h1 {
  font-size: 22px;
  font-family: Verdana, sans-serif;
  font-weight: normal;
  color: #003459;
  margin-right: 20px;
}

p {
  font-size: 16px;
  color: #003459;
}

.sektor1 {
  background-image: url('/i/sofiamainpage.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
  color: #003459;
  position: relative;
}

.polygon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  z-index: 1;
}

.mainpagetext {
  text-align: left;
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: #003459;
  z-index: 2;
}

.mainpagetext h2 {
  font-size: 50px;
}

.mainpagetext h3 {
  font-size: 40px;
}

/* Сектор 2 */
.sektor2 {
  background-color: #D1DAEA;
  color: #003459;
  padding: 50px 10%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Промяна: Подравняване на съдържанието вляво */
}

/* Сектор 3 */
.sektor3 {
  background-color: #F0F8FF;
  padding: 50px 10%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.kutiq {
  flex: 1;
  max-width: 30%;
  min-width: 250px;
  padding: 20px;
  color: #003459;
  text-align: center;
  position: relative;
  box-sizing: border-box;
}

.vertical-line {
  width: 2px;
  background-color: #003459;
  height: 100%;
  align-self: stretch;
  margin: 0 20px;
  display: block;
}

/* Сектор 4 */
.sektor4 {
  background-color: #F8F8FF;
  padding: 50px 10%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

.row {
  width: 100%;
  max-width: 1170px;
  display: flex;
  flex-direction: column;
}

.row .right {
  float: right;
  margin-left: 20px;
  margin-bottom: 20px;
  width: 40%;
}

.row .right img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.row .left {
  display: block;
}

.row .left .content {
  padding: 0 20px;
}

.row .left .content p {
  font-size: 16px;
  line-height: 26px;
}

/* Мобилни стилове */
@media (max-width: 991px) {
  .row .right {
    float: none;
    margin: 0 auto 20px auto;
    width: 100%;
  }

  .sektor2,
  .sektor3 {
    flex-direction: column;
    align-items: center;
  }

  .vertical-line {
    display: none;
  }

  .kutiq {
    max-width: 100%;
    margin-bottom: 20px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .row {
    width: 90%;
  }

  .row .right {
    float: none;
    margin: 0 auto 20px auto;
    width: 100%;
  }

  .kutiq {
    margin-bottom: 15px;
  }

  h1 {
    text-align: center;
  }
}

footer {
  position: relative;
  width: 100%;
  background: white;
  min-height: 100px;
  padding: 20px 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.social-icon,
.menu {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
  flex-wrap: wrap;
}

.social-icon__item,
.menu__item {
  list-style: none;
  color: black;
}

.social-icon__link {
  font-size: 2rem;
  color: black;
  margin: 0 10px;
  display: inline-block;
  transition: 0.5s;
}

.social-icon__link:hover {
  transform: translateY(-10px);
}

.menu__link {
  font-size: 1.2rem;
  color: black;
  margin: 0 10px;
  display: inline-block;
  transition: 0.5s;
  text-decoration: none;
  opacity: 0.75;
  font-weight: 300;
}

.menu__link:hover {
  opacity: 1;
}

footer p {
  color: black;
  margin: 15px 0 10px 0;
  font-size: 1rem;
  font-weight: 300;
}

footer img {
  height: 100px;
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  display: inline-block;
}

@media (max-width: 670px) {
  nav ul {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  nav ul li {
    padding: 10px;
  }

  .darete button {
    margin: 10px 0;
    width: 100%;
  }
}

.sektor1 .animate,
.sektor2 .animate,
.sektor3 .animate,
.sektor4 .animate {
  transform: translateX(-100%);
  transition: transform 1.5s ease;
}

.show-animate .animate {
  transform: translateX(0);
}

.content-container {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
}

.language-switch {
  display: flex;
}

.ezik {
  cursor: pointer;
  transition: transform 0.2s;
  width: 32px;
  height: auto;
  transition: transform 0.2s;

}

.ezik:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .language-switch {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

.ezikbut {
  background-color: transparent;
  border: none;
  margin: 0 5px;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.ezikbut:hover {
  transform: scale(1.1);
  background-color: transparent;

}