/* Importing Google font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* VARIABLES CSS */
:root {
    /* Colors */
    /* Color mode HSL(hue, saturation, lightness) */
    --first-color: hsl(24, 33%, 94%);
    --black-color: hsl(0, 0%, 17%);
    --hover-text-color: hsl(46, 52%, 64%);
    --white-color: hsl(0, 0%, 100%);
    --text-color: hsl(28, 14%, 21%);
    --body-color: hsl(147, 26%, 20%);
    --shadow-img: drop-shadow(0 16px 24px hsla(0, 0%, 0%, .2));

    /* Font and typography */
    /* .5rem = 8px | 1rem = 16px ... */
    /* --body-font: "Poppins", sans-serif; */
    /* --second-font: "Poppins", sans-serif; */
    --body-font: "Dmsans", sans-serif;
    --second-font: "Dmsans", sans-serif;
    --biggest-font-size: 3rem;
    --bigger-font-size: 2.5rem;
    --big-font-size: 2rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25;
    --h3-font-size: 1rem;
    --normal-font-size: .938;
    --small-font-size: .813rem;

    /* Font weight */
    --font-regular: 400;
    --font-semi-bold: 600;
    --font-bold: 700;

    /* z index */
    --z-tooltip: 10;
    --z-fixed: 100;
}

/* Responsive typography */
@media screen and (min-width: 1150px) {
    :root {
        --biggest-font-size: 3rem;
        --bigger-font-size: 2.5rem;
        --big-font-size: 2rem;
        --h1-font-size: 1.5rem;
        --h2-font-size: 1.25;
        --h3-font-size: 1rem;
        --normal-font-size: .938rem;
        --small-font-size: .813rem;
    }
}

/* BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* font-family: 'Poppins', sans-serif; */
    font-family: 'Dmsans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body, input, button {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
}

body {
    background-color: var(--body-color);
    color: var(--black-color);
}

input, button {
    border: none;
    outline: none;
}

