* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0c12;
    font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
}

/* ========== РЕКЛАМНЫЙ ЩИТ ========== */
.top-banner {
    width: 100%;
    background: #0a0c12;
    padding: 12px 20px 0 20px;
}

.banner-container {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 24px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    border-radius: 24px;
}

.banner-slide.active {
    opacity: 1;
    position: relative;
}

.banner-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    border-radius: 24px;
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.banner-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 200, 0.5);
    border-radius: 50%;
    transition: 0.2s;
    cursor: pointer;
}

.banner-dot.active-dot {
    background: #ffb347;
    width: 24px;
    border-radius: 4px;
}

/* ========== ОСНОВНОЙ КОНТЕНТ ========== */
.main-content {
    padding-top: 0;
}

/* ========== ТЕКСТОВЫЙ БЛОК MIDOMI TEAM ========== */
.midomi-text-block {
    width: calc(100% - 40px);
    margin: 40px auto 60px auto;
    padding: 60px 20px;
    background: transparent;
    border-radius: 32px;
}

.midomi-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffdd99, #ffb347, #ff8c1a);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-align: left;
    padding-left: 5%;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.midomi-subtitle {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 500;
    background: linear-gradient(135deg, #e0d6b0, #c4b87a);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-align: right;
    padding-right: 5%;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.2s;
}

.midomi-text-block.active .midomi-title {
    opacity: 1;
    transform: translateX(0);
}

.midomi-text-block.active .midomi-subtitle {
    opacity: 1;
    transform: translateX(0);
}

/* ========== БЛОК "НАШИ ПРОЕКТЫ" ========== */
.projects-headline-block {
    width: calc(100% - 40px);
    margin: 0 auto 40px auto;
    text-align: center;
    padding: 20px 20px;
}

.projects-headline {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 700;
    background: linear-gradient(135deg, #c4b87a, #ffcc88, #ffaa55);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.projects-headline-block.active .projects-headline {
    opacity: 1;
    transform: translateY(0);
}

/* ========== БЛОК 1: MINECRAFT СЕРВЕР ========== */
.minecraft-server-block {
    position: relative;
    width: 100%;
    height: 850px;
    background-image: url('server.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    overflow: hidden;
}

.minecraft-server-block::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

.server-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 50px 0 60px 0;
}

.server-text {
    max-width: 60%;
    padding-left: 80px;
    padding-top: 60px;
}

.server-title-small {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #ffeaac;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.server-description-main {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.5;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
    font-family: 'Poppins', sans-serif;
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.2s;
}

.server-button-area {
    display: flex;
    justify-content: flex-end;
    padding-right: 80px;
    padding-bottom: 60px;
}

.server-more-btn {
    background: linear-gradient(95deg, #ffb347, #ff8c1a);
    border: none;
    padding: 16px 42px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    color: #0a0c12;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.server-more-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 180, 71, 0.6);
    background: linear-gradient(95deg, #ffc266, #ffa040);
}

.minecraft-server-block.active .server-title-small {
    opacity: 1;
    transform: translateX(0);
}

.minecraft-server-block.active .server-description-main {
    opacity: 1;
    transform: translateX(0);
}

.minecraft-server-block.active .server-more-btn {
    opacity: 1;
    transform: translateX(0);
}

/* ========== БЛОК 2: STAR WHEEL ========== */
.starwheel-block {
    position: relative;
    width: 100%;
    height: 850px;
    background-image: url('game.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    overflow: hidden;
}

.starwheel-block::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 100, 200, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

.starwheel-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 50px 0 60px 0;
}

.starwheel-text {
    max-width: 60%;
    padding-left: 80px;
    padding-top: 60px;
}

.starwheel-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #88ccff, #3399ff, #0066cc);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 2px 15px rgba(0, 100, 200, 0.3);
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.starwheel-description {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 500;
    color: #aaddff;
    line-height: 1.5;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    font-family: 'Poppins', sans-serif;
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.2s;
}

.starwheel-button-area {
    display: flex;
    justify-content: flex-end;
    padding-right: 80px;
    padding-bottom: 60px;
}

.starwheel-btn {
    background: linear-gradient(95deg, #3399ff, #0066cc);
    border: none;
    padding: 16px 42px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.starwheel-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(51, 153, 255, 0.6);
    background: linear-gradient(95deg, #55bbff, #2288dd);
}

.starwheel-block.active .starwheel-title {
    opacity: 1;
    transform: translateX(0);
}

.starwheel-block.active .starwheel-description {
    opacity: 1;
    transform: translateX(0);
}

.starwheel-block.active .starwheel-btn {
    opacity: 1;
    transform: translateX(0);
}

/* ========== БЛОК 3: TELEGRAM ПРОЕКТЫ ========== */
.telegram-block {
    position: relative;
    width: 100%;
    height: 850px;
    background-image: url('tg_projects.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    overflow: hidden;
}

.telegram-block::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 150, 200, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
    pointer-events: none;
}

.telegram-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 50px 0 60px 0;
}

.telegram-text {
    max-width: 60%;
    padding-left: 80px;
    padding-top: 60px;
}

.telegram-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #66ddff, #22bbee, #0099cc);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 2px 15px rgba(0, 150, 200, 0.3);
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.telegram-description {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 500;
    color: #000000;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
    font-family: 'Poppins', sans-serif;
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.2s;
}

.telegram-button-area {
    display: flex;
    justify-content: flex-end;
    padding-right: 80px;
    padding-bottom: 60px;
}

.telegram-btn {
    background: linear-gradient(95deg, #22bbee, #0099cc);
    border: none;
    padding: 16px 42px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.telegram-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(34, 187, 238, 0.6);
    background: linear-gradient(95deg, #44ddff, #22bbee);
}

.telegram-block.active .telegram-title {
    opacity: 1;
    transform: translateX(0);
}

.telegram-block.active .telegram-description {
    opacity: 1;
    transform: translateX(0);
}

.telegram-block.active .telegram-btn {
    opacity: 1;
    transform: translateX(0);
}

/* ========== ПОДВАЛ (FOOTER) ========== */
.site-footer {
    width: 100%;
    background: linear-gradient(135deg, #0a0c12, #0f121a, #0a0c12);
    padding: 40px 20px;
    margin-top: 0;
    border-top: 1px solid rgba(255, 180, 71, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    text-align: center;
}

.footer-text {
    font-size: 1rem;
    font-weight: 500;
    color: #c4b87a;
    letter-spacing: 1px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    font-family: 'Poppins', sans-serif;
}

.footer-contacts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-email {
    font-size: 0.95rem;
    font-weight: 500;
    color: #88ccff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    padding: 8px 16px;
    background: rgba(136, 204, 255, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(136, 204, 255, 0.3);
}

.footer-email:hover {
    color: #ffffff;
    background: rgba(136, 204, 255, 0.2);
    border-color: #88ccff;
    transform: translateY(-2px);
}

.telegram-link {
    display: inline-flex;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.telegram-link:hover {
    transform: scale(1.1);
}

.telegram-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: filter 0.3s ease;
}

.telegram-icon:hover {
    filter: drop-shadow(0 6px 12px rgba(0, 150, 200, 0.5));
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.footer-copyright p {
    font-size: 0.75rem;
    color: #6a6f7a;
    font-family: 'Poppins', sans-serif;
}

.footer-disclaimer {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* ========== АДАПТАЦИЯ КАРТИНОК НА МОБИЛЬНЫХ ========== */

/* Планшеты и телефоны (до 1024px) */
@media (max-width: 1024px) {
    .minecraft-server-block,
    .starwheel-block,
    .telegram-block {
        height: 700px;
    }
    
    .server-text,
    .starwheel-text,
    .telegram-text {
        padding-left: 50px;
        padding-top: 40px;
        max-width: 70%;
    }
    
    .server-button-area,
    .starwheel-button-area,
    .telegram-button-area {
        padding-right: 50px;
        padding-bottom: 40px;
    }
    
    .server-title-small,
    .starwheel-title,
    .telegram-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .server-description-main,
    .starwheel-description,
    .telegram-description {
        font-size: 1.3rem;
    }
    
    .server-more-btn,
    .starwheel-btn,
    .telegram-btn {
        padding: 12px 32px;
        font-size: 1rem;
    }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    /* Баннер */
    .top-banner {
        padding: 8px 12px 0 12px;
    }
    
    .banner-container {
        height: 100px;
        border-radius: 16px;
    }
    
    .banner-slide {
        border-radius: 16px;
    }
    
    .banner-slide::before {
        border-radius: 16px;
    }
    
    .banner-dots {
        gap: 8px;
        margin-top: 8px;
    }
    
    .banner-dot {
        width: 6px;
        height: 6px;
    }
    
    .banner-dot.active-dot {
        width: 16px;
    }
    
    /* Текстовые блоки */
    .midomi-text-block {
        width: calc(100% - 24px);
        margin: 20px auto 30px auto;
        padding: 30px 15px;
    }
    
    .midomi-title {
        padding-left: 2%;
    }
    
    .midomi-subtitle {
        padding-right: 2%;
    }
    
    .projects-headline-block {
        width: calc(100% - 24px);
        margin: 0 auto 30px auto;
        padding: 15px;
    }
    
    /* Полноэкранные блоки — адаптация картинок */
    .minecraft-server-block,
    .starwheel-block,
    .telegram-block {
        height: 600px;
        background-attachment: scroll; /* убираем фиксацию на телефонах */
        background-position: center top; /* картинка прижимается к верху */
        background-size: cover;
    }
    
    /* Усиливаем виньетку на мобилках, чтобы текст читался лучше */
    .minecraft-server-block::before,
    .starwheel-block::before,
    .telegram-block::before {
        background: radial-gradient(circle at center, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.85) 100%);
    }
    
    .server-text,
    .starwheel-text,
    .telegram-text {
        max-width: 85%;
        padding-left: 25px;
        padding-top: 25px;
    }
    
    .server-description-main,
    .starwheel-description,
    .telegram-description {
        font-size: 1rem;
    }
    
    .server-title-small,
    .starwheel-title,
    .telegram-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .server-button-area,
    .starwheel-button-area,
    .telegram-button-area {
        padding-right: 25px;
        padding-bottom: 30px;
    }
    
    .server-more-btn,
    .starwheel-btn,
    .telegram-btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    
    /* Подвал */
    .site-footer {
        padding: 30px 15px;
    }
    
    .footer-text {
        font-size: 0.85rem;
    }
    
    .footer-email {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .telegram-icon {
        width: 35px;
        height: 35px;
    }
    
    .footer-copyright p {
        font-size: 0.65rem;
    }
    
    .footer-contacts {
        gap: 20px;
    }
}

/* Очень маленькие телефоны (до 480px) */
@media (max-width: 480px) {
    .banner-container {
        height: 80px;
    }
    
    .minecraft-server-block,
    .starwheel-block,
    .telegram-block {
        height: 500px;
        background-position: center 20%; /* чуть ниже, чтобы важная часть картинки была видна */
    }
    
    /* Ещё сильнее затемняем фон на маленьких экранах */
    .minecraft-server-block::before,
    .starwheel-block::before,
    .telegram-block::before {
        background: radial-gradient(circle at center, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.9) 100%);
    }
    
    .server-text,
    .starwheel-text,
    .telegram-text {
        max-width: 95%;
        padding-left: 15px;
        padding-top: 15px;
    }
    
    .server-description-main,
    .starwheel-description,
    .telegram-description {
        font-size: 0.85rem;
    }
    
    .server-title-small,
    .starwheel-title,
    .telegram-title {
        font-size: 1.2rem;
    }
    
    .site-footer {
        padding: 25px 12px;
    }
    
    .footer-text {
        font-size: 0.75rem;
    }
    
    .footer-email {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
    
    .telegram-icon {
        width: 30px;
        height: 30px;
    }
    
    .footer-copyright p {
        font-size: 0.55rem;
    }
    
    .footer-contacts {
        flex-direction: column;
        gap: 12px;
    }
}

/* Горизонтальная ориентация телефона (ландшафт) */
@media (max-width: 900px) and (orientation: landscape) {
    .minecraft-server-block,
    .starwheel-block,
    .telegram-block {
        height: 120vh; /* чуть больше, чтобы влезло */
    }
    
    .server-text,
    .starwheel-text,
    .telegram-text {
        max-width: 70%;
        padding-left: 40px;
        padding-top: 30px;
    }
}