/* ===== ROOT VARIABLES ===== */
:root {
  --bg-color: #ffffff;
  --bg-light: #f5f5f5;
  --text-color: #111111;
  --accent: #4444ff;
}
body.dark {
  --bg-color: #121212;
  --bg-light: #1e1e1e;
  --text-color: #f5f5f5;
  --accent: #7d9aff;
}
body {
  margin: 0 auto;
  font-family: 'Roboto', sans-serif; /* 👈 основной шрифт */
  background: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
}
/* ===== HEADER ===== */
header {
  background: rgba(245, 245, 245, 0.7); /* светлая тема: полупрозрачный фон */
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;

  backdrop-filter: blur(10px);       /* 👈 размытие заднего фона */
  -webkit-backdrop-filter: blur(10px); /* поддержка Safari */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* тонкая граница */
}

/* для тёмной темы */
body.dark header {
  background: rgba(18, 18, 18, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


.logo a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-color);
}
.logo .first {
  color: var(--accent);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -1px;
}

/* ссылки в меню */
nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
}

/* бургер по умолчанию скрыт */
.burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

/* переключатель темы */
.theme-toggle {
  cursor: pointer;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
}

/* ===== MOBILE HEADER ===== */
@media (max-width: 768px) {
  header {
    justify-content: center; /* логотип по центру */
    position: sticky; /* остаётся фиксированным */
    top: 0;
  }

  .burger {
    display: block;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  #theme-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-light);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    text-align: center;
  }
  nav.show {
    display: flex;
  }
}

/* ===== HERO 2025 - LUXE STYLE ===== */
.hero-luxe {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  background-image: url('https://nn-decor.ru/assets/images/uploads/projects/0/5Qq7BgDUfEw.jpg'); /* <- здесь исправлено */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}


.hero-luxe::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.45) 100%);
  backdrop-filter: blur(2px);
  z-index: 0;
}

.hero-luxe h2 {
  position: relative;
  z-index: 1;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 8px 25px rgba(0,0,0,0.6);
  animation: fadeUp 1s ease forwards;
}

.hero-luxe p {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.6;
  text-shadow: 0 4px 15px rgba(0,0,0,0.4);
  animation: fadeUp 1.3s ease forwards;
}

.hero-luxe button {
  position: relative;
  z-index: 1;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--accent), #b266ff); /* фиолетовый градиент с переменной */
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(138, 43, 226, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeUp 1.6s ease forwards;
}

.hero-luxe button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(138, 43, 226, 0.6);
}


/* Анимация появления */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Мобильная адаптация */
@media (max-width: 1024px) {
  .hero-luxe h2 { font-size: 2.5rem; }
  .hero-luxe p { font-size: 1.3rem; }
  .hero-luxe button { font-size: 1.1rem; padding: 14px 30px; }
}

@media (max-width: 768px) {
  .hero-luxe {
    min-height: 500px;
    padding: 0 15px;
  }
  .hero-luxe h2 { font-size: 2rem; }
  .hero-luxe p { font-size: 1.1rem; }
  .hero-luxe button { font-size: 1rem; padding: 12px 28px; }
}

@media (max-width: 480px) {
  .hero-luxe h2 { font-size: 1.6rem; }
  .hero-luxe p { font-size: 1rem; }
  .hero-luxe button { font-size: 0.95rem; padding: 10px 24px; }
}


/* ===== FEATURES ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature {
  background: linear-gradient(145deg, var(--bg-light), var(--bg-color));
  padding: 40px 30px;
  border-radius: 20px;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s;
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--accent) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.feature:hover::before {
  opacity: 0.06; /* 👈 мягкое «сияние» */
}

.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.feature h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
}

.feature h3 i {
  font-size: 1.6rem;
  color: var(--accent);
  opacity: 0.25; /* 👈 ещё более прозрачная */
  transition: transform 0.4s ease, text-shadow 0.4s ease, opacity 0.4s;
}

.feature:hover h3 i {
  transform: scale(1.15);
  text-shadow: 0 0 14px rgba(125,154,255,0.5);
  opacity: 0.4; /* 👈 чуть ярче при наведении */
}

.feature p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin: 0;
}

