* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-red: rgb(217, 30, 65);
    --color-deep-purple: rgb(128, 33, 191);
    --color-soft-purple: rgb(148, 84, 191);
    --color-orange: rgb(242, 68, 29);
    --bg-dark: #0f0f1a;
    --bg-card: rgba(30, 30, 46, 0.95);
    --bg-surface: #1a1a2e;
    --text-primary: #f0f0f0;
    --text-secondary: #c0c0c0;
    --border-radius-btn: 40px;
}

body {
    background: var(--bg-dark);
    font-family: "Nunito Sans", sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.4;
}

.temporary-info {
    font-family: "Unbounded", sans-serif;
    font-weight: 500;
    font-size: 1.25rem;
}

h1, h2, h3, h4 {
    font-family: "Unbounded", sans-serif;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.site-wrapper {
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeOut 0.6s ease-in-out 1s forwards;
    pointer-events: none;
}

.splash-logo {
    width: 350px;
    max-width: 80%;
    filter: drop-shadow(0 8px 20px rgba(128, 33, 191, 0.3));
}

@keyframes fadeOut {
    0% { opacity: 1; visibility: visible; }
    99% { opacity: 0; visibility: visible; }
    100% { opacity: 0; visibility: hidden; }
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.8rem 2rem 2rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.small-logo {
    height: 55px;
    width: auto;
    filter: brightness(1.2) drop-shadow(0 2px 8px rgba(148, 84, 191, 0.3));
}

.header h1 {
    font-family: "Unbounded", sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--color-soft-purple);
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(148, 84, 191, 0.3);
}

.tabs-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(20, 20, 35, 0.8);
    border: 2px solid rgba(148, 84, 191, 0.3);
    border-radius: var(--border-radius-btn);
    padding: 10px 24px;
    font-family: "Unbounded", sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.3;
    text-align: center;
    min-width: 190px;
    width: 250px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    min-height: 70px;
}

.tab-btn.active {
    color: var(--text-primary);
    background: rgba(128, 33, 191, 0.2);
}

.tab-btn:first-child.active {
    box-shadow: 0 4px 20px rgba(128, 33, 191, 0.3), 0 0 0 2px var(--color-deep-purple);
}

.tab-btn:last-child.active {
    box-shadow: 0 4px 20px rgba(242, 68, 29, 0.3), 0 0 0 2px var(--color-orange);
}

.tab-btn:hover {
    border-color: var(--color-soft-purple);
    background: rgba(148, 84, 191, 0.15);
    transform: translateY(-2px);
}

.date {
    font-size: larger;
}

.content-slider {
    width: 100%;
    margin: 16px 0 20px;
    border-radius: 32px;
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(135deg, var(--color-deep-purple), var(--color-red), 
                var(--color-orange), var(--color-soft-purple)) border-box;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    overflow: hidden;
}

.slide-panel {
    display: flex;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.panel-item {
    flex: 0 0 100%;
    width: 100%;
    padding: 2.5rem 2.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 28px;
}

.teachers-carousel {
    margin-bottom: 30px;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    min-height: 50vh;
    height: 50vh;
}

.carousel-item {
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
    cursor: pointer;
    position: relative;
    height: 50vh;
    width: auto;
}

.carousel-item img {
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.carousel-item:hover img {
    transform: scale(1.05);
}

.carousel-item:not(.active) {
    opacity: 0.5;
    filter: grayscale(80%);
    height: 30vh;
    border-color: rgba(148, 84, 191, 0.2);
}

.carousel-item:not(.active):hover {
    opacity: 0.8;
    filter: grayscale(40%);
    border-color: var(--color-soft-purple);
    height: 30vh;
}

.carousel-item.active {
    opacity: 1;
    filter: grayscale(0%);
    height: 50vh;
    border-color: var(--color-soft-purple);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    z-index: 10;
    cursor: default;
    animation: pulse 2s infinite;
}

.carousel-item.active:hover img {
    transform: scale(1);
}

.carousel-item.left.active {
    border-color: var(--color-soft-purple);
    box-shadow: 0 0 25px rgba(148, 84, 191, 0.5);
}

.carousel-item.center.active {
    border-color: var(--color-deep-purple);
    box-shadow: 0 20px 40px rgba(128, 33, 191, 0.5);
}

.carousel-item.right.active {
    border-color: var(--color-soft-purple);
    box-shadow: 0 0 25px rgba(148, 84, 191, 0.5);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(148, 84, 191, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(148, 84, 191, 0); }
    100% { box-shadow: 0 0 0 0 rgba(148, 84, 191, 0); }
}

.teacher-info {
    text-align: center;
    padding: 20px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
    min-height: 200px;
}

.teacher-name {
    font-family: "Unbounded", sans-serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--color-soft-purple);
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(148, 84, 191, 0.3);
}

.teacher-role {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-style: italic;
    border-bottom: 1px dashed rgba(148, 84, 191, 0.3);
    padding-bottom: 10px;
    display: inline-block;
}

.teacher-bio {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.teacher-bio strong {
    color: var(--color-soft-purple);
}

.place {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 28px;
}

.place-city {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: "Unbounded", sans-serif;
}

.place-venue {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-soft-purple);
    line-height: 1.3;
    font-family: "Unbounded", sans-serif;
    text-shadow: 0 2px 10px rgba(148, 84, 191, 0.3);
    position: relative;
    padding-left: 40px;
}

.place-venue::before {
    content: "📍";
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

.metro-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(242, 68, 29, 0.1);
    border: 1px solid rgba(242, 68, 29, 0.3);
    border-radius: 50px;
    padding: 6px 18px 6px 12px;
    gap: 8px;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-left: 28px;
}

.metro-circle {
    font-size: 1.3rem;
    filter: drop-shadow(0 0 5px rgba(242, 68, 29, 0.7));
}

.metro-station {
    font-weight: 600;
    color: var(--color-orange);
    font-size: 0.9rem;
    font-family: "Unbounded", sans-serif;
}

/* Стили для блока стоимости участия */
.price-info {
    margin: 30px 0 20px;
    padding: 25px;
    background: linear-gradient(145deg, rgba(30, 30, 46, 0.8), rgba(20, 20, 35, 0.9));
    border: 1px solid rgba(148, 84, 191, 0.3);
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.price-info h3 {
    font-family: "Unbounded", sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: var(--color-soft-purple);
    text-shadow: 0 2px 10px rgba(148, 84, 191, 0.3);
    position: relative;
    display: inline-block;
}

.price-info h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-soft-purple), var(--color-red));
    border-radius: 4px;
}

