* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  background: #fafafa;
  color: #222;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== ХЕДЕР ===== */
.header {
  background: #111;
  color: #fff;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  color: #fff;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.burger-line {
  width: 28px;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}

.nav {
  display: flex;
  align-items: center;
}

.nav a {
  color: #ccc;
  text-decoration: none;
  margin-left: 30px;
  font-size: 1rem;
  transition: color 0.3s;
  letter-spacing: 1px;
}

.nav a:hover {
  color: #fff;
}

.nav-cta {
  background: #fff;
  color: #111 !important;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
  margin-left: 30px;
}

.nav-cta:hover {
  background: #ccc;
  color: #111 !important;
}

/* ===== СЛАЙДЕР ===== */
.slider-section {
  background: #000;
}

.slider {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 500px;
  object-fit: contain;
  background: #000;
}

.slide-text {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 10px 20px;
  font-size: 1.2rem;
  border-radius: 4px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: none;
  font-size: 2.5rem;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: 4px;
  z-index: 10;
}

.slider-btn:hover {
  background: rgba(255,255,255,0.4);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #fff;
}

/* ===== ОБЩИЕ БЛОКИ ===== */
.portfolio, .studio, .prices, .reviews, .contacts {
  padding: 60px 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 40px;
  text-align: center;
  border-bottom: 2px solid #222;
  display: inline-block;
  padding-bottom: 8px;
}

/* ===== ГОРИЗОНТАЛЬНЫЕ ГАЛЕРЕИ (ПОРТФОЛИО) ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.4s, transform 0.3s, box-shadow 0.3s;
  border-radius: 4px;
  cursor: pointer;
}

.gallery img:hover {
  filter: grayscale(0%);
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ===== СТУДИЯ ===== */
.studio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.studio-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  filter: grayscale(80%);
  transition: filter 0.4s;
  border-radius: 4px;
}

.studio-gallery img:hover {
  filter: grayscale(0%);
}

/* ===== ПРАЙС ===== */
.prices__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.prices__block {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid #eee;
}

.prices__subtitle {
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-align: center;
  color: #111;
}

.prices__list {
  list-style: none;
  padding: 0;
}

.prices__list li {
  display: grid;
  grid-template-columns: 1fr 1fr; /* две равные колонки */
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 1rem;
  align-items: baseline;
}

.prices__list li:last-child {
  border-bottom: none;
}

.prices__list li span:first-child {
  /* название услуги */
  word-break: break-word;
}

.prices__list li span:last-child {
  /* цена */
  font-weight: 600;
  color: #000;
  white-space: nowrap; /* гарантия, что цена не перенесётся */
  text-align: right; /* выравниваем цену вправо для красоты */
}

.cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

.cta-button {
  display: inline-block;
  background: #111;
  color: #fff;
  padding: 14px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 1px;
  transition: background 0.3s, transform 0.2s;
}

.cta-button:hover {
  background: #333;
  transform: scale(1.02);
}

/* ===== ОТЗЫВЫ ===== */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.review-card {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid #eee;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.review-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 2px solid #ddd;
}

.review-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.review-text {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

/* ===== КОНТАКТЫ ===== */
.contacts__info {
  text-align: center;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.contacts__info p {
  margin-bottom: 10px;
}

.socials {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.social-link {
  color: #222;
  text-decoration: none;
  font-size: 1.8rem;
  border: 1px solid #222;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.social-link:hover {
  background: #222;
  color: #fff;
}

.social-link.instagram:hover {
  color: #E4405F;
  border-color: #E4405F;
  background: transparent;
}

.social-link.vk:hover {
  color: #4C75A3;
  border-color: #4C75A3;
  background: transparent;
}

.social-link.telegram:hover {
  color: #0088cc;
  border-color: #0088cc;
  background: transparent;
}

.social-link:hover {
  background: transparent;
}

/* ===== ВЕРТИКАЛЬНАЯ ГАЛЕРЕЯ ===== */
.vertical-gallery {
  grid-template-columns: repeat(2, 1fr);
}

.vertical-gallery img {
  height: auto;
  max-height: 600px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.4s, transform 0.3s, box-shadow 0.3s;
  border-radius: 4px;
  cursor: pointer;
}

.vertical-gallery img:hover {
  filter: grayscale(0%);
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ===== ЛАЙТБОКС ===== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 40px;
  color: #fff;
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  transition: 0.3s;
  z-index: 1000;
  line-height: 1;
}

.lightbox-close:hover {
  color: #bbb;
}

/* ===== МОДАЛЬНОЕ ОКНО БРОНИРОВАНИЯ ===== */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-window {
  background: #fff;
  max-width: 460px;
  width: 92%;
  padding: 30px 25px 25px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  position: relative;
  animation: modalFade 0.25s ease;
}

@keyframes modalFade {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  color: #888;
  transition: color 0.2s;
  line-height: 1;
}

.modal-close:hover {
  color: #222;
}

.modal-title {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
}

.modal-form label {
  display: block;
  margin: 12px 0 4px;
  font-weight: 500;
  font-size: 14px;
  color: #333;
}

.modal-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}

.modal-form input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.2);
}

