/* assets/css/home.css */

/* =========================================================
   Главная страница
   Задача:
   - убрать бледность
   - усилить контраст
   - сделать аккуратнее и "дороже" визуально
   - не ломать общий стиль сайта
   ========================================================= */

.home-page{
  background:
    linear-gradient(180deg, #f3f4f1 0%, #f7f7f5 220px, #f4f5f2 100%);
  padding-bottom: 10px;
}

.home-hero{
  padding: 10px 0 8px;
}

.home-hero__panel{
  margin-bottom: 12px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(56, 73, 66, .10);
  box-shadow: 0 10px 28px rgba(20, 24, 22, .05);
  backdrop-filter: blur(4px);
}

.home-hero__text{
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  color: #25312c;
}

/* Баннер только на мобиле */
.home-mobile-banner{
  margin: 10px 0 14px;
}

.home-mobile-banner img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

@media (min-width: 768px){
  .home-mobile-banner{
    display: none;
  }
}

/* =========================================================
   CTA
   ========================================================= */

.home-actions{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
}

.home-actions a{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;

  text-decoration: none;
  box-sizing: border-box;

  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .01em;

  transition:
    transform .15s ease,
    box-shadow .15s ease,
    border-color .15s ease,
    background .15s ease,
    color .15s ease;
}

.home-actions__catalog{
  background: linear-gradient(180deg, #567364 0%, #4a6558 100%);
  border: 1px solid rgba(48, 67, 59, .55);
  color: #ffffff;
  box-shadow:
    0 10px 24px rgba(43, 58, 52, .16),
    inset 0 1px 0 rgba(255,255,255,.18);
}

.home-actions__catalog::before{
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 0 0 4px rgba(255,255,255,.13);
}

.home-actions__catalog:hover{
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(43, 58, 52, .20),
    inset 0 1px 0 rgba(255,255,255,.20);
}

.home-actions__catalog:active{
  transform: translateY(0);
}

@media (max-width: 380px){
  .home-actions a{
    min-height: 46px;
    font-size: 15px;
    border-radius: 13px;
  }

  .home-actions__catalog::before{
    left: 13px;
    height: 18px;
  }
}

/* =========================================================
   Блоки товаров
   ========================================================= */

.home-block{
  padding: 14px 0;
}

.home-title{
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 12px;
  padding: 14px 14px;
  border-radius: 14px;

  background: linear-gradient(180deg, #5f536f 0%, #544864 100%);
  color: #ffffff;

  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: none;

  box-shadow: 0 10px 24px rgba(45, 34, 57, .12);
}

.home-title--alt{
  background: linear-gradient(180deg, #5f536f 0%, #544864 100%);
}

.home-title--light{
  background: #ffffff;
  color: #1f2a26;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 8px 18px rgba(0,0,0,.05);
}

/* =========================================================
   Инфо-блок внизу
   ========================================================= */

.home-info-card{
  padding: 16px 14px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(56, 73, 66, .10);
  box-shadow: 0 10px 28px rgba(20, 24, 22, .05);
}

.home-flat-img{
  margin: 0 0 14px;
}

.home-flat-img img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.home-why{
  padding: 0;
}

.home-why h3{
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
  color: #1f2a26;
}

.home-why ul{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.home-why li{
  display: flex;
  gap: 10px;
  align-items: flex-start;

  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: #2b3732;
}

.home-why li::before{
  content: "✓";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #4f6a5f;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
}

@media (min-width: 768px){
  .home-page{
    background:
      linear-gradient(180deg, #f1f3ef 0%, #f6f7f4 260px, #f3f5f1 100%);
  }

  .home-hero{
    padding: 14px 0 10px;
  }

  .home-hero__panel{
    padding: 18px 18px 16px;
    border-radius: 18px;
    margin-bottom: 14px;
  }

  .home-hero__text{
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 14px;
    max-width: 900px;
  }

  .home-actions a{
    min-height: 52px;
    font-size: 17px;
    border-radius: 15px;
  }

  .home-title{
    font-size: 18px;
    padding: 15px 16px;
    border-radius: 15px;
  }

  .home-info-card{
    padding: 18px 18px 16px;
    border-radius: 18px;
  }

  .home-why h3{
    font-size: 19px;
  }

  .home-why li{
    font-size: 15px;
  }
}