/* ============================================================
   SLEPOK.KZ — СТИЛИ
   Палитра: молочный / тёплый бежевый / песочный /
            приглушённый коричневный / графитовый
   ============================================================ */

:root{
  --cream:#FBF6EE;
  --cream-2:#F7F0E4;
  --beige:#EFE1CC;
  --sand:#E3CFAE;
  --brown-soft:#B99B72;
  --brown:#7A6349;
  --brown-dark:#5A4632;
  --graphite:#2E2A25;
  --graphite-2:#3D372F;
  --white:#FFFFFF;
  --whatsapp:#3FA24A;

  --text-main:#332C24;
  --text-muted:#8A7B68;
  --text-on-dark:#F3EBDD;
  --text-on-dark-muted:#C9BBA4;

  --radius-sm:10px;
  --radius-md:16px;
  --radius-lg:26px;
  --shadow-card:0 10px 30px rgba(74,58,38,.10);
  --shadow-hover:0 16px 40px rgba(74,58,38,.16);

  --font-head:'Playfair Display', Georgia, serif;
  --font-body:'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container:1220px;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--text-main);
  background:var(--cream);
  -webkit-font-smoothing:antialiased;
  line-height:1.55;
}
h1,h2,h3,h4{
  font-family:var(--font-head);
  font-weight:600;
  margin:0 0 .5em;
  color:var(--brown-dark);
  line-height:1.2;
}
p{margin:0 0 1em;}
a{color:inherit; text-decoration:none;}
ul{list-style:none; margin:0; padding:0;}
button{font-family:inherit; cursor:pointer;}
img{max-width:100%; display:block;}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}
.container--narrow{max-width:820px;}

/* ---------- Кнопки ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  justify-content:center;
  padding:15px 28px;
  border-radius:999px;
  font-weight:600;
  font-size:15px;
  letter-spacing:.01em;
  border:1.5px solid transparent;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space:nowrap;
}
.btn--primary{
  background:var(--brown-dark);
  color:var(--cream);
}
.btn--primary:hover{background:var(--graphite); transform:translateY(-2px); box-shadow:var(--shadow-hover);}
.btn--outline{
  background:transparent;
  border-color:var(--brown-dark);
  color:var(--brown-dark);
}
.btn--outline:hover{background:var(--brown-dark); color:var(--cream); transform:translateY(-2px);}
.btn--outline-light{border-color:rgba(243,235,221,.5); color:var(--text-on-dark);}
.btn--outline-light:hover{background:var(--text-on-dark); color:var(--graphite);}
.btn--whatsapp{background:var(--whatsapp); color:#fff;}
.btn--whatsapp:hover{background:#358f40; transform:translateY(-2px); box-shadow:var(--shadow-hover);}
.btn--sm{padding:10px 18px; font-size:13.5px;}
.btn--block{width:100%;}
.btn[disabled]{opacity:.5; cursor:not-allowed; transform:none !important;}
.icon{width:18px; height:18px; fill:currentColor; flex:none;}

/* ---------- Шапка ---------- */
.header{
  position:sticky; top:0; z-index:60;
  background:rgba(251,246,238,.92);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid rgba(122,99,73,.14);
}
.header__inner{
  display:flex; align-items:center; gap:28px;
  height:78px;
}
.logo{
  font-family:var(--font-head);
  font-size:24px;
  font-weight:700;
  color:var(--brown-dark);
  letter-spacing:.01em;
}
.logo__dot{color:var(--brown-soft);}
.nav{display:flex; gap:26px; margin-left:auto;}
.nav__link{
  font-size:14.5px; font-weight:500; color:var(--text-main);
  position:relative; padding:6px 0;
}
.nav__link::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:2px;
  background:var(--brown-soft); transform:scaleX(0); transform-origin:left;
  transition:transform .2s ease;
}
.nav__link:hover::after{transform:scaleX(1);}
.header__cta{margin-left:8px; flex:none;}
.burger{
  display:none; flex:none; width:40px; height:40px; border:none; background:none;
  position:relative; margin-left:auto;
}
.burger span{
  display:block; width:22px; height:2px; background:var(--brown-dark);
  margin:5px auto; transition:all .25s ease;
}
.burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.burger[aria-expanded="true"] span:nth-child(2){opacity:0;}
.burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

