* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #1a4d2e;
    --dark-green: #0f2818;
    --accent-green: #2d7a4f;
    --light-green: #4f9d69;
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --border-color: #2a2a2a;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(45, 122, 79, 0.4);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
}

#vk_community_messages {
    position: relative;
    z-index: 9999;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.header {
    background: var(--bg-dark);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
    transition: transform 0.3s ease, padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--light-green);
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--light-green), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--light-green);
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    cursor: pointer;
    padding: 10px;
    flex-shrink: 0;
    transition: background 0.25s ease, border-color 0.25s ease;
    z-index: 1002;
    position: relative;
}

.burger:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.25);
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
    transform-origin: center;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header.scrolled {
    padding: 10px 0;
    background: rgba(10,10,10,0.96);
    backdrop-filter: blur(14px);
    box-shadow: 0 2px 16px rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

@keyframes menu-drop {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
    .burger {
        display: flex !important;
        flex-direction: column !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .nav {
        flex-wrap: nowrap;
        gap: 8px;
        justify-content: space-between;
    }

    
    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 6px);
        left: 12px;
        right: 12px;
        background: rgba(16,16,16,0.98);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 18px;
        flex-direction: column;
        gap: 0;
        padding: 6px;
        z-index: 1000;
        box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    }

    .nav-menu.open {
        display: flex !important;
        animation: menu-drop 0.22s cubic-bezier(0.22,1,0.36,1) both;
    }

    .nav-menu li { width: 100%; }

    .nav-menu a {
        display: block;
        padding: 13px 16px;
        font-size: 15px;
        font-weight: 600;
        border-radius: 12px;
        color: var(--text-white);
        transition: background 0.2s ease, color 0.2s ease;
    }

    .nav-menu a:hover {
        background: rgba(45,122,79,0.15);
        color: var(--light-green);
    }

    
    .btn-consultation {
        display: inline-block;
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 12px;
        flex-shrink: 0;
    }

    
    .header.scrolled {
        padding: 8px 0;
        background: rgba(10,10,10,0.95);
        backdrop-filter: blur(14px);
        box-shadow: 0 2px 12px rgba(0,0,0,0.5);
        border-bottom-color: transparent;
    }

    .header.scrolled .logo,
    .header.scrolled .btn-consultation {
        display: none !important;
    }

    .header.scrolled .burger {
        display: flex !important;
    }

    .header.scrolled .nav {
        justify-content: flex-end;
    }

    .header.scrolled .nav-menu.open {
        display: flex !important;
    }

    
    .contact-two-col {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .contact-left,
    .contact-right {
        width: 100%;
        box-sizing: border-box;
    }

    .contact-right { order: 1; }
    .contact-left  { order: 2; }

    .floating-icon { display: none !important; }
    .cta-arrow { display: none !important; }
    .cta-hint  { display: none; }
    .cta-pulse { display: none; }

    .address-title { font-size: 16px; }

    .contact-orbit-block {
        padding: 14px 12px;
        gap: 14px;
    }

    .orbit-scene { width: 80px; height: 80px; flex-shrink: 0; }
    .orbit-ring-1 { width: 54px; height: 54px; }
    .orbit-ring-2 { width: 72px; height: 72px; }
    .orbit-ring-3 { width: 86px; height: 86px; }
    .orbit-center { width: 36px; height: 36px; font-size: 16px; }
}

.btn-account {
    background: var(--accent-green);
    color: var(--text-white);
    border: none;
    padding: 12px 24px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-account:hover {
    background: var(--light-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-consultation {
    background: var(--accent-green);
    color: var(--text-white);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-consultation:hover {
    background: var(--light-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hero-banner {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 50%, var(--accent-green) 100%);
    padding: 80px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(79, 157, 105, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(45, 122, 79, 0.2) 0%, transparent 50%);
}

.hero-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    animation: hero-content-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hero-content-in {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-size: 58px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 36px;
    line-height: 1.6;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text-white);
    color: var(--primary-green);
    padding: 16px 32px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.hero-address {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
    border-bottom: 1px dashed rgba(255,255,255,0.3);
    padding-bottom: 2px;
}

.hero-address:hover {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.7);
}

.hero-address i {
    color: var(--light-green);
    font-size: 13px;
}

.hero-cards-col {
    position: relative;
    height: 360px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    animation: hero-col-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

@keyframes hero-col-in {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

.hero-cards-track {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    animation: hcards-scroll 20s linear infinite;
    will-change: transform;
    position: relative;
    z-index: 1;
}

.hero-cards-track:hover { animation-play-state: paused; }

@keyframes hcards-scroll {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.hero-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    padding: 16px;
    backdrop-filter: blur(12px);
    cursor: default;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    justify-content: flex-start;
    height: 160px;
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%);
    pointer-events: none;
}

.hero-card:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.18);
}

.hcard-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.hcard-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.hcard-cat {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255,255,255,0.45);
}

.hcard-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.hcard-dur {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    gap: 4px;
}

.hcard-1, .hcard-2, .hcard-3,
.hcard-4, .hcard-5, .hcard-6 { border-left: none; }

.hero-cards-col::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(45,122,79,0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 900px) {
    .hero-two-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-content { text-align: center; }
    .hero-actions { align-items: center; }
    .hero-cards-col { height: 280px; }
    .hero-cards-track { grid-template-columns: 1fr 1fr; }
    .hero-card { height: 130px; }
    .hero-title { font-size: 40px; }
}

.hero-floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.hfi {
    position: absolute;
    color: rgba(255,255,255,0.18);
    animation: hfi-drift ease-in-out infinite;
}

.hfi-1 { left: 12%; top: 18%; animation-duration: 6s;  animation-delay: 0s;   font-size: 48px; }
.hfi-2 { left: 55%; top: 60%; animation-duration: 7s;  animation-delay: -2s;  font-size: 36px; }
.hfi-3 { left: 28%; top: 72%; animation-duration: 8s;  animation-delay: -1s;  font-size: 28px; }
.hfi-4 { left: 70%; top: 22%; animation-duration: 5s;  animation-delay: -3s;  font-size: 42px; }
.hfi-5 { left: 40%; top: 42%; animation-duration: 9s;  animation-delay: -4s;  font-size: 32px; }

@keyframes hfi-drift {
    0%   { transform: translateY(0)    rotate(0deg);  opacity: 0.12; }
    40%  { transform: translateY(-22px) rotate(8deg); opacity: 0.22; }
    70%  { transform: translateY(-10px) rotate(-5deg);opacity: 0.16; }
    100% { transform: translateY(0)    rotate(0deg);  opacity: 0.12; }
}

.filters {
    background: var(--bg-dark);
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.filter-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: var(--bg-card);
    color: var(--text-gray);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-green);
    color: var(--text-white);
    border-color: var(--accent-green);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--light-green);
    background: rgba(79, 157, 105, 0.1);
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 15px;
    border: 1px solid rgba(79, 157, 105, 0.2);
}

.section-label.light {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--text-white), var(--light-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-subtitle.light {
    color: rgba(255, 255, 255, 0.8);
}

.directions {
    padding: 80px 0 40px;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.directions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 122, 79, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.directions-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-green) var(--bg-card);
}

.directions-grid::-webkit-scrollbar {
    height: 8px;
}

.directions-grid::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 10px;
}

