/*
Theme Name: TERRA PREMIUM
Theme URI: https://pkf-terra.ru
Author: ПКФ "Терра"
Description: Премиальный корпоративный сайт с современным дизайном
Version: 2.0
*/

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* БРЕНДОВЫЕ ЦВЕТА на основе логотипа */
    --terra-primary: #C45C2C;       /* Основной терракотовый */
    --terra-secondary: #8B4513;     /* Темный терракотовый */
    --terra-accent: #E67E22;        /* Акцентный оранжевый */
    --terra-light: #F5E6D3;         /* Светлый бежевый фон */
    --terra-dark: #2C1810;          /* Темный шоколад */
    --terra-white: #FFF8F0;         /* Кремовый белый */
    --terra-gold: #D4AF37;          /* Золотой акцент */
    
    /* Тени и эффекты */
    --shadow-sm: 0 2px 10px rgba(44, 24, 16, 0.1);
    --shadow-md: 0 5px 20px rgba(44, 24, 16, 0.15);
    --shadow-lg: 0 10px 40px rgba(44, 24, 16, 0.2);
    --shadow-glow: 0 0 30px rgba(230, 126, 34, 0.3);
}

body {
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    background: var(--terra-white);
    color: var(--terra-dark);
    overflow-x: hidden;
    line-height: 1.7;
}

/* ===== ПРЕМИАЛЬНЫЙ HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(196, 92, 44, 0.1);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 248, 240, 0.98);
    box-shadow: var(--shadow-md);
    padding: 5px 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

/* ЛОГОТИП в стиле бренда */
.logo {
    position: relative;
    z-index: 1001;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--terra-primary), var(--terra-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.logo-icon::before {
    content: 'T';
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--terra-white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--terra-secondary);
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 12px;
    color: var(--terra-primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: -3px;
}

/* НАВИГАЦИЯ ПРЕМИУМ */
.main-nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--terra-dark);
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--terra-primary), var(--terra-accent));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--terra-primary);
}

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

