/* Общие стили */
body {
    padding: 0px;
    margin: 0px;
    font-family: Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    width: calc(100vw - var(--scrollbar-width));
    background: #ffffff;
    font-size: 18px;
}

/* Стили для скроллбара */
html {
    scroll-padding-top: 0 !important;
    --wp-admin--admin-bar--height: 0 !important;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}


.container h2 {
    font-size: 20px!important;
    margin-block-start: 22px!important;
    margin-block-end: 0px!important;
    margin-inline-start: 0px!important;
    margin-inline-end: 0px!important;
}

h2.polkov-sp__reviews-title {
    margin-block-end: 10px!important;
}


/* Стили контейнеров */
.container {
    max-width: 1715px;
    margin: 0 auto;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
}

.container_text {
    max-width: 1715px;
    margin: 0 auto;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
}

.container_footer {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
}

/* Стили сайта */

header {
    padding-bottom: 10px;
}

/* Верхнее меню */
.top_menus {
    position: relative;
    width: 100%;
    height: 20px;
    background: #990900;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.top-menu {
    display: flex;
    list-style: none;
    margin: -1px 0px 0px 0px;
    padding: 0;
    gap: 15px;
}

.top-menu li {
    margin: 0;
    padding: 0;
}

.top-menu a {
    color: #d3d3d3;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.5s ease, transform 0.4s ease;
    display: block;
    padding: 1px 0px 0px 0px;
}

.top-menu a:hover {
    color: #FFC100;
    transition: 0.5s;
}

.top-menu .current-menu-item > a,
.top-menu .current_page_item > a {
    color: #f10842;
    font-weight: 600;
}

/* Основная шапка */
.basic_top {
    position: relative;
    width: 100%;
    height: 100px;
    background: #FFC100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 15px;
}

.logo-section {
    flex-shrink: 0;
    width: auto;
    order: 1;
}

.categories-section {
    flex-shrink: 0;
    width: auto;
    min-width: 120px;
    background: #990900;
    border-radius: 3px;
    order: 2;
}

.search-section {
    position: relative;
    flex: 1;
    max-width: 600px;
    margin: 0 5px;
    padding: 15px 0px 0px 0px;
    order: 3;
}

.links-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    width: auto;
    min-width: 120px;
    order: 4;
}

.buttons-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    width: auto;
    min-width: 120px;
    order: 5;
}

.site-logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.woocommerce-product-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-section .search-field {
    width: 100%;
    height: 45px;
    padding: 0 50px 0 20px;
    border: 2px solid #FFC100;
    font-size: 16px;
    background: #fff;
}

.search-section button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.search-section button svg {
    color: #000;
    width: 20px;
    height: 20px;
}

.links-section .sites-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.links-section .sites-menu li {
    margin: 0;
    padding: 0;
}

.links-section .sites-menu a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: block;
    font-size: 15px;
    font-weight: 700;
}

.links-section .sites-menu a:hover {
    color: #990900;
}

.header-link {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.5s ease;
    white-space: nowrap;
    padding: 3px 0px;
}

.header-link:hover {
    color: #5e5d5d;
    transition: 0.5s;
}

.buttons-section .vendor-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.buttons-section .vendor-menu li {
    margin: 0;
    padding: 0;
}

.buttons-section .vendor-menu a {
    padding: 7px 15px;
    border-radius: 3px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    background: #990900;
    color: #FFFFFF;
    display: block;
}

.buttons-section .vendor-menu a:hover {
    background: #7a0700;
}

/* Меню тегов */
.tag_products_menu {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 5px 0px;
    border-top: 2px solid #990900;
    border-bottom: 2px solid #990900;
}

.tags-menus {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0px;
    justify-content: space-between;
}

.tags-menus li {
    margin: 0;
    padding: 0;
}

.tags-menus a {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.5s ease, transform 0.4s ease;
    display: block;
    padding: 1px 0px 0px 0px;
}

.tags-menus a:hover {
    color: #990900;
    transition: 0.5s;
}

.tags-menus .current-menu-item > a,
.tags-menus .current_page_item > a {
    color: #f10842;
    font-weight: 600;
}

/* Стили для блоков */
.content-block, .slider-block {
    position: relative;
    height: 400px;
    margin: 5px 0;
    overflow: hidden;
}

/* Общие стили для блоков */
.block-40, .block-60 {
    float: left;
    text-transform: uppercase;
    border-radius: 7px;
}

/* Стили для content-block block-40 align-left */
.content-block.block-40.align-left {
    width: calc(40% - 10px);
    margin-right: 10px;
}

/* Стили для content-block block-40 align-right */
.content-block.block-40.align-right {
    width: calc(40% - 10px);
    margin-right: 10px;
}