h1, h2, h3, h4 {
    color: var(--title-color);
    font-weight: var(--font-bold);
    font-family: var(--second-font);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

/* REUSABLE CSS CLASSES */
.container {
    max-width: 1300px;
    margin-inline: 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.section {
    padding-block: 5rem 1rem;
}

.section__title, .section__subtitle {
    text-align: center;
    font-family: var(--second-font);
}

.section__title {
    font-size: var(--big-font-size);
    margin-bottom: 1rem;
}

.section__subtitle {
    display: block;
    font-size: var(--h2-font-size);
    margin-bottom: .25rem;
}

.main {
    overflow: hidden;
}

/*=============== TOP BANNER MOBILE ===============*/
.top-banner {
    background-color: var(--hover-text-color);
    /* background-color: var(--first-color); */
    width: 100%;
    text-align: center;
    padding: 6px 0;
    height: 30px;
    box-sizing: border-box;

    transition: margin-top 0.4s ease;
    
    /* display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: height 0.3s ease, opacity 0.3s ease; */
}

.header.scroll-active .top-banner {
    margin-top: -30px;
}

.top-banner__link {
    /* color: #000; */
    color: var(--first-color);
    font-weight: 600;
    font-size: var(--h2-font-size);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.top-banner i {
    font-size: 1.2rem;
    font-weight: 500;
}

/* HEADER & NAV */

header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: var(--body-color);
    z-index: var(--z-fixed);
    transition: box-shadow .2s;
    /* transition: transform 0.3s ease; */
}

.nav {
    position: relative;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    display: inline-flex;
    align-items: center;
    column-gap: .25rem;
}

.nav__logo__list {
    display: inline-flex;
    flex-direction: column;
    color: var(--first-color);
    font-weight: var(--font-semi-bold);
}

.nav__logo img {
    padding-top: .5rem;
    padding-bottom: .5rem;
    width: 8rem;
}

.nav__toggle, .nav__close {
    color: var(--first-color);
    display: inline-flex;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Navigation for mobile devices */

@media screen and (max-width: 1150px) {
    .nav__menu, .nav__contact {
        position: fixed;
        top: 0;
        right: -100%;
        background-color: var(--body-color);
        width: 80%;
        height: 100%;
        padding: 8rem 2rem 0;
        box-shadow: -4px 0 16px hsla(0, 0%, 0%, .5);
        transition: right .2s;
        z-index: 2000;
    }
}

.nav__list {
    display: flex;
    flex-direction: column;
    row-gap: 2.5rem;
    padding-left: 0;
}

.nav__link, .nav__contact-link {
    color: var(--first-color);
    font-weight: var(--font-semi-bold);
    transition: color .2s;
}

.nav__link:hover, .nav__contact-link:hover {
    color: var(--hover-text-color);
}

.nav__tel, .nav__mail {
    color: var(--hover-text-color);
    font-weight: var(--font-semi-bold);
    text-decoration: none;
}

.nav__tel:hover, .nav__mail:hover {
    color: var(--first-color);
}

.nav__tel i, .nav__mail i {
    font-size: 1.2rem;
    font-weight: 500;
}

.nav__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.nav__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Półprzezroczysty czarny */
    z-index: 1500; /* Niżej niż .nav__menu (2000), ale wyżej niż reszta strony */
    opacity: 0;
    pointer-events: none; /* Ignoruje kliknięcia, gdy jest ukryty */
    transition: opacity .3s ease;
}

/* Klasa aktywowana przez JavaScript */
.nav__overlay.show-overlay {
    opacity: 1;
    pointer-events: auto; /* Reaguje na kliknięcia, gdy jest widoczny */
}

/* Opcjonalnie: zablokowanie przewijania strony, gdy menu jest otwarte */
body.no-scroll {
    overflow: hidden;
}

/* Show menu */
.show-menu {
    right: 0;
    background-color: var(--body-color);
}

/* Add shadow header */
.shadow-header {
    box-shadow: 0 4px 12px hsla(0, 0%, 0%, .4);
}

/* Active link */
.active-link {
    color: var(--hover-text-color);
}

/* HOME */
.home {
    position: relative;
    overflow: hidden;
    height: 92vh;
}

.home__container {
    padding-block: 4rem 1rem;
    row-gap: 3rem;
}

/* .home__container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
} */

.home__data {
    position: relative;
    text-align: left;
}

.home__title {
    font-size: var(--biggest-font-size);
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}

.home__title span {
    color: var(--body-color);
}

.home__description {
    font-size: var(--bigger-font-size);
    margin-bottom: 2rem;
}

.home__description span {
    color: var(--body-color);
}

/* .home__images {
    position: relative;
    justify-self: center;
}

.home__img {
    width: 280px;
    filter: var(--shadow-img);
} */

/* .bg-video {
    position: fixed;
    left: 0;
    top: 0;
    background-size: cover;
    background: no-repeat center;
    user-select: none;
    pointer-events: none;
    height: 100%;
    width: 100%;
} */

.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6);
}

/* BUTTON */
.button1 {
    display: inline-flex;
    color: var(--black-color);
    padding: .5rem 1rem;
    font-weight: var(--font-semi-bold);
    border: 0;
    border-bottom: 1px solid var(--body-color);
    margin-right: 1rem;
    transition: box-shadow .2s;
}

.button2 {
    display: inline-flex;
    background-color: var(--first-color);
    color: var(--body-color);
    padding: 1rem 2rem;
    font-weight: var(--font-semi-bold);
    border-radius: .75rem;
    transition: box-shadow .2s;
}

.button1:hover {
    color: var(--first-color);
    border-color: var(--body-color);
    transition: 0.3s ease;
}

.button2:hover {
    color: var(--first-color);
    background-color: var(--body-color);
    box-shadow: 0 8px 24px hsla(0, 0%, 0%, .2);
    transition: 0.3s ease;
}

/* EXTRA PAGE */
.page-header {
    background: var(--body-color);
    color: var(--first-color);
    padding: 6rem 0 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: var(--bigger-font-size);
    margin-bottom: 1rem;
}

.page-content {
    background: var(--first-color);
    padding-top: 5rem;
    padding-bottom: 4rem;
}

/* .page-content__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
} */

.page-content__container {
    max-width: 460px;
    margin: 0 auto;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.page-content h4 {
    color: var(--body-color);
    font-size: var(--h1-font-size);
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.page-content p {
    font-size: var(--h3-font-size);
    line-height: 1.6;
    margin-bottom: 1.4rem;
    text-align: justify;
}

.page-content ul {
    font-size: var(--h3-font-size);
    list-style: disc;
    line-height: 1.8;
    padding-left: 1.8rem;
    margin-bottom: 1.4rem;
}

/* ABOUT */
#about {
    position: relative;
    background-color: var(--first-color);
    z-index: 2;
    height: auto;
    width: 100%;
    overflow: hidden;
}

/* #about.section {
    padding-block: 0;
    margin: 0;
} */

.about__container {
    display: flex;
    flex-direction: column; /* domyślnie pionowo (mobile) */
    width: 100%;
}

.about__images {
    width: 100%;
    height: 60vh; /* wysokość zdjęcia na mobile */
    overflow: visible;
    order: 2;
}

.about__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.about__data {
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--black-color);
    order: 1;
}