.price-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-item {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(148, 84, 191, 0.2);
}

.price-item:last-child {
    border-bottom: none;
}

.price-badge {
    font-family: "Unbounded", sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--color-red);
    background: rgba(217, 30, 65, 0.1);
    padding: 5px 15px;
    border-radius: 50px;
    border: 1px solid rgba(217, 30, 65, 0.3);
}

.price-name {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}

.price-value {
    font-family: "Unbounded", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-soft-purple);
    text-shadow: 0 2px 10px rgba(148, 84, 191, 0.3);
}

.price-note {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 15px 0 5px;
    font-style: italic;
}

.price-note strong {
    color: var(--color-red);
    font-weight: 600;
}

.team {
    margin: 30px 0;
}

.team h3 {
    font-family: "Unbounded", sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin: 24px 0 20px;
    color: var(--color-orange);
    text-shadow: 0 2px 10px rgba(242, 68, 29, 0.3);
    position: relative;
    display: inline-block;
}

.team h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-orange), var(--color-red));
    border-radius: 4px;
}

.team ul {
    list-style: none;
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.team li {
    padding: 12px 0 12px 30px;
    border-bottom: 1px dashed rgba(242, 68, 29, 0.2);
    position: relative;
}

.team li::before {
    content: '⚡';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-orange);
    font-size: 1.2rem;
}

.schedule {
    margin-top: 30px;
}

.schedule h3 {
    font-family: "Unbounded", sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 24px 0 20px;
    color: var(--color-red);
    text-shadow: 0 2px 10px rgba(217, 30, 65, 0.3);
    position: relative;
    display: inline-block;
}

.schedule h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-red), var(--color-orange));
    border-radius: 4px;
}

.schedule ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.schedule li {
    background: linear-gradient(145deg, rgba(30, 30, 46, 0.8), rgba(20, 20, 35, 0.9));
    border: 1px solid rgba(217, 30, 65, 0.2);
    border-radius: 20px;
    padding: 0;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    overflow: hidden;
}

.schedule li:hover {
    border-color: var(--color-red);
    box-shadow: 0 10px 25px rgba(217, 30, 65, 0.2);
}

.schedule-card {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px 25px;
    width: 100%;
}

.schedule li.expanded .schedule-card {
    border-bottom: 1px solid rgba(217, 30, 65, 0.2);
}

.time {
    font-weight: 700;
    font-size: 1.4rem;
    min-width: 160px;
    width: 200px;
    color: var(--color-red);
    font-family: "Unbounded", sans-serif;
    letter-spacing: -0.5px;
    position: relative;
    padding-left: 10px;
    flex-shrink: 0;
}

.time::before {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.7;
}

.event-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    flex: 1;
}

.teacher-highlight {
    color: var(--color-soft-purple);
    font-weight: 600;
}

