/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Montserrat", sans-serif;
  background: #000;
  background-attachment: fixed;
  background-repeat: no-repeat;
  /* background-position: 0% 140%; */
  background-size: contain;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* HEADER */
.header {
  background: #000;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

/* Logo */
.header__logo img {
  width: 200px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Menu na desktopie */
.header__nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1vw, 24px);
  white-space: nowrap;
}

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__item a[href*="aquael"] {
  display: none !important;
}
.nav__item a[href*="aquael"]::after {
  display: none !important;
}
@media(min-width:970px){
  .nav__item:nth-of-type(5){
    display: none !important;
  }
}
.nav__item:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: #009FE3;
  margin: 0 30px;
}

.nav__item a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .5px;
  transition: color .2s ease;
}

.nav__item a:hover {
  color: #009FE3;
}

.nav__item:last-child a {
  background: #009FE3;
  color: #fff;
  text-transform: none;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav__item:last-child a::after {
  content: "";
  background: url('/wp-content/plugins/aquael/media/Grafiki/download.svg');
  height: 24px;
  width: 24px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Flagi */
.header .lang-switcher {
  position: relative;
  display: none;
  align-items: center;
  overflow: hidden;
  width: 30px;
  transition: width .35s ease;
  cursor: pointer;
  margin-left: 16px;
  padding: 12px 0;
}

.header .lang-switcher a {
  display: inline-block;
  line-height: 0;
}

.header .lang-switcher a img {
  width: 24px;
  height: auto;
}

.header .header__nav .lang-switcher a:first-child {
  position: relative;
  z-index: 2;
}

.header .header__nav .lang-switcher a:not(:first-child) {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity .35s ease, transform .35s ease;
  margin-left: 6px;
}

.header .header__nav .lang-switcher:hover {
  width: 260px;
}

.header  .header__nav .lang-switcher:hover a:not(:first-child) {
  opacity: 1;
  transform: translateX(0);
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.hamburger:focus {
  outline: none;
}

/* Menu na urządzenia mobilne */
.mobile-nav {
  display: none;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 90px; /* Dopasuj do wysokości headera */
  left: 0;
  right: 0;
  background: #000;
  padding: 20px;
}
.mobile-nav .nav__list {
  flex-direction: column;
  align-items: center;
}
.mobile-nav .nav__item {
  margin: 10px 0;
}
.mobile-nav .lang-switcher {
  width: 100%;
  justify-content: center;
}
.mobile-nav .nav__item a {
  font-size: 16px;
  font-weight: 600;
}

/* Wyświetlanie hamburgera na urządzeniach mobilnych */
@media (max-width: 768px) {
  .header__nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav.active {
    display: flex;
  }
}
@media (min-width: 1200px) {
  .header__logo {
    margin-left: 50px;
  }
}


/* HERO */
.hero {
  padding: 2rem;
  background: url(/wp-content/plugins/aquael/media/Grafiki/header-baner.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  margin: -1px;
}
.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}
.hero__text {
    flex: 1 1 40%;
    margin-bottom: 12rem;
}
.hero__title {
  font-weight: 700;
  font-size: 64px;
  line-height: 100%;
}
.hero__subtitle {
    font-size: 36px;
    font-weight: 500;
}
.hero__image {
    flex: 1 1 60%;
    text-align: center;
}
.hero__image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 1rem;
}

/* SLIDER MAIN */
.slider-main {
    padding: 2rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}
.slider-main__wrapper img { width: 100%; border-radius: 0.5rem; height: auto; }

  .slider-main .slick-next:before {
    content: "›";
    font-size: 40px;
    line-height: 0;
    color: #fff;
  }
  .slider-main .slick-prev:before {
 content: "›";
  display: inline-block;       /* <- ważne, żeby transform zadziałał */
  font-size: 40px;
  line-height: 1;
  color: #fff;
  transform: rotate(180deg);
  transform-origin: 50% 50%;
  -webkit-transform: rotate(180deg); /* dla starszych przeglądarek, opcjonalnie */
  vertical-align: middle;
  }
/* ABOUT */
.about {
    padding: 2rem;
    text-align: left;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.about__title {
    font-size: 36px;
    font-weight: 400;
    line-height: 100%;
}
.about__text {
    font-size: 20px;
    font-weight: 400;
    line-height: 22px;
}

/* CATEGORY SECTIONS fullpage */
.category {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.category__title {
    text-align: center;
    font-size: 64px;
    font-weight: 700;
    min-height: 103px;
}

.category__desc {
   font-size: 20px;
  line-height: 22px;
  font-weight: 400;
}

.category__separator {
    width: 2px;
    background: #fff;
    height: 90%;
    margin: auto 0;
    min-height: 85vh;
}

.category__content {
    display: flex;
    gap: 60px;
    position: relative;
    height: 100%;
}
@media(min-width:1100px){
  .category__content {
    min-height: 85vh;
  }
}
.category__single {
  flex: 1 1 50%;
  display: flex;
}

.category__single-content {
  max-height: 80%;
  aspect-ratio: 1/1;
  width: auto;
  margin: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  background: linear-gradient(0deg, rgba(12, 29, 66, 0.5) 39.16%, rgba(31, 74, 168, 0.5) 58.1%);
  border-radius: 6px;
}

.category__content img {
  width: auto;
  height: 80%;
  max-width: 400px;
  margin: 0 auto;
}

.category__slider {
  flex: 1 1 50%;
  display: flex;
}

.category__slider .slick-vertical {
    max-width: 450px;
    margin: auto;
  }

.slider-vertical__item {
  padding: 2rem;
  text-align: left;
  margin: 1rem;
  aspect-ratio: 1/1;
  /* background: linear-gradient(0deg, rgba(12, 29, 66, 0.5) 39.16%, rgba(31, 74, 168, 0.5) 58.1%); */
}

.slider-vertical__item:not(.slick-current) {
  transform: scale(0.6);
}

.slider-vertical__item img {
  max-width: 300px; margin: 0 auto;
}
.slider-vertical__title {
  font-size: 32px;
  margin: .5rem 0 0;
  font-weight: 400;
  line-height: 100%;
}
@media(max-width:450px){
  .slider-vertical__title {
      font-size: 26px;
  }
}
.slider-vertical__more {
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  margin-top: 7px;
}

/* zmienne – możesz skorygować wartości */
.slider-vertical {
  --slot-h: 400px;
  --peek: 40px;
  --overlap: -20px;
  --shrink: .9;
}

/* tor slicka */
.slider-vertical .slick-list {
  overflow: hidden;
  padding: var(--peek) 0 0 !important;
}

.slider-vertical .slick-track {
  display: block;
}

/* SLOT (to widzi Slick; nie skalujemy) */
.slider-vertical .slick-slide {
  height: var(--slot-h) !important;
  margin: var(--overlap) 0;
  position: relative;
  pointer-events: none;
}

/* KWADRAT wewnątrz slotu */
.slide-card {
  position: absolute;
  inset: 0;
  margin: auto;
  height: 100%;
  /* kwadrat z wysokości slotu */
  aspect-ratio: 1/1;
  max-width: 100%;
  border-radius: 6px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(0deg, rgba(12, 29, 66, .5) 39.16%, rgba(31, 74, 168, .5) 58.1%);
  transition: transform .35s ease, opacity .35s ease, filter .35s ease;
  pointer-events: auto;
}

/* skalowanie tylko karty (odstęp slotów bez zmian) */
.slider-vertical .slick-slide:not(.slick-current) .slide-card {
  transform: scale(var(--shrink));
  opacity: .55;
  filter: saturate(.85);
}

.slider-vertical .slick-current .slide-card {
  transform: scale(1);
  opacity: 1;
  filter: none;
}

/* zawartość */
.slide-card img {
  max-width: 78%;
  max-height: 72%;
  margin: 0 auto auto;
  display: block;
}

.modal-info {
  cursor: pointer;
}
/* Right description */

.category__description {
    flex: 1 1 50%;
    padding-left: 1rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
}

.category__subtitle {
  font-size: 47px;
  line-height: 64px;
  font-weight: 400;
}

.category__text {
      font-size: 20px;
    line-height: 22px;
    font-weight: 400;
    overflow-y: visible;
}

html {
  scroll-behavior: smooth;
}

section.category {
  /* height: calc(100vh - 40px); */
  scroll-margin-top: 40px;
  overflow: hidden;
  height: auto;
}

@media (max-height:1100px) {
  section.category {
    height: auto;
    scroll-margin-top: 20px;
  }
  
  /* .category__content {
    height: calc(100vh - 90px);;
  } */
}

/* PRODUCT MODAL */
.product-modal {
  position: absolute;
  top: 2%;
  right: 0;
  width: 48%;
  height: 96%;
  border-radius: 18px;
  background: linear-gradient(360deg, #0C1D42 26.37%, #1F4AA8 58.1%);
  /* display: none; */
  visibility: hidden;
  flex-direction: column;
  z-index: 5;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.product-modal.active {
  display: flex;
  visibility: visible;
  transform: translateX(0);
  opacity: 1;
}

.product-modal__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem 2rem;
  overflow: hidden;
  justify-content: center;
}

.product-modal__close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

.product-modal__gallery {
  flex-shrink: 0;
  margin-bottom: 1rem;
  max-height: 60%;
}
.product-modal__image {
  display: flex;
  height: 70%;
}
.product-modal__image img {
  width: auto;
  max-height: 300px;
  height: 100%;
  border-radius: 0.5rem;
}
.slider-thumbs img { width: 100%; cursor: pointer; border-radius: 0.25rem; }

.product-modal__thumbs .slick-slide img {
    max-width: 80%;
}
.product-modal__info {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 4px solid #fff;
  padding: 0px 0 0 24px;
  margin: 10px 0;
}
.product-modal__info.hidden { display: none; }

.product-modal__info h3 {
  font-size: 28px;
}

.product-modal__info p {
  font-size: 16px;
}

.product-modal__table {
  width: 100%;
  border-collapse: collapse;
  margin:  0;
  border:0px;
}
.product-modal__table tr:nth-child(2n+1) {
  background-color: #FFFFFF26;
}
.product-modal__table th,
.product-modal__table td {
  /* border: 1px solid #555; */
  padding: 0.5rem;
  text-align: center;
  font-size: 14px;
}
.product-modal__table td {
  text-align: left;
}
/* Buttons */
.product-modal__actions {
  display: flex;
  gap: 18px;
  padding-right: 5px;
}
.btn {
  background: #2458C8;
  color: #fff;
  text-align: center;
  width: 100%;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 12px 24px;
  cursor: pointer;
  border: 0px;
  border-radius: 4px;
  font-family: "Montserrat", sans-serif !important;
}
.btn:hover { opacity: 0.8; }

/* Vertical slider arrows top/bottom */
.slider-vertical .slick-prev, .slider-vertical .slick-next {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}
.slider-vertical .slick-prev {
  top: -20px;
  transform: translateX(-50%) rotate(-90deg);
}
.slider-vertical .slick-next {
  top: auto;
  bottom: 10px;
  transform: translateX(-50%) rotate(90deg);
}
.slider-vertical .slick-prev:before {
  content: "›";
  font-size: 40px;
  line-height: 0;
  color: #fff;
}
.slider-vertical .slick-next:before {
  content: "›";
  font-size: 40px;
  line-height: 0;
  color: #fff;
}

/* AppInfo */
.app-info {
  max-width: 1400px;
  height: 340px;
  margin: 4rem;
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 2rem 6rem;
  background: linear-gradient(90deg, #0C1D42 39.16%, #1F4AA8 58.1%);
}

.app-info__phone-img {
  flex: 1 1 20%;
  height: 100%;
  object-fit: contain;
}

.app-info__download-container {
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.app-info__logo {
  width: 100%;
  height: auto;
}

.app-info__badges {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.app-info__badges a {
  transition: transform 0.2s ease;
}

.app-info__badges a:hover {
  transform: scale(1.05);
}

.app-info__badges img {
  height: 48px;
  width: auto;
  display: block;
}

.app-info__download-btn {
  background: #009FE3;
  color: #fff;
  text-align: center;
  width: 100%;
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  padding: 9px 31px;
  border-radius: 6px;
  cursor: pointer;
}

.app-info__title {
  flex: 1 1 50%;
  font-size: 48px;
  font-weight: 400;
  line-height: 64px;
}

/* ========= FOOTER ========= */
.footer {
  width: 100%;
  background: #000 url(/wp-content/plugins/aquael/media/Grafiki/footer-wave.webp);
  background-repeat: no-repeat;
  background-position: bottom right;
}

.footer__topline {
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.65);
}

.footer__inner {
  max-width: 1400px;
  min-height: 220px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  font-weight: 300;
}

.footer__brand img {
  width: 180px;
  height: auto;
  display: block;
}

/* kolumny */
.footer__col {
  line-height: 1.9;
}

.footer__col--contact {
  justify-self: end;
  text-align: left;
}

.footer__addr {
  font-size: 18px;
  line-height: 1.2;
}

.footer__link {
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  text-underline-offset: 3px;
  transition: opacity .2s ease;
}

.footer__link:hover {
  opacity: .8;
}

.footer__contact {
  font-size: 18px;
}
.footer__contact a {
  color:white;
  text-decoration: none;
}
/* social */
.footer__social {
  display: flex;
  flex-direction: column;
}

.footer__social-list {
  display: flex;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
  vertical-align: middle;
}

.footer__social-link {
  display: inline-flex;
  justify-content: center;
  height: 20px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.footer__social-link:hover {
  transform: translateY(-2px);
}
.footer__social-label {
  text-align: center;
}
/* RESPONSIVE */
@media (max-width: 1300px) {
  .app-info__title, .category__subtitle {
    font-size: 36px;
    line-height: 36px;
  }
}
@media (max-width: 970px) and (min-width: 768px) {
  .category__title {
    min-height: 40px;
  }
  .hamburger {
    display: flex;
  }
  .header__nav {
    display: none;
  }
  .mobile-nav.active {
    display: flex;
  }
  h2 {
    font-size: 26px !important;
  }
  p {
    font-size: 16px !important;
  }
  .category__content {
    gap: 20px;
    justify-content: space-between;
  }
  .category__single {
    max-width: 48%;
  }
  .category__single-content {
    width: 100%;
  }
  .category__description {
    max-width: 48%;
  }
  .app-info {
    height: auto;
    gap: 20px;
    flex-wrap: wrap;
    margin: 2rem;
    padding: 2rem 3rem;
    border-radius: 10px;
  }
  .app-info__phone-img {
    max-width: 160px;
  }
  .footer__inner {
    justify-content: space-around;
    flex-wrap: wrap;
  }

}
@media (max-width: 768px) {
  .nav__item:not(:last-child)::after {
    display: none;
  }
  .hero-content { display: flex; flex-direction: column;  }
  .category__content { flex-direction: column-reverse; border-left: none; height: 100%; position: static; gap: 40px;}
  .category__content img {
    max-width: 250px;
  }
  .category__content .category__separator { display: none; min-height: none;}
  .category__content .product-modal { position: fixed; height: 100%; z-index: 10000;}
  
  .category__slider {display: block; border-right: none; border-bottom: 2px solid #fff; padding-bottom: 1rem; }
  .category__slider .slider-vertical__item {
    width: 100% !important;
    height: auto !important;
  }
  .product-modal { width: 100%; }
  .app-info, .footer__inner {
    flex-direction: column;
    height: auto;
  }
  .aquael-landing section {
    max-width: 100% !important;
  }
  section.category {
    scroll-margin-top: 50px;
  }
  .hero__text {
    margin-bottom: 2rem;
  }
  .hero__title {
    font-size: 2rem;
  }
  .hero__subtitle {
    font-size: 1rem;
  }
  .slider-main {
    padding: 2rem 4rem;
  }

  .about__title {
    font-size: 22px;
  }
  .about__text, .about__text-bold {
    font-size: 14px;
  }
  .category {
    gap: 20px;
    padding: 3rem 2rem;
  }
  .category__title {
    font-size: 28px;
  }
  .category__desc {
    font-size: 14px;
  }
  .category__subtitle {
    font-size: 22px;
  }
  .category__description {
      padding-left: 0;
  }
  .category__text {
    font-size: 14px;
  }
  .category__single {
    border-bottom: 2px solid;
    padding-bottom: 16px;
  }
  .category__single-content {
    width: 100%;
  }
  #appInfo {
    margin: 2rem;
    max-width: 90% !important;
    padding: 2rem;
    gap: 20px;
  }
  .app-info__phone-img {
    max-height: 260px;
  }
  .app-info__download-container {
    width: 100%;
  }
  .app-info__title {
    font-size: 22px;
    text-align: center;
  }
  .app-info__badges img {
    height: 40px;
  }
  .footer__addr {
    text-align: center;
    font-size: 16px;
  }
  .footer__links, .footer__contact, .footer__social-label {
    text-align: center;
  }
  .footer__contact {
    font-size: 18px;
    text-align: center;
  }
  .category__content .product-modal {
    max-width: 96%;
    max-height: 96%;
    left: 50%;
  }
  .product-modal.active {
    transform: translateX(-50%);
  }
  .product-modal__info {
    padding: 14px 0 0 14px;
  }
  .btn {
    font-size: 13px;
    padding: 12px 12px;
  }
  .product-modal__info p {
    font-size: 14px;
  }
}

/* ===== Lang switcher – dropdown ≤1200px ===== */
@media (min-width: 970px) and (max-width: 1300px) {
  .header .lang-switcher {
    position: relative;
    width: auto;
    /* wyłącz „rozszerzanie szerokości” z desktopu */
    overflow: visible;
    /* potrzebne dla absolutnie pozycjonowanej listy */
    padding: 0;
  }
  .nav__item:not(:last-child)::after {
    margin: 0 15px;
  }
  /* nadpisanie desktopowych hover-efektów */
  .header .header__nav .lang-switcher:hover {
    width: auto;
  }

  .header .header__nav .lang-switcher a:not(:first-child) {
    opacity: 1;
    transform: none;
    margin-left: 0;
  }

  /* przycisk (wstrzykiwany przez JS jako .lang-toggle) */
  .lang-toggle {
    height: 100%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 6px 10px;
    color: #fff;
    cursor: pointer;
    line-height: 0;
  }

  .lang-toggle img {
    width: 24px;
    height: auto;
  }

  .lang-toggle .caret {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    transition: transform .2s ease;
    margin-left: 2px;
  }

  .lang-switcher.open .lang-toggle .caret {
    transform: rotate(-135deg);
  }

  /* rozwijane flagi */
  .lang-switcher .flags {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 1001;
  }

  .lang-switcher.open .flags {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .lang-switcher .flags a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
  }

  .lang-switcher .flags a:hover {
    background: rgba(255, 255, 255, .08);
  }

  /* w mobilnym menu wyrównaj do środka */
  .mobile-nav .lang-switcher {
    width: 100%;
    display: flex;
    justify-content: center;
  }
}
