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

body {
    font-family: Arial, sans-serif;
    background-color: #000; /* black background */
    overflow: hidden;
    min-height: 100vh;
    position: relative;
}

/* Загрузочный экран */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000; /* match site background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.5s ease-in-out;
}

.click-icon {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.click-icon:hover {
    transform: scale(1.1);
}

.click-image {
    width: 120px;
    height: 120px;
    animation: pulse 2s infinite;
}

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

/* Основной контент */
.main-content {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.main-content.hidden {
    opacity: 0;
}

/* Squares background */
.circles-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background: #000;
}

.circle {
    position: absolute;
    border: none;
    border-radius: 0;
    box-shadow: none;
    animation-name: pulseCircle;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    will-change: transform, opacity;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

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

.container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.top-logo {
    margin-top: 2rem;
    margin-bottom: 0;
    margin-left: -2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30%;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.bottom-logo {
    margin-bottom: 2rem;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30%;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.top-logo.logo-visible, .bottom-logo.logo-visible {
    opacity: 1;
    transform: translateY(0);
}

.logo-top, .logo-bottom {
    max-width: 70%;
    max-height: 20vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.logo-link {
    display: inline-block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.logo-link:active {
    transform: scale(0.95);
}

/* Widget стили */
.widget-container {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1; /* show immediately */
    transition: none; /* no animation */
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    border: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    overflow: visible;
    box-shadow: none;
}



.widget-container iframe {
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    pointer-events: auto;
    width: 100%;
    max-width: 420px;
    height: 600px;
    display: block;
}

.widget-container iframe:hover {
    transform: scale(1.03);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
}

/* Image inside widget (no frame) */
.widget-container img {
    display: block;
    max-width: 70vw; /* slightly smaller */
    max-height: 70vh;
    width: auto;
    height: auto;
    border-radius: 0;
}

/* Планшеты */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding: 3rem;
    }
    
    .top-logo {
        margin-top: 3rem;
    }
    
    .bottom-logo {
        margin-bottom: 3rem;
    }
    
    .logo-top, .logo-bottom {
        max-width: 70%;
        max-height: 35vh;
    }
    
    .click-image {
        width: 140px;
        height: 140px;
    }
    
    .widget-container {
        margin: 1.5rem 0;
        padding: 0;
    }
    
    .widget-container iframe {
        width: 360px !important;
        height: 550px !important;
    }
}

/* Мобильные устройства */
@media (max-width: 767px) {
    .container {
        padding: 1rem;
    }
    
    .top-logo {
        margin-top: 1rem;
    }
    
    .bottom-logo {
        margin-bottom: 2rem;
    }
    
    .logo-top, .logo-bottom {
        max-width: 90%;
        max-height: 25vh;
    }
    
    .click-image {
        width: 100px;
        height: 100px;
    }
    
    .widget-container {
        margin: 1rem 0;
        padding: 0;
    }
    
    .widget-container iframe {
        width: 320px !important;
        height: 500px !important;
    }
}

/* Маленькие мобильные устройства */
@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }
    
    .top-logo {
        margin-top: 0.5rem;
    }
    
    .bottom-logo {
        margin-bottom: 1rem;
    }
    
    .logo-top, .logo-bottom {
        max-width: 95%;
        max-height: 20vh;
    }
    
    .click-image {
        width: 80px;
        height: 80px;
    }
    
    .widget-container {
        margin: 0.5rem 0;
        padding: 0;
    }
    
    .widget-container iframe {
        width: 280px !important;
        height: 480px !important;
    }
}

/* Очень маленькие экраны */
@media (max-width: 320px) {
    .logo-top, .logo-bottom {
        max-width: 98%;
        max-height: 18vh;
    }
    
    .click-image {
        width: 70px;
        height: 70px;
    }
    
    .widget-container iframe {
        width: 250px !important;
        height: 450px !important;
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-width: 767px) and (orientation: landscape) {
    .container {
        padding: 1rem 2rem;
    }
    
    .top-logo {
        margin-top: 1rem;
    }
    
    .bottom-logo {
        margin-bottom: 1rem;
    }
    
    .logo-top, .logo-bottom {
        max-height: 30vh;
    }
    
    .click-image {
        width: 90px;
        height: 90px;
    }
    
    .widget-container {
        margin: 0.5rem 0;
        padding: 0;
    }
    
    .widget-container iframe {
        width: 300px !important;
        height: 480px !important;
    }
} 