:root{
  --pink: #f7cad9;
  --pink-dark: #f4b8ce;
  --text-dark: #2b1a2f;
  --text-link: #3a2b46;
  --white: #ffffff;
  --header-h: 78px;
}

*{ box-sizing: border-box; }

body{
  margin:0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
}

a{ text-decoration: none; color: inherit; }
ul{ list-style: none; margin:0; padding:0; }
button{ font: inherit; background:none; border:none; cursor:pointer; color:inherit; }

/* ============ HEADER TOP ============ */
.site-header{
  position: relative;
  width: 100%;
}

.header-top{
  background: var(--white);
  padding: 18px 24px;
}

.header-top__inner{
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header-top__spacer{
  width: 100%;
}

.header-logo{
  justify-self: center;
  display: inline-flex;
}

.header-logo__img{
  height: 46px;
  width: auto;
  /* лого поставляется как белое png — на светлом хедере затемняем через filter,
     чтобы оно читалось так же, как на оригинальном сайте */
  filter: brightness(0) saturate(100%);
}

.header-icons{
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
}

.icon-btn svg{
  width: 21px;
  height: 21px;
}

.icon-btn--search{
  cursor: default;
  pointer-events: none; /* иконка поиска не реагирует на клики */
}

.icon-btn--account,
.icon-btn--cart{
  cursor: pointer;
}

.icon-btn--account:hover,
.icon-btn--cart:hover{
  opacity: 0.6;
}

.cart-count{
  position: absolute;
  top: -8px;
  right: -10px;
  font-size: 11px;
  min-width: 15px;
  text-align: center;
}

.icon-btn--burger{
  display: none;
}

/* ============ MAIN NAV ============ */
.main-nav{
  background: var(--pink);
}

.main-nav__list{
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px 24px;
  gap: 38px;
}

.main-nav__link{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-link);
  padding: 4px 0;
}

.main-nav__link--simple{
  cursor: pointer;
}

.chevron{
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

.has-dropdown{
  position: relative;
}

.has-dropdown:hover .chevron{
  transform: rotate(180deg);
}

.dropdown{
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--pink);
  padding: 14px 0;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 50;
}

