/* ===== HERO SECTION LAYOUT ===== */

.hero-section{
  background: #ffffff;
  padding: 0 0 28px;
}

.hero-container{
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-slider{
  width: 100%;
  aspect-ratio: 1919 / 525;
  border-radius: 18px;
}

/* немного поджать на маленьких экранах */
@media (max-width: 767px){
  .hero-container{
    padding: 0 16px;
  }

  .hero-section{
    padding-bottom: 22px;
  }

  .hero-slider{
    border-radius: 14px;
  }
}

/* ===== HERO SLIDER (fade) ===== */

.hero-slide-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 450ms ease;
}

.hero-img-visible{ opacity: 1; }
.hero-img-hidden{ opacity: 0; }


/* ===== HEADER SOCIALS ===== */

.header-socials{
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-socials a{
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.header-socials img{
  width: 100%;
  height: 100%;
  display: block;
}

.header-socials a:hover{
  transform: translateY(-2px);
  opacity: 0.8;
}

.header-socials a:active{
  transform: translateY(-1px);
}


/* ===== UTIL: hide horizontal scrollbar (mobile topbar) ===== */

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }


/* ===== ADVANTAGES ===== */

.advantages-section{
  padding: 56px 0 34px;
  background: #ffffff;
}

.advantages-container{
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.advantages-title{
  margin: 0 0 34px;
  font-weight: 800;
  font-size: clamp(32px, 4vw, 72px);
  line-height: 1.02;
  color: #3d2a21;
  letter-spacing: -0.03em;
}

.advantages-image{
  display: block;
  width: 100%;
  max-width: 1564px;
  height: auto;
  margin: 0 auto;
}


/* ===== CATEGORIES ===== */

.categories-section{
  padding: 28px 0 72px;
  background: #ffffff;
}

.categories-container{
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 24px;
}

.categories-title{
  margin: 0 0 20px;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
  color: #3d2a21;
}

.categories-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-card{
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f3eee9;
  text-decoration: none;
  border-radius: 0;
}

.category-card__image{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-card__overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(61, 42, 33, 0.52);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.category-card__name{
  text-align: center;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  color: #ffffff;
  transform: translateY(8px);
  transition: transform 0.28s ease;
}

.category-card:hover .category-card__image{
  transform: scale(1.04);
}

.category-card:hover .category-card__overlay{
  opacity: 1;
}

.category-card:hover .category-card__name{
  transform: translateY(0);
}

.categories-actions{
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.categories-more-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 152px;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: #7b4a30;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.categories-more-btn:hover{
  background: #6b3f29;
  transform: translateY(-1px);
}

.categories-more-btn:active{
  transform: translateY(0);
}


/* ===== RESPONSIVE ===== */

@media (max-width: 1279px){
  .categories-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px){
  .advantages-section{
    padding: 44px 0 24px;
  }

  .advantages-container,
  .categories-container{
    padding: 0 16px;
  }

  .advantages-title{
    margin-bottom: 24px;
  }

  .categories-section{
    padding: 22px 0 56px;
  }

  .categories-title{
    margin-bottom: 16px;
    font-size: 24px;
  }

  .categories-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .category-card__name{
    font-size: 18px;
  }

  .categories-actions{
    margin-top: 30px;
  }
}

@media (max-width: 479px){
  .categories-grid{
    grid-template-columns: 1fr;
  }
}

/* ===== BOTTOM PROMO BANNER ===== */

.promo-bottom{
  padding: 60px 0;
  background: #ffffff;
}

.promo-bottom-container{
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 24px;
}

.promo-bottom-banner{
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
}

.promo-bottom-image{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.promo-bottom-button{
  position: absolute;
  right: 7.6%;
  bottom: 19%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 62px;
  padding: 0 34px;
  border: 2px solid #7b543d;
  border-radius: 9999px;
  background: transparent;
  color: #7b543d;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s ease, transform .2s ease;
}

.promo-bottom-button:hover{
  opacity: .88;
  transform: translateY(-1px);
}

.promo-bottom-button:active{
  transform: translateY(0);
}

@media (max-width: 1024px){
  .promo-bottom{
    padding: 44px 0;
  }

  .promo-bottom-container{
    padding: 0 24px;
  }

  .promo-bottom-button{
    right: 6%;
    bottom: 14%;
    height: 52px;
    padding: 0 26px;
    font-size: 15px;
  }
}

@media (max-width: 767px){
  .promo-bottom{
    padding: 32px 0;
  }

  .promo-bottom-container{
    padding: 0 16px;
  }

  .promo-bottom-banner,
  .promo-bottom-image{
    border-radius: 14px;
  }

  .promo-bottom-button{
    left: 50%;
    right: auto;
    bottom: 8%;
    transform: translateX(-50%);
    height: 44px;
    padding: 0 18px;
    font-size: 13px;
  }

  .promo-bottom-button:hover{
    transform: translateX(-50%);
  }

  .promo-bottom-button:active{
    transform: translateX(-50%);
  }
}

/* ===== HOW ORDER ===== */

.how-order-section {
  background: #ffffff;
  padding: 100px 0 90px;
}

.how-order-container {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ВОТ ТУТ БЫЛ ТВОЙ ОСНОВНОЙ КОСЯК */
.how-order-title {
  font-size: 44px;
  font-weight: 800;
  color: #2A1A12;
  margin-bottom: 60px;
  letter-spacing: -0.02em;
}

/* картинка */
.how-order-image {
  width: 100%;
  display: flex;
  justify-content: center;
}

.how-order-image img {
  width: 100%;
  max-width: 1400px; /* ВАЖНО — ограничение как в макете */
  height: auto;
  display: block;
}

/* ===== FAQ IMAGES ===== */

.faq-section {
  background: #ffffff;
  padding: 95px 0 110px;
}

.faq-container {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 24px;
}

.faq-title {
  margin: 0 0 72px;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #2A1A12;
}

.faq-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 92px;
  row-gap: 22px;
  align-items: start;
}

.faq-grid img {
  display: block;
  width: 100%;
  height: 140px;          /* одинаковая высота */
  object-fit: contain;    /* не обрезает */
  object-position: center;
  justify-self: stretch;
}

/* планшет */
@media (max-width: 1200px) {
  .faq-section {
    padding: 72px 0 88px;
  }

  .faq-title {
    margin-bottom: 56px;
    font-size: 32px;
  }

  .faq-grid {
    max-width: 100%;
    column-gap: 40px;
    row-gap: 18px;
  }

  .faq-grid img {
    height: 130px;
  }
}

/* мобилка */
@media (max-width: 767px) {
  .faq-section {
    padding: 56px 0 64px;
  }

  .faq-container {
    padding: 0 16px;
  }

  .faq-title {
    margin: 0 0 32px;
    font-size: 28px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .faq-grid img {
    height: auto;
  }
}

/* ===== CONTACT BANNER ===== */

.contact-banner-section {
  background: #ffffff;
  padding: 0;
}

.contact-banner-container {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 24px;
}

.contact-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

/* Фон сам задаёт высоту секции, как у верхних баннеров */
.contact-banner-bg {
  display: block;
  width: 100%;
  height: auto;
}

/* затемнение */
.contact-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(139, 106, 82, 0.78) 0%,
    rgba(139, 106, 82, 0.38) 20%,
    rgba(139, 106, 82, 0.10) 50%,
    rgba(139, 106, 82, 0.38) 80%,
    rgba(139, 106, 82, 0.78) 100%
  );
  pointer-events: none;
}

/* Весь контент сидит поверх баннера и масштабируется вместе с ним */
.contact-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Левая колонка */
.contact-info-wrap {
  position: absolute;
  left: 5.1%;
  top: 13.5%;
  width: 28%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Правая колонка */
.contact-form-wrap {
  position: absolute;
  right: 5.1%;
  top: 13.5%;
  width: 28%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Заголовки */
.contact-block-title {
  margin: 0 0 clamp(12px, 1.2vw, 24px);
  text-align: center;
  font-size: clamp(18px, 2.15vw, 31px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #3d2418;
}

/* Карточки */
.contact-card,
.contact-form-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: clamp(14px, 1.5vw, 24px);
}

/* Левая карточка */
.contact-card {
  padding:
    clamp(14px, 1.45vw, 22px)
    clamp(14px, 1.45vw, 20px)
    clamp(16px, 1.55vw, 24px);
}

.contact-card-text {
  margin: 0;
  text-align: center;
  font-size: clamp(10px, 1.05vw, 18px);
  line-height: 1.34;
  color: #5a3b2c;
}

.contact-card-text--top {
  margin-bottom: clamp(12px, 1.4vw, 24px);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vw, 18px);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: clamp(8px, 0.9vw, 12px);
}

.contact-item-icon {
  width: clamp(20px, 2.2vw, 34px);
  height: clamp(20px, 2.2vw, 34px);
  flex: 0 0 clamp(20px, 2.2vw, 34px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-item-text {
  font-size: clamp(10px, 1vw, 17px);
  line-height: 1.25;
  color: #4b2f23;
}

.contact-socials {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 1.2vw, 18px);
  margin-top: clamp(14px, 1.7vw, 28px);
}

.contact-social {
  width: clamp(22px, 2.45vw, 38px);
  height: clamp(22px, 2.45vw, 38px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.contact-social img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-social:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

/* Правая карточка */
.contact-form-card {
  padding:
    clamp(14px, 1.7vw, 30px)
    clamp(14px, 1.45vw, 24px)
    clamp(14px, 1.5vw, 26px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vw, 14px);
  width: 100%;
}

.contact-input {
  width: 100%;
  height: clamp(28px, 3.6vw, 58px);
  border: none;
  outline: none;
  border-radius: clamp(8px, 1vw, 16px);
  background: #ffffff;
  padding: 0 clamp(10px, 1vw, 16px);
  font-size: clamp(10px, 0.95vw, 15px);
  color: #4b2f23;
  box-sizing: border-box;
}

.contact-input::placeholder {
  color: #8f8b87;
  opacity: 1;
}

.contact-textarea {
  height: clamp(28px, 3.6vw, 58px);
  padding-top: clamp(8px, 1vw, 18px);
  resize: none;
}

.contact-submit-btn {
  width: 100%;
  height: clamp(26px, 3vw, 48px);
  margin-top: clamp(8px, 1.4vw, 20px);
  border: none;
  border-radius: clamp(4px, 0.5vw, 6px);
  background: linear-gradient(90deg, #4c2414 0%, #a35e37 100%);
  color: #ffffff;
  font-size: clamp(10px, 1vw, 16px);
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-submit-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.contact-submit-btn:active {
  transform: translateY(0);
}

/* ===== ADAPTIVE ===== */

@media (max-width: 900px) {
  .contact-banner-container {
    padding: 0 16px;
  }

  .contact-banner {
    border-radius: 18px 18px 0 0;
  }

  .contact-banner-bg {
    min-height: 860px;
    object-fit: cover;
  }

  .contact-banner-overlay {
    position: absolute;
    inset: 0;
    padding: 28px 16px 24px;
    display: grid;
    align-content: start;
    row-gap: 28px;
  }

  .contact-info-wrap,
  .contact-form-wrap {
    position: static;
    width: 100%;
  }

  .contact-block-title {
    font-size: 28px;
    margin-bottom: 14px;
  }

  .contact-card,
  .contact-form-card {
    max-width: 100%;
    border-radius: 18px;
  }

  .contact-card {
    padding: 18px 14px 22px;
  }

  .contact-form-card {
    padding: 20px 14px 20px;
  }

  .contact-card-text {
    font-size: 16px;
  }

  .contact-item-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .contact-item-text {
    font-size: 15px;
  }

  .contact-social {
    width: 34px;
    height: 34px;
  }

  .contact-input {
    height: 52px;
    font-size: 14px;
    border-radius: 14px;
  }

  .contact-textarea {
    height: 52px;
    padding-top: 16px;
  }

  .contact-submit-btn {
    height: 46px;
    margin-top: 14px;
    font-size: 15px;
  }
}

/* ===== FOOTER ===== */

.footer {
  margin-top: 0;
}

.footer-container {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 24px;
}

/* сам баннер */
.footer-banner {
  position: relative;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
  height: 260px;
  background: url("/static/img/footer-bg.png") center/cover no-repeat;
}

/* затемнение */
.footer-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(60, 30, 20, 0.9) 0%,
    rgba(60, 30, 20, 0.7) 30%,
    rgba(60, 30, 20, 0.4) 60%,
    rgba(60, 30, 20, 0.9) 100%
  );
}

/* контент */
.footer-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  align-items: center;
  padding: 40px 80px;
  color: #fff;
}

/* левая */
.footer-title {
  font-size: 26px;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 14px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.footer-features {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 30px;
}

.footer-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.footer-feature img {
  width: 16px;
  opacity: 0.9;
}

/* центр */
.footer-subtitle {
  font-size: 16px;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
  font-size: 14px;
}

.footer-links a:hover {
  opacity: 1;
}

/* контакты */
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-contact-item img {
  width: 16px;
  height: 16px;
  display: block;
}

/* соцсети */
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.footer-socials img {
  width: 28px;
  height: 28px;
  display: block;
}

/* нижняя полоса */
.footer-bottom {
  display: none;
}

@media (max-width: 900px) {
  .footer-banner {
    border-radius: 0 0 18px 18px;
  }
}