/* ==========================================
   SECTIONS.CSS — Move IT Education v4.0
   
   Об'єднано з: sections.css, about-us.css,
   carousel-3d.css, islands.css, courses.css,
   timeline-styles.css
   ========================================== */


/* ==========================================
   HEADER CARD
   ========================================== */

.block-card {
    padding: 45px 40px;
    background: rgba(255, 165, 112, 0.2); /* трохи темніший ніж стандарт */
}

.card-content {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 30px;
    align-items: start;
}

.left-side  { padding-right: 15px; }
.right-side { padding-top: 8px; }

.info-card {
    padding: 30px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(15px);
    background: rgba(45, 70, 40, 0.88);
    border: 1px solid rgba(255, 165, 112, 0.12);
}

.info-card h2 { font-size: 18px; margin-bottom: 16px; color: white; font-weight: 700; letter-spacing: 0.3px; }
.info-card p  { color: rgba(255, 255, 255, 0.9); line-height: 1.75; font-size: 1rem; }


/* ==========================================
   EXPLANATION SECTION
   ========================================== */

.explanation-section { margin-top: 50px; }

.exp-text-box {
    position: relative;
    z-index: 4;
    background: rgba(255, 165, 112, 0.35);
    padding: 10px;
    border-radius: 28px;
    max-width: 550px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 229, 153, 0.2);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

.exp-text-box p { color: rgba(255, 255, 255, 0.92); line-height: 1.75; font-size: 1rem; }

.exp-text-left  { margin-left: 100px; margin-bottom: 35px; }
.exp-text-right { margin-left: auto; margin-right: 35px; }
.exp-text-left p  { padding: 20px 35px; }
.exp-text-right p { padding: 20px 35px; }


/* ==========================================
   GALLERY SECTION
   ========================================== */

.gallery-section { margin-top: 50px; }

.gallery-card { padding: 45px; }

.gallery-content { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
.gallery-left    { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.gallery-item    { display: flex; flex-direction: column; gap: 12px; }

.gallery-image {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
    border: 3px solid rgba(0, 0, 0, 0.6);
}

.gallery-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-medium); }
.gallery-image:hover img { transform: scale(1.15); }

.gallery-text { padding: 0 8px; }
.gallery-text h4 { font-size: 15px; font-weight: 700; color: white; margin-bottom: 4px; }
.gallery-text p  { font-size: 12px; color: rgba(255,255,255,0.8); line-height: 1.5; }

.gallery-right       { display: flex; flex-direction: column; }
.gallery-item-large  { display: flex; flex-direction: column; gap: 15px; height: 100%; }

.gallery-image-large {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    flex: 1;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(0, 0, 0, 0.6);
}

.gallery-image-large img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-medium); }
.gallery-image-large:hover img { transform: scale(1.1); }

.gallery-text-large { padding: 0 12px; }
.gallery-text-large h4 { font-size: 18px; font-weight: 700; color: white; margin-bottom: 8px; }
.gallery-text-large p  { font-size: 13px; color: rgba(255,255,255,0.85); line-height: 1.6; }


/* ==========================================
   FOOTER
   ========================================== */

