@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --black: #000000;
  --dark-gray: #111111;
  --gold: #d4af37;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

/* Основные стили навбара */
.navbar-black {
  position: fixed;
  width: 100%;
  z-index: 1000;
  font-family: 'Arial', sans-serif;
  top: 0;
  left: 0;
}

/* Верхний уровень */
.top-nav {
  background-color: var(--black);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-nav .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.top-nav-contacts {
  display: flex;
  gap: 20px;
}

.contact-link {
  display: flex;
  align-items: center;
  color: var(--white);
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
}

.contact-link:hover {
  color: var(--gold);
}

.contact-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  margin-right: 8px;
}

/* Основной уровень */
.main-nav {
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 15px 0;
  position: relative;
}

.main-nav .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--white);
  font-size: 20px;
  font-weight: 600;
  transition: var(--transition);
}

.logo:hover {
  color: var(--gold);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 25px;
}

.menu-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  padding: 10px 0;
  transition: var(--transition);
}

.menu-link:hover, .menu-link.active {
  color: var(--gold);
}

.phone-btn {
  display: none;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  transition: var(--transition);
}

.phone-btn:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.phone-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  margin: 4px 0;
  transition: var(--transition);
}

/* Адаптация для мобильных */
@media (max-width: 992px) {
  .top-nav {
    display: none;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--black);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 30px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    margin-top: 0;
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
  
  .menu-link {
    width: auto;
    padding: 10px 0;
    font-size: 18px;
  }
  
  .phone-btn.mobile-only {
    display: flex;
    margin-left: auto;
    margin-right: 15px;
  }
  
  .mobile-menu-btn {
    display: block;
    position: relative;
  }
  
  .mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  /* Добавляем оверлей при открытом меню */
  .nav-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(0, 0, 0, 0.9);
  }
}

:root {
  --primary: #111827;
  --accent: #d4af37;
  --text-light: #ffffff;
  --overlay: rgba(0, 0, 0, 0.4);
  --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.minimal-hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  color: var(--text-light);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 10%;
}

.content-wrapper {
  max-width: 1200px;
  width: 100%;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  color: white; /* Белый цвет текста */
}

