/* Глобальные переменные */
:root {
    --primary: #FF8D00;
    --primary-light: #FFA641;
    --primary-dark: #E67200;
    --accent: #FF3A3A;
    --accent-light: #FF6363;
    --accent-dark: #D12121;
    --text: #333333;
    --text-light: #666666;
    --bg-light: #FFF9F2;
    --bg-dark: #FFF0E0;
    --white: #ffffff;
    --black: #000000;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --shadow: 0 5px 15px rgba(255, 141, 0, 0.2);
    --border-radius: 8px;
    --container-width: 1200px;
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

section {
    padding: 80px 0;
}

.accent {
    color: var(--accent);
}

/* Кнопки */
.btn, .btn-large {
    display: inline-block;
    background: var(--gradient);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.btn:hover, .btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 141, 0, 0.3);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

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

.btn-white:hover {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    transform: translateY(-3px);
}

/* Шапка */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--primary);
}

/* Герой-секция */
.hero {
    background: var(--gradient);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/pattern.svg') repeat;
    opacity: 0.1;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 700px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: center;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Функции */
.features {
    background-color: var(--white);
}

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

.feature-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-icon img {
    height: 60px;
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

/* Как это работает */
.how-it-works {
    background-color: var(--bg-dark);
}

.steps {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto 40px;
}

.step {
    display: flex;
    margin-bottom: 30px;
    align-items: center;
}

.step-number {
    background: var(--gradient);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content h3 {
    color: var(--primary);
    margin-bottom: 5px;
}

.how-it-works .btn-large {
    display: block;
    max-width: 300px;
    margin: 0 auto;
}

/* Галерея пользователей */
.users-gallery {
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.user-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 1/1;
}

.user-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.user-card:hover img {
    transform: scale(1.05);
}

.user-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 15px;
    color: var(--white);
}

.user-info h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.users-gallery .btn {
    display: block;
    max-width: 250px;
    margin: 0 auto;
}

/* FAQ */
.faq {
    background-color: var(--bg-dark);
}

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

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

.accordion-toggle {
    display: none;
}

.accordion-header {
    background-color: var(--primary-light);
    color: var(--white);
    padding: 15px 20px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
    display: block;
}

.accordion-header:hover {
    background-color: var(--primary);
}

.accordion-header::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.accordion-toggle:checked + .accordion-header::after {
    content: '-';
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-toggle:checked ~ .accordion-content {
    padding: 20px;
    max-height: 1000px;
}

/* CTA */
.cta {
    background: var(--gradient);
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}

.cta h2 {
    margin-bottom: 20px;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.2rem;
}

.cta .btn-large {
    background: var(--white);
    color: var(--primary);
}

.cta .btn-large:hover {
    background: var(--bg-light);
}

/* Подвал */
footer {
    background-color: var(--text);
    color: var(--white);
    padding: 40px 0;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 30px;
    margin-right: 10px;
}

.footer-logo p {
    margin-bottom: 0;
}

.footer-links {
    display: flex;
}

.footer-link {
    color: var(--bg-light);
    margin-left: 20px;
}

.footer-link:hover {
    color: var(--primary-light);
}

/* JavaScript классы */
.hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Анимации элементов на CSS */
.feature-card, .step, .user-card, .accordion-item {
    animation: fadeInUp 0.8s ease forwards;
}

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

/* Добавляем задержку для постепенного появления */
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }
.step:nth-child(4) { animation-delay: 0.4s; }

.user-card:nth-child(1), .user-card:nth-child(2), .user-card:nth-child(3), .user-card:nth-child(4) { animation-delay: 0.1s; }
.user-card:nth-child(5), .user-card:nth-child(6), .user-card:nth-child(7), .user-card:nth-child(8) { animation-delay: 0.3s; }

/* Адаптивность */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    footer .container {
        flex-direction: column;
    }
    
    .footer-logo {
        margin-bottom: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-link {
        margin: 5px 0;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
} 