.footer {
    text-align: center;
    margin-top: 35px;
    padding: 25px;
    background: rgba(255, 165, 112, 0.25);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.footer p { font-size: 11px; letter-spacing: 5px; color: rgba(255,255,255,0.6); font-weight: 600; }


/* ==========================================
   ABOUT SECTION
   ========================================== */

.about-section { margin-top: 60px; }

.about-main-card { padding: 60px 45px; }

.about-bubble-1 { width: 200px; height: 200px; top: -80px; left: -90px; animation: floatBubbleAbout1 10s ease-in-out infinite; }
.about-bubble-2 { width: 150px; height: 150px; bottom: -60px; right: -70px; animation: floatBubbleAbout2 12s ease-in-out infinite; }

.about-content { position: relative; z-index: 5; }

.intro-block { text-align: center; margin-bottom: 50px; animation: fadeInUpAbout 0.8s ease-out; }

.intro-title {
    font-size: 2.5rem;
    color: var(--color-beige-dark);
    margin-bottom: 25px;
    font-weight: 900;
    text-shadow: 0 0 30px rgba(255,229,153,0.6), 2px 4px 15px rgba(0,0,0,0.5);
    letter-spacing: -1px;
}

.intro-subtitle { font-size: 1.5rem; color: var(--color-orange-light); margin-bottom: 20px; font-weight: 600; font-style: italic; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }

.intro-text { font-size: 1.05rem; line-height: 1.8; color: rgba(255,255,255,0.95); max-width: 750px; margin: 0 auto; text-shadow: 0 1px 3px rgba(0,0,0,0.3); padding: 0 20px; }

.mission-block {
    border-radius: 35px;
    padding: 40px;
    margin-bottom: 50px;
    border: 2px solid rgba(255, 165, 112, 0.3);
    animation: fadeInUpAbout 0.8s ease-out 0.2s backwards;
    position: relative;
    overflow: hidden;
}

.mission-block::before { content: '🎯'; position: absolute; top: 20px; right: 20px; font-size: 4rem; opacity: 0.15; animation: rotateIconAbout 20s linear infinite; }

.mission-title { font-size: 1.8rem; color: var(--color-beige-dark); margin-bottom: 20px; font-weight: 700; text-shadow: 0 0 20px var(--color-glow-text); }
.mission-text  { font-size: 1.05rem; line-height: 1.8; color: rgba(255,255,255,0.95); }

.formats-section { animation: fadeInUpAbout 0.8s ease-out 0.4s backwards; }
.formats-title   { font-size: 2rem; color: var(--color-beige-dark); text-align: center; margin-bottom: 40px; font-weight: 700; text-shadow: 0 0 25px var(--color-glow-text); }
.formats-grid    { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 40px; }

.format-card {
    border-radius: 30px;
    padding: 35px 30px;
    border: 2px solid rgba(255, 165, 112, 0.3);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.format-card::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,165,112,0.15) 0%, transparent 70%); opacity: 0; transition: opacity 0.5s ease; }
.format-card:hover { transform: translateY(-10px); border-color: rgba(255,165,112,0.6); box-shadow: 0 25px 70px rgba(232,49,0,0.5), 0 0 50px rgba(255,165,112,0.3); }
.format-card:hover::before { opacity: 1; }

.format-icon { font-size: 3.5rem; margin-bottom: 20px; display: block; animation: iconBounceAbout 2s ease-in-out infinite; filter: drop-shadow(0 5px 15px rgba(0,0,0,0.4)); }
.format-card:hover .format-icon { animation: iconSpinAbout 0.6s ease-in-out; }

.format-name { font-size: 1rem; color: var(--color-orange-light); margin-bottom: 20px; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }

.format-features { list-style: none; padding: 0; }
.format-features li { font-size: 1rem; color: rgba(255,255,255,0.9); padding: 10px 0 10px 35px; position: relative; line-height: 1.5; }
.format-features li::before { content: '✔'; position: absolute; left: 0; color: var(--color-beige-dark); font-weight: bold; font-size: 1.2rem; animation: checkPulseAbout 2s ease-in-out infinite; }

.common-features {
    background: rgba(45, 70, 40, 0.498);
    border-radius: 30px;
    padding: 35px;
    text-align: center;
    border: 2px solid rgba(255, 165, 112, 0.4);
    box-shadow: 0 15px 45px rgba(0,0,0,0.4), inset 0 2px 0 var(--color-glow-soft);
    animation: fadeInUpAbout 0.8s ease-out 0.6s backwards;
}

