/* Обнуление */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Базовые стили */
body {
    font-family: "Work Sans", Arial, sans-serif;
    color: #606060;
    background-color: #fff;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Page Wrapper - ОСНОВНОЙ ИСПРАВЛЕНИЕ */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Контейнер - УБРАЛ flex:1 */
.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 20px 15px;
    width: 100%;
}

/* Основной контент - ДОБАВИЛ отступы */
.container.padding-top-3x {
    padding-top: 60px;
    padding-bottom: 100px; /* Добавил отступ снизу */
    flex: 1; /* Теперь контент растягивается */
}

/* Row */
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col-sm-12 { width: 100%; }

/* Text */
.has-very-dark-gray-color { color: #4d4d4d; }
.has-text-align-center { text-align: center; }
.mobile-center { text-align: center; }

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.wp-block-image.is-style-rounded img {
    border-radius: 10px;
}

.aligncenter {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Gallery - УМЕНЬШЕНЫ КАРТИНКИ НА 20% */
.blocks-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 10px;
    justify-content: center;
    margin: 40px 0;
}

.blocks-gallery-grid .blocks-gallery-item {
    flex: 0 1 20%;
    position: relative;
}

/* Уменьшаем контейнеры картинок на 20% */
.blocks-gallery-grid .blocks-gallery-item figure {
    width: 80%; /* Уменьшили на 20% */
    margin: 0 auto; /* Центрируем уменьшенные картинки */
}

.blocks-gallery-grid .blocks-gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 13px;
    padding: 5px;
    text-align: center;
}

.blocks-gallery-grid .blocks-gallery-item figcaption a {
    color: inherit;
    text-decoration: none;
}

.blocks-gallery-grid .blocks-gallery-item figcaption a:hover {
    color: #fff;
}

/* Head */
.navbar {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 5px 0; /* Уменьшил отступы сверху и снизу */
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0; /* Уменьшил внутренние отступы */
}

.site-logo {
    font-size: 18px; /* Немного уменьшил размер шрифта */
    font-weight: bold;
    text-decoration: none;
    color: #606060;
}

.site-logo img {
    max-height: 60px; /* Уменьшил высоту логотипа */
}

.visible-mobile {
    display: none;
}

@media (max-width: 767px) {
    .visible-desktop { display: none; }
    .visible-mobile { display: block; }
    .navbar { 
        flex-direction: column;
        padding: 8px 0; /* Сохранил уменьшенные отступы на мобильных */
    }
    .navbar-content {
        padding: 5px 0; /* Еще меньше на мобильных */
    }
    .main-navigation ul {
        gap: 8px; /* Меньшее расстояние на мобильных */
        flex-wrap: wrap;
        justify-content: center;
    }
    .main-navigation a {
        font-size: 12px; /* Еще меньше шрифт на мобильных */
        padding: 5px 8px;
    }
    .site-logo img {
        max-height: 50px; /* Еще меньше лого на мобильных */
    }
}

/* Navi */
.main-navigation li {
    display: inline-block;
}