/* ===== GALLERY SECTION (слайдер + текст) ===== */
.gallery-section {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.gallery-wrapper {
  flex: 1;
  max-width: 600px;
  position: relative;
  overflow: hidden;
}

.gallery {
  display: flex;
  transition: transform 0.8s ease;
}

.gallery img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 12px; /* 👈 аккуратное скругление */
}


.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
}
.slider-btn.left { left: 10px; }
.slider-btn.right { right: 10px; }

.pagination {
  text-align: center;
  margin-top: 10px;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  display: inline-block;
  border-radius: 50%;
  background: #bbb;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

.gallery-text {
  flex: 1;
  max-width: 500px;
}

.gallery-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.gallery-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* адаптив */
@media (max-width: 900px) {
  .gallery-section {
    flex-direction: column;
    text-align: center;
  }
  .gallery-wrapper {
    max-width: 100%;
  }
  .gallery-text {
    max-width: 100%;
  }
}



/* ===== CONTACT - UI/UX STYLING ===== */
.contact {
  position: relative;
  padding: 80px 20px;
  background: url("img/contact.jpg") no-repeat center center/cover;
  color: #fff;
  overflow: hidden;
  max-width: 1160px; /* уменьшаем ширину контейнера */
  margin: 0 auto;     /* центрируем */
  border-radius: 20px; /* для современного UI/UX эффекта */
}

.contact-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45); /* чуть мягче */
  backdrop-filter: blur(3px);   /* легкий размытие для глубины */
}

.contact-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 95%; /* уменьшили ширину внутри контейнера */
  margin: 0 auto;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.contact-text {
  flex: 1;
  min-width: 250px;
}

.contact-text h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.contact-text p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.contact form {
  flex: 1;
  background: var(--bg-color);
  color: var(--text-color);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.25); /* немного глубже */
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 400px; 
  box-sizing: border-box;
}

.contact input,
.contact textarea {
  padding: 12px;
  border: 1px solid var(--bg-light);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-light);
  color: var(--text-color);
  transition: border 0.3s, background 0.3s;
}

.contact input:focus,
.contact textarea:focus {
  border: 1px solid var(--accent);
  outline: none;
}

.contact textarea {
  resize: vertical;
  min-height: 100px;
}

.contact button {
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.contact button:hover {
  background: #3333cc;
}

/* адаптив */
@media (max-width: 768px) {
  .contact-content {
    flex-direction: column;
    text-align: center;
    gap: 20px; 
    width: 90%; /* уменьшаем ширину на планшетах */
  }
  .contact form {
    max-width: 100%; 
  }
}


/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 20px;
  background: var(--bg-light);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 200;
}
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}
.lightbox.show {
  visibility: visible;
  opacity: 1;
}
/* HERO - iOS/UX Style */
.gallerypage-hero {
  position: relative;
  height: 450px;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  color: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.gallerypage-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(0,0,0,0.3));
  z-index: 1;
}

.gallerypage-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
  animation: fadeUp 1s ease forwards;
}

.gallerypage-hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 0 8px 25px rgba(0,0,0,0.6);
}

.gallerypage-hero-content p {
  font-size: 1.3rem;
  line-height: 1.6;
  text-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* GALLERY GRID */
.gallerypage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

/* CARD */
.gallerypage-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  background: #fff;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
}

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

/* CAPTION */
.card-caption {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 1rem;
  padding: 8px 12px;
  backdrop-filter: blur(5px);
  text-align: center;
  transition: background 0.3s;
}

/* HOVER EFFECT */
.gallerypage-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.gallerypage-card:hover .card-caption {
  background: rgba(0,0,0,0.6);
}
.contact-phone {
  display: inline-block;
  margin-top: 20px;
  font-size: 22px;
  font-weight: bold;
  color: var(--text-color); /* динамичный цвет текста */
  text-decoration: none;
  background: var(--bg-light); /* фон в тон теме */
  padding: 12px 24px;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(125, 154, 255, 0.4); /* фиолетовое свечение */
}

.contact-phone i {
  margin-right: 10px;
  color: var(--accent); /* акцентный фиолетовый */
}

.contact-phone:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(125, 154, 255, 0.9);
}


/* ANIMATION */
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .gallerypage-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .gallerypage-card img { height: 200px; }
}
@media (max-width: 480px) {
  .gallerypage-grid { grid-template-columns: 1fr; }
  .gallerypage-card img { height: 180px; }
}