.common-title { font-size: 1.3rem; color: var(--color-beige-dark); margin-bottom: 15px; font-weight: 700; text-shadow: 0 0 15px var(--color-glow-text); }
.common-text  { font-size: 1.05rem; color: rgba(255,255,255,0.95); line-height: 1.7; }

@keyframes fadeInUpAbout { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatBubbleAbout1 { 0%,100% { transform: translate(0,0); } 33% { transform: translate(-15px,-20px); } 66% { transform: translate(10px,-15px); } }
@keyframes floatBubbleAbout2 { 0%,100% { transform: translate(0,0); } 33% { transform: translate(18px,22px); } 66% { transform: translate(-12px,18px); } }
@keyframes iconBounceAbout { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes iconSpinAbout { 0% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(180deg) scale(1.2); } 100% { transform: rotate(360deg) scale(1); } }
@keyframes checkPulseAbout { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.2); opacity: 0.8; } }
@keyframes rotateIconAbout { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }


/* ==========================================
   3D CAROUSEL SECTION
   ========================================== */

.carousel-section { position: relative; margin-top: 60px; overflow: visible; }

.carousel-main-card { padding: 10px 20px 20px; margin-top: 100px; }

.carousel-bubble-1 { width: 150px; height: 150px; left: -60px; top: 80px; animation: floatBubble1 10s ease-in-out infinite; }
.carousel-bubble-2 { width: 120px; height: 120px; right: -50px; top: 200px; animation: floatBubble2 12s ease-in-out infinite; }
.carousel-bubble-3 { width: 90px; height: 90px; left: -30px; bottom: 100px; animation: floatBubble3 9s ease-in-out infinite; }

.carousel-container { position: relative; width: 100%; height: 250px; perspective: 1000px; perspective-origin: 50% 50%; z-index: 5; }

.carousel-track { position: absolute; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1); }

.carousel-card { position: absolute; width: 280px; height: 150px; left: 50%; top: 50%; margin-left: -140px; margin-top: -160px; transform-style: preserve-3d; transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1); backface-visibility: visible; }

.carousel-card-inner {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    padding: 25px 22px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    margin-top: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), inset 0 2px 0 var(--color-glow-border);
    border: 2px solid rgba(255, 165, 112, 0.3);
}

.carousel-card.active .carousel-card-inner { border-color: rgba(255,165,112,0.6); transform: scale(1.05); }

.carousel-card.active .carousel-card-inner::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: linear-gradient(135deg, rgba(255,165,112,0.4), rgba(250,208,116,0.4));
    border-radius: 37px;
    z-index: -1;
    filter: blur(15px);
    opacity: 0.8;
}

.carousel-icon { width: 50px; height: 50px; background: rgba(255,165,112,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.3), inset 0 2px 10px rgba(255,229,153,0.1); transition: all 0.3s ease; }
.carousel-icon svg { width: 32px; height: 32px; color: var(--color-beige-dark); filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3)); }
.carousel-card.active .carousel-icon { transform: scale(1.1) rotate(5deg); background: rgba(255,165,112,0.5); }

.carousel-card-title { font-size: 1rem; color: var(--color-beige-dark); margin-bottom: 5px; font-weight: 700; text-shadow: 0 0 20px var(--color-glow-text); transition: all 0.3s ease; }
.carousel-card.active .carousel-card-title { color: var(--color-beige-light); text-shadow: 0 0 30px rgba(255,229,153,0.7); }

.carousel-card-description { font-size: 0.75rem; color: rgba(255,255,255,0.9); line-height: 1.5; flex: 1; display: flex; align-items: center; text-align: center; }

.carousel-card-number { position: absolute; top: 15px; right: 15px; font-size: 3rem; font-weight: 900; color: rgba(255,165,112,0.15); line-height: 1; pointer-events: none; }

.carousel-controls { position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 30px; z-index: 10; }

