:root {
    --sphere-color: #F8F1E9;
    --sherpe-text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
    --sherpe-background-color-before: rgba(248, 241, 233, 0.8);
    --background-color-about: #FDFAF6;
    --border-color-profile-img: #F8F1E9;
    --background-color-contact: #FDFAF6;
    --footer-contact-conotainer-background: rgba(248, 241, 233, 0.15);
    --footer-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    --color-default: #1F2520;
    --polaroid-caption-color: #333333;
    --gallery-container-background-color: #FFFFFF;
    --polaroid-background-color: #FFFFFF;
    --polaroid-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    --polaroid-border-color: #E5E5E5;
    --polaroid-box-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.25);
    --modal-background-color: rgba(0, 0, 0, 0.9);
    --modal-thumbnail-active-border-color: #EECB8A;
    --modal-prev-next-color: #F8F1E9;
    --modal-prev-next-background-color: rgba(0, 0, 0, 0.6);
    --modal-close-color: #F8F1E9;
    --hero-btn-box-shadow: 0 10px 25px rgba(238, 203, 138, 0.5);
    --hero-btn-hover-box-shadow: 0 15px 30px rgba(238, 203, 138, 0.6);
    --pricing-table-background-color: #FFFFFF;
    --pricing-table-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    --pricing-table-border-bottom-color-th-td: #E5E5E5;
    --pricing-table-th-color: #F8F1E9;
    --princing-table-tr-child-even-background: #F9FAFB;
    --pricing-table-tr-hover-background: rgba(238, 203, 138, 0.15);
    --princing-table-tr-background-color: #FFFFFF;
    --pricing-table-border-color: #E5E5E5;
    --box-shadow-sphere: 0 0 20px rgba(0, 0, 0, 0.25), inset 5px 5px 20px rgba(255, 255, 255, 0.5), inset -5px -5px 20px rgba(0, 0, 0, 0.25);
    --filter-sphere: drop-shadow(0 0 3px rgba(0, 0, 0, 0.25));
    --footer-text-color: #F8F1E9;
    --footer-background-color: #1F2520;
}

.header__logo-img:hover {
    transform: scale(1.05);
}

@media (max-width:697px) {
    .header__inner {
        gap: 1rem;
    }
}

.navbar__social {
    display: flex;
    align-items: center;
}

.navbar__social-link {
    display: inline-block;
}

.navbar__social-icon {
    width: 30px;
    height: 30px;
    fill: #fff;
}

.navbar__link:hover {
    color: gold;
}

.navbar__dropdown {
    position: relative;
    text-align: center;
}

.navbar__dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444;
    list-style: none;
    min-width: 150px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
    border-radius: 8px;
}

.navbar__dropdown:hover .navbar__dropdown-menu {
    display: block;
}

.navbar__dropdown-item {
    padding: .5rem 1rem;
    text-align: left;
}

.toggleBtnPosition {
    position: absolute;
    top: 15px;
    right: 15px;
}

.header-backgroundToggle {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: var(--background-color-header);
}

.responsive_container {
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.navbar__dropdown-link {
    color: #fff;
    text-decoration: none;
    display: block;
    font-size: .9rem;
    font-family: var(--font-main);
    transition: .3s;
    padding: .5rem;
    border-radius: 8px;
}

.navbar__dropdown-link:hover {
    background-color: #555;
    color: gold;
}

.navbar__flag a {
    display: flex;
}

.navbar__flag img {
    width: 35px;
    height: 25px;
    cursor: pointer;
}

.nav_border {
    border-radius: 25vh;
    border: 1px solid var(--color-primary);
    padding: .5rem 1rem;
    transition: .3s;
}

.nav_border:hover {
    background: var(--background-color-header);
}

.navbar__toggle {
    display: none;
    cursor: pointer;
    color: #fff;
    font-size: 1.5rem;
    padding-bottom: 3px;
}

.navbar__menu--active {
    display: flex;
}

@media (max-width: 768px) {
  .navbar__toggle {
    display: block;
  }
  .nav_border {
    border: 0px;
  }
  .navbar__menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
  }
  .navbar__menu--active {
    display: flex;
  }
  .navbar__item {
    margin: 0.5rem 0;
  }
  .navbar__dropdown-menu {
    position: static;
    background-color: #555;
    width: 100%;
    text-align: center;
  }
  .navbar__flag {
    margin-right: 1rem;
  }
  .nav_border:hover {
    background: transparent;
  }
}

