/**
 * WinClass Arena — Public Pages Styles
 * Ультрасовременный дизайн
 */

/* ==========================================
   ANIMATED BACKGROUND
========================================== */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(70, 210, 210, 0.3), rgba(77, 194, 71, 0.2));
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(153, 102, 204, 0.25), rgba(70, 210, 210, 0.2));
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.15));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

/* ==========================================
   PUBLIC HEADER
========================================== */
.pub-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pub-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pub-header.scrolled::before {
    opacity: 1;
}

.pub-header.scrolled {
    height: 70px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.pub-header.hidden {
    transform: translateY(-100%);
}

.pub-header-inner {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Logo */
/* Logo */
.pub-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.pub-logo-icon {
    position: relative;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--turquoise), var(--green), var(--turquoise));
    background-size: 200% 200%;
    animation: logoGradient 3s ease infinite;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(70, 210, 210, 0.4);
    transition: transform 0.3s ease;
}

.pub-logo:hover .pub-logo-icon {
    transform: scale(1.05) rotate(-5deg);
}

.logo-glow {
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, var(--turquoise), var(--green), var(--turquoise));
    background-size: 200% 200%;
    animation: logoGradient 3s ease infinite;
    border-radius: inherit;
    filter: blur(15px);
    opacity: 0.4;
    z-index: -1;
}

.pub-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.pub-logo-arena {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--turquoise), var(--green), var(--turquoise));
    background-size: 200% 200%;
    animation: logoGradient 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
}

.pub-logo-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mid);
    letter-spacing: 0.5px;
}

/* Анимация градиента */
@keyframes logoGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Для footer (на тёмном фоне) */
.pub-footer-logo .pub-logo-name {
    color: rgba(255,255,255,0.6);
}

/* Navigation */
.pub-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pub-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-mid);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.pub-nav-link i {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.pub-nav-link:hover {
    color: var(--turquoise);
    background: rgba(70, 210, 210, 0.08);
}

.pub-nav-link:hover i {
    opacity: 1;
}

.pub-nav-link.active {
    color: var(--turquoise);
    background: rgba(70, 210, 210, 0.12);
}

.pub-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--grad-brand);
    border-radius: 3px;
}

/* Auth Buttons */
.pub-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
}

.pub-btn i {
    width: 18px;
    height: 18px;
}

.pub-btn-ghost {
    background: transparent;
    color: var(--text-dark);
}

.pub-btn-ghost:hover {
    background: rgba(70, 210, 210, 0.1);
    color: var(--turquoise);
}

.pub-btn-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: var(--text-dark);
    border: 2px solid rgba(70, 210, 210, 0.2);
}

.pub-btn-glass:hover {
    border-color: var(--turquoise);
    box-shadow: 0 4px 20px rgba(70, 210, 210, 0.2);
    transform: translateY(-2px);
}

.pub-btn-glow {
    background: var(--grad-brand);
    color: white;
    box-shadow: 0 4px 20px rgba(70, 210, 210, 0.4);
}

.pub-btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(70, 210, 210, 0.5);
}

.pub-btn-block {
    width: 100%;
}

/* Burger */
.pub-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pub-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.pub-burger:hover {
    background: rgba(70, 210, 210, 0.1);
}

/* ==========================================
   MOBILE MENU
========================================== */
.pub-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 90vw;
    height: 100vh;
    background: white;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.1);
}

.pub-mobile-menu.open {
    transform: translateX(0);
}

.pub-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.pub-mobile-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.pub-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pub-mobile-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-mid);
    transition: all 0.3s ease;
}

.pub-mobile-close:hover {
    background: rgba(255, 107, 107, 0.1);
    color: var(--red);
}

.pub-mobile-close i {
    width: 24px;
    height: 24px;
}

