﻿/* Глобальные стили */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

/* Прибиваем футер к низу страницы */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Главный контейнер сайта (работает и с admin bar и без него) */
body > div.flex.flex-col.items-center.relative.w-full {
    flex: 1;
    display: flex;
    flex-direction: column;
}

body > div.flex.flex-col.items-center.relative.w-full > footer {
    margin-top: auto;
}

/* Базовые стили для контейнеров */
.responsive-container {
    width: 100%;
    max-width: 1952px; /* 1432px контент + 260px*2 отступы */
    margin: 0 auto;
    padding-left: 260px;
    padding-right: 260px;
}
#wpadminbar {
    display: none !important;
}
/* Компенсация высоты фиксированной шапки - УДАЛЕНО, конфликт с sticky footer */

/* Градиентные фоны для секций на всю ширину экрана */
.hero-section-wrapper {
    position: relative;
    isolation: isolate;
    padding-top: 0;
}

.woocommerce img, .woocommerce-page img {
    height: 100%!important;
}

.hero-section-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(54, 98, 125, 0.2));
    border-radius: 0 0 50px 50px;
    z-index: -1;
    pointer-events: none;
}

.mchd-section-wrapper {
    position: relative;
    isolation: isolate;
}

.mchd-section-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(54, 98, 125, 0.2));
    border-radius: 50px;
    z-index: -1;
    pointer-events: none;
}

/* Контейнер с ограничением ширины для контента */
.content-wrapper {
    max-width: 1432px;
    margin: 0 auto;
    width: 100%;
}

/* Базовые стили для мобильного меню */
.mobile-menu-button {
    display: none;
}

.mobile-menu {
    display: none;
}

.woocommerce-thankyou-order-details > .order-actions-button  {
    display: none !important;
}

/* Адаптивные стили для больших экранов */
@media (min-width: 1953px) {
    .hero-section-wrapper::before,
    .mchd-section-wrapper::before {
        width: 100%;
    }
}

/* Промежуточный размер для больших экранов (1700-1952px) */
@media (max-width: 1952px) and (min-width: 1701px) {
    .responsive-container {
        padding-left: 200px;
        padding-right: 200px;
    }
}

/* Промежуточный размер (1537-1700px) */
@media (max-width: 1700px) and (min-width: 1537px) {
    .responsive-container {
        padding-left: 180px;
        padding-right: 180px;
    }
}

/* Большие планшеты и маленькие ноутбуки */
@media (max-width: 1536px) {
    .responsive-container {
        padding-left: 160px;
        padding-right: 160px;
        max-width: 1752px; /* 1432px + 160px*2 */
    }
    
    .hero-section-wrapper::before,
    .mchd-section-wrapper::before {
        max-width: 1752px;
    }
}

@media (max-width: 1440px) {
    .responsive-container {
        padding-left: 120px;
        padding-right: 120px;
    }
}

/* Планшеты */
@media (max-width: 1280px) {
    .responsive-container {
        padding-left: 80px;
        padding-right: 80px;
    }
}