.about__data h3 {
  margin-bottom: 2rem;
}

.about__data h3 span {
  padding: 0.4rem;
  border-bottom: 2px solid var(--body-color);
}

.about__data h1 {
  margin-bottom: 1rem;
  color: var(--body-color);
}

.about__data p {
  margin-bottom: 2rem;
  line-height: 1.6;
  font-size: 1.1rem;
  text-align: center;
}

.button3 {
  display: inline-flex;
  align-self: center;
  background-color: var(--body-color);
  color: var(--first-color);
  padding: 1rem 2rem;
  font-weight: var(--font-semi-bold);
  border-radius: 0.75rem;
  transition: box-shadow 0.2s;
}

.button3:hover {
  color: var(--body-color);
  background-color: var(--first-color);
  box-shadow: 0 8px 24px hsla(0, 0%, 0%, 0.2);
}

/* SERVICES */
.services {
    background-color: var(--first-color);
    display: flex;
    justify-content: center;
    padding: 20px 20px;
}

.services__container {
    width: 100%;
    max-width: none;
    padding-block: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services__container h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 4rem;
}

.services__container h3 span {
  padding: 0.4rem;
  border-bottom: 2px solid var(--body-color);
}

.services__data {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    justify-content: center;
    width: 100%;
    max-width: none;
    margin-bottom: 1.5rem;
}

/* .card {
    width: 400px;
    height: 300px;
    perspective: 1000px;
} */


