/* Отредактируйте переменные в :root для ручной смены цветовой схемы */
:root {
  --primary: #F2A7B3;
  --primary-hover: #E8919F;
  --bg: #FFF9F2;
  --card-bg: #FFFFFF;
  --chip-bg: #F5E1E7;
  --promo-bg: #FDF2F5;
  --text: #333333;
  --text-light: #666666;
  --header-bg: #F2A7B3;
  --footer-bg: #2F2F2F;
  --footer-text: #FFFFFF;
  --footer-text-light: #AAAAAA;
  --radius: 30px;
  --radius-sm: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --transition: 0.3s ease;
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
  text-align: center;
}

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

/* === HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--header-bg);
  z-index: 1000;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.header__logo {
  font-family: 'Lobster', cursive;
  font-size: 28px;
  color: #fff;
  text-decoration: none;
}

.header__logo img {
  height: 45px;
  display: block;
}

.header__nav {
  display: flex;
  gap: 24px;
}

.header__link {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: opacity var(--transition);
}

.header__link:hover {
  opacity: 0.8;
}

.header__cta {
  background: rgba(255,255,255,0.2);
  border: 2px solid #fff;
  color: #fff;
  padding: 10px 24px;
  font-size: 14px;
}

.header__cta:hover {
  background: #fff;
  color: var(--primary);
}

.header__mobile-icons {
  display: none;
  align-items: center;
  gap: 12px;
}

.header__mobile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.header__burger span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* === POPOVER === */
.popover {
  position: fixed;
  top: 70px;
  right: 20px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  padding: 30px;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition);
  max-width: 320px;
  width: 100%;
}

.popover--active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.popover__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-light);
}

.popover__name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.popover__phone {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 20px;
}

.popover__messengers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popover__messenger {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  padding: 10px;
  border-radius: 8px;
  transition: background var(--transition);
}

.popover__messenger:hover {
  background: var(--chip-bg);
}

.popover__messenger span {
  font-size: 15px;
  font-weight: 500;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url('/img/hero-bg.jpg') center/cover no-repeat;
  margin-top: 70px;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: clamp(32px, 5vw, 56px);
  color: #fff;
  font-weight: 700;
  max-width: 700px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero__subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  color: #fff;
  font-weight: 300;
  margin-bottom: 32px;
  opacity: 0.9;
}

.hero__btn {
  font-size: 18px;
  padding: 16px 40px;
}

/* === SECTIONS GENERAL === */
.section {
  padding: 80px 0;
}

.section__title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  text-align: center;
}

.section__subtitle {
  font-size: 18px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 40px;
}

/* === CATALOG === */
.catalog__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.catalog__tab {
  padding: 10px 20px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-light);
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
}

.catalog__tab--active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.catalog__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}

.catalog__chip {
  padding: 8px 18px;
  background: var(--chip-bg);
  border: none;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text);
}

.catalog__chip--active {
  background: var(--primary);
  color: #fff;
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.catalog__card {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}

.catalog__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.catalog__card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: var(--chip-bg);
  display: block;
}

.catalog__card-body {
  padding: 20px;
}

.catalog__card-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.catalog__card-desc {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.5;
}

.catalog__card-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

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

.catalog__more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.catalog__more-btn {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.catalog__more-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* === PROMO === */
.promo {
  background: var(--promo-bg);
}

.promo__inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.promo__img {
  width: 400px;
  height: 300px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--chip-bg);
}

.promo__content {
  flex: 1;
}

.promo__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.promo__text {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* === PORTFOLIO === */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.portfolio__cover {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition);
}

.portfolio__cover:hover {
  transform: scale(1.02);
}

.portfolio__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--chip-bg);
}

.portfolio__cover-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.portfolio__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  background: none;
  border: none;
  font-size: 16px;
  color: var(--primary);
  cursor: pointer;
  font-weight: 500;
}

.portfolio__masonry {
  columns: 3;
  column-gap: 16px;
}

.portfolio__masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.portfolio__masonry-item img {
  width: 100%;
  display: block;
  transition: transform var(--transition);
}

