/*
 * Стили для AIpornGeneratorRU.site
 * Цветовая схема: Зеленый (#388E3C) и Золотой (#FFD700)
 */

:root {
    --primary: #388E3C;
    --secondary: #FFD700;
    --accent: #2E7D32;
    --dark: #212121;
    --light: #FFFFFF;
    --gray: #757575;
    --light-gray: #F5F5F5;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --shadow: 0 4px 15px rgba(56, 142, 60, 0.2);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Базовые стили и сброс */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);
    position: relative;
}

/* Фоновый узор для всей страницы */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 5% 15%, rgba(56, 142, 60, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 95% 85%, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Верхний баннер */
.top-banner {
    background-color: var(--dark);
    color: var(--light);
    padding: 10px 0;
    text-align: center;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.banner-tag {
    background-color: var(--primary);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.banner-text {
    font-size: 0.9rem;
}

/* Шапка и навигация */
.site-header {
    background-color: var(--light);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-main {
    background: linear-gradient(45deg, var(--primary) 30%, var(--secondary) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-country {
    background-color: var(--primary);
    color: white;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-left: 2px;
}

/* Мобильное меню */
.menu-toggle {
    display: none;
}

.menu-button {
    display: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 15;
}

.menu-button span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transition: var(--transition);
}

.menu-button span:nth-child(1) {
    top: 0;
}

.menu-button span:nth-child(2) {
    top: 8px;
}

.menu-button span:nth-child(3) {
    top: 16px;
}

.menu-toggle:checked ~ .menu-button span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.menu-toggle:checked ~ .menu-button span:nth-child(2) {
    opacity: 0;
}

.menu-toggle:checked ~ .menu-button span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* Навигация */
.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:not(.nav-button)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gradient);
    transition: var(--transition);
}

.nav-menu a:not(.nav-button):hover::after {
    width: 100%;
}

.nav-menu a:not(.nav-button):hover {
    color: var(--primary);
}

.nav-button {
    background: var(--gradient);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(56, 142, 60, 0.3);
    transition: var(--transition);
}

.nav-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(56, 142, 60, 0.4);
}

/* Главная секция */
.main-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

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

.tech-badge {
    display: inline-block;
    background-color: rgba(56, 142, 60, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.tech-badge::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    left: -3px;
    top: calc(50% - 3px);
}

.main-content h1 {
    font-size: 2.7rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
}

.main-content p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.primary-btn, .secondary-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.primary-btn {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(56, 142, 60, 0.25);
}

.secondary-btn {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(56, 142, 60, 0.35);
}

.secondary-btn:hover {
    background-color: var(--primary);
    color: white;
}

.primary-btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* Геометрический узор */
.geo-pattern {
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.geo-pattern::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(56, 142, 60, 0.3), transparent 70%);
    top: -30px;
    right: -30px;
    border-radius: 50%;
    z-index: -1;
}

/* Заголовки секций */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background: var(--gradient);
    bottom: -10px;
    left: 20%;
    border-radius: 3px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
}

/* Секция особенностей */
.features-section {
    padding: 100px 0;
    background-color: var(--light-gray);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    background-image: linear-gradient(to bottom right, transparent 49.5%, var(--light-gray) 50%);
    z-index: 1;
}

.features-section::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    background-image: linear-gradient(to top right, transparent 49.5%, var(--light-gray) 50%);
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-box {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-box::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
    z-index: -1;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(56, 142, 60, 0.15);
}

.feature-box:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-box:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-box h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.feature-box p {
    color: var(--gray);
}

/* Секция как это работает */
.howto-section {
    padding: 100px 0;
    position: relative;
}

.steps-container {
    max-width: 800px;
    margin: 0 auto 60px;
}

.step-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.step-number {
    position: relative;
    margin-right: 25px;
    flex-shrink: 0;
}

.step-number span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.step-number::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 20px;
    width: 2px;
    height: calc(100% + 20px);
    background: linear-gradient(to bottom, var(--primary), rgba(56, 142, 60, 0.1));
    z-index: 1;
}

.step-item:last-child .step-number::after {
    display: none;
}

.step-content {
    padding-top: 5px;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.step-content p {
    color: var(--gray);
}

.cta-block {
    text-align: center;
}

/* Секция FAQ */
.faq-section {
    padding: 100px 0;
    background-color: var(--light-gray);
    position: relative;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(56, 142, 60, 0.05);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-toggle {
    position: relative;
    width: 20px;
    height: 20px;
}

.faq-toggle::before, .faq-toggle::after {
    content: '';
    position: absolute;
    background-color: var(--primary);
    transition: var(--transition);
}

.faq-toggle::before {
    width: 20px;
    height: 2px;
    top: 9px;
    left: 0;
}

.faq-toggle::after {
    width: 2px;
    height: 20px;
    top: 0;
    left: 9px;
}

.faq-item.active .faq-toggle::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 20px 20px;
}

.faq-answer p {
    color: var(--gray);
}

/* Подвал сайта */
.site-footer {
    background-color: var(--dark);
    color: white;
    padding: 70px 0 30px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to top left, var(--dark) 49.5%, transparent 50%);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-icon {
    width: 60px;
    height: 60px;
}

.footer-title h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-title p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--light);
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: var(--gradient);
    left: 0;
    bottom: -8px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Адаптивные стили */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .main-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .main-content {
        order: 2;
    }
    
    .main-visual {
        order: 1;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .geo-pattern {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .main-content h1 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Мобильное меню */
    .menu-button {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 30px 30px;
        transition: var(--transition);
        z-index: 10;
    }
    
    .menu-toggle:checked ~ .main-nav {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu a.nav-button {
        width: 100%;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }
    
    .footer-links {
        width: 100%;
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-column ul {
        align-items: center;
    }
}

@media (max-width: 576px) {
    .action-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto 15px;
    }
    
    .step-number::after {
        left: 50%;
        height: 30px;
        width: 2px;
        top: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}
