#central_block_vert {
    width: 100%;
    display: flex;
    flex-flow: column;
    height: 100%;
    min-height: 90vh;
}

#central_block {
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    height: 95%;
    min-height: 0;
}

#foto_block {
    display: flex;
    flex-direction: row;
    width: 55%;
    height: 100%;
    font-family: "Lora", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

#foto_container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#foto_frame {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

#foto_frame img {
    max-width: 100%;
    max-height: 90%;
    display: block;
    object-fit: contain;
}

#slogan_block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 45%;
    height: 100%;
}

#text_slogan_block {
    width: 90%;
    height: 30%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

#text_slogan_frame {
    width: 100%;
    height: auto;
    font-family: "Lora", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 3.2em;
    text-align: left;
}

#text_slogan_frame p {
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

#button_slogan_block {
    width: 90%;
    height: auto;
    display: flex;
    justify-content: flex-start;
}

#button_frame {
    width: 25rem;
    height: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #0D0D0D;
    transition: background 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    margin-bottom: 3em;
}

#button_frame p {
    margin: 0;
    color: white;
    font-size: 1.8em;
    text-align: center;
    pointer-events: none;
}

#button_frame:hover {
    background: var(--color-button-hover);
    transform: scale(1.02);
}

/* Ландшафтный режим */
@media (max-width: 950px) and (orientation: landscape) {
    #central_block_vert {
        min-height: 100vh;
    }
    #central_block {
        height: 90%;
    }
    #foto_frame img {
        max-height: 85vh;
    }
    #text_slogan_block {
        height: 40%;
    }
    #button_slogan_block {
        margin-top: 0;
    }
}

/* 540px (Foldables) */
@media (max-width: 540px) and (min-width: 481px) {
    #central_block {
        flex-direction: row;
        height: 85vh;
    }
    #foto_block {
        width: 50%;
        height: 100%;
    }
    #slogan_block {
        width: 50%;
        height: 100%;
    }
    #text_slogan_frame {
        font-size: 2.5em;
        text-align: left;
    }
    #button_slogan_block {
        align-items: flex-start;
    }
    #button_frame {
        width: 85%;
        margin-left: 0;
    }
}

/* 480px (Android large) */
@media (max-width: 480px) {
    #central_block {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-start;
        height: auto;
        overflow-x: hidden;
    }
    #foto_block {
        display: flex;
        width: 100%;
        height: auto;
    }
    #foto_frame {
        width: 100%;
        height: 100%;
        max-height: 30em;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }
    #foto_frame img {
        max-width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
    }
    #slogan_block {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: auto;
    }
    #text_slogan_block {
        font-size: 0.8em;
        height: auto;
    }
    #text_slogan_frame {
        text-align: center;
    }
    #button_slogan_block {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-top: 1em;
        margin-bottom: 2em;
    }
    #button_frame {
        width: 70%;
        height: 3.5rem;
        margin: 0 auto;
    }
    #button_frame p {
        font-size: 1.4em;
    }
}

/* 428px (iPhone Pro Max) */
@media (max-width: 428px) {
    #text_slogan_frame {
        font-size: 3.0em;
    }
    #button_frame {
        height: 3.5rem;
    }
}

/* 414px (iPhone Plus) */
@media (max-width: 414px) {
    #text_slogan_frame {
        font-size: 2.9em;
    }
    #button_frame {
        height: 3.4rem;
    }
    #button_frame p {
        font-size: 1.35em;
    }
}

/* 390px (iPhone 12 Pro) */
@media (max-width: 390px) {
    #text_slogan_frame {
        font-size: 2.7em;
    }
    #button_frame {
        height: 3.3rem;
    }
}

/* 375px (iPhone X/13 mini) */
@media (max-width: 375px) {
    #text_slogan_frame {
        font-size: 2.5em;
    }
    #button_frame {
        height: 3.2rem;
    }
    #button_frame p {
        font-size: 1.3em;
    }
}

/* 320px (iPhone SE) */
@media (max-width: 320px) {
    #text_slogan_frame {
        font-size: 2.2em;
    }
    #button_frame {
        width: 85%;
        height: 3rem;
    }
    #button_frame p {
        font-size: 1.2em;
    }
    #foto_frame {
        max-height: 25em;
    }
}