.directions-grid::-webkit-scrollbar-thumb {
    background: var(--accent-green);
    border-radius: 10px;
}

.direction-card {
    background: var(--bg-card);
    padding: 25px 30px;
    border-radius: 28px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 200px;
    text-align: center;
    flex-shrink: 0;
}

.direction-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--accent-green), var(--light-green));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.direction-card:hover::before,
.direction-card.active::before {
    opacity: 1;
}

.direction-card:hover,
.direction-card.active {
    border-color: transparent;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(45, 122, 79, 0.3);
}

.direction-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--accent-green), var(--light-green));
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--text-white);
    transition: all 0.3s ease;
}

.direction-card:hover .direction-icon,
.direction-card.active .direction-icon {
    transform: rotate(10deg) scale(1.1);
}

.direction-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-white);
}

.direction-count {
    font-size: 14px;
    color: var(--text-gray);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: 20px;
}

.bento-card {
    background: var(--bg-card);
    border-radius: 28px;
    border: 1px solid var(--border-color);
    padding: 32px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.35s ease;
    min-height: 260px;
}

.bento-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: var(--accent-green);
    box-shadow: 0 20px 50px rgba(45, 122, 79, 0.25);
}

.bento-card.bento-accent {
    background: linear-gradient(145deg, var(--primary-green), var(--dark-green));
    border-color: var(--accent-green);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 300px;
}

.bento-small {
    grid-column: span 1;
    min-height: 260px;
}

.bento-wide {
    grid-column: span 2;
    min-height: 260px;
}

.bento-tall {
    grid-column: span 1;
    grid-row: span 2;
    min-height: 540px;
}

.bento-large  { grid-column: 1 / 3; grid-row: 1; }
.bento-small:nth-child(2) { grid-column: 3; grid-row: 1; }
.bento-small:nth-child(3) { grid-column: 4; grid-row: 1; }
.bento-wide   { grid-column: 1 / 3; grid-row: 2; }
.bento-small:nth-child(5) { grid-column: 3; grid-row: 2; }
.bento-tall   { grid-column: 4; grid-row: 1 / 3; }

.bento-bg-icon {
    position: absolute;
    bottom: -15px;
    right: -10px;
    font-size: 130px;
    opacity: 0.05;
    color: var(--text-white);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    line-height: 1;
}

.bento-card:hover .bento-bg-icon,
.masonry-card:hover .bento-bg-icon {
    opacity: 0.09;
    transform: scale(1.08) rotate(-5deg);
}

.bento-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--light-green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.bento-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.3;
    margin: 0 0 12px;
    position: relative;
    z-index: 1;
}

.bento-tall .bento-title {
    font-size: 26px;
}

