:root {
    --bar-width: 30px;
    --bar-height: 4px;
    --hamburger-gap: 6px;
    --foreground: #000;
    --background: #000;
    --hamburger-margin: 25px;
    --animation-timing: 200ms ease-in-out;
    --hamburger-height: calc(var(--bar-height) * 3 + var(--hamburger-gap) * 2);
}

html {
    font-family: sans-serif;
    font-size: 24px;
    color: #888;
}

body {
    margin: 0;
    padding: 0;
    text-align: center;
}

a {
    color: #9575CDFF;
    text-decoration: underline;
}

a:hover, a:focus {
    text-decoration: none;
}

a img {
    border: none;
}


.head {
    position: relative;
    z-index: 50;
}

.head-in {
    margin: 0 auto;
    width: 1125px;
    text-align: left;
    padding: 30px 0 28px 0;
}

.head-in:after {
    content: "";
    display: block;
    clear: both;
}

.logo-container {
    float: left;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
}

.logo-container img {
    height: 50px;
    margin-right: 10px;
    vertical-align: middle
}

.logo-container a {
    text-decoration: none;
    color: #000;
    display: block;
}

.menu-whole {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px; /* mezera mezi odkazy a hamburgerem */
    min-height: 50px; /* výška pro zarovnání s logem */
}

.menu-whole .web-app {
    display: inline-block;
    color: #9575CDFF;
    font-weight: 500;
    text-decoration: none;
    padding: 8px;
    font-size: 1rem;
    vertical-align: middle;
    border: 1px solid #9575CDFF;
}

.menu-whole .web-app:hover {
    background-color: #9575CDFF;
    color: #fff;
}

.menu-whole > a.mobile-menu {
    display: none; /* pokud není potřeba, skryj */
}

.menu-whole .hamburger-menu {
    margin-left: 8px;
}

.menu-whole ul.menu {
    margin: 0;
    padding: 0;
}

.menu {
    margin: 0;
    padding: 7px 0 0 0;
}

.menu li {
    display: inline-block;
    vertical-align: top;
    list-style-type: none;
    line-height: 1.3;
    font-size: 0.9rem;
    letter-spacing: -0.5px;
}

.menu li a {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    color: #000;
}

.homepage-top {
    background-color: #9575CDFF; /*673AB7FF*/
}

.homepage-top-in {
    margin: 0 auto;
    position: relative;
    z-index: 40;
    text-align: center;
    box-sizing: border-box;
    padding: 70px 0 30px 550px;
    color: #fff;
}

.homepage-top-in a {
    color: #fff;
}

.ht-image {
    position: absolute;
    left: 184px;
    top: 49px;
    width: 669px;
}

.ht-image img {
    width: 100%;
}

.ht-image img.devices {
    display: block;
}