.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
    transition: transform .3s ease;
}

.scroll-top-btn:hover {
    transform: scale(1.1);
}

.sphere {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 50%;
    box-shadow: var(--box-shadow-sphere);
    position: relative;
    overflow: hidden;
    filter: var(--filter-sphere);
}

.sphere::before {
    content: "";
    position: absolute;
    top: 10%;
    left: 10%;
    width: 25%;
    height: 25%;
    background: var(--sherpe-background-color-before);
    border-radius: 50%;
    filter: blur(6px);
    z-index: 1;
}

.sphere .fa-arrow-up {
    color: var(--sphere-color);
    font-size: 24px;
    text-shadow: var(--sherpe-text-shadow);
    z-index: 2;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.scroll-top-btn:hover .sphere {
    animation: pulse 1s infinite;
}

.flag-cz {
    background-image: url(https://obracaj.cz/assets/media/pl_flag.svg);
    background-size: cover;
    text-align: center;
    background-position: center;
}

.flag-pl {
    background-image: url(https://obracaj.cz/assets/media/cz_flag.svg);
    background-size: cover;
    text-align: center;
    background-position: center;
}

footer {
    position: relative;
    overflow: hidden;
}

.footer__privacy {
    text-align: center;
    background-color: var(--footer-background-color);
    padding: 1rem;
    color: var(--footer-text-color);
}

.footer_contact-map {
    background: url('/assets/media/mapa.png');
    width: 100%;
    height: 300px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

@media (max-width:768px) {
    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* .hero img:nth-of-type(1) {
    animation-delay: 0s;
}

.hero img:nth-of-type(2) {
    animation-delay: 2s;
}

.hero img:nth-of-type(3) {
    animation-delay: 4s;
}
*/
.hero img.active {
    opacity: 1;
    z-index: 1;
} 

.hero-dots-container {
    width: 100%;
    height: 50px;
    display: flex;
    position: absolute;
    bottom: -30px;
    max-width: 1200px;
    left: 50%;
    transform: translate(-50%, -50px);
    z-index: 2;
    align-items: center;
    justify-content: center;
}

.hero-dot {
    width: 25px;
    height: 25px;
    background-color: var(--color-primary);
    margin: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.1s ease;
}

.hero-dot:hover {
    transform: scale(1.1);
}

.hero-dot.active .hero-dot-inner {
    background-color: #000;
}

.hero-dot-inner {
    width: 10px;
    height: 10px;
    background-color: transparent;
    transition: background-color 0.3s, transform 0.3s;
    border-radius: 25vh;
}

.hero_arrow-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 100%;
    display: flex;
    height: 40px;
    justify-content: space-between;
    align-items: center;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.hero__description,
.hero__hours {
    flex: 1 1 350px;
}

.hero__info-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    position: relative;
}

.hero__info-title::after {
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--color-accent);
    bottom: -5px;
    left: 0;
}

.hero__text {
    font-size: 1.1rem;
    color: var(--color-dark);
    line-height: 1.8;
}

.hero__content button {
    background-color: transparent;
    border: none;
}

.gallery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1rem;
    background-color: var(--gallery-container-background-color);
}

.gallery-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary-dark);
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    width: 100%;
    padding: 1rem;
    justify-content: center;
    justify-items: center;
}

.gallery-item {
    width: 300px;
    height: 300px;
    background: var(--polaroid-background-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--polaroid-box-shadow);
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--polaroid-box-shadow-hover);
}

.gallery-img {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 8px 8px 0 0;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-background-color);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    max-height: 90%;
}

