/*Обнуление*/
 * {
     padding: 0;
     margin: 0;
     border: 0;
}
 *, *:before, *:after {
     -moz-box-sizing: border-box;
     -webkit-box-sizing: border-box;
     box-sizing: border-box;
}
 :focus:not(:focus-visible) {
     outline: none;
}
 nav, footer, header, aside {
     display: block;
}
 html, body {
     height: 100%;
     width: 100%;
     line-height: 1;
     font-size: 14px;
     -ms-text-size-adjust: 100%;
     -moz-text-size-adjust: 100%;
     -webkit-text-size-adjust: 100%;
}
 input, button, textarea {
     font-family: inherit;
}
 input::-ms-clear {
     display: none;
}
 button {
     cursor: pointer;
}
 button::-moz-focus-inner {
     padding: 0;
     border: 0;
}
 a, a:visited {
     text-decoration: none;
}
 a:hover {
     text-decoration: none;
}
 ul li {
     list-style: none;
}
 img {
     vertical-align: top;
}
 h1, h2, h3, h4, h5, h6 {
     font-size: inherit;
     font-weight: 400;
}
/*--------------------*/


body {
    background-color: #fefaf2;
}
.wrapper {
    position: relative;
    width: 100%;
    min-width: 100dvw;
    height: 100%;
    min-height: 100dvh;
    overflow: hidden;
    background: linear-gradient(to bottom, #000617 50%, #ffffff 50%);
}

.content{
    position: absolute;
    /* Базовый мобильный вариант (16:9 по высоте). */
    width: 100dvw;
    height: calc(100dvw * 16 / 9);
    top: auto;
    left: auto;
    right: 0;
    bottom: 0;
    margin-right: 0;
    transform: none;
}
.content_wrapper{
    position: relative;
    width: 100%;
    height: 100%;
}

.content_container{
    position: relative;
    width: 100%;
    height: 100%;
    /*overflow: hidden;*/
}

.fone,
.corner,
.hohoho,
.car,
.logo,
.contacts,
.telegram,
.tel{
    position: absolute;
}

.head_fone{
    position: absolute;
    display: none;
    width: 100%;
    height: 64.17%;
    left: 0;
    top: -54.27%;
    background: url(../img/fone_head.jpg?v=2026.12.001) 50% 50%/100% no-repeat;
}

.fone{
    width: 177.78%;
    height: 100%;
    right: 0;
    bottom: 0;
    background: url(../img/fone.jpg?v=2026.12.001) 50% 50%/100% no-repeat;
}
.corner{
    width: 85%;
    height: 209.84%;
    left: -21.11%;
    top: -87.71%;
    background: url(../img/corner_triangle_snow_animated_v2.svg?v=2026.12.002) 50% 50%/100% no-repeat;
    filter: drop-shadow( 5.09dvw 5.095dvw 5.09dvw rgba(255, 255, 255, .3));
    clip-path: inset(-100% -100% -100% 0);
}
.hohoho{
    width: 71.11%;
    height: 14.69%;
    left: 25.93%;
    top: 45.26%;
    background: url(../img/hohoho.png?v=2026.12.001) 50% 50%/100% no-repeat;
}
.car{
    width: 177.78%;
    height: 100%;
    right: 0;
    bottom: 0;
    background: url(../img/car_dm.png?v=2026.12.001) 50% 50%/100% no-repeat;
}


.logo img,
.telegram img,
.tel img{
    width: 100%;
}



.logo_wrapper{
    position: relative;
    width: 100%;
    height: 100%;
}
.logo{
    width: 20.46%;
    height: 7.6%;
    left: 8.89%;
    top: 3.02%;
}

.contacts{
    width: 105.93%;
    height: 15.10%;
    left: -52.31%;
    top: 84.95%;
}

.contacts_wrapper{
    position: relative;
    width: 100%;
    height: 100%;
    background: url(../img/contacts-bg_v2.svg?v=2026.12.001) 50% 50%/100% no-repeat;
}

.telegram{
    width: 40.03%;
    height: 13.45%;
    left: 52.45%;
    top: 26.9%;
}

.tel{
    width: 37.94%;
    height: 32.07%;
    left: 53.32%;
    top: 53.45%;
}

.main-player{
    position: absolute;
    width: 24.54%;
    height: 13.8%;
    left: 14.72%;
    top: 28.02%;
}

.player{
    height: 100%;
    width: 100%;
    position: absolute;
}

.player img{
    height: 100%;
    width: 100%;
}



/*

.fly-block{
    opacity: 0;
    pointer-events: none;
}


.fly{
    animation-duration: .3s;
    animation-name: fly-out;
    animation-iteration-count: 1;
    width: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@keyframes fly-out {
    0% {
        opacity: 0.5;
        width: 100%;
    }
    100% {
        top: -50%;
        width: 300%;
        opacity: 0;
    }
}
*/
/*
.fly-block{
    pointer-events: none;
}

.fly{
    animation: rotate 7s linear infinite;
}
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
*/

#ivastop.player {
    /*opacity: 0.4;*/
}