.bento-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0 0 auto;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.bento-footer {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.bento-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-gray);
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.bento-accent .bento-meta {
    border-top-color: rgba(255,255,255,0.1);
}

.bento-price {
    color: var(--light-green);
    font-weight: 800;
    font-size: 16px;
}

.bento-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-green), var(--light-green));
    color: var(--text-white);
    border: none;
    padding: 13px 20px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bento-btn:hover {
    box-shadow: 0 6px 20px rgba(45, 122, 79, 0.45);
    transform: translateY(-2px);
}

.bento-btn i {
    transition: transform 0.3s ease;
}

.bento-btn:hover i {
    transform: translateX(4px);
}

@media (max-width: 1100px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-large,
    .bento-wide,
    .bento-tall,
    .bento-small:nth-child(2),
    .bento-small:nth-child(3),
    .bento-small:nth-child(5) {
        grid-column: span 1;
        grid-row: span 1;
    }
    .bento-tall { min-height: 280px; }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-card { min-height: 220px; }
}

.professions {
    padding: 80px 0;
    background: var(--bg-dark);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 35px;
}

.course-card {
    background: var(--bg-card);
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.course-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-green);
    box-shadow: 0 20px 50px rgba(45, 122, 79, 0.3);
}

.course-card.premium {
    border: 1px solid var(--accent-green);
}

.course-card.premium:hover {
    box-shadow: 0 25px 60px rgba(45, 122, 79, 0.4);
}

.course-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent-green), var(--light-green));
    color: var(--text-white);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(45, 122, 79, 0.4);
}

.course-badge.special {
    background: linear-gradient(135deg, #6060ff, #8080ff);
}

.course-image {
    width: 100%;
    height: 260px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    position: relative;
    overflow: hidden;
}

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 40, 24, 0.7) 0%, rgba(26, 77, 46, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.course-card:hover .course-overlay {
    background: linear-gradient(135deg, rgba(15, 40, 24, 0.5) 0%, rgba(26, 77, 46, 0.3) 100%);
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.08);
}

.course-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 80px;
    opacity: 0.4;
}

.course-icon {
    font-size: 90px;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.course-card:hover .course-icon {
    transform: scale(1.1);
    color: rgba(255, 255, 255, 0.7);
}

.course-info {
    padding: 28px;
    position: relative;
    z-index: 2;
}

.course-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--light-green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.course-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.3;
    color: var(--text-white);
}

.course-description {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.course-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 14px;
}

.course-price {
    color: var(--light-green);
    font-size: 20px;
    font-weight: 800;
}

.btn-course-details {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-green), var(--light-green));
    color: var(--text-white);
    border: none;
    padding: 14px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-course-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 122, 79, 0.4);
}

.btn-course-details i {
    transition: transform 0.3s ease;
}

.btn-course-details:hover i {
    transform: translateX(4px);
}

.modal-tl {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 20px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.modal-tl-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.modal-tl-item:last-child { border-bottom: none; }
.modal-tl-item:hover { background: rgba(45,122,79,0.06); }

.modal-tl-num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-green), var(--light-green));
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.modal-tl-item > div strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-white);
    display: block;
    margin-bottom: 2px;
}

.modal-tl-item > div p {
    font-size: 13px;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.5;
}

.address-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.timeline {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-top: 60px;
    position: relative;
}

.tl-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tl-item.tl-visible {
    opacity: 1;
    transform: translateY(0);
}

.tl-item:nth-child(1) { transition-delay: 0s; }
.tl-item:nth-child(3) { transition-delay: 0.15s; }
.tl-item:nth-child(5) { transition-delay: 0.3s; }
.tl-item:nth-child(7) { transition-delay: 0.45s; }

.tl-num {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--light-green);
    opacity: 0.6;
}

.tl-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--accent-green), var(--light-green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(45, 122, 79, 0.35);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tl-item:hover .tl-icon {
    transform: scale(1.1) rotate(-5deg);
}

.tl-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px;
}

.tl-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
}

.tl-text {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

.tl-connector {
    flex-shrink: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-green), rgba(79,157,105,0.2));
    margin-top: 52px; 
    position: relative;
}

.tl-connector::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 8px rgba(45,122,79,0.6);
}

