  
/* Общие стили для body */
body {
  margin: 0;
  min-height: 100vh;
  padding-top: 60px; /* Отступ сверху для фиксированной шапки */
}



/* Общие стили для верхней полосы сайта */
.top-bar {
  font-family: 'Ubuntu', sans-serif;
  background-color: #F5F5F5;
  color: black;
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
  justify-content: space-between; /* Распределяем элементы по краям и в центре */
}

/* Контейнер для номера телефона */
.top-bar .text {
  font-family: 'Ubuntu', sans-serif;
  font-size: 18px;
  flex-grow: 1; /* Позволяет ему растягиваться, чтобы центрировать текст */
  text-align: center; /* Центрирует текст внутри себя */
}



/* Стили для заголовка меню */
.menu-header { /* Этот класс, кажется, не используется в новом полноэкранном меню, но оставлен на всякий случай */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #dee2e6;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 1.2em;
  color: #343a40;
}

/* Стили для кнопки закрытия (крестик) */
.close-button { /* Этот класс, кажется, не используется в новом полноэкранном меню, но оставлен на всякий случай */
  cursor: pointer;
  font-size: 1.5em;
  color: #6c757d;
  transition: color 0.3s ease;
  font-family: 'Arial', sans-serif;
}
.close-button:hover {
  color: #495057;
}

/* Стили для ссылки внутри меню */
.burger-menu .menu a { /* Этот класс, кажется, не используется в новом полноэкранном меню, но оставлен на всякий случай */
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: #333;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 1.2em;
  text-align: center;
}
.burger-menu .menu a:hover {
  background-color: #e9ecef;
}

/* Стили для кнопки, которая теперь будет ТРИГГЕРОМ МЕНЮ */
.top-bar .order-button {
    display: inline-block;
    width: 210px; /* Размер иконки zazz.png */
    height: 50px; /* Размер иконки zazz.png */
    background-image: url('../images/gren.png'); /* Замените ссылку на вашу */
    background-size: contain; /* Чтобы изображение полностью помещалось */
    background-repeat: no-repeat;
    background-position: center; /* Центрируем изображение */
    text-indent: -9999px; /* Скрываем текст ссылки */
    overflow: hidden;
    border: none;
    cursor: pointer; /* Делаем его кликабельным */
    /* position: relative; left: 15px; - эти стили убраны, т.к. flexbox управляет */
}


/* Стили для ссылки с номером телефона */
.phone-link {
    text-decoration: none;
    font-weight: 600;
    font-size: 1.0em;
    font-family: 'Product Sans', sans-serif; /* Product Sans */
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 5px 12px;
    border-radius: 5px;
    position: relative;
    background: linear-gradient(to right, #1B5E20, #4CAF50, #FFFFFF, #1B5E20, #4CAF50);
    background-size: 300% 100%;
    animation: gradientAnimation 5s linear infinite;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent; /* Делаем текст прозрачным, чтобы градиент был виден */
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Стили для ссылки с номером телефона при активном/посещенном состоянии */
.phone-link:active,
.phone-link:visited {
    color: #007bff;
    background-color: transparent;
    text-decoration: none;
    outline: none;
}

/* Дополнительные стили для контента (не связанного с top-bar) */
.content {
  margin-top: 80px; /* Отступ сверху, чтобы контент не перекрывался полосой */
  padding: 20px;
}

/* --- Стили для полноэкранного меню (остаются как есть, за исключением удаления menu-trigger) --- */
.diamond-icon .custom-menu-icon {
    box-shadow: none !important;
    filter: none !important;
    width: 40px;
    height: 40px;
    vertical-align: middle;
    margin-right: 5px;
}
.diamond-icon {
    display: inline-block;
}

/* УБРАН menu-trigger, т.к. он больше не используется */
/* .menu-trigger {
    cursor: pointer;
    font-size: 28px;
    color: #333;
    padding: 0 10px;
}
.menu-trigger i { } */

.fullscreen-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transform: translateX(-100%);
    transition: visibility 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
    display: flex;
    justify-content: flex-start;
}

.fullscreen-menu-overlay.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

.fullscreen-menu-content {
    background-color: #222;
    width: 75%;
    max-width: 350px;
    height: 100%;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow-y: auto;
}

.menu-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #F5F5F5;
    color: #333;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 600;
    font-size: 20px;
    height: 48px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.menu-header-top .diamond-icon {
    font-size: 24px;
    color: #888;
    margin-right: 10px;
}

.menu-header-top .menu-header-link {
    text-decoration: none;
    color: #333;
    flex-grow: 1;
    text-align: left;
}

.menu-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    padding: 0;
    margin-left: 10px;
    line-height: 1;
}
.menu-close-btn i { }