.mobile-menu{
  display:none; flex-direction:column; gap:2px;
  background:var(--cream-2);
  border-bottom:1px solid rgba(122,99,73,.14);
  padding:10px 24px 20px;
}
.mobile-menu.is-open{display:flex;}
.mobile-menu__link{
  padding:13px 4px; font-size:16px; font-weight:500;
  border-bottom:1px solid rgba(122,99,73,.12);
}
.mobile-menu__cta{margin-top:14px;}

/* ---------- Hero ---------- */
.hero{padding:64px 0 84px;}
.hero__inner{
  display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center;
}
.hero__title{
  font-size:clamp(32px, 4.2vw, 54px);
  margin-bottom:.4em;
}
.hero__subtitle{
  font-size:18px; color:var(--text-muted); max-width:520px;
}
.hero__actions{display:flex; flex-wrap:wrap; gap:14px; margin:28px 0 40px;}
.trust-bar{
  display:grid; grid-template-columns:repeat(2,auto); gap:14px 28px;
}
.trust-bar li{
  display:flex; align-items:center; gap:10px;
  font-size:14px; font-weight:500; color:var(--brown-dark);
}
.trust-bar .dot{
  width:8px; height:8px; border-radius:50%; background:var(--brown-soft); flex:none;
}
.hero__media{position:relative;}
.hero__image{
  aspect-ratio:4/5; border-radius:var(--radius-lg);
  background:linear-gradient(150deg, var(--sand), var(--beige) 55%, var(--cream-2));
  box-shadow:var(--shadow-card);
  display:flex; align-items:center; justify-content:center;
  position:relative; overflow:hidden;
}
.hero__image::after{
  content:"Добавьте фото готового слепка";
  position:absolute; left:50%; bottom:22px; transform:translateX(-50%);
  font-size:12px; color:var(--brown-dark); opacity:.55;
  background:rgba(255,255,255,.55); padding:6px 14px; border-radius:999px;
  white-space:nowrap; letter-spacing:.01em;
}
.hero__image svg{width:38%; height:38%; opacity:.35;}

/* ---------- Секции ---------- */
.section{padding:88px 0;}
.section--tinted{background:var(--cream-2);}
.section--dark{background:var(--graphite); color:var(--text-on-dark);}
.section--dark .section__lead{color:var(--text-on-dark-muted);}
.section__head{max-width:700px; margin:0 auto 44px; text-align:center;}
.section__title{font-size:clamp(26px,3vw,38px);}
.section__title--light{color:var(--text-on-dark);}
.section__lead{color:var(--text-muted); font-size:16.5px;}

/* ---------- Каталог: табы ---------- */
.catalog-tabs{
  display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-bottom:40px;
}
.catalog-tab{
  padding:10px 20px; border-radius:999px; border:1.5px solid rgba(122,99,73,.3);
  font-size:13.5px; font-weight:600; color:var(--brown-dark); background:transparent;
  transition:all .2s ease;
}
.catalog-tab:hover{border-color:var(--brown-dark);}
.catalog-tab.is-active{background:var(--brown-dark); border-color:var(--brown-dark); color:var(--cream);}

/* ---------- Карточки товаров ---------- */
.catalog-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:28px;
}
.product-card{
  background:var(--white);
  border-radius:var(--radius-md);
  overflow:hidden;
  box-shadow:var(--shadow-card);
  display:flex; flex-direction:column;
  transition:transform .22s ease, box-shadow .22s ease;
}
.product-card:hover{transform:translateY(-4px); box-shadow:var(--shadow-hover);}
.media-placeholder{
  aspect-ratio:4/3; position:relative; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}
