/* Crown Green Components Styles */

/* Promotion Banners */
.promotion-banners {
    margin: 4rem 0;
}

.promotion-banner {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
}

.promotion-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 74, 62, 0.9) 0%, rgba(26, 26, 26, 0.7) 100%);
    z-index: 1;
}

.promotion-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.promotion-banner-content {
    position: relative;
    z-index: 2;
    padding: 2rem 3rem;
    max-width: 600px;
}

.promotion-banner-subtitle {
    color: var(--gold);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promotion-banner-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.promotion-banner-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Table of Contents */
.table-of-contents {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin: 2rem 0;
    overflow: hidden;
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(45, 74, 62, 0.2);
    border-bottom: 1px solid var(--border-color);
}

.toc-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-light);
}

.toc-toggle {
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.toc-content {
    padding: 1rem;
    display: none;
}

.toc-content.show {
    display: block;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0 !important
}

.toc-item {
    margin-bottom: 0 !important;
    position: relative !important;
    padding-left: 20px !important;
    font-weight: 400 !important;
    color: var(--text-light) !important;
    font-size: 14px !important;
    line-height: 20px !important;
}

.toc-item::before {
    content: "•" !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--gold) !important;
    font-weight: bold !important;
    font-size: 1.2em !important;
    line-height: 1 !important;
    width: auto !important;
    min-width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    background: none !important;
    display: block !important;
}

.toc-link {
    color: var(--text-light) !important;
    padding: 6px 8px !important;
    border-radius: 4px !important;
    display: block !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

.toc-link:hover {
    background: var(--card-bg) !important;
    color: var(--gold) !important;
    transform: translateX(5px) !important;
}

/* Testimonials */
.testimonials-block {
    margin: 4rem 0;
}

.testimonials-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-light);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.testimonial-slide.active {
    display: block;
    opacity: 1;
}

.testimonial-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    color: var(--gold);
    line-height: 1;
}

.testimonial-text {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-style: italic;
    line-height: 1.6;
}

.testimonial-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.testimonial-rating {
    display: flex;
    gap: 2px;
}

.star {
    color: #ddd;
    font-size: 1.2rem;
}

.star.filled {
    color: var(--gold);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.testimonials-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.testimonial-nav {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.testimonial-nav:hover {
    background: var(--gold);
    color: var(--dark-bg);
    border-color: var(--gold);
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active,
.testimonial-dot:hover {
    background: var(--gold);
}

/* FAQ Section */
.faq-section {
    margin: 4rem 0;
}

.faq-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-light);
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    text-align: left;
    color: var(--accent-teal);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(0, 139, 124, 0.1);
    color: var(--accent-teal);
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--gold);
    font-size: 1.2rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* FAQ Section Styles */
.faq .title {
    font-weight: 900;
    font-size: 24px;
    line-height: 28px;
    vertical-align: middle;
    color: var(--text-light);
    margin-bottom: 16px;
}

.faq_title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 900;
    cursor: pointer;
    font-size: 20px;
    line-height: 24px;
    vertical-align: middle;
    color: var(--accent-teal);
    margin: 0;
}

.faq_title.active {
    color: var(--text-light);
}

.faq_text,
.faq_text p {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    vertical-align: middle;
    color: var(--text-light);
}

.faq_text p:not(:last-child) {
    margin-bottom: 16px;
}

.faq_text {
    margin-top: 20px;
}