.hero-title span {
  font-weight: 600;
  background: linear-gradient(90deg, #ff4d4d, #f9cb28); /* Красно-желтый градиент */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-divider {
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, #ff4d4d, #f9cb28); /* Красно-желтый градиент для разделителя */
  margin: 2rem 0;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 3rem;
  opacity: 0.9;
  max-width: 500px;
  color: white; /* Белый цвет текста */
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

.hero-btn {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid var(--accent);
  color: white; /* Белый цвет текста */
}

.hero-btn {
  background: linear-gradient(90deg, #ff4d4d, #f9cb28); /* Красно-желтый градиент для кнопки */
  color: var(--primary);
}

.hero-btn.secondary {
  background: transparent;
  color: var(--text-light);
  border-color: white;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  animation: bounce 2s infinite;
  cursor: pointer;
  color: white; /* Белый цвет иконки */
}

.scroll-hint svg {
  transition: var(--transition);
}

.scroll-hint:hover svg {
  transform: translateY(5px);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
  40% {transform: translateY(-20px) translateX(-50%);}
  60% {transform: translateY(-10px) translateX(-50%);}
}

/* Анимации */
.hero-title, .hero-divider, .hero-subtitle, .hero-buttons {
  opacity: 0;
}

.hero-title {
  animation: fadeInUp 1s 0.3s ease-out forwards;
}

.hero-divider {
  animation: fadeIn 1s 0.6s ease-out forwards;
}

.hero-subtitle {
  animation: fadeInUp 1s 0.9s ease-out forwards;
}

.hero-buttons {
  animation: fadeInUp 1s 1.2s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Адаптация */
@media (max-width: 768px) {
  .hero-content {
    padding: 0 5%;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}

* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      body {
        font-family: Arial, sans-serif;
        background: #f5f5f5;
      }

      .gallery-section {
        width: 100%;
        overflow: hidden;
        padding: 0;
      }

      .gallery-title {
        text-align: center;
        font-size: 2.2rem;
        color: #333;
      }

      .gallery-container {
        display: flex;
        width: 100%;
        height: 300px;
      }

      .gallery-item {
        flex: 1 0 10%;
        height: 100%;
        overflow: hidden;
        transition: all 0.5s ease;
        position: relative;
      }

      .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
      }

      .gallery-item:hover {
        flex: 1 0 30%;
        z-index: 2;
      }

      .gallery-item:hover img {
        transform: scale(1.1);
      }

      /* Скрываем галерею на мобильных */
      @media (max-width: 768px) {
        .gallery-section {
          display: none;
        }
      }

    :root {
      --primary: #2A4B7C;
      --secondary: #5B7EBB;
      --accent: #FF6B35;
      --text: #2B2D42;
      --text-light: #8D99AE;
      --bg: #F8F9FA;
      --card-bg: #FFFFFF;
    }

    .mortgage-section {
      font-family: 'Inter', sans-serif;
      padding: 4rem 1.5rem;
      background: var(--bg);
    }

    .mortgage-container {
      max-width: 1200px;
      margin: 0 auto;
    }

    .mortgage-title {
      font-size: 2rem;
      font-weight: 700;
      text-align: center;
      color: var(--text);
      margin-bottom: 0.5rem;
    }

    .mortgage-subtitle {
      text-align: center;
      color: var(--text-light);
      margin-bottom: 3rem;
      font-size: 1.1rem;
    }

    .mortgage-cards {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 1.5rem;
      margin-bottom: 3rem;
    }

    .mortgage-card {
      background: var(--card-bg);
      border-radius: 12px;
      padding: 2rem;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .mortgage-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }

    .card-header {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1.5rem;
    }

    .card-icon {
      width: 44px;
      height: 44px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(42, 75, 124, 0.1);
    }

    .card-icon svg {
      width: 20px;
      height: 20px;
      stroke: black;
    }

    .card-header h3 {
      font-size: 1.2rem;
      font-weight: 600;
      color: var(--text);
      margin: 0;
    }

    .card-rate {
      margin-bottom: 1.5rem;
    }

    .rate-value {
      font-size: 2.5rem;
      font-weight: 700;
      line-height: 1;
      color: black;
      margin-bottom: 0.25rem;
    }

    .rate-label {
      font-size: 0.9rem;
      color: black;
    }

    .card-divider {
      height: 1px;
      background: rgba(0, 0, 0, 0.08);
      margin: 1.5rem 0;
    }

    .card-details {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      margin-bottom: 1.5rem;
    }

    .detail-item {
      display: flex;
      justify-content: space-between;
      font-size: 0.95rem;
    }

    .detail-item span:first-child {
      color: var(--text-light);
    }

    .detail-item span:last-child {
      font-weight: 500;
      color: black;
    }

    .card-badge {
      display: inline-block;
      padding: 0.5rem 1rem;
      border-radius: 50px;
      background: rgba(42, 75, 124, 0.1);
      color: var(--primary);
      font-size: 0.8rem;
      font-weight: 500;
    }

    .mortgage-footer {
      text-align: center;
    }

    .consult-btn {
      display: inline-block;
      padding: 1rem 2rem;
      border-radius: 8px;
      background: var(--primary);
      color: rgb(0, 0, 0);
      font-weight: 600;
      text-decoration: none;
      transition: background 0.3s ease;
      border: none;
      cursor: pointer;
      font-size: 1rem;
    }

    .consult-btn:hover {
      background: var(--secondary);
    }

    @media (max-width: 768px) {
      .mortgage-section {
        padding: 3rem 1rem;
      }

      .mortgage-title {
        font-size: 1.8rem;
      }

      .mortgage-subtitle {
        font-size: 1rem;
      }

      .mortgage-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
      }
    }