.portfolio__masonry-item:hover img {
  transform: scale(1.03);
}

/* === FAQ === */
.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid #eee;
}

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
}

.faq__item--open .faq__answer {
  max-height: 300px;
  padding-bottom: 24px;
}

/* === REVIEWS === */
.reviews__carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.reviews__carousel::-webkit-scrollbar {
  display: none;
}

.reviews__card {
  flex: 0 0 250px;
  width: 250px;
  height: 450px;
  border-radius: 20px;
  border: 3px solid #eee;
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
}

.reviews__card-img {
  flex: 1;
  width: 100%;
  object-fit: cover;
  background: var(--chip-bg);
}

.reviews__card-name {
  padding: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--card-bg);
}

/* === ABOUT === */
.about__inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.about__img {
  width: 350px;
  height: 450px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--chip-bg);
}

.about__content {
  flex: 1;
}

.about__text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-light);
  white-space: pre-line;
  margin-bottom: 32px;
}

.about__qr-codes {
  display: flex;
  gap: 24px;
}

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

/* QR-код канала Telegram и MAX. Можно заменить на дизайнерский */
.about__qr-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform var(--transition);
  background: var(--chip-bg);
}

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

.about__qr-label {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 8px;
}

/* === FOOTER === */
.footer {
  background: var(--footer-bg);
  padding: 60px 0 30px;
  color: var(--footer-text);
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer__heading {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--footer-text);
}

.footer__phone {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 12px;
}

.footer__text {
  color: var(--footer-text-light);
  font-size: 15px;
  margin-bottom: 8px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--footer-text-light);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition);
}

.footer__link-item:hover {
  color: var(--footer-text);
}

.footer__copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--footer-text-light);
  font-size: 14px;
}

/* === MODAL === */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal--active {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
}

.modal__content {
  position: relative;
  background: #fff;
  border-radius: var(--radius-sm);
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform var(--transition);
}

.modal--active .modal__content {
  transform: scale(1);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(0,0,0,0.5);
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__slider {
  position: relative;
  overflow: hidden;
}

.modal__slides {
  display: flex;
  transition: transform var(--transition);
}

.modal__slides img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
}

.modal__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__arrow--prev { left: 12px; }
.modal__arrow--next { right: 12px; }

.modal__info {
  padding: 30px;
}

.modal__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal__price {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.modal__desc {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* === LIGHTBOX === */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.95);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.lightbox--active {
  opacity: 1;
  visibility: visible;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}

.lightbox__arrow--prev { left: 20px; }
.lightbox__arrow--next { right: 20px; }

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll--visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
  .catalog__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .portfolio__masonry {
    columns: 2;
  }
  .promo__inner {
    flex-direction: column;
  }
  .promo__img {
    width: 100%;
    height: 250px;
  }
  .about__inner {
    flex-direction: column;
    align-items: center;
  }
  .about__img {
    width: 100%;
    max-width: 350px;
    height: 350px;
  }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .header__nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--header-bg);
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 16px;
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
  }
  .header__nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .header__cta {
    display: none;
  }
  .header__mobile-icons {
    display: flex;
  }
  .header__burger {
    display: flex;
  }
  .catalog__grid {
    grid-template-columns: 1fr;
  }
  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio__masonry {
    columns: 2;
  }
  .section {
    padding: 50px 0;
  }
  .section__title {
    font-size: 28px;
  }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .promo__img {
    height: 200px;
  }
  .modal__content {
    width: 95%;
    max-height: 95vh;
  }
  .popover {
    right: 10px;
    left: 10px;
    max-width: none;
  }
  .hero {
    min-height: 80vh;
  }
  .about__qr-codes {
    justify-content: center;
  }
}

/* === MESSENGER ICONS === */
.icon-whatsapp,
.icon-telegram,
.icon-max {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  border-radius: 50%;
}

.icon-max {
  border-radius: 25%;
}

/* Placeholder для изображений без загруженного фото */
.placeholder-img {
  background: linear-gradient(135deg, var(--chip-bg) 0%, var(--promo-bg) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 14px;
}