.carousel-btn { width: 50px; height: 50px; background: rgba(255,105,51,0.7); border: 2px solid rgba(255,165,112,0.5); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 8px 25px rgba(0,0,0,0.4); }
.carousel-btn svg { width: 28px; height: 28px; color: white; }
.carousel-btn:hover { background: rgba(255,105,51,0.9); transform: scale(1.1); box-shadow: 0 10px 30px rgba(232,49,0,0.5); }
.carousel-btn:active { transform: scale(0.95); }

.carousel-indicators { display: flex; gap: 12px; }
.indicator { width: 12px; height: 12px; background: rgba(255,255,255,0.3); border: 2px solid rgba(255,165,112,0.5); border-radius: 50%; cursor: pointer; transition: all 0.3s ease; }
.indicator:hover { background: rgba(255,165,112,0.5); transform: scale(1.2); }
.indicator.active { background: rgba(255,105,51,0.9); border-color: rgba(255,105,51,1); transform: scale(1.3); box-shadow: 0 0 15px rgba(255,105,51,0.6); }

.carousel-info { text-align: center; margin-top: 80px; padding: 15px 20px; background: rgba(45,70,40,0.388); border-radius: 25px; border: 1px solid rgba(255,165,112,0.2); }
.carousel-info p { font-size: 0.95rem; color: rgba(255,230,153,0.7); margin: 0; font-style: italic; }

.carousel-track, .carousel-card, .carousel-card-inner { will-change: transform; }

@media (max-width: 1024px) {
    .carousel-container { height: 240px; }
    .carousel-card { width: 260px; height: 145px; margin-left: -130px; margin-top: -150px; }
    .carousel-card-inner { padding: 22px 20px; }
    .carousel-icon { width: 48px; height: 48px; margin-bottom: 12px; }
    .carousel-icon svg { width: 30px; height: 30px; }
    .carousel-card-title { font-size: 1.15rem; }
    .carousel-card-description { font-size: 0.68rem; }
    .carousel-card-number { font-size: 2.8rem; top: 12px; right: 12px; }
    .carousel-controls { bottom: -55px; gap: 25px; }
}
@media (max-width: 768px) {
    .carousel-main-card { padding: 30px 20px 40px; border-radius: 35px; margin-top: 80px; }
    .carousel-bubble { display: none; }
    .carousel-container { height: 230px; perspective: 900px; }
    .carousel-card { width: 240px; height: 140px; margin-left: -120px; margin-top: -145px; }
    .carousel-card-inner { padding: 20px 18px; border-radius: 25px; }
    .carousel-icon { width: 45px; height: 45px; margin-bottom: 10px; }
    .carousel-icon svg { width: 28px; height: 28px; }
    .carousel-card-title { font-size: 1.1rem; margin-bottom: 4px; }
    .carousel-card-description { font-size: 0.65rem; line-height: 1.4; }
    .carousel-card-number { font-size: 2.6rem; top: 10px; right: 10px; }
    .carousel-controls { bottom: -50px; gap: 20px; }
    .carousel-btn { width: 45px; height: 45px; }
    .carousel-btn svg { width: 24px; height: 24px; }
    .indicator { width: 11px; height: 11px; }
    .carousel-info { margin-top: 70px; padding: 12px 18px; }
    .carousel-info p { font-size: 0.85rem; }
}
@media (max-width: 480px) {
    .carousel-main-card { padding: 25px 15px 35px; border-radius: 30px; margin-top: 60px; }
    .carousel-container { height: 210px; perspective: 800px; }
    .carousel-card { width: 200px; height: 130px; margin-left: -100px; margin-top: -135px; }
    .carousel-card-inner { padding: 16px 14px; border-radius: 22px; }
    .carousel-icon { width: 40px; height: 40px; margin-bottom: 6px; }
    .carousel-icon svg { width: 24px; height: 24px; }
    .carousel-card-title { font-size: 1rem; margin-bottom: 2px; }
    .carousel-card-description { font-size: 0.6rem; line-height: 1.3; }
    .carousel-card-number { font-size: 2.2rem; top: 8px; right: 8px; }
    .carousel-controls { bottom: -45px; gap: 15px; }
    .carousel-btn { width: 42px; height: 42px; }
    .carousel-btn svg { width: 22px; height: 22px; }
    .indicator { width: 10px; height: 10px; border-width: 1.5px; }
    .carousel-info { margin-top: 60px; padding: 10px 15px; border-radius: 20px; }
    .carousel-info p { font-size: 0.8rem; }
}
@media (max-width: 360px) {
    .carousel-container { height: 200px; perspective: 750px; }
    .carousel-card { width: 180px; height: 125px; margin-left: -90px; margin-top: -130px; }
    .carousel-card-inner { padding: 14px 12px; }
    .carousel-icon { width: 38px; height: 38px; margin-bottom: 5px; }
    .carousel-icon svg { width: 22px; height: 22px; }
    .carousel-card-title { font-size: 0.95rem; margin-bottom: 2px; }
    .carousel-card-description { font-size: 0.58rem; line-height: 1.3; }
    .carousel-card-number { font-size: 2rem; top: 6px; right: 6px; }
    .carousel-btn { width: 38px; height: 38px; }
    .carousel-btn svg { width: 20px; height: 20px; }
    .indicator { width: 9px; height: 9px; }
}