/* Стили для slider-block block-40 align-right */
.slider-block.block-40.align-right {
    width: calc(40% - 0px);
    margin-right: 0px;
}

/* Стили для content-block block-60 align-left */
.content-block.block-60.align-left {
    width: calc(60% - 10px);
    margin-right: 10px;
}

/* Стили для content-block block-60 align-right */
.content-block.block-60.align-right {
    width: calc(60% - 0px);
    margin-right: 0px;
}

.container_text::after {
    content: "";
    display: table;
    clear: both;
}

.block-image, .slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.block-overlay, .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.block-content h2 {
    margin-block-start: 0px!important;
    margin-block-end: 18px!important;
    font-size: 28px;
}

.block-content h3 {
    margin-block-start: 0px!important;
    margin-block-end: 0px!important;
    font-size: 24px;
    padding-bottom: 20px;
}

.block-content, .slide-content {
    color: white;
    padding: 0px 0px 0px 60px;
    max-width: 90%;
    position: relative;
    z-index: 3;
}

.block-content ul,
.slide-content ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.block-content ul li,
.slide-content ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.block-content ul li:before,
.slide-content ul li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 21px;
    height: 21px;
    background-image: url('../img/right_icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Выравнивание контента */
.align-left .block-content,
.align-left .slide-content {
    text-align: left;
    margin-right: auto;
    margin-left: 0;
}

.align-right .block-content,
.align-right .slide-content {
    margin-right: 0;
    padding-right: 20px;
}

/* Специальные стили для списков в правом выравнивании */
.align-right .block-content ul,
.align-right .slide-content ul {
    text-align: right;
}

.align-right .block-content ul li,
.align-right .slide-content ul li {
    padding-left: 0;
    padding-right: 25px;
}

.align-right .block-content ul li:before,
.align-right .slide-content ul li:before {
    left: auto;
    right: 0;
}

.custom-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #990900;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.5s ease;
    border: 2px solid #FFFFFF;
}

.custom-button:hover {
    background-color: #b41206;
    transition: 0.5s;
}

/* Стили для слайдера */
.slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
    transform: translateX(100%);
}

.slide.active {
    transform: translateX(0);
    z-index: 2;
}

.slide.prev {
    transform: translateX(-100%);
    z-index: 1;
}

.slide.next {
    transform: translateX(100%);
    z-index: 1;
}

.multiple-slider .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    transition: background 0.3s ease;
}

.multiple-slider .slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.multiple-slider .slider-prev {
    left: 10px;
}

.multiple-slider .slider-next {
    right: 10px;
}

.single-slider .slider-arrow {
    display: none;
}

.align-right .block-button {
    float: right;
}

.subscriptions-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 5px 0;
}

.subscriptions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0px;
}

.subscription-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.subscription-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.subscription-image {
    position: relative; /* для позиционирования бейджа */
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.subscription-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.subscription-card:hover .subscription-image img {
    transform: scale(1.05);
}

.subscription-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.subscription-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #333;
}

.subscription-description {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.subscription-description p {
    margin: 0 0 10px 0;
}

.subscription-description p:last-child {
    margin-bottom: 0;
}

.subscription-price-container {
    margin-top: auto;
}

.subscription-price {
    font-size: 20px;
    font-weight: 700;
    color: #2c5aa0;
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #eee;
    margin-top: 15px;
}

/* Цена со скидкой в карточке подписки */
.subscription-price--sale {
    display: flex;
    align-items: baseline;
    gap: 10px;
    justify-content: center;
}

.subscription-price__old {
    text-decoration: line-through;
    opacity: 0.65;
    font-weight: 500;
}

.subscription-price__new {
    font-weight: 700;
    line-height: 1.2;
}

.no-subscriptions {
    text-align: center;
    font-size: 18px;
    color: #666;
    grid-column: 1 / -1;
    padding: 60px 0;
}

/* ===========================
   Бейдж "Хит продаж"
   =========================== */
.subscription-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    z-index: 2;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    user-select: none;
    pointer-events: none; /* чтобы клики всегда попадали по карточке/картинке */
    letter-spacing: 0.2px;
}

