* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #f8f9fa;
  color: #333;
}

html {
  scroll-behavior: smooth;
}

/* Шапка */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #e53935;
  color: white;
  z-index: 1000;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#home, #apartments, #contact {
  scroll-margin-top: 80px;
}

nav a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  color: #fcd5d8;
}

/* Переключатель языка */
.lang-switch {
  display: flex;
  gap: 6px;
}

.lang-switch button {
  background: white;
  color: #e53935;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: 0.3s;
}

.lang-switch button:hover {
  background: #ffdada;
}

.lang-switch button.active {
  background: #c62828;
  color: white;
}

/* Бургер-меню */
.menu-icon {
  font-size: 28px;
  cursor: pointer;
  display: none;
}

.menu {
  list-style: none;
  display: flex;
  gap: 25px;
}

#menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: #e63946;
    flex-direction: column;
    width: 200px;
    padding: 10px 0;
    border-radius: 8px;
  }

  .menu li {
    text-align: right;
    padding: 10px 20px;
  }

  #menu-toggle:checked + .menu-icon + .menu {
    display: flex;
  }

  .menu-icon {
    display: block;
  }
}

/* Главный экран */
.hero {
  background: linear-gradient(135deg, #e63946, #b02a30);
  color: white;
  text-align: center;
  padding: 120px 20px 100px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

/* Кнопки */
.btn {
  background: white;
  color: #e63946;
  padding: 12px 25px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 30px;
  transition: 0.3s ease;
  border: 2px solid white;
}

.btn:hover {
  background: #fcd5d8;
  color: #b02a30;
}

.btn-details {
  display: inline-block;
  margin: 10px auto 20px;
  padding: 10px 18px;
  background: #e63946;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.btn-details:hover {
  background: #b02a30;
}

/* Карточки */
.section {
  padding: 60px 20px;
  text-align: center;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1100px;
  margin: 30px auto;
}

.card {
  flex: 0 1 calc(33.33% - 30px);
  max-width: 320px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

@media (max-width: 992px) {
  .card {
    flex: 0 1 calc(50% - 30px);
  }
}

@media (max-width: 600px) {
  .card {
    flex: 0 1 100%;
  }
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card h3 {
  margin: 15px 15px 5px;
  font-size: 1.3rem;
}

.card p {
  margin: 0 15px 15px;
  color: #555;
}

/* Контакты и подвал */
.contact p {
  font-size: 1.1rem;
  margin: 10px 0;
}


.btnv-book {
  width: 80px;   /* wider logo */
  height: auto;   /* keep aspect ratio */
  border-radius: 8px; 
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s;
  display: block;
  position: fixed;   /* keep it in place */
  right: 20px;       /* distance from right edge */
  bottom: 106px;      /* distance from bottom */
  z-index: 9999;     /* stays above other elements */
}

.btnv-book:hover {
  transform: scale(1.05); /* zoom effect on hover */
  }
.btnb-book {
  width: 80px;   /* wider logo */
  height: auto;   /* keep aspect ratio */
  border-radius: 8px; 
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s;
  display: block;
  position: fixed;   /* keep it in place */
  right: 20px;       /* distance from right edge */
  bottom: 20px;      /* distance from bottom */
  z-index: 9999;     /* stays above other elements */
}

.btnb-book:hover {
  transform: scale(1.05); /* zoom effect on hover */
}
.btna-book {
  width: 80px;   /* wider logo */
  height: auto;   /* keep aspect ratio */
  border-radius: 8px; 
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s;
  display: block;
  position: fixed;   /* keep it in place */
  right: 20px;       /* distance from right edge */
  bottom: 60px;      /* distance from bottom */
  z-index: 9999;     /* stays above other elements */
}
.btna-book:hover {
  transform: scale(1.05); /* zoom effect on hover */
}
.fixed-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}


footer {
  background: #e63946;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.95rem;
}

.lang-switch {
  display: flex;
  gap: 8px;
}

.lang-switch a {
  display: inline-block;
  background: white;
  color: #e53935;
  padding: 5px 12px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.lang-switch a:hover {
  background: #ffdada;
}

.lang-switch a.active {
  background: #c62828;
  color: white;
}

/* Language Switcher */
.lang-switch {
  display: flex;
  gap: 5px;
}

.lang-btn {
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}

.lang-btn:hover {
  background: #333;
  color: white;
}

.lang-btn.active {
  background: #333;
  color: white;
  border-color: #333;
}