/* ==========================================
   FLOATING ISLANDS SECTION
   ========================================== */

.floating-islands-section { position: relative; margin-top: 60px; }

.islands-main-card { padding: var(--spacing-xl) 30px; background: rgba(255, 165, 112, 0.08); }

.islands-grid { position: relative; z-index: 5; display: grid; grid-template-columns: 1fr; gap: 40px; }

.island-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-slow) var(--transition-bounce);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,229,153,0.15);
    border: 2px solid rgba(255, 165, 112, 0.3);
    min-height: 450px;
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 0;
}

.island-2 { grid-template-columns: 60% 40%; }

.island-item:hover { transform: translateY(-15px) scale(1.02); box-shadow: 0 35px 80px rgba(232,49,0,0.5), inset 0 1px 0 rgba(255,229,153,0.25); border-color: rgba(255,165,112,0.5); }

.island-bg { position: relative; width: 100%; height: 100%; z-index: 1; order: 1; }
.island-2 .island-bg { order: 2; }

.island-bg-img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); animation: floatIsland 6s ease-in-out infinite; }
.island-1 .island-bg-img { animation-delay: 0s; }
.island-2 .island-bg-img { animation-delay: 2s; }
.island-3 .island-bg-img { animation-delay: 4s; }
.island-item:hover .island-bg-img { transform: scale(1.1); animation-play-state: paused; }

.island-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, rgba(45,70,40,0.3) 80%, rgba(45,70,40,0.6) 100%); z-index: 2; }
.island-2 .island-overlay { background: linear-gradient(-90deg, transparent 0%, rgba(45,70,40,0.3) 80%, rgba(45,70,40,0.6) 100%); }
.island-item:hover .island-overlay { background: linear-gradient(90deg, transparent 0%, rgba(45,70,40,0.2) 80%, rgba(45,70,40,0.5) 100%); }
.island-2.island-item:hover .island-overlay { background: linear-gradient(-90deg, transparent 0%, rgba(45,70,40,0.2) 80%, rgba(45,70,40,0.5) 100%); }

.island-content { position: relative; z-index: 3; padding: var(--spacing-lg); height: 100%; display: flex; flex-direction: column; gap: 15px; background: linear-gradient(135deg, rgba(45,70,40,0.95) 0%, rgba(20,20,20,0.9) 100%); order: 2; }
.island-2 .island-content { order: 1; }

.island-icon { font-size: 4rem; margin-bottom: 10px; filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5)); animation: iconBounce 3s ease-in-out infinite; }