.subscription-badge--hit {
    background: linear-gradient(135deg, #ff7a00 0%, #ff3d6e 100%);
}

.subscription-badge__icon {
    width: 16px;
    height: 16px;
    display: block;
}

.subscription-badge__text {
    display: block;
    transform: translateY(0.5px); /* легкое визуальное выравнивание */
}

/* Лёгкая анимация появления бейджа при ховере карточки */
.subscription-card:hover .subscription-badge {
    transform: translateY(-1px);
}

img.img_handmade {
    width: 900px;
}

.hands{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    box-sizing: border-box;
    margin-top: 10px;
}

.hands_item,
.hands_item_full{
    background: var(--hands-bg);
    border-radius: var(--hands-radius);
    box-shadow: var(--hands-shadow);
    padding: 16px 20px;
    box-sizing: border-box;
    margin: 15px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
    border-radius: 7px;
}

/* На случай, если .hands_item_full окажется внутри .hands — растянуть на всю ширину ряда */
.hands .hands_item_full{ grid-column: 1 / -1; }

section.pc-archive--handmade {
    margin-top: 10px;
}

section.pc-archive--sale {
    margin-top: 15px;
}




/* === Регистрация: анимации заголовка и панелей === */
.pc-archive-title {
  transition: opacity .25s ease, transform .25s ease;
  will-change: opacity, transform;
}
.pc-archive-title.is-fading-out {
  opacity: 0;
  transform: translateY(-6px);
}
.pc-archive-title.is-fading-in {
  opacity: 1;
  transform: translateY(0);
}

/* Переключатели типов регистрации */
.reg-type-switch {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0 18px;
    justify-content: center;
}
.btn-switch {
  appearance: none;
  border: 1px solid #e0e3ea;
  background: #f7f8fc;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .06s ease, color .2s ease;
}
.btn-switch:hover { background: #eef2ff; border-color: #c7d2fe; }
.btn-switch.is-active { background: #1f6feb; border-color: #1f6feb; color: #fff; }
.btn-switch:active { transform: translateY(1px); }
.btn-switch:focus-visible { outline: 2px solid #1f6feb; outline-offset: 3px; }

/* Панели с плавным разворачиванием */
.reg-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height .35s ease, opacity .25s ease, transform .25s ease;
}
.reg-panel.is-open {
  max-height: 1600px; /* достаточно для формы; при необходимости увеличьте */
  opacity: 1;
  transform: translateY(0);
}

/* Уведомления над формой */
.reg-notices {
  display: grid;
  gap: 10px;
  margin: 6px 0 14px;
}
.reg-notice {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease;
}
.reg-notice.is-show {
  opacity: 1;
  transform: translateY(0);
}
.reg-notice.is-hide {
  opacity: 0;
  transform: translateY(-6px);
}
.reg-notice--error { background: #fee2e2; border: 1px solid #fecaca; color: #7f1d1d; }
.reg-notice--success { background: #dcfce7; border: 1px solid #bbf7d0; color: #064e3b; }
.reg-notice--info { background: #eff6ff; border: 1px solid #dbeafe; color: #1e3a8a; }

/* Форма */
.reg-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin-bottom: 16px;
}
.reg-form__row { display: flex; flex-direction: column; gap: 6px; }
.reg-label {
  font-weight: 600;
}
.reg-label.req::after {
  content: " *";
  color: #e11d48; /* красная звёздочка */
}
.reg-help {
  font-size: 12px;
  color: #6b7280;
}
.reg-form input[type="text"],
.reg-form input[type="password"],
.reg-form input[type="email"],
.reg-form input[type="tel"] {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 8px 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.reg-form input:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147,197,253,.35);
}

/* Чекбокс и кнопка */
.reg-form__agree {
  grid-column: 1 / -1;
  margin-top: 2px;
}
.reg-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.reg-form__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end; /* кнопка справа */
  margin-top: 4px;
}
.btn-primary {
  border: 1px solid #1f6feb;
  background: #1f6feb;
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s ease, transform .06s ease, box-shadow .2s ease;
}
.btn-primary:hover { opacity: .95; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* Адаптив */
@media (max-width: 768px) {
  .reg-form {
    grid-template-columns: 1fr;
    gap: 5px 18px;
  }
}

#subscription-step {margin-top: 20px;}

/* Подсветка выбранной карточки подписки */
  .subscription-card.is-selectable { cursor: pointer; }
  .subscription-card.is-selected {
    outline: 2px solid #1f6feb !important;
    outline-offset: 0;
    box-shadow: 0 6px 22px rgba(31, 111, 235, .18) !important;
  }
  .subscription-card.is-selectable:hover {
    box-shadow: 0 4px 18px rgba(31, 111, 235, .10);
  }

  /* Обёртка под сеткой для выравнивания кнопки справа */
  .subscription-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
  }

  /* Сама панель без fixed-позиционирования */
  .subscription-paybar {
    position: static; /* НЕ фиксируем ко всему экрану */
    background: rgba(255,255,255,.9);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 6px 22px rgba(0,0,0,.08);
  }


  .polkov-sp__buy {
    width: 250px;
    margin: 15px 0px;
  }

  .polkov-sp__buy button.pc-btn-buy {
    font-size: 16px;
  }

a.polsov {
    text-decoration: none;
    color: #990900;
    transition: 0.5s;
}

a.polsov:hover {
    color: #490702;
    transition: 0.5s;
}



/* ===== Контакты: стабильная адаптивная сетка без переполнения ===== */

/* Блок-обёртка */
.contacts-wrap {
  margin-top: 32px;
  margin-bottom: 48px;
  width: 100%;
}

/* Общая защита от переполнения внутри секции */
.contacts-wrap, .contacts-wrap * {
  box-sizing: border-box;
}

/* ===== Мобильная база (≤1035px): одна колонка, ничего не вылезает ===== */
.contacts-wrap .contacts-grid {
  /* вместо grid на мобайле — блоковая раскладка, чтобы гарантированно не
     наслаивались унаследованные сетки/флоаты темы */
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.contacts-wrap .contacts-grid > * {
  /* каждая «колонка» становится блоком на 100% ширины */
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  float: none !important;        /* гасим возможные флоаты темы */
  margin: 0 0 24px 0;
}

.contacts-wrap .contacts-grid > *:last-child {
  margin-bottom: 0;
}

/* Левая карточка и блок "Реквизиты" — ОДИНАКОВЫЙ СТИЛЬ */
.contacts-wrap .contacts-card,
.contacts-wrap .contacts-requisites {
  background: #FFC100;
  border: 2px solid #990900;
  border-radius: 15px;
  padding: 20px 22px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.07);

  /* центрируем контент (требование) */
  display: flex;
  flex-direction: column;
  justify-content: center;   /* по вертикали */
  align-items: center;       /* по горизонтали */
  text-align: center;

  min-width: 0;
  max-width: 100%;
}

/* Поле/строки внутри карточки */
.contacts-wrap .contacts-field {
  width: 100%;
  max-width: 640px;          /* комфортная длина строк */
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: anywhere;   /* защита от длинных слов/ссылок */
}
.contacts-wrap .contacts-field + .contacts-field { margin-top: 18px; }

.contacts-wrap .contacts-field__label {
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.25;
  font-size: 24px;       /* ваша правка */
  color: #990900;        /* ваша правка */
}
.contacts-wrap .contacts-field__value { line-height: 1.5; }

/* Телефон: цвета/переходы — как просили */
.contacts-wrap .contacts-phone {
  text-decoration: none;
  display: inline-block;
  color: #000000;
  transition: color 0.3s ease;
}
.contacts-wrap .contacts-phone:hover {
  text-decoration: none;
  color: #f3f3f3;
  transition: color 0.3s ease;
}

/* Правая колонка (карта) */
.contacts-wrap .contacts-map__canvas {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 340px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f3f3;
  border: 1px solid rgba(0,0,0,0.08);
  position: relative;
  display: block;
}

.contacts-wrap .contacts-map__error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  text-align: center;
  background: rgba(255,255,255,0.9);
  font-size: 14px;
  line-height: 1.4;
}

/* ===== Заголовок и блок "Реквизиты" ===== */
.contacts-wrap .contacts-subtitle {
  margin-top: 28px;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.25;
  text-align: center;        /* по центру — требование */
  width: 100%;
}

/* Внутренняя обёртка реквизитов (ограничение ширины и переносы) */
.contacts-wrap .contacts-requisites__inner {
  width: 100%;
  max-width: 920px;          /* комфортная ширина текста для реквизитов */
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* Доп. твики для очень узких экранов */
@media (max-width: 480px) {
  .contacts-wrap .contacts-card { padding: 16px; }
  .contacts-wrap .contacts-map__canvas { min-height: 300px; }
  .contacts-wrap .contacts-requisites { padding: 16px; }
}

/* ===== Десктопная сетка (≥1036px): две колонки, правая чуть шире ===== */
@media (min-width: 1036px) {
  .contacts-wrap .contacts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); /* правая шире */
    gap: 24px;
    align-items: stretch;
    justify-items: stretch;
  }

  /* возвращаем «нормальный» внешний вид элементов внутри грида */
  .contacts-wrap .contacts-grid > * {
    margin: 0;               /* убираем нижние маргины, теперь управляет gap */
  }

  .contacts-wrap .contacts-map__canvas { min-height: 380px; }
}

/* Шире — немного усиливаем правую колонку, не допуская переполнения */
@media (min-width: 1280px) {
  .contacts-wrap .contacts-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr);
  }
  .contacts-wrap .contacts-map__canvas { min-height: 400px; }
}

