/*
Theme Name: HITERS
File: Content Sections Design
Version: 3.0.0
Description: Стилизация секций контента с интерактивными табами
*/

/* ==========================================
   ОБЩИЕ СТИЛИ СЕКЦИЙ
   ========================================== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Фоны секций */
.section-bg-white {
    background: var(--primary-white);
}

.section-bg-gray {
    background: #F5F5F5;
}

.section-bg-dark {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: var(--primary-white);
}

.section-bg-red {
    background: linear-gradient(135deg, var(--primary-red) 0%, #C71920 100%);
    color: var(--primary-white);
}

/* ==========================================
   ЗАГОЛОВКИ СЕКЦИЙ
   ========================================== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-black);
    margin-bottom: 16px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.section-bg-dark .section-title h2,
.section-bg-red .section-title h2 {
    color: var(--primary-white);
}

.section-title p {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    color: #808080;
    margin: 0;
    line-height: 1.6;
}

.section-bg-dark .section-title p,
.section-bg-red .section-title p {
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================
   SERVICES GRID - TABS DESIGN
   ========================================== */
.tabs-container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

/* TABS HEADER */
.tabs-header {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-button {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 16px 32px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #606060;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(227, 30, 36, 0.1), transparent);
    transition: left 0.5s ease;
}

.tab-button:hover::before {
    left: 100%;
}

.tab-button:hover {
    border-color: var(--primary-red, #E31E24);
    color: var(--primary-red, #E31E24);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(227, 30, 36, 0.15);
}

.tab-button.active {
    background: linear-gradient(135deg, var(--primary-red, #E31E24) 0%, #c71920 100%);
    border-color: var(--primary-red, #E31E24);
    color: white;
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.3);
}

.tab-icon {
    font-size: 24px;
    line-height: 1;
}

.tab-text {
    white-space: nowrap;
}

/* TABS CONTENT */
.tab-pane {
    display: none;
    animation: fadeInTab 0.5s ease;
    margin-top: 40px;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SERVICE CONTENT LAYOUT */
.service-content-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    max-width: 100%;
    overflow: hidden;
}

/* SERVICE INFO */
.service-info-tabs {
    background: transparent;
    padding: 50px 45px;
    border-radius: 0;
    box-shadow: none;
}

.service-info-tabs h3 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-black, #000000);
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.service-info-tabs > p {
    font-size: 16px;
    color: #606060;
    line-height: 1.6;
    margin: 0 0 32px 0;
}

/* SERVICE BADGE */
.service-badge-tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.badge-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.4);
}

.badge-gray {
    background: linear-gradient(135deg, #606060 0%, #404040 100%);
    color: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

/* SERVICE FEATURES LIST */
.service-features-tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.service-features-tabs li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.service-features-tabs li:last-child {
    border-bottom: none;
}

.feature-check-tabs {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-red, #E31E24) 0%, #c71920 100%);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    flex-shrink: 0;
}

.service-features-tabs li span {
    font-size: 15px;
    color: #404040;
    line-height: 1.6;
}

.service-features-tabs li strong {
    color: var(--primary-black, #000000);
    font-weight: 700;
}

/* SERVICE CATEGORIES INLINE */
.service-categories-inline {
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
}

.categories-label {
    font-size: 13px;
    font-weight: 700;
    color: #606060;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: white;
    border: 2px solid #e8e8e8;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #404040;
    transition: all 0.3s ease;
}

.category-item:hover {
    border-color: var(--primary-red, #E31E24);
    background: #fff9f9;
    transform: translateY(-2px);
}

/* SERVICE HIGHLIGHT BOX */
.service-highlight-box {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 100%);
    border-left: 4px solid #FFD700;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.service-highlight-box .highlight-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.service-highlight-box p {
    margin: 0;
    font-size: 14px;
    color: #806600;
    font-weight: 600;
    line-height: 1.6;
}

/* ACTION BUTTONS */
.action-buttons-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-tabs {
    flex: 1;
    min-width: 160px;
    padding: 16px 24px;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary-tabs {
    background: linear-gradient(135deg, var(--primary-red, #E31E24) 0%, #c71920 100%);
    color: white;
    border: 2px solid var(--primary-red, #E31E24);
    box-shadow: 0 4px 16px rgba(227, 30, 36, 0.3);
}

.btn-primary-tabs:hover {
    background: linear-gradient(135deg, #c71920 0%, var(--primary-red, #E31E24) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(227, 30, 36, 0.4);
}

.btn-outline-tabs {
    background: white;
    color: var(--primary-red, #E31E24);
    border: 2px solid var(--primary-red, #E31E24);
}

.btn-outline-tabs:hover {
    background: var(--primary-red, #E31E24);
    color: white;
}

/* SERVICE VISUALS WRAPPER */
.service-visuals-wrapper {
    display: flex;
    gap: 20px;
    align-items: stretch;
    padding: 20px 30px 50px 30px;
    background: transparent;
}

/* SERVICE IMAGE BLOCK */
.service-image-block {
    flex: 1;
    border-radius: 0;
    min-height: 700px;
    width: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0;
}

.service-image-block:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.service-image-block.copacking-image {
    background-image: url('../media/teaprepak.png');
    background-size: 98%;
    background-position: center -75px;
}

.service-image-block.production-image {
    background-image: url('../media/prepakagusha.png');
    background-size: 98%;
    background-position: center -75px;
}

/* SERVICE VISUAL BLOCK */
.service-visual-tabs {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-radius: 0;
    padding: 20px 15px;
    position: relative;
    overflow: hidden;
    flex: 0 0 220px;
    max-width: 220px;
    background: transparent;
}

/* Фон для Копакинга */
.service-visual-tabs.copacking-visual {
    background: transparent;
}

/* Фон для Производства */
.service-visual-tabs.production-visual {
    background: transparent;
}

.service-visual-tabs::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: transparent;
    display: none;
}

.service-visual-icon {
    font-size: 120px;
    line-height: 1;
    filter: drop-shadow(0 8px 24px rgba(227, 30, 36, 0.15));
    position: relative;
    z-index: 1;
    display: none;
}

/* STATS GRID */
.stats-grid-tabs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.stat-box-tabs {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    box-shadow: none;
    transition: all 0.3s ease;
    color: #2a2a2a !important;
}

.stat-box-tabs:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #2a2a2a !important;
    line-height: 1;
    margin-bottom: 6px;
    opacity: 1;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: #2a2a2a !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 1;
}


/* ==========================================
   FEATURES GRID
   ========================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    /* Все стили удалены */
}

.feature-icon {
    /* Все стили удалены */
}

.feature-icon img {
    /* Все стили удалены */
}

.feature-card h3 {
    /* Все стили удалены */
}

.feature-card p {
    /* Все стили удалены */
}
}

/* ==========================================
   CONTACT FORM SECTION
   ========================================== */
.contact-section {
    background: #F5F5F5;
    padding: 100px 0;
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--primary-white);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-red) 0%, #ff4444 50%, var(--primary-red) 100%);
    background-size: 200% 100%;
    animation: gradientSlide 3s ease infinite;
}

@keyframes gradientSlide {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.contact-form-wrapper h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: var(--primary-black);
    margin-bottom: 12px;
    text-align: center;
}

.contact-form-wrapper > p {
    font-size: 18px;
    color: #808080;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
}

/* ==========================================
   CUSTOM FORM STYLES
   ========================================== */
.custom-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row .full-width {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-control {
    padding: 16px 20px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    background: var(--primary-white);
    position: relative;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
    transform: translateY(-2px);
}

.form-control:hover {
    border-color: #C8C8C8;
}

.form-control::placeholder {
    color: #A0A0A0;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    font-family: 'Montserrat', sans-serif;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-red) 0%, #C71920 100%);
    color: var(--primary-white);
    padding: 18px 48px;
    border: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(227, 30, 36, 0.3);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.submit-btn:hover::before {
    width: 300%;
    height: 300%;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #C71920 0%, var(--primary-red) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(227, 30, 36, 0.5);
}

.submit-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.contact-form-note {
    font-size: 13px;
    color: #808080;
    text-align: center;
    margin-top: 20px;
    line-height: 1.5;
}

.admin-note {
    background: #FFF3CD;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #FFC107;
    margin-top: 20px;
    font-size: 14px;
}

.admin-note a {
    color: var(--primary-red);
    font-weight: 600;
}

/* ==========================================
   CONTACT FORM 7 COMPATIBILITY
   ========================================== */
.contact-form-card__body .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-card__body .wpcf7-form p {
    margin: 0;
}

.contact-form-card__body .wpcf7-form input[type="text"],
.contact-form-card__body .wpcf7-form input[type="email"],
.contact-form-card__body .wpcf7-form input[type="tel"],
.contact-form-card__body .wpcf7-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.contact-form-card__body .wpcf7-form input:focus,
.contact-form-card__body .wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
}

.contact-form-card__body .wpcf7-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form-card__body .wpcf7-form input[type="submit"] {
    background: var(--primary-red);
    color: var(--primary-white);
    padding: 18px 48px;
    border: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(227, 30, 36, 0.3);
}

.contact-form-card__body .wpcf7-form input[type="submit"]:hover {
    background: #C71920;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(227, 30, 36, 0.4);
}

/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .section {
        padding: 80px 0;
    }

    .section-container {
        padding: 0 30px;
    }

    .section-title h2 {
        font-size: 38px;
    }

    /* Tabs mobile adjustments */
    .tabs-header {
        flex-direction: column;
        gap: 12px;
    }

    .tab-button {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    .service-content-tabs {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0;
    }

    .service-visuals-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .service-image-block {
        min-height: 250px;
        order: -1;
    }

    .service-info-tabs {
        padding: 30px 20px;
    }

    .service-visual-tabs {
        order: 0;
        padding: 20px 15px;
        flex: 1;
        max-width: 100%;
    }

    .service-visual-icon {
        font-size: 80px;
    }

    .contact-form-wrapper {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-container {
        padding: 0 20px;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .section-title p {
        font-size: 16px;
    }

    /* Tabs mobile */
    .tab-button {
        font-size: 14px;
        padding: 12px 20px;
    }

    .tab-icon {
        font-size: 20px;
    }

    .service-content-tabs {
        padding: 0;
        gap: 24px;
    }

    .service-image-block {
        min-height: 200px;
    }

    .service-info-tabs {
        padding: 24px 16px;
    }

    .service-info-tabs h3 {
        font-size: 24px;
    }

    .service-info-tabs > p {
        font-size: 14px;
    }

    .service-features-tabs li {
        padding: 10px 0;
    }

    .service-features-tabs li span {
        font-size: 14px;
    }

    .action-buttons-tabs {
        flex-direction: column;
    }

    .btn-tabs {
        width: 100%;
    }

    .service-visual-icon {
        font-size: 64px;
    }

    .stats-grid-tabs {
        gap: 12px;
    }

    .stat-box_tabs {
        padding: 16px;
    }

    .stat-number {
        font-size: 28px;
        color: #2a2a2a !important;
    }

    .categories-list {
        gap: 6px;
    }

    .category-item {
        font-size: 12px;
        padding: 5px 10px;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .contact-form-wrapper h3 {
        font-size: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