.island-age { font-size: 2rem; color: var(--color-dark-beige); font-weight: 700; text-shadow: var(--shadow-glow), 2px 2px 10px rgba(0,0,0,0.7); transition: all var(--transition-fast); }
.island-item:hover .island-age { color: var(--color-light-beige); text-shadow: 0 0 30px rgba(255,229,153,0.8), 2px 2px 15px rgba(0,0,0,0.9); transform: translateX(5px); }

.island-subtitle   { font-size: 1.3rem; color: var(--color-light-orange); font-weight: 600; text-shadow: 1px 1px 8px rgba(0,0,0,0.7); margin-bottom: 10px; }
.island-description { font-size: 1rem; color: rgba(255,255,255,0.95); line-height: 1.7; text-shadow: 1px 1px 5px rgba(0,0,0,0.8); margin-bottom: 15px; }

.island-details { background: rgba(255,165,112,0.15); border: 1px solid rgba(255,165,112,0.3); border-radius: 25px; padding: 20px 25px; backdrop-filter: blur(15px); box-shadow: 0 10px 30px rgba(0,0,0,0.3), inset 0 1px 0 var(--color-glow-border); margin-bottom: 20px; flex: 1; }
.island-detail-item { font-size: 0.95rem; color: rgba(255,255,255,0.9); line-height: 1.6; margin-bottom: 12px; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
.island-detail-item:last-child { margin-bottom: 0; }
.island-detail-item strong { color: var(--color-dark-beige); font-weight: 700; }


/* ==========================================
   COURSES CREATIVE SECTION
   ========================================== */

.courses-creative-section { position: relative !important; margin-top: 60px; }

.courses-creative-card { padding: var(--spacing-xl) var(--spacing-lg); }

.courses-creative-grid { position: relative; z-index: 5; display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; perspective: 1000px; }

.course-creative-item {
    transition: all var(--transition-medium) var(--transition-bounce);
    transform-style: preserve-3d;
}

.course-creative-item:hover { z-index: 10; transform: translateY(-12px) scale(1.03); }

.course-creative-inner { border-radius: 35px; overflow: hidden; transition: all var(--transition-medium); position: relative; height: 100%; display: flex; flex-direction: column; }

.course-image-wrapper { position: relative; width: 100%; height: 0; padding-bottom: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; }

.course-image-blob { position: absolute; width: 90%; height: 90%; top: 50%; left: 50%; transform: translate(-50%,-50%); background: linear-gradient(135deg, rgba(255,165,112,0.3) 0%, rgba(250,208,116,0.2) 100%); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; animation: blobMorph 8s ease-in-out infinite; z-index: 1; }

.course-creative-img { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 65%; height: 65%; object-fit: cover; border-radius: 30%; z-index: 2; transition: all var(--transition-medium); box-shadow: 0 15px 40px rgba(0,0,0,0.5); }
.course-creative-item:hover .course-creative-img { transform: translate(-50%,-50%) scale(1.08) rotate(2deg); box-shadow: 0 20px 50px rgba(0,0,0,0.6); }

.course-hover-icon { position: absolute; top: 15px; right: 15px; font-size: 3rem; z-index: 3; opacity: 0; transform: translateY(20px) scale(0); transition: all var(--transition-medium) cubic-bezier(0.68,-0.55,0.265,1.55); filter: drop-shadow(0 8px 20px rgba(0,0,0,0.6)); }
.course-creative-item:hover .course-hover-icon { opacity: 1; transform: translateY(0) scale(1); animation: iconFloat 2s ease-in-out infinite; }

.course-creative-content { padding: 25px 30px 30px; flex: 1; display: flex; flex-direction: column; }

.course-creative-title { font-size: 1.5rem; color: var(--color-dark-beige); margin-bottom: 12px; font-weight: 700; text-shadow: 0 0 20px var(--color-glow-text); transition: all var(--transition-fast); min-height: 2em; line-height: 1; }
.course-creative-item:hover .course-creative-title { color: var(--color-light-beige); text-shadow: 0 0 30px rgba(255,229,153,0.7); transform: translateX(5px); }

.course-creative-desc { font-size: 0.95rem; color: rgba(255,255,255,0.85); line-height: 1.6; margin-bottom: 20px; transition: color var(--transition-fast); flex: 1; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; min-height: 7.6em; }
.course-creative-item:hover .course-creative-desc { color: rgba(255,255,255,0.95); }


/* ==========================================
   TIMELINE SECTION
   ========================================== */

.timeline-section { position: relative; padding: 20px 0; }

.timeline-line { position: absolute; left: 50%; transform: translateX(-50%); width: 4px; height: 100%; background: linear-gradient(180deg, rgba(255,165,112,0.3) 0%, rgba(250,208,116,0.5) 50%, rgba(255,165,112,0.3) 100%); z-index: 1; }

.timeline-bubble { position: absolute; left: 50%; transform: translateX(-50%); background: rgba(255,165,112,0.3); border-radius: 50%; border: 3px solid rgba(250,208,116,0.5); animation: pulseBubble 3s ease-in-out infinite; }
.timeline-bubble-1 { width: 60px; height: 60px; top: 10%; animation-delay: 0s; }
.timeline-bubble-2 { width: 45px; height: 45px; top: 35%; animation-delay: 0.5s; }
.timeline-bubble-3 { width: 50px; height: 50px; top: 60%; animation-delay: 1s; }
.timeline-bubble-4 { width: 65px; height: 65px; top: 85%; animation-delay: 1.5s; }

.timeline-container { position: relative; z-index: 2; }

.timeline-item:nth-child(1) { z-index: 10; }
.timeline-item:nth-child(2) { z-index: 11; }
.timeline-item:nth-child(3) { z-index: 12; }
.timeline-item:nth-child(4) { z-index: 13; }
.timeline-item:nth-child(5) { z-index: 14; }
.timeline-item:nth-child(6) { z-index: 15; }

.timeline-item { position: relative; margin-bottom: 40px; opacity: 0; transform: translateY(50px); transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1); }
.timeline-item:not(:first-child) { margin-top: -150px; }
.timeline-item.animate { opacity: 1; transform: translateY(0); }