.media-placeholder__initial{
  font-family:var(--font-head); font-size:64px; color:rgba(90,70,50,.22);
}
.media-placeholder__badge{
  position:absolute; right:10px; bottom:10px;
  font-size:10.5px; letter-spacing:.02em; color:#fff;
  background:rgba(46,42,37,.55); padding:4px 10px; border-radius:999px;
}
.product-card__body{padding:22px 22px 24px; display:flex; flex-direction:column; gap:10px; flex:1;}
.product-card__category{font-size:11.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--brown-soft); font-weight:700;}
.product-card__name{font-size:19px; margin:0;}
.product-card__meta{display:flex; flex-wrap:wrap; gap:6px; margin-top:-4px;}
.product-card__desc{font-size:13.5px; color:var(--text-muted); margin:0;}
.product-card__desc:empty{display:none;}
.product-card__price{
  margin-top:auto; padding-top:10px;
  font-family:var(--font-head); font-size:24px; font-weight:700; color:var(--brown-dark);
}
.product-card__price small{
  display:block; font-family:var(--font-body); font-weight:600; font-size:12px;
  color:var(--text-muted); letter-spacing:.01em;
}
.product-card__price.is-tbd{font-size:15px; font-family:var(--font-body); color:var(--text-muted);}
.product-card__includes{
  display:flex; flex-wrap:wrap; gap:6px; font-size:11.5px;
}
.chip{
  padding:4px 10px; border-radius:999px; background:var(--cream-2); color:var(--brown-dark);
  border:1px solid rgba(122,99,73,.2);
}
.chip--muted{color:var(--text-muted); background:transparent; border-style:dashed;}
.product-card__actions{display:flex; gap:10px; margin-top:8px;}
.product-card__actions .btn{flex:1; padding:12px 14px; font-size:13.5px;}

/* ---------- Что входит ---------- */
.included-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:20px;
}
.included-item{
  background:var(--white); border-radius:var(--radius-md); padding:26px 20px;
  text-align:center; box-shadow:var(--shadow-card);
}
.included-item__icon{
  width:46px; height:46px; margin:0 auto 14px; border-radius:50%;
  background:var(--beige); display:flex; align-items:center; justify-content:center;
}
.included-item__icon svg{width:22px; height:22px; stroke:var(--brown-dark); fill:none;}
.included-item__label{font-size:14px; font-weight:600; color:var(--brown-dark);}
.included-cta{text-align:center; margin-top:40px;}

/* ---------- Модалка "комплектация" таблица ---------- */
.complectation-table{width:100%; border-collapse:collapse; font-size:13.5px;}
.complectation-table th,.complectation-table td{
  padding:10px 8px; border-bottom:1px solid rgba(122,99,73,.15); text-align:center;
}
.complectation-table th{font-weight:700; color:var(--brown-dark); font-size:12px;}
.complectation-table td:first-child, .complectation-table th:first-child{
  text-align:left; font-weight:600; color:var(--text-main);
}
.complectation-table .yes{color:var(--whatsapp); font-weight:700;}
.complectation-table .no{color:var(--text-muted); opacity:.4;}
.table-scroll{overflow-x:auto; -webkit-overflow-scrolling:touch;}

/* ---------- Пакеты / комплекты ---------- */
.packages-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:26px; align-items:stretch;
}
.package-card{
  background:var(--white); border-radius:var(--radius-lg); padding:34px 28px;
  box-shadow:var(--shadow-card); border:2px solid transparent;
  display:flex; flex-direction:column;
}
.package-card.is-highlight{
  border-color:var(--brown-soft); position:relative; transform:scale(1.03);
  box-shadow:var(--shadow-hover);
}
.package-card__badge{
  align-self:flex-start; background:var(--brown-dark); color:var(--cream);
  font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  padding:5px 12px; border-radius:999px; margin-bottom:14px;
}
.package-card__name{font-size:22px; margin-bottom:4px;}
.package-card__price{font-family:var(--font-head); font-size:30px; font-weight:700; color:var(--brown-dark); margin-bottom:18px;}
.package-card__price.is-tbd{font-size:16px; font-family:var(--font-body); color:var(--text-muted);}
.package-card__list{display:flex; flex-direction:column; gap:10px; margin-bottom:24px; flex:1;}
.package-card__row{display:flex; justify-content:space-between; gap:12px; font-size:13.5px; border-bottom:1px dashed rgba(122,99,73,.2); padding-bottom:8px;}
.package-card__row span:first-child{color:var(--text-muted);}
.package-card__row span:last-child{font-weight:600; text-align:right;}
.packages-empty{
  text-align:center; color:var(--text-muted); font-size:14.5px;
  background:var(--white); border-radius:var(--radius-md); padding:40px; box-shadow:var(--shadow-card);
}

/* ---------- Доп. услуги ---------- */
.addons-grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:14px;
}
.addon-row{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  background:var(--white); padding:18px 22px; border-radius:var(--radius-sm);
  box-shadow:var(--shadow-card);
}
.addon-row__name{font-weight:600; font-size:14.5px;}
.addon-row__price{font-family:var(--font-head); font-weight:700; color:var(--brown-dark); font-size:16px; white-space:nowrap;}
.addon-row__price.is-tbd{font-family:var(--font-body); font-size:13px; color:var(--text-muted); font-weight:500;}

