:root {
    --itas-gray: #d7d7d7;
    --itas-gray-mid: #6f6e6d;
    --itas-gray-dark: #727070;
    --itas-green: #88a824;
    --itas-green-dark: #8bac25;
    --itas-green-soft: #8fb026;
    --itas-lime: #b0da28;
    --itas-text: #333;
    --itas-muted: #6f6e6d;
    --container: 1170px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.42857143;
    color: var(--itas-text);
    background: var(--itas-gray);
    min-width: 320px;
    min-height: 100%;
}

body:not(.page-gateway) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body:not(.page-gateway) .middle-outer {
    flex: 1 0 auto;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--itas-green-soft);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a.link {
    color: #6b871c;
}

.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

.center {
    text-align: center;
}

.center > img {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

.center > .data-table {
    margin-left: auto !important;
    margin-right: auto !important;
}

.center > .data-table td {
    text-align: center;
}

h1, h2 {
    color: #000;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: 500;
    line-height: 1.1;
    margin-top: 20px;
    margin-bottom: 10px;
}

h3, h4 {
    color: #555;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 500;
    line-height: 1.1;
    margin-top: 20px;
    margin-bottom: 10px;
}

.mainpage .headerwelcome h1 {
    font-size: 22px;
    color: #88a824;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    margin: 0.67em 0;
}

/* Gateway */
.page-gateway {
    min-height: 100vh;
    background: #1e1e1e;
}

.gateway {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.gateway-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
}

.gateway-panel:hover {
    text-decoration: none;
}

.gateway-panel--jdg {
    background-color: #88a824;
    background-image: url("../images/rotator_4.jpg");
    background-position: center;
    background-size: cover;
    background-blend-mode: multiply;
}

.gateway-panel--jdg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(160deg, rgba(136, 168, 36, 0.45), rgba(60, 75, 15, 0.55));
    pointer-events: none;
}

.gateway-panel--company {
    background-color: #555554;
    background-image: url("../images/rotator_2.jpg");
    background-position: center;
    background-size: cover;
    background-blend-mode: multiply;
}

.gateway-panel--company::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(200deg, rgba(70, 70, 70, 0.4), rgba(25, 25, 25, 0.55));
    pointer-events: none;
}

.gateway-panel__inner {
    position: relative;
    z-index: 2;
    max-width: 28rem;
    text-align: center;
}

.gateway-kicker {
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    opacity: 0.85;
}

.gateway-title {
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: 0.08em;
    color: #fff;
    text-transform: uppercase;
}

.gateway-subtitle {
    margin: 0.5rem 0 1.75rem;
    font-size: 1.05rem;
    opacity: 0.95;
}

.gateway-cta {
    display: inline-block;
    margin: 0 0 2rem;
    padding: 0.7rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    transition: background 0.25s ease, color 0.25s ease;
}

.gateway-panel:hover .gateway-cta {
    background: #fff;
    color: #222;
}

