/* 
 * PH POLAROID - ОСНОВНЫЕ СТИЛИ
 * Префикс ph для всех селекторов
 */

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



.ph-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px;
}

/* ===== ВЕРТИКАЛЬНЫЙ ГРАДИЕНТ СЛЕВА ===== */
.ph-title-vertical-small,
.ph-title-vertical-large {
    font-size: 2.2em;
    color: #1e1e2f;
    margin: 40px 0 30px;
    padding-left: 20px;
    position: relative;
}

.ph-title-vertical-small::before,
.ph-title-vertical-large::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(180deg, #a80ab7, #fe7f1a);
    border-radius: 3px;
}

.ph-title-vertical-small::before {
    width: 4px;
}

.ph-title-vertical-large::before {
    width: 8px;
}

/* ===== ГОРИЗОНТАЛЬНЫЙ ГРАДИЕНТ СНИЗУ ===== */
.ph-title-horizontal {
    font-size: 2.2em;
    color: #1e1e2f;
    margin: 40px 0 30px;
    padding-bottom: 15px;
    position: relative;
}

.ph-title-horizontal::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #a80ab7, #fe7f1a);
    border-radius: 2px;
}

/* ===== УНИВЕРСАЛЬНЫЙ СТИЛЬ ПОЛАРОИД ===== */
.ph-polaroid {
    display: inline-block;
    max-width: 100%;
    background: #fff;
    padding: 15px 15px 30px 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 
                0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ph-polaroid:hover {
    transform: translateY(-5px) rotate(0.8deg);
    box-shadow: 0 18px 30px -8px rgba(0, 0, 0, 0.25);
}

.ph-polaroid img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2px;
    margin-bottom: 15px;
    border: none;
}

.ph-polaroid figcaption {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 1em;
    color: #2c3e50;
    text-align: center;
    font-style: italic;
}

.ph-polaroid figcaption::before {
    content: "📸";
    margin-right: 8px;
    opacity: 0.7;
    font-style: normal;
}

.ph-polaroid-container {
    margin: 20px 0;
}

/* ===== ВАРИАНТ 1: ИЗОБРАЖЕНИЕ СЛЕВА ===== */
.ph-image-left-section {
    margin: 50px 0;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.ph-image-left-section .ph-polaroid-container {
    float: left;
    width: 45%;
    margin: 0 30px 20px 0;
}

.ph-image-left-section .ph-text-content {
    overflow: hidden;
}

.ph-image-left-section h3 {
    font-size: 2em;
    color: #1e1e2f;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 5px solid #a80ab7;
}

.ph-image-left-section p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #444;
    line-height: 1.8;
}

/* ===== ВАРИАНТ 2: ИЗОБРАЖЕНИЕ СПРАВА ===== */
.ph-image-right-section {
    margin: 50px 0;
    background: #f0f4f8;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.ph-image-right-section .ph-polaroid-container {
    float: right;
    width: 45%;
    margin: 0 0 20px 30px;
}

.ph-image-right-section .ph-text-content {
    overflow: hidden;
}

.ph-image-right-section h3 {
    font-size: 2em;
    color: #1e1e2f;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 5px solid #fe7f1a;
}

.ph-image-right-section p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #444;
    line-height: 1.8;
}

/* ===== ОБЩИЕ ЭЛЕМЕНТЫ ===== */
.ph-feature-list {
    list-style: none;
    margin: 20px 0;
}

.ph-feature-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 1.05em;
}

.ph-feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #a80ab7;
    font-weight: bold;
}

.ph-stats {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.ph-stat-item {
    flex: 1;
    min-width: 80px;
    text-align: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.ph-stat-number {
    display: block;
    font-size: 1.8em;
    font-weight: 700;
    color: #1e1e2f;
    line-height: 1;
}

.ph-stat-label {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.ph-quote {
    font-size: 1.1em;
    font-style: italic;
    color: #555;
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #fe7f1a;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.ph-read-more {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #a80ab7, #fe7f1a);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(168, 10, 183, 0.2);
}

.ph-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(254, 127, 26, 0.3);
}

/* ===== PARALLAX С ПРЕФИКСОМ PH ===== */
.ph-parallax-container {
    height: 400px;
    overflow: hidden;
    border-radius: 24px;
    margin: 50px 0;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.ph-parallax-image {
    width: 100%;
    height: 120%;
    object-fit: cover;
    transition: transform 1.5s ease;
    display: block;
}

.ph-parallax-container:hover .ph-parallax-image {
    transform: translateY(-10%);
}

.ph-parallax-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 40px 30px 20px;
    font-size: 1.2em;
}

/* ===== АДАПТАЦИЯ ===== */
@media screen and (max-width: 768px) {
    .ph-title-vertical-small,
    .ph-title-vertical-large,
    .ph-title-horizontal {
        font-size: 1.8em;
        margin: 30px 0 20px;
    }
    
    .ph-title-vertical-small,
    .ph-title-vertical-large {
        padding-left: 15px;
    }
    
    .ph-title-vertical-small::before {
        width: 3px;
    }
    
    .ph-title-vertical-large::before {
        width: 6px;
    }
    
    .ph-title-horizontal::after {
        height: 3px;
    }
    
    .ph-image-left-section .ph-polaroid-container,
    .ph-image-right-section .ph-polaroid-container {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
    }
    
    .ph-image-left-section,
    .ph-image-right-section {
        padding: 20px;
    }
    
    .ph-stats {
        flex-direction: column;
    }
    
    .ph-parallax-container {
        height: 300px;
        margin: 30px 0;
    }
    
    .ph-parallax-caption {
        padding: 30px 20px 15px;
        font-size: 1em;
    }
}

@media screen and (max-width: 480px) {
    .ph-title-vertical-small,
    .ph-title-vertical-large,
    .ph-title-horizontal {
        font-size: 1.5em;
    }
    
    .ph-title-vertical-small,
    .ph-title-vertical-large {
        padding-left: 12px;
    }
    
    .ph-polaroid {
        padding: 10px 10px 20px 10px;
    }
    
    .ph-image-left-section h3,
    .ph-image-right-section h3 {
        font-size: 1.5em;
    }
    
    .ph-parallax-container {
        height: 250px;
    }
    
    .ph-parallax-caption {
        padding: 20px 15px 10px;
        font-size: 0.9em;
    }
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ===== */
.ph-title {
    font-size: 2.5em;
    color: #1e1e2f;
    text-align: center;
    margin-bottom: 30px;
}