:root {
  --bg: #f8f5f1;
  --card: #fffefd;
  --text: #2f2419;
  --muted: #857869;
  --main-accent: #FFD39F;
  --main-accent-hover: #ffc07f;
  --accent-dark: #a87e39;
  --badge-green: #bdd184;
  --badge-blue: #8bc7e1;
  --badge-berry: #ffb4c8;
  --badge-hit: #f88e3d;
  --border: rgba(207, 189, 164, 0.17);
  --shadow: 0 10px 38px rgba(200, 151, 89, 0.09);
  --radius-lg: 26px;
}
body { margin:0; font-family:Arial,sans-serif; background:var(--bg); color:var(--text);}
.container {width:min(1200px,96vw); margin:0 auto;}
.app-header {position:sticky;top:0;padding:0;margin:0;background:var(--bg);z-index:99;}
.app-header__inner {display:flex;align-items:center;min-height:70px;gap:12px;}
.logo {font-size:28px;font-weight:950;letter-spacing:-.06em;color:var(--text);text-decoration:none;}
.logo span {color:var(--badge-hit);}
.main-nav {margin-left:auto;display:flex;gap:16px;}
.main-nav a {color:var(--muted);text-decoration:none;
  font-weight:900;font-size:15px;padding:7px 14px;border-radius:90px;transition:.18s;}
.main-nav a:hover {background:var(--main-accent);color:var(--accent-dark);}
.header-cart-btn{display:inline-flex;align-items:center;gap:8px; border:none; border-radius:999px;
  background:var(--main-accent); color:var(--accent-dark); padding:13px 18px;
  font-size:15px;font-weight:900;transition:.18s;}