.faq_item:not(:last-child)::after {
    content: '';
    position: relative;
    display: block;
    height: 1px;
    margin-top: 20px;
    max-height: 1px;
    width: 100%;
    background: linear-gradient(270deg, rgba(143, 143, 143, 0) 0%, #8F8F8F 50%, rgba(143, 143, 143, 0) 100%);
}

.faq_item:not(:last-child) {
    margin-bottom: 20px;
}

.faq_title svg:not(.rotated) {
    transform: rotate(180deg);
}

/* Footer */
.footer {
    margin-top: 64px;
    padding: 32px 0;
    background: var(--secondary-bg);
}

.footer_logos {
    margin: 24px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 30px 60px;
    justify-content: center;
}

.footer_logos:after {
    content: '';
    height: 1px;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    width: 100%;
    display: block;
}

.footer_logos:before {
    content: '';
    height: 1px;
    display: block;
    width: 100%;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
}

.payment-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.payment-link:hover {
    transform: translateY(-2px);
}

.payment-logo {
    display: block;
    height: 40px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.payment-logo:hover {
    opacity: 1;
}

.footer_copy {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 24px;
    text-align: center;
    color: var(--text-gray);
}

.footer_copy svg {
    margin-left: 16px;
}

.footer_text {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    color: var(--text-gray);
}

/* Footer Menu */
.footer_menu {
    margin: 24px 0;
    text-align: center;
}

.footer-menu-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu-list li {
    margin: 0;
}

.footer-menu-list a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    transition: color 0.3s ease;
}

.footer-menu-list a:hover {
    color: var(--text-light);
}

@media (max-width: 768px) {
    .footer-menu-list {
        gap: 1rem;
        font-size: 12px;
    }
}

/* Content Styles */
.content .container {
    max-width: 870px;
}

.content h1 {
    font-weight: 900;
    font-size: 32px;
    line-height: 38px;
    vertical-align: middle;
    color: var(--text-light);
    margin-bottom: 16px;
    display: block;
}

.content p {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    vertical-align: middle;
    color: var(--text-light);
    margin: 16px 0;
}

.content p a {
    color: var(--accent-yellow);
    font-weight: 700;
}

.content p strong {
    font-weight: bold;
}

.content h2 {
    font-weight: 900;
    font-size: 24px;
    line-height: 28px;
    margin: 16px 0;
    color: var(--text-light);
    vertical-align: middle;
}

.content h3 {
    font-weight: 900;
    font-size: 20px;
    line-height: 24px;
    vertical-align: middle;
    color: var(--text-light);
    margin: 16px 0;
}

.content ol {
    counter-reset: my-counter;
    margin: 16px 0;
}

.content ol li {
    counter-increment: my-counter;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    vertical-align: middle;
    color: var(--text-light);
    display: flex;
}

.content ol li a {
    color: var(--accent-green);
    display: contents;
    font-weight: 700;
}

.content ol li:not(:last-child) {
    margin-bottom: 16px;
}

.content ol li:before {
    content: counter(my-counter);
    height: 24px;
    width: 24px;
    min-width: 24px;
    margin-right: 8px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--button-gradient);
    font-weight: 900;
    font-size: 14px;
    line-height: 16px;
    text-align: center;
    vertical-align: middle;
    color: var(--text-dark);
}

.content ul {
    margin: 16px 0;
}

.content ul li {
    font-weight: 400;
    color: var(--text-light);
    font-size: 14px;
    padding-left: 25px;
    line-height: 20px;
    position: relative;
}

.content ul li:not(:last-child) {
    margin-bottom: 16px;
}

.content ul li:before {
    content: '';
    left: 4px;
    top: 6px;
    position: absolute;
    width: 8px;
    min-width: 8px;
    height: 8px;
    border-radius: 100%;
    background: var(--button-gradient);
    display: block;
}

.content ul li a {
    color: var(--accent-green);
    font-weight: 700;
}

h2 a,
h3 a,
h4 a,
h5 a {
    color: var(--accent-green);
    font-weight: 700;
}

/* Article Content Styles */
.entry-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    margin: 2rem 0;
    line-height: 1.8;
}

.entry-content h2 {
    color: var(--gold);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.entry-content h3 {
    color: var(--text-light);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote {
    background: rgba(45, 74, 62, 0.2);
    border-left: 4px solid var(--gold);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

/* WordPress Tables */
.entry-content table,
.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.entry-content table th,
.content table th {
    background: rgba(45, 74, 62, 0.3);
    color: var(--text-light);
    font-weight: 700;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.entry-content table td,
.content table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.4;
}

.entry-content table tr:last-child td,
.content table tr:last-child td {
    border-bottom: none;
}

.entry-content table tr:nth-child(even),
.content table tr:nth-child(even) {
    background: rgba(45, 74, 62, 0.1);
}

/* Убираем левый padding у списков и исправляем двойные маркеры */
.entry-content ul,
.content ul {
    padding-left: 0 !important;
    list-style: none !important;
}

.entry-content ol,
.content ol {
    padding-left: 0 !important;
}

/* Исправляем двойные маркеры у ненумерованных списков */
.entry-content ul li,
.content ul li {
    list-style: none !important;
    padding-left: 25px !important;
}

/* Убираем встроенные маркеры браузера для ul */
.entry-content ul li::marker,
.content ul li::marker {
    content: none !important;
    display: none !important;
}

/* WordPress Images - исправляем переполнение */
.entry-content img,
.content img,
.wp-block-image img,
.wp-block-media-text img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 1rem 0;
}

.wp-block-image {
    max-width: 100% !important;
    overflow: hidden;
}

.wp-block-image.size-large,
.wp-block-image.size-full {
    max-width: 100% !important;
}

/* WordPress Figure elements */
.entry-content figure,
.content figure {
    max-width: 100% !important;
    margin: 1.5rem 0 !important;
    overflow: hidden;
}

.entry-content figure img,
.content figure img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

/* WordPress Media Text Block */
.wp-block-media-text {
    max-width: 100% !important;
    overflow: hidden;
}

/* WordPress Gallery */
.wp-block-gallery {
    max-width: 100% !important;
    overflow: hidden;
}

.wp-block-gallery .wp-block-image {
    max-width: 100% !important;
}

/* WordPress Buttons */
.entry-content .wp-block-button,
.content .wp-block-button {
    margin: 1.5rem 0;
}

.entry-content .wp-block-button__link,
.content .wp-block-button__link,
.entry-content .wp-block-button a,
.content .wp-block-button a {
    background: var(--button-gradient) !important;
    color: var(--text-dark) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    min-width: 120px !important;
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3) !important;
}

.entry-content .wp-block-button__link:hover,
.content .wp-block-button__link:hover,
.entry-content .wp-block-button a:hover,
.content .wp-block-button a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4) !important;
    filter: brightness(1.1) !important;
}