@media (min-width: 1600px) {
  .contacts-wrap .contacts-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }
  .contacts-wrap .contacts-map__canvas { min-height: 420px; }
}

@media (min-width: 1920px) {
  .contacts-wrap .contacts-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.24fr);
  }
  .contacts-wrap .contacts-map__canvas { min-height: 440px; }
}




/* ===== Заголовок раздела под H1 ===== */
.blog-arch__subtitle {
  margin: 36px 0 20px;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

/* ===== Рубрики (категории) ===== */
.blog-cats {
  margin: 20px 0 30px;
}

.blog-cats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.blog-cat {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.blog-cat:hover {
  transform: translateY(-2px);
  border-color: #e4e4e4;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

.blog-cat:focus-visible {
  outline: 3px solid rgba(0, 206, 27, .35);
  outline-offset: 2px;
}

/* Максимальная высота изображения + выравнивание по центру */
.blog-cat__figure {
  padding: 0px;
}

.blog-cats__grid figure {
    margin-block-start: 1em!important;
    margin-block-end: 0em!important;
    margin-inline-start: 0px!important;
    margin-inline-end: 0px!important;
}

.blog-cat__img {
  display: block;
  width: auto;         /* не растягиваем по ширине */
  max-width: 100%;     /* но не больше контейнера */
  height: auto;
  max-height: 160px;   /* регулируемая максимальная высота */
  margin: 0 auto;      /* центрирование, чтобы не «уезжало вправо» */
}

.blog-cat__title {
  padding: 12px 14px 14px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

/* ===== Список постов ===== */
.blog-posts {
  margin: 10px 0 40px;
}

.blog-posts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.blog-post {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-post__card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.blog-post:hover .blog-post__card {
  transform: translateY(-2px);
  border-color: #e4e4e4;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}

.blog-post:focus-visible .blog-post__card {
  outline: 3px solid rgba(0, 206, 27, .35);
  outline-offset: 2px;
}

/* Превью и бейдж */
.blog-post__thumb-wrap {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: #f4f4f4;
}

.blog-post__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.blog-post:hover .blog-post__thumb {
  transform: scale(1.03);
}

.blog-post__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #00CE1B;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  pointer-events: none;
}

/* Текстовая часть карточки поста */
blog-post__body,
.blog-post__body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-post__title {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0;
}

.blog-post__excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

.blog-post__more {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: #0a7d0e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== Пагинация ===== */
.blog-arch__pagination {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.blog-arch__pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-arch__pagination li a,
.blog-arch__pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  background: #fff;
  font-size: 14px;
  color: #333;
}

.blog-arch__pagination li a:hover {
  border-color: #00CE1B;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.blog-arch__pagination li .current {
  border-color: #00CE1B;
  background: #00CE1B;
  color: #fff;
  font-weight: 700;
}

/* ===== Адаптив ===== */
@media (max-width: 1035px) {
  .blog-cats__grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
  }
  .blog-posts__grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .blog-cats__grid,
  .blog-posts__grid {
    grid-template-columns: 1fr;
  }
}



/* ===== single.php — обтекание картинки ===== */
.ar-single { margin-top: 25px; }
.ar-single::after {
  content: "";
  display: table;
  clear: both;            /* чтобы float не "протекал" дальше обёртки */
}

/* Картинка слева с обтеканием */
.ar-single-media {
  float: left;
  max-width: 500px;       /* по ТЗ: максимум 500px */
  width: 100%;
  margin: 0 24px 16px 0;  /* отступ справа и снизу от картинки */
}

.ar-single-media__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;    /* опционально */
}

/* Текст статьи — обтекает изображение справа и снизу */
.ar-single-body { }

/* Адаптив: <=1035px — картинка сверху, по центру, 90% ширины, текст ниже */
@media (max-width: 1035px) {
  .ar-single-media {
    float: none;
    margin: 0 auto 16px auto;
    max-width: none;
    width: 90%;
    text-align: center;
  }
}



/* Блок документов на страницах */
.pc-docs {
  margin-top: 24px;
  padding-top: 16px;
}

.pc-docs__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pc-docs__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #f0f0f0;
}

.pc-docs__item:last-child {
  border-bottom: 0;
}

.pc-docs__icon-wrap {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pc-docs__icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pc-docs__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pc-docs__link:hover,
.pc-docs__link:focus {
  text-decoration-thickness: 2px;
}

/* Cookie consent bar — по умолчанию ВИДИМА */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;                /* !!! ключевой момент: видно без JS */
  justify-content: center;
  z-index: 99999;
  pointer-events: none;         /* клики по странице проходят мимо области вне карточки */
  opacity: 1;
  transform: translateY(0);
  transition: opacity .25s ease, transform .25s ease;
}

.cookie-consent--visible {
  /* класс на будущее, если нужно доанимировать появление */
}

.cookie-consent--hide {
  opacity: 0 !important;
  transform: translateY(10px) !important;
}

.cookie-consent__inner {
  pointer-events: auto;         /* клики активны внутри карточки */
  width: min(980px, calc(90% - 32px));
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(23, 23, 23, .85); /* полупрозрачный фон */
  color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  backdrop-filter: blur(6px);
}

.cookie-consent__text {
  margin: 0;
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 1.45;
}

.cookie-consent__btn {
  flex: 0 0 auto;
  border: 0;
  background: #990900;          /* цвет по ТЗ */
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: filter .2s ease, transform .2s ease;
  white-space: nowrap;          /* кнопка справа от текста на широких экранах */
}

.cookie-consent__btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.cookie-consent__btn:active { transform: translateY(0); }

@media (max-width: 540px) {
  .cookie-consent__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .cookie-consent__btn { width: 100%; }
  .cookie-consent__text { font-size: 13px; }
}

a.button_regs {
  display: block;
  margin: 0 auto;
  text-align: center;
  background: #990900;
  color: #FFFFFF;
  width: 325px;
  padding: 10px 0px;
  border-radius: 9px;
  transition: 0.4s;
  text-decoration: none;
}

a.button_regs:hover {
  background: #690902;
  color: #FFFFFF;
  transition: 0.4s;
}

/* Сетка для блока инструкций */
.pc-instructions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0;
}

/* Элемент сетки (по желанию можно оставить пустым, для будущих модификаций) */
.pc-instructions-item {
  /* ничего обязательного здесь нет */
}

/* Внутренний белый блок с закруглением */
.pc-instructions-item__inner {
  background: #ffffff;
  border-radius: 12px;
  padding: 5px 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  height: 100%;
}

/* Убираем лишний отступ у последнего параграфа из редактора */
.pc-instructions-item__inner p:last-child {
  margin-bottom: 0;
}

/* Адаптивность: на планшетах — 2 колонки */
@media (max-width: 1280px) {
  .pc-instructions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Адаптивность: на мобильных — 1 колонка */
@media (max-width: 1035px) {
  .pc-instructions-grid {
    grid-template-columns: 1fr;
  }
}



















/* Медиа-запрос для мобильной версии - скрываем текст в меню */
@media (max-width: 1030px) {
    .header_store_manager.collapsed ~ .container_store_manager .menu_store_manager .store-menu-text,
    .menu_store_manager .store-menu-text {
        opacity: 0;
        visibility: hidden;
        width: 0;
        height: 0;
        overflow: hidden;
        position: absolute;
    }
    
    .header_store_manager.collapsed ~ .container_store_manager .menu_store_manager .store-menu-item,
    .menu_store_manager .store-menu-item {
        padding: 12px;
        justify-content: center;
    }
    
    .header_store_manager.collapsed ~ .container_store_manager .menu_store_manager .store-menu-icon,
    .menu_store_manager .store-menu-icon {
        margin-right: 0;
    }
    
    /* Показываем текст при наведении в мобильной версии */
    .header_store_manager.collapsed ~ .container_store_manager .menu_store_manager .store-menu-item:hover,
    .menu_store_manager .store-menu-item:hover {
        width: 180px;
        background-color: #4FC3F7;
        z-index: 100;
        left: 0;
        justify-content: flex-start;
        padding: 12px 20px;
    }
    
    .header_store_manager.collapsed ~ .container_store_manager .menu_store_manager .store-menu-item:hover .store-menu-text,
    .menu_store_manager .store-menu-item:hover .store-menu-text {
        opacity: 1;
        visibility: visible;
        width: auto;
        height: auto;
        overflow: visible;
        position: static;
        margin-left: 15px;
        color: #fff;
    }
    
    .header_store_manager.collapsed ~ .container_store_manager .menu_store_manager .store-menu-item:hover .store-menu-icon-svg,
    .menu_store_manager .store-menu-item:hover .store-menu-icon-svg {
        color: #fff;
    }
    
    .basic_top {
        height: 75px;
    }

    .header-content {
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .logo-section {
        order: 1;
        flex: 0 0 auto;
    }

    .site-logo img {
        height: 60px;
        margin-bottom: 6px;
    }
    
    .search-section {
        order: 2;
        flex: 1;
        max-width: none;
        margin: 0 10px;
        padding: 15px 0 0 0;
    }
    
    .categories-section {
        order: 3;
        min-width: 30px;
        border-radius: 3px;
        flex: 0 0 auto;
        margin-bottom: 3px;
    }

    .top_menus, .buttons-section, .links-section, .tag_products_menu {
        display: none;
    }

    .mobile-top-menu-container {
        display: block;
    }

    .content-block.block-60.align-left {
        width: 100%;
        margin-right: 0px;
    }

    .slider-block.block-40.align-right {
        width: 100%;
        margin-right: 0px;
    }

    .content-block.block-40.align-left {
        width: 100%;
        margin-right: 0px;
    }

    .content-block.block-60.align-right {
        width: 100%;
        margin-right: 0px;
    }
    
    .content-block, .slider-block {
        height: 390px;
        margin: 5px 0;
    }
    
    .slider-container {
        height: 390px;
    }
    
    .block-content, .slide-content {
        max-width: 90%;
        padding: 15px;
    }
    
    .align-left .block-content,
    .align-left .slide-content,
    .align-right .block-content,
    .align-right .slide-content {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .block-content ul,
    .slide-content ul {
        display: inline-block;
        text-align: left;
    }
    
    .block-content ul li,
    .slide-content ul li {
        text-align: left;
    }
    
    .block-content > ul,
    .slide-content > ul {
        margin: 8px auto;
        display: table;
    }
    
    .align-right .block-content ul,
    .align-right .slide-content ul {
        text-align: center;
    }
    
    .align-right .block-content ul li,
    .align-right .slide-content ul li {
        padding-left: 25px;
        padding-right: 0;
        text-align: left;
    }
    
    .align-right .block-content ul li:before,
    .align-right .slide-content ul li:before {
        left: 0;
        right: auto;
    }

    .align-right .block-button {
        float: none;
    }

    .subscriptions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .header_left, .menu_store_manager {
        width: 55px;
    }

    .store-name {
        display: none;
    }

    .welcome-block-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .welcome-info h3 {
        font-size: 20px;
    }
    
    .store-name-display {
        font-size: 16px;
    }
    
    .last-login-info {
        justify-content: center;
    }

    .store-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 16px;
    }

    img.img_handmade {
        width: 90vw;
    }

    .hands_item,
    .hands_item_full {
        margin: 6px 0;
        padding: 0px;
    }

    .hands_item p,
    .hands_item_full p {
        margin: 0px;
        padding: 10px;
    }

    .hands{
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 800px) {
    .site-logo img {
        height: 50px;
        margin-bottom: 10px;
    }
    
    .search-section {
        margin: 0 5px;
    }

    .search-section .search-field {
        padding: 0 35px 0 5px;
    }

    .block-content h2 {
        font-size: 24px;
    }

    .block-content h3 {
        font-size: 20px;
    }

    .slide-content {
        max-width: 70%;
    }

    .multiple-slider .slider-arrow {
        padding: 8px;
    }

    .subscriptions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .subscription-content {
        padding: 15px;
    }

    .store-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .store-info-card {
        padding: 20px;
    }
    
    .store-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .store-info-value {
        text-align: left;
    }

    ::-webkit-scrollbar {
    width: 3px;
    }

    .subscription-actions {
        position: fixed;
        bottom: 20px;
        right: 8px;
    }

    .subscription-paybar {
        background: rgb(122 13 13 / 90%);
    }
}

@media (max-width: 500px) {
    .block-content h2 {
        font-size: 21px;
    }

    .block-content h3 {
        font-size: 18px;
    }

    .subscriptions-grid {
        gap: 12px;
    }
    
    .subscription-title {
        font-size: 16px;
    }
    
    .subscription-price {
        font-size: 18px;
    }
    
    .store-info-icon {
        margin-right: 0;
        margin-bottom: 8px;
    }
}

/* === Polkoff: ACF grid after handmade products === */
.pc-acf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 350px;
    gap: 10px;
}
.pc-acf-grid .acf-grid-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Раскладка 1-5: первый блок занимает два ряда слева */
.pc-acf-grid .acf-grid-item.item-1 { grid-column: 1 / 2; grid-row: 1 / span 2; }
.pc-acf-grid .acf-grid-item.item-2 { grid-column: 2 / 3; grid-row: 1; }
.pc-acf-grid .acf-grid-item.item-3 { grid-column: 3 / 4; grid-row: 1; }
.pc-acf-grid .acf-grid-item.item-4 { grid-column: 2 / 3; grid-row: 2; }
.pc-acf-grid .acf-grid-item.item-5 { grid-column: 3 / 4; grid-row: 2; }

/* Для элементов после пятого — обычная сетка заполняет по порядку */
.pc-acf-grid .acf-grid-item:nth-child(n+6) { grid-auto-flow: row; }

/* Адаптивность */
@media (max-width: 1200px) {
    .pc-acf-grid { grid-auto-rows: 240px; gap: 16px; }
}
@media (max-width: 992px) {
    .pc-acf-grid { grid-template-columns: repeat(2, 1fr); }
    .pc-acf-grid .acf-grid-item.item-1 { grid-column: 1 / -1; grid-row: auto; }
    .pc-acf-grid .acf-grid-item.item-2,
    .pc-acf-grid .acf-grid-item.item-3,
    .pc-acf-grid .acf-grid-item.item-4,
    .pc-acf-grid .acf-grid-item.item-5 { grid-column: auto; grid-row: auto; }
}
@media (max-width: 600px) {
    .pc-acf-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
}


/* === Polkoff: tweaks for ACF grid cards (after handmade) === */
/* Rounded corners */
.pc-acf-grid--after-handmade .acf-grid-item {
    border-radius: 7px;
    overflow: hidden; /* ensure children respect rounding */
}
.pc-acf-grid--after-handmade .block-overlay,
.pc-acf-grid--after-handmade .block-image {
    border-radius: 7px;
}

/* Place content bottom-left on desktop/tablet */
.pc-acf-grid--after-handmade .block-overlay {
    display: flex;              /* override base centering */
    align-items: flex-end;      /* vertical: bottom */
    justify-content: flex-start;/* horizontal: left */
    padding: 24px;              /* breathing room from edges */
}

/* On mobile keep content centered (as before) */
@media (max-width: 600px) {
    .pc-acf-grid--after-handmade .block-overlay {
        align-items: center;
        justify-content: center;
        padding: 16px;
    }
}


/* === Polkoff: unify mobile centering for ACF grid cards === */
@media (max-width: 600px) {
  .pc-acf-grid--after-handmade .block-overlay {
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px;
  }
  .pc-acf-grid--after-handmade .block-content {
    text-align: center;
    width: 100%;
    margin: 0 auto;
  }
  .pc-acf-grid--after-handmade .block-content > * {
    margin-left: auto;
    margin-right: auto;
    float: none;
  }
  .pc-acf-grid--after-handmade .block-button {
    display: flex;
    justify-content: center;
  }
}


/* === Polkoff: ensure product grids on homepage use Woo archive grid === */
.page-template-page-glavnaya .pc-grid,
.home .pc-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 1605px) {
  .page-template-page-glavnaya .pc-grid,
  .home .pc-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1305px) {
  .page-template-page-glavnaya .pc-grid,
  .home .pc-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1030px) {
  .page-template-page-glavnaya .pc-grid,
  .home .pc-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .page-template-page-glavnaya .pc-grid,
  .home .pc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 550px) {
  .page-template-page_glavnaya .pc-grid,
  .home .pc-grid { grid-template-columns: repeat(1, 1fr); }
}

/* === Footer styles (final) === */
.site-footer { background:#FFC100; min-height:100px; margin-top: 20px;}
.site-footer .footer-wrap {
  display:flex; align-items:center; justify-content:space-between;
  gap:20px; min-height:100px; padding:12px 0;
  flex-wrap:nowrap; /* на широких экранах блоки не переносятся */
}

/* Лого */
.site-footer .footer-logo .site-logo img { display:block; height:75px; width:auto; }

/* Блок footer-middle */
.site-footer .footer-middle { display:flex; flex-direction:column; gap:8px; flex:1 1 0; min-width:320px; }
.site-footer .footer-top-menu {
  display:flex; flex-wrap:wrap; justify-content:center; gap:12px;
  margin:0; padding:0; list-style:none;
}
.site-footer .footer-top-menu li { margin:0; padding:0; }
.site-footer .footer-top-menu a {
  color:#990900; text-decoration:none; font-weight:700; white-space:nowrap; transition:color .3s;
}
.site-footer .footer-top-menu a:hover { color:#7a0700; }


/* Блок footer-sites (кнопки как vendor, но горизонтально) */
.site-footer .footer-sites-menu {
  display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px;
  margin:0; padding:0; list-style:none;
}
.site-footer .footer-sites-menu li { margin:0; padding:0; }
.site-footer .footer-sites-menu a {
  display:block; padding:7px 15px; border-radius:3px;
  background:#990900; color:#fff; text-decoration:none; transition:background .3s;
  white-space:nowrap;
}
.site-footer .footer-sites-menu a:hover { background:#7a0700; }

/* Адаптация: сначала "ломаем" пункты footer-middle, потом при узкой ширине переносим блоки и центрируем всё */
@media (max-width: 1200px) {
  .site-footer .footer-wrap { justify-content:center; }
  .site-footer .footer-sites-menu { justify-content:center; }
}
@media (max-width: 1000px) {
  .site-footer .footer-wrap { flex-wrap:wrap; justify-content:center; align-content:center; }
  .site-footer .footer-col { width:100%; display:flex; flex-direction:column; align-items:center; }
  .site-footer .footer-top-menu,
  .site-footer .footer-sites-menu { justify-content:center; }
}

/* Footer agreement: dashed underline, smaller font, centered */
.site-footer .footer-middle .footer-agreement {
  display: inline-block;
  margin: 6px auto 0;          /* центрируем независимо от контейнера */
  color: #000;
  font-size: 13px;             /* меньше текущего */
  line-height: 1.25;
  text-decoration: none;       /* убираем стандартное подчеркивание */
  padding-bottom: 2px;         /* небольшое смещение подчеркивания */
  border-bottom: 1px dashed rgba(0,0,0,.8);
  transition: border-color .2s ease, color .2s ease;
}
.site-footer .footer-middle .footer-agreement:hover {
  border-bottom-color: #000;
}