@media (max-width: 900px) {
    .timeline {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .tl-item {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        padding: 24px 0;
        border-bottom: 1px solid var(--border-color);
    }
    .tl-item:last-child { border-bottom: none; }
    .tl-connector { display: none; }
    .tl-icon { flex-shrink: 0; }
    .tl-num { display: none; }
}

.contact-map-block {
    width: 100%;
    margin-top: 16px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.contact-orbit-block {
    gap: 28px;
    padding: 28px 24px;
    margin-top: 4px;
}

.orbit-scene {
    position: relative;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-green), var(--light-green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 6px 20px rgba(45, 122, 79, 0.4);
    z-index: 2;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px dashed rgba(79, 157, 105, 0.25);
    transform: translate(-50%, -50%);
    animation: orbit-spin linear infinite;
}

.orbit-ring-1 { width: 72px;  height: 72px;  animation-duration: 5s; }
.orbit-ring-2 { width: 96px;  height: 96px;  animation-duration: 8s;  animation-direction: reverse; }
.orbit-ring-3 { width: 116px; height: 116px; animation-duration: 11s; }

@keyframes orbit-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-dot {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid rgba(79, 157, 105, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--light-green);
}

.orbit-ring-1 .orbit-dot { animation: orbit-counter 5s linear infinite; }
.orbit-ring-2 .orbit-dot { animation: orbit-counter 8s linear infinite reverse; }
.orbit-ring-3 .orbit-dot { animation: orbit-counter 11s linear infinite; }

@keyframes orbit-counter {
    from { transform: translateX(-50%) rotate(0deg); }
    to   { transform: translateX(-50%) rotate(-360deg); }
}

.orbit-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.orbit-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
}

.orbit-sub {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

.contact-address-card {
    background: transparent;
    border: none !important;
    border-radius: 0;
    padding: 20px 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.address-map-visual {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-green), var(--light-green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    box-shadow: 0 6px 18px rgba(45, 122, 79, 0.35);
}

.address-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cta-card {
    display: block;
    text-decoration: none;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.25s ease;
}

.cta-card:active {
    transform: scale(0.97) !important;
}

.phone-cta {
    background: linear-gradient(145deg, #0f2818, #1a4d2e);
    border: 1px solid rgba(79, 157, 105, 0.3);
    box-shadow: 0 4px 20px rgba(45, 122, 79, 0.15);
}

.phone-cta:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 16px 45px rgba(45, 122, 79, 0.35);
    border-color: var(--accent-green);
}

.vk-cta {
    background: linear-gradient(145deg, #0a1a2e, #0d2a4a);
    border: 1px solid rgba(0, 119, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 119, 255, 0.1);
}

.vk-cta:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 16px 45px rgba(0, 119, 255, 0.3);
    border-color: #0077FF;
}

.cta-card-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.phone-cta .cta-card-bg {
    background: radial-gradient(ellipse at 20% 50%, rgba(79, 157, 105, 0.18) 0%, transparent 60%);
}

.vk-cta .cta-card-bg {
    background: radial-gradient(ellipse at 20% 50%, rgba(0, 119, 255, 0.18) 0%, transparent 60%);
}

.cta-card:hover .cta-card-bg {
    opacity: 1;
}

.cta-card-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 26px 28px;
    position: relative;
    z-index: 1;
}

.cta-icon-wrap {
    position: relative;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0;
    animation: cta-pulse-ring 2.5s ease-out infinite;
}

.phone-cta .cta-pulse { color: var(--light-green); }
.vk-cta .cta-pulse { color: #5181B8; }

@keyframes cta-pulse-ring {
    0%   { transform: scale(0.85); opacity: 0.6; }
    60%  { transform: scale(1.15); opacity: 0; }
    100% { transform: scale(1.15); opacity: 0; }
}

.cta-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.phone-cta .cta-icon {
    background: linear-gradient(135deg, var(--accent-green), var(--light-green));
    box-shadow: 0 8px 24px rgba(45, 122, 79, 0.4);
}

.vk-cta .cta-icon {
    background: linear-gradient(135deg, #0077FF, #5181B8);
    box-shadow: 0 8px 24px rgba(0, 119, 255, 0.4);
}

.cta-card:hover .cta-icon {
    transform: scale(1.12) rotate(-6deg);
}

.cta-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.cta-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    color: #fff;
}

.cta-value {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.cta-hint {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.cta-arrow {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.3s ease;
    background: rgba(255,255,255,0.08);
}

.phone-cta:hover .cta-arrow {
    background: var(--accent-green);
    transform: translateX(4px);
}

.vk-cta:hover .cta-arrow {
    background: #0077FF;
    transform: translateX(4px);
}

.contact-section {
    padding: 80px 0;
    background: var(--bg-card);
}

.contact-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-left  { order: 1; }
.contact-right { order: 2; }

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method-card {
    background: linear-gradient(145deg, var(--bg-dark), rgba(20, 20, 20, 0.8));
    padding: 22px 24px;
    border-radius: 24px;
    border: 1px solid rgba(79, 157, 105, 0.15);
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.contact-method-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: var(--accent-green);
    box-shadow: 0 12px 35px rgba(45, 122, 79, 0.22);
}

.contact-right {
    position: static;
}

.address-icon {
    display: none; 
}

.address-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
}

.address-line {
    font-size: 16px;
    font-weight: 600;
    color: var(--light-green);
    margin: 0;
}

.address-org {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

.address-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: rgba(45, 122, 79, 0.15);
    border: 1px solid rgba(79, 157, 105, 0.3);
    border-radius: 14px;
    color: var(--light-green);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 8px;
}

.address-map-btn:hover {
    background: var(--accent-green);
    color: #fff;
    border-color: var(--accent-green);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .contact-right {
        position: static;
    }
}

.contact-method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-green), var(--light-green));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-method-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 157, 105, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-method-card:hover::before {
    opacity: 0.08;
}

.contact-method-card:hover::after {
    opacity: 1;
}

.contact-method-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-green);
    box-shadow: 0 15px 40px rgba(45, 122, 79, 0.25), 0 5px 15px rgba(0, 0, 0, 0.3);
}

