/* -------------------------------------------------------
   LAYOUT
------------------------------------------------------- */
.container {
    max-width: 960px;
}

main {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 7.81rem 0 3.56rem 0;
}

main.page {
    flex: 1;
    padding: 6.25rem 0 3.56rem 0;
    background-color: #FFF;
}

main .container-xl {
    display: flex;
    flex-direction: column;
    flex: 1;
}

footer {
    padding: 2rem 0 5.5rem 0;
}

/* -------------------------------------------------------
   HEADER / TOOLS
------------------------------------------------------- */
header a.tool.login::before {
    background-image: url(../svg/tool-login.svg);
}

/* -------------------------------------------------------
   PAGE MENU – DESKTOP
------------------------------------------------------- */
header .page-menu {
    margin-left: 2rem;
    display: flex;
    align-items: center;
}

header .page-menu nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.75rem;
}

header .page-menu nav ul li a {
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    text-transform: uppercase;
    padding: 0.25rem 0;
    display: inline-block;
    transition: color 0.2s ease, opacity 0.2s ease;
}

header .page-menu nav ul li a:hover {
    color: var(--color-blue-1);
    opacity: 0.8;
}

header .page-menu nav ul li a.active {
    color: var(--color-blue-1);
}

/* PAGE MENU – MOBILE */
@media (max-width: 991.98px) {
    header .page-menu {
        display: none
    }
}

/* -------------------------------------------------------
   PANELS
------------------------------------------------------- */
.panels {
    flex: 0;
}

.panel-home {
    width: 100%;
    max-height: unset !important;
    height: unset !important;
}

.panel-page {
    width: 100%;
    padding: 3.5rem 2rem;
}

.panel-page a {
    color: var(--color-blue-1);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.panel-page a:hover {
    color: var(--color-blue-2);
    text-decoration: underline;
}

.panel-page h1,
.panel-contacts h1 {
    margin: 0;
    padding: 0 0 1.5rem 0;
    color: #000;
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 700;
}

.panel-page h2 {
    margin: 0;
    padding: 0 0 1rem 0;
    color: #000;
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
}

.panel-login,
.panel-registration {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
    height: unset !important;
    margin: 0 auto;
    padding: 3.5rem 2rem;
}

.panel-registration {
    flex: 1;
}

.panel-contacts {
    min-width: 400px;
    padding: 3.5rem 2rem;
}

.panel-map {
    flex-grow: 1;
}

.panel-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* -------------------------------------------------------
   LOGIN DIALOG
------------------------------------------------------- */
#dialog-login {
    width: 100%;
}

#dialog-login h2 {
    text-align: center;
}

#dialog-login .separator {
    height: 1px;
    margin: 1.5rem 0;
    border-top: 1px solid var(--color-gray-2);
}

/* Links block */
#dialog-login .login-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

#dialog-login .login-info a {
    color: var(--color-blue-1);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

#dialog-login .login-info a:hover {
    color: var(--color-blue-2);
    text-decoration: underline;
}

/* Conditions */
#dialog-login .login-conditions {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.4;
    text-align: center;
    margin-top: 0.5rem;
}

#dialog-login .login-conditions a {
    color: #666;
    text-decoration: none;
    font-weight: 600;
}

#dialog-login .login-conditions a:hover {
    text-decoration: underline;
}

/* -------------------------------------------------------
   FORMS
------------------------------------------------------- */
.login-form,
.reg-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reg-form .form-row.row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
}

.reg-form .form-row.row>.col {
    flex: 0 0 auto;
}

.reg-form .form-select {
    font-weight: 600;
}

.text-muted {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Mini login button */
.button--mini-login {
    min-width: auto;
    height: 2rem;
    padding: 0 0.75rem;
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid var(--color-blue-1);
    border-radius: 0.125rem;
    background: var(--color-blue-1);
    color: #FFF;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button--mini-login:hover {
    background: #FFF;
    color: var(--color-blue-1);
    border-color: var(--color-blue-1);
}

/* -------------------------------------------------------
   HOMEPAGE
------------------------------------------------------- */
.claims-box {
    display: flex;
    background-color: #333;
    background-image: url('../img/home-bg.jpg');
    background-size: cover;
    background-position: bottom left;
}

.claims-box-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.claims-box h1 {
    margin: 0;
    padding: 9.125rem 3.125rem 7.125rem 3.125rem;
    color: #FFF;
    text-align: center;
    font-size: 3rem;
    text-shadow: 2px 2px 14px rgba(51, 51, 51, 0.45);
}

.claims {
    display: flex;
    flex: 1;
    align-items: flex-end;
    padding-bottom: 2.5rem;
    color: #FFF;
}

.claims h2 {
    margin: 0;
    padding: 1rem 0 0 0;
    font-size: 1.5rem;
    font-weight: 400;
    text-align: center;
    text-shadow: 2px 2px 14px rgba(51, 51, 51, 0.45);
    color: #FFF;
}

.claims h2 span {
    font-weight: 900;
}

.claim-img {
    height: 4.75rem;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: contain;
    fill: white;
}

.claim-1 {
    background-image: url('../svg/claim-stock.svg');
}

.claim-2 {
    background-image: url('../svg/claim-shop.svg');
}

.claim-3 {
    background-image: url('../svg/claim-online.svg');
}

.claim-4 {
    background-image: url('../svg/claim-time.svg');
}

.brands-box {
    padding: 7.625rem 0;
    background-color: #4383CA;
}

.brands-box h2 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 900;
    color: #FFF;
}