.header-cart-btn em{background: #ffe0a8; border-radius:20px;min-width:22px;padding:2px 7px;}
.header-cart-btn:hover{background:var(--main-accent-hover);}
@media(max-width:670px){.main-nav{display:none;}}
.store-hero{padding:20px 0 32px;}
.hero__center{text-align:center;}
.store-hero h1{font-size:clamp(30px,6vw,56px);font-weight:950;letter-spacing:-.06em;margin:10px 0 10px;}
.store-hero p{font-size:18px;color:var(--muted);max-width:660px;margin:0 auto;}
@media(max-width:660px){.store-hero h1{font-size:32px}}
.filter-row{display:flex;flex-wrap:wrap;gap:11px 0;align-items:center;padding:0 0 18px 0;}
.filter-btn{
  background:#fff6ee;color:var(--accent-dark);
  font-weight:900;border:none;border-radius:38px;padding:8px 16px;
  margin-right:10px;font-size:13px;cursor:pointer;transition:.16s;
  border:1.5px solid #ecd6bb;
}
.filter-btn.active{background:var(--main-accent);color:var(--text);border:2px solid var(--badge-hit);}
@media(max-width:540px){.filter-row{gap:0 8px;flex-wrap:wrap;}}
.catalog-section{margin-bottom:70px}
.catalog-top{display:flex;gap:12px;align-items:center;}
.search-box{display:flex;align-items:center;width:min(400px,100%);
  padding:8px 20px;background:var(--card);border-radius:90px;border:1.5px solid var(--border);}
.search-box input{border:none;outline:none;background:transparent;width:100%;
  font-size:15px;font-weight:700;color:var(--text);}
.search-box input::placeholder{color:var(--muted);}
.products-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(268px,1fr));gap:18px;}
.product-card{
  display:flex;flex-direction:column;min-width:0;background:var(--card);
  border:1.5px solid var(--border); border-radius:var(--radius-lg);overflow:hidden;
  box-shadow:var(--shadow);transition:.18s;
}
.product-card:hover{transform:translateY(-2px);box-shadow:0 16px 38px rgba(200,151,89,.17);}
.product-card__image{height:170px;background:#f8efdc;position:relative;}
.product-card__image img{width:100%;height:100%;object-fit:cover;display:block;}
.product-badges{position:absolute;left:7px;top:7px;display:flex;gap:7px;z-index:10;}
.badge{
  padding:4px 12px;border-radius:28px;display:inline-block;
  font-size:12px;font-weight:900;letter-spacing:-.01em;margin-right:4px;color:#fff;}
.badge--hit{background:var(--badge-hit);}
.badge--sale{background:var(--badge-green);}
.badge--new{background:var(--badge-blue);}
.badge--glutenfree{background:var(--badge-berry);color:#924a6a;}
.product-card__body {flex:1;display:flex;flex-direction:column;padding:14px;}
.product-price {font-size:20px;font-weight:950;margin:0 0 8px;}
.product-title {font-size:12px;line-height:1.16;font-weight:900;margin:0 0 8px;}
.product-description{font-size:13px;color:var(--muted);line-height:1.32;margin-bottom:10px;}
.product-meta{display:flex;gap:5px;margin-top:auto;}
.product-meta span{background:#f3e0c6;border-radius:99px;padding:5px 10px;font-size:12px;color:var(--accent-dark);font-weight:800;}
.product-add-btn {
  position:absolute;right:13px;bottom:13px;width:45px;height:45px;
  background:var(--main-accent);color:var(--accent-dark);border-radius:50%;
  border:none;font-size:26px;font-weight:900;line-height:1;cursor:pointer;box-shadow:0 6px 16px rgba(255,211,159,.13);
  transition:.15s;
}
.product-add-btn:hover{background:var(--main-accent-hover);}
.empty-products{display:none;margin-top:20px;padding:45px 12px;text-align:center;
  border-radius:22px;background:var(--card);}
.empty-products.active{display:block;}
.empty-products h3{margin:10px 0 4px;font-size:22px;}
.empty-products p{margin:0;color:var(--muted);}
.cart-overlay {position:fixed;inset:0;z-index:98;background:rgba(0,0,0,0.34);
  opacity:0;visibility:hidden;transition:opacity .23s;}
.cart-overlay.active{opacity:1;visibility:visible;}
.cart-drawer {position:fixed;top:0;right:0;z-index:110;
  width:min(410px,100vw);height:100vh;display:flex;flex-direction:column;
  background:var(--card);box-shadow:-20px 0 56px rgba(0,0,0,0.09);
  transform:translateX(110%);
  transition:transform .24s;}
.cart-drawer.active{transform:none;}
.cart-drawer__header{padding:20px 20px 10px;display:flex;align-items:flex-start;justify-content:space-between;
  border-bottom:1.3px solid var(--border);}
.cart-drawer__header h3{margin:3px 0 0;font-size:28px;letter-spacing:-.06em}
.cart-close{width:40px;height:40px;border:none;border-radius:50%;background:var(--main-accent);
  color:var(--accent-dark);font-size:26px;line-height:1;}
.cart-drawer__items{max-height:34vh;padding:14px 10px 8px 18px;overflow-y:auto;}
.cart-empty{height:120px;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 2px;}
.cart-empty div{font-size:34px;}
.cart-empty h4{margin:0 0 8px;color:var(--text);font-size:20px;}
.cart-item{display:grid;grid-template-columns:68px 1fr;gap:10px;align-items:center;min-height:82px;padding:7px 0px;}
.cart-item__image{width:68px;height:68px;border-radius:14px;object-fit:cover;box-shadow:0 2px 12px #eee;}
.cart-item__content{min-width:0;}
.cart-item__title{
  font-size:13.7px;line-height:1.13;font-weight:900;margin:0 0 4px;}
.cart-item__badges{display:flex;gap:6px;margin-bottom:3px;}
.cart-item__badge{font-size:11.5px;font-weight:800;padding:2px 10px;border-radius:12px;}
.cart-item__badge--hit{background:var(--badge-hit);color:#fff;}
.cart-item__badge--sale{background:var(--badge-green);color:#344e36;}
.cart-item__badge--new{background:var(--badge-blue);}
.cart-item__badge--glutenfree{background:var(--badge-berry);color:#924a6a;}
.cart-item__price{margin:0 0 6px;color:var(--muted);font-size:12.6px;}
.cart-item__bottom{display:flex;align-items:center;justify-content:space-between;gap:7px;}
.qty{display:inline-flex;align-items:center;gap:2px;padding:3px;
  background:#fff0e0;border-radius:999px;}
.qty button{width:24px;height:24px;border:0;background:#fff; border-radius:50%;
  font-size:16px;font-weight:900;color:var(--accent-dark);}
.qty span{min-width:15px;text-align:center;font-size:13px;font-weight:900;}
.remove-item{background:none;border:none;color:#d84a4a;font-size:12.5px;font-weight:900;}
.cart-drawer__footer{min-height:0;overflow-y:auto;padding:14px 18px 18px;border-top:1.3px solid var(--border);}
.cart-total{display:flex;justify-content:space-between;align-items:center;padding:4px 0 13px 0;border-bottom:1.3px solid var(--border);}
.cart-total span{color:var(--muted);font-weight:900;}
.cart-total strong{font-size:23px;}
.order-form{margin-top:6px;padding:10px;background: #fff8e6; border-radius:18px;}
.order-form h4{margin:0 0 9px;font-size:15px;}
.order-form label{display:block;margin-bottom:9px;}
.order-form label span {display:block;margin-bottom:4px;font-size:12px;font-weight:800;}
.order-form input,
.order-form textarea{width:100%;border-radius:12px;border:1.3px solid var(--border);background:#fff;
  color:var(--text);padding:8px 10px;font-size:13px;}
.order-form textarea {min-height:55px;max-height:100px;resize:vertical;}
.order-form input:focus,
.order-form textarea:focus {border-color:var(--main-accent);box-shadow:0 0 0 2px #ffd39f3b;}
.checkout-btn{width:100%;min-height:48px;margin-top:8px;background:var(--main-accent);
  color:var(--accent-dark);border:none;border-radius:999px;font-size:15px;font-weight:900;}
.checkout-btn:hover{background:var(--main-accent-hover);}
.side-cart__policy{margin:9px 0 0;font-size:11px;color:var(--muted);}
.side-cart__policy a{color: var(--accent-dark);text-decoration:underline;}
.mobile-cart-btn{display:none;position:fixed;right:16px;bottom:16px;z-index:90;
  min-width:62px;height:51px;border:none;border-radius:999px;background:var(--main-accent);color:var(--accent-dark);font-size:22px;font-weight:900;box-shadow:0 8px 24px #ead78a60;}
.mobile-cart-btn span{font-size:16px;}
.toast{
  position:fixed;left:50%;bottom:28px;z-index:300;transform:translateX(-50%) scale(.8);padding:13px 15px;border-radius:90px;
  background:var(--text);color:#fff;font-size:14px;font-weight:900;opacity:0;visibility:hidden;transition:.2s;}
.toast.active{opacity:1;visibility:visible;transform:translateX(-50%) scale(1);}
@media (max-width:950px){
  .products-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .cart-drawer{width:100vw;}
}
@media (max-width:560px){
  .container{width:min(100%,98vw);}
  .app-header__inner{min-height:54px;}
  .logo{font-size:19px;}
  .header-cart-btn{display:none;}
  .mobile-cart-btn{display:inline-flex;align-items:center;justify-content:center;}
  .store-hero h1{font-size:20px;}
  .store-hero p{font-size:13.2px;}
  .product-card{border-radius:15px;}
  .product-card__image{height:123px;}
}

/* ---- МОДАЛКА: карточка товара ---- */
.product-modal-overlay {
  position: fixed; inset: 0; background: radial-gradient(ellipse at 60% 45%, rgba(0,0,0,0.43) 63%, rgba(0,0,0,0.78) 120%);
  opacity: 0; visibility: hidden; z-index: 200; transition: opacity .28s cubic-bezier(.22,.61,.36,1),visibility .18s;
  pointer-events: none; backdrop-filter: blur(2px);
}
.product-modal-overlay.active { opacity: 1; visibility: visible; pointer-events:auto;}

.product-modal {
  position: fixed;
  z-index: 210;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: none;
  opacity: 0;
  transition: opacity .24s cubic-bezier(.22,.61,.36,1);
}
.product-modal.active {
  opacity: 1; pointer-events: auto;
}
.product-modal__inner {
  position: relative;
  background: #fffefd;
  border-radius: 34px;
  max-width: 1100px;
  min-width: 340px;
  width: 99vw; max-height:96vh;
  box-shadow: 0 16px 70px 13px rgba(100,80,54,0.16);
  padding: 0; overflow:auto;
  display: flex; flex-direction: column;
  animation: modal-zoom-in .35s cubic-bezier(.22,.61,.36,1);
}
@keyframes modal-zoom-in {
  0% { opacity: 0; transform: scale(.86) translateY(45px);}
  55%{ transform: scale(1.01) translateY(-8px);}
  90%{ transform: scale(.98) translateY(2px);}
  100% { opacity:1; transform: scale(1) translateY(0);}
}
.product-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  background: #fff0e0;
  color: #916728;
  border-radius: 50%;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 28px; box-shadow: 0 2px 12px #dac08c14;
  z-index: 21;
  transition: background .14s, color .13s;
}
.product-modal__close:hover {background: #ffd39f; color: #946500;}
@media (min-width:700px) {
  .product-modal__body {
    display: flex; gap: 80px; align-items: flex-start;
    padding: 70px 75px 55px 75px;
    position:relative;
  }
  .product-modal__image-section{
    position:relative;flex:0 0 375px;min-width:375px;min-height:500px;display:flex;justify-content:center;align-items:center;
  }
  .product-modal__image {
    background: #f3e5b6;
    border-radius: 28px;
    box-shadow: 0 3px 16px #fdefaa19;
    overflow:hidden;
    position:relative;
    width: 375px;
    height: 500px;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .product-modal__image img {
    width: 100%; height: 100%;
    object-fit: cover;
    aspect-ratio: 3 / 4;
    border-radius: 26px;
    box-shadow: 0 10px 44px #cca17716;
    background: #f5ecdb;
    transition: box-shadow .25s;
    display:block;
  }
  .product-modal__image::after{
    content:"";
    position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;
    border-radius:inherit;
    box-shadow:inset 0 0 94px 0 rgba(59,37,18,0.13);
    transition:.16s;
  }
  .product-modal__info { flex:1; display:flex;flex-direction:column;}
  .product-modal__title { margin:0 0 22px 0; font-size: 34px; font-weight: 950; line-height: 1.09; letter-spacing: -0.03em;}
  .product-modal__desc {margin: 0 0 17px; font-size: 18px; color: #87744f;}
  .product-modal__props { font-size: 16px; color: #7b684c; margin-bottom: 22px;}
  .product-modal__price { font-size: 29px; font-weight: bold; margin-bottom: 21px;}
  .product-modal__add {
    width: 244px; height: 60px; background: var(--main-accent); color: var(--accent-dark);
    border: none; border-radius: 999px;
    font-size: 18px; font-weight: 900; cursor: pointer; transition:.13s;
    white-space:nowrap;
    box-shadow:0 4px 18px #ffd39f19;
    margin-top:14px;
    display:block;
  }
  .product-modal__add:hover { background: var(--main-accent-hover);}
}
/* --- Мобильный --- */
@media (max-width:699px) {
  .product-modal__inner {max-width:99vw; border-radius:17px;}
  .product-modal__body {flex-direction:column; gap:12px;align-items: stretch; padding:20px 6px 10px;}
  .product-modal__image-section,
  .product-modal__image {
    width:90vw; height:auto; min-width:0; min-height:0; max-width:95vw; margin:0 auto;
    background: #f3e5b6; border-radius:18px;display:flex;align-items:center;justify-content:center;}
  .product-modal__image img{
    width:100%; height:auto; max-width:90vw; max-height:120vw; min-width: 0;
    background: #f5ecdb; border-radius:16px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display:block;
  }
  .product-modal__arrow{display:none;}
  .product-modal__close {top: 8px; right: 10px; width: 39px; height: 39px; font-size:24px;}
  .product-modal__add {
    font-size: 16px;
    background: var(--main-accent);
    color: var(--accent-dark);
    border-radius:999px;
    width:100%;height:48px;
    border:none;
    font-weight:900;
    margin:12px 0 0 0;
    box-shadow:0 2px 12px #ecc17a24;
    white-space:nowrap;
    display:block;
  }
  .product-modal__add:hover {background:var(--main-accent-hover);}
  .product-modal__title {font-size:17px;}
  .product-modal__price {font-size:21px;}
}
.product-modal__badges { margin-bottom: 7px;}
.product-modal__desc {margin-bottom: 6px;}
.product-modal__props {margin-bottom: 12px;}
.product-modal__add{margin-top:10px;}
.product-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  background: #f8efdc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}
@media (max-width:560px) {
  .product-card__image {
    /* для мобильных чуть менее высокие, но всё ещё 3:4 */
    aspect-ratio: 3 / 4;
    min-height: 120px;
  }
}
.filter-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 12px;
  padding: 4px 8px 8px 8px;
  margin-bottom: 16px;
  scrollbar-width: thin;
  background: #fffbe6;
  z-index: 20;

  position: sticky;
  top: 95px; /* подбери под свою высоту шапки+лого */
  box-shadow: 0 3px 8px -4px #ffe7cc44;
}
.filter-row::-webkit-scrollbar {
  height: 6px;
  background: transparent;
}
.filter-row::-webkit-scrollbar-thumb {
  background: #ffe6c5;
  border-radius: 3px;
}
.filter-row .filter-btn {
  flex: 0 0 auto;
}
@media (max-width: 600px) {
  .filter-row {
    gap: 8px;
  }
}
.filter-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 12px;
  padding: 4px 8px 8px 8px;
  margin-bottom: 16px;
  scrollbar-width: thin;
}

@media (max-width: 600px) {
  .filter-row {
    position: sticky;
    top: 95px; /* измени под вашу высоту шапки с логотипом! */
    z-index: 20;
    background: #fffbe6;
    box-shadow: 0 3px 8px -4px #ffe7cc44;
  }
}
.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: .18s;
  /* добавь: */
  max-width: 340px;        /* Ограничивает max ширину карточки */
  width: 100%;             /* Позволяет растягиваться в пределах grid-колонки */
  margin: 0 auto;          /* Центрирует карточку внутри grid, если она одна */
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 18px;
  justify-items: center;
}

@media (max-width: 700px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .container {
    padding-left: 5px;
    padding-right: 5px;
  }
}
.product-modal__desc {
  white-space: pre-line;
  line-height: 1.5;
  font-size: 15px;
  color: #444;
}
/* ========================= */
/* ФУТЕР */
/* ========================= */

.site-footer {
  margin-top: 70px;
  padding: 34px 20px 22px;
  background: linear-gradient(
    180deg,
    rgba(255, 246, 235, 0.95),
    rgba(255, 236, 247, 0.95)
  );
  border-top: 1px solid rgba(236, 214, 187, 0.85);
}

.site-footer__container {
  max-width: 1180px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 210px;
  height: 58px;

  padding: 0;
  margin: 0;

  text-decoration: none;

  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.site-footer__logo img {
  display: block;

  max-width: 190px;
  max-height: 56px;

  width: auto;
  height: auto;

  object-fit: contain;

  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.site-footer__nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.site-footer__nav a {
  color: #5d4037;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;

  transition: color 0.2s ease;
}

.site-footer__nav a:hover {
  color: #ff7fb2;
}

.site-footer__contacts {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__contacts a {
  color: #5d4037;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;

  transition: color 0.2s ease;
}

.site-footer__contacts a:hover {
  color: #ff7fb2;
}

.site-footer__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 46px;
  padding: 0 22px;

  border-radius: 999px;

  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;

  background: linear-gradient(135deg, #ff9f5a, #ff7fb2);
  box-shadow: 0 10px 22px rgba(255, 127, 178, 0.28);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.site-footer__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(255, 127, 178, 0.36);
}

.site-footer__bottom {
  max-width: 1180px;
  margin: 26px auto 0;
  padding-top: 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  border-top: 1px solid rgba(236, 214, 187, 0.75);
}

.site-footer__bottom p {
  margin: 0;

  color: rgba(93, 64, 55, 0.75);
  font-size: 14px;
  font-weight: 600;
}

.site-footer__bottom a {
  color: rgba(93, 64, 55, 0.75);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.site-footer__bottom a:hover {
  color: #ff7fb2;
}

@media (max-width: 780px) {
  .site-footer {
    margin-top: 50px;
    padding: 30px 16px 20px;
  }

  .site-footer__container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 18px;
  }

  .site-footer__logo {
    width: 180px;
    height: 52px;
  }

  .site-footer__logo img {
    max-width: 165px;
    max-height: 50px;
  }

  .site-footer__nav {
    justify-content: center;
    gap: 16px;
  }

  .site-footer__contacts {
    justify-content: center;
    gap: 12px;
  }

  .site-footer__button {
    width: 100%;
    max-width: 260px;
  }

  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .site-footer__nav {
    flex-direction: column;
    gap: 10px;
  }

  .site-footer__contacts {
    flex-direction: column;
    gap: 8px;
  }

  .site-footer__logo {
    width: 165px;
    height: 48px;
  }

  .site-footer__logo img {
    max-width: 150px;
    max-height: 46px;
  }
}
/* ========================= */
/* ФУТЕР ПО ШИРИНЕ КАК ХЕДЕР */
/* ========================= */

.site-footer {
  width: min(1200px, 96vw) !important;
  margin-left: auto !important;
  margin-right: auto !important;

  box-sizing: border-box !important;
  border-radius: 0 !important;
}

.site-footer__container {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

.site-footer__bottom {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

@media (max-width: 560px) {
  .site-footer {
    width: min(100%, 98vw) !important;
  }
}
.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 9999;

  max-width: 980px;
  margin: 0 auto;

  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  padding: 18px 20px;
  border-radius: 22px;

  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 50px rgba(80, 40, 55, 0.18);
  border: 1px solid rgba(217, 79, 124, 0.16);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cookie-banner.active {
  display: flex;
}

.cookie-banner__text {
  display: flex;
  flex-direction: column;
  gap: 5px;

  font-size: 14px;
  line-height: 1.45;
  color: #4b3b40;
}

.cookie-banner__text strong {
  font-size: 16px;
  color: #2d2226;
}

.cookie-banner__text span {
  color: #6f5a62;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner__link {
  font-size: 14px;
  color: #d94f7c;
  text-decoration: none;
  white-space: nowrap;
}

.cookie-banner__link:hover {
  text-decoration: underline;
}

.cookie-banner__btn {
  border: 0;
  outline: none;
  cursor: pointer;

  padding: 12px 18px;
  border-radius: 999px;

  background: #d94f7c;
  color: #ffffff;

  font-size: 14px;
  font-weight: 700;

  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 22px rgba(217, 79, 124, 0.28);
}

.cookie-banner__btn:hover {
  background: #c9436f;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(217, 79, 124, 0.35);
}

.cookie-banner__btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;

    flex-direction: column;
    align-items: flex-start;

    padding: 16px;
    border-radius: 18px;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: space-between;
  }

  .cookie-banner__btn {
    padding: 12px 20px;
  }
}
/* ---------- Privacy page premium ---------- */

html {
  scroll-behavior: smooth;
}

.privacy-page-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(217, 79, 124, 0.10), transparent 30%),
    radial-gradient(circle at 90% 5%, rgba(255, 183, 197, 0.16), transparent 28%),
    linear-gradient(180deg, #fffafc 0%, #ffffff 100%);
  color: #3f2f35;
}

.privacy-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 250, 252, 0.86);
  border-bottom: 1px solid rgba(217, 79, 124, 0.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.privacy-header__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.privacy-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #2f2328;
  text-decoration: none;
}

.privacy-logo__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #d94f7c, #f07aa0);
  box-shadow: 0 10px 24px rgba(217, 79, 124, 0.22);
  font-size: 22px;
}

.privacy-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.privacy-logo__text strong {
  font-size: 18px;
  font-weight: 800;
}

.privacy-logo__text small {
  margin-top: 3px;
  font-size: 12px;
  color: #8b6f78;
}

.privacy-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.privacy-nav a {
  color: #5d4650;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.privacy-nav a:hover {
  color: #d94f7c;
}

.privacy-main {
  padding-bottom: 70px;
}

.privacy-hero {
  padding: 42px 0 22px;
}

.privacy-hero__box {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  display: flex;
  align-items: center;
  border-radius: 34px;
  padding: 38px;
  background:
    radial-gradient(circle at 84% 20%, rgba(255, 255, 255, 0.22), transparent 20%),
    linear-gradient(135deg, #d94f7c 0%, #f07aa0 54%, #ff9db8 100%);
  box-shadow: 0 24px 70px rgba(217, 79, 124, 0.26);
  color: #ffffff;
}

.privacy-hero__box::before {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.privacy-hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.privacy-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.95;
}

.privacy-back:hover {
  text-decoration: underline;
}

.privacy-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.privacy-hero h1 {
  margin: 0 0 14px;
  max-width: 760px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.privacy-hero p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 17px;
  line-height: 1.75;
}

.privacy-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.privacy-hero__meta span {
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 700;
}

.privacy-hero__decor {
  position: absolute;
  right: 36px;
  top: 42px;
  z-index: 1;
  display: grid;
  gap: 16px;
  opacity: 0.9;
}

.privacy-hero__decor span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 28px;
  transform: rotate(8deg);
}

.privacy-hero__decor span:nth-child(2) {
  transform: translateX(-30px) rotate(-8deg);
}

.privacy-hero__decor span:nth-child(3) {
  transform: translateX(8px) rotate(12deg);
}

.privacy-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 18px;
}

.privacy-toc {
  position: sticky;
  top: 96px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(217, 79, 124, 0.10);
  box-shadow: 0 14px 36px rgba(87, 52, 61, 0.07);
}

.privacy-toc__title {
  margin-bottom: 14px;
  color: #2f2328;
  font-size: 15px;
  font-weight: 800;
}

.privacy-toc a {
  display: block;
  padding: 9px 0;
  color: #6f5861;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
  border-bottom: 1px solid rgba(217, 79, 124, 0.08);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.privacy-toc a:last-child {
  border-bottom: 0;
}

.privacy-toc a:hover {
  color: #d94f7c;
  padding-left: 5px;
}

.privacy-content {
  display: grid;
  gap: 18px;
}

.privacy-card {
  scroll-margin-top: 100px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 26px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(217, 79, 124, 0.10);
  box-shadow: 0 14px 38px rgba(87, 52, 61, 0.065);
}

.privacy-card__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #fff3f7;
  color: #d94f7c;
  font-size: 25px;
}

.privacy-card h2 {
  margin: 0 0 12px;
  color: #2f2328;
  font-size: 22px;
  line-height: 1.25;
}

.privacy-card p,
.privacy-card li {
  color: #5a454d;
  font-size: 15px;
  line-height: 1.85;
}

.privacy-card p {
  margin: 0;
}

.privacy-card p + p {
  margin-top: 12px;
}

.privacy-list {
  margin: 14px 0 0;
  padding-left: 20px;
}

.privacy-list li + li {
  margin-top: 7px;
}

.privacy-note {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff3f7;
  border: 1px solid rgba(217, 79, 124, 0.14);
  color: #7a4e5f;
  font-size: 14px;
  line-height: 1.7;
}

.privacy-card--accent {
  background:
    radial-gradient(circle at top right, rgba(217, 79, 124, 0.08), transparent 34%),
    linear-gradient(180deg, #fff7fa 0%, #ffffff 100%);
  border-color: rgba(217, 79, 124, 0.16);
}

.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.privacy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: #d94f7c;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(217, 79, 124, 0.28);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.privacy-btn:hover {
  background: #c9436f;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(217, 79, 124, 0.35);
}

.privacy-btn--light {
  background: #ffffff;
  color: #d94f7c;
  border: 1px solid rgba(217, 79, 124, 0.18);
  box-shadow: none;
}

.privacy-btn--light:hover {
  background: #fff3f7;
  color: #c9436f;
}

.privacy-footer {
  padding: 26px 0 38px;
  border-top: 1px solid rgba(217, 79, 124, 0.08);
  background: rgba(255, 250, 252, 0.72);
}

.privacy-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.privacy-footer p {
  margin: 0;
  color: #8b6f78;
  font-size: 14px;
}

.privacy-footer__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.privacy-footer__links a {
  color: #d94f7c;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.privacy-footer__links a:hover {
  text-decoration: underline;
}

@media (max-width: 992px) {
  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .privacy-toc {
    position: relative;
    top: auto;
  }
}

@media (max-width: 768px) {
  .privacy-header__inner {
    min-height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
    align-items: flex-start;
    flex-direction: column;
  }

  .privacy-nav {
    width: 100%;
    gap: 14px;
    flex-wrap: wrap;
  }

  .privacy-hero {
    padding: 20px 0 14px;
  }

  .privacy-hero__box {
    min-height: auto;
    padding: 24px 18px;
    border-radius: 24px;
  }

  .privacy-hero__decor {
    display: none;
  }

  .privacy-hero h1 {
    font-size: 32px;
  }

  .privacy-hero p {
    font-size: 15px;
  }

  .privacy-layout {
    gap: 16px;
  }

  .privacy-toc {
    padding: 18px;
    border-radius: 20px;
  }

  .privacy-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 16px;
    border-radius: 22px;
  }

  .privacy-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    font-size: 23px;
  }

  .privacy-card h2 {
    font-size: 20px;
  }

  .privacy-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* ---------- Disable drag and selection ---------- */
img,
a,
button,
.card,
.product-card,
.cake-card {
  -webkit-user-drag: none;
  user-drag: none;
}

body {
  -webkit-user-select: none;
  user-select: none;
}

input,
textarea {
  -webkit-user-select: text;
  user-select: text;
}
/* ---------- Catalog banners: mobile + desktop ---------- */

.catalog-category-banner {
  grid-column: 1 / -1;
  justify-self: stretch;

  display: block;
  width: 100%;
  max-width: 100%;

  aspect-ratio: 21 / 9;

  border-radius: 28px;
  overflow: hidden;

  background: #f4f4f4;
  box-shadow: 0 14px 34px rgba(200, 151, 89, 0.15);

  text-decoration: none;
  cursor: pointer;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.catalog-category-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(200, 151, 89, 0.2);
}

.catalog-category-banner:active {
  transform: scale(0.99);
}

.catalog-category-banner picture {
  display: block;
  width: 100%;
  height: 100%;
}

.catalog-category-banner img,
.catalog-category-banner video {
  display: block;

  width: 100%;
  height: 100%;

  border-radius: 28px;

  object-fit: cover;
  object-position: center;
}

@media (max-width: 768px) {
  .catalog-category-banner {
    aspect-ratio: 1080 / 608;
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(200, 151, 89, 0.12);
  }

  .catalog-category-banner:hover {
    transform: none;
  }

  .catalog-category-banner img,
  .catalog-category-banner video {
    border-radius: 22px;
  }
}

/* ---------- Catalog banners fixes for product grid ---------- */

.products-grid .catalog-category-banner {
  max-width: 100%;
  margin: 4px 0 8px;
}

@media (min-width: 769px) {
  .products-grid .catalog-category-banner {
    min-height: 260px;
  }
}

@media (max-width: 768px) {
  .products-grid .catalog-category-banner {
    margin: 2px 0 6px;
  }
}

@media (max-width: 560px) {
  .catalog-category-banner {
    border-radius: 18px;
  }

  .catalog-category-banner img,
  .catalog-category-banner video {
    border-radius: 18px;
  }
}
/* ---------- Уменьшение логотипа ---------- */
header img,
.header img,
.site-header img,
.logo img,
.logo__img,
.header__logo img,
.header-logo img,
.site-logo img {
  width: 300px !important;
  max-width: 300px !important;
  height: auto !important;
  object-fit: contain !important;
}

/* ---------- Мобильная версия ---------- */
@media (max-width: 768px) {
  header img,
  .header img,
  .site-header img,
  .logo img,
  .logo__img,
  .header__logo img,
  .header-logo img,
  .site-logo img {
    width: 300px !important;
    max-width: 300px !important;
    height: auto !important;
  }

  header,
  .header,
  .site-header {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .logo,
  .header__logo,
  .header-logo,
  .site-logo {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
.price-unit {
  font-size: inherit;
  font-weight: 700;
  color: inherit;
  opacity: 1;
  margin-left: 4px;
}
.product-modal__price {
  font-weight: 700;
}

.price-unit {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  opacity: 1;
  margin-left: 4px;
}

@media (max-width: 768px) {
  .product-modal__price {
    font-weight: 700;
  }
}
.price-unit {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  opacity: 1;
  margin-left: 4px;
}
/* ========================= */
/* ABOUT PAGE — YANDEX FOOD STYLE */
/* ========================= */

.about-page {
  background: #f8f5f1;
}

.about-food-style {
  padding-bottom: 20px;
}

.main-nav a.is-active {
  background: var(--main-accent);
  color: var(--accent-dark);
}

.about-header-order {
  text-decoration: none;
}

.yf-hero {
  padding: 22px 0 18px;
}

.yf-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 360px;
  gap: 18px;
  align-items: stretch;
}

.yf-hero__content {
  min-height: 380px;
  padding: 42px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  border-radius: 34px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.55), transparent 22%),
    linear-gradient(135deg, #ffe0b7 0%, #ffd39f 42%, #ffc4d8 100%);

  box-shadow: var(--shadow);
  border: 1.5px solid rgba(236, 214, 187, 0.75);
}

.yf-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;

  padding: 8px 13px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.62);
  color: var(--accent-dark);

  font-size: 13px;
  font-weight: 950;
}

.yf-hero h1 {
  max-width: 780px;
  margin: 18px 0 14px;

  color: var(--text);
  font-size: clamp(34px, 6vw, 64px);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.yf-hero p {
  max-width: 650px;
  margin: 0;

  color: rgba(47, 36, 25, 0.74);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 800;
}

.yf-hero__actions,
.yf-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.yf-btn {
  min-height: 50px;
  padding: 0 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  font-size: 15px;
  font-weight: 950;
  text-decoration: none;

  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.yf-btn--primary {
  background: var(--text);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(47, 36, 25, 0.18);
}

.yf-btn--primary:hover {
  transform: translateY(-2px);
  background: #1f1710;
}

.yf-btn--secondary {
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
}

.yf-btn--secondary:hover {
  transform: translateY(-2px);
  background: #ffffff;
}

.yf-hero__side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}

.yf-hero-card {
  padding: 26px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  border-radius: 34px;
  background: var(--card);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
}

.yf-hero-card--main {
  background:
    radial-gradient(circle at 80% 15%, rgba(255, 211, 159, 0.45), transparent 30%),
    #fffefd;
}

.yf-hero-card span {
  margin-bottom: auto;
  font-size: 42px;
}

.yf-hero-card strong {
  margin-top: 22px;

  color: var(--text);
  font-size: 23px;
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.yf-hero-card p {
  margin: 8px 0 0;

  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

.yf-section {
  padding: 9px 0;
}

.yf-section--last {
  padding-bottom: 8px;
}

.yf-grid {
  display: grid;
  gap: 18px;
}

.yf-grid--two {
  grid-template-columns: 1.2fr 0.8fr;
}

.yf-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.yf-card,
.yf-tile,
.yf-order-block,
.yf-info-card,
.yf-final {
  border-radius: 30px;
  background: var(--card);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
}

.yf-card {
  padding: 32px;
  min-height: 250px;
}

.yf-card--large {
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 211, 159, 0.26), transparent 32%),
    var(--card);
}

.yf-card--accent {
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 180, 200, 0.26), transparent 34%),
    #fff8f2;
}

.yf-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.yf-card__icon {
  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  border-radius: 17px;
  background: #fff0df;

  font-size: 24px;
}

.yf-card__label {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 950;
}

.yf-card h2,
.yf-section-head h2,
.yf-order-block h2,
.yf-info-card h2,
.yf-final h2 {
  margin: 0 0 12px;

  color: var(--text);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.yf-card p,
.yf-section-head p,
.yf-order-block p,
.yf-info-card p,
.yf-final p {
  margin: 0;

  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 700;
}

.yf-section-head {
  margin: 12px 0 18px;
  max-width: 760px;
}

.yf-tile {
  min-height: 190px;
  padding: 24px;

  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.yf-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(200, 151, 89, 0.17);
}

.yf-tile span {
  width: 52px;
  height: 52px;

  display: grid;
  place-items: center;

  margin-bottom: 18px;
  border-radius: 19px;

  background: #fff0df;
  font-size: 26px;
}

.yf-tile h3 {
  margin: 0 0 9px;

  color: var(--text);
  font-size: 18px;
  line-height: 1.16;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.yf-tile p {
  margin: 0;

  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 700;
}

.yf-order-block {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;

  padding: 34px;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 211, 159, 0.28), transparent 28%),
    var(--card);
}

.yf-order-block__content {
  align-self: center;
}

.yf-order-block h2 {
  margin-top: 16px;
}

.yf-steps {
  display: grid;
  gap: 12px;
}

.yf-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;

  padding: 15px;
  border-radius: 22px;

  background: #fff8ec;
  border: 1.5px solid rgba(236, 214, 187, 0.74);
}

.yf-step strong {
  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  border-radius: 17px;
  background: var(--main-accent);
  color: var(--accent-dark);

  font-size: 17px;
  font-weight: 950;
}

.yf-step h3 {
  margin: 0 0 4px;

  color: var(--text);
  font-size: 16px;
  font-weight: 950;
}

.yf-step p {
  margin: 0;

  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

.yf-occasion-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.yf-occasion {
  min-height: 134px;
  padding: 18px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  border-radius: 26px;
  background: var(--card);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);

  color: var(--text);
  text-decoration: none;

  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.yf-occasion:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(200, 151, 89, 0.17);
}

.yf-occasion span {
  font-size: 32px;
}

.yf-occasion strong {
  font-size: 15px;
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.yf-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.yf-info-card {
  padding: 30px;
}

.yf-info-card span {
  width: 54px;
  height: 54px;

  display: grid;
  place-items: center;

  margin-bottom: 18px;
  border-radius: 19px;

  background: #fff0df;
  font-size: 27px;
}

.yf-final {
  padding: 34px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  background:
    radial-gradient(circle at 15% 20%, rgba(255, 211, 159, 0.28), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(255, 180, 200, 0.22), transparent 30%),
    var(--card);
}

.yf-final h2 {
  margin-bottom: 8px;
}

.yf-final p {
  max-width: 620px;
}

.yf-final__actions {
  flex-shrink: 0;
  margin-top: 0;
}

@media (max-width: 1020px) {
  .yf-hero__grid,
  .yf-grid--two,
  .yf-order-block,
  .yf-final {
    grid-template-columns: 1fr;
  }

  .yf-hero__side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .yf-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yf-occasion-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .yf-final {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .about-header-order {
    display: none;
  }

  .yf-hero {
    padding-top: 14px;
  }

  .yf-hero__content {
    min-height: auto;
    padding: 28px 20px;
    border-radius: 26px;
  }

  .yf-hero h1 {
    font-size: 34px;
  }

  .yf-hero p {
    font-size: 15px;
  }

  .yf-hero__side {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .yf-hero-card,
  .yf-card,
  .yf-tile,
  .yf-order-block,
  .yf-info-card,
  .yf-final {
    border-radius: 22px;
  }

  .yf-hero-card {
    min-height: 150px;
    padding: 20px;
  }

  .yf-card {
    min-height: auto;
    padding: 22px 18px;
  }

  .yf-grid {
    gap: 12px;
  }

  .yf-grid--four,
  .yf-info-grid {
    grid-template-columns: 1fr;
  }

  .yf-order-block {
    padding: 22px 18px;
  }

  .yf-occasion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .yf-occasion {
    min-height: 118px;
    padding: 16px;
    border-radius: 20px;
  }

  .yf-final {
    padding: 24px 18px;
  }

  .yf-final__actions,
  .yf-hero__actions {
    width: 100%;
  }

  .yf-btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .yf-hero h1 {
    font-size: 30px;
  }

  .yf-card h2,
  .yf-section-head h2,
  .yf-order-block h2,
  .yf-info-card h2,
  .yf-final h2 {
    font-size: 26px;
  }

  .yf-occasion-grid {
    grid-template-columns: 1fr;
  }
}
/* ========================= */
/* ABOUT PAGE COMPACT FIX */
/* ========================= */

.about-page .yf-hero__grid {
  grid-template-columns: 1fr;
}

.about-page .yf-hero__content {
  width: 100%;
}

.about-page .yf-hero {
  padding-top: 22px;
  padding-bottom: 10px;
}

.about-page .yf-section {
  padding-top: 9px;
  padding-bottom: 9px;
}

.about-page .site-footer {
  margin-top: 28px;
}
/* ========================= */
/* FIX ABOUT HERO MOBILE OVERFLOW */
/* ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.about-page .container {
  max-width: 1200px;
  width: min(1200px, 96vw);
}

.about-page .yf-hero__grid {
  grid-template-columns: 1fr !important;
  width: 100%;
  max-width: 100%;
}

.about-page .yf-hero__content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.about-page .yf-hero h1,
.about-page .yf-hero p {
  max-width: 100%;
  overflow-wrap: break-word;
}

.about-page .yf-hero__actions {
  max-width: 100%;
}

.about-page .yf-btn {
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .about-page .container {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }

  .about-page .yf-hero {
    padding-left: 0;
    padding-right: 0;
  }

  .about-page .yf-hero__content {
    padding: 24px 16px;
    border-radius: 24px;
  }

  .about-page .yf-hero h1 {
    font-size: 30px;
    line-height: 1;
    letter-spacing: -0.055em;
  }

  .about-page .yf-hero p {
    font-size: 15px;
    line-height: 1.5;
  }

  .about-page .yf-hero__actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .about-page .yf-btn {
    width: 100%;
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 420px) {
  .about-page .yf-hero__content {
    padding: 22px 14px;
  }

  .about-page .yf-hero h1 {
    font-size: 28px;
  }
}
/* ========================= */
/* CONTACTS PAGE */
/* ========================= */

.contacts-page .yf-hero__grid {
  grid-template-columns: 1fr !important;
  width: 100%;
  max-width: 100%;
}

.contacts-page .yf-hero__content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.contacts-card-actions {
  margin-top: 24px;
}

.contacts-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.contacts-link {
  display: block;
  padding: 18px;

  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  border: 1.5px solid rgba(236, 214, 187, 0.8);

  color: var(--text);
  text-decoration: none;

  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.contacts-link:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(200, 151, 89, 0.14);
}

.contacts-link span {
  display: block;
  margin-bottom: 5px;

  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.contacts-link strong {
  display: block;

  color: var(--text);
  font-size: 19px;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: -0.025em;
}

@media (max-width: 768px) {
  .contacts-page .yf-hero__content {
    padding: 24px 16px;
    border-radius: 24px;
  }

  .contacts-page .yf-hero h1 {
    font-size: 30px;
    line-height: 1;
    letter-spacing: -0.055em;
  }

  .contacts-page .yf-hero p {
    font-size: 15px;
    line-height: 1.5;
  }

  .contacts-page .yf-hero__actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contacts-page .yf-btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contacts-link {
    padding: 16px;
    border-radius: 18px;
  }

  .contacts-link strong {
    font-size: 17px;
  }
}
/* ========================= */
/* ABOUT PAGE — 3D GIFT ICON */
/* ========================= */

.about-page .yf-hero__content {
  position: relative;
  overflow: hidden;
  padding-right: 230px;
}

.yf-hero__gift-icon {
  position: absolute;
  top: 50%;
  right: 42px;
  z-index: 1;

  width: 156px;
  height: 156px;

  transform: translateY(-50%) rotate(4deg);
  pointer-events: none;
}

.yf-hero__gift-icon img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: contain;

  filter: drop-shadow(0 16px 22px rgba(145, 94, 80, 0.24));
}

.about-page .yf-hero__content .yf-badge,
.about-page .yf-hero__content h1,
.about-page .yf-hero__content p,
.about-page .yf-hero__actions {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .about-page .yf-hero__content {
    padding-right: 16px;
  }

  .yf-hero__gift-icon {
    display: none;
  }
}
/* ========================= */
/* FILLINGS PAGE */
/* ========================= */

.fillings-page .yf-hero__grid {
  grid-template-columns: 1fr !important;
}

.fillings-page .fillings-hero {
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.55), transparent 22%),
    radial-gradient(circle at 82% 78%, rgba(255, 180, 200, 0.34), transparent 28%),
    linear-gradient(135deg, #ffe0b7 0%, #ffd39f 42%, #ffc4d8 100%);
}

.fillings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.filling-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 0;

  overflow: hidden;

  border-radius: 30px;
  background: var(--card);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);

  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.filling-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(200, 151, 89, 0.17);
}

.filling-card__image {
  display: block;
  min-height: 100%;
  background: #f8efdc;
  overflow: hidden;
  text-decoration: none;
}

.filling-card__image img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

.filling-card__body {
  padding: 24px;
}

.filling-card__top {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 14px;
}

.filling-card__emoji {
  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  border-radius: 17px;
  background: #fff0df;

  font-size: 24px;
}

.filling-card__label {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 950;
}

.filling-card h2 {
  margin: 0 0 10px;

  color: var(--text);
  font-size: 25px;
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.filling-card p {
  margin: 0;

  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 700;
}

.filling-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;

  margin: 16px 0 0;
  padding: 0;

  list-style: none;
}

.filling-card li {
  padding: 6px 10px;

  border-radius: 999px;
  background: #fff0df;

  color: var(--accent-dark);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 850;
}

.filling-card__btn {
  min-height: 44px;
  margin-top: 18px;
  padding: 0 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  background: var(--main-accent);
  color: var(--accent-dark);

  font-size: 14px;
  font-weight: 950;
  text-decoration: none;

  transition:
    transform 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.filling-card__btn:hover {
  transform: translateY(-2px);
  background: var(--main-accent-hover);
  box-shadow: 0 10px 22px rgba(255, 211, 159, 0.28);
}

@media (max-width: 1100px) {
  .fillings-grid {
    grid-template-columns: 1fr;
  }

  .filling-card {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .fillings-grid {
    gap: 12px;
  }

  .filling-card {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .filling-card__image {
    aspect-ratio: 3 / 4;
    min-height: auto;
  }

  .filling-card__image img {
    height: 100%;
  }

  .filling-card__body {
    padding: 20px 18px;
  }

  .filling-card h2 {
    font-size: 23px;
  }

  .filling-card p {
    font-size: 14px;
  }

  .filling-card__btn {
    width: 100%;
  }
}
/* ========================= */
/* FILLINGS FINAL BLOCK FIX */
/* ========================= */

.fillings-page .fillings-final {
  align-items: center;
}

.fillings-page .fillings-final .yf-final__actions {
  margin-top: 0;
}

.fillings-page .fillings-final .yf-btn {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .fillings-page .fillings-final {
    gap: 16px;
    padding: 22px 18px;
  }

  .fillings-page .fillings-final .yf-final__actions {
    width: 100%;
  }

  .fillings-page .fillings-final .yf-btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
}
/* ========================= */
/* FILLINGS FINAL CARD */
/* ========================= */

.fillings-final-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  padding: 30px;

  overflow: hidden;

  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.6), transparent 24%),
    linear-gradient(135deg, #ffe0b7 0%, #ffd39f 42%, #ffc4d8 100%);

  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
}

.fillings-final-card__text {
  min-width: 0;
  max-width: 720px;
}

.fillings-final-card h2 {
  margin: 0 0 10px;

  color: var(--text);
  font-size: 34px;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.fillings-final-card p {
  margin: 0;

  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 750;
}

.fillings-final-card__btn {
  flex-shrink: 0;
  box-sizing: border-box;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .fillings-final-card {
    display: block;

    padding: 22px 18px;
    border-radius: 22px;
  }

  .fillings-final-card__text {
    width: 100%;
    max-width: 100%;
  }

  .fillings-final-card h2 {
    font-size: 25px;
    line-height: 1.1;
    letter-spacing: -0.04em;
  }

  .fillings-final-card p {
    font-size: 14px;
    line-height: 1.5;
  }

  .fillings-final-card__btn {
    width: 100%;
    max-width: 100%;

    margin-top: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    white-space: normal;
    text-align: center;
  }
}
/* ========================= */
/* FILLINGS PHOTO FINAL FIX */
/* ========================= */

.fillings-page .filling-card {
  align-items: start !important;
}

.fillings-page .filling-card__image {
  width: 240px !important;
  height: 320px !important;
  min-height: 0 !important;

  display: block !important;
  overflow: hidden !important;
  background: #f8eedb !important;
}

.fillings-page .filling-card__image img {
  display: block !important;

  width: 100% !important;
  height: 100% !important;

  object-fit: cover !important;
  object-position: center !important;
}

/* Когда карточки идут в одну колонку */
@media (max-width: 1100px) {
  .fillings-page .filling-card {
    grid-template-columns: 280px minmax(0, 1fr) !important;
  }

  .fillings-page .filling-card__image {
    width: 280px !important;
    height: 373px !important;
  }
}

/* Мобильная версия */
@media (max-width: 768px) {
  .fillings-page .filling-card {
    grid-template-columns: 1fr !important;
  }

  .fillings-page .filling-card__image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 4 !important;
  }

  .fillings-page .filling-card__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}
/* ========================= */
/* FILLINGS PHOTO MODAL */
/* ========================= */

.fillings-page .filling-card__image {
  cursor: zoom-in;
}

/* Фото компактнее на вебе, чтобы описание было видно лучше */
@media (min-width: 1101px) {
  .fillings-page .filling-card {
    grid-template-columns: 220px minmax(0, 1fr) !important;
  }

  .fillings-page .filling-card__image {
    width: 220px !important;
    height: 293px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: #f8eedb !important;
  }

  .fillings-page .filling-card__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .fillings-page .filling-card {
    grid-template-columns: 240px minmax(0, 1fr) !important;
  }

  .fillings-page .filling-card__image {
    width: 240px !important;
    height: 320px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: #f8eedb !important;
  }

  .fillings-page .filling-card__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }
}

@media (max-width: 768px) {
  .fillings-page .filling-card {
    grid-template-columns: 1fr !important;
  }

  .fillings-page .filling-card__image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 4 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: #f8eedb !important;
  }

  .fillings-page .filling-card__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }
}

/* Само модальное окно */
.filling-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background: rgba(0, 0, 0, 0.72);

  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.filling-lightbox.active {
  display: flex;
}

.filling-lightbox__content {
  max-width: min(92vw, 760px);
  max-height: 90vh;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.filling-lightbox__content img {
  display: block;

  max-width: 100%;
  max-height: 82vh;

  width: auto;
  height: auto;

  object-fit: contain;

  border-radius: 24px;
  background: #f8eedb;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.35);
}

.filling-lightbox__title {
  margin-top: 12px;

  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.filling-lightbox__close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10000;

  width: 46px;
  height: 46px;

  border: none;
  border-radius: 50%;

  background: #ffffff;
  color: #2f2419;

  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 768px) {
  .filling-lightbox {
    padding: 14px;
  }

  .filling-lightbox__content img {
    max-height: 78vh;
    border-radius: 18px;
  }

  .filling-lightbox__close {
    top: 10px;
    right: 10px;
  }
}
/* ========================= */
/* PRIVACY PAGE COMMON HEADER/FOOTER FIX */
/* ========================= */

.privacy-page-body .privacy-main {
  padding-top: 0;
}

.privacy-page-body .privacy-hero {
  padding-top: 42px;
}

@media (max-width: 768px) {
  .privacy-page-body .privacy-hero {
    padding-top: 28px;
  }
}
/* ========================= */
/* ГЛАВНАЯ: ФИКСИРУЕМ ШАПКУ И КАТЕГОРИИ */
/* ========================= */

/* Шапка всегда сверху */
.app-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;

  z-index: 5000 !important;

  padding: 0 !important;
  margin: 0 !important;

  background: var(--bg) !important;
  box-shadow: 0 3px 12px rgba(200, 151, 89, 0.08) !important;
}

/* Внутри шапки */
.app-header__inner {
  display: flex !important;
  align-items: center !important;
  min-height: 95px !important;
  gap: 12px !important;
}

/* Меню в шапке */
.main-nav {
  margin-left: auto !important;
  display: flex !important;
  gap: 16px !important;
}

/* Плашка категорий всегда под шапкой */
.filter-row {
  position: fixed !important;

  top: 95px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;

  width: min(1200px, 96vw) !important;

  z-index: 4999 !important;

  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;

  gap: 12px !important;
  padding: 8px 8px 10px 8px !important;
  margin: 0 !important;

  background: #fffbe6 !important;
  box-shadow: 0 5px 12px rgba(255, 211, 159, 0.22) !important;

  scrollbar-width: thin !important;
}

.filter-row .filter-btn {
  flex: 0 0 auto !important;
}

/* Чтобы контент не залез под фиксированную шапку и категории */
.store-hero {
  padding-top: 150px !important;
}

/* Если каталог начинается сразу после hero */
.catalog-section {
  padding-top: 0 !important;
}

/* Мобильная версия */
@media (max-width: 768px) {
  .app-header__inner {
    min-height: 88px !important;
  }

  .filter-row {
    top: 88px !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;

    padding-left: 10px !important;
    padding-right: 10px !important;

    border-radius: 0 !important;
  }

  .store-hero {
    padding-top: 140px !important;
  }
}

@media (max-width: 670px) {
  .main-nav {
    display: none !important;
  }
}
/* ========================= */
/* ПРАВИЛЬНЫЕ СЛОИ ДЛЯ ШАПКИ, МЕНЮ И МОДАЛОК */
/* ========================= */

/* Шапка и категории должны быть выше карточек, но ниже модалок */
.app-header {
  z-index: 100 !important;
}

.filter-row {
  z-index: 90 !important;
}

/* Затемнение модалки товара выше шапки */
.product-modal-overlay {
  z-index: 9000 !important;
}

/* Сама модалка товара выше затемнения */
.product-modal {
  z-index: 9010 !important;
}

/* Внутренность модалки */
.product-modal__inner {
  position: relative;
  z-index: 9020 !important;
}

/* Кнопка закрытия модалки */
.product-modal__close {
  z-index: 9030 !important;
}

/* Корзина тоже должна быть выше шапки и категорий */
.cart-overlay {
  z-index: 8000 !important;
}

.cart-drawer {
  z-index: 8010 !important;
}

/* Модалка начинок/фото, если используется */
.filling-lightbox {
  z-index: 9500 !important;
}

.filling-lightbox__close {
  z-index: 9510 !important;
}
/* ================================================= */
/* АВАРИЙНЫЙ ОТКАТ ХЕДЕРА И ПЛАШКИ КАТЕГОРИЙ */
/* ================================================= */

/* Убираем последствия fixed-версии */
body {
  padding-top: 0 !important;
}

/* Хедер снова обычный sticky */
.app-header {
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  right: auto !important;

  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;

  z-index: 100 !important;

  background: var(--bg) !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Контейнер внутри хедера — как у всего сайта */
.app-header .container {
  width: min(1200px, 96vw) !important;
  max-width: 1200px !important;

  margin-left: auto !important;
  margin-right: auto !important;

  padding-left: 0 !important;
  padding-right: 0 !important;

  box-sizing: border-box !important;
}

/* Внутренности хедера */
.app-header__inner {
  display: flex !important;
  align-items: center !important;

  min-height: 70px !important;

  gap: 12px !important;

  width: 100% !important;
  box-sizing: border-box !important;
}

/* Меню */
.main-nav {
  margin-left: auto !important;
  display: flex !important;
  gap: 16px !important;
}

/* Главный hero возвращаем обратно */
.store-hero {
  padding: 20px 0 32px !important;
  margin: 0 !important;
}

/* Плашка категорий — НЕ fixed, а sticky */
.filter-row {
  position: sticky !important;

  top: 70px !important;
  left: auto !important;
  right: auto !important;

  transform: none !important;

  width: auto !important;
  max-width: none !important;

  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 16px !important;

  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;

  gap: 12px !important;
  padding: 4px 8px 8px 8px !important;

  z-index: 90 !important;

  background: #fffbe6 !important;
  box-shadow: 0 3px 8px -4px #ffe7cc44 !important;

  box-sizing: border-box !important;
}

.filter-row .filter-btn {
  flex: 0 0 auto !important;
}

/* Поиск не должен залезать под плашку */
.catalog-top {
  margin-top: 0 !important;
}

/* Модалки выше хедера и категорий */
.product-modal-overlay {
  z-index: 9000 !important;
}

.product-modal {
  z-index: 9010 !important;
}

.product-modal__inner {
  position: relative !important;
  z-index: 9020 !important;
}

.product-modal__close {
  z-index: 9030 !important;
}

/* Корзина выше хедера */
.cart-overlay {
  z-index: 8000 !important;
}

.cart-drawer {
  z-index: 8010 !important;
}

/* Мобильная версия */
@media (max-width: 670px) {
  .main-nav {
    display: none !important;
  }
}

@media (max-width: 560px) {
  .app-header .container {
    width: min(100%, 98vw) !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  .app-header__inner {
    min-height: 54px !important;
  }

  .filter-row {
    top: 54px !important;
    gap: 8px !important;
  }

  .store-hero {
    padding: 16px 0 24px !important;
  }
}
/* ========================================= */
/* ЖЁСТКОЕ ЗАЛИПАНИЕ МЕНЮ КАТЕГОРИЙ */
/* ========================================= */

/* Родители не должны ломать fixed/sticky */
body,
main,
.page,
.store-hero,
.catalog-section,
.catalog,
.container {
  overflow: visible !important;
  transform: none !important;
}

/* Шапка */
.app-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}

/* Меню категорий фиксируем под шапкой */
.filter-row {
  position: fixed !important;

  top: 90px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;

  width: min(1200px, 96vw) !important;
  max-width: 1200px !important;

  z-index: 999 !important;

  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;

  overflow-x: auto !important;
  overflow-y: hidden !important;

  padding: 8px 8px 10px !important;
  box-sizing: border-box !important;

  background: #fffbe6 !important;
  box-shadow: 0 3px 8px -4px #ffe7cc44 !important;

  margin: 0 !important;
}

/* Кнопки категорий */
.filter-row .filter-btn {
  flex: 0 0 auto !important;
}

/* Компенсируем место под фиксированное меню категорий */
.catalog-grid,
.products-grid,
.product-grid,
.catalog-list {
  margin-top: 70px !important;
}

/* Модалки должны быть выше всего */
.product-modal-overlay {
  z-index: 9000 !important;
}

.product-modal {
  z-index: 9010 !important;
}

.product-modal__close {
  z-index: 9030 !important;
}

/* Корзина выше меню */
.cart-overlay {
  z-index: 8000 !important;
}

.cart-drawer {
  z-index: 8010 !important;
}

/* Мобильная версия */
@media (max-width: 560px) {
  .filter-row {
    top: 90px !important;
    width: min(100%, 98vw) !important;
    gap: 8px !important;
  }

  .catalog-grid,
  .products-grid,
  .product-grid,
  .catalog-list {
    margin-top: 64px !important;
  }
}
/* ========================================= */
/* СТРАНИЦА ДОСТАВКИ */
/* ========================================= */

/* На странице доставки скрываем служебный каталог, который нужен только для app.js */


.delivery-page-section {
  padding: 72px 0 80px;
  background:
    radial-gradient(circle at top left, rgba(255, 231, 190, 0.75), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255, 209, 160, 0.55), transparent 32%),
    #fffbe6;
}

.delivery-page-card {
  max-width: 1120px;
  margin: 0 auto;
  padding: 38px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 46px rgba(116, 73, 36, 0.12);
  border: 1px solid rgba(226, 177, 104, 0.28);
}

.delivery-page-kicker {
  margin-bottom: 12px;
  color: #c47a2c;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.delivery-page-card h1 {
  max-width: 820px;
  margin: 0 0 18px;
  color: #3b2414;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
}

.delivery-page-lead {
  max-width: 760px;
  margin: 0 0 34px;
  color: #624832;
  font-size: 20px;
  line-height: 1.55;
}

.delivery-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.delivery-page-item {
  padding: 24px;
  border-radius: 24px;
  background: #fff6d8;
  border: 1px solid rgba(215, 165, 90, 0.35);
  box-shadow: 0 10px 24px rgba(120, 80, 40, 0.07);
}

.delivery-page-icon {
  margin-bottom: 14px;
  font-size: 36px;
  line-height: 1;
}

.delivery-page-item h3 {
  margin: 0 0 10px;
  color: #3b2414;
  font-size: 22px;
  line-height: 1.2;
}

.delivery-page-item p {
  margin: 0;
  color: #624832;
  font-size: 17px;
  line-height: 1.5;
}

.delivery-page-note {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #fff0bd;
  color: #4b3422;
  font-size: 17px;
  line-height: 1.5;
  border: 1px solid rgba(216, 138, 50, 0.24);
}

.delivery-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.delivery-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.delivery-page-btn:hover {
  transform: translateY(-1px);
}

.delivery-page-btn-primary {
  background: #d88a32;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(216, 138, 50, 0.22);
}

.delivery-page-btn-secondary {
  background: #fff1bf;
  color: #5a351d;
  border: 1px solid rgba(216, 138, 50, 0.35);
}

/* Чтобы фиксированное меню тем на delivery не мешало контенту */
.delivery-page-section {
  margin-top: 70px;
}

/* Мобильная версия */
@media (max-width: 820px) {
  .delivery-page-section {
    padding: 58px 0 64px;
  }

  .delivery-page-card {
    padding: 26px;
    border-radius: 24px;
  }

  .delivery-page-grid {
    grid-template-columns: 1fr;
  }

  .delivery-page-lead {
    font-size: 18px;
  }
}

@media (max-width: 560px) {
  .delivery-page-section {
    padding: 48px 0 54px;
    margin-top: 70px;
  }

  .delivery-page-card {
    padding: 20px;
    border-radius: 22px;
  }

  .delivery-page-card h1 {
    font-size: 28px;
  }

  .delivery-page-lead {
    font-size: 17px;
  }

  .delivery-page-item {
    padding: 20px;
  }

  .delivery-page-actions {
    flex-direction: column;
  }

  .delivery-page-btn {
    width: 100%;
  }
}