.gateway-projects {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gateway-chip {
    padding: 0.35rem 0.7rem;
    background: transparent;
    border: 1px solid #c0bfbe;
    color: #c0bfbe;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gateway-empty {
    margin: 0;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
}

@media (max-width: 800px) {
    .gateway {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .gateway-panel {
        min-height: 50vh;
    }
}

/* Header / rotator */
.site-header {
    position: relative;
    z-index: 10;
    background: var(--itas-gray);
}

.rotator-container {
    position: absolute;
    inset: 0;
    width: 100%;
}

.rotator {
    position: relative;
    height: 100%;
}

.rotimg {
    display: block;
    position: absolute;
    inset: 0;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    transition: opacity 3s ease;
    z-index: 0;
}

.rotimg.is-active {
    opacity: 1;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .rotimg {
        transition: none;
    }
}

.entity-jdg.mainpage .site-header,
.entity-jdg.mainpage .rotator-container,
.entity-jdg.mainpage .rotator,
.entity-jdg.mainpage .rotimg {
    height: 520px;
}

.entity-company.mainpage .site-header {
    flex: 1 1 auto;
    height: auto;
    min-height: 520px;
}

.entity-company.mainpage .rotator-container,
.entity-company.mainpage .rotator,
.entity-company.mainpage .rotimg {
    height: 100%;
}

.entity-company.mainpage .middle-outer {
    flex: 0 0 auto;
    padding: 0;
    min-height: 0;
}

.site-header,
.rotator-container,
.rotator,
.rotimg {
    height: 201px;
}

.header-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1rem;
    padding-top: 0.5rem;
    min-height: inherit;
}

.header-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.logo {
    display: block;
    margin-top: 40px;
    margin-left: 40px;
}

.logo:hover {
    opacity: 0.85;
}

.site-nav {
    position: relative;
    z-index: 30;
}

.menucontainer {
    float: right;
}

.site-nav ul,
.site-nav li {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 11px;
    text-transform: uppercase;
}

.site-nav > .menucontainer > ul {
    background: #706e6d;
    display: flex;
    float: right;
}

.site-nav > .menucontainer > ul > li {
    position: relative;
}

.site-nav a,
.submenu-label {
    color: #fff;
    padding: 0.55rem 0.7rem;
    display: block;
    cursor: pointer;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.has-submenu.is-active > .submenu-label {
    background: rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.has-submenu .submenu-label {
    color: var(--itas-lime);
}

.has-submenu .submenu a[aria-current="page"] {
    background: rgba(0, 0, 0, 0.2);
}

.has-submenu .submenu {
    display: none;
    position: absolute;
    top: 90%;
    left: 0;
    right: 0;
    width: 100%;
    padding-top: 10px;
    background: url("../images/strzalkamenu.png") no-repeat center top;
    z-index: 40;
    box-sizing: border-box;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
    display: block;
}

.has-submenu .submenu ul {
    background: #8cac25;
    display: block;
    width: 100%;
}

.has-submenu .submenu li {
    float: none;
    display: block;
    width: 100%;
}

.has-submenu .submenu a {
    padding: 0.4rem 0.35rem;
    text-align: center;
}

.headerwelcome {
    clear: both;
    margin-top: 300px;
    width: 386px;
    text-align: justify;
}

.mainpage .headerwelcome {
    margin-top: 140px;
}

.headerwelcome strong {
    color: #000;
}

.headerwelcome p {
    margin: 0 0 0.7em;
}

.mainpage .headerwelcome p {
    margin: 0 0 0.55em;
}

@media (max-width: 991px) {
    .entity-jdg.mainpage .site-header,
    .entity-company.mainpage .site-header,
    .entity-jdg.mainpage .rotator-container,
    .entity-company.mainpage .rotator,
    .entity-jdg.mainpage .rotimg,
    .site-header,
    .rotator-container,
    .rotator,
    .rotimg {
        height: auto;
    }

    .entity-company.mainpage .site-header {
        flex: 0 0 auto;
        min-height: 0;
    }

    .rotator-container {
        display: none;
    }

    .site-header {
        overflow: visible;
    }

    .header-inner {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-bottom: 1rem;
    }

    .logo {
        margin: 1rem 0 0.75rem;
    }

    .menucontainer {
        float: none;
        border: none;
        padding-left: 0;
        width: 100%;
    }

    .site-nav > .menucontainer > ul {
        float: none;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }

    .has-submenu .submenu {
        position: absolute;
        display: none;
        left: 0;
        right: auto;
        width: max-content;
        min-width: 100%;
        padding-top: 10px;
        background: url("../images/strzalkamenu.png") no-repeat center top;
    }

    .has-submenu:hover .submenu,
    .has-submenu:focus-within .submenu {
        display: block;
    }

    .headerwelcome,
    .mainpage .headerwelcome {
        margin-top: 1.25rem;
        width: auto;
        max-width: 100%;
    }

    .home-columns {
        grid-template-columns: 1fr;
    }

    .home-columns .sek:nth-child(2) {
        border-left: 0;
        border-right: 0;
        border-top: 1px solid #ebebeb;
        border-bottom: 1px solid #ebebeb;
        padding-block: 1rem;
    }
}

@media (max-width: 767px) {
    .site-nav {
        z-index: 30;
    }

    .site-nav > .menucontainer > ul {
        font-size: 10px;
    }

    .site-nav a,
    .submenu-label {
        padding: 0.45rem 0.55rem;
    }

    .headerwelcome {
        margin-top: 0.75rem;
    }

    .mainpage .headerwelcome h1 {
        font-size: 18px;
    }
}

/* Content */
.middle-outer {
    background: var(--itas-gray);
    color: var(--itas-muted);
    padding: 1.5rem 0 2rem;
}

.mainpage .middle-outer {
    padding: 18px 0 12px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(240px, 1fr);
    gap: 1.5rem;
}

.content-main,
.content-main--wide {
    min-width: 0;
}

.content-main h1:first-child,
.content-main--wide h1:first-child {
    margin-top: 0;
}

.content-main p,
.content-main--wide p,
.sek p {
    text-align: justify;
}

.home-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.home-columns .sek {
    padding: 0 1.25rem;
}

.home-columns .sek:nth-child(2) {
    border-left: 1px solid #ebebeb;
    border-right: 1px solid #ebebeb;
}

.home-columns .sek h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.mainpage .home-columns .sek p {
    margin-bottom: 10px;
}

.home-columns .more {
    float: none;
    display: inline-block;
    margin-top: 0.5rem;
}

.rightcolumn {
    border-left: 1px solid #ebebeb;
    padding-left: 1rem;
    padding-bottom: 1rem;
    align-self: start;
    position: sticky;
    top: 1rem;
}

.rightcolumn h2 {
    clear: both;
    padding-top: 15px;
    margin-bottom: 0;
}

.mainpage .rightcolumn h2,
.mainpage .rightcolumn p {
    margin-bottom: 20px;
}

.rightcolumn p,
.sek p {
    font-size: 11px;
}

.more {
    text-transform: uppercase;
    font-size: 9px;
    color: var(--itas-muted);
    float: right;
}

.more span {
    font-size: 1rem;
}

.data-table {
    width: auto;
    max-width: 100%;
    border: 0 !important;
    margin: 20px 0 !important;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.2rem 0.5rem;
    vertical-align: baseline;
    text-align: left;
    border: 0;
    font-weight: normal;
    background: transparent;
    line-height: 1.42857143;
}

.contact-table th {
    text-align: right;
    white-space: nowrap;
    padding-right: 0.6rem;
    color: inherit;
    width: auto;
    font-weight: bold;
}

.contact-table td {
    text-align: left;
    padding-top: 0.28rem;
}

.company-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.company-contact .contact-table {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.company-contact p {
    text-align: center;
    max-width: 40rem;
}

.log {
    padding: 8px 8px 0;
    vertical-align: middle;
}

.partners-section {
    margin: 1.5rem 0 1.75rem;
}

.partners-section__title {
    margin: 0 0 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #ebebeb;
    color: #555;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.25rem;
}

.partners-grid .log {
    max-height: 64px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    padding: 0.35rem 0.5rem;
}

.partners-grid .log--lg {
    max-height: 88px;
    max-width: 220px;
}

.img_dec,
.img_dec2 {
    border: 1px solid #999;
    border-radius: 10px;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.2);
}

.img_dec2 {
    border-radius: 20px;
}

#menu_turystyka {
    padding: 10px 10px 0;
    margin: 0 0 10px 20px;
    float: right;
    background: #ddd;
    border-radius: 10px;
    border: 1px solid #fff;
}

a.guzik-demo,
a.guzik-rejestracja {
    display: block;
    margin: 0 auto;
    width: 182px;
    height: 47px;
}

a.guzik-demo {
    background: url("../images/turystyka/zobacz_demo.png");
}

a.guzik-rejestracja {
    background: url("../images/turystyka/zarejestruj_sie.png");
}

a.guzik-demo span,
a.guzik-rejestracja span {
    display: none;
}

a.guzik-demo:hover,
a.guzik-rejestracja:hover {
    background-position: 0 -47px;
}

@media (max-width: 991px) {
    .content-grid,
    .home-columns {
        grid-template-columns: 1fr;
    }
    .home-columns .sek:nth-child(2) {
        border: 0;
        border-top: 1px solid #ebebeb;
        border-bottom: 1px solid #ebebeb;
        padding-block: 1rem;
    }
    .rightcolumn {
        border-left: 0;
        border-top: 1px solid #ebebeb;
        padding-left: 0;
        padding-top: 1rem;
        position: static;
    }
    #menu_turystyka {
        float: none;
        margin: 0 0 1rem;
        width: 100%;
    }
}

/* Footer */
.site-footer {
    position: relative;
    background: var(--itas-gray-dark);
    color: #fff;
    font-size: 11px;
    border-top: 3px solid var(--itas-green-dark);
}

.site-footer a {
    color: #fff;
}

.footer-grid {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.65rem 0;
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1.25rem;
    min-width: 0;
}

.footer-main > a {
    display: inline;
    padding: 0;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-right: 72px;
    margin-left: auto;
}

.footer-contact {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
}

.footer-item {
    white-space: nowrap;
}

.go-up {
    position: absolute;
    right: 0;
    top: -30px;
    display: block;
    width: 54px;
    height: 54px;
    background: url("../images/go_up.png") no-repeat center / contain;
    z-index: 5;
}

.authors {
    color: #9c9c9c;
    text-align: center;
    background: #7c7b7b;
    padding: 0.35rem 0;
    font-size: 10px;
}

@media (max-width: 767px) {
    .footer-grid {
        flex-direction: column;
        align-items: flex-start;
        padding-right: 0;
    }
    .footer-right {
        width: 100%;
        padding-right: 72px;
        box-sizing: border-box;
    }
    .contact-table th {
        white-space: normal;
        text-align: left;
        display: block;
        padding-bottom: 0;
    }
    .contact-table td {
        display: block;
        padding-top: 0;
        padding-bottom: 0.6rem;
    }
}