.method-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--text-white);
    background: linear-gradient(135deg, var(--accent-green), var(--light-green));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 20px rgba(45, 122, 79, 0.3);
}

.contact-method-card:hover .method-icon {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 12px 30px rgba(45, 122, 79, 0.5);
}

.phone-card .method-icon {
    background: linear-gradient(135deg, #2d7a4f, #4f9d69);
}

.vk-card .method-icon {
    background: linear-gradient(135deg, #0077FF, #5181B8);
    box-shadow: 0 8px 20px rgba(0, 119, 255, 0.3);
}

.vk-card:hover .method-icon {
    box-shadow: 0 12px 30px rgba(0, 119, 255, 0.5);
}

.method-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    margin: 8px 0 0;
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
}

.method-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--light-green);
    margin: 0;
    position: relative;
    z-index: 1;
}

.vk-card .method-value {
    color: #5181B8;
}

.method-hint {
    font-size: 13px;
    color: var(--text-gray);
    position: relative;
    z-index: 1;
    opacity: 0.8;
}

.qr-card {
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
}

.qr-card::before {
    display: none;
}
}

.qr-animation-container {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qr-code-wrapper {
    width: 150px;
    height: 150px;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    padding: 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.qr-card:hover .qr-code-wrapper {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.qr-code-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 14px;
}

.qr-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #0077FF, #5181B8);
    border-radius: 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 10px;
}

.qr-placeholder i {
    font-size: 40px;
}

.floating-icon {
    position: absolute;
    font-size: 18px;
    color: var(--light-green);
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
    z-index: 3;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-icon i {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.qr-card:hover .floating-icon {
    opacity: 0.9;
    color: var(--accent-green);
}

.icon-1 { top: 10px;  left: 20px;  animation-delay: 0s;   }
.icon-2 { top: 20px;  right: 20px; animation-delay: 0.5s; }
.icon-3 { bottom: 20px; right: 20px; animation-delay: 1s; }
.icon-4 { bottom: 10px; left: 20px; animation-delay: 1.5s; }
.icon-5 { top: 50%;   left: 5px;   animation-delay: 2s;   }
.icon-6 { top: 50%;   right: 5px;  animation-delay: 2.5s; }

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.5;
    }
    25% {
        transform: translateY(-12px) rotate(5deg) scale(1.1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-8px) rotate(-5deg) scale(1.05);
        opacity: 0.9;
    }
    75% {
        transform: translateY(-15px) rotate(3deg) scale(1.08);
        opacity: 0.6;
    }
}

.contact-location-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 17px;
    color: var(--light-green);
    font-weight: 600;
    padding: 18px 28px;
    background: linear-gradient(145deg, var(--bg-dark), rgba(20, 20, 20, 0.8));
    border-radius: 20px;
    border: 1px solid rgba(79, 157, 105, 0.2);
    max-width: 480px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.contact-location-block:hover {
    border-color: var(--accent-green);
    box-shadow: 0 8px 20px rgba(45, 122, 79, 0.2);
    transform: translateY(-2px);
}

.contact-location-block i {
    font-size: 22px;
}

.advantages-section {
    background: var(--bg-dark);
}

.fw-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 380px;
    border-bottom: 1px solid var(--border-color);
}

.fw-row:last-child {
    border-bottom: none;
}

.fw-row-reverse {
    direction: rtl;
}

.fw-row-reverse > * {
    direction: ltr;
}

.fw-content {
    padding: 80px 80px 80px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    max-width: 700px;
}

.fw-row-reverse .fw-content {
    padding: 80px 80px 80px 80px;
}

.fw-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-white), var(--light-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.fw-text {
    font-size: 17px;
    color: var(--text-gray);
    line-height: 1.8;
    margin: 0;
}

.fw-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--bg-card), rgba(20,20,20,0.4));
    border-left: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.fw-row-reverse .fw-visual {
    border-left: none;
    border-right: 1px solid var(--border-color);
}

.fw-row-reverse .fw-visual * {
    direction: ltr;
}

.fw-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(45, 122, 79, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.fw-icon-box {
    width: 140px;
    height: 140px;
    border-radius: 36px;
    background: linear-gradient(135deg, var(--accent-green), var(--light-green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--text-white);
    box-shadow: 0 20px 60px rgba(45, 122, 79, 0.35);
    position: relative;
    z-index: 1;
}

.fw-photo {
    position: absolute;
    inset: 0;
    overflow: hidden;
    direction: ltr;
}

.fw-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
    direction: ltr;
    transform: none !important;
}

.fw-row:hover .fw-photo-img,
.fw-row-reverse:hover .fw-photo-img {
    transform: scale(1.04) !important;
}

.fw-photo-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    text-align: center;
    padding: 20px;
    z-index: 1;
    direction: ltr;
}