.modal-submit {
  width: 100%;
  padding: 14px;
  margin-top: 20px;
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-submit:hover {
  background: #218838;
}

.modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-message {
  text-align: center;
  margin-top: 16px;
  font-size: 15px;
  min-height: 24px;
}

.modal-message.success {
  color: #28a745;
}

.modal-message.error {
  color: #dc3545;
}

/* ===== АНИМАЦИЯ ПОЯВЛЕНИЯ ===== */
.fade-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ПОДВАЛ ===== */
.footer {
  background: #111;
  color: #aaa;
  text-align: center;
  padding: 25px 0;
  font-size: 0.9rem;
}

/* ====================================================== */
/* ===== АДАПТИВНОСТЬ (МОБИЛЬНЫЕ УСТРОЙСТВА) ===== */
/* ====================================================== */

@media (max-width: 768px) {
  .header__inner {
    position: relative;
  }

  .burger {
    display: flex;
  }

  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #111;
    padding: 20px 0;
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    margin: 10px 20px;
    font-size: 1.1rem;
  }

  .nav-cta {
    margin: 10px 20px;
    text-align: center;
  }

  .slider-btn {
    font-size: 1.8rem;
    padding: 6px 12px;
  }

  .slide-text {
    font-size: 0.9rem;
    bottom: 15px;
    left: 15px;
    padding: 6px 12px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .studio-gallery {
    grid-template-columns: 1fr;
  }

  .prices__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .prices__block {
    padding: 20px;
  }

  /* Прайс на мобильных — сохраняем две колонки, но уменьшаем шрифт */
  .prices__list li {
    font-size: 0.85rem;
    gap: 6px;
  }
  .prices__list li span:last-child {
    font-size: 0.85rem;
  }

  .vertical-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .lightbox-close {
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
  }

  .social-link {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .modal-window {
    padding: 20px 15px 20px;
    width: 95%;
  }

  .modal-title {
    font-size: 20px;
  }

  .modal-form input {
    font-size: 15px;
    padding: 8px 10px;
  }

  .modal-submit {
    font-size: 16px;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .vertical-gallery {
    grid-template-columns: 1fr;
  }
}
/* ===== КНОПКА "НАВЕРХ" ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #111 0%, #333 100%);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.scroll-top-btn:hover {
  background: linear-gradient(135deg, #333 0%, #555 100%);
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.4);
}

.scroll-top-btn:active {
  transform: scale(0.92);
}

.scroll-top-btn svg {
  transition: transform 0.4s ease;
}

.scroll-top-btn:hover svg {
  transform: translateY(-4px);
}

/* Адаптивность */
@media (max-width: 768px) {
  .scroll-top-btn {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  .scroll-top-btn svg {
    width: 22px;
    height: 22px;
  }
}
/* ===== СПЕЦИАЛЬНЫЕ ПРЕДЛОЖЕНИЯ (АКЦИИ) ===== */
.promo {
  margin-top: 50px;
  padding: 30px 20px;
  background: linear-gradient(135deg, #f8f4f0 0%, #fff 100%);
  border-radius: 12px;
  border: 2px dashed #d4af37;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.promo__title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 2px;
  color: #111;
  margin-bottom: 25px;
  text-transform: uppercase;
}

.promo__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.promo__block {
  background: #fff;
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid #eee;
}

.promo__subtitle {
  font-size: 1.3rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 12px;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.promo__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.promo__list li {
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.95rem;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.promo__list li:last-child {
  border-bottom: none;
}

.promo__list li strong {
  color: #c0392b;
  font-weight: 700;
  white-space: nowrap;
}

.promo__note {
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  margin-top: 20px;
  font-style: italic;
}

/* Адаптивность */
@media (max-width: 768px) {
  .promo {
    padding: 20px 15px;
    margin-top: 30px;
  }
  .promo__title {
    font-size: 1.5rem;
  }
  .promo__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .promo__block {
    padding: 15px 18px;
  }
  .promo__list li {
    font-size: 0.9rem;
    flex-wrap: wrap;
  }
}