/* Responsive Design */

/* ==================== HAMBURGER MENU ==================== */
.hamburger-menu {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 6px;
  z-index: 101;
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background-color: var(--black);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  flex-direction: column;
  padding: 16px;
  gap: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.mobile-menu.active {
  display: flex;
}

.mobile-nav-link {
  color: var(--black);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.mobile-nav-link:hover {
  background-color: rgba(222, 8, 50, 0.1);
  color: var(--red);
}

/* ==================== TABLETS (768px and below) ==================== */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .hamburger-menu {
    display: flex;
  }

  .about-grid,
  .collections-grid,
  .inspiration-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 40px;
  }

  .production-grid {
    grid-template-columns: 1fr;
  }

  /* ✨ TABLET HERO SECTION */
  .hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .hero-bg {
    background-size: cover;
    background-position: center;
  }

  /* Полупрозрачный размытый фон под текстом */
  .hero-content {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 45px 35px;
    margin: 0 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: auto;
    max-width: 520px;
    position: relative;
    z-index: 2;
  }

  .hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
    text-shadow: none;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    color: var(--black);
    margin-bottom: 12px;
    text-shadow: none;
    line-height: 1.4;
  }

  .subtitle-line {
    width: 150px;
    height: 3px;
    margin: 16px auto 24px;
  }

  .hero-subtitle-wrapper {
    margin-bottom: 24px;
  }

  .hero-btn-wrapper {
    margin-bottom: 0;
  }

  .btn {
    padding: 12px 28px;
    font-size: 14px;
  }

  /* Contacts Grid on Tablet */
  .contacts-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================== MOBILE (480px and below) ==================== */
@media (max-width: 480px) {
  .header-container {
    padding: 12px 16px;
  }

  .logo {
    height: 40px;
  }

  /* ✨ MOBILE HERO SECTION - КОМПАКТНЫЙ БЛОК (В 2 РАЗА МЕНЬШЕ) */
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
  }

  .hero-bg {
    background-attachment: scroll;
    background-size: cover;
    background-position: center;
  }

  /* КОМПАКТНЫЙ размытый фон для мобильных - В 2 РАЗА МЕНЬШЕ */
  .hero-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 20px 16px;
    margin: 0 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    width: auto;
    max-width: 300px;
    position: relative;
    z-index: 2;
  }

  /* Компактный заголовок */
  .hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
    text-shadow: none;
    line-height: 1.2;
    word-break: break-word;
  }

  /* Компактный подзаголовок */
  .hero-subtitle {
    font-size: 13px;
    font-weight: 300;
    color: var(--black);
    margin-bottom: 6px;
    text-shadow: none;
    line-height: 1.3;
  }

  /* Компактная линия */
  .subtitle-line {
    width: 80px;
    height: 2px;
    background: var(--red);
    margin: 8px auto 12px;
  }

  .hero-subtitle-wrapper {
    margin-bottom: 12px;
  }

  .hero-btn-wrapper {
    margin-bottom: 0;
  }

  /* Компактная кнопка */
  .btn {
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 600;
  }

  .scroll-indicator {
    bottom: -5px;
  }

  .chevron {
    font-size: 20px;
  }

  /* Остальные секции */
  .about,
  .collections,
  .inspiration,
  .production,
  .contact {
    padding: 60px 16px;
  }

  .section-title {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .about-text p,
  .inspiration-content p {
    font-size: 16px;
  }

  .collection-card {
    height: 300px;
  }

  .card-content h3 {
    font-size: 24px;
  }

  .card-content p {
    font-size: 14px;
  }

  .inspiration-title {
    font-size: 32px;
  }

  .production-card {
    padding: 24px;
  }

  .production-card h3 {
    font-size: 20px;
  }

  .production-card p {
    font-size: 13px;
  }

  .contact-title {
    font-size: 28px;
  }

  .contact-subtitle {
    font-size: 16px;
  }

  .inspiration-thumbs {
    gap: 12px;
  }

  .inspiration-thumbs img {
    width: 60px;
    height: 60px;
  }

  /* Mobile Menu Adjustments */
  .mobile-menu {
    padding: 12px;
    gap: 4px;
  }

  .mobile-nav-link {
    padding: 10px 12px;
    font-size: 13px;
  }

  /* Contacts Block Mobile */
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-item {
    text-align: center;
  }

  .contact-icon {
    justify-content: center;
  }

  .contacts-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
}

/* ==================== EXTRA SMALL DEVICES (360px and below) ==================== */
@media (max-width: 360px) {
  .hero {
    min-height: 100vh;
  }

  /* ✨ EXTRA SMALL MOBILE - МАКСИМАЛЬНО КОМПАКТНЫЙ */
  .hero-content {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 10px;
    padding: 16px 14px;
    margin: 0 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    width: auto;
    max-width: 280px;
  }

  .hero-title {
    font-size: 24px;
    margin-bottom: 6px;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 12px;
    margin-bottom: 5px;
    line-height: 1.3;
  }

  .subtitle-line {
    width: 70px;
    height: 2px;
    margin: 7px auto 10px;
  }

  .hero-subtitle-wrapper {
    margin-bottom: 10px;
  }

  .btn {
    padding: 7px 14px;
    font-size: 10px;
  }

  .section-title {
    font-size: 24px;
  }

  .collection-card {
    height: 250px;
  }

  .card-content h3 {
    font-size: 20px;
  }

  .mobile-nav-link {
    padding: 8px 10px;
    font-size: 12px;
  }

  .hamburger-line {
    width: 20px;
    height: 2.5px;
  }

  .chevron {
    font-size: 18px;
  }
}