.pub-mobile-nav {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

.pub-mobile-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    border-radius: 14px;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.pub-mobile-link i {
    width: 22px;
    height: 22px;
    color: var(--text-light);
}

.pub-mobile-link .arrow {
    margin-left: auto;
    width: 18px;
    height: 18px;
    opacity: 0.3;
}

.pub-mobile-link:hover,
.pub-mobile-link.active {
    background: rgba(70, 210, 210, 0.1);
    color: var(--turquoise);
}

.pub-mobile-link:hover i,
.pub-mobile-link.active i {
    color: var(--turquoise);
}

.pub-mobile-auth {
    padding: 20px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.menu-open {
    overflow: hidden;
}

/* ==========================================
   MAIN CONTENT
========================================== */
.pub-main {
    min-height: 100vh;
    padding-top: 80px;
}

.pub-page {
    background: var(--bg-body);
}

/* ==========================================
   PUBLIC FOOTER
========================================== */
.pub-footer {
    background: linear-gradient(180deg, var(--bg-body) 0%, #e8f4f8 100%);
    border-top: 1px solid rgba(70, 210, 210, 0.1);
    margin-top: auto;
}

.pub-footer-top {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 32px 40px;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
}

.pub-footer-brand {
    max-width: 360px;
}

.pub-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.pub-footer-logo .pub-logo-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
}

.pub-footer-desc {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 24px;
}

.pub-footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    color: var(--text-mid);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: var(--grad-brand);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(70, 210, 210, 0.3);
}

.pub-footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.pub-footer-col h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pub-footer-col a,
.pub-footer-col span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-mid);
    padding: 8px 0;
    transition: all 0.3s ease;
}

.pub-footer-col a:hover {
    color: var(--turquoise);
    transform: translateX(5px);
}

.pub-footer-col i {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.footer-location {
    cursor: default;
}

.pub-footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.pub-footer-copy {
    font-size: 13px;
    color: var(--text-light);
}

.pub-footer-legal {
    display: flex;
    gap: 24px;
}

.pub-footer-legal a {
    font-size: 13px;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.pub-footer-legal a:hover {
    color: var(--turquoise);
}

/* ==========================================
   HERO SECTION
========================================== */
.pub-hero {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 60px 32px;
    overflow: hidden;
}

.pub-hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.pub-hero-content {
    max-width: 600px;
}

.pub-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(70, 210, 210, 0.15), rgba(77, 194, 71, 0.1));
    border: 1px solid rgba(70, 210, 210, 0.3);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease-out;
}

.pub-hero-badge .badge-icon {
    font-size: 18px;
}

.pub-hero-badge .gold {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.pub-hero-title {
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.pub-hero-title .gradient {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pub-hero-text {
    font-size: 18px;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.pub-hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.pub-hero-stat {
    text-align: center;
}

.pub-hero-stat-value {
    font-size: 42px;
    font-weight: 900;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.pub-hero-stat-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.pub-hero-actions {
    display: flex;
    gap: 16px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.pub-hero-actions .pub-btn {
    padding: 16px 32px;
    font-size: 15px;
}

/* Hero Visual */
.pub-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.hero-visual-orb {
    position: relative;
    width: 420px;
    height: 420px;
}

.hero-visual-orb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(70, 210, 210, 0.2), rgba(77, 194, 71, 0.15));
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.hero-visual-orb::after {
    content: '';
    position: absolute;
    inset: 30px;
    background: linear-gradient(135deg, rgba(70, 210, 210, 0.3), rgba(153, 102, 204, 0.2));
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite 1s;
}

.hero-central-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: var(--grad-brand);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
    box-shadow: 0 20px 60px rgba(70, 210, 210, 0.4);
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.hero-floating-item {
    position: absolute;
    background: white;
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: float 5s ease-in-out infinite;
    z-index: 3;
}

.hero-floating-item.item-1 {
    top: 10%;
    right: 0;
    animation-delay: 0s;
}

.hero-floating-item.item-2 {
    bottom: 20%;
    left: -20px;
    animation-delay: -1.5s;
}

.hero-floating-item.item-3 {
    top: 60%;
    right: -10px;
    animation-delay: -3s;
}

.hero-floating-item.item-4 {
    top: 30%;
    left: 0;
    animation-delay: -2s;
}

.floating-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.floating-icon.purple { background: rgba(153, 102, 204, 0.15); }
.floating-icon.green { background: rgba(77, 194, 71, 0.15); }
.floating-icon.gold { background: rgba(255, 215, 0, 0.15); }
.floating-icon.turquoise { background: rgba(70, 210, 210, 0.15); }

.floating-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

/* ==========================================
   SECTION STYLES
========================================== */
.pub-section {
    padding: 80px 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.pub-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.pub-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(70, 210, 210, 0.1);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: var(--turquoise);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.pub-section-title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.pub-section-subtitle {
    font-size: 17px;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ==========================================
   HOW IT WORKS
========================================== */
.how-it-works {
    background: linear-gradient(180deg, white 0%, var(--bg-body) 100%);
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.how-card {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.how-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--grad-brand);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.how-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(70, 210, 210, 0.15);
}

.how-card:hover::before {
    transform: scaleX(1);
}

.how-number {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: var(--bg-body);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--turquoise);
}

.how-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(70, 210, 210, 0.1), rgba(77, 194, 71, 0.08));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    transition: transform 0.4s ease;
}

.how-card:hover .how-icon {
    transform: scale(1.1) rotate(-5deg);
}

.how-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.how-text {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ==========================================
   OLYMPIAD CARDS
========================================== */
.olympiads-section {
    background: var(--bg-body);
}

.olympiads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.olympiad-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.olympiad-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(70, 210, 210, 0.12);
}

.olympiad-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--grad-hero);
    overflow: hidden;
}

.olympiad-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.olympiad-card:hover .olympiad-card-image img {
    transform: scale(1.08);
}

.olympiad-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: linear-gradient(135deg, rgba(70, 210, 210, 0.15), rgba(153, 102, 204, 0.1));
}

.olympiad-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.olympiad-card-badge.live {
    background: var(--green);
    color: white;
}

.olympiad-card-badge.live::before {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.olympiad-card-badge.soon {
    color: var(--purple);
}

.olympiad-card-participants {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
}

.olympiad-card-participants i {
    width: 14px;
    height: 14px;
}

.olympiad-card-body {
    padding: 24px;
}

.olympiad-card-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.olympiad-card-organizer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-mid);
    margin-bottom: 16px;
}

