/* ============================================
   PODSTAWOWE STYLE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    -webkit-overflow-scrolling: touch;
    font-family: "LatoWeb", Arial, sans-serif;
}

p {
    color: black;
}

a {
    text-decoration: none;
}

/* ============================================
   FONTY
   ============================================ */

@font-face {
    font-family: 'LatoWebBlack';
    src: url('../fonts/Lato/fonts/Lato-Black.eot');
    src: url('../fonts/Lato/fonts/Lato-Black.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Lato/fonts/Lato-Black.woff2') format('woff2'),
        url('../fonts/Lato/fonts/Lato-Black.woff') format('woff'),
        url('../fonts/Lato/fonts/Lato-Black.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: 'LatoWebBlack';
    src: url('../fonts/Lato/fonts/Lato-BlackItalic.eot');
    src: url('../fonts/Lato/fonts/Lato-BlackItalic.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Lato/fonts/Lato-BlackItalic.woff2') format('woff2'),
        url('../fonts/Lato/fonts/Lato-BlackItalic.woff') format('woff'),
        url('../fonts/Lato/fonts/Lato-BlackItalic.ttf') format('truetype');
    font-style: italic;
    font-weight: normal;
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: 'LatoWebBold';
    src: url('../fonts/Lato/fonts/Lato-Bold.eot');
    src: url('../fonts/Lato/fonts/Lato-Bold.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Lato/fonts/Lato-Bold.woff2') format('woff2'),
        url('../fonts/Lato/fonts/Lato-Bold.woff') format('woff'),
        url('../fonts/Lato/fonts/Lato-Bold.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: 'LatoWebBold';
    src: url('../fonts/Lato/fonts/Lato-BoldItalic.eot');
    src: url('../fonts/Lato/fonts/Lato-BoldItalic.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Lato/fonts/Lato-BoldItalic.woff2') format('woff2'),
        url('../fonts/Lato/fonts/Lato-BoldItalic.woff') format('woff'),
        url('../fonts/Lato/fonts/Lato-BoldItalic.ttf') format('truetype');
    font-style: italic;
    font-weight: normal;
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: 'LatoWeb';
    src: url('../fonts/Lato/fonts/Lato-Regular.eot');
    src: url('../fonts/Lato/fonts/Lato-Regular.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Lato/fonts/Lato-Regular.woff2') format('woff2'),
        url('../fonts/Lato/fonts/Lato-Regular.woff') format('woff'),
        url('../fonts/Lato/fonts/Lato-Regular.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
    text-rendering: optimizeLegibility;
}

.fontOnBtn {
    font-family: "LatoWebBold";
}

.headerFont {
    font-family: "LatoWebBlack";
}

/* ============================================
   NAGŁÓWEK
   ============================================ */

.fixed-header {
    width: 100%;
    position: fixed;
    z-index: 1000;
    background-color: #ff3300;
    padding: 12px 0;
    color: #fff;
    top: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Pierwszy wiersz: Logo i telefon */
.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
    margin-bottom: 6px;
    min-height: 110px;
}

.header-logo-wrapper {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    min-width: 0;
}

.header-logo {
    height: auto;
    max-height: 110px;
    max-width: 100%;
    width: auto;
    cursor: pointer;
    object-fit: contain;
}

.header-phone-wrapper {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    min-width: 0;
}

.header-phone-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    border: solid 2px white;
    border-radius: 8px;
    padding: 8px 16px;
    white-space: nowrap;
    font-size: 34px;
    line-height: 1.2;
}

.header-phone-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    object-fit: contain;
}

.header-phone-number {
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Drugi wiersz: Slogan */
.header-slogan-row {
    text-align: center;
    width: 100%;
    padding: 2px 0 0 0;
    overflow: hidden;
}

.header-slogan-line1 {
    font-size: 16px;
    line-height: 20px;
    font-family: "LatoWebBlack";
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1px;
}

.header-slogan-line2 {
    font-size: 12px;
    line-height: 16px;
    font-family: "LatoWebBlack";
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   SEKCJE I LAYOUT
   ============================================ */

.section {
    z-index: -1 !important;
    max-width: 2160px;
}

#msform {
    text-align: center;
    position: relative;
    margin-top: 3px;
    top: 3%;
    width: 100%;
    height: calc(100% - 100px);
    margin: 0 auto;
}

.section-content {
    height: 100% !important;
}

.custom_section_1 {
    background-image: url(../images/background.jpg);
    background-repeat: no-repeat;
    background-size: 100vh !important;
    justify-content: space-between;
    display: flex;
    align-items: flex-end;
    background-position-y: -25% !important;
    background-position-x: 51% !important;
}

.custom-section-page-two {
    width: 100% !important;
    height: calc(100% - 100px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    top: 15vh !important;
    background: unset !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 !important;
}

.custom-section-page-two>* {
    width: 100%;
    max-width: 100%;
}

.section-title {
    color: black;
    position: initial;
    font-size: 20px;
    font-family: "LatoWeb";
    margin-bottom: 20px;
    width: 100%;
}

.centered {
    font-family: "LatoWeb";
    position: initial;
    width: 100%;
    color: black;
    display: block;
    text-align: center;
}

/* ============================================
   PRZYCISKI
   ============================================ */

.reservationBtn {
    margin: 5% auto 10% auto;
    width: 80% !important;
    border: none;
    position: relative;
    display: inline-block;
    padding: 0.584em 0.3em 0.61em !important;
    border-radius: 7px;
    background: #ff3300;
    color: white;
    vertical-align: bottom;
    text-indent: 0 !important;
    text-transform: lowercase;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    white-space: normal;
    font-size: x-large;
    text-transform: unset !important;
}

.reservationBtn:active {
    background-color: #ac1e05;
}

.instruction {
    font-family: "LatoWeb";
    width: 95% !important;
    max-width: 95%;
    color: white;
    background-color: rgb(160, 160, 160);
    white-space: normal;
    text-transform: unset !important;
    margin: 5% auto 0 auto !important;
    border: none;
    position: relative;
    display: block;
    padding: 0.584em 1.3em 0.61em !important;
    border-radius: 0.55rem;
    text-indent: 0 !important;
    text-align: center;
    text-decoration: none;
    height: 65px;
    box-sizing: border-box;
}

.custom-section-page-two .instruction {
    margin-left: auto !important;
    margin-right: auto !important;
    left: 0 !important;
    right: 0 !important;
}

.custom-section-page-two .instruction:first-of-type {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 5% !important;
    left: 0 !important;
    right: 0 !important;
}

.instruction-highlight {
    background-color: #ff3300;
}

/* ============================================
   SEKCJA STOKÓW
   ============================================ */

.custom-section-page-three-2 {
    top: 10vh !important;
}

.custom-page-three-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 0.4fr 0.5fr 0.5fr;
    gap: 0px 0px;
    grid-auto-flow: row;
    grid-template-areas:
        "Tytuł Tytuł Tytuł img4 img4 img4 img4"
        "img1 img2 img3 img4 img4 img4 img4"
        "btn btn btn img4 img4 img4 img4";
    margin-top: 10%;
}

.slope-title {
    grid-area: Tytuł;
}

.slope-title {
    white-space: nowrap;
}

.img1 {
    grid-area: img1;
}

.img2 {
    grid-area: img2;
}

.img3 {
    grid-area: img3;
}

.btn {
    grid-area: btn;
}

.img4 {
    grid-area: img4;
    padding: 5px;
}

.hski-img-kwadrat {
    max-width: 100%;
    max-height: 100%;
    margin-top: 6px;
}

.ski-icon {
    display: grid;
    grid-template-rows: 0.5fr -0.5fr;
    grid-auto-columns: 1fr;
    gap: 0px 0px;
    grid-auto-flow: row;
    align-items: center;
}

.svg-icon {
    grid-area: 1 / 1 / 2 / 2;
}

.count-number {
    grid-area: 2 / 1 / 3 / 2;
}

.count-text {
    color: white;
}

._hski_box_wyciag_page_three {
    background-color: #5d5d5d !important;
    border-radius: 0.55em;
    width: 80%;
    margin: auto;
    margin-bottom: 2px;
}

._hski_box_rezerwuj_page_three {
    background-color: #ff3300 !important;
    border-radius: 0.55em;
    margin: 5px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

._hski_box_rezerwuj_page_three h3 {
    margin: 0;
    padding: 0;
}

._hski_box_rezerwuj_page_three small {
    margin: 0;
    padding: 0;
}

._hski_box_rezerwuj_page_three:active {
    background-color: #ac1e05 !important;
}

.reservation-title {
    color: white;
}

.reservation-subtitle {
    color: white;
}

/* ============================================
   OBRAZKI
   ============================================ */

#msform img.wide {
    max-width: 100%;
    max-height: 100%;
    height: auto;
}

#msform img.tall {
    max-height: 100%;
    max-width: 100%;
    width: auto;
}

.pswp__img {
    height: unset !important;
}

/* ============================================
   FULLPAGE.JS
   ============================================ */

.fp-tableCell {
    margin-top: 22%;
}

/* ============================================
   MEDIA QUERIES - DUŻY TABLET PORTRAIT (2160x1620)
   ============================================ */

@media screen and (min-width: 1620px) and (max-width: 2160px) and (orientation: portrait) {
    .fixed-header {
        padding: 20px 0;
        height: 200px;
    }

    .header-top-row {
        margin-bottom: 10px;
        min-height: 110px;
    }

    .header-logo {
        max-height: 110px;
    }

    .header-phone-link {
        padding: 12px 24px;
        font-size: 34px;
        gap: 12px;
    }

    .header-phone-icon {
        width: 50px;
        height: 50px;
    }

    .header-slogan-line1 {
        font-size: 28px;
        line-height: 34px;
    }

    .header-slogan-line2 {
        font-size: 20px;
        line-height: 24px;
    }

    .reservationBtn {
        width: 60% !important;
        padding: 1em 0.5em 1.1em !important;
        font-size: 2em;
    }

    .custom-section-page-two {
        padding-top: 73px !important;
    }

    .section-title {
        font-size: 48px;
        margin-bottom: 5% !important;
    }

    .instruction {
        width: 85% !important;
        padding: 1em 1.5em 1.1em !important;
        height: 180px;
        font-size: 45px;
        margin: 5% auto 0 auto !important;
    }

    .custom-section-page-two .instruction:first-of-type {
        margin-top: 5% !important;
    }

    .custom-page-three-container {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
        grid-template-rows: 0.3fr 0.6fr 0.6fr;
        gap: 10px;
    }

    .slope-title {
        font-size: 28px;
    }

    ._hski_box_wyciag_page_three {
        width: 70%;
        padding: 15px;
    }

    .svg-icon svg {
        width: 70px;
        height: 70px;
    }

    .count-text {
        font-size: 24px;
    }

    .reservation-title {
        font-size: 28px;
    }

    .reservation-subtitle {
        font-size: 20px;
    }

    .hski-img-kwadrat {
        margin-top: 10px;
    }

    .custom_section_1 {
        background-size: 120vh !important;
        background-position-y: -20% !important;
    }
}

/* ============================================
   MEDIA QUERIES - DUŻY TABLET LANDSCAPE (2160x1620)
   ============================================ */

@media screen and (min-width: 1620px) and (max-width: 2160px) and (orientation: landscape) {
    .fixed-header {
        padding: 15px 0;
        height: 200px;
    }

    .header-top-row {
        margin-bottom: 8px;
        min-height: 110px;
    }

    .header-logo {
        max-height: 110px;
    }

    .header-phone-link {
        padding: 10px 20px;
        font-size: 34px;
        gap: 12px;
    }

    .header-phone-icon {
        width: 50px;
        height: 50px;
    }

    .header-slogan-line1 {
        font-size: 24px;
        line-height: 30px;
    }

    .header-slogan-line2 {
        font-size: 18px;
        line-height: 22px;
    }

    .reservationBtn {
        width: 38% !important;
        font-size: 1.8rem;
        margin: 5% auto 5% auto;
    }

    .custom-section-page-two {
        padding-top: 60px !important;
    }

    .custom_section_1 {
        background-size: 134vh !important;
        background-position-y: -10% !important;
    }

    .section-title {
        font-size: 48px;        
    }

    .instruction {
        width: 85% !important;
        padding: 1em 1.5em 1.1em !important;
        height: 100px;
        font-size: 2rem;
        margin: 50px auto 0 auto !important;
    }

    .custom-section-page-two .instruction:first-of-type {
        margin-top: 20px !important;
    }

    .custom-page-three-container {
        gap: 8px;
    }

    .slope-title {
        font-size: 24px;
    }

    .custom-section-page-three-2 {
        top: 7vh !important;
        padding: 60px;
    }

    .slope-title {
        font-size: 50px;
    }

    .svg-icon {        
        height: 130px;
    }

    ._hski_box_wyciag_page_three{
        width: 90%;
    }

    .ski-icon{
        height: 200px;
    }

    ._hski_box_rezerwuj_page_three{
        margin: 20px;
        font-size: 40px;
    }

    ._hski_box_rezerwuj_page_three h3{
        font-size: 60px;
    }

    .hski-img-kwadrat{
        height: auto;
        width: 58%;
    }
}

/* ============================================
   MEDIA QUERIES - ŚREDNI TABLET (1024px - 1619px)
   ============================================ */

@media screen and (min-width: 1024px) and (max-width: 1619px) {
    .header-top-row {
        min-height: 70px;
        margin-bottom: 5px;
    }

    .header-logo {
        max-height: 70px;
    }

    .header-phone-link {
        padding: 9px 18px;
        font-size: 18px;
        gap: 10px;
    }

    .header-phone-icon {
        width: 24px;
        height: 24px;
    }

    .header-slogan-line1 {
        font-size: 20px;
        line-height: 26px;
    }

    .header-slogan-line2 {
        font-size: 15px;
        line-height: 19px;
    }

    .reservationBtn {
        width: 70% !important;
        font-size: 1.5em;
    }

    .instruction {
        width: 90% !important;
        height: 75px;
        font-size: 18px;
    }

    .slope-title {
        font-size: 22px;
    }

    .svg-icon svg {
        width: 60px;
        height: 60px;
    }
}

/* ============================================
   MEDIA QUERIES - MAŁY TABLET (768px - 1023px)
   ============================================ */

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .header-top-row {
        min-height: 60px;
        margin-bottom: 5px;
    }

    .header-logo {
        max-height: 60px;
    }

    .header-phone-link {
        padding: 7px 14px;
        font-size: 17px;
        gap: 8px;
    }

    .header-phone-icon {
        width: 20px;
        height: 20px;
    }

    .header-slogan-line1 {
        font-size: 17px;
        line-height: 22px;
    }

    .header-slogan-line2 {
        font-size: 13px;
        line-height: 17px;
    }

    .reservationBtn {
        width: 75% !important;
        font-size: 1.3em;
        padding: 0.7em 0.4em 0.8em !important;
    }

    .section-title {
        font-size: 22px;
    }

    .instruction {
        width: 92% !important;
        height: 70px;
        font-size: 16px;
        padding: 0.7em 1.2em 0.8em !important;
    }

    .custom-page-three-container {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-template-rows: 0.3fr 0.5fr 0.5fr 1fr;
        grid-template-areas:
            "Tytuł Tytuł Tytuł Tytuł"
            "img1 img2 img3 img3"
            "btn btn btn btn"
            "img4 img4 img4 img4";
        gap: 8px;
    }

    .slope-title {
        font-size: 20px;
    }

    .svg-icon svg {
        width: 50px;
        height: 50px;
    }

    .count-text {
        font-size: 18px;
    }

    .reservation-title {
        font-size: 22px;
    }

    .reservation-subtitle {
        font-size: 16px;
    }
}

