/* CLS: резерв высоты галереи карточки товара t780 до инициализации слайдера (фото 4:3) */
.t780 .t-slds__container { aspect-ratio: 4 / 3; }

/* CLS: каталог прячет колонку с названием/ценой t780 (display:none) до ответа API — держим её место невидимым; если Tilda показала прелоадер, резерв снимаем */
.t780 .js-store-single-product-info[style*="display: none"] { display: block !important; visibility: hidden; }
.t780 .t-store__single-prod-preloader ~ .js-store-single-product-info[style*="display: none"] { display: none !important; }

/* CLS: баннер cookie t972 (режим «виджет») раскрывается над кнопкой без изменения размера обёртки */
.t972_widgetview .t972__widget { position: relative; }
.t972_widgetview .t972__widget .t972__banner { position: absolute; right: 0; bottom: 100%; width: 600px; max-width: calc(100vw - 68px); }
@media screen and (max-width: 640px) {
  .t972_widgetview .t972__widget .t972__banner { width: calc(100vw - 30px); max-width: none; }
}

/* Доступность: контраст серого текста на белом не ниже 4,5:1 (артикул в карточке товара, описания в карточках «С этим покупают») */
.t780 .t780__title_small, .t744 .t744__title_small { color: #6f7374 !important; }
.t-store__card .t-typography__descr, .t-store__card .t-typography__descr * { color: #707070 !important; }

/* Ссылки в тексте: тёмно-синий текст с жёлтым подчёркиванием вместо жёлтого текста (контраст 16:1). Тёмные блоки — меню, подвал, Zero, обложки, лента блога — не трогаем */
:is(.t-descr, .t-text, .t-section__descr, .t972__text, .t-name) a:not(.t-btn):not(:is(.t450, .t463, .t396, .t228, .t456, .t-menu, .t-cover, .t915) a) {
  color: #211551 !important;
  text-decoration: underline !important;
  text-decoration-color: #ffbf3f !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px;
}

/* Плашка «Новинка» в карточках товаров: компактный ярлык, скругление 10px, красный #c8102e (контраст 5,9:1) */
.t-store__card__mark {
  background-color: #c8102e !important;
  border-radius: 10px !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  line-height: 1.3 !important;
  padding: 6px 12px !important;
  font-weight: 600 !important;
  display: inline-block !important;
}

/* Хлебные крошки t758 на телефоне: всегда одна строка; длинное последнее название обрезается многоточием, ссылки «Importeur» и разделы не сжимаются */
@media screen and (max-width: 640px) {
  .t758 .t758__list { display: flex; flex-wrap: nowrap; max-width: 100%; }
  .t758 .t758__list_item { flex: none; white-space: nowrap; }
  .t758 .t758__list_item:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .t758 .t758__list_item:last-child * { display: inline !important; float: none !important; white-space: nowrap; }
}

/* Подвал «Как заказать пиво онлайн» (t1107) на телефоне: компактнее, блок помещается в один экран (10.11) */
@media screen and (max-width: 640px) {
  #rec2422027393 { padding-top: 30px !important; }
  #rec2422027393 .t-section__title { margin-bottom: 24px !important; }
  #rec2422027393 .t1107__bgimg { width: 72px !important; height: 72px !important; }
  #rec2422027393 .t1107__arrow { margin: 12px auto !important; height: auto !important; }
  #rec2422027393 .t1107__arrow svg { width: 36px !important; }
  #rec2422027393 .t1107__textwrapper { margin-top: 10px !important; }
  #rec2422027393 .t1107__text { margin-top: 6px !important; }
}

/* CLS блог (14.11): место под обложку и фото статьи держится до загрузки картинки. Обложка по умолчанию 16:9 (стандарт 1680×945), для старых статей — точные пропорции. Новая статья с другими пропорциями фото: добавить строку сюда */
.t-feed__post-popup__img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.t-feed__post-popup__img[src*="tild6564-3732-4264-b864-343064636633"] { aspect-ratio: 951 / 634; }
.t-feed__post-popup__img[src*="tild3262-6433-4163-b765-643137623263"] { aspect-ratio: 2063 / 1548; }
.t-feed__post-popup__img[src*="tild6439-6566-4539-b431-376639633937"] { aspect-ratio: 1400 / 787; }
.t-feed__post-popup__img[src*="tild3133-3864-4335-b166-343030373365"] { aspect-ratio: 1200 / 628; }
.t-feed__post-popup__img[src*="tila6135-3461-4138-a166-333636383861"] { aspect-ratio: 1680 / 945; }
.t-feed__post-popup__img[src*="tild6165-3934-4139-b831-343431326331"] { aspect-ratio: 1303 / 1093; }
.t-feed__post-popup__img[src*="tild3866-6663-4238-a466-363838326164"] { aspect-ratio: 1400 / 787; }
.t-feed__post-popup figure img { width: 100%; height: auto; }
.t-feed__post-popup figure img[src*="tild3066-6638-4462-a663-663634313934"] { aspect-ratio: 1680 / 1200; }
.t-feed__post-popup figure img[src*="tild6239-3865-4831-b538-636138623763"] { aspect-ratio: 1030 / 579; }
.t-feed__post-popup figure img[src*="tild6364-3862-4563-b261-303161613430"] { aspect-ratio: 1680 / 900; }
.t-feed__post-popup figure img[src*="tild6365-3333-4237-a563-363737383734"] { aspect-ratio: 1280 / 967; }
.t-feed__post-popup figure img[src*="tild6230-3037-4766-b564-326535313538"] { aspect-ratio: 1100 / 905; }
.t-feed__post-popup figure img[src*="tild6436-3434-4335-a430-663435313961"] { aspect-ratio: 2199 / 2002; }
.t-feed__post-popup figure img[src*="tild6432-3164-4330-b537-633965316364"] { aspect-ratio: 1680 / 945; }
.t-feed__post-popup figure img[src*="tild6137-3661-4032-a264-636532386632"] { aspect-ratio: 2183 / 1460; }
.t-feed__post-popup figure img[src*="tild6630-3664-4138-a361-326234616163"] { aspect-ratio: 1680 / 1118; }
.t-feed__post-popup figure img[src*="tild3963-3733-4964-b238-613363346536"] { aspect-ratio: 1680 / 941; }
.t-feed__post-popup figure img[src*="tild3564-3061-4737-a236-626264623330"] { aspect-ratio: 1024 / 683; }
.t-feed__post-popup figure img[src*="tild6661-3738-4230-b134-663464343933"] { aspect-ratio: 1440 / 810; }
.t-feed__post-popup figure img[src*="tild3131-6237-4030-a362-393563346632"] { aspect-ratio: 1000 / 500; }
.t-feed__post-popup figure img[src*="tild3635-6362-4165-b064-666131323439"] { aspect-ratio: 2266 / 1510; }
.t-feed__post-popup figure img[src*="tild6133-3033-4132-b066-306663353731"] { aspect-ratio: 1200 / 788; }
.t-feed__post-popup figure img[src*="tild3363-6332-4161-a535-333334623561"] { aspect-ratio: 1080 / 768; }
.t-feed__post-popup figure img[src*="tild6231-3935-4064-b038-656363616134"] { aspect-ratio: 1351 / 1536; }
.t-feed__post-popup figure img[src*="tild3032-6362-4933-b266-633366323766"] { aspect-ratio: 1400 / 933; }
.t-feed__post-popup figure img[src*="tild6464-3565-4133-a365-393463316538"] { aspect-ratio: 1400 / 933; }
.t-feed__post-popup figure img[src*="tild3230-3330-4035-a539-386236626465"] { aspect-ratio: 1400 / 933; }
.t-feed__post-popup figure img[src*="tild3663-3839-4239-a337-303664366338"] { aspect-ratio: 1920 / 1000; }
.t-feed__post-popup figure img[src*="tild6463-3164-4633-b763-373535313263"] { aspect-ratio: 1200 / 628; }
.t-feed__post-popup figure img[src*="tild3439-6466-4635-b538-333032316362"] { aspect-ratio: 1200 / 630; }
.t-feed__post-popup figure img[src*="tild3132-3537-4333-b539-616531623164"] { aspect-ratio: 750 / 500; }
.t-feed__post-popup figure img[src*="tila6535-3165-4235-b164-636534336137"] { aspect-ratio: 1680 / 945; }
.t-feed__post-popup figure img[src*="tila6135-6162-4464-b035-356339363531"] { aspect-ratio: 1680 / 945; }
.t-feed__post-popup figure img[src*="tila3435-3331-4330-b131-376562376462"] { aspect-ratio: 1680 / 945; }
.t-feed__post-popup figure img[src*="tila3663-3130-4137-b939-323166303934"] { aspect-ratio: 440 / 330; }
.t-feed__post-popup figure img[src*="tild3436-3332-4333-a433-633934376636"] { aspect-ratio: 900 / 656; }
.t-feed__post-popup figure img[src*="tild6366-3531-4462-b438-333162326537"] { aspect-ratio: 1351 / 1536; }
.t-feed__post-popup figure img[src*="tild3963-3263-4765-b966-333631396237"] { aspect-ratio: 1400 / 933; }
.t-feed__post-popup figure img[src*="tild3639-3932-4363-a534-356165333339"] { aspect-ratio: 1400 / 933; }
.t-feed__post-popup figure img[src*="tild3336-6561-4264-b064-646538633032"] { aspect-ratio: 1400 / 933; }
