:root {
    font-size: 16px;

    --color-base: #333;
    --color-base-light: #777;
    --color-border: #dadada;
    --color-title: #000;
    --color-link: #00b000;
    --color-link-hover: #009000;
    --color-box: #b6f5b6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

a {
    color: var(--color-link);
    text-decoration: none;
}


a:hover,
a:active {
    color: var(--color-link-hover);
    text-decoration: underline;
}

html {
    display: flex;
    height: 100%;
}

body {
    background-color: #ffffff;
    color: var(--color-base);
    display: flex;
    flex: 1;
    flex-direction: column;
}

h1, h2, h3 {
    color: var(--color-title);
    margin-bottom: 2rem;
}

img {
    max-width: 100%;
}

.hero {
    flex: 1;
}

.container {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;

    @media screen and (max-width: 1024px) {
        padding: 0 1rem;
    }
}

header {
    box-shadow: 0 0 10px rgba(0,0,0, 0.15);
    padding: 1.5rem 0;

    @media screen and (max-width: 1024px) {
        padding: 1rem 0;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;

    @media screen and (max-width: 1024px) {
        flex-direction: column;
    }
}

.logo {
    display: block;
}

.logo img {
    @media screen and (max-width: 1024px) {
        width: 160px;
        height: auto;
    }
}

.logo:hover {
    transform: scale(1.2);
}

.contact {
    margin: 0 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-base);

    @media screen and (max-width: 1024px) {
        display: none;
    }
}

.contact:hover {
    text-decoration: none;
}

.contact strong {
    font-size: 1.6rem;
    color: var(--color-link);
}

nav {
    display: flex;
    gap: 10px;
}

nav a {
    display: inline-block;
    padding: 1rem 0;
    min-width: 120px;
    text-align: center;
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    border-bottom: 4px solid transparent;

    @media screen and (max-width: 1024px) {
        padding: 1rem 1.6rem;
        min-width: 0;
    }
}

nav a:hover,
nav a.active {
    font-weight: bold;
    border-bottom: 4px solid var(--color-link-hover);
    text-decoration: none;

    @media screen and (max-width: 1024px) {
        font-weight: normal;
    }
}

.btn {
    display: inline-block;
    line-height: 1.2em;
    font-size: 1.6rem;
    font-weight: bold;
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    background: #fff;
    box-shadow: 0 0 15px rgba(0,0,0, 0.25);

    @media screen and (max-width: 1024px) {
        font-size: 1.2rem;
    }
}

.btn-cta {
    background-color: var(--color-link);
    color: #fff;
}

.btn-cta:hover {
    text-decoration: none;
    background-color: var(--color-link-hover);
    color: #fff;
}

.hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
    padding: 2rem;
}

@media screen and (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding: 1rem 1rem 2rem;
        justify-content: space-between;
        padding-top: 6rem;
    }
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-image: url('cigi-fun-hry-1.jpg?v=4');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    animation: slideshow 15s infinite;
}

@keyframes slideshow {
    0%   { background-image: url('cigi-fun-hry-1.jpg?v=4'); }
    14%  { background-image: url('cigi-fun-hry-0.jpg?v=4'); }
    28%  { background-image: url('cigi-fun-hry-0.jpg?v=4'); }
    42%  { background-image: url('cigi-fun-hry-2.jpg?v=4'); }
    56%  { background-image: url('cigi-fun-hry-5.jpg?v=4'); }
    70%  { background-image: url('cigi-fun-hry-3.jpg?v=4'); }
    84%  { background-image: url('cigi-fun-hry-4.jpg?v=4'); }
    100% { background-image: url('cigi-fun-hry-1.jpg?v=4'); }
}

.hero-buttons {
    text-align: center;
    margin-bottom: 8rem;

    @media screen and (max-width: 1024px) {
        margin-bottom: 0rem;
    }
}

.hero-buttons .btn {
    margin: 0 1rem 2rem;
}

.hero-text {
    width: 90%;
    max-width: 680px;
    margin: 0 auto 8rem;
    text-align: center;
    font-size: 2.6rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 5px rgba(0,0,0,1);

    @media screen and (max-width: 1024px) {
        font-size: 1.8rem;
        margin-bottom: 4rem;
    }
    
    @media screen and (max-width: 768px) {
        font-size: 1.4rem;
        margin-bottom: 2rem;
        line-height: 1.3;
    }
}

.service-areas {
    text-align: center;
    margin-top: 3rem;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    margin: 3rem auto 0;
}

.service-areas h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ff6b35;
}

.areas-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.area {
    font-size: 1.1rem;
}

.location-info {
    font-size: 1rem;
    color: #ddd;
    margin: 0;
}

