/*
Theme Name: ПК ЗОЦМ - Завод цветных металлов
Description: Корпоративная тема WordPress для ООО "ПК ЗОЦМ" - производителя бронзового металлопроката. Полностью автономная версия без внешних зависимостей.
Author: ПК ЗОЦМ
Version: 2.2
Text Domain: pkzocm
*/

/* ПОЛНЫЙ СБРОС И БАЗОВЫЕ СТИЛИ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background-color: #f9fafb;
    margin: 0;
    padding: 0;
}

/* БАЗОВАЯ СТРУКТУРА WORDPRESS */
.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 1 auto;
    width: 100%;
    background-color: #f9fafb;
}

/* КОНТЕЙНЕР */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ЗАГОЛОВОК САЙТА */
.site-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #1e40af 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 15px;
}

/* ЛОГОТИП */
.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    background-color: #f97316;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
}

.site-title {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.site-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: #fdba74;
}

.site-description {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    display: none;
}

/* НАВИГАЦИЯ */
.main-navigation {
    display: none;
}

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

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: color 0.3s ease;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-menu a:hover {
    color: #fdba74;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Выпадающие меню */
.menu-item-has-children {
    position: relative;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1f2937;
    min-width: 200px;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li a {
    display: block;
    padding: 8px 20px;
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sub-menu li:last-child a {
    border-bottom: none;
}

.sub-menu li a:hover {
    background: rgba(249, 115, 22, 0.1);
    color: #fdba74;
}

/* КОНТАКТНАЯ ИНФОРМАЦИЯ В ХЕДЕРЕ */
.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-info {
    text-align: right;
    display: none;
}

.contact-phone {
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.contact-email {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.callback-button {
    background-color: #f97316;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.callback-button:hover {
    background-color: #ea580c;
}

.mobile-menu-toggle {
    background-color: #f97316;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    display: block;
}

/* HERO СЕКЦИЯ */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #1e40af 100%);
    color: white;
    padding: 60px 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle-text {
    background: linear-gradient(135deg, #cd7f32 0%, #b8860b 50%, #daa520 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #daa520; /* Fallback для браузеров без поддержки */
}

.hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.5;
}

/* ПРЕИМУЩЕСТВА */
.hero-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.feature-icon {
    font-size: 20px;
    width: 20px;
}

.feature-text {
    font-size: 14px;
}

/* КНОПКИ */
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.btn-primary {
    background-color: #f97316;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 300px;
    width: 100%;
    justify-content: center;
}

.btn-primary:hover {
    background-color: #ea580c;
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 15px 30px;
    border: 2px solid white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 300px;
    width: 100%;
    justify-content: center;
}

.btn-secondary:hover {
    background-color: white;
    color: #1e40af;
}

/* ФОРМА РАСЧЕТА */
.calculation-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
}

.form-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: white;
}

/* ФОРМЫ */
.form-row {
    margin-bottom: 15px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color: white;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
    color: #333;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-button {
    width: 100%;
    background-color: #f97316;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 10;
    margin-top: 10px;
}

.form-button:hover {
    background-color: #ea580c;
}

/* Улучшения для компонента согласий */
.privacy-consent-container {
    background: #f8fafc !important;
    padding: 10px !important;
    border-radius: 6px !important;
    margin: 15px 0 !important;
    border: 1px solid #e2e8f0 !important;
    clear: both !important;
}

.privacy-consent-container h4 {
    font-size: 12px !important;
    margin: 0 0 8px 0 !important;
}

.privacy-consent-container label {
    font-size: 11px !important;
    line-height: 1.3 !important;
}

/* Исправление проблем с позиционированием */
.calculator-form,
.quick-calc-form,
.general-order-form,
.contact-form {
    position: relative;
}

.calculator-form .privacy-consent-container,
.quick-calc-form .privacy-consent-container,
.general-order-form .privacy-consent-container,
.contact-form .privacy-consent-container {
    margin-bottom: 15px !important;
}

/* Убеждаемся, что кнопки форм всегда видны */
.calculator-form .form-button,
.quick-calc-form .form-button,
.general-order-form .form-button,
.contact-form .form-button {
    position: relative;
    z-index: 100;
    margin-top: 15px !important;
}

/* Мобильная адаптация для форм согласий */
@media (max-width: 768px) {
    .privacy-consent-container {
        padding: 8px !important;
        margin: 10px 0 12px 0 !important;
        font-size: 11px !important;
    }
    
    .privacy-consent-container h4 {
        font-size: 11px !important;
        margin-bottom: 6px !important;
    }
    
    .privacy-consent-container label {
        font-size: 10px !important;
        line-height: 1.2 !important;
    }
    
    .privacy-consent-container p {
        font-size: 9px !important;
        line-height: 1.1 !important;
    }
}
}

.form-note {
    font-size: 12px;
    text-align: center;
    opacity: 0.75;
    margin-top: 10px;
    color: white;
}

/* О КОМПАНИИ */
.about-section {
    padding: 60px 0;
    background: white;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    color: #111827;
    margin-bottom: 20px;
    text-align: center;
}

.section-description {
    font-size: 18px;
    color: #374151;
    margin-bottom: 40px;
    line-height: 1.6;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.about-content h3 {
    font-size: 24px;
    font-weight: bold;
    color: #111827;
    margin-bottom: 20px;
}

.about-text {
    font-size: 16px;
    color: #374151;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* ИНФОРМАЦИОННЫЕ БЛОКИ */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-icon {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.info-icon.blue { background-color: #dbeafe; color: #2563eb; }
.info-icon.green { background-color: #dcfce7; color: #16a34a; }
.info-icon.orange { background-color: #fed7aa; color: #ea580c; }

.info-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 5px;
}

.info-content p {
    font-size: 14px;
    color: #4b5563;
    margin: 0;
}

/* СТАТИСТИКА */
.stats-card {
    background: linear-gradient(135deg, #eff6ff 0%, #fff7ed 100%);
    padding: 30px;
    border-radius: 15px;
}

.stats-title {
    font-size: 20px;
    font-weight: bold;
    color: #111827;
    margin-bottom: 20px;
    text-align: center;
}

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

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-number.blue { color: #2563eb; }
.stat-number.green { color: #16a34a; }
.stat-number.orange { color: #ea580c; }
.stat-number.purple { color: #9333ea; }

.stat-label {
    font-size: 14px;
    color: #4b5563;
}

/* КОНТАКТЫ */
.contacts-section {
    padding: 60px 0;
    background: #111827;
    color: white;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-icon.phone { background-color: #f97316; }
.contact-icon.email { background-color: #3b82f6; }
.contact-icon.address { background-color: #22c55e; }

.contact-details h4 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.contact-details p {
    margin: 0;
    opacity: 0.8;
}

.contact-value {
    color: #60a5fa;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}

.contact-value.phone { color: #fb923c; }

/* ФОРМА КОНТАКТОВ */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
}

/* ПОДВАЛ */
.site-footer {
    background: #000000;
    color: white;
    padding: 40px 0 20px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo-icon {
    background-color: #f97316;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.footer-description {
    font-size: 14px;
    opacity: 0.75;
    line-height: 1.5;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    opacity: 0.75;
}

/* УТИЛИТАРНЫЕ КЛАССЫ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }

.mb-2 { margin-bottom: 10px; }
.mb-4 { margin-bottom: 20px; }

/* АНИМАЦИИ */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* МОБИЛЬНОЕ МЕНЮ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100%;
    background: #1e40af;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1101;
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav li {
    margin-bottom: 5px;
}

.mobile-nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* АДАПТИВНОСТЬ */
@media (min-width: 480px) {
    .site-description {
        display: block;
    }
    
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .main-navigation {
        display: block;
    }
    
    .contact-info {
        display: block;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-description {
        font-size: 20px;
    }
    
    .hero-features {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contacts-grid {
        grid-template-columns: 1fr 2fr;
    }
}

/* Выпадающее меню */
.menu-item-has-children {
    position: relative;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #e2e8f0;
}

.sub-menu li {
    margin: 0;
}

.sub-menu a {
    display: block;
    padding: 12px 20px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.sub-menu a:hover {
    background: #f8fafc;
    color: #d97706;
    padding-left: 25px;
}

.sub-menu li:last-child a {
    border-bottom: none;
}

.sub-menu li:first-child a {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.sub-menu li:last-child a {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-content {
        text-align: left;
    }
    
    .hero-actions {
        justify-content: flex-start;
    }
    
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    /* Показываем навигацию на десктопе */
    .main-navigation {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    /* Более компактное меню */
    .nav-menu {
        gap: 15px;
    }
    
    .nav-menu a {
        font-size: 13px;
        padding: 5px 0;
    }
}

/* ИСПРАВЛЕНИЯ ДЛЯ WORDPRESS */
.wp-core-ui .form-input,
.wp-core-ui .form-select,
.wp-core-ui .form-textarea {
    max-width: none;
}

/* ОБЕСПЕЧЕНИЕ ВИДИМОСТИ КОНТЕНТА */
.site-main {
    background-color: white !important;
    min-height: 50vh;
}

.hero-section,
.about-section,
.contacts-section {
    display: block !important;
    visibility: visible !important;
}

/* РЕЗЕРВНЫЕ СТИЛИ НА СЛУЧАЙ ПРОБЛЕМ С CSS */
body {
    background: white !important;
}

main, .main, #main {
    background: white !important;
    min-height: 300px !important;
    display: block !important;
}

section {
    display: block !important;
    padding: 20px 0 !important;
}

.container {
    background: transparent !important;
}