/* КНОПКА ПРЕМИУМ */
.btn-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--terra-primary), var(--terra-secondary));
    color: var(--terra-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium i {
    font-size: 18px;
}

/* ===== HERO SECTION - УЛЬТРА КРЕАТИВ ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--terra-light) 0%, #ffffff 100%);
    margin-top: 100px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(196, 92, 44, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 69, 19, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 1s ease;
}

.hero-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(196, 92, 44, 0.1);
    color: var(--terra-primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(196, 92, 44, 0.2);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--terra-secondary);
    margin-bottom: 30px;
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--terra-primary), var(--terra-accent));
}

.hero-subtitle {
    font-size: 20px;
    color: var(--terra-dark);
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-outline {
    padding: 14px 32px;
    background: transparent;
    color: var(--terra-primary);
    border: 2px solid var(--terra-primary);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--terra-primary);
    color: var(--terra-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* 3D ВИЗУАЛИЗАЦИЯ ПРОДУКЦИИ */
.hero-visual {
    position: relative;
    height: 600px;
    perspective: 1000px;
}

.product-3d-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

.product-3d {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--terra-primary), var(--terra-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        var(--shadow-lg),
        inset 0 0 50px rgba(255,255,255,0.1);
    overflow: hidden;
}

.product-3d:nth-child(1) {
    top: 0;
    left: 0;
    transform: rotateX(15deg) rotateY(-15deg);
    animation-delay: 0s;
}

.product-3d:nth-child(2) {
    top: 150px;
    left: 200px;
    transform: rotateX(10deg) rotateY(10deg);
    background: linear-gradient(135deg, var(--terra-accent), #FF8C00);
    animation-delay: 0.5s;
}

.product-3d:nth-child(3) {
    top: 300px;
    left: 50px;
    transform: rotateX(-10deg) rotateY(-5deg);
    background: linear-gradient(135deg, var(--terra-secondary), #5D4037);
    animation-delay: 1s;
}

.product-3d::before {
    content: 'ТЕРРА';
    position: absolute;
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 900;
    color: rgba(255,255,255,0.1);
    transform: rotate(-45deg);
}

/* ===== ПРОДУКЦИЯ - СЕТКА С ЭФФЕКТАМИ ===== */
.products-showcase {
    padding: 120px 40px;
    background: var(--terra-white);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-label {
    display: inline-block;
    padding: 8px 25px;
    background: var(--terra-light);
    color: var(--terra-primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    color: var(--terra-secondary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--terra-primary), var(--terra-accent));
}

/* ИННОВАЦИОННАЯ СЕТКА ПРОДУКТОВ */
.products-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card-modern {
    position: relative;
    background: var(--terra-white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(196, 92, 44, 0.1);
}

.product-card-modern:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--terra-accent), #FF8C00);
    color: var(--terra-white);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    z-index: 2;
}

.product-image-container {
    height: 250px;
    background: linear-gradient(135deg, var(--terra-light), #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.product-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(196, 92, 44, 0.05), transparent);
}

.product-img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(5px 5px 15px rgba(0,0,0,0.1));
    transition: transform 0.4s ease;
}

.product-card-modern:hover .product-img {
    transform: scale(1.1) rotate(5deg);
}

.product-info-modern {
    padding: 30px;
    position: relative;
}

.product-title-modern {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--terra-secondary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.product-title-modern::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--terra-primary);
}

.product-specs-modern {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(196, 92, 44, 0.1);
}

.spec-label {
    font-size: 14px;
    color: var(--terra-dark);
    opacity: 0.7;
}

.spec-value {
    font-weight: 600;
    color: var(--terra-primary);
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(196, 92, 44, 0.1);
}

.price-amount {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--terra-secondary);
    position: relative;
}

.price-amount::before {
    content: 'от';
    position: absolute;
    top: -15px;
    left: 0;
    font-size: 12px;
    color: var(--terra-primary);
    opacity: 0.7;
}

/* ===== О КОМПАНИИ - ПРЕМИУМ БЛОК ===== */
.about-premium {
    padding: 120px 40px;
    background: linear-gradient(135deg, var(--terra-dark) 0%, var(--terra-secondary) 100%);
    color: var(--terra-white);
    position: relative;
    overflow: hidden;
}

.about-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(230, 126, 34, 0.1) 0%, transparent 50%);
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item-premium {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.stat-item-premium:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.stat-number-premium {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--terra-gold);
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.stat-text-premium {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

/* ===== ПРИЗНАНИЕ И НАГРАДЫ ===== */
.awards-section {
    padding: 80px 40px;
    background: var(--terra-white);
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 40px auto;
}

.award-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--terra-white);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(196, 92, 44, 0.1);
}

.award-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.award-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--terra-light), #ffffff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--terra-primary);
    box-shadow: var(--shadow-sm);
}

/* ===== CTA БЛОК - ПРЕМИУМ ===== */
.cta-premium {
    padding: 120px 40px;
    background: linear-gradient(135deg, var(--terra-primary) 0%, var(--terra-accent) 100%);
    color: var(--terra-white);
    position: relative;
    overflow: hidden;
}

.cta-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path fill="rgba(255,255,255,0.05)" d="M0,500Q250,400,500,500Q750,600,1000,500L1000,1000L0,1000Z"/></svg>');
    background-size: cover;
    background-position: bottom;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.cta-subtitle {
    font-size: 20px;
    margin-bottom: 50px;
    opacity: 0.95;
}

/* ===== FOOTER ПРЕМИУМ ===== */
.footer-premium {
    background: var(--terra-dark);
    color: var(--terra-white);
    padding: 80px 40px 30px;
    position: relative;
}

.footer-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--terra-primary), transparent);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--terra-primary), var(--terra-accent));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--terra-white);
}

.footer-column h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--terra-gold);
    margin-bottom: 25px;
    position: relative;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--terra-primary);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--terra-primary);
    padding-left: 10px;
}

.footer-links a::before {
    content: '→';
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info i {
    color: var(--terra-primary);
    font-size: 18px;
    margin-top: 3px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terra-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--terra-primary);
    transform: translateY(-3px);
}

/* ===== АНИМАЦИИ ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotateX(0) rotateY(0);
    }
    50% {
        transform: translateY(-20px) rotateX(5deg) rotateY(5deg);
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(196, 92, 44, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(196, 92, 44, 0.6);
    }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 56px;
    }
    
    .hero-visual {
        height: 500px;
    }
    
    .products-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
        height: 80px;
    }
    
    .hero-section {
        min-height: 700px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .products-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .cta-title {
        font-size: 42px;
    }
}