/* ---------- Шаги заказа ---------- */
.steps-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:24px;
}
.step-card{position:relative; padding:32px 22px 24px; background:var(--white); border-radius:var(--radius-md); box-shadow:var(--shadow-card);}
.step-card__num{
  font-family:var(--font-head); font-size:38px; font-weight:700; color:var(--sand);
  margin-bottom:10px;
}
.step-card__title{font-size:17px; margin-bottom:6px;}
.step-card__text{font-size:13.5px; color:var(--text-muted); margin:0;}

/* ---------- Почему выбирают нас ---------- */
.whyus-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:22px;}
.whyus-card{
  background:rgba(255,255,255,.05); border:1px solid rgba(243,235,221,.14);
  border-radius:var(--radius-md); padding:28px 22px;
}
.whyus-card__title{color:var(--text-on-dark); font-size:18px; margin-bottom:8px;}
.whyus-card__text{color:var(--text-on-dark-muted); font-size:13.5px; margin:0;}
.whyus-card__text:empty{display:none;}

/* ---------- Галерея ---------- */
.gallery-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:16px;
}
.gallery-item{
  aspect-ratio:1/1; border-radius:var(--radius-sm); overflow:hidden;
  position:relative; cursor:pointer; border:none; padding:0;
  display:block; width:100%;
}
.gallery-item .media-placeholder{width:100%; height:100%; aspect-ratio:auto;}
.gallery-item__label{
  position:absolute; left:12px; bottom:12px; color:#fff; font-size:12.5px; font-weight:600;
  background:rgba(46,42,37,.5); padding:5px 12px; border-radius:999px;
}

/* ---------- FAQ ---------- */
.faq-list{display:flex; flex-direction:column; gap:12px;}
.faq-item{background:var(--white); border-radius:var(--radius-sm); box-shadow:var(--shadow-card); overflow:hidden;}
.faq-item__q{
  width:100%; text-align:left; padding:20px 22px; background:none; border:none;
  display:flex; justify-content:space-between; align-items:center; gap:16px;
  font-size:15.5px; font-weight:600; color:var(--brown-dark);
}
.faq-item__q .plus{font-size:22px; color:var(--brown-soft); transition:transform .25s ease; flex:none;}
.faq-item.is-open .plus{transform:rotate(45deg);}
.faq-item__a{
  max-height:0; overflow:hidden; transition:max-height .28s ease;
  padding:0 22px; font-size:14px; color:var(--text-muted);
}
.faq-item.is-open .faq-item__a{padding-bottom:20px;}
.faq-item__a-inline{margin:0 0 10px;}

/* ---------- Финальный CTA ---------- */
.final-cta{
  padding:96px 0; text-align:center;
  background:linear-gradient(160deg, var(--brown-dark), var(--graphite));
  color:var(--text-on-dark);
}
.final-cta__title{color:var(--text-on-dark); font-size:clamp(26px,3.4vw,40px); max-width:720px; margin:0 auto .4em;}
.final-cta__text{color:var(--text-on-dark-muted); max-width:560px; margin:0 auto 32px; font-size:16px;}
.final-cta__actions{display:flex; justify-content:center; flex-wrap:wrap; gap:14px;}

/* ---------- Футер ---------- */
.footer{background:var(--graphite); color:var(--text-on-dark-muted); padding:56px 0 0;}
.footer__inner{
  display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:32px; padding-bottom:40px;
  border-bottom:1px solid rgba(243,235,221,.12);
}
.logo--footer{color:var(--text-on-dark);}
.footer__tagline{margin-top:10px; font-size:13.5px;}
.footer__nav{display:flex; flex-direction:column; gap:10px; font-size:14px;}
.footer__contacts{display:flex; flex-direction:column; gap:10px; font-size:14px;}
.footer__bottom{padding:18px 24px; font-size:12.5px; text-align:center; color:var(--text-on-dark-muted); opacity:.7;}

/* ---------- Плавающая кнопка WhatsApp ---------- */
.fab-whatsapp{
  position:fixed; right:22px; bottom:22px; z-index:70;
  width:58px; height:58px; border-radius:50%; background:var(--whatsapp); color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 26px rgba(63,162,74,.4);
  transition:transform .2s ease;
}
.fab-whatsapp:hover{transform:scale(1.08);}
.fab-whatsapp .icon{width:28px; height:28px;}