.menu-categories {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    list-style: none;
    flex-grow: 1;
}

.menu-category-item {
    display: block;
    padding: 12px 20px;     /* было 18px → меньше отступ */
    text-decoration: none;
    color: white;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;        /* было 17px → стало 14px (шрифт меньше) */
    font-weight: 400;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
    text-align: left;
}

.menu-category-item:last-child {
    border-bottom: none;
}

.menu-category-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

   /* --- Стили для заголовка --- */
    .section-title {
        font-family: 'Ubuntu', sans-serif; /* Применяем шрифт Ubuntu */
        font-size: 30px;                   /* Большой размер шрифта (можно настроить) */
        font-weight: 700;                  /* Используем полужирное начертание */

        text-align: center;                /* Выравнивание текста по центру */

        margin-top: 0px;                  /* Средний отступ сверху (можно настроить) */
                     /* Средний отступ снизу (можно настроить) */

        color: #333;                       /* Цвет текста (темно-серый) */
        padding: 20px 10px;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.1); 
    }
    
    
     
    .welcome{text-align:center;padding:18px 14px 4px}
.welcome h1{font-family:'Ubuntu';font-size:24px;margin:0 0 6px;color:#222}
.we   lcome p{color:#777;font-size:15px;margin:0}
 
 
  
    /* секции категорий — по умолчанию скрыты */
.cat-section{ max-width:1100px; margin:0 auto 10px; padding:0 14px }
.cat-section.open{display:block; animation:catFade .25s ease}
@keyframes catFade{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.cat-card.active{outline:3px solid #ff6a00; outline-offset:-3px}

/* кнопка свернуть внутри секции */
.cat-close-bar{
  display:flex; justify-content:flex-end; margin:14px 0 6px;
}
.cat-close-bar button{
  border:none; background:#f0f0f0; padding:8px 14px; border-radius:18px;
  font-weight:600; cursor:pointer;
}
.cat-close-bar button:hover{background:#ffd9bf}
 
 /* ===== СЕТКА КАТЕГОРИЙ ===== */
.cat-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:14px;
  padding:14px;
  max-width:1100px;
  margin:0 auto;
}
.cat-card{
  position:relative;
  display:flex;
  align-items:flex-start;
  min-height:150px;
  padding:16px;
  border-radius:16px;
  box-shadow:none !important;
  border:none !important;
  cursor:pointer;
  overflow:hidden;
  text-decoration:none;
  transition:transform .15s;
  -webkit-tap-highlight-color:transparent;   /* ← ДОБАВЬ ЭТУ СТРОКУ (убирает серый блик на тапе) */
}

/* ЦВЕТА ПО КАТЕГОРИЯМ */
.cat-card[data-tab="dom"]    {background:linear-gradient(135deg,#f3e5f5,#e1bee7);}
.cat-card[data-tab="dacha"]  {background:linear-gradient(135deg,#e8f5e9,#c8e6c9);}
.cat-card[data-tab="instr"]  {background:linear-gradient(135deg,#e3f2fd,#bbdefb);}
.cat-card[data-tab="avto"]   {background:linear-gradient(135deg,#fff3e0,#ffe0b2);}
.cat-card[data-tab="kuhnya"] {background:linear-gradient(135deg,#fffde7,#fff9c4);}
.cat-card[data-tab="ucenka"] {background:linear-gradient(135deg,#f5f5f5,#eeeeee);}

.cat-card:hover{
  transform:translateY(-3px);   /* только приподнимается, цвет остаётся */
}

.cat-card:active{
  transform:translateY(-1px);   /* лёгкое нажатие пальцем */
}
.cat-name{
  font-size:17px;
  font-weight:700;
  color:#222;
  max-width:60%;
  line-height:1.25;
  z-index:2;
}
.cat-card img{
  position:absolute;
  right:8px;
  bottom:8px;
  max-width:48%;
  max-height:75%;
  object-fit:contain;
  background:transparent !important;
  box-shadow:none !important;
}

@media(max-width:480px){
  .cat-name{font-size:14px}
  .cat-card{min-height:120px}
}

  
.deal-day{
  max-width:360px; margin:4px auto 14px; padding:10px 10px 12px;
  border-radius:14px;
  background:linear-gradient(135deg,#ff512f,#ff8a00,#ff512f);
  background-size:200% 100%;
  animation:dealGrad 6s linear infinite;
  box-shadow:0 6px 18px rgba(255,90,0,.3);
  overflow:hidden;
}
@keyframes dealGrad{0%{background-position:0 0}100%{background-position:200% 0}}

.deal-head{
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:6px; margin-bottom:10px;
}
.deal-title-wrap{display:flex;align-items:center;gap:6px}

.deal-title{
  font-family:'Ubuntu',sans-serif; font-size:17px; font-weight:700;
  color:#fff; margin:0; text-shadow:0 2px 4px rgba(0,0,0,.2);
}

.deal-timer{display:flex; align-items:center; gap:3px}
.deal-time-box{
  background:rgba(0,0,0,.25); border-radius:8px; padding:4px 6px;
  min-width:34px; text-align:center; backdrop-filter:blur(2px);
}
.deal-time-box span{
  display:block; font-family:'Ubuntu',sans-serif; font-size:16px;
  font-weight:700; color:#fff; line-height:1;
}
.deal-time-box small{font-size:8px; color:#ffe; opacity:.85; text-transform:uppercase}
.deal-colon{color:#fff; font-size:15px; font-weight:700; align-self:flex-start; margin-top:3px}

.deal-slider-wrap{position:relative}
.deal-track{
  display:flex; gap:9px; overflow-x:auto;
  padding:2px 2px 4px;
  -ms-overflow-style:none; scrollbar-width:none;
}
.deal-track::-webkit-scrollbar{display:none}

.deal-card{
  flex: 0 0 31%;        /* ← 3 карточки в ряд (было ~47%) */
  max-width: 31%;
  background:#fff; border-radius:11px; padding:0 0 8px;
  display:flex; flex-direction:column; cursor:pointer;
  box-shadow:0 3px 10px rgba(0,0,0,.12); position:relative;
  transition:transform .2s ease; overflow:hidden;
}
.deal-card:hover{transform:translateY(-3px)}

.dc-img{
  width:100%; overflow:hidden; background:#fff; display:block; border-radius:0;
}
.dc-img img{
  width:100%; height:auto; object-fit:contain; display:block; border-radius:0;
}

.deal-badge{
  position:absolute; top:6px; left:6px; z-index:2;
  background:#e62020; color:#fff; font-size:11px; font-weight:800;
  padding:3px 8px 3px 6px; border-radius:16px; font-family:'Ubuntu',sans-serif;
  display:flex; align-items:center; gap:4px;
  box-shadow:0 2px 6px rgba(230,32,32,.5);
}
.deal-badge__dot{
  width:7px; height:7px; border-radius:50%; background:#fff;
  box-shadow:0 0 0 0 rgba(255,255,255,.8);
  animation:dotPulse 1.2s infinite;
}
@keyframes dotPulse{
  0%{box-shadow:0 0 0 0 rgba(255,255,255,.7)}
  70%{box-shadow:0 0 0 6px rgba(255,255,255,0)}
  100%{box-shadow:0 0 0 0 rgba(255,255,255,0)}
}

.dc-prices{
  display:flex; align-items:baseline; gap:5px;
  justify-content:center; margin:6px 0 6px;
}
.dc-old{font-size:11px; color:#aaa; text-decoration:line-through}
.dc-new{font-size:17px; font-weight:700; color:#e62020}
.dc-new::after{content:' р.'; font-size:10px}

.dc-btn{
  display:block !important;
  width:88% !important; max-width:none !important;
  margin:0 auto !important;
  padding:6px 0 !important;
  border-radius:60px !important;
  background:linear-gradient(135deg,#ff8a00,#ff3d00,#e60000) !important;
  background-size:200% 100% !important;
  color:#fff !important; font-weight:800 !important; font-size:12px !important;
  text-decoration:none !important; text-align:center !important;
  text-transform:uppercase !important; letter-spacing:.5px !important;
  box-shadow:0 4px 12px rgba(255,60,0,.5) !important;
  animation:btnGlow 2.5s ease-in-out infinite, btnShine 3s linear infinite !important;
  transition:transform .15s ease !important;
  border:none !important;
}
.dc-btn:hover{transform:scale(1.04) !important}
.dc-btn:active{transform:scale(.97) !important}

@keyframes btnGlow{
  0%,100%{box-shadow:0 4px 12px rgba(255,60,0,.45)}
  50%{box-shadow:0 4px 18px rgba(255,60,0,.8)}
}
@keyframes btnShine{
  0%{background-position:0 0}
  100%{background-position:200% 0}
}
.deal-card .dc-btn{
  margin-top:auto; text-align:center; padding:7px; border-radius:60px;
  background:linear-gradient(335deg,#4f8023,#98e83b); color:#fff;
  font-weight:700; font-size:12px; text-decoration:none;
}

.deal-arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:5;
  width:30px; height:30px; border:none; border-radius:50%;
  background:rgba(255,255,255,.95); color:#ff5a00; font-size:20px; line-height:1;
  cursor:pointer; box-shadow:0 2px 8px rgba(0,0,0,.25);
  display:flex; align-items:center; justify-content:center;
}
.deal-prev{left:-2px}
.deal-next{right:-2px}

@media(max-width:480px){
  .deal-card{flex:0 0 47%; max-width:47%}
  .deal-title{font-size:20px}
  .deal-time-box{min-width:30px; padding:3px 5px}
  .deal-time-box span{font-size:14px}
}

 
/* ===== ТОВАР В КАТАЛОГЕ НА РАСПРОДАЖЕ ДНЯ ===== */

/* кнопка "ПОДРОБНЕЕ" на распродаже — оранжевая, скруглённая как зелёная */
.product-card.on-deal .button{
  background:linear-gradient(135deg,#ff9d00,#ff5e00) !important;
  background-size:200% 100% !important;
  color:#fff !important;
  border:none !important;
  border-radius:80px !important;        /* ← такое же как у зелёной кнопки */
  box-shadow:0 8px 20px rgba(255,94,0,.45) !important;
  animation:btnGlow 2.5s ease-in-out infinite, btnShine 3s linear infinite !important;
}

/* контейнер .text делаем прозрачным (полосу рисует сам span) */
.product-card.on-deal .text{
  background:transparent !important;
  box-shadow:none !important;
  padding:0 !important;
}

/* САМ span превращаем в оранжевую полосу МЕГАРАСПРОДАЖА */
.product-card.on-deal .text span{
  background:linear-gradient(135deg,#ff9d00,#ff5e00) !important; /* перекрываем красный */
  color:transparent !important;          /* прячем старый текст без font-size:0 */
  position:relative !important;
  border-radius:-10px !important;          /* ← скругление, не квадрат */
  padding:4px 20px !important;
  box-shadow:0 2px 10px rgba(255,94,0,.45) !important;
  animation:megaPulse 2s ease-in-out infinite !important;
  white-space:nowrap !important;
}
/* новый текст поверх */
.product-card.on-deal .text span::after{
  content:"МЕГАРАСПРОДАЖА";
  position:absolute;
  left:0; 
  right:0; 
  top:50%;
  transform:translateY(-50%);
  text-align:center;        /* ← по центру */
  color:#fff;
  font-size:12px;
  font-weight:800;
  letter-spacing:0 !important;  /* ← убрал разрядку, она толкала вправо */
  white-space:nowrap;
  padding:0 !important;
}

@keyframes megaPulse{
  0%,100%{box-shadow:0 2px 10px rgba(255,94,0,.4)}
  50%{box-shadow:0 2px 18px rgba(255,94,0,.85)}
}




/* Стили для каждой отдельной карточки товара (без изменений, text-align: center все еще для кнопки/заголовка) */


/* Для заголовка товара (если ты его добавил в HTML) (без изменений) */
.product-card .product-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
    text-align: center;
}

/* Стили для изображений товаров внутри карточки (без изменений, уже центрировано с margin: auto) */


/* Стили для блока цен */
/* ===== КРАСИВЫЙ ЦЕННИК (финал) ===== */
.product-card .price_block{
  flex-grow:0;            /* было 1 */
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center; /* было flex-end */

  padding:0 5px 0px;
  width:100%;
  margin:16px 0 16px 0px;
}

/* старая цена — мелкая, серая, зачёркнутая */
.product-card .price_item.old{
  display:flex;
  align-items:baseline;
  justify-content:center;
  width:100%;
  margin:0;
  line-height:1;
}
.product-card .price_item.old .old-price-label{ display:none; }
.product-card .price_item.old .value{
  font-size:22px !important;   /* было 18px — стало читаемее */
  text-decoration:line-through;
  text-decoration-color:#bbb;
  color:#999;
  font-weight:500;
  display:inline-block;
  line-height:1;
  margin:0;
  padding:0;
}
.product-card .price_item.old .value::after{
  content:" р.";
  font-size:12px;
  color:#999;
}

/* новая цена + бейдж */
.product-card .price_item.new{
  display:flex;
  flex-direction:column-reverse; /* бейдж над ценой */
  align-items:center;
  width:100%;
  margin:0;
  line-height:1;
}
.product-card .price_item.new .text{
  display:flex;
  justify-content:center;
  margin:0 0 6px 0;
  line-height:1;
}
.product-card .price_item.new .text span{
  background:#e62020;
  color:#fff;
  font-size:12px;
  font-weight:700;
  padding:3px 10px;
  border-radius:20px;
  font-family:'Ubuntu',sans-serif;
  white-space:nowrap;
}
.product-card .price_item.new .value{
  font-size:40px !important;
  font-weight:700;

  display:block;
  line-height:1;
  margin:0;
  padding:0;
  letter-spacing:-0.5px;
}
.product-card .price_item.new .value::after{
  content:" р.";
  font-size:17px;
  font-weight:600;

}

.product-card .price_item.new p{
  font-size:11px !important;
  margin-top:4px;
  color:#666;
  font-weight:500;
  line-height:1.2;
}

.product-card .price_item.new p {
    font-size: 11px !important;
    margin-top: 4px;
    color: #666;
    font-weight: 500;
    line-height: 1.2;
}

/* Стили для кнопки "Подробнее" (без изменений, текст внутри кнопки остается центрированным) */


/* Убираем старые <br> теги (без изменений) */
.offer_section.offer3 br {
    display: none;
}

/* Медиа-запрос для очень узких экранов (адаптируем align-items) */
@media (max-width: 360px) {
    .products-grid-container {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 10px;
    }
    .product-card {
        padding: 10px;
        min-height: auto;
    }
    .product-card .offer_image {
        height: 200px;
    }
    .product-card .product-title {
        font-size: 18px;
    }
    /* Убедимся, что price_block тоже выравнивается по левому краю в одной колонке */
    .product-card .price_block {
        align-items: flex-start;
        padding-left: 5px;
    }
}


/* ===== ФУТЕР — настраивай тут ===== */

.footer_section {
    background: #f5f5f5;          /* фон футера */
    color: #333;                  /* основной цвет текста */
    font-family: Gilroy, sans-serif;
    text-align: center;
}

/* все ссылки в футере */
.footer_section a {
    color: #333;                  /* цвет ссылок (НЕ синий) */
    text-decoration: none;        /* без подчёркивания */
    transition: color 0.2s ease;
}
.footer_section a:hover {
    color: #4f8023;               /* цвет при наведении (зелёный) */
}
.footer_section a:visited {
    color: #333;                  /* чтоб посещённые не были фиолетовыми */
}

/* телефон */
.footer_phone {
    font-size: 23px;
    font-weight: bold;
    padding: 5px;
}

/* заголовок "Звоните..." */
.footer_title {
    font-size: 20px;
    padding: 0px;
}

/* время работы */
.footer_time {
    font-size: 14px;
    padding: 10px 0;
}

/* реквизиты ИП */
.footer_info {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin: 2px 0;
}

/* акция */
.footer_promo {
    font-size: 13px;
    padding: 10px;
    font-weight: bold;
}

/* блок документов */
.footer_docs {
    font-size: 16px;
    line-height: 0.4;
    padding: 5px;
}
.footer_docs a {
    display: inline-block;
    margin: 6px 0;
}


/* Убираем гигантский отступ сверху у блока "О магазине" */
.about-shop {
    max-width: 100%;
    margin: 0;
    padding: 0 30px;
    box-sizing: border-box;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    text-align: justify;     /* ВОТ ЭТО — текст растягивается по ширине */
}
.about-shop p {
    margin: 14px 0;
}

/* Убираем отступ у футера, который давал класс .content */
.footer_section {
    margin-top: 20px !important; /* Вместо 80px ставим 20px */
    padding: 30px 10px;
    background-color: #fcfcfc;
    border-top: 1px solid #eee;
}

/* Чистим форму от внутренних раздутых секций */
.offer_section.offer3 .ftco-section {
    padding: 0 !important;
    margin: 0 !important;
}


/* ===== МОБИЛЬНЫЙ ВИД НА ПК ===== */
/* Ограничиваем ширину всего контента, как на телефоне */

.main_wrapper,
.offer_section.offer3 {
  max-width: 500px !important;   /* ← ширина "телефона". Меняй тут */
  margin: 0 auto !important;     /* по центру */
}

/* Все сетки товаров — тоже в эту ширину */
.products-grid-container,
.cat-grid,
.cat-section {
  max-width: 500px !important;   /* ← такая же ширина */
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Распродажа дня — тоже по центру + УМЕНЬШЕНИЕ ВСЕГО БЛОКА */
.deal-day {
  max-width: 560px !important;   /* ← ШИРЕ, чтобы влезло 3 товара */
  transform: none;               /* убираем масштаб */
  margin: 4px auto 14px !important;
}

/* Меню, шапка, футер — оставляем на всю ширину (не трогаем) */


/* CATALOG_ALIGNMENT_AND_GAPS_FIX_START */

html, body {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

.main_wrapper,
.offer_section.offer3 {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

/* Единый вид всех сеток */
.products-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 0px !important;      /* убрать боковые поля */
    margin: 0 !important;
    width: 100%;
    box-sizing: border-box;
    align-items: stretch; 
    margin-bottom: 16px !important;
}

/* Карточки не должны раздвигать сетку */
.product-card {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    border-radius: 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100% !important;     /* ⬅️ ОДНА строка height, с !important */
    overflow: hidden;
}

/* Кнопка по центру, без сдвига */
.product-card .button {
    width: 88% !important;
    max-width: 88% !important;
    height: 46px !important;
    box-sizing: border-box;
    font-size: 15px;
    text-decoration: none;
    border-radius: 80px;
    background: linear-gradient(335deg, #4f8023, #98e83b);
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(79, 128, 35, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;

    margin-top: auto !important;     /* ⬅️ прижимает кнопку ВНИЗ */
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 16px !important;
}

/* Картинки не должны раздвигать карточку */
.product-card .offer_image,
.product-card img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px 12px 0 0;   /* скруглить только верх */
    margin: 0;
}

/* Пустые якоря внутри сетки не должны становиться третьей плиткой */
.products-grid-container > div[id]:not(.product-card) {
    position: absolute;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
}
/* CATALOG_ALIGNMENT_AND_GAPS_FIX_END */


.lead-modal-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.6);
  z-index:20000; display:none;
  align-items:center; justify-content:center; padding:16px;
}
.lead-modal-overlay.open{ display:flex; animation:leadFade .25s ease; }
@keyframes leadFade{from{opacity:0}to{opacity:1}}

.lead-modal{
  background:#fff; border-radius:18px; width:100%; max-width:360px;
  padding:18px 20px 22px; position:relative; text-align:center;
  box-shadow:0 10px 40px rgba(0,0,0,.3); animation:leadUp .3s ease;
}
@keyframes leadUp{from{transform:translateY(20px);opacity:0}to{transform:none;opacity:1}}

.lead-close{
  position:absolute; top:8px; right:12px; border:none; background:none;
  font-size:30px; line-height:1; color:#999; cursor:pointer;
}
.lead-close:hover{ color:#333; }

.lead-img{
  width:60%;
  max-height:350px;
  object-fit:contain;
  background:#f8f8f8;
  display:block;          /* ← обязательно */
  margin:0 auto;          /* ← центрирует по горизонтали */
}
.lead-title{
  font-family:'Ubuntu',sans-serif; font-size:20px; font-weight:700;
  color:#222; margin:0 0 4px;
}
.lead-sub{ color:#777; font-size:14px; margin:0 0 14px; }

.lead-form{ display:flex; flex-direction:column; gap:10px; }
.lead-form input{
  width:100%; box-sizing:border-box; padding:14px 16px;
  border:1.5px solid #ddd; border-radius:12px; font-size:16px;
  font-family:'Open Sans',sans-serif; outline:none;
}
.lead-form input:focus{ border-color:#4f8023; }

.lead-submit{
  width:100%; padding:15px; border:none; border-radius:12px;
  background:linear-gradient(335deg,#4f8023,#98e83b); color:#fff;
  font-size:17px; font-weight:700; cursor:pointer;
  text-transform:uppercase; letter-spacing:.5px;
  font-family:'AvenirNextCyr',sans-serif;
  transition:filter .2s ease;
}
.lead-submit:hover{ filter:brightness(1.08); }

.lead-success{
  display:none; padding:20px 10px; font-size:17px;
  color:#1b5e20; font-weight:600; line-height:1.4;
}
body.modal-open{ overflow:hidden; }


/* убираем синие ссылки в футере */
.footer_section a {
    color: #333 !important;
    text-decoration: none !important;
}
.footer_section a:hover {
    text-decoration: underline !important;
}
.footer_section a:visited {
    color: #333 !important;
}