.modal-image {
    width: 100%;
    max-width: 800px;
    height: 74vh;
    max-height: 74vh;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.modal-thumbnails {
    max-width: 800px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.modal-thumbnail {
    width: 80px;
    height: 80px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s, border 0.3s;
}

.modal-thumbnail.active {
    opacity: 1;
    border: 2px solid var(--modal-thumbnail-active-border-color);
}

.modal-prev, .modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--modal-prev-next-background-color);
    color: var(--modal-prev-next-color);
    border: none;
    font-size: 2rem;
    padding: 0.2rem 1rem;
    cursor: pointer;
    border-radius: 50%;
}

.modal-prev {
    left: 1rem;
}

.modal-next {
    right: 1rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--modal-close-color);
    font-size: 2rem;
    cursor: pointer;
    background: var(--modal-prev-next-background-color);
    border-radius: 50%;
    padding: 0.5rem;
}

.garden-container {
    width: 100%;
    padding: 0 1.5rem 0 1.5rem;
    display: flex;
    background-color: rgba(255, 0, 0, 0);
    display: flex;
    flex-direction: column;
}

.garden-container-content {
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    justify-content: space-around;
}

.garden-container-text {
    text-align: center;
    width: 33%;
    display: flex;
    align-items: center;
    padding: 2rem;
    font-size: 1.2rem;
    font-weight: 400;
    flex-direction: column;
}

.garden-container h2 {
    padding-bottom: .5rem;
    padding-top: 1rem;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary-dark);
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.modals {
    width: 100%;
    height: 100vh;
    background-color: rgba(13, 13, 13, 0.78);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 2rem 0rem;
    display: block;
}

