/* ----------------------------------------------------GENERAL STYLES---------------------------------------------------- */
:root {
    --yellow: #FFCE00;
    --black: black;
    --white: white;
    --orbit-color: #dadada
}

html {
  scroll-behavior: smooth;
}

body{
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

*, *:after, *:before{
    box-sizing: border-box;
}

h1,h2,h3,h4,h5,p{
    margin: 0;
    padding: 0;
}

a{
    text-decoration: none;
}

.wrapper{
    min-height: 100%;
    overflow: hidden;
}

section{
    padding-left: 3vw;
    padding-right: 3vw;
}

section h1{
    width: 100%;
    text-align: center;
    font-size: 50px;
    padding-bottom: 10px;
}

/* ----------------------------------------------------Header---------------------------------------------------- */
header {
  position: fixed; /* закрепляем шапку */
  top: 0;
  left: 0;
  width: 100%;
  height: 80px; /* можно подстроить под дизайн */
  padding: 0 50px;
  background-color: var(--yellow);
  display: flex;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: background 0.3s, padding 0.3s;
}

header.scrolled {
  padding: 0 50px;
  background-color: #ffdb4d; /* немного светлее при скролле */
}

.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 100%;
}

.header-logo {
  height: 60px; /* фиксируем размер логотипа */
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 40px;
    font-weight: 600;
    font-size: 18px;
}

.header-btn {
    color: var(--black);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.header-btn::after {
  content: "";
  display: block;
  width: 0%;
  height: 3px;
  background: var(--black);
  transition: width 0.3s;
  position: absolute;
  bottom: -5px;
  left: 0;
}

.header-btn:hover {
  color: var(--black);
}

.header-btn:hover::after {
  width: 100%;
}

/* Адаптивность */
@media (max-width: 768px) {
    header{
        padding: 0;
        height: 100px;
    }
    .header-inner {
        flex-direction: column;
        gap: 10px;
    }

    .header-buttons {
        gap: 10px;
        font-size: 12px;
    }
}

/* ----------------------------------------------------Карта---------------------------------------------------- */
.we-on-map {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 80px 20px;
  border-radius: 12px;
  max-width: 1700px;
  margin: 0 auto;
}

.we-on-map h1 {
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.we-on-map h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--yellow);
  border-radius: 2px;
}

.map {
  width: 100%;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.list {
  border: 2px solid var(--yellow);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
}

.list-data {
  padding: 0;
  margin: 0;
  list-style-type: none;
}

.list-item.show {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  transition: background 0.3s;
}

.list-item.show:hover {
  background: #fff9d9;
}

.list-item-address {
  font-size: 1rem;
  color: var(--black);
  margin: 0;
  flex: 1;
  line-height: 1.4;
}

.list-item-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.go-to-map,
.more-info {
  cursor: pointer;
  background-color: var(--yellow);
  color: var(--black);
  font-weight: 600;
  text-transform: uppercase;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.go-to-map:hover,
.more-info:hover {
  background-color: var(--black);
  color: var(--white);
}

@media (max-width: 768px) {
  .list-item.show {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .list-item-buttons {
    width: 100%;
    justify-content: flex-start;
  }

  .go-to-map,
  .more-info {
    width: auto;
  }

  .we-on-map h1 {
    font-size: 1.5rem;
  }
}

/* FOOTER */
.footer {
  background: var(--yellow);
  color: var(--black);
  padding: 40px 20px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 3px;
  background: var(--yellow);
  border-radius: 3px;
}

.footer-info {
  max-width: 1000px;
  margin: 0 auto;
  opacity: 0.9;
}

.footer-info span {
  display: none;
}

.footer-info .selected-lang {
  display: inline-block;
}

.footer-info span br {
  margin-bottom: 5px;
}

.footer-info span {
  display: block;
  margin-top: 10px;
}

/* Адаптивность */
@media (max-width: 768px) {
  .footer {
    padding: 30px 15px;
    font-size: 0.9rem;
  }

  .footer::before {
    width: 90%;
  }
}

/* Модалка */
.modal {
  display: none; /* скрыто по умолчанию */
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  position: relative;
  text-align: left;
}

.modal h2 {
  margin-top: 0;
  color: var(--black);
}

.modal p {
  margin: 10px 0;
  font-size: 1rem;
  color: #333;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--black);
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--yellow);
}