.card {
    width: 120%;
    max-width: 400px;
    height: 350px;
    perspective: 1000px;
    position: relative;
    overflow: visible;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

/* .card:hover {
    transform: scale(1.05);
} */


.card-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover .card-overlay {
    opacity: 1;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-out;
    transform-style: preserve-3d;
    cursor: pointer;
}

/* .card:hover .card-inner,
.card.flip .card-inner {
    transform: rotateY(180deg);
} */

.card:hover .card-inner{
    transform: scale(1.05) translateY(-5px);
}

.card:hover {
    transform: none;
    /* box-shadow: 0 15px 30px rgba(0,0,0,0.2); */
    box-shadow: none;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 4px 16px hsla(0, 0%, 0%, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding: 20px;
    box-sizing: border-box;
    transition: box-shadow 0.4s ease-out, opacity 0.3s;
}

.card:hover .card-front,
.card:hover .card-back {
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

.card-front {
    flex-direction: column;
    background: var(--body-color);
    color: white;
    font-weight: bold;
    font-size: var(--h1-font-size);
}

.card-front img {
    align-items: center;
    height: 60%;
}

.card-back ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-back li.naglowek-listy {
    margin-bottom: 0px; 
}

.card-back li.odstep-sekcji {
    margin-bottom: 8px;
}

/* .card-back {
    background: white;
    color: var(--body-color);
    transform: rotateY(180deg);
    border: 4px solid var(--body-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    font-size: 0.9rem;
    line-height: 1.3;
    overflow: auto;
} */

.card-back {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: white;
    color: var(--body-color);
    border: 3px solid var(--body-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    display: flex;
    font-size: 1rem;
    line-height: 1.3;
    opacity: 0;
    transition: opacity .2s;
    overflow: auto;
    z-index: 2;
}

.card:hover .card-back {
    opacity: 1;
    /* transform: translateY(-5px); */
}

/* OPINION */
.opinion {
    background-color: var(--body-color);
}

.opinion__container h3 {
    color: white;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.opinion__container h3 span {
    padding: 0.4rem;
    border-bottom: 1px solid var(--first-color);
}

.reviews {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 40px 20px;
    margin-bottom: 5rem;
}

.review-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    max-width: 300px;
    flex: 1 1 300px;
    transition: transform 0.2s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    color: var(--body-color);
    margin-bottom: 8px;
}

.review-stars {
    color: gold;
    margin-bottom: 10px;
}

.review-text {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* .instagram-reel {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 9 / 16;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.instagram-reel iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
} */

/* Otoczka karuzeli potrzebna do pozycjonowania strzałek */
.slider-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* margin-bottom: 2rem; */
}

/* Poziomy kontener z efektem przyciągania (Scroll Snap) */
.reels-slider {
    display: flex;
    width: 100%;
    height: 80vh; /* Wysokość dopasowana do pionowych proporcji 9:16 */
    max-height: 700px;
    overflow-x: auto;
    /* overflow-y: hidden; */
    scroll-snap-type: x mandatory; /* Włącza poziome przyciąganie */
    scroll-behavior: auto;
    padding: 0 calc(50vw - 175px); /* Centruje pierwszą i ostatnią rolkę na ekranie */
    gap: 0; /* Odstęp między rolkami */
    scrollbar-width: none; /* Ukrywa scrollbar w Firefox */
    cursor: grab; /* Zmienia kursor na "łapkę" */
    user-select: none;
    padding-bottom: 60px;
    -webkit-overflow-scrolling: touch;
}

/* Ukrywa scrollbar w Chrome/Safari */
.reels-slider::-webkit-scrollbar {
    display: none;
}

.reels-slider.dragging {
    cursor: grabbing;
}

/* Pojedyncza karta z rolką */
.reel-card {
    position: relative;
    flex: 0 0 80%; /* Stała szerokość pojedynczej rolki */
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    scroll-snap-align: center; /* Przyciąga środek rolki do środka ekranu */
    scroll-snap-stop: always;
    background-color: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    will-change: transform, opacity;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Delikatne zmniejszenie nieaktywnych rolek (opcjonalne) */
.reel-card:not(.active) {
    transform: scale(0.9) translate3d(0, 0, 0);
    opacity: 0.5;
}

.no-transition .reel-card {
    transition: none !important;
}

/* Dopasowanie wideo */
.reel-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Nakładka tekstowa */
.reel-overlay {
    position: absolute;
    bottom: 20px;
    left: 15px;
    right: 15px;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    /* pointer-events: none; */
    z-index: 2;
}

.username {
    display: flex;
    align-items: center;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
    text-decoration: none;
    pointer-events: auto;
    gap: 8px;
}

.profile__image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.username:hover {
    text-decoration: underline;
}

.description {
    font-size: 12px;
    line-height: 1.3;
    pointer-events: none;
}

.nav-btn {
    position: absolute;
    top: 46%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s, opacity 0.2s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.prev-btn { left: calc(50vw - 180px); }
.next-btn { right: calc(50vw - 180px); }

/* --- IKONY PLAY / PAUSE NA ŚRODKU WIDEO --- */
.video-start-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Przyciemnienie filmu przed startem */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.reel-card.active .video-start-overlay {
    opacity: 1;
    visibility: visible;
}

.video-start-overlay i {
    font-size: 3.5rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px; /* Delikatne wyrównanie optyczne trójkąta */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

.video-start-overlay:hover i {
    transform: scale(1.1);
}

/* Klasa ukrywająca nakładkę po uruchomieniu filmu */
.reel-card.started .video-start-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Globalny przycisk głośnika w prawym dolnym rogu galerii */
.mute-global-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
}

.mute-global-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

.reel-card:not(.active) .mute-global-btn {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.video-status-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* CSS rysujący trójkąt Play */
.video-status-icon.play-icon::before {
    content: '';
    box-sizing: border-box;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}

/* CSS rysujący dwie kreski Pause */
.video-status-icon.pause-icon::before {
    content: '';
    width: 16px;
    height: 20px;
    border-left: 5px solid #fff;
    border-right: 5px solid #fff;
}

/* Klasa aktywująca animację pojawienia się ikony */
.video-status-icon.animate {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* INFORMATION */
.info {
    background-color: var(--first-color);
    /* border-top: 20px solid var(--body-color); */
}

.info__container {
    flex-direction: column;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    text-align: center;
}

.info__container h3 {
    color: var(--body-color);
}

.info__button {
    display: inline-flex;
    align-self: center;
    background-color: var(--body-color);
    color: var(--first-color);
    padding: 1rem 2rem;
    margin-bottom: 5rem;
    font-weight: var(--font-semi-bold);
    border-radius: 0.75rem;
    transition: box-shadow 0.2s;
    cursor: pointer;
}

.info__button:hover {
    color: var(--body-color);
    background-color: var(--first-color);
    box-shadow: 0 8px 24px hsla(0, 0%, 0%, .2);
    transition: 0.3s ease;
}

/* CONTACT */
.contact {
    background-color: var(--body-color);
    color: var(--first-color);
    padding: 60px 20px;
    display: flex;
    justify-content: center;
}

.contact__container {
    /* width: 100%; */
    max-width: 1400px;
    display: flex;
    flex-direction: column; /* domyślnie pionowo (mobile) */
    gap: 40px;
    align-items: center;
    text-align: center;
}

/* Kolumna */
.contact__col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* align-items: center; */
    /* margin: 0 auto;
    width: max-content; */
}

.contact__logo {
    width: 120px;
    margin: 0 auto 10px;
}

.contact__name {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
}

.contact__menu,
.contact__legal {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact__menu li,
.contact__legal li {
    margin-bottom: 6px;
}

.contact__menu a,
.contact__legal a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}

.contact__menu a:hover,
.contact__legal a:hover {
    color: white;
}

.contact.section {
    display: block;
}

.contact__contact p {
    margin: 5px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact__contact i {
    font-size: 1.2rem;
    color: var(--first-color-light, #d4d4d4);
}

.contact__contact a {
    color: white;
    text-decoration: none;
}

.contact__contact a:hover {
    color: #ccc;
}

/* .contact__socials {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
} */

/* FOOTER */
/* .footer {
    width: 100%;
    margin-top: 60px; */
    /* margin-bottom: -63px; */
    /* padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center; */
    /* flex-basis: 100%; */
/* } */

/* .footer p {
    color: #ccc;
    font-size: 0.9rem;
    margin: 0;
} */

/* FOOTER */
.footer {
    width: 100%;
    margin-top: 60px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    clear: both; /* Wymusza czyszczenie ewentualnych opływań */
}

.footer p {
    color: #ccc;
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
    padding: 0;
}

.footer p a {
    color: var(--hover-text-color);
    text-decoration: none;
}

.footer p a:hover {
    color: var(--first-color);
}

.footer .contact__socials {
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact__socials a {
    color:  white;
    font-size: 2rem;
    transition: color 0.2s, transform 0.2s;
}

.contact__socials a:hover {
    color: #ccc;
    transform: translateY(-2px);
}

/* .contact__data {
    position: relative;
}

.contact__title {
    text-align: center;
    font-size: var(--bigger-font-size);
}

.contact__title span {
    font-size: var(--biggest-font-size);
    color: var(--first-color);
}

.contact__img {
    filter: var(--shadow-img);
}

.contact__info {
    text-align: center;
}

.contact__subtitle {
    font-size: var(--h3-font-size);
    margin-bottom: .75rem;
}

.contact__social {
    display: flex;
    justify-content: center;
    column-gap: 1rem;
}

.contact__social-link {
    font-size: 1.5rem;
    color: var(--first-color);
    transition: transform .2s;
}

.contact__social-link:hover {
    transform: translateY(-.25rem);
}

.contact__address {
    color: var(--text-color);
    font-style: initial;
    font-weight: var(--font-semi-bold);
} */

/* SCROLL BAR */
::-webkit-scrollbar {
    width: .6rem;
    background-color: hsl(30, 32%, 70%);
}

::-webkit-scrollbar-thumb {
    background-color: hsl(30, 32%, 60%);
}

::-webkit-scrollbar-thumb:hover {
    background-color: hsl(30, 32%, 50%);
}

/* SCROLL UP */
.scrollup {
    position: fixed;
    right: 1rem;
    bottom: -50%;
    background-color: var(--white-color);
    box-shadow: 0 4px 16px hsla(0, 0%, 0%, .1);
    color: var(--black-color);
    display: inline-flex;
    padding: 6px;
    font-size: 1.25rem;
    border-radius: .5rem;
    z-index: var(--z-tooltip);
    transition: bottom .2s, transform .2s;
}

.scrollup:hover {
    transform: translateY(-.5rem);
}

/* Show Scroll Up */
.show-scroll {
    bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px) {
  .container {
    margin-inline: 1rem;
  }

  .home__title, .contact__title {
    font-size: 2rem;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .nav__menu {
    width: 55%;
  }

  .home__container, .about__container {
    grid-template-columns: 400px;
    justify-content: center;
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin-left: auto;
    margin-right: auto;
  }
  
  .section {
    padding-block: 7rem 2rem;
  }

  .top-banner {
    display: none;
  }

  .nav {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr auto 1fr;
    /* justify-content: space-between; */
    height: 4.5rem;
  }

  /* .nav__logo {
    position: absolute;
    left: 1.5rem;
  } */
  
  .nav__logo {
    display: inline-flex;
    align-items: center;
    column-gap: .25rem;
    justify-self: start;
  }
  
  /* .nav__logo,
  .nav__contact {
    flex: 0 0 250px;
  } */

  .nav__logo img {
    padding-top: .5rem;
    padding-bottom: .5rem;
    width: 8rem;
  }

  .nav__menu {
    justify-self: center;
    white-space: nowrap;
  }

  /* .nav__menu {
    flex: 1;
    display: flex;
    justify-content: center;
  } */

  .nav__toggle, .nav__close, 
  .nav__tel, .nav__mail {
    display: none;
  }

 .nav__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 0.25rem;
    justify-self: end;
  }

  .nav__contact i {
    color: var(--first-color);
  }

  .nav__contact-link {
    color: var(--first-color);
    font-weight: var(--font-semi-bold);
    transition: color .2s;
  }

  .nav__contact-link:hover {
    color: var(--hover-text-color);
  }

  .nav__list {
    display: flex;
    flex-direction: row;
    column-gap: 3rem;
    justify-content: center;
    align-items: center;
    padding-left: 6rem;
  }

  .home__container {
    grid-template-columns: 620px 460px;
    align-items: left;
    column-gap: 2rem;
    padding-block: 8rem 3rem;
  }

  .home__data {
    text-align: initial;
  }

  .home__title {
    margin-bottom: 1rem;
    position: relative;
    z-index: 5;
  }

  .home__title span {
    font-size: 72px;
  }

  .home__description {
    margin-bottom: 3.5rem;
    margin-right: 2rem;
  }

  .bg-video {
    height: 100%;
  }

  .home__img {
    width: 460px;
    position: relative;
    z-index: 5;
  }

  .page-header h1 {
    font-size: var(--biggest-font-size);
    margin-bottom: 1rem;
  }

  .page-content__container {
    max-width: 1000px;
  }

  #about {
    height: 100vh;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .about__container {
    flex-direction: row;
    height: 100%;
    column-gap: 1.5rem;
  }

  .about__images {
    flex: 1;
    height: 100%;
    width: 100%;
    order: 1;
    display: flex;
    justify-content: right;
    align-items: center;
  }

  .about__img {
    height: 100%;
    width: 600px;
    object-fit: cover;
    object-position: right;
    border-radius: 12px;
    box-shadow: 0 8px 16px hsla(0, 0%, 0%, .2);
  }

  .about__data {
    flex: 1;
    padding: 4rem 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    order: 2;
  }

  .about__data p {
    max-width: 600px;
    text-align: left;
  }

  .button3 {
    align-self: flex-start;
  }

  .services__data {
    flex-direction: row; /* obok siebie */
    flex-wrap: nowrap;   /* 4 kafelki w jednym rzędzie */
    justify-content: center; 
  }

  .card {
    width: 400px;
  }

  .reels-slider {
    scroll-snap-type: none;
    cursor: default;
    gap: 20px;
    padding-left: calc(50vw - 165px);
  }

  .reels-slider.dragging {
    cursor: default;
}

  .reel-card {
    flex: 0 0 320px;
    width: 320px;
  }

  .nav-btn {
    top: 50%;
    width: 70px;
    height: 70px;
    font-size: 28px;
  }

  /* .nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
  } */

  .prev-btn { left: calc(50vw - 250px); }
  .next-btn { right: calc(50vw - 250px); }

  /* .info {
    border-top: 20px solid var(--body-color);
  } */

  .contact {
    padding: 60px 20px 10px 20px;
  }

  .contact__container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    align-items: flex-start;
    gap: 60px;
    text-align: left;
  }

  .contact__col:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact__logo {
    width: 200px;
    margin: 0 auto 10px auto;
    display: block;
  }

  .contact__contact p {
    justify-content: flex-start;
  }

  /* .contact__socials {
    justify-content: flex-end;
    margin: -30px 60px 0 0;
  } */

  .footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .footer p {
    grid-column: 2;
    margin: 0;
  }

  .footer .contact__socials {
    grid-column: 3;
    justify-content: flex-end;
    margin: 0 60px 0 0;
    padding: 0;
  }
}