@media screen and (max-width: 768px) {
    .service-areas {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    .service-areas h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .area {
        font-size: 0.95rem;
    }
    
    .location-info {
        font-size: 0.9rem;
    }
}

.games {
    flex: 1;
    padding: 2rem;
}

.games-text {
    text-align: center;
    margin-bottom: 4rem;
    margin-top: 4rem;
    font-size: 2rem;

    @media screen and (max-width: 1024px) {

    }
}

.games-perex {
    margin-bottom: 4rem;
    padding: 2rem 3rem;
    background-color: var(--color-box);
}

.games-perex p {
    line-height: 1.6em;
}

.games-list {
    margin: 0 0 4rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    position: relative;
}


.games-list:after {
    content: '';
    width: 100%;
    height: 1px;
    background: #fff;
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
}

.games-list > li {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    flex: 0 0 calc(100%/3 - 3rem);

    @media screen and (max-width: 1224px) {
        flex: 0 0 calc(100%/3 - 3rem);
    }
    @media screen and (max-width: 980px) {
        flex: 0 0 calc(100%/2 - 3rem);
    }
    @media screen and (max-width: 600px) {
        flex: 0 0 100%;
    }
}

.games-list .image {
    padding-bottom: 74.83%;
    margin-bottom: 2rem;
    position: relative;
}

.games-list a:nth-child(n+2) {
    display: none;
}

.games-list .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transform: translateY(60px);
    filter: grayscale(100%);
    animation: fadeIn 1s forwards, colorIn 1s 2s forwards;
}

.games-list li:nth-of-type(1) img {
    animation-delay: 0s, 2s;
}
.games-list li:nth-of-type(2) img {
    animation-delay: 0.5s, 2.5s;
}
.games-list li:nth-of-type(3) img {
    animation-delay: 1s, 3s;
}
.games-list li:nth-of-type(4) img {
    animation-delay: 1.5s, 3.5s;
}
.games-list li:nth-of-type(5) img {
    animation-delay: 2s, 4s;
}
.games-list li:nth-of-type(6) img {
    animation-delay: 2.5s, 4.5s;
}
.games-list li:nth-of-type(7) img {
    animation-delay: 3s, 5s;
}
.games-list li:nth-of-type(8) img {
    animation-delay: 3.5s, 5.5s;
}
.games-list li:nth-of-type(9) img {
    animation-delay: 4s, 6s;
}
.games-list li:nth-of-type(10) img {
    animation-delay: 4.5s, 6.5s;
}
.games-list li:nth-of-type(11) img {
    animation-delay: 5s, 7s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes colorIn {
    to {
        filter: grayscale(0%);
    }
}

.games-list .image img:nth-child(n+2) {
    display: none;
}

.games-list .info p {
    margin-bottom: 2rem;
    line-height: 1.6em;
}

.games-list .info ul {
    margin: 0 0 0 2rem;
    padding: 0;
    list-style-type: disc;
    line-height: 1.6em;
}

footer {
    background: #f9f9f9;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    padding: 0 1rem;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.footer-content p {
    margin: 0.5rem 0;
}

.footer-icons a {
    display: inline-block;
}

.footer-icons svg {
    width: 4rem;
    height: 4rem;

    @media screen and (max-width: 1024px) {
        width: 3rem;
        height: 3rem;
    }
}

.footer-icons svg:hover {
    transform: scale(1.2);
}

.footer-contact {
    line-height: 1.4em;
}


.footer-contact .created {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-base-light);
    font-size: 0.8rem;
}

#lightbox-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
}
#lightbox-overlay.hidden {
    display: none;
}
#lightbox-image {
    max-width: 90%;
    max-height: 90%;
    transition: all 0.3s ease-in-out;
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

#lightbox-prev,
#lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: white;
    font-size: 60px;
    border: none;
    cursor: pointer;
    padding: 20px;
    user-select: none;
}

#lightbox-prev {
    left: 20px;
}
#lightbox-next {
    right: 20px;
}

.price-container {
    background: #f9f9f9;
    padding: 40px 20px;
    font-family: 'Montserrat', sans-serif;
}

.price-container.price-container-light {
    background: #fff;
    flex: 1;
}

.price-container h1, .price-container h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #222;
}

.price-container p {
    text-align: center;
    margin-bottom: 2rem;
}

.price-container h2 {
    margin-top: 2rem;
}

.price-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.price-list .item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;

    @media screen and (max-width: 440px) {
        display: block;
    }
}

.price-list .item:hover {
    transform: scale(1.01);
}

.price-list .desc {
    display: flex;
    flex-direction: column;
    font-size: 1.1rem;
    color: #333;
}

.price-list .desc span {
    font-size: 0.95rem;
    color: #888;
    margin-top: 4px;
}

.price-list .price {
    font-weight: bold;
    font-size: 1.3rem;
    color: #2ecc71;
    white-space: nowrap;

    @media screen and (max-width: 440px) {
        margin-top: 1rem;
    }
}