/* Стили для блока frame5-section */
@font-face {
    font-family: 'DRUZHOK';
    src: url('../fonts/DRUZHOK.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Calypso';
    src: url('../fonts/Calypso.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ConnectorTrial';
    src: url('../fonts/ConnectorTrial-Medium.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

.frame5-section {
    background: url('../img/Frame 5.png') no-repeat;
    background-size: 100% auto;
    min-height: 160vh;
    padding: 0;
    position: relative;
    overflow: visible;
    margin: 0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    background-color: #F3EEC3;
}

/* Декоративное солнце и рука с яблоком */
.frame5-sun-rotating {
    position: absolute;
    top: 20%;
    left: -400px;
    transform: translateY(-50%);
    width: 700px;
    height: auto;
    opacity: 0.9;
    z-index: 1; /* под облаками, но над фоном */
    animation: frame5-sun-spin 40s linear infinite;
    pointer-events: none;
}

@keyframes frame5-sun-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.frame5-hand-apple {
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: auto;
    z-index: 3; /* поверх контента секции */
    animation: frame5-hand-float 6s ease-in-out infinite;
    pointer-events: none;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.25));
}

@keyframes frame5-hand-float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-22px); }
    100% { transform: translateY(0); }
}

@media (max-width: 1024px) {
    .frame5-sun-rotating { width: 340px; left: -10px; top: 50%; transform: translateY(-50%); }
    .frame5-hand-apple { width: 700px; left: 60%; top: 42%; transform: translate(-50%, -50%); }
}

@media (max-width: 600px) {
    .frame5-sun-rotating { 
        display: none; /* Скрываем на мобильных устройствах */
    }
    .frame5-hand-apple { display: none; }
}

.frame5-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.frame5-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.frame5-text {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.frame5-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.frame5-title {
    font-family: 'DRUZHOK', serif;
    font-size: 3.5rem;
    color: #0f273c;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
}

.frame5-micro-trigger {
    font-family: 'Calypso', serif;
    font-size: 1.2rem;
    color: #0f273c;
    font-weight: 600;
    text-align: center;
    padding: 15px 25px;
    background: rgba(15, 39, 60, 0.05);
    border-radius: 18px;
    border: 1px solid rgba(15, 39, 60, 0.1);
    display: block;
    max-width: clamp(300px, 35vw, 500px);
    white-space: normal;
    margin: 0 auto;
}

.frame5-micro-text {
    font-size: 1.1rem;
    color: #555;
    font-weight: 400;
}

.frame5-subtitle {
    font-family: 'Calypso', serif;
    font-size: 1.5rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 40px;
}

.frame5-decoration {
    width: 80px;
    height: 4px;
    background: #0f273c;
    margin: 0 auto 40px auto;
}

.frame5-cta-button {
    background: #0f273c;
    border: 2px solid #0f273c;
    border-radius: 50px;
    padding: 25px 60px;
    color: #f3f2ea;
    font-family: 'ConnectorTrial', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 15px 40px rgba(15, 39, 60, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.frame5-cta-button:hover {
    background: #1a3a5f;
    border-color: #1a3a5f;
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(15, 39, 60, 0.4);
}

.frame5-cta-button:active {
    transform: translateY(-1px);
}

.frame5-micro-trigger-bottom {
    color: #b5a97a;
    margin-top: 20px;
    display: block;
    text-align: center;
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

.spots-counter {
    color: #e74c3c;
    font-weight: bold;
    text-decoration: underline;
    animation: pulse-spots 2s ease-in-out infinite;
}

@keyframes pulse-spots {
    0% { 
        color: #e74c3c; 
        text-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
    }
    50% { 
        color: #c0392b; 
        text-shadow: 0 0 10px rgba(231, 76, 60, 0.8);
    }
    100% { 
        color: #e74c3c; 
        text-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
    }
}

.frame5-decoration-element {
    position: absolute;
    font-size: 3rem;
    color: rgba(15, 39, 60, 0.1);
}

.frame5-decoration-top-left {
    top: 50px;
    left: 50px;
}

.frame5-decoration-top-right {
    top: 50px;
    right: 50px;
}

.frame5-decoration-bottom-left {
    bottom: 50px;
    left: 50px;
}

.frame5-decoration-bottom-right {
    bottom: 50px;
    right: 50px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .frame5-section {
        min-height: 100vh;
    }
    
    .frame5-section .container {
        padding: 40px 15px;
    }
    
    .frame5-cta-button {
        font-size: 1.4rem;
        padding: 20px 40px;
        letter-spacing: 1px;
    }
    
    .frame5-micro-trigger {
        font-size: 1rem;
        padding: 12px 25px;
    }
    
    .frame5-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .frame5-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .frame5-cta-button {
        font-size: 1.2rem;
        padding: 18px 35px;
    }
    
    .frame5-micro-trigger {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    .frame5-title {
        font-size: 2rem;
    }
    
    .frame5-subtitle {
        font-size: 1.2rem;
    }
} 