/* WordPress Button Style Variations */
.entry-content .wp-block-button.is-style-outline .wp-block-button__link,
.content .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent !important;
    color: var(--gold) !important;
    border: 2px solid var(--gold) !important;
    box-shadow: none !important;
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover,
.content .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--gold) !important;
    color: var(--text-dark) !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3) !important;
}

/* WordPress Secondary Button */
.entry-content .wp-block-button.is-style-fill .wp-block-button__link,
.content .wp-block-button.is-style-fill .wp-block-button__link {
    background: var(--accent-teal) !important;
    color: var(--text-light) !important;
    box-shadow: 0 4px 15px rgba(0, 139, 124, 0.3) !important;
}

.entry-content .wp-block-button.is-style-fill .wp-block-button__link:hover,
.content .wp-block-button.is-style-fill .wp-block-button__link:hover {
    background: var(--accent-green) !important;
    box-shadow: 0 6px 20px rgba(0, 139, 124, 0.4) !important;
}

/* WordPress Button Groups */
.entry-content .wp-block-buttons,
.content .wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
    margin: 1.5rem 0;
}

.entry-content .wp-block-buttons.is-content-justification-center,
.content .wp-block-buttons.is-content-justification-center {
    justify-content: center;
}

.entry-content .wp-block-buttons.is-content-justification-right,
.content .wp-block-buttons.is-content-justification-right {
    justify-content: flex-end;
}

/* WordPress Form Elements */
.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="password"],
.entry-content input[type="search"],
.entry-content input[type="url"],
.entry-content input[type="tel"],
.entry-content input[type="number"],
.entry-content textarea,
.entry-content select,
.content input[type="text"],
.content input[type="email"],
.content input[type="password"],
.content input[type="search"],
.content input[type="url"],
.content input[type="tel"],
.content input[type="number"],
.content textarea,
.content select {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-light) !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    width: 100% !important;
    max-width: 400px !important;
    transition: all 0.3s ease !important;
}

.entry-content input:focus,
.entry-content textarea:focus,
.entry-content select:focus,
.content input:focus,
.content textarea:focus,
.content select:focus {
    outline: none !important;
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2) !important;
}

/* WordPress Submit Buttons */
.entry-content input[type="submit"],
.entry-content button[type="submit"],
.content input[type="submit"],
.content button[type="submit"] {
    background: var(--button-gradient) !important;
    color: var(--text-dark) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
}

.entry-content input[type="submit"]:hover,
.entry-content button[type="submit"]:hover,
.content input[type="submit"]:hover,
.content button[type="submit"]:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3) !important;
}

/* Общие стили для предотвращения горизонтального скролла */
.entry-content,
.content {
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.entry-content *,
.content * {
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .promotion-banner-content {
        padding: 2rem;
    }

    .promotion-banner-title {
        font-size: 1.5rem;
    }

    .testimonial-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .payment-methods {
        gap: 1rem;
    }

    .payment-logo {
        height: 30px;
    }

    .entry-content {
        padding: 2rem;
    }

    .testimonials-title,
    .faq-title {
        font-size: 2rem;
    }

    /* Mobile table styles */
    .entry-content table,
    .content table {
        font-size: 12px;
    }

    .entry-content table th,
    .content table th,
    .entry-content table td,
    .content table td {
        padding: 8px 12px;
    }
}

.panel {
    position: fixed;
    bottom: 16px;
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    max-width: 540px;
    margin: auto;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
    border-radius: 10px;
    padding: 11px 18px;
    background: linear-gradient(90deg, #206DB9 0%, #0039A6 100%);
}

.panel__image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.group .group__text {
    color: #ffffff;
    line-height: 24px;
}

@media screen and (max-width: 767px) {
    .panel {
        gap: 8px;
        width: 90%;
        bottom: 10px;
        z-index: 10;
    }

    .group .group__text {
        font-size: 12px;
        line-height: 120%;
    }
}