.main-navigation a {
    display: block;
    text-decoration: none;
    color: #606060;
    text-transform: uppercase;
    font-size: 13px; /* Уменьшил размер шрифта */
    padding: 6px 10px; /* Уменьшил отступы внутри кнопок */
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.main-navigation a:hover {
    transform: scale(1.15); /* Немного уменьшил масштаб при наведении */
    border-color: #000;
    z-index: 10;
}

/* Content */
.page-content {
    padding: 20px 0;
    margin-bottom: 40px;
}

/* Футер */
.footer {
    background-color: #f5f5f5;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e5e5e5;
    margin-top: auto;
    position: relative;
    width: 100%;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 100px;
    box-sizing: border-box;
}

.footer-column-left {
    text-align: left;
}

.footer-column-right {
    text-align: right;
}

.copyright {
    margin: 0;
    color: #606060;
}

/* Стили для контактов */
.blinking-text {
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.footer-column-right a {
    color: #052e17ff;
    text-decoration: none;
}

.footer-column-right a:hover {
    text-decoration: underline;
}

/* Embed OS */
.embed_os {
    position: fixed;
    left: 3%;
    bottom: 40px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .mobile-center { text-align: left; }
    .blocks-gallery-grid .blocks-gallery-item { flex: 0 1 45%; }
    .blocks-gallery-grid .blocks-gallery-item figure {
        width: 90%; /* Чуть меньше уменьшение на мобильных */
    }
    .main-navigation ul { flex-wrap: wrap; justify-content: center; }
    .footer-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }
    .footer-column-left, .footer-column-right {
        text-align: center;
    }
    .container.padding-top-3x {
        padding-bottom: 120px;
    }
}

@media (max-width: 480px) {
    .blocks-gallery-grid .blocks-gallery-item { flex: 0 1 100%; }
    .blocks-gallery-grid .blocks-gallery-item figure {
        width: 70%; /* На очень маленьких экранах можно сделать еще меньше */
    }
    .navbar { padding: 10px; }
    .container { padding: 0 10px; }
}

/* Овал */
.centered-ellipse {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px 0;
}

.is-style-ellipse img {
    border-radius: 50px / 20px;
    clip-path: ellipse(45% 45% at 50% 50%);
    width: 100%;
    height: auto;
    display: block;
}

/* Свап изображений - ТАКЖЕ УМЕНЬШЕНЫ */
.image-swap-container {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
}

.image-swap-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.1s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.image-swap-container .image-default {
    opacity: 1;
}

.image-swap-container .image-hover {
    opacity: 0;
}

.image-swap-container:hover .image-default {
    opacity: 0;
}

.image-swap-container:hover .image-hover {
    opacity: 1;
}
/* Стили для галереи продуктов */
.products-grid {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 30px;
    justify-content: center;
    margin: 40px 0;
}

.products-grid .blocks-gallery-item {
    flex: 0 1 calc(33.333% - 20px);
    max-width: 300px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-link {
    display: block;
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.product-info {
    margin-top: 15px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #052e17ff;
    margin-bottom: 15px;
}

.wp-block-button__link.add_to_cart_button {
    background: #052e17ff;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #052e17ff;
    transition: all 0.3s ease;
    display: inline-block;
}

.wp-block-button__link.add_to_cart_button:hover {
    background: white;
    color: #052e17ff;
    transform: scale(1.05);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .products-grid .blocks-gallery-item {
        flex: 0 1 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .products-grid .blocks-gallery-item {
        flex: 0 1 100%;
        max-width: 280px;
    }
    
    .product-link {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .product-link {
        width: 160px;
        height: 160px;
    }
    
    .product-title {
        font-size: 14px;
    }
    
    .product-price {
        font-size: 18px;
    }
}
/* Payment Guide Styles - Integrated with site theme */
.payment-guide {
    background: var(--card-bg-color, #4e4e4e);
    border: 1px solid var(--border-color, #333);
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.guide-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color, #333);
}

.guide-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-color, #e0e0e0);
}

.header-subtitle {
    margin: 0;
    color: var(--text-muted-color, #888);
    font-size: 0.9em;
}

.guide-steps {
    margin-bottom: 20px;
}

.step {
    margin-bottom: 15px;
    padding: 15px;
    background: var(--bg-secondary-color, #2a2a2a);
    border-radius: 6px;
    border-left: 3px solid var(--accent-color, #007bff);
}

.step:last-child {
    margin-bottom: 0;
}

.step-content h4 {
    margin: 0 0 8px 0;
    font-size: 1em;
    font-weight: 600;
    color: var(--text-color, #e0e0e0);
}

.step-content p {
    margin: 0 0 10px 0;
    color: var(--text-color, #e0e0e0);
    font-size: 0.9em;
    line-height: 1.4;
}

.step-content ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
    color: var(--text-color, #e0e0e0);
}

.step-content li {
    margin-bottom: 5px;
    font-size: 0.85em;
    line-height: 1.3;
}

.processing-info {
    background: var(--bg-secondary-color, #2a2a2a);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 3px solid var(--success-color, #28a745);
}

.processing-info p {
    margin: 0;
    font-size: 0.9em;
    color: var(--text-color, #e0e0e0);
    line-height: 1.4;
}

.benefit-note {
    padding: 12px;
    background: var(--bg-secondary-color, #424242);
    border-radius: 6px;
    text-align: center;
}

.benefit-note p {
    margin: 0;
    font-size: 0.85em;
    color: var(--text-muted-color, #888);
    font-style: italic;
}

/* Strong text styling */
strong {
    color: var(--accent-color, #4697ee);
    font-weight: 600;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .payment-guide {
        padding: 15px;
        margin: 10px 0;
    }
    
    .step {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .guide-header {
        margin-bottom: 15px;
    }
}