/* ---------- Модальное окно ---------- */
.modal-overlay{
  position:fixed; inset:0; background:rgba(46,42,37,.55); z-index:90;
  display:none; align-items:center; justify-content:center; padding:20px;
  backdrop-filter:blur(2px);
}
.modal-overlay.is-open{display:flex;}
.modal{
  background:var(--cream); border-radius:var(--radius-lg); max-width:640px; width:100%;
  max-height:86vh; overflow-y:auto; position:relative; padding:40px 34px 34px;
  box-shadow:0 24px 60px rgba(0,0,0,.25);
}
.modal__close{
  position:absolute; top:16px; right:18px; width:36px; height:36px; border-radius:50%;
  border:none; background:var(--beige); font-size:22px; line-height:1; color:var(--brown-dark);
}
.modal__body h3{margin-bottom:6px;}
.modal__body .modal__price{font-family:var(--font-head); font-size:26px; color:var(--brown-dark); font-weight:700; margin:10px 0;}
.modal__body .modal__meta{display:flex; flex-wrap:wrap; gap:10px; margin-bottom:16px; font-size:13px;}
.modal__body .modal__includes{display:flex; flex-direction:column; gap:8px; margin:16px 0;}
.modal__body .modal__includes .row{display:flex; align-items:center; gap:10px; font-size:13.5px;}
.modal__body .modal__includes .row.on{color:var(--text-main);}
.modal__body .modal__includes .row.off{color:var(--text-muted); opacity:.5; text-decoration:line-through;}
.modal__actions{display:flex; gap:12px; margin-top:20px;}

/* ---------- Лайтбокс галереи ---------- */
.lightbox{
  position:fixed; inset:0; background:rgba(20,18,15,.92); z-index:95;
  display:none; align-items:center; justify-content:center; padding:30px;
}
.lightbox.is-open{display:flex;}
.lightbox__content{max-width:640px; width:100%; aspect-ratio:1/1; border-radius:var(--radius-md); overflow:hidden;}
.lightbox__content .media-placeholder{width:100%; height:100%;}
.lightbox__close{
  position:absolute; top:22px; right:26px; width:44px; height:44px; border-radius:50%;
  background:rgba(255,255,255,.12); color:#fff; border:none; font-size:26px;
}

/* ============ АДАПТИВНОСТЬ ============ */
@media (max-width:1024px){
  .hero__inner{grid-template-columns:1fr; gap:40px;}
  .hero__media{order:-1;}
  .hero__image{aspect-ratio:16/10;}
  .catalog-grid{grid-template-columns:repeat(2,1fr);}
  .included-grid{grid-template-columns:repeat(2,1fr);}
  .packages-grid{grid-template-columns:1fr; max-width:440px; margin:0 auto;}
  .package-card.is-highlight{transform:none;}
  .steps-grid{grid-template-columns:repeat(2,1fr);}
  .whyus-grid{grid-template-columns:repeat(2,1fr);}
  .gallery-grid{grid-template-columns:repeat(2,1fr);}
  .footer__inner{grid-template-columns:1fr 1fr; row-gap:28px;}
}

@media (max-width:860px){
  .nav, .header__cta{display:none;}
  .burger{display:block;}
  .header__inner{height:68px;}
}

@media (max-width:640px){
  .section{padding:64px 0;}
  .hero{padding:40px 0 56px;}
  .hero__actions{flex-direction:column; align-items:stretch;}
  .hero__actions .btn{width:100%;}
  .trust-bar{grid-template-columns:1fr;}
  .catalog-grid{grid-template-columns:1fr;}
  .included-grid{grid-template-columns:1fr 1fr; gap:14px;}
  .included-item{padding:20px 14px;}
  .addons-grid{grid-template-columns:1fr;}
  .steps-grid{grid-template-columns:1fr;}
  .whyus-grid{grid-template-columns:1fr;}
  .gallery-grid{grid-template-columns:1fr 1fr; gap:10px;}
  .footer__inner{grid-template-columns:1fr;}
  .modal{padding:30px 20px 26px;}
  .final-cta__actions{flex-direction:column;}
  .final-cta__actions .btn{width:100%;}
}
