/* Independent responsive layer for Садим в землю. */
:root { scrollbar-gutter: stable; }
body :is(button, a, input, select, summary):focus-visible { outline: 3px solid #976619; outline-offset: 3px; }
.modern-benefits > .benefits-track { min-height: 0; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
.modern-benefits .benefits-group > div { min-height: 74px; border: 1px solid #e7e8ed; border-radius: 6px; box-shadow: 0 4px 12px #17234708; display: flex; align-items: center; gap: 14px; padding: 13px 22px; font-size: 14px; }
@media (min-width: 901px) {
  .modern-benefits > .benefits-track, .modern-benefits .benefits-group { display: contents; }
  .modern-benefits .benefits-copy { display: none; }
}
@media (max-width: 900px) {
  .modern-benefits:hover .benefits-track, .modern-benefits:active .benefits-track { animation-play-state: paused; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .modern-benefits > .benefits-track { animation: none; width: auto; }
  .modern-benefits .benefits-group { flex-wrap: wrap; width: 100%; padding: 0; }
  .modern-benefits .benefits-copy { display: none; }
  .modern-benefits > .benefits-track > .benefits-group > div { flex: 1 1 140px; }
}
.search :focus-visible { outline-offset: -4px; }
html.modal-open { overflow: hidden; }
.mobile-menu, .filter-toggle { display: none; }
.menu-toggle { display: none; }
.menu-drawer { position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); height: 100dvh; max-height: none; margin: 0; padding: 24px; border: 0; background: #fff; color: var(--ink); box-shadow: -12px 0 35px #14251c3d; }
.menu-drawer::backdrop { background: #14251c99; }
.menu-drawer { overflow-y: auto; overscroll-behavior: contain; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.menu-drawer[open] { animation: menu-slide-in .25s ease-out; }
.menu-drawer .menu-close { justify-content: center; border: 0; font-size: 24px; }
@keyframes menu-slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .menu-drawer[open] { animation: none; } }
.menu-drawer nav { display: grid; gap: 0; }
.menu-drawer a, .menu-drawer button { display: flex; align-items: center; min-height: 52px; padding: 10px 4px; border-top: 1px solid #dce3d0; text-align: left; font-size: 16px; }
.menu-drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; }
.menu-drawer-header h2 { margin: 0; font-size: 22px; }
.menu-close { min-width: 44px; font-size: 24px; }
.hamburger { display: grid; gap: 4px; width: 22px; }
.hamburger span { display: block; height: 2px; border-radius: 2px; background: currentColor; }
button, .button, .pink-button, select, summary { min-height: 44px; }
button { min-width: 44px; }
.modern .product-card .product-bottom .add-cart { min-height: 44px; }
body .favorite-button, body .round-photo-action, body .quantity button, body .close-drawer { width: 44px; height: 44px; flex-shrink: 0; }
.modal { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.modal-header, .drawer-header { flex-shrink: 0; }
.modal input, .cart-drawer input { font-size: 16px; min-height: 48px; max-width: 100%; }
.cart-row { grid-template-columns: 54px minmax(0, 1fr) 44px; }
.cart-row h3 { font-size: 16px; overflow-wrap: anywhere; }
.cart-row p, .quantity, .demo-notice { font-size: 14px; }
.cart-drawer { inset: 0 0 0 auto; margin: 0; border: 0; max-width: 100%; max-height: none; height: 100vh; height: 100dvh; transform: none; color: var(--ink); padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.cart-drawer:not([open]) { display: none; }
.cart-drawer[open] { display: flex; }
.cart-drawer::backdrop { background: #14251c99; }
#drawer-cart-content { min-height: 0; overscroll-behavior: contain; }
.toast { max-width: calc(100% - 32px); white-space: normal; bottom: max(20px, env(safe-area-inset-bottom)); pointer-events: none; }
.product-page-detail > div, .info-content { min-width: 0; }
@media (max-width: 900px) {
  body { font-size: 16px; }
  .modern-shell { width: calc(100% - 32px); }
  .modern-topline .modern-shell { gap: 8px; flex-wrap: wrap; padding-block: 6px; font-size: 12px; }
  .modern-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding-block: 18px; }
  .modern-header .rose-brand { grid-column: 1 / -1; }
  .modern .rose-brand strong { font-size: 28px; white-space: normal; }
  .rose-mark { flex: 0 0 44px; width: 44px; height: 44px; }
  .modern-header .modern-search { order: initial; grid-column: 1 / -1; grid-row: 3; width: 100%; min-width: 0; }
  .modern-search input { font-size: 16px; padding-inline: 14px; }
  .modern-search button { flex: 0 0 48px; }
  .modern-contact { margin: 0; white-space: normal; }
  .modern-contact .round-action { display: none; }
  .modern .modern-contact strong { font-size: 16px; }
  .modern .modern-contact a { min-height: 44px; display: flex; align-items: center; font-size: 14px; }
  .modern-actions { gap: 8px; }
  .round-action { width: 44px; height: 44px; }
  .modern-nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 12px; border: 1px solid #d2dec7; border-radius: 10px; background: #f1f5e7; color: inherit; font-size: 15px; font-weight: 700; }
  .modern-header .rose-brand { grid-column: 1; min-width: 0; }
  .menu-toggle { width: 48px; align-self: center; justify-self: end; }
  .menu-toggle > span:last-child { display: none; }
  .modern-feature { grid-template-columns: 1fr; padding-top: 8px; gap: 24px; }
  .modern-promo { min-height: 340px; height: auto; padding: 28px 22px; background: #f1f5e7; }
  .modern-promo > div { max-width: 75%; }
  .modern .modern-promo span { font-size: 16px; }
  .modern .modern-promo strong { font-size: clamp(27px, 5vw, 38px); }
  .modern .modern-promo p { font-size: 16px; color: #304b3c; }
  .modern-promo img { right: -20%; width: 65%; opacity: .3; }
  .modern .pink-button { padding: 12px 18px; font-size: 15px; }
  .week-bouquet { display: none; }
  .week-image { height: 260px; flex-basis: 260px; }
  .week-content { padding: 18px; }
  .modern-benefits { display: block; overflow: hidden; margin-inline: 0; padding-block: 2px; }
  .benefits-track { display: flex; width: max-content; animation: benefits-scroll 24s linear infinite; }
  .benefits-group { display: flex; gap: 10px; padding-right: 10px; }
  .modern-benefits > .benefits-track > .benefits-group > div { display: flex; flex: 0 0 170px; min-height: 74px; padding: 12px; gap: 10px; }
  .modern .modern-benefits span { font-size: 14px; }
  @keyframes benefits-scroll { to { transform: translateX(-50%); } }
  .modern .best-offers .modern-shell { flex-direction: column; align-items: flex-start; gap: 8px; }
  .best-offers a { display: inline-flex; align-items: center; min-height: 44px; }
  .modern-catalog { padding-top: 32px; }
  .section-heading { align-items: flex-start; flex-wrap: wrap; gap: 14px; }
  .section-heading label, .section-heading select { max-width: 100%; font-size: 16px; }
  .modern .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .filter-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 12px 16px; background: #f1f5e7; border: 1px solid #d2dec7; border-radius: 10px; font-weight: 700; text-align: left; }
  .filter-toggle::after { content: '+'; margin-left: 12px; }
  .filter-toggle[aria-expanded="true"]::after { content: '−'; }
  .modern .modern-filters { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; padding: 8px; gap: 6px; }
  .modern .modern-filters h3 { display: none; }
  .modern .modern-filters.filters-collapsed { display: none; }
  .modern .modern-filters button { width: 100%; white-space: normal; font-size: 16px; padding: 12px; }
  .modern .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .modern .product-image { height: auto; aspect-ratio: 1 / 1; }
  .modern .product-content { padding: 12px; }
  .modern .product-card h3 { font-size: 17px; line-height: 1.35; }
  .modern .product-type, .modern .product-meta, .modern .stock { font-size: 13px; letter-spacing: 0; }
  .modern .product-meta { line-height: 1.5; }
  .modern .price, .modern .price:has(.old-price) { font-size: 22px; white-space: normal; }
  .modern .old-price { font-size: 14px; }
  .modern .product-card .product-bottom .add-cart { font-size: 15px; min-height: 44px; padding: 10px 6px; }
  .modern .product-image .product-badge { top: auto; bottom: 8px; left: 8px; font-size: 12px; padding: 6px; max-width: calc(100% - 16px); }
  .shop-footer .modern-shell { flex-direction: column; align-items: flex-start; gap: 20px; padding-block: 0; }
  .shop-footer a, .back-link { display: inline-flex; align-items: center; min-height: 44px; }
  .standalone-page { padding-block: 24px 48px; min-height: 0; }
  .standalone-page > h1, .product-page-detail h1 { font-size: 32px; overflow-wrap: anywhere; }
  .product-page-detail { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .product-page-detail > img { height: auto; aspect-ratio: 1.15; max-height: 500px; }
  .product-page-actions .button { flex: 1 1 220px; font-size: 16px; }
  .classic-info p { font-size: 16px; }
  .info-page { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 24px 48px; }
  .info-menu { display: flex; flex-direction: row; flex-wrap: wrap; overflow: visible; }
  .info-menu a { padding: 12px; min-height: 48px; white-space: normal; flex: 1 1 auto; text-align: center; }
  .info-content h1 { font-size: 34px; overflow-wrap: anywhere; }
  .info-content h2 { font-size: 28px; }
  .info-content p, .info-content li { font-size: 16px; }
  .modal { padding: 20px; }
  .button { font-size: 16px; }
}
@media (max-width: 359px) {
  .modern .product-grid, .modern .modern-filters { grid-template-columns: minmax(0, 1fr); }
  .modern .rose-brand strong { font-size: 26px; }
  .modern-promo > div { max-width: 100%; }
  .modern-promo img { opacity: .16; }
  .modern-benefits { display: block; }
  .modern-benefits > .benefits-track > .benefits-group > div { flex-basis: 160px; }
  .modal, .cart-drawer { padding: 16px; }
  .cart-row { grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; }
  .cart-row > img { display: none; }
}