/* ============================================
   MEDIA QUERIES - TELEFON (do 767px)
   ============================================ */

@media screen and (max-width: 767px) {
    .fixed-header {
        padding: 8px 0;
    }

    .header-top-row {
        min-height: 50px;
        margin-bottom: 4px;
        gap: 10px;
    }

    .header-logo {
        max-height: 50px;
    }

    .header-phone-link {
        padding: 6px 12px;
        font-size: 14px;
        gap: 6px;
        border-width: 1.5px;
    }

    .header-phone-icon {
        width: 18px;
        height: 18px;
    }

    .header-slogan-line1 {
        font-size: 14px;
        line-height: 18px;
    }

    .header-slogan-line2 {
        font-size: 11px;
        line-height: 14px;
    }

    .reservationBtn {
        width: 85% !important;
        font-size: 1.1em;
        padding: 0.6em 0.3em 0.7em !important;
    }

    .section-title {
        font-size: 18px;
    }

    .instruction {
        width: 95% !important;
        height: 60px;
        font-size: 14px;
        padding: 0.6em 1em 0.7em !important;
        margin-top: 3%;
    }

    .custom-page-three-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto;
        grid-template-areas:
            "Tytuł"
            "img1"
            "img2"
            "img3"
            "btn"
            "img4";
        gap: 10px;
        margin-top: 5%;
    }

    .slope-title {
        font-size: 18px;
        white-space: normal;
    }

    ._hski_box_wyciag_page_three {
        width: 90%;
        padding: 10px;
    }

    .svg-icon svg {
        width: 40px;
        height: 40px;
    }

    .count-text {
        font-size: 16px;
    }

    .reservation-title {
        font-size: 20px;
    }

    .reservation-subtitle {
        font-size: 14px;
    }

    .custom_section_1 {
        background-size: 100% !important;
        background-position-y: 0% !important;
        background-position-x: center !important;
    }

    .custom-section-page-two {
        top: 10vh !important;
    }
}

/* ============================================
   MEDIA QUERIES - MAŁY TELEFON (do 380px)
   ============================================ */

@media screen and (max-width: 380px) {
    .header-top-row {
        min-height: 42px;
        margin-bottom: 3px;
        gap: 8px;
    }

    .header-logo {
        max-height: 42px;
    }

    .header-phone-link {
        padding: 5px 10px;
        font-size: 12px;
        gap: 5px;
        border-width: 1.5px;
    }

    .header-phone-icon {
        width: 16px;
        height: 16px;
    }

    .header-slogan-line1 {
        font-size: 12px;
        line-height: 16px;
    }

    .header-slogan-line2 {
        font-size: 10px;
        line-height: 13px;
    }

    .reservationBtn {
        width: 90% !important;
        font-size: 1em;
    }

    .instruction {
        font-size: 12px;
        height: 55px;
        padding: 0.5em 0.8em 0.6em !important;
    }

    .slope-title {
        font-size: 16px;
    }

    .svg-icon svg {
        width: 35px;
        height: 35px;
    }

    .count-text {
        font-size: 14px;
    }

    .reservation-title {
        font-size: 18px;
    }

    .reservation-subtitle {
        font-size: 12px;
    }
}