.expand-icon {
    font-size: 1.5rem;
    color: var(--color-red);
    opacity: 0.5;
    transition: all 0.3s ease;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.schedule li:hover .expand-icon {
    opacity: 1;
}

.schedule li.expanded .expand-icon {
    transform: rotate(180deg);
    opacity: 1;
}

.event-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 20px 20px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.schedule li.expanded .event-description {
    max-height: 200px;
    padding: 20px 25px;
}

/* Стили для футера */
.site-footer {
    margin-top: 30px;
    padding: 30px 2rem 100px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(148, 84, 191, 0.2);
    width: 100%;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.public-docs {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-family: "Unbounded", sans-serif;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.footer-link:hover {
    color: var(--color-soft-purple);
    text-decoration: underline;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-ip {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: "Unbounded", sans-serif;
    font-weight: 300;
}

.footer-inn {
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.7;
    font-family: monospace;
}

.footer-telegram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(148, 84, 191, 0.1);
    border: 1px solid rgba(148, 84, 191, 0.3);
    border-radius: 50px;
    padding: 8px 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
    margin-top: 5px;
}

.footer-telegram:hover {
    background: rgba(148, 84, 191, 0.2);
    border-color: var(--color-soft-purple);
    transform: translateY(-2px);
}

.footer-telegram-icon {
    font-size: 1.3rem;
    color: #0088cc;
}

.footer-telegram-text {
    font-family: "Unbounded", sans-serif;
    font-size: 0.9rem;
}

.fixed-bottom-btn {
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 100;
}

.gradient-btn-link {
    text-decoration: none;
    display: flex;
    justify-content: center;
    width: min(70%, 700px);
    pointer-events: auto;
}

.gradient-btn {
    pointer-events: auto;
    width: 100%;
    background: linear-gradient(145deg, var(--color-deep-purple), var(--color-red), var(--color-orange));
    background-size: 200% 200%;
    border: none;
    border-radius: 90px;
    padding: 18px 28px;
    font-family: "Unbounded", sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: 2px;
    color: white;
    text-transform: uppercase;
    box-shadow: 0 15px 30px -5px rgba(0,0,0,0.5), 0 0 20px rgba(128,33,191,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: gradientShift 4s ease infinite alternate;
    border: 2px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    text-align: center;
}

.gradient-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px -5px rgba(0,0,0,0.6), 0 0 30px rgba(217,30,65,0.6);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}



@media (max-width: 680px) {
    .main-content {
        padding: 1rem 1rem 2rem;
    }
    
    .panel-item {
        padding: 1.8rem 1.5rem;
    }
    
    .carousel-item {
        height: 40vh;
    }
    
    .carousel-item.active {
        height: 40vh;
    }
    
    .carousel-item:not(.active) {
        height: 30vh;
    }
    
    .carousel-container {
        min-height: 240px;
        gap: 12px;
    }
    
    .gradient-btn {
        font-size: 1.2rem;
        padding: 16px 20px;
    }
    
    .teacher-name {
        font-size: 1.3rem;
    }
    
    .teacher-role {
        font-size: 1.1rem;
    }
    
    .teacher-bio {
        font-size: 1rem;
    }
    
    .schedule-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 18px;
    }
    
    .time {
        font-size: 1.3rem;
        min-width: auto;
        padding-left: 30px;
    }
    
    .event-title {
        font-size: 1.1rem;
    }
    
    .expand-icon {
        align-self: flex-end;
        margin-top: -30px;
    }
    
    .place-venue {
        font-size: 1.2rem;
    }
    
    .metro-badge {
        margin-left: 28px;
        padding: 5px 14px 5px 10px;
    }
    
    .price-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .site-footer {
        padding: 25px 1rem 90px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 23vh;
    }

    .carousel-item {
        height: 20vh;
    }
    
    .carousel-item.active {
        height: 20vh;
    }
    
    .carousel-item:not(.active) {
        height: 15vh;
    }
    
    .carousel-container {
        min-height: 200px;
        gap: 8px;
    }
    
    .place-venue {
        font-size: 1.1rem;
    }
    
    .time {
        font-size: 1.1rem;
    }
    
    .event-title {
        font-size: 1rem;
    }
    
    .gradient-btn-link {
        width: 90%;
    }
    
    .gradient-btn {
        font-size: 1.1rem;
        padding: 14px 18px;
    }
}

@media (max-width: 430px) {
    .gradient-btn-link {
        width: 92%;
    }
    
    .price-info h3 {
        font-size: 1.3rem;
    }
    
    .footer-link {
        font-size: 0.9rem;
    }
    
    .footer-ip,
    .footer-inn {
        font-size: 0.8rem;
    }
}

@media (max-width: 420px) {
    .tab-btn {
        min-width: 100%;
    }
    
    .tabs-row {
        flex-direction: column;
    }
    
    .carousel-container {
        gap: 5px;
    }
}

@media (max-width: 360px) {
    .gradient-btn {
        font-size: 1rem;
        padding: 12px 16px;
    }
    
    .price-badge {
        font-size: 0.9rem;
        padding: 3px 10px;
    }
    
    .price-name {
        font-size: 0.9rem;
    }
    
    .price-value {
        font-size: 1.2rem;
    }
}