/* SV-Okna.ru: Стили для блока "Природная красота и экологичность окон" */

/* Основные стили блока */
.wood-types-section {
    font-family: 'Montserrat', 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f9f7f3 0%, #ffffff 100%);
    padding: 70px 0;
    color: #2c3e50;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.wood-types-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2e7d32, #8d6e63, #2e7d32);
    z-index: 1;
}

.wood-types-section .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

/* Заголовки */
.wood-types-title {
    font-size: 2.4rem !important;
    font-weight: 700 !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    color: #1e2b3c !important;
    text-align: center;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    line-height: 1.2 !important;
    border: none !important;
    background: none !important;
}

/* Иконки-листочки */
.title-leaf {
    display: inline-block;
    width: 40px;
    height: 40px;
    position: relative;
    animation: gentleFloat 3s infinite ease-in-out;
    background: none !important;
    border: none !important;
}

.title-leaf:first-child::before,
.title-leaf:last-child::before {
    content: "🌿";
    font-size: 2rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
    display: block;
}

.title-leaf:first-child {
    animation-delay: 0s;
}

.title-leaf:last-child {
    animation-delay: 1.5s;
}

.wood-types-subtitle {
    text-align: center;
    font-size: 1.2rem !important;
    line-height: 1.6 !important;
    color: #5f6b7a !important;
    max-width: 800px;
    margin: 0 auto 50px auto !important;
    font-family: 'Georgia', serif;
    font-style: italic;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

/* Сетка карточек */
.wood-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    list-style: none !important;
}

/* Карточка */
.wood-card {
    margin: 0 !important;
    padding: 0 !important;
    perspective: 1500px;
    width: 100%;
    box-sizing: border-box;
    list-style: none !important;
}

.wood-card-inner {
    background: white;
    border-radius: 24px;
    padding: 30px 20px;
    height: 100%;
    width: 100%;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f0e9e0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    margin: 0 !important;
}

.wood-card-inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2e7d32, #a5d6a5, #2e7d32);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
}

.wood-card-inner:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(46, 125, 50, 0.15);
    border-color: #c5e1c5;
}

.wood-card-inner:hover::before {
    transform: translateX(0);
}

/* Иконки деревьев */
.wood-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px auto;
    position: relative;
    background: none !important;
    border: none !important;
}

/* Липа */
.wood-card:nth-child(1) .wood-icon::before {
    content: "🌱";
    font-size: 3.5rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
    line-height: 1;
    display: block;
}

/* Сосна */
.wood-card:nth-child(2) .wood-icon::before {
    content: "🌲";
    font-size: 3.5rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
    line-height: 1;
    display: block;
}

/* Лиственница */
.wood-card:nth-child(3) .wood-icon::before {
    content: "🌳";
    font-size: 3.5rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
    line-height: 1;
    display: block;
}

/* Дуб */
.wood-card:nth-child(4) .wood-icon::before {
    content: "🌰";
    font-size: 3.5rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
    line-height: 1;
    display: block;
}

.wood-card-inner:hover .wood-icon::before {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Заголовок карточки */
.wood-title {
    font-size: 1.8rem !important;
    font-weight: 600 !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    color: #2e7d32 !important;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.2 !important;
    border: none !important;
    background: none !important;
}

/* Разделитель */
.wood-divider {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #2e7d32, #a5d6a5);
    margin: 0 auto 15px auto;
    border-radius: 2px;
    border: none !important;
}

/* Описание */
.wood-description {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: #4a5a6e !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    flex: 1;
    font-family: 'Open Sans', sans-serif;
    text-align: left;
    border: none !important;
    background: none !important;
}

/* Свойство (плотность) */
.wood-property {
    background: #f0f5fa;
    padding: 8px 12px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: #1e2b3c;
    text-align: center;
    border: 1px solid #e0e9f0;
    margin: 0 !important;
}

.prop-label {
    color: #2e7d32;
    font-weight: 600;
    margin-right: 5px;
}

/* Анимации */
@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Адаптивность */
@media (max-width: 1024px) {
    .wood-types-title {
        font-size: 2rem !important;
    }
    
    .wood-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 768px) {
    .wood-types-section {
        padding: 50px 0;
    }
}

@media (max-width: 640px) {
    .wood-types-title {
        font-size: 1.6rem !important;
        gap: 8px;
    }
    
    .title-leaf::before,
    .title-leaf:last-child::before {
        font-size: 1.4rem;
    }
    
    .wood-types-subtitle {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
    }
    
    .wood-grid {
        grid-template-columns: 1fr !important;
        max-width: 400px;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .wood-card-inner {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .wood-types-title {
        font-size: 1.4rem !important;
    }
    
    .wood-card-inner {
        padding: 20px 15px;
    }
    
    .wood-title {
        font-size: 1.5rem !important;
    }
}