.ht-text {
    max-width: 400px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.ht-text h1 {
    font-size: 2.2rem;
    font-weight: normal;
    letter-spacing: -1.2px;
    line-height: 1.15;
    margin: 0 0 37px 0;
}

.ht-text p {
    line-height: 1.2;
    margin: 0 0 30px 0;
}

.app-buttons a {
    display: inline-block;
    margin: 0 4px 10px 4px;
    padding-top: 12px;
}

.app-buttons img {
    height: 62px;
}

.main {
    margin: 0 auto;
    width: 900px;
    text-align: center;
    padding: 85px 0 40px 0;
}

.main-block {
    margin-bottom: 90px;
}

.main-block:after {
    content: "";
    display: block;
    clear: both;
}

.mb-image {
    float: right;
    width: 420px;
}

.mb-image img {
    display: block;
    width: 100%;
}

.main-block.img-left .mb-image {
    float: left;
}

.mb-text {
    width: 350px;
    text-align: center;
    margin-right: 60px;
    float: right;
    padding-top: 120px;
}

.main-block.img-left .mb-text {
    margin: 0 0 0 80px;
    float: left;
}

.mb-text h2 {
    color: #574039;
    line-height: 1.2;
    font-size: 1.5rem;
    font-weight: normal;
    margin: 0 0 20px 0;
}

.mb-text p {
    line-height: 1.3;
    margin: 0;
}

.subpage-main-whole {
    border-top: 1px solid #9575CDFF;
}

.subpage-main {
    padding: 70px 0 50px 0;
    margin: 0 auto;
    text-align: left;
    width: 1125px;
}

.subpage-main h2 {
    color: #000;
    line-height: 1.2;
    font-size: 1.8rem;
    font-weight: normal;
    margin: 0 0 30px 0;
}

.subpage-main h3 {
    color: #000;
}

.subpage-main p {
    line-height: 1.3;
    margin: 0 0 30px 0;
}

.footer {
    background-color: #000;
}

.footer-in {
    margin: 0 auto;
    width: 1125px;
    text-align: left;
    padding: 40px 0;
    color: #fff;
    font-size: 0.72rem;
    line-height: 1.3;
}

.footer-in a {
    color: #d0cfcf;
}

.footer p {
    line-height: 1.3;
    margin: 0 0 20px 0;
}

.footer a {
    display: inline-block;
}

.footer a:hover, .footer a:focus {
    color: #fff;
}


.tips-image img {
    margin: auto;
    display: block;
    max-width: 100%;
}

.tips-image figcaption {
    text-align: center;
    font-size: 20px;
}

@media (max-width: 1700px) {
    .ht-image {
        width: 500px;
    }
}

@media (max-width: 1240px) {
    .ht-image {
        left: 0;
        top: 100px;
    }
}

@media (max-width: 1160px) {
    .head-in, .homepage-top-in, .footer-in, .subpage-main {
        width: 94%
    }
}

@media (max-width: 970px) {
    .main {
        width: 94%
    }
}

@media (max-width: 910px) {
    .ht-text h1 {
        font-size: 1.8rem
    }

    .ht-text {
        padding-bottom: 30px
    }
}

@media (max-width: 830px) {
    .mb-text {
        width: 340px;
        margin-right: 40px
    }

    .main-block.img-left .mb-text {
        margin: 0 0 0 40px
    }
}

@media (max-width: 790px) {
    .logo-container {
        font-size: 1.3rem
    }

    .ht-image {
        position: static;
        width: auto;
        max-width: 468px;
        margin: 0 auto 50px auto
    }

    .homepage-top-in {
        padding: 50px 0 40px 0
    }

    .main {
        padding: 100px 0 10px 0
    }

    .ht-text h1 {
        margin-bottom: 25px
    }

    .ht-text {
        padding-bottom: 20px
    }

    .ht-text p {
        margin-bottom: 20px
    }

    .hamburger-menu {
        --x-width: calc(var(--hamburger-height) * 1.41421356237);

        display: flex;
        flex-direction: column;
        gap: var(--hamburger-gap);
        width: max-content;
        position: absolute;
        top: var(--hamburger-margin);
        right: var(--hamburger-margin);
        z-index: 2;
        cursor: pointer;
    }

    .hamburger-menu:has(input:focus-visible)::before,
    .hamburger-menu:has(input:focus-visible)::after,
    .hamburger-menu input:focus-visible {
        border: 1px solid var(--background);
        box-shadow: 0 0 0 1px var(--foreground);
    }

    .hamburger-menu::before,
    .hamburger-menu::after,
    .hamburger-menu input {
        content: "";
        width: var(--bar-width);
        height: var(--bar-height);
        background-color: var(--foreground);
        border-radius: 9999px;
        transform-origin: left center;
        transition: opacity var(--animation-timing), width var(--animation-timing),
        rotate var(--animation-timing), translate var(--animation-timing),
        background-color var(--animation-timing);
    }

    .hamburger-menu input {
        appearance: none;
        padding: 0;
        margin: 0;
        outline: none;
        pointer-events: none;
    }

    .hamburger-menu:has(input:checked)::before {
        rotate: 45deg;
        width: var(--x-width);
        translate: 0 calc(var(--bar-height) / -2);
    }

    .hamburger-menu:has(input:checked)::after {
        rotate: -45deg;
        width: var(--x-width);
        translate: 0 calc(var(--bar-height) / 2);
    }

    .hamburger-menu input:checked {
        opacity: 0;
        width: 0;
    }

    .hamburger-menu:has(input:checked) + .menu {
        translate: 0;
        display: block;
    }

    .menu {
        transition: translate var(--animation-timing);
        translate: -100%;
        display: none;
        text-align: center;
        width: 100%;
        clear: both;
        padding: calc(var(--hamburger-height) + var(--hamburger-margin) + 1rem) 1rem 0.5rem;
        color: var(--background);
        max-width: 10rem;
    }

    .menu li {
        display: block;
        margin: 0
    }
}

@media (max-width: 770px) {
    .mb-image, .main-block.img-left .mb-image {
        float: none;
        margin: 0 auto 35px auto;
        width: auto;
        max-width: 320px
    }

    .mb-text, .main-block.img-left .mb-text {
        float: none;
        margin: 0 auto;
        padding: 0;
        width: auto;
        max-width: 340px
    }

    .main-block {
        margin-bottom: 60px
    }
}

@media (max-width: 450px) {
    .head-in, .homepage-top-in, .footer-in, .main, .subpage-main {
        width: 90%
    }

    html {
        font-size: 17px
    }

    .mb-text h2 {
        font-size: 1.85rem
    }

    .main {
        padding: 75px 0 5px 0
    }

    .homepage-top-in {
        padding: 40px 0 20px 0
    }

    .ht-buttons a {
        width: 245px;
        display: block;
        margin: 0 auto 25px auto;
        text-align: center;
        font-size: 1.2rem;
        padding-left: 0 !important
    }

    .ht-buttons a.web-app {
        display: block
    }

    .ht-text p {
        margin-bottom: 15px
    }

    .ht-image {
        margin-bottom: 40px
    }

    .logo {
        width: 178px;
        height: 57px;
        background-size: 100% auto
    }

    .hamburger-menu {
        margin-top: 18px
    }

    .menu {
        padding-top: 15px
    }

    .menu li {
        font-size: 1.5rem
    }
}

@media (max-width: 360px) {
    .footer-in {
        padding-bottom: 15px
    }

    .footer-links a {
        display: block
    }
}


@media screen and (min-width: 791px) {
    .menu {
        display: block !important;
    }

    .hamburger-menu {
        display: none;
    }
}