#ivaplay{
    -webkit-animation: play_pulse 2s  linear infinite;
            animation: play_pulse 2s  linear infinite;
}
@-webkit-keyframes play_pulse{
    0%{
        opacity: 1;
    }
    50%{
        opacity: 0.5;
    }
    100%{
        opacity: 1;
    }
}
@keyframes play_pulse{
    0%{
        opacity: 1;
    }
    50%{
        opacity: 0.5;
    }
    100%{
        opacity: 1;
    }
}

/* =====================================================================
   Адаптивная композиция. aspect-ratio = ширина viewport / высота viewport.
   Диапазоны не пересекаются и не оставляют промежутков.
   Точное значение 1080/1920 относится к узкому мобильному варианту;
   остальные границы относятся к следующему, более широкому варианту.
   ===================================================================== */

/* 1. Узкий портрет: до 9:16 включительно. */
@media (aspect-ratio <= 1080/1920) {
    .head_fone {
        display: block;
    }
}

/* 2. Портрет: шире 9:16, но уже 1300:1920. */
@media (1080/1920 < aspect-ratio < 1300/1920) {
    .content {
        width: 56.25dvh;
        height: 100dvh;
    }
}

/* 3. Квадратная композиция: от 1300:1920 до 1500:1080.
   min() автоматически выбирает меньшую сторону viewport, включая 1:1. */
@media (1300/1920 <= aspect-ratio < 1500/1080) {
    .content {
        width: min(100dvw, 100dvh);
        height: min(100dvw, 100dvh);
    }
    .wrapper {
        height: 100%;
        min-height: 100dvh;
        background: #de3123;
    }
    .fone{
        width: 161.93%;
        height: 161.93%;
        right: 0;
        bottom: 0;
    }
    .corner{
        width: 95.62%;
        height: 419.68%;
        left: -56%;
        top: -202%;
    }
    .hohoho{
        width: 55.94%;
        height: 20.52%;
        left: 37.66%;
        top: 11.15%;
    }
    .car{
        width: 167.97%;
        height: 167.97%;
        right: 0;
        bottom: -3.07%;
    }

    .logo{
        width: 11.51%;
        height: 7.6%;
        left: 5.1%;
        top: 4.17%;
    }

    .contacts{
        width: 78.18%;
        height: 19.79%;
        left: -38.59%;
        top: 78.91%;
    }

    .main-player{
        width: 12.6%;
        height: 12.6%;
        left: 7.86%;
        top: 31.41%;
    }
}

/* 4–5. Общие свойства горизонтальной композиции (от 1500:1080). */
@media (aspect-ratio >= 1500/1080) {
    .content {
        /* Вписываем 16:9 по ширине или высоте, без округления 177.78%. */
        width: min(100dvw, calc(100dvh * 16 / 9));
        height: min(56.25dvw, 100dvh);
    }
    .wrapper {
        height: 100%;
        min-height: 100dvh;
        background: #de3123;
    }


    .fone{
        width: 100%;
        height: 177.78%;
        right: 0;
        bottom: 0;
    }
    .corner{
        width: 47.81%;
        height: 373.06%;
        left: -5%;
        top: -169.91%;
    }
    .hohoho{
        width: 55.94%;
        height: 36.48%;
        left: 44.95%;
        top: 0;
    }
    .car{
        width: 100%;
        height: 177.78%;
        right: 0;
        bottom: -3.33%;
    }

    .logo{
        width: 11.51%;
        height: 13.52%;
        left: 4.95%;
        top: 5.37%;
    }

    .contacts{
        width: 67.97%;
        height: 30.65%;
        left: -31.72%;
        top: 66.39%;
    }

    .main-player{
        width: 9.84%;
        height: 17.5%;
        left: 14.53%;
        top: 36.57%;
    }
}

/* 5. От 16:9: исходный цвет для сверхширокого фона.
   Это намеренное дополнение общего горизонтального блока, не новый макет. */
@media (aspect-ratio >= 1920/1080) {
    .wrapper {
        background: #dd3022;
    }
}
