/* ========================================
   НОВЫЕ СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ FAMILY
   ======================================== */

/* === НОВЫЙ HEADER === */
.new-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.new-header-container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Верхняя строка header */
.new-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.new-header-top-left,
.new-header-top-right {
    display: flex;
    gap: 20px;
}

.new-header-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.new-header-link:hover {
    color: #6381f0;
}

/* Основная строка header */
.new-header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.new-header-main-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #4C5870;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

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

.new-header-logo img {
    height: 50px;
}

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

.new-header-logo-text span {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    color: #4C5870;
    line-height: 1.3;
}

.new-header-logo-text span:first-child {
    font-weight: 700;
    font-size: 14px;
}

/* Навигация */
.new-header-main-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.new-header-nav {
    display: flex;
    gap: 30px;
}

.new-header-nav-link {
    color: #4C5870;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.new-header-nav-link:hover {
    color: #6381f0;
}

.new-header-nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6381f0;
    transition: width 0.3s;
}

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

/* Правая часть header */
.new-header-main-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.new-header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4C5870;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}

.new-header-phone i {
    color: #6381f0;
}

.new-header-icons {
    display: flex;
    gap: 15px;
}

.new-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
}

.new-header-icon img {
    max-width: 100%;
    max-height: 100%;
}

/* Поиск */
.new-header-search {
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
}

/* === HERO SECTION === */
.hero-section {
    margin-top: 160px;
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.hero-container {
    max-width: 1220px;
    margin: 0 auto;
}

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

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 60px;
    opacity: 0.9;
}

/* Карточки линеек */
.hero-lines-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.line-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.line-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.line-card-inner {
    text-align: center;
}

.line-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 35px;
}

.line-card[data-line="ecomily"] .line-card-icon {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #fff;
}

.line-card[data-line="royal"] .line-card-icon {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: #fff;
}

.line-card-title {
    font-size: 28px;
    font-weight: 700;
    color: #4C5870;
    margin-bottom: 15px;
}

.line-card-desc {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.line-card-features {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-badge {
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
}

/* === КОНТЕНТ ЛИНЕЕК === */
.lines-content {
    padding: 60px 20px;
}

.lines-container {
    max-width: 1220px;
    margin: 0 auto;
}

.line-content {
    animation: fadeIn 0.5s;
}

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

/* Заголовок линейки */
.line-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.line-title {
    font-size: 36px;
    font-weight: 700;
    color: #4C5870;
    margin-bottom: 10px;
}

.line-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.btn-close-line {
    width: 40px;
    height: 40px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666;
    transition: all 0.3s;
}

.btn-close-line:hover {
    background: #6381f0;
    color: #fff;
    transform: rotate(90deg);
}

/* Вкладки */
.line-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
}

.line-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    color: #666;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.line-tab:hover {
    color: #6381f0;
}

.line-tab.active {
    color: #6381f0;
    border-bottom-color: #6381f0;
}

.line-tab i {
    font-size: 18px;
}

/* Контент вкладок */
.line-tab-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s;
}

/* Сетка товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Преимущества */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: #f9f9f9;
    border-radius: 15px;
    transition: all 0.3s;
}

.feature-item:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: #fff;
    font-size: 30px;
}

.feature-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: #4C5870;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Материалы */
.materials-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.material-block {
    display: flex;
    gap: 25px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 15px;
}

.material-image {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
}

.material-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.material-info h4 {
    font-size: 20px;
    font-weight: 600;
    color: #4C5870;
    margin-bottom: 10px;
}

.material-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* === СЕКЦИЯ ПРЕИМУЩЕСТВ === */
.advantages-section {
    padding: 80px 20px;
    background: #f9f9f9;
}

.advantages-container {
    max-width: 1220px;
    margin: 0 auto;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #4C5870;
    text-align: center;
    margin-bottom: 60px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-card {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 15px;
    transition: all 0.3s;
}

.advantage-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: #fff;
    font-size: 35px;
}

.advantage-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #4C5870;
    margin-bottom: 10px;
}

.advantage-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* === АДАПТИВНОСТЬ === */

/* Планшеты */
@media (max-width: 980px) {
    .new-header-main-center {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .new-header-nav {
        position: fixed;
        top: 160px;
        left: -100%;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transition: left 0.3s;
    }
    
    .new-header-nav.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-lines-selector {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid,
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .materials-content {
        grid-template-columns: 1fr;
    }
    
    .line-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Мобильные устройства */
@media (max-width: 600px) {
    .new-header-top {
        flex-direction: column;
        gap: 10px;
    }
    
    .new-header-top-left,
    .new-header-top-right {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 12px;
    }
    
    .new-header-main {
        flex-wrap: wrap;
    }
    
    .new-header-logo-text {
        display: none;
    }
    
    .new-header-phone span {
        display: none;
    }
    
    .hero-section {
        margin-top: 120px;
        padding: 40px 20px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .line-card {
        padding: 30px 20px;
    }
    
    .line-title {
        font-size: 28px;
    }
    
    .line-tabs {
        gap: 5px;
    }
    
    .line-tab {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .line-tab span {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .features-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .material-block {
        flex-direction: column;
    }
    
    .material-image {
        width: 100%;
        height: 200px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 400px) {
    .hero-title {
        font-size: 24px;
    }
    
    .line-card-title {
        font-size: 22px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Фиксы для совместимости с существующими стилями */
body {
    padding-top: 0 !important;
}

.wrapper {
    margin-top: 0;
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