.olympiad-card-organizer i {
    width: 16px;
    height: 16px;
    color: var(--turquoise);
}

.olympiad-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.olympiad-card-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-mid);
}

.olympiad-card-meta-row i {
    width: 16px;
    height: 16px;
    color: var(--turquoise);
    flex-shrink: 0;
}

.olympiad-card-footer {
    padding: 0 24px 24px;
}

.olympiad-card-btn {
    width: 100%;
    padding: 14px;
    background: var(--bg-body);
    border: 2px solid transparent;
    border-radius: 14px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.olympiad-card-btn i {
    width: 18px;
    height: 18px;
}

.olympiad-card-btn:hover {
    background: rgba(70, 210, 210, 0.1);
    border-color: var(--turquoise);
    color: var(--turquoise);
}

.view-all-btn {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

/* ==========================================
   FEATURES
========================================== */
.features-section {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px 24px;
    background: var(--bg-body);
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: linear-gradient(135deg, rgba(70, 210, 210, 0.08), rgba(77, 194, 71, 0.05));
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: white;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.feature-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.feature-text {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.6;
}

/* ==========================================
   CTA SECTION
========================================== */
.cta-section {
    padding: 100px 32px;
    background: linear-gradient(135deg, rgba(70, 210, 210, 0.08), rgba(153, 102, 204, 0.06));
}

.cta-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 18px;
    color: var(--text-mid);
    margin-bottom: 36px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-buttons .pub-btn {
    padding: 18px 36px;
    font-size: 16px;
}

/* ==========================================
   EMPTY STATE
========================================== */
.pub-empty {
    text-align: center;
    padding: 80px 32px;
}

.pub-empty-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.pub-empty-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.pub-empty-text {
    font-size: 16px;
    color: var(--text-mid);
}

/* ==========================================
   ANIMATIONS
========================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 1200px) {
    .olympiads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .pub-nav {
        display: none;
    }
    
    .pub-burger {
        display: flex;
    }
    
    .pub-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .pub-hero-content {
        max-width: 100%;
    }
    
    .pub-hero-stats {
        justify-content: center;
    }
    
    .pub-hero-actions {
        justify-content: center;
    }
    
    .pub-hero-visual {
        display: none;
    }
    
    .how-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .pub-header-inner {
        padding: 0 20px;
    }
    
    .pub-hero {
        padding: 40px 20px;
        min-height: auto;
    }
    
    .pub-section {
        padding: 60px 20px;
    }
    
    .olympiads-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pub-footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 20px 30px;
    }
    
    .pub-footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .pub-footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 20px;
    }
    
    .pub-auth {
        display: none;
    }
}

@media (max-width: 480px) {
    .pub-hero-badge {
        font-size: 12px;
        padding: 8px 14px;
    }
    
    .pub-hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .pub-hero-actions {
        flex-direction: column;
    }
    
    .pub-hero-actions .pub-btn {
        width: 100%;
    }
    
    .pub-footer-links {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .pub-btn {
        width: 100%;
    }
}