/*
Theme Name: А.В. Пинежанинов
Author: Nikita Melnikov
Description: Тема для сайта Александра Пинежанинова по географии
Version: 32.0
*/

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

/* =======================================================
   БАЗА: ТЕМНАЯ ЗОНА (ХЕДЕР И ФУТЕР)
   ======================================================= */
body { font-family: 'Manrope', sans-serif; font-weight: 500; color: #2b2b2b; line-height: 1.6; background-color: #1a1a1a; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 50px; }

/* =======================================================
   1. ХЕДЕР И ЛОГОТИП
   ======================================================= */
.site-header { background-color: transparent; padding: 30px 40px 10px; }
.header-inner { display: flex !important; flex-direction: row !important; justify-content: center !important; align-items: center !important; max-width: 1400px; margin: 0 auto; width: 100%; gap: 30px !important; }
.pill-logo { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 15px !important; text-decoration: none !important; }
.logo-img-wrapper { position: relative !important; width: 50px !important; height: 50px !important; display: block !important; }
.pill-logo-img { position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; object-fit: contain !important; margin: 0 !important; transition: opacity 0.3s ease !important; }
.logo-color { opacity: 0 !important; }
.pill-logo:hover .logo-white { opacity: 0 !important; }
.pill-logo:hover .logo-color { opacity: 1 !important; }

.pill-logo-text { font-size: 20px !important; font-weight: 700 !important; color: #ffffff !important; font-family: 'Nunito', sans-serif; transition: color 0.3s ease !important; }
.pill-logo:hover .pill-logo-text { color: #00b4d8 !important; }

/* --- МОБИЛЬНЫЙ ХИРО БЛОК --- */
.hero-unified-section { padding: 10px 15px 40px !important; display: flex; flex-direction: column; }
.hero-island { display: flex !important; flex-direction: column !important; gap: 0 !important; }
.hero-content { display: flex !important; flex-direction: column; gap: 0 !important; text-align: left; width: 100%; }
.hero-greeting { text-align: left !important; font-size: 34px !important; margin-bottom: 15px !important; }
.hero-desc { text-align: left !important; margin-bottom: 25px !important; }
.hero-carousel-wrapper { width: 100% !important; max-width: 100% !important; margin-bottom: 0 !important; aspect-ratio: unset !important;}
.expertise-unified-box { margin-bottom: 35px !important; }
.hero-main-btn { align-self: flex-start !important; margin-bottom: 35px !important; margin-top: 0px !important; }

.expertise-unified-box { text-align: left !important; padding: 25px 20px !important; width: 100% !important; box-sizing: border-box !important; }
.expertise-box-header { justify-content: flex-start !important; }
.niches-tags { justify-content: flex-start !important; }

.hero-greeting { font-family: 'Nunito', sans-serif; font-size: 40px; font-weight: 800; color: #ffffff; line-height: 1.15; margin-bottom: 20px; letter-spacing: -1px; }
.hero-desc { font-size: 17px; color: rgba(255, 255, 255, 0.7); margin-bottom: 20px; line-height: 1.6; }

/* ТЕМНАЯ ЭКСПЕРТИЗА (В ХИРО) */
.expertise-unified-box { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(0, 180, 216, 0.3); border-radius: 20px; padding: 25px 30px; margin-bottom: 35px; position: relative; backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); }
.expertise-box-header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; color: #00b4d8; }
.expertise-box-header i { font-size: 22px; }
.expertise-years { font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.expertise-superpower { font-family: 'Nunito', sans-serif; font-size: 20px; font-weight: 700; color: #ffffff; margin-bottom: 10px; }
.expertise-box-desc { font-size: 15px; color: rgba(255, 255, 255, 0.6); line-height: 1.5; margin-bottom: 20px; }
.expertise-proven-niches { background: rgba(0, 0, 0, 0.2); padding: 15px 20px; border-radius: 15px; margin-bottom: 5px; }
.niches-label { display: block; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 13px; color: rgba(255, 255, 255, 0.5); margin-bottom: 10px; text-transform: uppercase; }
.niches-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.niches-tags .tag { background: #ffffff; color: #1a1a1a; border: none; padding: 6px 14px; border-radius: 20px; font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 800; }

/* КАРУСЕЛЬ - ОБЩИЕ ПРАВИЛА И МОБИЛЬНЫЙ ФОРМАТ 4/5 */
.hero-carousel-wrapper { position: relative; flex-shrink: 0; width: 440px; margin: 0 auto; overflow: hidden; border-radius: 30px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); aspect-ratio: 4/5; }
.hero-carousel, .interactive-carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: 100%; width: 100%; }
.hero-carousel::-webkit-scrollbar, .interactive-carousel::-webkit-scrollbar { display: none; }
.carousel-img { width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; flex: 0 0 100%; }
.carousel-dots { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; z-index: 10; background: rgba(0, 0, 0, 0.4); padding: 10px 16px; border-radius: 20px; backdrop-filter: blur(8px); }
.dot { width: 10px; height: 10px; background: rgba(255, 255, 255, 0.5); border-radius: 50%; cursor: pointer; transition: all 0.3s ease; }
.dot.active { background: #00b4d8; transform: scale(1.4); }

/* =======================================================
   ОПТИМИЗИРОВАННАЯ РАМКА С АППАРАТНЫМ ФОНОМ
   ======================================================= */
.content-frame { 
    position: relative; margin: 0 40px; background-color: #eef9fc; 
    border-radius: 60px; padding: 35px 0 80px !important; min-height: 100vh !important; 
    overflow: hidden; z-index: 1; transition: background-color 0.5s ease;
}

.content-frame.exam-mode { background-color: #ffffff; }
.content-frame.exam-mode .bg-orbs { opacity: 0; }

.bg-orbs { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: -1; pointer-events: none; transition: opacity 0.5s ease; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); -webkit-filter: blur(80px); opacity: 0.5; will-change: transform; }

.orb-1 { width: 70vw; height: 70vw; background: #00b4d8; top: -15%; left: -15%; animation: float1 9s ease-in-out infinite alternate; }
.orb-2 { width: 80vw; height: 80vw; background: #48cae4; bottom: -25%; right: -15%; animation: float2 10s ease-in-out infinite alternate-reverse; }
.orb-3 { width: 60vw; height: 60vw; background: #0077b6; top: 20%; left: 20%; animation: float3 7s ease-in-out infinite alternate; opacity: 0.4; }

@keyframes float1 { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(20vw, 15vh, 0) scale(1.3); } }
@keyframes float2 { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(-20vw, -15vh, 0) scale(1.2); } }
@keyframes float3 { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(25vw, -10vh, 0) scale(1.4); } }

.exam-global-bg {
    position: absolute; top: 0; left: 0; right: 0; height: 650px;
    background-size: cover; background-position: center top;
    opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 0;
}
.exam-global-bg::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.7) 60%, rgba(255,255,255,1) 100%);
}
.ege-global-bg { background-image: url('https://pinezhaninov.ru/wp-content/uploads/2026/04/fon21.png'); }
.oge-global-bg { background-image: url('https://pinezhaninov.ru/wp-content/uploads/2026/03/fon-1.jpg'); }
.exam-global-bg.show { opacity: 1; visibility: visible; }

/* =======================================================
   LIQUID GLASS (ЕДИНЫЕ ПЛАШКИ МАТОВОГО СТЕКЛА)
   ======================================================= */
.glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 40px;
    padding: 50px 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    margin-bottom: 40px;
    text-align: center;
    position: relative; z-index: 2; 
}

.inner-glass {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
}

.btn-primary {
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 45px;
    color: #fff; text-decoration: none; border-radius: 50px;
    font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 16px;
    box-shadow: 0 10px 25px rgba(0, 180, 216, 0.25); transition: all 0.3s ease; border: none; cursor: pointer; text-align: center;
}
.btn-primary:hover {
    transform: translateY(-4px); box-shadow: 0 15px 35px rgba(0, 119, 182, 0.4); background: linear-gradient(135deg, #48cae4 0%, #0096c7 100%);
}

.btn-primary.glass-btn {
    background: rgba(0, 180, 216, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* =======================================================
   ОТДЕЛЬНЫЕ ЗАГОЛОВКИ (BAGES) ВНУТРИ ПЛАШЕК
   ======================================================= */
.badge-title-wrapper { text-align: center; margin-top: -20px; margin-bottom: 15px; }
.badge-title {
    display: inline-block;
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    padding: 12px 35px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 119, 182, 0.25);
}
.badge-title .section-title {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.section-subtitle { text-align: center; font-size: 18px; color: #555; margin-bottom: 35px; font-weight: 600; }

/* СЕКЦИОННЫЕ ЗАГОЛОВКИ (ЧЕРНЫЕ) */
.section-title {
    font-family: 'Nunito', sans-serif; font-size: 38px; font-weight: 800; color: #1a1a1a; text-align: center; margin: 0 auto 15px; letter-spacing: -1px;
}

/* =======================================================
   СЕГМЕНТИРОВАННОЕ МЕНЮ И СВАЙПЫ
   ======================================================= */
.frame-tabs-container { display: flex !important; justify-content: center !important; align-items: center; margin-bottom: 40px !important; padding: 0 20px !important; position: relative; z-index: 5; }
.frame-tabs-wrapper { position: relative !important; background-color: #1a1a1a !important; border-radius: 40px !important; display: inline-flex !important; padding: 6px !important; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important; z-index: 10 !important; }
.tab-slider { position: absolute !important; top: 6px !important; height: calc(100% - 12px) !important; background: #00b4d8 !important; border-radius: 30px !important; transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), left 0.5s cubic-bezier(0.25, 1, 0.5, 1), width 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important; z-index: 1 !important; }
.frame-tab-btn { position: relative !important; z-index: 2 !important; background: transparent !important; color: rgba(255, 255, 255, 0.6) !important; border: none !important; padding: 10px 26px !important; border-radius: 30px !important; font-size: 15px !important; font-weight: 700 !important; font-family: 'Nunito', sans-serif !important; cursor: pointer !important; transition: color 0.3s ease !important; }
.frame-tab-btn:hover { color: #ffffff !important; }
.frame-tab-btn.active { color: #ffffff !important; background: transparent !important; }

/* ВЫЕЗЖАЮЩЕЕ МЕНЮ ЭКЗАМЕНОВ */
.exam-toggle-wrapper { background-color: #1a1a1a; border-radius: 40px; padding: 4px; display: inline-flex; opacity: 0; visibility: hidden; position: absolute; transform: translateX(-20px); pointer-events: none; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); z-index: 5; }
.exam-toggle-wrapper.show { opacity: 1; visibility: visible; position: relative; transform: translateX(0); pointer-events: auto; margin-left: 15px; }
.exam-toggle-btn { background: transparent; border: none; padding: 8px 24px; font-size: 14px; font-weight: 800; color: rgba(255, 255, 255, 0.5); border-radius: 30px; cursor: pointer; transition: all 0.3s ease; font-family: 'Nunito', sans-serif; }
.exam-toggle-btn.active { background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%); color: #fff; }

.tab-pane { display: none !important; opacity: 0 !important; position: relative; z-index: 2; }
.tab-pane.active { display: block !important; opacity: 1 !important; animation: fadeUpTab 0.5s ease forwards !important; }
.tab-pane.active.slide-from-right { animation: smoothSwipeRight 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards !important; }
.tab-pane.active.slide-from-left { animation: smoothSwipeLeft 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards !important; }
@keyframes fadeUpTab { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes smoothSwipeRight { 0% { opacity: 0; transform: translateX(40px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes smoothSwipeLeft { 0% { opacity: 0; transform: translateX(-40px); } 100% { opacity: 1; transform: translateX(0); } }

/* =======================================================
   ВНУТРЕННОСТИ БЛОКОВ 
   ======================================================= */
.expert-section { padding: 0 0 20px; }

.approach-bento { display: flex; flex-direction: column; gap: 20px; text-align: left; }
.app-card { padding: 30px; }
.app-card i { font-size: 40px; color: #00b4d8; margin-bottom: 20px; display: block; }
.app-card h3 { font-family: 'Nunito', sans-serif; font-size: 20px; font-weight: 800; color: #1a1a1a; margin-bottom: 10px; }
.app-card p { font-size: 15px; color: #555; line-height: 1.6; margin: 0;}
.app-wide { display: flex; align-items: center; gap: 30px; }
.app-wide i { font-size: 70px; margin-bottom: 0; flex-shrink: 0; }
.app-wide h3 { font-size: 24px; }
.app-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.academic-timeline { max-width: 800px; margin: 0 auto; position: relative; padding: 10px 0; text-align: left; }
.academic-timeline::before { content: ''; position: absolute; top: 0; bottom: 0; left: 30px; width: 2px; background: rgba(0, 180, 216, 0.4); }
.timeline-item { position: relative; margin-bottom: 25px; padding: 30px 40px 30px 80px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: 15px; top: 35px; width: 32px; height: 32px; background: #fff; border: 3px solid #00b4d8; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #00b4d8; font-size: 16px; z-index: 2; box-shadow: 0 0 0 5px rgba(255,255,255,0.6); }
.timeline-content h3 { font-family: 'Nunito', sans-serif; font-size: 20px; font-weight: 800; color: #1a1a1a; margin-bottom: 5px; }
.timeline-content p { font-size: 15px; color: #555; line-height: 1.6; margin: 0; }

.expert-visual-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.expert-col { padding: 25px; text-align: left; }
.expert-img-box { width: 100%; aspect-ratio: 16 / 9; border-radius: 15px; overflow: hidden; margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.5); }
.expert-img-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.expert-text-box h3 { font-family: 'Nunito', sans-serif; font-size: 20px; font-weight: 800; color: #1a1a1a; margin-bottom: 10px; }
.expert-text-box p { font-size: 15px; color: #555; line-height: 1.5; margin: 0;}

/* НАСТАВНИК И КАРУСЕЛЬ ДОСТИЖЕНИЙ */
.mentor-layout { display: flex; align-items: stretch; gap: 40px; text-align: left; }
.mentor-photo.square-carousel { flex: 0 0 400px; width: 400px; aspect-ratio: 1/1; border-radius: 30px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.05); overflow: hidden; margin: 0 auto; }
.mentor-list { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 15px; }
.mentor-item { display: flex; align-items: flex-start; gap: 20px; padding: 20px 25px; }
.mentor-icon { width: 50px; height: 50px; background: rgba(0, 180, 216, 0.15); color: #00b4d8; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.mentor-item strong { font-family: 'Nunito', sans-serif; font-size: 18px; color: #1a1a1a; }
.mentor-item p { font-size: 15px; color: #555; margin-top: 5px; line-height: 1.5; margin-bottom:0; }
.mentor-inline-link { color: #00b4d8; text-decoration: underline; transition: color 0.3s ease; display: inline-block; margin-top: 4px; font-weight: 600;}
.mentor-inline-link:hover { color: #0077b6; }
.mentor-btn-container { width: 100%; display: flex; justify-content: center; margin-top: 25px; }
.mentor-btn { width: 100%; display: flex; justify-content: center; text-align: center; }

/* ФОРМАТЫ СОТРУДНИЧЕСТВА */
.coop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.coop-card { padding: 40px; text-align: center; display: flex; flex-direction: column; height: 100%; }
.coop-icon { font-size: 55px; color: #00b4d8; margin-bottom: 25px; }
.coop-title { font-family: 'Nunito', sans-serif; font-size: 24px; font-weight: 800; margin-bottom: 15px; color: #1a1a1a; min-height: 66px; display: flex; align-items: center; justify-content: center;}
.coop-desc { font-size: 15px; line-height: 1.6; margin-bottom: 30px; color: #555; flex-grow: 1;}
.coop-btn-wrapper { margin-top: auto; display: flex; justify-content: center; }
.coop-btn { width: 100%; display: flex; justify-content: center; text-align: center; align-items: center; min-height: 56px;}

/* ПЛАШКИ-ТЕГИ ДЛЯ КОНКУРСОВ (Строгий дизайн) */
.expert-mini-tag {
    background: rgba(0, 180, 216, 0.08);
    border: 1px solid rgba(0, 180, 216, 0.15);
    padding: 10px 15px;
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    display: block;
    line-height: 1.4;
    text-decoration: none;
    cursor: default;
}
.expert-mini-tag:last-child { margin-bottom: 0; }
a.expert-mini-tag.link-tag {
    font-weight: 800;
    transition: all 0.3s ease;
    cursor: pointer;
}
a.expert-mini-tag.link-tag:hover { 
    background: rgba(0, 180, 216, 0.15); 
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.expandable-wrapper { position: relative; overflow: hidden; transition: max-height 0.5s ease; margin-top: 15px; }
#contests-wrapper { max-height: 180px; }
#contests-wrapper.expanded { max-height: 2000px; }
.exp-mid-col .expandable-wrapper { max-height: 220px; } 
.exp-mid-col .expandable-wrapper.expanded { max-height: 1500px; }

.expandable-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 50px; background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.9)); transition: opacity 0.3s; pointer-events: none; }
.expandable-wrapper.expanded .expandable-fade { opacity: 0; }
.expand-btn { background: none; border: none; color: #00b4d8; font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 800; cursor: pointer; margin-top: 10px; display: inline-flex; align-items: center; gap: 5px; transition: color 0.3s ease; padding: 0;}
.expand-btn:hover { color: #0077b6; text-decoration: underline; }

/* HOVER CERTIFICATES */
.cert-hover-trigger {
    position: relative;
    display: inline-block; 
    color: #00b4d8;
    border-bottom: 1px dashed #00b4d8;
    cursor: pointer;
    transition: color 0.3s ease;
}
.cert-hover-trigger:hover {
    color: #0077b6;
    border-bottom-color: #0077b6;
}
.cert-popover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -30px;
    right: -30px;
    height: 40px; 
    background: transparent;
}
.cert-popover {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease 0.8s, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1) 0.8s, visibility 0s linear 1.1s;
    z-index: 100;
    pointer-events: none;
    width: max-content;
    max-width: 520px; 
    flex-wrap: wrap;
    justify-content: center;
}
.cert-hover-trigger:hover .cert-popover,
.cert-popover:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(-15px) !important;
    pointer-events: auto !important;
    transition-delay: 0s !important; 
}
.cert-popover::before {
    content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    border-width: 8px; border-style: solid; border-color: rgba(255, 255, 255, 0.85) transparent transparent transparent;
}
.cert-popover img {
    height: 150px;
    width: 110px; 
    border-radius: 6px; 
    object-fit: cover; 
    cursor: zoom-in; 
    border: 1px solid rgba(0,0,0,0.1);
    position: relative;
    z-index: 101;
    transition: transform 0.2s ease;
}
.cert-popover img:hover {
    transform: scale(1.05);
}

/* =======================================================
   ДОСТИЖЕНИЯ (СЕТКИ 5 В РЯД)
   ======================================================= */
.cert-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 15px; }
.cert-card { display: flex; flex-direction: column; padding: 20px; text-align: left; height: 100%; justify-content: flex-start; background: rgba(255, 255, 255, 0.45); border-radius: 25px; border: 1px solid rgba(255, 255, 255, 0.6); box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02); backdrop-filter: blur(15px); }
.cert-img-wrapper { position: relative; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: transparent; padding: 0; }
.cert-img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform 0.4s ease; border-radius: 12px; border: 1px solid rgba(0,180,216,0.15);}
.placeholder-img { height: 160px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #888; font-family: 'Manrope', sans-serif; background: rgba(0,0,0,0.03); border-radius: 12px; border: 1px solid rgba(0,180,216,0.15);}
.cert-zoom { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 180, 216, 0.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; color: #fff; font-size: 40px; border-radius: 12px;}
.cert-img-wrapper:hover .cert-zoom { opacity: 1; }
.cert-img-wrapper:hover .cert-img { transform: scale(1.05); }
.cert-info { padding: 15px 0 0; display: flex; flex-direction: column; gap: 10px; text-align: left; flex-grow: 1; }
.cert-title-new { font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 800; color: #1a1a1a; line-height: 1.3; margin: 0; }
.cert-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: auto; text-align: left; }
.cert-tag { background: rgba(0, 180, 216, 0.08); color: #00b4d8; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 800; font-family: 'Manrope', sans-serif; display: inline-block; }

.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 10px; }

.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(26, 26, 26, 0.95); z-index: 10000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; cursor: zoom-out; backdrop-filter: blur(10px); }
.lightbox.show { opacity: 1; visibility: visible; }
.lightbox-content { max-width: 90%; max-height: 90vh; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); object-fit: contain; }
.lightbox-close { position: absolute; top: 30px; right: 40px; color: #fff; font-size: 40px; font-weight: 300; cursor: pointer; transition: color 0.3s ease; }
.lightbox-close:hover { color: #00b4d8; }

.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.media-card { display: flex; align-items: center; gap: 20px; padding: 20px 25px; text-decoration: none; color: inherit; transition: background 0.3s ease, border-color 0.3s ease; text-align: left; }
.media-card:hover { background: rgba(255,255,255,0.8); border-color: rgba(0, 180, 216, 0.4); }
.media-icon { width: 50px; height: 50px; background: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #00b4d8; font-size: 26px; flex-shrink: 0; border: 1px solid rgba(0,180,216,0.1); }
.media-content { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.media-meta { display: flex; gap: 10px; font-size: 12px; font-weight: 700; font-family: 'Nunito', sans-serif; text-transform: uppercase; color: #00b4d8; }
.media-title { font-size: 15px; font-weight: 700; color: #1a1a1a; line-height: 1.4; }

/* =======================================================
   РАЗДЕЛ: ЭКЗАМЕНЫ (ЧЕРЕДУЮЩИЕСЯ ФОНЫ)
   ======================================================= */
.alt-section-gray {
    background-color: #fafafa;
    border-top: 1px solid #eee;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.alt-section-white {
    background-color: #ffffff;
    border-top: 1px solid #eee;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* =======================================================
   РАЗДЕЛ: ЭКЗАМЕНЫ (ГЕРОЙ-БАННЕРЫ И КАРТОЧКИ)
   ======================================================= */
.exam-hero-banner {
    position: relative;
    padding: 40px 40px 60px;
    text-align: center;
    z-index: 2; 
}

.exam-hero-title {
    font-family: 'Nunito', sans-serif;
    font-size: 42px;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.exam-hero-subtitle {
    font-size: 20px;
    color: #444;
    font-weight: 600;
    margin-bottom: 50px;
}

/* ИНФОРМАЦИОННАЯ КАРТОЧКА В БАННЕРЕ */
.exam-info-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 40px;
    max-width: 1050px;
    margin: 0 auto;
    text-align: left;
    background: #ffffff;
    border: 1px solid rgba(0,180,216,0.1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    border-radius: 25px;
}

.eic-left-box { 
    flex: 0 0 28%; display: flex; align-items: center; gap: 15px; 
    background: rgba(0, 180, 216, 0.05); border: 1px solid rgba(0, 180, 216, 0.2); 
    padding: 20px 25px; border-radius: 20px; 
}
.eic-icon-box { background: #00b4d8; color: #fff; width: 45px; height: 45px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.eic-date-col { display: flex; flex-direction: column; text-align: left; gap: 2px;}
.eic-label { font-size: 11px; font-weight: 800; color: #00b4d8; text-transform: uppercase; letter-spacing: 1px; }
.eic-date { font-size: 24px; font-weight: 900; color: #1a1a1a; font-family: 'Nunito', sans-serif; line-height: 1; }
.eic-format { font-size: 13px; color: #666; font-weight: 600; }

.eic-middle { flex: 1; padding: 0 30px; }
.eic-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.eic-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #1a1a1a; font-weight: 600; line-height: 1.4;}
.eic-list i { color: #00b4d8; font-size: 20px; }

/* КАПСУЛА: КНОПКА СВЕРХУ, ТАЙМЕР СНИЗУ */
.eic-right { flex: 0 0 32%; display: flex; justify-content: flex-end; }
.action-btn-wrapper {
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    border-radius: 20px; 
    padding: 0 6px 6px 6px; 
    display: flex; flex-direction: column; width: 100%;
    box-shadow: 0 10px 25px rgba(0, 119, 182, 0.3); transition: transform 0.3s ease;
}
.action-btn-wrapper:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0, 119, 182, 0.4); }

.action-btn-wrapper .btn-primary.eic-btn {
    background: transparent !important; box-shadow: none !important;
    padding: 16px 20px 14px !important; margin: 0 !important; width: 100%;
    border-radius: 14px 14px 0 0 !important; border: none; justify-content: center;
    color: #ffffff !important; order: 1;
}
.timer-island {
    background: #ffffff; color: #333; 
    border-radius: 14px; 
    padding: 10px 15px; font-size: 12px; font-weight: 800; text-align: center;
    text-transform: uppercase; width: 100%; font-family: 'Nunito', sans-serif;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); order: 2;
}
.timer-island span { color: #00b4d8; font-size: 14px; font-weight: 900; margin: 0 2px; }

/* КАРТОЧКА ЭКСПЕРТА (ТЕМНАЯ ВИЗИТКА) */
.expert-promo-wrapper {
    margin-bottom: 80px; 
}
.expert-promo-card {
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px; padding: 40px; margin: 0 auto; max-width: 1050px;
    text-align: left; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.epc-top { display: flex; align-items: center; gap: 30px; }
.epc-avatar { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; border: 3px solid #00b4d8; flex-shrink: 0; }
.epc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.epc-name { font-family: 'Nunito', sans-serif; font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 5px; }
.epc-role { color: #00b4d8; font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.epc-desc { color: #ccc; font-size: 15px; line-height: 1.5; margin: 0; }

/* ЛИПКОЕ НАВИГАЦИОННОЕ МЕНЮ */
.progress-nav {
    position: fixed !important; top: 30px !important; left: 50%; transform: translateX(-50%); z-index: 99999 !important;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    padding: 10px 25px; border-radius: 50px; display: flex; align-items: center; gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); border: 1px solid rgba(0,180,216,0.3);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.progress-nav.hidden { opacity: 0 !important; pointer-events: none !important; transform: translate(-50%, -20px) !important; }
.pn-link { color: #555; text-decoration: none; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; transition: color 0.3s ease; white-space: nowrap; font-family: 'Nunito', sans-serif;}
.pn-link:hover { color: #00b4d8; }
.pn-link.active { color: #00b4d8; }
.pn-line { width: 15px; height: 2px; background: #eee; }

/* СТРОГАЯ СЕТКА: КОМУ ПОДХОДИТ */
.audience-section { text-align: center; }
.audience-grid { display: flex; flex-wrap: nowrap; justify-content: center; gap: 15px; margin: 40px auto 50px; align-items: stretch; text-align: left;}

.clean-card {
    flex: 1 1 0;
    min-width: 170px; 
    background: #ffffff;
    border: 1px solid rgba(0, 180, 216, 0.15);
    border-radius: 25px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.aud-num { 
    position: absolute; top: -15px; right: -10px; 
    font-family: 'Nunito', sans-serif; font-size: 120px; font-weight: 900; 
    color: rgba(0, 180, 216, 0.06); 
    line-height: 1; z-index: 0; 
}
.clean-card p { font-size: 14px; color: #555; line-height: 1.5; position: relative; z-index: 2; margin: 0; }
.clean-card strong { color: #00b4d8; font-weight: 800; font-family: 'Nunito', sans-serif; font-size: 15px; display: inline; } 

/* БЛОК: ЧТО ВАС ЖДЕТ (ЕГЭ - СТОЛБЦЫ) */
.features-section { text-align: center; }
.features-4col-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
    margin-top: 40px;
    text-align: left;
}
.feature-col-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 180, 216, 0.15);
    border-radius: 25px;
    padding: 35px 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}
.fcc-icon { width: 50px; height: 50px; background: rgba(0,180,216,0.1); color: #00b4d8; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; }
.fcc-title { font-family: 'Nunito', sans-serif; font-size: 18px; font-weight: 800; color: #1a1a1a; margin-bottom: 15px; line-height: 1.3;}
.fcc-desc { font-size: 14px; color: #555; line-height: 1.5; margin-bottom: 15px;}
.fcc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.fcc-list li { font-size: 14px; color: #444; line-height: 1.4; padding-left: 15px; position: relative; }
.fcc-list li::before { content: '•'; color: #00b4d8; position: absolute; left: 0; top: 0; font-weight: 900; font-size: 16px;}

/* ПАРАЛЛАКС ИКОНКИ */
.parallax-geo { 
    position: absolute; color: #00b4d8; opacity: 0.05; z-index: 1; pointer-events: none; 
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: translateY(var(--y, 0px)) rotate(var(--rot, 0deg)); 
    will-change: transform;
}

/* ПРОГРАММА ИНТЕНСИВА */
.styled-program-list {
    list-style: none; padding: 0; margin: 0 auto; max-width: 900px; display: flex; flex-direction: column; gap: 15px; text-align: left;
}
.styled-program-list li {
    background: #ffffff; border: 1px solid rgba(0,180,216,0.15); padding: 20px 25px; border-radius: 20px; display: flex; align-items: flex-start; gap: 15px; font-size: 16px; color: #444; box-shadow: 0 5px 15px rgba(0,0,0,0.02); font-family: 'Manrope', sans-serif;
}
.styled-program-list li i {
    color: #00b4d8; font-size: 24px; flex-shrink: 0; margin-top: 2px;
}
.styled-program-list li span {
    flex: 1; line-height: 1.5;
}
.styled-program-list .highlight-item {
    background: linear-gradient(135deg, rgba(0,180,216,0.05) 0%, rgba(0,119,182,0.05) 100%);
    border-color: rgba(0,180,216,0.3);
}

.program-section { text-align: center; }
.accordion-wrapper { display: flex; flex-direction: column; gap: 15px; text-align: left; }
.prog-acc { background: rgba(0, 180, 216, 0.03); border: 2px solid rgba(0, 180, 216, 0.15); border-radius: 15px; overflow: hidden; transition: all 0.3s ease; display: block;}
.prog-acc[open] { background: #ffffff; border-color: #00b4d8; box-shadow: 0 10px 25px rgba(0, 180, 216, 0.1); }
.prog-title { padding: 20px 25px; font-family: 'Nunito', sans-serif; font-size: 18px; font-weight: 800; color: #1a1a1a; cursor: pointer; position: relative; display: flex; align-items: center; padding-right: 50px; user-select: none; list-style: none;}
.prog-title::-webkit-details-marker { display: none; }
.prog-title::marker { display: none; content: ''; }
.prog-icon { color: #00b4d8; font-size: 24px; margin-right: 15px; flex-shrink: 0; }
.prog-title::after { content: '+'; margin-left: auto; position: absolute; right: 25px; font-size: 28px; color: #00b4d8; font-weight: 900; line-height: 1; transition: transform 0.3s ease; top: 50%; transform: translateY(-50%);}
.prog-acc[open] .prog-title::after { content: '−'; }
.prog-content { padding: 0 30px 25px 64px; display: block;}
.prog-content p { font-size: 15px; color: #555; line-height: 1.6; margin: 0; }
.prog-content strong { color: #1a1a1a; font-family: 'Nunito', sans-serif; font-weight: 800; }

/* ОБЪЕДИНЕННЫЙ КОМПАКТНЫЙ БЛОК: ПОЧЕМУ МЫ + ФОРМАТ */
.why-format-section { text-align: center; background: transparent; }

.why-minimal-grid { display: flex; justify-content: center; gap: 30px; margin: 40px auto 50px; text-align: left; max-width: 1000px;}
.why-min-card { flex: 1; display: flex; align-items: flex-start; gap: 15px; }
.why-min-card i { font-size: 24px; color: #00b4d8; flex-shrink: 0; margin-top: 2px;}
.why-min-card p { font-size: 16px; color: #444; line-height: 1.5; margin: 0; }
.why-min-card strong { color: #1a1a1a; font-family: 'Nunito', sans-serif; font-weight: 800; }

.format-glass-box {
    background: rgba(255, 255, 255, 0.6); 
    border: 1px solid rgba(0, 180, 216, 0.2); 
    border-radius: 40px;
    padding: 40px;
    margin: 0 auto;
    max-width: 1000px;
    backdrop-filter: blur(10px);
}

.format-conditions-grid { display: flex; flex-wrap: nowrap; justify-content: center; gap: 15px; text-align: left; }
.fc-item { flex: 1; background: #ffffff; padding: 20px 15px; border-radius: 20px; border: 1px solid rgba(0,180,216,0.1); box-shadow: 0 5px 15px rgba(0,0,0,0.02);}
.fc-item i { color: #00b4d8; font-size: 26px; margin-bottom: 10px; display: block; }
.fc-item p { font-size: 13px; color: #555; line-height: 1.5; margin: 0; }
.fc-item strong { display: block; font-family: 'Nunito', sans-serif; color: #1a1a1a; margin-bottom: 5px; font-size: 15px; font-weight: 800; }

.price-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.85);
    padding: 40px 50px;
    border-radius: 40px;
    border: 1px solid rgba(0, 180, 216, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}
.price-block {
    text-align: left;
    display: flex;
    flex-direction: column;
}
.old-price {
    font-size: 20px;
    color: #888;
    text-decoration: line-through;
    font-weight: 700;
    margin-bottom: -5px;
}
.new-price {
    font-size: 42px;
    color: #1a1a1a;
    font-weight: 900;
    line-height: 1;
    font-family: 'Nunito', sans-serif;
}
.installment-price { font-size: 16px; font-weight: 800; color: #00b4d8; margin-top: 5px; font-family: 'Nunito', sans-serif;}
.installment-note { font-size: 12px; color: #888; margin-top: 2px; line-height: 1.2;}

.price-action-row .action-btn-wrapper {
    width: 100%;
    max-width: 380px; 
    margin: 0;
}

/* НОВЫЙ БЛОК: ИНДИВИДУАЛЬНЫЕ КОНСУЛЬТАЦИИ */
.consultation-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-radius: 40px;
    padding: 50px;
    max-width: 900px;
    margin: 50px auto 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}
.consultation-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    text-align: left;
}
.consultation-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: #444;
}
.consultation-list i {
    color: #00b4d8;
    font-size: 24px;
    flex-shrink: 0;
}

/* =======================================================
   БЛОК ОТЗЫВОВ (ТЕМНЫЕ КАРТОЧКИ)
   ======================================================= */
.reviews-section { text-align: center; }
.reviews-carousel-container { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 1100px; margin: 0 auto;}
.reviews-slider-wrapper { width: 100%; overflow: hidden; padding: 10px 0; position: relative;}
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; background: #1a1a1a; border: 2px solid #00b4d8; color: #00b4d8; font-size: 20px; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(0,180,216,0.2); }
.slider-arrow:hover { background: #00b4d8; color: #fff; }
.prev-arrow { left: -60px; }
.next-arrow { right: -60px; }

.reviews-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 30px; padding: 20px 0; scrollbar-width: none; text-align: left; }
.reviews-slider::-webkit-scrollbar { display: none; }

.review-card-dark { scroll-snap-align: start; flex: 0 0 calc(50% - 15px); background: #1a1a1a; padding: 40px; border-radius: 25px; box-shadow: 0 15px 30px rgba(0,0,0,0.1); position: relative; border: 1px solid #333;}
.r-quote-icon { font-size: 50px; color: #00b4d8; opacity: 0.2; position: absolute; top: 20px; left: 20px; }
.r-text { font-size: 16px; color: #eee; line-height: 1.6; margin: 0 0 20px 0; position: relative; z-index: 1; padding-top: 10px; font-style: italic; }
.r-author { font-size: 18px; font-weight: 800; color: #fff; font-family: 'Nunito', sans-serif;}

/* Мобильная подсказка для свайпа */
.mobile-swipe-hint { display: none; text-align: center; color: #888; font-size: 14px; margin-top: 20px; font-weight: 700; font-family: 'Nunito', sans-serif; align-items: center; justify-content: center; gap: 8px;}
.mobile-swipe-hint .swipe-icon { color: #00b4d8; font-size: 18px; animation: swipeAnim 2s infinite; }
@keyframes swipeAnim { 0% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 100% { transform: translateX(-5px); } }

/* =======================================================
   НОВЫЙ БЛОК FAQ
   ======================================================= */
.faq-section { text-align: center; }
.faq-container { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; text-align: left; }
.faq-acc { background: #ffffff; border: 2px solid rgba(0, 180, 216, 0.1); border-radius: 15px; overflow: hidden; transition: all 0.3s ease; margin-bottom: 15px; display: block; }
.faq-acc[open] { border-color: #00b4d8; background: #fff; box-shadow: 0 10px 25px rgba(0, 180, 216, 0.1); }
.faq-title { padding: 20px 25px; font-size: 18px; font-weight: 800; color: #1a1a1a; cursor: pointer; list-style: none; position: relative; padding-right: 50px; user-select: none; display: flex; align-items: center; font-family: 'Nunito', sans-serif;}
.faq-title::marker { display: none; content: ''; }
.faq-title::-webkit-details-marker { display: none; }

/* Круглая иконка вопроса в FAQ */
.faq-icon-circle { background: #00b4d8; color: #fff; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-right: 15px; flex-shrink: 0; }

.faq-title::after { content: '+'; position: absolute; right: 25px; top: 50%; transform: translateY(-50%); font-size: 28px; color: #00b4d8; font-weight: 900; transition: transform 0.3s ease; line-height: 1; font-family: 'Nunito', sans-serif;}
.faq-acc[open] .faq-title::after { content: '−'; transform: translateY(-50%); }
.faq-content { padding: 0 25px 25px 72px; display: block; }
.faq-content p { font-size: 15px; color: #555; margin: 0; line-height: 1.5; }

/* =======================================================
   ПЛАШКА COOKIE
   ======================================================= */
.cookie-banner { position: fixed; bottom: 30px; left: 30px; width: 320px; background: #ffffff; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.15); padding: 20px; z-index: 10000; transform: translateY(150%); transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); font-family: 'Manrope', sans-serif; border: 1px solid rgba(0,180,216,0.1); }
.cookie-banner.show { transform: translateY(0); }
.cookie-top { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.cookie-icon { font-size: 28px; flex-shrink: 0; line-height: 1; }
.cookie-text { font-size: 13px; color: #555; line-height: 1.5; }
.cookie-text a { color: #00b4d8; text-decoration: underline; font-weight: 700; }
.cookie-btn { width: 100%; background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%); color: #fff; border: none; padding: 12px; border-radius: 12px; font-size: 14px; font-weight: 800; font-family: 'Nunito', sans-serif; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.cookie-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,119,182,0.3); }

/* АДАПТАЦИЯ БЛОКОВ */
@media (max-width: 1200px) {
    .cert-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .app-wide { flex-direction: column; text-align: center; }
    .app-row-3 { grid-template-columns: 1fr; }
    .expert-visual-grid { grid-template-columns: 1fr; }
    
    .hero-island { display: flex !important; flex-direction: column !important; }
    .hero-content { display: flex !important; max-width: 100% !important; text-align: center !important;}
    .hero-greeting, .hero-desc { text-align: center !important; }
    .expertise-unified-box { align-self: stretch !important; text-align: center !important;}
    .expertise-box-header, .niches-tags { justify-content: center !important; }
    .hero-main-btn { align-self: center !important; }
    
    /* Сброс ручного выравнивания карусели на планшетах */
    .hero-carousel-wrapper:not(.mentor-carousel-wrapper) { 
        width: 100% !important; max-width: 100% !important; aspect-ratio: 4/5 !important; 
        padding: 0 !important; margin: 0 !important; height: auto !important;
    }

    .mentor-layout { flex-direction: column; }
    .mentor-photo.square-carousel { flex: 0 0 auto; width: 100%; aspect-ratio: 1/1; }
    .architecture-flow { flex-direction: column; gap: 20px; }
    .arch-arrow { transform: rotate(90deg); margin: 10px 0; }
    .coop-grid { grid-template-columns: 1fr; }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .doc-grid { grid-template-columns: repeat(2, 1fr); }
    .media-grid { grid-template-columns: 1fr; }
    .glass-card { padding: 40px 30px; }

    .exam-info-card { flex-direction: column; gap: 20px; text-align: center; }
    .eic-left-box { width: 100%; justify-content: center; }
    .eic-middle { padding: 10px 0; }
    .eic-list li { justify-content: center; text-align: left; }
    .eic-right { width: 100%; justify-content: center; }
    
    .audience-grid { flex-wrap: wrap; }
    .clean-card { width: calc(33.3% - 15px); flex: auto; padding: 25px; }

    .features-4col-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

    .format-conditions-grid { flex-wrap: wrap; }
    .fc-item { width: calc(33.3% - 10px); flex: auto;}
    
    .price-action-row { flex-direction: column; text-align: center; gap: 20px; padding: 30px 25px; border-radius: 30px; width: 100%; box-sizing: border-box; }
    .price-block { text-align: center; }
    .price-action-row .action-btn-wrapper { max-width: 100%; }

    .reviews-carousel-container { max-width: 100%; padding: 0 40px; }
    .slider-arrow.prev-arrow { left: 0; }
    .slider-arrow.next-arrow { right: 0; }
}

@media (max-width: 768px) {
    * { overflow-wrap: break-word; }
    
    .alt-section-gray, .alt-section-white { padding: 60px 0; }

    /* Убираем боковые черные рамки, растягиваем на весь экран */
    .content-frame { margin: 0 !important; border-radius: 40px; padding: 25px 0 60px !important; }
    .container { padding: 0 20px !important; }

    .frame-tabs-container { flex-direction: column; align-items: stretch; padding: 0 20px !important; }
    .frame-tabs-wrapper { flex-direction: column !important; width: 100% !important; border-radius: 20px !important; padding: 5px !important; }
    .frame-tab-btn { width: 100% !important; padding: 12px 20px !important; }
    .tab-slider { display: none !important; }
    .frame-tab-btn.active { background: #00b4d8 !important; }
    .exam-toggle-wrapper { align-self: center; }
    .exam-toggle-wrapper.show { margin-left: 0; margin-top: 10px; transform: translateY(0); }

    .progress-nav { bottom: 20px !important; top: auto !important; width: calc(100% - 40px); justify-content: flex-start; padding: 15px 20px; overflow-x: auto; scrollbar-width: none; }
    .progress-nav.hidden { transform: translate(-50%, 20px) !important; }
    .pn-line { display: none; }
    .pn-link { font-size: 12px; flex-shrink: 0; padding-right: 15px; }

    /* Порядок элементов в Хиро на мобильных */
    .hero-content { width: 100% !important; display: flex !important; flex-direction: column !important;}
    .hero-island { padding-left: 20px !important; padding-right: 20px !important; display: flex !important; flex-direction: column !important; }
    .hero-greeting { order: 1; text-align: left !important; font-size: 32px !important;}
    .hero-desc { order: 2; text-align: left !important;}
    .expertise-unified-box { order: 3; margin-bottom: 20px !important; text-align: left !important;}
    .expertise-box-header, .niches-tags { justify-content: flex-start !important; }
    .hero-main-btn { order: 4; margin-bottom: 30px !important; align-self: stretch !important; width: 100%; justify-content: center;}
    .hero-carousel-wrapper:not(.mentor-carousel-wrapper) { order: 5; margin-bottom: 0 !important; width: 100% !important; aspect-ratio: 4/5 !important; height: auto !important; margin-top: 0 !important;}

    .section-title { font-size: 28px; }
    .badge-title .section-title { font-size: 22px; color: #fff;}
    
    .glass-card { padding: 35px 20px; border-radius: 30px; overflow: hidden; }
    .expert-promo-card { padding: 30px 20px; border-radius: 25px; overflow: hidden; }
    .consultation-card { padding: 30px 20px; overflow: hidden; }
    
    .academic-timeline::before { left: 20px; }
    .timeline-item { padding-left: 55px; padding-top: 25px; padding-bottom: 25px;}
    .timeline-dot { left: 5px; top: 30px; }
    .app-card { padding: 20px; }
    .expert-col, .coop-card { padding: 20px; }
    .mentor-item { padding: 20px 15px; }

    .cert-grid { grid-template-columns: 1fr; }
    .media-card { flex-direction: column; align-items: flex-start; text-align: left; }

    /* ОГЭ и ЕГЭ Хиро адаптация */
    .exam-hero-banner { padding: 20px 10px 40px; }
    .exam-hero-title { font-size: 28px; }
    .exam-hero-subtitle { font-size: 16px; margin-bottom: 30px; }
    .exam-info-card { padding: 25px; border-radius: 20px; flex-direction: column; align-items: flex-start; text-align: left; }
    .eic-left-box { width: 100%; justify-content: flex-start; }
    .eic-date { font-size: 20px; }
    .eic-middle { width: 100%; padding: 0; }
    .eic-list li { font-size: 14px; justify-content: flex-start; text-align: left; }
    .eic-right { width: 100%; justify-content: flex-start; }
    .eic-right .action-btn-wrapper { margin: 0 auto; width: 100%; }
    
    .epc-top { flex-direction: column; text-align: center; gap: 20px; }
    .epc-name { font-size: 24px; }

    .audience-grid { flex-direction: column; }
    .clean-card { width: 100%; }

    .features-4col-grid { grid-template-columns: 1fr; gap: 20px; }
    .feature-col-card { padding: 25px; }

    .prog-title { font-size: 16px; padding: 20px; }
    .prog-content { padding: 0 20px 20px 20px; }
    .styled-program-list li { flex-direction: column; align-items: flex-start; text-align: left; }

    .format-glass-box { padding: 30px 20px; }
    .why-minimal-grid { flex-direction: column; gap: 20px; text-align: left; }
    .why-min-card { align-items: flex-start; }
    
    .format-conditions-grid { flex-direction: column; }
    .fc-item { width: 100%; }
    
    .consultation-list { padding: 0; }
    .new-price { font-size: 32px; }

    .reviews-carousel-container { padding: 0; }
    .review-card-dark { flex: 0 0 100%; padding: 30px 20px; }
    .slider-arrow { display: none; }
    .mobile-swipe-hint { display: flex; }

    .faq-title { font-size: 16px; padding: 15px 20px; }
    .faq-content { padding: 0 20px 20px 20px; }
}

/* --- ВЕРСТКА ХИРО БЛОКА: РУЧНОЕ ВЫРАВНИВАНИЕ (БЕЗ ЖЕСТКОГО GRID-СТРЕЙЧИНГА) --- */
@media (min-width: 993px) {
    .hero-island {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 60px !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
    }
    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        max-width: 600px !important;
        justify-content: flex-start !important;
    }
    .hero-greeting { margin-bottom: 25px !important; }
    .hero-desc { margin-bottom: 30px !important; }
    .expertise-unified-box { margin-bottom: 35px !important; }
    .hero-main-btn { align-self: flex-start !important; margin-bottom: 0 !important; }

    /* ВАЖНО: Размеры карусели и отступ сверху, чтобы она встала ровно от абзаца до конца плашки */
    .hero-carousel-wrapper:not(.mentor-carousel-wrapper) {
        width: 450px !important;        /* Фиксированная ширина */
        max-width: 450px !important;
        height: 560px !important;       /* Фиксированная высота (можно менять) */
        margin-top: 75px !important;    /* Отступ, чтобы карусель начиналась от текста "Педагог...", а не от заголовка (можно менять) */
        flex-shrink: 0 !important;
        padding: 0 !important;
        aspect-ratio: unset !important;
    }
    .hero-carousel-wrapper:not(.mentor-carousel-wrapper) .hero-carousel {
        height: 100% !important;
    }
}

.header-inner, .hero-island { max-width: 1200px !important; margin: 0 auto !important; width: 100% !important; box-sizing: border-box !important; }
@media (min-width: 769px) { .header-inner, .hero-island { padding-left: 40px !important; padding-right: 40px !important; } .hero-unified-section { padding-top: 70px !important; } }

/* СТИЛИ ДЛЯ ПЛАШЕК-СЕРТИФИКАТОВ В "ОБО МНЕ" */
.comp-tags {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}
.comp-tag {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 180, 216, 0.2);
    padding: 15px 20px;
    border-radius: 15px;
    font-size: 15px;
    color: #444;
    transition: all 0.3s ease;
}
.comp-tag:hover {
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transform: translateY(-2px);
}
.comp-tag strong {
    color: #1a1a1a;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
}
.comp-tag a {
    color: #00b4d8;
    text-decoration: underline;
    transition: color 0.3s ease;
}
.comp-tag a:hover {
    color: #0077b6;
}