/*
 * UI polish overrides for the home page to align with the provided design references.
 * Loaded after the minified bundle via html-header.twig.
 */

/* Global buttons: warm orange, subtle hover */
.main-btn,
.main-btn-standard {
  background: linear-gradient(180deg, #f9a12b 0%, #f28a00 90%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 8px 18px rgba(242, 138, 0, 0.25);
}

.main-btn:hover,
.main-btn-standard:hover {
  filter: brightness(0.95);
  box-shadow: 0 10px 22px rgba(242, 138, 0, 0.32);
}

/* Factoring cards (packets) */
section.packets {
  background: radial-gradient(circle at 20% 20%, #3f5f48 0%, #1f3727 65%);
  padding: 8rem 0 9rem;
}

section.packets .f-title {
  color: #fff;
  margin-bottom: 4rem;
}

section.packets .wrap {
  gap: 2.4rem;
}

section.packets .wrap .item {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
  padding: 3.2rem 2.8rem;
  text-align: center;
  min-width: 240px;
}

section.packets .wrap .item .f-menu,
section.packets .wrap .item .f-price-name,
section.packets .wrap .item .f-price {
  color: #1f3c2c;
}

section.packets .wrap .item ul li {
  color: #4a4f52;
  margin-bottom: 1.4rem;
}

section.packets .wrap .item .main-btn-standard {
  margin-top: 1.8rem;
  width: 100%;
}

/* Reviews slider cards */
section.reviews {
  background: #fff;
  padding: 8rem 0;
}

section.reviews .f-title {
  margin-bottom: 3.5rem;
}

section.reviews .swiper-slide .item {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
  padding: 3.6rem 3rem;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

section.reviews .item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 2.4rem;
}

section.reviews .item .f-desc {
  color: #4a4f52;
  line-height: 1.5;
  margin-top: 1.8rem;
}

section.reviews .swiper-button-prev,
section.reviews .swiper-button-next {
  color: #c5c8ce;
  top: 50%;
  width: 42px;
  height: 42px;
}

/* Blog/news slider cards */
section.news {
  padding: 8rem 0;
}

section.news .container-middle {
  background: radial-gradient(circle at 12% 20%, #3f5f48 0%, #1f3727 80%);
  border-radius: 32px;
  padding: 4.8rem 3.2rem;
  color: #fff;
}

section.news .f-title {
  color: #fff;
  margin-bottom: 2rem;
}

section.news .item {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
  padding: 0 0 2.8rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

section.news .item .left img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 0 0;
}

section.news .item .right {
  padding: 2.4rem 2.6rem 0;
}

section.news .item .right .f-desc {
  color: #4a4f52;
  margin: 1.4rem 0 0;
}

section.news .swiper-button-prev,
section.news .swiper-button-next {
  color: #e5e7ea;
  top: 50%;
}

/* Blog grid cards (blogshort) */
section.blogshort .wrap .item,
section.blog .wrap .item {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  padding-bottom: 1.6rem;
  overflow: hidden;
}

section.blogshort .wrap .item img,
section.blog .wrap .item img {
  border-radius: 22px 22px 0 0;
  transition: transform 0.25s ease;
}

section.blogshort .wrap .item:hover img,
section.blog .wrap .item:hover img {
  transform: scale(1.02);
}

/* Contact/footer block */
section.footer,
section.kontakt {
  background: radial-gradient(
      circle at 20% 20%,
      rgba(49, 85, 63, 0.9) 0%,
      rgba(20, 38, 29, 0.9) 70%
    ),
    url("../static/images/footer-bg.jpg") center/cover no-repeat;
  color: #e7eced;
}

section.footer .f-title,
section.kontakt .f-title {
  color: #fff;
}

section.footer a,
section.kontakt a {
  color: #fff;
}

section.footer a:hover,
section.kontakt a:hover {
  color: #f9a12b;
}

/* Service text + portrait pairing */
section.standard .container-small {
  align-items: center;
  gap: 5%;
}

section.standard .img img {
  max-width: 520px;
  width: 100%;
  border-radius: 50%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

@media (max-width: 900px) {
  section.packets .wrap .item {
    width: calc(50% - 1.2rem);
  }

  section.news .container-middle {
    padding: 3.2rem 2.4rem;
  }

  section.standard .container-small {
    flex-direction: column-reverse;
  }
}

@media (max-width: 560px) {
  section.packets .wrap .item {
    width: 100%;
  }

  .main-btn,
  .main-btn-standard {
    width: 100%;
    text-align: center;
  }
}