.timeline-left .timeline-content  { display: flex; flex-direction: column; gap: 25px; padding-right: calc(50% + 40px); padding-left: 0; }
.timeline-right .timeline-content { display: flex; flex-direction: column; gap: 25px; padding-left: calc(50% + 40px); padding-right: 0; }

.timeline-dot { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 24px; height: 24px; background: linear-gradient(135deg, var(--color-orange-light) 0%, var(--color-orange-dark) 100%); border-radius: 50%; border: 4px solid var(--color-bg-dark); box-shadow: 0 0 0 8px rgba(255,105,51,0.2), 0 0 20px rgba(255,105,51,0.5); z-index: 3; animation: dotPulse 2s ease-in-out infinite; }

.timeline-image { position: relative; width: 180px; height: 180px; margin: 0 auto; order: 1; }

.image-bubble { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, rgba(255,165,112,0.3) 0%, rgba(250,208,116,0.2) 100%); border: 5px solid rgba(255,165,112,0.4); box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 40px rgba(255,229,153,0.1); transition: all 0.5s ease; position: relative; }
.image-bubble::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, transparent 60%); border-radius: 50%; }
.image-bubble img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.timeline-item:hover .image-bubble { transform: scale(1.05) rotate(3deg); box-shadow: 0 25px 60px rgba(232,49,0,0.5), inset 0 0 50px rgba(255,229,153,0.2); border-color: rgba(255,165,112,0.6); }
.timeline-item:hover .image-bubble img { transform: scale(1.1); }