.fw-photo-placeholder i {
    font-size: 52px;
    opacity: 0.6;
}

.fw-photo-img[src]:not([src=""]) {
    position: relative;
    z-index: 2;
}

.fw-photo-img.loaded ~ .fw-photo-placeholder {
    display: none;
}

@media (max-width: 900px) {
    .fw-row,
    .fw-row-reverse {
        display: flex;
        flex-direction: column;
        direction: ltr;
        min-height: auto;
    }

    .fw-visual {
        height: 220px;
        border-left: none;
        border-right: none;
        border-top: 1px solid var(--border-color);
        order: 0;
    }

    .fw-row-reverse .fw-visual {
        border-right: none;
        order: 0;
    }

    .fw-content,
    .fw-row-reverse .fw-content {
        padding: 32px 24px;
        order: 1;
        max-width: 100%;
    }

    .fw-title {
        font-size: 28px;
    }
}

.what-do-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

.features-pyramid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.pyramid-row {
    display: flex;
    gap: 30px;
    justify-content: center;
    width: 100%;
}

.pyramid-row.row-1 {
    max-width: 380px;
}

.pyramid-row.row-2 {
    max-width: 820px;
}

.pyramid-row.row-3 {
    max-width: 820px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 28px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s;
    flex: 1;
    min-width: 280px;
}

.feature-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(45, 122, 79, 0.3);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--light-green);
}

.feature-icon i {
    font-size: 48px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-text {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.7;
}

.certificate-section {
    padding: 80px 0;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.certificate-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(45, 122, 79, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.certificate-block {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 70px;
    align-items: center;
    background: linear-gradient(145deg, var(--bg-card), rgba(20, 20, 20, 0.6));
    border: 1px solid rgba(79, 157, 105, 0.2);
    border-radius: 32px;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.certificate-block::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(79, 157, 105, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.certificate-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cert-icon-wrap {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(79, 157, 105, 0.3);
    animation: pulse-ring 2.5s ease-out infinite;
}

.cert-ring-1 {
    width: 160px;
    height: 160px;
    animation-delay: 0s;
}

.cert-ring-2 {
    width: 130px;
    height: 130px;
    animation-delay: 0.6s;
    border-color: rgba(79, 157, 105, 0.2);
}

@keyframes pulse-ring {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 0.4; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.cert-icon-inner {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green), var(--light-green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    color: var(--text-white);
    box-shadow: 0 15px 40px rgba(45, 122, 79, 0.4), 0 0 0 8px rgba(45, 122, 79, 0.1);
    position: relative;
    z-index: 1;
    animation: float-cert 4s ease-in-out infinite;
}

@keyframes float-cert {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.cert-badge-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--light-green);
    background: rgba(79, 157, 105, 0.1);
    border: 1px solid rgba(79, 157, 105, 0.25);
    padding: 8px 18px;
    border-radius: 30px;
}

.certificate-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cert-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-white), var(--light-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.cert-description {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
    margin: 0;
}

.cert-description strong {
    color: var(--text-white);
}

.cert-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 6px;
}

.cert-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    color: var(--text-gray);
}

.cert-feature i {
    color: var(--light-green);
    font-size: 18px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .certificate-block {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 30px;
        text-align: center;
    }

    .cert-features {
        align-items: flex-start;
        text-align: left;
    }

    .cert-title {
        font-size: 32px;
    }
}

.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
}

.stats-description {
    text-align: center;
    font-size: 18px;
    color: var(--text-white);
    opacity: 0.9;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.stat-card {
    text-align: center;
    padding: 20px;
}

.stat-icon {
    font-size: 48px;
    color: var(--light-green);
    margin-bottom: 15px;
}

.stat-icon i {
    font-size: 48px;
}

.stat-number {
    font-size: 56px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-white);
    opacity: 0.8;
}

.footer {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--dark-green) 100%);
    padding: 60px 0 0;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--light-green), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 16px;
    color: var(--text-white);
    font-weight: 600;
    margin: 0;
}

.footer-description {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
    max-width: 300px;
}

.footer-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 10px;
    color: var(--accent-green);
    transition: transform 0.3s;
}

.footer-links a:hover {
    color: var(--light-green);
    padding-left: 5px;
}