.modals-content {
    position: absolute;
    max-width: 450px;
    width: 100%;
    height: 596px;
    background: radial-gradient(circle, #201f1f 0%, #000000 80%);
    display: flex;
    flex-direction: column;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding-bottom: 10px;
}

.close-container {
    width: 35px;
    height: 35px;
    position: absolute;
    top: -13px;
    right: -15px;
    cursor: pointer;
    background-color: rgb(131, 121, 121);
    border-radius: 50%;
    display: flex;
}

.modals-header {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modals-text-content {
    width: 100%;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.modals-text-content h2 {
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    color: yellow;
    font-size: 2.5rem;
}

.modals-text-content p {
    background-color: white;
    color: black;
    padding: 6px;
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    margin-top: 8px;
    text-align: center;
}

.modals-img-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modals-img-container img {
    animation: pulse 3s infinite ease-in-out;
    transform-origin: center;
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-top: -5px;
}

.modals-text-content2 {
    font-family: "Open Sans", sans-serif;
    font-weight: 100;
    color: yellow;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: -25px;
}

.modals-text-content3 {
    font-family: "Open Sans", sans-serif;
    font-weight: 100;
    color: white;
    font-size: 0.9rem;
    display: flex;
    justify-content: flex-start;
    text-align: left;
    padding: 1rem 2rem;
}

.modals-logo-img {
    max-width: 170px;
    width: 100%;
    height: auto;
}

svg {
    width: 180px;
    height: 400px;
    display: block;
    margin: auto;
    overflow: visible;
}

.pix_container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.nav-container {
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

.garden-grill-section {
    padding: 80px 20px;
    background-color: #fdfaf6;
    max-width: 1400px;
    margin: 0 auto;
}

.section-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.header_flag-container {
    width: 50px;
    height: 30px;
}

.garden-content {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-around;
}

.grill-content {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}


.garden-container-text {
    box-shadow: rgba(136, 165, 191, .48) 6px 2px 16px 0, rgba(255, 255, 255, .8) -6px -2px 16px 0;
    padding: 1rem;
    background: #fff;
    border-radius: 15px;
}

.extrovka {
    width: 100%;
    height: 100%;
    margin-top: 5rem;
    background-image: url(https://obracaj.cz/assets/media/extrovka.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
}

.img-garden {
    background-image: url(https://obracaj.cz/assets/media/zahradka.png);
    width: 43%;
    height: 300px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.img-gril {
    background-image: url(https://obracaj.cz/assets/media/gril.png);
    width: 43%;
    height: 300px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.extrovka__overlay {
    position: absolute;
    inset: 0;
    background: var(--hero-overaly-background-color);
    z-index: 1;
}

.extrovka__container {
    display: flex;
    flex-direction: column;
}

.extrovka-title {
    text-align: center;
    font-size: 2.5rem;
    color: #fff;
}

.extrovka__subtitle {
    padding-top: 25px;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--hero-subtitle-text-color);
    text-shadow: var(--hero-subtitle-text-shadow);
}

.extrovka__content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
    animation: fadeIn 1.5s ease-in-out;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    text-align: center;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.row.reverse {
    grid-template-columns: 1fr 1fr;
}

.row.reverse .text-column {
    order: 2;
}

.row.reverse .image-column {
    order: 1;
}

.text-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.text-column h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary-dark);
}

.text-column p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-muted);
}

.image-column img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--box-shadow-card);
    transition: transform 0.3s ease;
}

.image-column img:hover {
    transform: scale(1.02);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease-out forwards;
}

@media (max-width: 1024px) and (max-height: 600px) {
  .modals-content {
    height: 560px;
  }
  .modals-img-container img {
    width: 250px;
  }
}
@media (max-width: 510px) {
  .modals-content {
    width: 360px;
  }
  .modals-text-content3 {
    padding: 0.3rem 1rem;
  }
}

@media (max-width: 1024px) {
  .hero__title {
    font-size: 3.5rem;
  }
  .hero__subtitle {
    font-size: 1.4rem;
  }
}

@media (max-width: 998px) {
  .img-gril {
    width: 62%;
    margin-top: 50px;
    background-size: cover;
  }
  .img-garden {
    width: 62%;
    margin-top: 50px;
    margin-bottom: 50px;
    background-size: cover;
  }

    .garden-container-text {
    width: 54%;
  }
  .garden-container-text h2 {
    padding: 0;
  }
  .grill-content {
    display: flex;
    flex-direction: column;
  }
  .garden-content {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
  }
  .garden-container-content {
    flex-direction: column;
  }
  .grill-content p {
    padding: 0;
  }
  .gallery-wrapper {
    width: 100%;
  }
  .gallery-container {
    overflow-x: auto;
    padding: 3rem 0em 0rem;
  }
  .gallery-title {
    position: absolute;
  }
  .gallery {
    display: flex;
    gap: 1.5rem;
    animation: scroll-x 15s linear infinite;
    padding: 5rem 0rem 3rem;
  }
  .gallery-img {
    height: 180px;
  }
  .gallery-item {
    flex: 0 0 auto;
    width: 250px;
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
  }
  @keyframes scroll-x {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

}

@media (max-width: 768px) {
  .hero__title {
    font-size: 2.5rem;
  }
  .hero__subtitle {
    font-size: 1.2rem;
  }
  .hero__btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
  .hero__info {
    flex-direction: column;
    gap: 2rem;
    bottom: 1rem;
    padding: 1.5rem;
  }
  .header__extras {
    flex-direction: column;
    gap: 1rem;
  }
    .row, .row.reverse {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .row.reverse .text-column,
  .row.reverse .image-column {
    order: 0;
  }
  .text-column h2 {
    font-size: 2rem;
  }
  .text-column p {
    font-size: 1rem;
  }
}
@media (max-width: 690px) {
  .hero__hours {
    right: auto !important;
    bottom: 100px !important;
  }
  .hero__container {
    margin: -90px auto;
  }

    .header__extras {
    margin-right: 35px;
  }
  .header__inner {
    gap: 1rem;
  }
}
@media (max-width: 500px) {
  .logo {
    justify-content: center;
    padding-left: 0;
  }
  .hero__subtitle {
    margin-bottom: 1.5rem;
  }
  .hero__title {
    font-size: 1.9rem !important;
    margin-top: 40px;
  }

    .img-gril {
    width: 90%;
    margin-top: 50px;
    background-size: cover;
  }
  .img-garden {
    width: 90%;
    margin-top: 50px;
    margin-bottom: 50px;
    background-size: cover;
  }

  .garden-container-text {
    width: 90%;
  }

  .navbar__dropdown {
    width: 100%;
  }

  .navbar__dropdown-menu {
    min-width: none;
  }
}

@media (max-width: 380px) {
  .modals-content {
    width: 315px;
  }
}
