html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* background-color: #8fb7ec; */
    background: radial-gradient(
        circle at center,
        #9fc0ec 0%,
        #8fb7ec 60%,
        #6a9cdd 100%
    );
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Safari */
    -khtml-user-select: none;    /* Konqueror HTML */
    -moz-user-select: none;      /* Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Стандартный синтаксис */
}

header, footer {
    position: fixed;
    left: 0;
    width: 100%;
    background-color: #A63232;
    color: #EDF4F5;
    padding: 15px;
}

header {
    top: 0;
    z-index: 1;
    box-shadow: 0 12px 10px -10px #e63636bf;
}

footer {
    bottom: 0;
    z-index: 3;
    box-shadow: 0 -12px 10px -10px #e63636bf;
}


.ad-slogan {
    font-family: 'Arial Black', Impact, sans-serif;
    font-weight: 900;
    letter-spacing: -0.02em;
    font-size: clamp(40px, 4vw, 80px);
    line-height: 1.1;
    margin: 0;
    text-shadow:
        2px 2px 0 #7c2020,
        4px 4px 0 #641515,
        6px 6px 0 #481010,
        8px 8px 12px rgba(0, 0, 0, 0.4);
}

#background-image {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    pointer-events: none;

    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#visit-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
}




/* ОСНОВНАЯ ПОСТЕРНАЯ КОМПОЗИЦИЯ */

main {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);

    width: 58%;
    z-index: 5;
    color: #2b0c0c;
}

.poster-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: clamp(8px, 1.5vh, 16px);
}

main p,
main h1 {
    margin: 0;
}


.write-kanbe {
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
    font-size: clamp(40px, min(8vw, 16vh), 120px);
    font-weight: 900;
    line-height: 1;

    white-space: nowrap;
    color: #3b0c0c;

    transform: rotate(-3deg);
    transform-origin: left center;
    transform: translateY(30px) rotate(-3deg);

    text-shadow: 3px 3px 0 #f6c0bb;
}

.artist-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;

    margin-left: 5%;
}

.ivano-kanbe {
    font-family: 'Arial Black', Impact, sans-serif;
    font-size: clamp(30px, min(4.5vw, 9vh), 90px);
    font-weight: 900;
    line-height: 1.1;

    white-space: nowrap;
    color: #ffe9e9;

    -webkit-text-stroke: 2px #a01d1d;
    text-shadow: 4px 4px 0 #a01d1d;
}

.artist-title {
    background: #A63232;
    color: #EDF4F5;

    padding: 5px 14px;

    font-family: 'Arial Black', Impact, sans-serif;
    font-size: clamp(16px, min(2.4vw, 4.8vh), 60px);
    font-weight: 900;
    letter-spacing: 0.12em;
    margin-top: 1vw;

    transform: rotate(-2deg);

    box-shadow: 4px 4px 0 #3b0c0c;
}


.poster-navigation {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: clamp(8px, 21vh, 40px);
    margin-left: 5%;
}

.poster-navigation a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 10px 18px;

    background: #ffe9e9;
    color: #a01d1d;

    border: 3px solid #3b0c0c;
    box-shadow: 5px 5px 0 #3b0c0c;

    font-family: 'Arial Black', Impact, sans-serif;
    font-size: clamp(16px, min(2vw, 4vh), 32px);
    font-weight: 900;

    text-decoration: none;
    white-space: nowrap;

    transition: transform 0.15s ease,
                box-shadow 0.15s ease;
}

.poster-navigation a:first-child {
    transform: rotate(-2deg);
}

.poster-navigation a:last-child {
    transform: rotate(2deg);
}

.poster-navigation a:hover {
    transform: translate(3px, 3px) rotate(0deg);
    box-shadow: 2px 2px 0 #3b0c0c;
}

/* Социальные сети */

.social-links {
    margin-top: 0;
    margin-left: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 7px 12px;

    background: #ffe9e9;
    border: 2px solid #a01d1d;

    color: #a01d1d;
    text-decoration: none;

    font-family: 'Arial Black', Impact, sans-serif;
    font-size: clamp(14px, min(1.5vw, 3vh), 24px);
    font-weight: 900;

    box-shadow: 3px 3px 0 #a01d1d;

    transition: transform 0.15s ease,
                box-shadow 0.15s ease;
}

.social-links a:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 #a01d1d;
}

.social-links a i {
    font-size: 1.1em;
}

.link-arrow {
    margin-left: 4px;
}

/* Контактный блок */

.contact-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 10px;
    margin-top: 15px;
    margin-left: 5%;
}

/* Рекламный призыв */

.write-now {
    font-family: 'Arial Black', Impact, sans-serif;
    font-size: clamp(20px, min(3vw, 6vh), 48px);
    font-weight: 900;

    color: #3b0c0c;
    text-shadow: 3px 3px 0 #f6c0bb;

    transform-origin: left center;

    text-shadow: 1px 2px 2px #ffe9e9;
    white-space: nowrap;
}


.promo-desktop {
    display: contents;
}

.promo-mobile {
    display: none;
}



/* Низкие экраны */
@media (max-height: 700px) {

    main {
        width: 60%;
    }

    .poster-content {
        gap: 5px;
    }

    .artist-info {
        gap: 3px;
    }

    .poster-navigation {
        margin-top: 8px;
    }

    .contact-section {
        margin-top: 5px;
        gap: 5px;
    }

    .ivano-kanbe {
        -webkit-text-stroke: 1px #a01d1d;
        text-shadow: 2px 2px 0 #a01d1d;
    }

    .ad-slogan {
        font-size: clamp(30px, min(3vw, 6vh), 80px);
    }
}

@media (max-height: 530px) {
    .ad-slogan {
        font-size: clamp(25px, min(2vw, 4vh), 80px);
    }
}



@media (max-height: 615px) {
    .poster-navigation a {
        font-size: clamp(16px, min(1.4vw, 2.8vh), 32px);
    }

    .social-links a {
        font-size: clamp(16px, min(1.4vw, 2.8vh), 32px);
    }

    .artist-title {
        font-size: clamp(16px, min(2.0vw, 4.0vh), 60px);
    }

    .write-now {
        font-size: clamp(20px, min(2.5vw, 5vh), 48px);
    }

    .ivano-kanbe {
        font-size: clamp(30px, min(4vw, 8vh), 90px);
    }
}


/* Перевернутый телефон */
@media (max-height: 430px) {
    .write-kanbe {
        font-size: clamp(30px, min(6vw, 12vh), 120px);
    }
    .ivano-kanbe {
        font-size: clamp(30px, min(3vw, 6vh), 90px);
        padding-top: 15px;
        
    }

    .artist-title {
        font-size: clamp(16px, min(1.5vw, 3.0vh), 60px);

    }

    .poster-navigation a, .social-links a {
        font-size: clamp(14px, min(1.0vw, 2.0vh), 32px);
        padding: 4px 14px;

    }

    header, footer {
        padding: 10px
    }

}


@media (max-width: 768px) {
    .promo-desktop {
        display: none;
    }

    .promo-mobile {
        display: block;
        width: 100%;
    }

    .promo-mobile .promo-sticker {
        position: relative;
        top: auto;
        left: auto;
        transform: rotate(7deg);

        width: min(75vw, 340px);
        margin: 15px auto;
    }
}