/* Shared course landing optimizations */

.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    z-index: 1100;
}

.skip-link:focus,
.skip-link:focus-visible {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0.5rem 1rem;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: #fff;
    color: #1a1a2e !important;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-brand-logo {
    height: 72px;
    width: auto;
}

@media (min-width: 992px) {
    .navbar-brand-logo {
        height: 88px;
    }
}

.hero-section .hero-content {
    color: #fff;
    position: relative;
    z-index: 2;
}

.hero-section .hero-title {
    color: #fff;
}

.hero-section .hero-title .hero-accent {
    color: #fdcb6e;
}

.hero-section .hero-description {
    font-size: 1.15rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.95);
}

.hero-section .hero-description strong {
    color: #fff;
}

.hero-section .hero-description .hero-tags {
    color: rgba(255, 255, 255, 0.88);
}

.hero-section .hero-description .hero-project {
    color: #ffeaa7;
    font-weight: 600;
}

/* Card-based hero offer (microservices pattern) */
.hero-section .value-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    margin: 0.2rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
}

.hero-section .value-pill i {
    color: #ffc857;
}

.hero-section .price-hero-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 209, 102, 0.55);
    color: #16213e;
    position: relative;
    z-index: 2;
}

.hero-section .price-hero-card .price-value {
    font-size: clamp(2.25rem, 4vw, 2.85rem);
    font-weight: 800;
    line-height: 1.05;
    color: #e67e22;
}

.hero-section .price-hero-card .text-muted {
    color: #5c6b7a !important;
}

.hero-section .price-hero-card .text-success {
    color: #1e8a5a !important;
}

.hero-section .price-hero-card ul li {
    color: #243447;
}

.hero-section .java-hero-v2__offer {
    position: relative;
    z-index: 2;
}

@media (max-width: 991.98px) {
    .hero-section .price-hero-card {
        margin-top: 0.5rem;
        padding: 1.5rem 1.25rem;
    }
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
}

.hero-visual i {
    font-size: clamp(5rem, 12vw, 8rem);
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.2));
}

.module-card ul li {
    position: relative;
    padding-left: 1.35rem;
    margin-bottom: 0.45rem;
    line-height: 1.45;
}

.module-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.55;
}

.program-compare {
    border-left: 4px solid var(--course-accent, #00b894);
    padding: 1rem 1.25rem;
    background: rgba(0, 184, 148, 0.06);
    border-radius: 0 12px 12px 0;
    margin-bottom: 2rem;
}

.program-compare h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
    }
}

/* Иконка мессенджера MAX */
.messenger-max-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5em;
    height: 1.5em;
    padding: 0 0.2em;
    background: linear-gradient(135deg, #6b4eff 0%, #3d2db8 100%);
    color: #fff !important;
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 0.42em;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    border-radius: 5px;
    vertical-align: middle;
}

.site-header .messenger-max-icon {
    font-size: 0.38em;
    min-width: 1.65em;
    height: 1.65em;
}

/* Sticky Mobile CTA */
.sticky-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 16px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(100%);
    animation: slideUpCTA 0.5s ease-out 1s forwards;
}

@keyframes slideUpCTA {
    to { transform: translateY(0); }
}

.sticky-mobile-cta__max {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6b4eff 0%, #3d2db8 100%);
    color: #fff !important;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(91, 63, 255, 0.35);
    text-decoration: none;
    transition: transform 0.2s;
}

.sticky-mobile-cta__max:active {
    transform: scale(0.95);
}

.sticky-mobile-cta__max .messenger-max-icon {
    font-size: 0.72rem;
    min-width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.sticky-mobile-cta__btn {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 24px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

/* Add padding to body to prevent content from being hidden behind sticky CTA */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 72px;
    }
}
