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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
    color: #333;
    line-height: 1.6;
}

/* Фоновое изображение */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    z-index: -1;
    opacity: 0.9;
}

/* Основной контент */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Шапка */
.header-section {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.back-button {
    position: absolute;
    left: 0;
    top: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: #1a252f;
    transform: translateX(-3px);
}

.back-arrow {
    font-size: 18px;
}

.page-title {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-subtitle {
    font-size: 20px;
    color: #7f8c8d;
    max-width: 800px;
    margin: 0 auto;
}

/* Главное фото */
.main-photo-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.main-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.main-photo-container:hover .main-photo {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px;
    text-align: center;
}

.photo-overlay h2 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 600;
}

.photo-overlay p {
    font-size: 18px;
    opacity: 0.9;
}

/* Большой текст */
.main-text-section {
    margin-bottom: 50px;
}

.text-block {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.text-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.text-block h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 25px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.text-highlight {
    color: #e74c3c;
    font-weight: 700;
}

.text-highlight2 {
    color: #228B22;
    font-weight: 700;
}

.text-block p {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
}

.text-block p:last-child {
    margin-bottom: 0;
}

/* Фотогалерея */
.gallery-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 32px;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: #3498db;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.gallery-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item p {
    padding: 20px;
    text-align: center;
    font-size: 18px;
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

/* Цитаты */
.quotes-section {
    margin-bottom: 50px;
}

.quotes-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.quote-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-left: 5px solid #2ecc71;
}

.quote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.quote-text {
    font-size: 20px;
    color: #2c3e50;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.5;
}

.quote-author {
    font-size: 16px;
    color: #7f8c8d;
    text-align: right;
    font-weight: 500;
}

/* Призыв к действию */
.action-section {
    margin-bottom: 50px;
}

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

.action-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-top: 4px solid #3498db;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-top-color: #e74c3c;
}

.action-card h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.action-card ul {
    list-style-type: none;
    padding: 0;
}

.action-card li {
    padding: 10px 0;
    color: #555;
    font-size: 16px;
    line-height: 1.5;
    border-bottom: 1px solid #eee;
}

.action-card li:last-child {
    border-bottom: none;
}

.action-card li:before {
    content: "✓";
    color: #2ecc71;
    font-weight: bold;
    margin-right: 10px;
}

/* Футер */
.footer {
    text-align: center;
    padding: 30px;
    border-top: 2px solid #eee;
    color: #7f8c8d;
    font-size: 16px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}

.footer p {
    margin: 10px 0;
}

.footer p:first-child {
    font-weight: 600;
    color: #2c3e50;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-block,
.gallery-item,
.quote-card,
.action-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.text-block:nth-child(1) { animation-delay: 0.1s; }
.text-block:nth-child(2) { animation-delay: 0.3s; }
.text-block:nth-child(3) { animation-delay: 0.5s; }

.gallery-item:nth-child(1) { animation-delay: 0.2s; }
.gallery-item:nth-child(2) { animation-delay: 0.4s; }
.gallery-item:nth-child(3) { animation-delay: 0.6s; }

.quote-card:nth-child(1) { animation-delay: 0.1s; }
.quote-card:nth-child(2) { animation-delay: 0.3s; }
.quote-card:nth-child(3) { animation-delay: 0.5s; }

.action-card:nth-child(1) { animation-delay: 0.2s; }
.action-card:nth-child(2) { animation-delay: 0.4s; }
.action-card:nth-child(3) { animation-delay: 0.6s; }

/* Адаптивность */
@media (max-width: 992px) {
    .main-content {
        padding: 15px;
    }
    
    .page-title {
        font-size: 30px;
        margin-top: 50px;
    }
    
    .main-photo-container {
        height: 350px;
    }
    
    .photo-overlay h2 {
        font-size: 28px;
    }
    
    .gallery-container,
    .quotes-container,
    .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .back-button {
        position: static;
        margin-bottom: 20px;
        display: inline-block;
    }
    
    .header-section {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 26px;
    }
    
    .page-subtitle {
        font-size: 18px;
    }
    
    .main-photo-container {
        height: 300px;
    }
    
    .photo-overlay h2 {
        font-size: 24px;
    }
    
    .photo-overlay p {
        font-size: 16px;
    }
    
    .text-block {
        padding: 30px;
    }
    
    .text-block h2 {
        font-size: 24px;
    }
    
    .text-block p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .gallery-container,
    .quotes-container,
    .action-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .main-photo-container {
        height: 250px;
    }
    
    .photo-overlay {
        padding: 20px;
    }
    
    .photo-overlay h2 {
        font-size: 20px;
    }
    
    .text-block {
        padding: 20px;
    }
    
    .text-block h2 {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .gallery-item p,
    .quote-text {
        font-size: 16px;
    }
    
    .footer {
        padding: 20px;
        font-size: 14px;
    }
}