.level-badge { position: absolute; top: -10px; right: -10px; width: 50px; height: 50px; background: linear-gradient(135deg, var(--color-orange-light) 0%, var(--color-orange-dark) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700; color: white; border: 3px solid var(--color-bg-dark); box-shadow: 0 8px 25px rgba(232,49,0,0.6); z-index: 2; }

.timeline-text { padding: 25px; border-radius: 25px; transition: all 0.4s ease; width: 100%; order: 2; border: 2px solid rgba(255,165,112,0.3); }
.timeline-item:hover .timeline-text { transform: translateY(-5px); box-shadow: 0 25px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,229,153,0.2); border-color: rgba(255,165,112,0.5); }

.timeline-title       { font-size: 1.5rem; color: var(--color-beige-dark); margin-bottom: 12px; font-weight: 700; text-shadow: 0 0 20px var(--color-glow-text); }
.timeline-description { font-size: 0.95rem; color: rgba(255,255,255,0.9); line-height: 1.6; margin-bottom: 15px; }

@keyframes dotPulse {
    0%,100% { transform: translate(-50%,-50%) scale(1); box-shadow: 0 0 0 8px rgba(255,105,51,0.2), 0 0 20px rgba(255,105,51,0.5); }
    50% { transform: translate(-50%,-50%) scale(1.15); box-shadow: 0 0 0 12px rgba(255,105,51,0.3), 0 0 30px rgba(255,105,51,0.7); }
}

@media (max-width: 768px) {
    .timeline-line, .timeline-bubble { display: none; }
    .timeline-left .timeline-content, .timeline-right .timeline-content { padding: 0; gap: 20px; }
    .timeline-image { width: 150px; height: 150px; margin: 0 auto; order: 1; }
    .timeline-text  { order: 2; padding: 20px; }
    .timeline-dot   { display: none; }
    .timeline-title       { font-size: 1.3rem; }
    .timeline-description { font-size: 0.9rem; }
    .level-badge { width: 45px; height: 45px; font-size: 1.1rem; }
    .timeline-item { margin-bottom: 30px; }
    .timeline-item:not(:first-child) { margin-top: 2px; }
}
@media (max-width: 480px) {
    .timeline-image { width: 130px; height: 130px; }
    .timeline-text  { padding: 18px; }
    .timeline-title       { font-size: 1.2rem; }
    .timeline-description { font-size: 0.85rem; line-height: 1.5; }
    .timeline-item { margin-bottom: 25px; }
    .timeline-item:not(:first-child) { margin-top: -2px; }
}


/* ==========================================
   STEPBYSTEP — АСИНХРОННИЙ ФОРМАТ
   ========================================== */

.stepbystep-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.stepbystep-card {
    background: linear-gradient(145deg,
        var(--color-inner-bg-dark)   0%,
        var(--color-inner-bg-medium) 100%);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 var(--color-glow-border);
    border: 2px solid rgba(255, 165, 112, 0.3);
    border-radius: 30px;
    padding: 35px 30px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
}

.stepbystep-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 165, 112, 0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.stepbystep-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 165, 112, 0.6);
    box-shadow:
        0 25px 70px rgba(232, 49, 0, 0.45),
        0 0 50px rgba(255, 165, 112, 0.25);
}

.stepbystep-card:hover::before {
    opacity: 1;
}

.stepbystep-icon {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 165, 112, 0.12);
    border-radius: 50%;
    padding: 10px;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 2px 8px rgba(255, 229, 153, 0.08);
}

.stepbystep-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.stepbystep-card:hover .stepbystep-icon img {
    transform: scale(1.12) rotate(5deg);
}

.stepbystep-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-orange-light);
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.stepbystep-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.65;
    flex: 1;
}

@media (max-width: 768px) {
    .stepbystep-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stepbystep-card {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        padding: 25px 20px;
        gap: 20px;
    }

    .stepbystep-icon {
        width: 64px;
        height: 64px;
    }

    .stepbystep-icon img {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .stepbystep-card {
        padding: 20px 16px;
        gap: 15px;
    }
}