.has-dropdown:hover .dropdown{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a{
  display: block;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  color: var(--text-link);
  white-space: nowrap;
}

.dropdown li a:hover{
  text-decoration: underline;
}

/* ============ PERKS BAR ============ */
.perks-bar{
  background: var(--white);
  border-bottom: 1px solid #f1e3e9;
}

.perks-bar__list{
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 48px;
  padding: 16px 24px;
}

.perks-bar__list li{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  color: var(--text-dark);
  white-space: nowrap;
}

.perks-bar__list svg{
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ============ MOBILE ============ */
@media (max-width: 900px){

  .header-top{
    padding: 14px 16px;
  }

  .header-top__inner{
    grid-template-columns: auto 1fr auto;
  }

  .header-top__spacer{
    display: none;
  }

  .header-logo{
    justify-self: start;
  }

  .header-logo__img{
    height: 34px;
  }

  .header-icons{
    gap: 14px;
  }

  .icon-btn--burger{
    display: inline-flex;
  }

  .icon-btn--burger svg{
    width: 24px;
    height: 24px;
  }

  /* сворачиваем меню в выпадающую панель */
  .main-nav{
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.is-open{
    max-height: 800px;
  }

  .main-nav__list{
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 16px;
  }

  .main-nav__list > li{
    border-top: 1px solid rgba(0,0,0,0.06);
  }

  .main-nav__link{
    width: 100%;
    justify-content: space-between;
    padding: 14px 20px;
    font-size: 14px;
  }

  .main-nav__link--simple{
    display: flex;
  }

  /* dropdown на мобайле открывается тапом, живёт в потоке документа */
  .dropdown{
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
    background: rgba(255,255,255,0.35);
  }

  .has-dropdown.is-open .dropdown{
    max-height: 400px;
    padding: 6px 0 10px;
  }

  .has-dropdown.is-open .chevron{
    transform: rotate(180deg);
  }

  .perks-bar__list{
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
  }
}


.hero-slider{
  width: 100%;
}

.hero-slider__img{
  display: block;
  width: 100%;
  height: auto;
}





@media (max-width: 480px){
  .header-logo__img{
    height: 28px;
  }

    .perks-bar__list{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding: 20px 20px;
  }

}


























 /* ============ PRODUCTS NEW ============ */
.products-new{
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 24px;
}

.products-new__title{
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 40px;
}

.products-new__list{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.product-card{
  position: relative;
}

.product-card__link{
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-card__badges{
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
  pointer-events: none;
}

.badge{
  background: #000;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  letter-spacing: 0.02em;
}

.product-card__image-wrap{
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f7f2f0;
}

.product-card__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

.product-card__img--hover{
  opacity: 0;
}

.product-card:hover .product-card__img--default{
  opacity: 0;
}

.product-card:hover .product-card__img--hover{
  opacity: 1;
}

.quick-shop-btn{
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 10px);
  background: rgba(155, 66, 99, 0.85);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 26px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 3;
  border: none;
  cursor: pointer;
}

.product-card:hover .quick-shop-btn{
  opacity: 1;
  transform: translate(-50%, 0);
}

.product-card__info{
  text-align: center;
  padding-top: 16px;
}

.product-card__name{
  font-size: 14px;
  margin: 0 0 6px;
  color: var(--text-link);
}

.product-card__price{
  margin: 0;
  font-size: 14px;
}

.price-current{
  color: #9b4263;
  font-weight: 600;
}

.price-old{
  color: #999;
  text-decoration: line-through;
  margin-left: 6px;
}

.product-card__reviews{
  margin: 4px 0 0;
  font-size: 13px;
  color: #d68fae;
}

@media (max-width: 900px){
  .products-new__list{
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .products-new__title{
    font-size: 22px;
  }

  .quick-shop-btn{
    opacity: 1;
    transform: translate(-50%, 0);
    bottom: 12px;
    font-size: 12px;
    padding: 8px 18px;
  }
}

@media (max-width: 480px){
  .products-new__list{
    grid-template-columns: 1fr;
  }
}




/* ============ STARTER KIT ============ */
.starter-kit{
  display: grid;
  grid-template-columns: 1fr 1fr; 
}

.starter-kit__image-wrap{
  height: 100%;
  overflow: hidden;
}

.starter-kit__img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.starter-kit__content{
  background: #f2ede6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.starter-kit__title{
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px;
}

.starter-kit__text{
  font-size: 15px;
  line-height: 1.6;
  max-width: 420px;
  margin: 0 0 28px;
  color: var(--text-dark);
}

.starter-kit__btn{
  display: inline-block;
  border: 1px solid var(--text-dark);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 40px;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.starter-kit__btn:hover{
  background: var(--text-dark);
  color: #fff;
}

@media (max-width: 900px){
  .starter-kit{
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .starter-kit__image-wrap{
    height: 420px;
  }

  .starter-kit__content{
    padding: 40px 24px;
  }
}












/* ============ ARTICLES ============ */
.articles{
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 24px;
}

.articles__title{
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  font-style: italic;
  margin: 0 0 40px;
}

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

.article-card{
  display: block;
  color: inherit;
  text-decoration: none;
}

.article-card__image-wrap{
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 22px;
}

.article-card__img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-card__img{
  transform: scale(1.04);
}

.article-card__title{
  font-size: 19px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 14px;
  line-height: 1.35;
}

.article-card__text{
  font-size: 14px;
  text-align: center;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 900px){
  .articles__list{
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .articles__title{
    font-size: 26px;
  }
}














/* ============ FOOTER ============ */
.site-footer{
  position: relative;
  background: var(--pink);
  padding: 50px 24px 30px;
}

.site-footer__inner{
  max-width: 1400px;
  margin: 0 auto;
}

.site-footer__top{
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.social-icon{
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
}

.social-icon svg{
  width: 20px;
  height: 20px;
}

.site-footer__columns{
  display: grid;
  grid-template-columns: repeat(3, auto) 1fr;
  gap: 40px;
}

.footer-col ul{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-col a{
  color: var(--text-dark);
  font-weight: 600;
  font-size: 14px;
}

.footer-col a:hover{
  text-decoration: underline;
}

.footer-col li{
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.5;
}

.footer-col--newsletter{
  max-width: 420px;
  justify-self: end;
}

.newsletter__label{
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 12px;
}

.newsletter__form{
  display: flex;
}

.newsletter__input{
  flex: 1;
  border: 1px solid var(--text-dark);
  border-right: none;
  padding: 12px 16px;
  font-size: 14px;
  background: #fff;
}

.newsletter__input:focus{
  outline: none;
}

.newsletter__btn{
  background: #000;
  color: #fff;
  border: none;
  padding: 0 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.newsletter__btn:hover{
  background: #222;
}

.site-footer__copyright{
  text-align: center;
  font-size: 13px;
  margin: 50px 0 0;
}

.gift-widget{
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #fff;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  border-radius: 4px;
  z-index: 999;
}

.gift-widget:hover{
  background: #f7f2f0;
}

.gift-widget__icon{
  font-size: 16px;
}

@media (max-width: 900px){
  .site-footer__columns{
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-col--newsletter{
    justify-self: start;
    max-width: 100%;
  }

  .gift-widget{
    right: 12px;
    bottom: 12px;
    padding: 10px 14px;
    font-size: 13px;
  }
}













/* ============ REVIEWS BLOCK ============ */
.reviews-block{
  background: #f5a623;
  padding: 60px 24px;
}

.reviews-block__list{
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.review-card{
  background: #fff;
  display: flex;
  flex-direction: column;
}

.review-card__image-wrap{
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.review-card__img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-card__body{
  padding: 20px 22px 26px;
  position: relative;
}

.review-card__title{
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}

.review-card__text{
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  margin: 0 0 14px;
  padding-right: 100px;
}

.review-card__author{
  font-size: 14px;
  color: #333;
  margin: 0;
}

.review-card__btn{
  position: absolute;
  right: 22px;
  bottom: 26px;
  display: inline-block;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 12px 18px;
  text-decoration: none;
}

.review-card__btn:hover{
  background: #222;
}

@media (max-width: 900px){
  .reviews-block__list{
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .review-card__text{
    padding-right: 0;
    margin-bottom: 40px;
  }

  .review-card__btn{
    right: 22px;
    bottom: 22px;
  }
}