/* Средние планшеты */
@media (max-width: 1024px) {
    .responsive-container {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    /* Показываем кнопку мобильного меню */
    .mobile-menu-button {
        display: flex;
    }
    
    /* Скрываем десктопное меню */
    .desktop-nav {
        display: none !important;
    }
    
    .hero-section-wrapper::before {
        border-radius: 0 0 40px 40px;
    }
    
    .mchd-section-wrapper::before {
        border-radius: 40px;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .responsive-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero-section-wrapper::before {
        border-radius: 0 0 30px 30px;
    }
    
    .mchd-section-wrapper::before {
        border-radius: 30px;
    }
}

/* Маленькие мобильные */
@media (max-width: 640px) {
    .responsive-container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .hero-section-wrapper::before {
        border-radius: 0 0 20px 20px;
    }
    
    .mchd-section-wrapper::before {
        border-radius: 20px;
    }
}

/* Фиксированная шапка с плавной анимацией */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(250, 250, 250, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(250, 250, 250, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Анимация появления шапки при скролле вверх */
header.scrolled-up {
    transform: translateY(0);
}

/* ОТКЛЮЧЕНО: Скрытие шапки при скролле вниз
   Клиент попросил, чтобы шапка всегда была видна */
/*
header.scrolled-down {
    transform: translateY(-100%);
    box-shadow: none;
}
*/

/* Полноэкранное мобильное меню с красивым дизайном */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(250, 250, 250, 0.98) 0%, rgba(240, 245, 248, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.4s, 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 100px 20px 60px;
    justify-content: flex-start;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Кнопка закрытия меню */
.mobile-menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 10000;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-menu-close:hover {
    transform: scale(1.1);
}

.mobile-menu-close:active {
    transform: scale(0.95);
}

/* Декоративные элементы для меню */
.mobile-menu::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(55, 93, 116, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.mobile-menu::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(25, 189, 123, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Стили для пунктов мобильного меню с красивой анимацией */
.mobile-menu .menu-item {
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), 
                opacity 0.4s ease-in-out;
    position: relative;
    z-index: 1;
    padding: 10px 20px;
    border-radius: 12px;
    background: transparent;
    text-decoration: none;
    display: block;
}

.mobile-menu a.menu-item {
    text-decoration: none;
}

.mobile-menu.active .menu-item {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu.active .menu-item:nth-child(1) {
    transition-delay: 0.15s;
}

.mobile-menu.active .menu-item:nth-child(2) {
    transition-delay: 0.25s;
}

.mobile-menu.active .menu-item:nth-child(3) {
    transition-delay: 0.35s;
}

.mobile-menu.active .menu-item:nth-child(4) {
    transition-delay: 0.45s;
}

.mobile-menu.active .menu-item:nth-child(5) {
    transition-delay: 0.55s;
}

.mobile-menu .menu-item p {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.mobile-menu .menu-item:hover {
    background: rgba(55, 93, 116, 0.05);
}

.mobile-menu .menu-item:hover p {
    color: #375d74;
    transform: scale(1.08);
}

.mobile-menu .menu-item:active {
    transform: scale(0.95);
    background: rgba(55, 93, 116, 0.1);
}

/* Кнопка бургер-меню */
.mobile-menu-button {
    z-index: 9999;
    position: relative;
    background: transparent;
    border: none;
}

/* Анимация для гамбургера */
.hamburger {
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #262626;
    border-radius: 3px;
    opacity: 1;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.hamburger.active span {
    background: #375d74;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-30px);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Предотвращение прокрутки при открытом меню */
body.menu-open {
    overflow: hidden;
}

/* Дополнительные улучшения для очень маленьких экранов */
@media (max-width: 480px) {
    .responsive-container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .mobile-menu {
        padding: 90px 15px 50px;
    }
    
    .mobile-menu .menu-item p {
        font-size: 22px;
    }
    
    .mobile-menu::before,
    .mobile-menu::after {
        width: 300px;
        height: 300px;
    }
    
    .mobile-submenu-item p {
        font-size: 16px;
    }
}

/* Улучшения для средних экранов (планшеты в портретной ориентации) */
@media (min-width: 641px) and (max-width: 768px) {
    .responsive-container {
        padding-left: 30px;
        padding-right: 30px;
    }
    
    .mobile-menu {
        padding: 100px 25px 55px;
    }
}

/* Предотвращение горизонтального скролла */
body {
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/* Удаление подчеркивания у ссылок */
.no-underline, a.no-underline {
    text-decoration: none !important;
}

/* Плавные переходы для изображений */
img {
    transition: opacity 0.3s ease-in-out;
}

/* Улучшение отображения на экранах с высокой плотностью пикселей */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ============================================
   УНИВЕРСАЛЬНЫЙ HERO БЛОК
   ============================================ */

/* Основные стили hero блока */
.page-hero-section {
    width: 100%;
}

.page-hero-block {
    background: rgba(55, 93, 116, 0.15);
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 30px;
    position: relative;
}

.page-hero-vector {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1446.5px;
    height: 332.959px;
    pointer-events: none;
}

.page-hero-vector img {
    display: block;
    max-width: none;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.page-hero-title {
    font-weight: bold;
    font-size: 32px;
    text-align: center;
    color: #262626;
    line-height: 1.15;
    position: relative;
    z-index: 10;
}

/* Адаптивные стили для hero блока */

/* Планшеты и меньше - 1024px */
@media (max-width: 1024px) {
    .page-hero-block {
        height: 130px !important;
    }
    
    .page-hero-title {
        font-size: 28px !important;
    }
    
    .page-hero-vector {
        width: 1000px !important;
    }
}

/* Средние планшеты - 768px */
@media (max-width: 768px) {
    .page-hero-block {
        height: 120px !important;
        border-radius: 20px !important;
    }
    
    .page-hero-title {
        font-size: 24px !important;
    }
    
    .page-hero-vector {
        width: 800px !important;
        opacity: 0.3 !important;
    }
}

/* Мобильные устройства - 640px */
@media (max-width: 640px) {
    .page-hero-block {
        height: 100px !important;
        border-radius: 15px !important;
        margin: 0 !important;
    }
    
    .page-hero-title {
        font-size: 20px !important;
        padding: 0 15px !important;
    }
    
    .page-hero-vector {
        width: 600px !important;
        opacity: 0.2 !important;
    }
}

/* Маленькие мобильные - 480px */
@media (max-width: 480px) {
    .page-hero-block {
        height: 90px !important;
    }
    
    .page-hero-title {
        font-size: 18px !important;
    }
    
    .page-hero-vector {
        width: 400px !important;
    }
}

/* ============================================
   DROPDOWN МЕНЮ (ДЕСКТОП)
   ============================================ */

/* Контейнер для элемента меню с выпадающим списком */
.nav-item-with-dropdown,
.nav-item-wrapper {
    position: relative;
    padding: 10px 0;
}

/* Общие стили для всех ссылок навигации */
.nav-link {
    position: relative;
    display: inline-block;
    transition: opacity 0.3s ease;
}

/* Эффект подчеркивания при наведении */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #375d74;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    opacity: 0.7;
}

/* Выпадающее меню */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    background: #FAFAFA;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-width: 350px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

/* Показываем dropdown при hover */
.nav-item-with-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Элементы dropdown меню */
.dropdown-item {
    padding: 18px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.dropdown-item:hover {
    background: rgba(55, 93, 116, 0.08);
}

.dropdown-item p {
    color: #262626;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.15;
    margin: 0;
}

/* Адаптивность для dropdown на больших экранах */
@media (min-width: 1280px) {
    .dropdown-menu {
        min-width: 400px;
    }
}

/* ============================================
   МОБИЛЬНОЕ ПОДМЕНЮ
   ============================================ */

/* Контейнер для элемента с подменю в мобильном меню */
.menu-item-with-submenu {
    width: 100%;
    margin-bottom: 15px;
}

/* Элемент меню со ссылкой и стрелкой */
.menu-item-with-submenu .menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

/* Ссылка внутри меню */
.menu-item-link {
    text-decoration: none;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Стрелка для раскрытия подменю */
.submenu-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

/* Поворот стрелки при раскрытии */
.menu-item-with-submenu.active .submenu-arrow {
    transform: rotate(180deg);
}

/* Контейнер мобильного подменю */
.mobile-submenu {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(55, 93, 116, 0.03);
    border-radius: 12px;
    margin-top: 0;
}

/* Раскрытое состояние подменю */
.menu-item-with-submenu.active .mobile-submenu {
    max-height: 1000px;
    margin-top: 15px;
    margin-bottom: 10px;
}

/* Элементы мобильного подменю */
.mobile-submenu-item {
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
    display: block;
    text-decoration: none;
}

/* Показываем элементы с задержкой */
.menu-item-with-submenu.active .mobile-submenu-item {
    opacity: 1;
    transform: translateX(0);
}

/* Задержки для каждого элемента */
.menu-item-with-submenu.active .mobile-submenu-item:nth-child(1) {
    transition-delay: 0.05s;
}

.menu-item-with-submenu.active .mobile-submenu-item:nth-child(2) {
    transition-delay: 0.1s;
}

.menu-item-with-submenu.active .mobile-submenu-item:nth-child(3) {
    transition-delay: 0.15s;
}

.menu-item-with-submenu.active .mobile-submenu-item:nth-child(4) {
    transition-delay: 0.2s;
}

.menu-item-with-submenu.active .mobile-submenu-item:nth-child(5) {
    transition-delay: 0.25s;
}

.menu-item-with-submenu.active .mobile-submenu-item:nth-child(6) {
    transition-delay: 0.3s;
}

.menu-item-with-submenu.active .mobile-submenu-item:nth-child(7) {
    transition-delay: 0.35s;
}

.menu-item-with-submenu.active .mobile-submenu-item:nth-child(8) {
    transition-delay: 0.4s;
}

.menu-item-with-submenu.active .mobile-submenu-item:nth-child(9) {
    transition-delay: 0.45s;
}

/* Стили текста в подменю */
.mobile-submenu-item p {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: #262626;
    line-height: 1.3;
    margin: 0;
}

/* Hover эффект для элементов подменю */
.mobile-submenu-item:hover {
    background: rgba(55, 93, 116, 0.08);
    border-radius: 8px;
}

.mobile-submenu-item:active {
    transform: scale(0.98);
    background: rgba(55, 93, 116, 0.12);
}

/* Адаптивность для мобильного подменю */
@media (max-width: 480px) {
    .mobile-submenu-item p {
        font-size: 16px;
    }
    
    .mobile-submenu-item {
        padding: 12px 15px;
    }
}

/* Хлебные крошки (breadcrumbs) */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #979797;
}

.breadcrumbs a {
    color: #979797;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #375d74;
}

.breadcrumbs span:last-child {
    color: #262626;
}

/* Адаптивность breadcrumbs */
@media (max-width: 768px) {
    .breadcrumbs {
        font-size: 12px;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .breadcrumbs {
        font-size: 11px;
        gap: 4px;
    }
}

/* ============================================
   ��������� ���� ������� ����������� (�� �.230)
   ============================================ */

.certificate-help-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.certificate-help-modal.active {
    opacity: 1;
    visibility: visible;
}

.certificate-help-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.certificate-help-modal .modal-container {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.certificate-help-modal .modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
    position: relative;
}

.certificate-help-modal .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #262626;
    transition: all 0.2s;
    z-index: 2;
}

.certificate-help-modal .modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.certificate-help-modal .modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.certificate-help-modal .icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #375d74 0%, #2a4a5e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.certificate-help-modal .modal-header h3 {
    font-size: 24px;
    font-weight: bold;
    color: #262626;
    margin: 0 0 10px 0;
}

.certificate-help-modal .modal-header p {
    font-size: 15px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.certificate-help-modal .form-group {
    margin-bottom: 20px;
}

.certificate-help-modal .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 8px;
}

.certificate-help-modal .form-group .required {
    color: #e74c3c;
}

.certificate-help-modal .form-group input,
.certificate-help-modal .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.certificate-help-modal .form-group input:focus,
.certificate-help-modal .form-group textarea:focus {
    outline: none;
    border-color: #375d74;
}

.certificate-help-modal .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.certificate-help-modal .form-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
}

.certificate-help-modal .form-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.certificate-help-modal .form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.certificate-help-modal .submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #375d74 0%, #2a4a5e 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.certificate-help-modal .submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2a4a5e 0%, #1f3847 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(55, 93, 116, 0.3);
}

.certificate-help-modal .submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.certificate-help-modal .btn-loader svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ������������ */
@media (max-width: 640px) {
    .certificate-help-modal .modal-content {
        padding: 24px;
    }
    
    .certificate-help-modal .modal-header h3 {
        font-size: 20px;
    }
    
    .certificate-help-modal .icon-wrapper {
        width: 56px;
        height: 56px;
    }
}

/* ����� ��� �������� ���� ����������� */
.entity-card-price-text.text-white {
    color: #fff !important;
}


/* ����� ��� �������� ������� � ������ */
body:not(.woocommerce):not(.woocommerce-page) .entry-content,
body:not(.woocommerce):not(.woocommerce-page) .post-content {
    line-height: 1.6;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content > *,
body:not(.woocommerce):not(.woocommerce-page) .post-content > * {
    margin-bottom: 1em;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content > *:last-child,
body:not(.woocommerce):not(.woocommerce-page) .post-content > *:last-child {
    margin-bottom: 0;
}

/* ��������� */
body:not(.woocommerce):not(.woocommerce-page) .entry-content h1,
body:not(.woocommerce):not(.woocommerce-page) .post-content h1 {
    font-size: 2em;
    font-weight: bold;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #262626;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content h2,
body:not(.woocommerce):not(.woocommerce-page) .post-content h2 {
    font-size: 1.75em;
    font-weight: bold;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #262626;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content h3,
body:not(.woocommerce):not(.woocommerce-page) .post-content h3 {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #262626;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content h4,
body:not(.woocommerce):not(.woocommerce-page) .post-content h4 {
    font-size: 1.25em;
    font-weight: bold;
    margin-top: 1.25em;
    margin-bottom: 0.5em;
    color: #262626;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content h5,
body:not(.woocommerce):not(.woocommerce-page) .post-content h5 {
    font-size: 1.125em;
    font-weight: bold;
    margin-top: 1.25em;
    margin-bottom: 0.5em;
    color: #262626;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content h6,
body:not(.woocommerce):not(.woocommerce-page) .post-content h6 {
    font-size: 1em;
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 0.5em;
    color: #262626;
}

/* ��������� */
body:not(.woocommerce):not(.woocommerce-page) .entry-content p,
body:not(.woocommerce):not(.woocommerce-page) .post-content p {
    margin-bottom: 1em;
    line-height: 1.6;
}

/* ������ */
body:not(.woocommerce):not(.woocommerce-page) .entry-content ul,
body:not(.woocommerce):not(.woocommerce-page) .post-content ul {
    list-style-type: disc;
    padding-left: 2em;
    margin-bottom: 1em;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content ol,
body:not(.woocommerce):not(.woocommerce-page) .post-content ol {
    list-style-type: decimal;
    padding-left: 2em;
    margin-bottom: 1em;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content li,
body:not(.woocommerce):not(.woocommerce-page) .post-content li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content ul ul,
body:not(.woocommerce):not(.woocommerce-page) .entry-content ol ol,
body:not(.woocommerce):not(.woocommerce-page) .post-content ul ul,
body:not(.woocommerce):not(.woocommerce-page) .post-content ol ol {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

/* ��������� ������ */
body:not(.woocommerce):not(.woocommerce-page) .entry-content ul ul,
body:not(.woocommerce):not(.woocommerce-page) .post-content ul ul {
    list-style-type: circle;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content ul ul ul,
body:not(.woocommerce):not(.woocommerce-page) .post-content ul ul ul {
    list-style-type: square;
}

/* ������ */
body:not(.woocommerce):not(.woocommerce-page) .entry-content blockquote,
body:not(.woocommerce):not(.woocommerce-page) .post-content blockquote {
    border-left: 4px solid #375d74;
    padding-left: 1.5em;
    margin: 1.5em 0;
    font-style: italic;
    color: #555;
}

/* ������ */
body:not(.woocommerce):not(.woocommerce-page) .entry-content a,
body:not(.woocommerce):not(.woocommerce-page) .post-content a {
    color: #375d74;
    text-decoration: underline;
}
body:not(.woocommerce):not(.woocommerce-page) .entry-content .wp-block-file__button {
    color: #ffffff !important;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content a:hover,
body:not(.woocommerce):not(.woocommerce-page) .post-content a:hover {
    color: #262626;
}

/* ������ � ������ */
body:not(.woocommerce):not(.woocommerce-page) .entry-content strong,
body:not(.woocommerce):not(.woocommerce-page) .entry-content b,
body:not(.woocommerce):not(.woocommerce-page) .post-content strong,
body:not(.woocommerce):not(.woocommerce-page) .post-content b {
    font-weight: bold;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content em,
body:not(.woocommerce):not(.woocommerce-page) .entry-content i,
body:not(.woocommerce):not(.woocommerce-page) .post-content em,
body:not(.woocommerce):not(.woocommerce-page) .post-content i {
    font-style: italic;
}

/* ����������� */
body:not(.woocommerce):not(.woocommerce-page) .entry-content img,
body:not(.woocommerce):not(.woocommerce-page) .post-content img {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
}

/* ������� */
body:not(.woocommerce):not(.woocommerce-page) .entry-content table,
body:not(.woocommerce):not(.woocommerce-page) .post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content th,
body:not(.woocommerce):not(.woocommerce-page) .entry-content td,
body:not(.woocommerce):not(.woocommerce-page) .post-content th,
body:not(.woocommerce):not(.woocommerce-page) .post-content td {
    border: 1px solid #ddd;
    padding: 0.75em;
    text-align: left;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content th,
body:not(.woocommerce):not(.woocommerce-page) .post-content th {
    background-color: #f5f5f5;
    font-weight: bold;
}

/* ��� */
body:not(.woocommerce):not(.woocommerce-page) .entry-content code,
body:not(.woocommerce):not(.woocommerce-page) .post-content code {
    background-color: #f5f5f5;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content pre,
body:not(.woocommerce):not(.woocommerce-page) .post-content pre {
    background-color: #f5f5f5;
    padding: 1em;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1.5em 0;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content pre code,
body:not(.woocommerce):not(.woocommerce-page) .post-content pre code {
    padding: 0;
    background-color: transparent;
}

/* �������������� ����� */
body:not(.woocommerce):not(.woocommerce-page) .entry-content hr,
body:not(.woocommerce):not(.woocommerce-page) .post-content hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 2em 0;
}

/* ���������� ����� ��� �������� */
@media (max-width: 768px) {
    .entry-content,
    .post-content {
        font-size: 14px;
    }
    
    .entry-content h1,
    .post-content h1 {
        font-size: 1.75em;
    }
    
    .entry-content h2,
    .post-content h2 {
        font-size: 1.5em;
    }
    
    .entry-content h3,
    .post-content h3 {
        font-size: 1.25em;
    }
    
    .entry-content h4,
    .post-content h4 {
        font-size: 1.125em;
    }
    
    .entry-content ul,
    .entry-content ol,
    .post-content ul,
    .post-content ol {
        padding-left: 1.5em;
    }
}

@media (max-width: 640px) {
    .entry-content,
    .post-content {
        font-size: 13px;
    }
    
    .entry-content h1,
    .post-content h1 {
        font-size: 1.5em;
    }
    
    .entry-content h2,
    .post-content h2 {
        font-size: 1.375em;
    }
}

/* ����� ��� ������ WordPress Gutenberg */
body:not(.woocommerce):not(.woocommerce-page) .entry-content .wp-block-heading,
body:not(.woocommerce):not(.woocommerce-page) .post-content .wp-block-heading {
    font-weight: bold;
    color: #262626;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content .wp-block-list,
body:not(.woocommerce):not(.woocommerce-page) .post-content .wp-block-list {
    list-style-position: outside;
    margin-bottom: 1em;
    padding-left: 2em;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content .wp-block-list li,
body:not(.woocommerce):not(.woocommerce-page) .post-content .wp-block-list li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content .wp-block-list ul,
body:not(.woocommerce):not(.woocommerce-page) .post-content .wp-block-list ul {
    list-style-type: disc;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content .wp-block-list ol,
body:not(.woocommerce):not(.woocommerce-page) .post-content .wp-block-list ol {
    list-style-type: decimal;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content .wp-block-paragraph,
body:not(.woocommerce):not(.woocommerce-page) .post-content .wp-block-paragraph {
    margin-bottom: 1em;
    line-height: 1.6;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content .wp-block-quote,
body:not(.woocommerce):not(.woocommerce-page) .post-content .wp-block-quote {
    border-left: 4px solid #375d74;
    padding-left: 1.5em;
    margin: 1.5em 0;
    font-style: italic;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content .wp-block-image,
body:not(.woocommerce):not(.woocommerce-page) .post-content .wp-block-image {
    margin: 1.5em 0;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content .wp-block-image img,
body:not(.woocommerce):not(.woocommerce-page) .post-content .wp-block-image img {
    max-width: 100%;
    height: auto;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content .wp-block-separator,
body:not(.woocommerce):not(.woocommerce-page) .post-content .wp-block-separator {
    border: none;
    border-top: 1px solid #ddd;
    margin: 2em 0;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content .wp-block-code,
body:not(.woocommerce):not(.woocommerce-page) .post-content .wp-block-code {
    background-color: #f5f5f5;
    padding: 1em;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1.5em 0;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content .wp-block-table,
body:not(.woocommerce):not(.woocommerce-page) .post-content .wp-block-table {
    margin: 1.5em 0;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content .wp-block-table table,
body:not(.woocommerce):not(.woocommerce-page) .post-content .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content .wp-block-table th,
body:not(.woocommerce):not(.woocommerce-page) .entry-content .wp-block-table td,
body:not(.woocommerce):not(.woocommerce-page) .post-content .wp-block-table th,
body:not(.woocommerce):not(.woocommerce-page) .post-content .wp-block-table td {
    border: 1px solid #ddd;
    padding: 0.75em;
    text-align: left;
}

body:not(.woocommerce):not(.woocommerce-page) .entry-content .wp-block-table th,
body:not(.woocommerce):not(.woocommerce-page) .post-content .wp-block-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}
.woocommerce ul.order_details::before {
    display: none;
}