.brands-box h2:after {
    content: '_';
    display: block;
    font-size: 4rem;
    line-height: 0;
}

.brands-box p {
    color: #FFF;
}

.brands-box p span {
    font-weight: 900;
}

.brands-logos {
    padding: 7.625rem 0;
    background-color: #FFF;
}

.brands-logos img {
    padding: 2rem 0;
}

.signature {
    padding: 2rem 0;
    font-family: 'Bad Script', cursive;
    font-weight: 200;
    font-size: 1.5rem;
}

/* -------------------------------------------------------
   CONTACT BOXES
------------------------------------------------------- */
.contact-box {
    display: table;
    padding-bottom: 1rem;
}

.contact-box>div {
    position: relative;
    display: table-cell;
    vertical-align: top;
    padding-left: 4.63rem;
}

.contact-box>div::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4rem;
    height: 4rem;
    background-repeat: no-repeat;
    background-size: 2rem 2rem;
    background-position: center;
    border-radius: 50%;
    border: 1px solid var(--color-gray-2);
}

.contact-box.address>div::before {
    background-image: url(../svg/contact-location.svg);
}

.contact-box.phone>div::before {
    background-image: url(../svg/contact-phone.svg);
}

.contact-box.mail>div::before {
    background-image: url(../svg/contact-mail.svg);
}

.contact-box.clock>div::before {
    background-image: url(../svg/contact-clock.svg);
}

.contact-box.service>div::before {
    background-image: url(../svg/contact-service.svg);
}

.contact-box h2 {
    margin: 0;
    padding: 0 0 1rem 0;
    font-weight: 400;
    font-size: 1.25rem;
}

.contact-box ul {
    margin: 0;
    padding: 0 0 1rem 0;
    list-style: none;
}

.contact-box ul li {
    margin: 0;
    padding: 0;
}

.contact-box ul li a {
    color: var(--color-blue-1);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-box ul li a:hover {
    color: var(--color-blue-2);
    text-decoration: underline;
}


/* HAMBURGER BUTTON */
.page-menu-toggle {
    width: 1.5rem;
    height: 1.25rem;
    position: relative;
    cursor: pointer;
    display: none;
    z-index: 1100;
}

/* 3 čáry */
.page-menu-toggle::before,
.page-menu-toggle::after,
.page-menu-toggle div {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* prostřední čára */
.page-menu-toggle div {
    top: 50%;
    transform: translateY(-50%);
}

/* horní čára */
.page-menu-toggle::before {
    top: 0;
}

/* spodní čára */
.page-menu-toggle::after {
    bottom: 0;
}

/* ANIMACE */
.page-menu-toggle.open::before {
    transform: translateY(5px) rotate(45deg);
}

.page-menu-toggle.open div {
    opacity: 0;
}

.page-menu-toggle.open::after {
    transform: translateY(-5px) rotate(-45deg);
}


@media (max-width: 991.98px) {

    .page-menu-toggle {
        display: block;
    }

    header {
        z-index: 1000;
    }

    header .page-menu {
        position: absolute;
        left: 0;
        top: -100%;
        width: 100%;
        height: 100vh;
        background: #FFF;
        padding-top: 6rem;
        margin-left: 0 !important;
        /* ← FIX */
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
        display: none;
        z-index: 1000;
    }

    header .page-menu.open {
        display: block;
        top: 4.5rem;
    }

    /* Styl položek v mobilním menu */
    header .page-menu nav ul {
        display: flex;
        flex-direction: column;
        /* položky pod sebou */
        align-items: center;
        /* zarovnání na střed */
        gap: 1.5rem;
        /* větší mezery */
        padding: 0;
        margin: 0;
        width: 100%;
    }

    header .page-menu nav ul li {
        width: 100%;
        text-align: center;
    }

    header .page-menu nav ul li a {
        display: block;
        width: 100%;
        font-size: 1.25rem;
        /* větší písmo */
        font-weight: 700;
        padding: 0.75rem 0;
        /* větší klikací plocha */
        text-transform: uppercase;
        color: #333;
    }

    header .page-menu nav ul li a:hover {
        opacity: 0.8;
        color: var(--color-blue-1);
    }

    main.page {
        padding-top: 4.75rem;
    }

    .panel-home h1 {
        padding: 2rem;
        font-size: 2rem;
    }

    .panel-home .claims h2 {
        font-size: 1.25rem;
    }

    .panel-home .claims .row {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .panel-home .claims .claim {
        flex: 1 1 calc(50% - 1.5rem);
    }

    .panel-home .brands-box h2 {
        padding-top: 0;
        padding-bottom: 3.5rem;
        text-align: center;
    }

    .panel-home .brands-box p {
        text-align: center;
    }

    footer {
        display: flex;
        align-items: center;
        padding: 3.5rem 0;
    }
}