.footer-links a:hover i {
    transform: translateX(3px);
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-contact-item i {
    color: var(--accent-green);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.footer-contact-item:hover {
    color: var(--light-green);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-white);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(45, 122, 79, 0.3);
}

.vk-link {
    background: linear-gradient(135deg, #0077FF, #5181B8);
    border-color: #0077FF;
}

.vk-link:hover {
    box-shadow: 0 5px 15px rgba(0, 119, 255, 0.4);
}

.telegram-link {
    background: linear-gradient(135deg, #0088cc, #229ED9);
    border-color: #0088cc;
}

.telegram-link:hover {
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
}

.whatsapp-link {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-color: #25D366;
}

.whatsapp-link:hover {
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.footer-schedule {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-gray);
}

.footer-schedule i {
    color: var(--accent-green);
    font-size: 18px;
    margin-top: 2px;
}

.footer-schedule > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copy {
    color: var(--text-gray);
    font-size: 14px;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--light-green);
}

@media (max-width: 1200px) {
    .courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav {
        flex-direction: row;
        gap: 8px;
    }

    .nav-menu {
        gap: 0;
        font-size: 14px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .directions-grid {
        gap: 15px;
    }

    .direction-card {
        min-width: 180px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .course-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .contact-methods-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto 40px;
        gap: 20px;
    }

    .contact-method-card {
        padding: 30px 20px;
    }

    .method-icon {
        width: 65px;
        height: 65px;
        font-size: 28px;
    }

    .qr-animation-container {
        width: 160px;
        height: 160px;
    }

    .qr-code-wrapper {
        width: 160px;
        height: 160px;
        padding: 10px;
    }

    .floating-icon {
        display: none !important;
    }

    .contact-location-block {
        font-size: 15px;
        padding: 16px 22px;
    }

    .features-pyramid {
        gap: 20px;
    }

    .pyramid-row {
        flex-direction: column;
        align-items: center;
    }

    .pyramid-row.row-1,
    .pyramid-row.row-2,
    .pyramid-row.row-3 {
        max-width: 100%;
    }

    .feature-card {
        max-width: 400px;
        width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-brand {
        text-align: center;
        align-items: center;
    }

    .footer-description {
        max-width: 100%;
    }

    .footer-section {
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-contacts {
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 12px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    #vk_community_messages,
    #vk_community_messages iframe,
    #vk_community_messages > div {
        max-width: 100vw !important;
        right: 0 !important;
        left: auto !important;
        box-sizing: border-box !important;
    }
}

.courses-two-col {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.courses-why {
    position: sticky;
    top: 90px;
    background: linear-gradient(145deg, var(--bg-card), rgba(26,77,46,0.1));
    border: 1px solid rgba(79,157,105,0.2);
    border-radius: 28px;
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.courses-why-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-white);
    margin: 0;
    line-height: 1.3;
}

.courses-why-sub {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

.courses-why-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cw-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.cw-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--accent-green), var(--light-green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
}

.cw-item strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-white);
    display: block;
    margin-bottom: 3px;
}

.cw-item p {
    font-size: 13px;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .courses-two-col {
        grid-template-columns: 1fr;
    }
    .courses-why {
        position: static;
    }
}

.courses-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.course-card-sq {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px 22px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 260px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.course-card-sq:hover {
    border-color: var(--accent-green);
    box-shadow: 0 10px 35px rgba(45, 122, 79, 0.22);
    transform: translateY(-4px) scale(1.02);
}

.course-sq-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.course-card-sq:hover .course-sq-icon {
    transform: scale(1.1) rotate(-5deg);
}

.course-sq-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
    line-height: 1.3;
}

.course-sq-desc {
    font-size: 13px;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.6;
    flex: 1;
}

.course-sq-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.course-sq-dur {
    font-size: 12px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 900px) {
    .courses-list { grid-template-columns: repeat(2, 1fr); }
    .course-card-sq { min-height: 200px; }
}

@media (max-width: 560px) {
    .courses-list { grid-template-columns: 1fr; }
}

.modal-contact-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 40px 16px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
}

.modal-contact-bar .mcb-btn {
    display: none;
}

.mcb-qr {
    margin: 0;
    flex-shrink: 0;
}

.mcb-qr img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: #fff;
    padding: 5px;
    display: block;
}

.modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.mcb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex: 1;
    justify-content: center;
}

.mcb-phone {
    background: linear-gradient(135deg, var(--accent-green), var(--light-green));
    color: #fff;
}
.mcb-phone:hover { box-shadow: 0 4px 14px rgba(45,122,79,0.4); transform: translateY(-2px); }

.mcb-vk {
    background: linear-gradient(135deg, #0077FF, #5181B8);
    color: #fff;
}
.mcb-vk:hover { box-shadow: 0 4px 14px rgba(0,119,255,0.4); transform: translateY(-2px); }

.mcb-map {
    background: rgba(255,255,255,0.07);
    color: var(--text-white);
    border: 1px solid var(--border-color);
}
.mcb-map:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }

.course-sq-open-btn {
    margin-top: auto;
    width: 100%;
    background: linear-gradient(135deg, var(--accent-green), var(--light-green));
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.course-sq-open-btn:hover {
    box-shadow: 0 4px 14px rgba(45, 122, 79, 0.4);
    transform: translateY(-2px);
}

.course-card-sq .course-row-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--light-green);
    background: rgba(79, 157, 105, 0.1);
    border: 1px solid rgba(79, 157, 105, 0.2);
    border-radius: 20px;
    padding: 4px 10px;
    align-self: flex-start;
}

.course-row:nth-child(odd)  { margin-left: 0;    margin-right: 50px; }
.course-row:nth-child(even) { margin-left: 50px; margin-right: 0; }
.course-row:nth-child(3)    { margin-left: 25px; margin-right: 75px; }
.course-row:nth-child(5)    { margin-left: 75px; margin-right: 25px; }

