/* ==========================================================================
   Стили для главной страницы (index.php)
   ========================================================================== */

/* Обновляем переменные цветов */
:root {
    --primary-color: #abae98;
    --secondary-color: #add899;
    --accent-color: #c5d6b5;
    --title-color: #8a8d7a;
    --text-color: #4a4a4a;
    --light-gray: #f5f7f3;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --hover-transform: translateY(-5px);
    --price-btn: #e8f0e5;
    --price_btn_hover: #d4e5d0;
    --icons-color: #abae98;
    --primary-color-rgb: 171, 174, 152;
    --secondary-color-rgb: 173, 216, 153;
    --title-color-rgb: 138, 141, 122;
}

/* Hero секция */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, #f6f8fd 0%, #f1f4f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.8) 0%, transparent 50%),
        url('../images/pattern.png');
    opacity: 0.4;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, rgba(var(--primary-color-rgb), 0.05) 0%, transparent 100%),
        linear-gradient(-45deg, rgba(var(--secondary-color-rgb), 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.hero-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.template-content .btn {
    background: var(--price-btn);
    color: var(--text-color);
    padding: 2px 15px;
    border-radius: 30px;
    font-size: 1rem;
    border: none;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.template-content .btn:hover {
    background: var(--price_btn_hover);
    color: var(--white);
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    scale: 1.1;
}

.template-content .btn:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 4px rgba(171, 174, 152, 0.1),
        0 4px 8px rgba(171, 174, 152, 0.1);
}

/* Популярные шаблоны */
.popular-templates {
    padding: 100px 0;
    background: var(--light-gray);
 
   position: relative;
    overflow: hidden;
}

.popular-templates::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--white), var(--light-gray));
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: var(--title-color);
    position: relative;
    padding-bottom: 1rem;
    font-weight: var(--font-weight-bold);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--title-color), var(--secondary-color));
    border-radius: 2px;
}

.templates-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 20px;
    justify-items: center;
}

.template-card {
    position: relative;
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* iPhone 16 стилизация */
.iphone-frame {
    position: relative;
    width: 280px;
    height: 580px;
    background: var(--white);
    border-radius: 45px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 12px solid #1a1a1a;
}

/* Dynamic Island */
.iphone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 35px;
    background: #1a1a1a;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 2;
}

.template-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 33px;
}

.template-image img {
    width: 100%;
    height: 200%;
    object-fit: cover;
    animation: scrollImage 10s linear infinite;
}

@keyframes scrollImage {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.template-content {
    text-align: center;
    padding: 0 20px;
}

.template-title {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.price {
    font-size: 1rem;
    margin-bottom: 10px;
}

/* Преимущества */
.features {
    padding: 80px 0;
    background: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(240, 230, 210, 0.5);
}

.feature-card:hover {
    transform: var(--hover-transform);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    font-size: 1.4rem;
}

.feature-card p {
    color: var(--text-color);
    opacity: 0.8;
}

/* CTA секция */
.cta {
    padding: 50px 0;
    background: linear-gradient(135deg, #faf6f0, #f0e6d2);  
    color: #1e293b;
}

.cta-content {
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(100px);
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--title-color);
    font-weight: var(--font-weight-bold);
    text-align: center;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--title-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta p {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #4b5563;
    line-height: 1.8;
}

.cta-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
 

}

.step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(240, 230, 210, 0.5);
}

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 3rem;
    padding: 0 15px;
    opacity: 0.8;
}

.step-arrow i {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step-title {
    font-size: 1.4rem;
    font-weight: var(--font-weight-bold);
    color: var(--title-color);
    margin: 0;
    background: linear-gradient(135deg, var(--title-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.messenger-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 3rem 0;
}

.messenger-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #fff;
    min-width: 200px;
    justify-content: center;
}

.messenger-btn i {
    font-size: 1.6rem;
}

/* WhatsApp */
.messenger-btn.whatsapp {
    background: #25D366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.messenger-btn.whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: #fff;
    text-decoration: none;
}

/* Telegram */
.messenger-btn.telegram {
    background: #0088cc;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.messenger-btn.telegram:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.4);
    color: #fff;
    text-decoration: none;
}

/* Общие эффекты для всех кнопок */
.messenger-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.messenger-btn:hover::before {
    left: 100%;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .templates-slider {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 30px;
    }

    .template-card {
        width: 240px;
    }

    .iphone-frame {
        width: 240px;
        height: 500px;
        border-radius: 40px;
    }

    .template-image {
        border-radius: 28px;
    }

    .cta h2 {
        font-size: 2rem;
    }
    
    .cta p {
        font-size: 1.1rem;
    }
    
    .cta-content {
        padding: 30px 20px;
    }

    .cta-steps {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 5px 0;
    }

    .step-arrow i {
        transform: rotate(90deg);
    }

    .step-arrow:hover i {
        transform: translateY(5px) rotate(90deg);
    }

    .messenger-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .messenger-btn {
        width: 100%;
        padding: 1rem 1.5rem;
    }

    .cta .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .template-content .btn {
        padding: 2px 12px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    .section-title{
        font-size: 1.5rem;
    }

    .templates-slider {
        grid-template-columns: 1fr;
    }

    .template-card {
        width: 220px;
    }

    .iphone-frame {
        width: 220px;
        height: 460px;
        border-radius: 35px;
    }

    .template-image {
        border-radius: 23px;
    }

    .features {
        padding: 20px 0;
       
    }
    
    .features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 10px;
        padding: 10px;
    }
    

    .feature-card {
        background: var(--white);
        padding: 10px;
        border-radius: 15px;
        text-align: center;
        box-shadow: var(--shadow);
        transition: var(--transition);
    }

    .cta h2 {
        font-size: 1.8rem;
    }
    
    .cta p {
        font-size: 1rem;
    }
    
    .cta .btn-primary {
        width: 100%;
        text-align: center;
    }

    .template-content .btn {
        width: auto;
        padding: 2px 15px;
    }
}

/* Стили для кнопки "Смотреть больше" */
.see-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: var(--font-weight-medium);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.15);
    position: relative;
    overflow: hidden;
    margin: 40px auto 0;
    justify-content: center;
    grid-column: 1 / -1;
    width: fit-content;
}

.see-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.see-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.2);
}

.see-more-btn:hover::before {
    left: 100%;
}

.see-more-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.see-more-btn:hover i {
    transform: translateX(4px);
}

/* Медиа запросы для кнопки */
@media (max-width: 768px) {
    .see-more-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .see-more-btn {
        width: 100%;
        justify-content: center;
    }
} 