.course-row:hover {
    border-color: var(--accent-green);
    box-shadow: 0 10px 35px rgba(45, 122, 79, 0.22);
    transform: translateY(-3px) scale(1.01);
}

.course-row-icon {
    width: 110px;
    height: 110px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.course-row:hover .course-row-icon {
    transform: scale(1.1) rotate(-5deg);
}

.course-row-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.course-row-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.course-row-cat {
    font-size: 11px;
    font-weight: 600;
    color: var(--light-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-row-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
    line-height: 1.3;
}

.course-row-desc {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.6;
}

.course-row-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
    min-width: 160px;
}

.course-row-duration {
    font-size: 12px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-row-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--light-green);
}

.course-row-btn {
    background: linear-gradient(135deg, var(--accent-green), var(--light-green));
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.course-row-btn:hover {
    box-shadow: 0 4px 15px rgba(45, 122, 79, 0.4);
    transform: translateY(-2px);
}

.course-row-btn i { transition: transform 0.3s ease; }
.course-row:hover .course-row-btn i { transform: translateX(3px); }

@media (max-width: 900px) {
    .courses-list { max-width: 100%; }
    .course-row:nth-child(n) { margin-left: 0; margin-right: 0; }
}

@media (max-width: 640px) {
    .course-row {
        grid-template-columns: 70px 1fr;
        grid-template-rows: auto auto;
        gap: 16px;
        padding: 20px;
    }
    .course-row-meta {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-width: 0;
    }
}

.fw-slide-left,
.fw-slide-right {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fw-slide-left  { transform: translateX(-60px); }
.fw-slide-right { transform: translateX(60px); }

.fw-slide-left.slide-visible,
.fw-slide-right.slide-visible {
    opacity: 1;
    transform: translateX(0);
}
}

.page-layout {
    display: flex;
    align-items: flex-start;
}

.sidebar-nav {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    border-right: 1px solid var(--border-color);
    background: var(--bg-dark);
    z-index: 100;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 30px 20px;
    height: 100%;
}

.sidebar-logo {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--light-green), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.sidebar-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-link:hover {
    color: var(--text-white);
    background: var(--bg-card);
    border-color: var(--border-color);
}

.sidebar-link.active {
    color: var(--text-white);
    background: linear-gradient(135deg, rgba(45,122,79,0.2), rgba(79,157,105,0.1));
    border-color: rgba(79, 157, 105, 0.3);
}

.sidebar-link.active i {
    color: var(--light-green);
}

.sidebar-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-green), var(--light-green));
    color: var(--text-white);
    text-decoration: none;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(45, 122, 79, 0.3);
}

.sidebar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 122, 79, 0.45);
}

.main-content {
    flex: 1;
    min-width: 0;
}

.masonry-grid {
    columns: 3;
    column-gap: 20px;
}

.masonry-card {
    break-inside: avoid;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    padding: 28px;
    margin-bottom: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.masonry-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-green);
    box-shadow: 0 16px 40px rgba(45, 122, 79, 0.22);
}

.masonry-card.mc-accent {
    background: linear-gradient(145deg, var(--primary-green), var(--dark-green));
    border-color: rgba(79, 157, 105, 0.4);
}

.masonry-card.mc-tall {
    padding-bottom: 48px;
}

@media (max-width: 1200px) {
    .masonry-grid { columns: 2; }
}

@media (max-width: 768px) {
    .page-layout { flex-direction: column; }

    .sidebar-nav {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .sidebar-inner {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 16px;
        gap: 8px;
    }

    .sidebar-logo { display: none; }

    .sidebar-menu {
        flex-direction: row;
        flex-wrap: wrap;
        flex: none;
    }

    .sidebar-cta { margin-top: 0; }

    .masonry-grid { columns: 1; }
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-card);
    margin: 5% auto;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 28px;
    width: 90%;
    max-width: 700px;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--text-gray);
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-dark);
    z-index: 10;
}

.close:hover {
    color: var(--text-white);
    background: var(--accent-green);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-white);
    padding: 40px 40px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-body {
    padding: 30px 40px 40px;
}

.modal-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.modal-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.modal-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-gray);
}

.modal-feature i {
    color: var(--light-green);
    font-size: 18px;
}

.modal-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--text-white);
    margin-bottom: 15px;
    padding: 12px 20px;
    background: var(--bg-dark);
    border-radius: 14px;
    border-left: 3px solid var(--accent-green);
}

.modal-info i {
    color: var(--light-green);
    font-size: 20px;
}

.btn-enroll {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-green), var(--light-green));
    color: var(--text-white);
    border: none;
    padding: 18px;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(45, 122, 79, 0.3);
}

.btn-enroll:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 122, 79, 0.5);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-title {
        font-size: 24px;
        padding: 30px 25px 15px;
    }

    .modal-body {
        padding: 20px 25px 30px;
    }

    .modal-features {
        grid-template-columns: 1fr;
    }
}
