/* ===== Reset & Custom Properties ===== */
:root {
  --color-dark: #1B3A2A;
  --color-primary: #2D5A3D;
  --color-light: #3D7A52;
  --color-cream: #F5F2EB;
  --color-cream-dark: #E8E4DA;
  --color-white: #FFFFFF;
  --color-text: #333333;
  --color-text-light: #5a5a5a;
  --color-accent: #C4A265;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(27, 58, 42, 0.06);
  --shadow: 0 4px 24px rgba(27, 58, 42, 0.08);
  --shadow-hover: 0 12px 40px rgba(27, 58, 42, 0.14);
  --transition: 0.3s ease;
  --container: 1200px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Quicksand', sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ===== Utilities ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section__title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.section__subtitle {
  color: var(--color-text-light);
  margin-bottom: 40px;
  max-width: 600px;
}

.btn {
  display: inline-block;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.4;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(27, 58, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: var(--header-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.header__logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-cream);
  letter-spacing: 0.5px;
}

.header__nav-list {
  display: flex;
  gap: 32px;
}

.header__nav-link {
  color: rgba(245, 242, 235, 0.8);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
  position: relative;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.header__nav-link:hover {
  color: var(--color-cream);
}

.header__nav-link:hover::after {
  width: 100%;
}

.btn--cta {
  background: var(--color-accent);
  color: var(--color-dark);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.btn--cta:hover {
  background: #d4b275;
  box-shadow: 0 4px 16px rgba(196, 162, 101, 0.3);
}

.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.header__hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-cream);
  transition: transform var(--transition), opacity var(--transition);
}

.header__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(160deg, rgba(27, 58, 42, 0.75) 0%, rgba(30, 68, 48, 0.65) 40%, rgba(45, 90, 61, 0.7) 100%),
    url('images/others/hero.avif') center 65% / cover no-repeat;
  padding-top: var(--header-height);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--color-cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero__content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-block;
  background: rgba(196, 162, 101, 0.15);
  border: 1px solid rgba(196, 162, 101, 0.3);
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 20px;
  border-radius: 40px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero__title {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--color-cream);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: rgba(245, 242, 235, 0.75);
  margin-bottom: 44px;
  font-weight: 400;
  line-height: 1.6;
}

.btn--hero {
  background: var(--color-accent);
  color: var(--color-dark);
  padding: 16px 44px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(196, 162, 101, 0.3);
}

.btn--hero:hover {
  background: #d4b275;
  box-shadow: 0 8px 32px rgba(196, 162, 101, 0.4);
}

/* ===== O mnie ===== */
.about {
  background: var(--color-cream);
}

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

.about__row + .about__row {
  margin-top: 72px;
}

.about__row--reverse {
  direction: rtl;
}

.about__row--reverse > * {
  direction: ltr;
}

.about__text h2 {
  text-align: left;
}

.about__text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 28px;
  margin-bottom: 8px;
}

.about__text h3:first-child {
  margin-top: 0;
}

.about__text p {
  margin-bottom: 12px;
  color: var(--color-text);
}

.about__image {
  display: flex;
  justify-content: center;
}

.about__photo-wrapper {
  position: relative;
  width: 460px;
  height: 460px;
}

.about__photo-wrapper::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px dashed rgba(45, 90, 61, 0.25);
}

.about__photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--color-primary);
  box-shadow: var(--shadow);
}

/* ===== Certyfikaty / Carousel ===== */
.certs__intro {
  max-width: 800px;
  margin: 0 0 16px;
  color: var(--color-text-light);
}

.certs__intro:last-of-type {
  margin-bottom: 40px;
}

.carousel {
  max-width: 525px;
  margin: 0 auto;
}

.carousel__container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.carousel__container::-webkit-scrollbar {
  display: none;
}

.carousel__img {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border-radius: var(--radius-md);
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.carousel__btn {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.carousel__btn:hover {
  background: var(--color-light);
  box-shadow: 0 2px 12px rgba(45, 90, 61, 0.25);
}

.carousel__dots {
  display: flex;
  gap: 8px;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-cream-dark);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}

.carousel__dot.active {
  background: var(--color-primary);
  transform: scale(1.2);
}

/* ===== Oferta ===== */
.offer {
  background: var(--color-cream);
  position: relative;
}

.offer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--color-white);
  clip-path: ellipse(55% 100% at 50% 0%);
}

.offer__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 920px;
  margin: 0 auto;
}

.offer__card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
  border: 2px solid transparent;
}

.offer__card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.offer__card--featured {
  border-color: var(--color-accent);
}

.offer__card--featured::before {
  content: 'Popularne';
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--color-accent);
  color: var(--color-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.offer__card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.offer__card-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(45, 90, 61, 0.08);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  width: fit-content;
}

.offer__card-desc {
  color: var(--color-text-light);
  margin-bottom: 12px;
  flex-grow: 1;
}

.offer__card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--color-cream);
}

.offer__card-duration {
  font-weight: 500;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.offer__card-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
}

.offer__card-note {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.btn--card {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 14px 24px;
  width: 100%;
}

.btn--card:hover {
  background: var(--color-light);
  box-shadow: 0 4px 16px rgba(45, 90, 61, 0.2);
}

.offer__card--featured .btn--card {
  background: var(--color-accent);
  color: var(--color-dark);
}

.offer__card--featured .btn--card:hover {
  background: #d4b275;
  box-shadow: 0 4px 16px rgba(196, 162, 101, 0.3);
}

/* ===== FAQ ===== */
.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-cream-dark);
}

.faq__item:first-child {
  border-top: 1px solid var(--color-cream-dark);
}

.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Quicksand', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-dark);
  text-align: left;
  transition: color var(--transition);
}

.faq__question:hover {
  color: var(--color-primary);
}

.faq__icon {
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform var(--transition);
  color: var(--color-primary);
}

.faq__item.active .faq__icon {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq__answer p {
  padding: 0 0 22px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-dark);
  color: var(--color-cream);
  padding: 120px 0 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--color-white);
  clip-path: ellipse(55% 100% at 50% 0%);
}

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

.footer__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--color-cream);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(245, 242, 235, 0.7);
  font-weight: 500;
  transition: all var(--transition);
}

.footer__link:hover {
  color: var(--color-cream);
  transform: translateX(4px);
}

.footer__link svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.footer__link:hover svg {
  opacity: 1;
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 52px;
}

.footer__info p {
  color: rgba(245, 242, 235, 0.6);
}

.btn--footer {
  background: var(--color-accent);
  color: var(--color-dark);
  padding: 14px 32px;
  margin-top: 20px;
  width: fit-content;
  font-weight: 700;
}

.btn--footer:hover {
  background: #d4b275;
  box-shadow: 0 4px 16px rgba(196, 162, 101, 0.3);
}

.footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  margin-top: 48px;
  border-top: 1px solid rgba(245, 242, 235, 0.1);
  font-size: 0.9rem;
  color: rgba(245, 242, 235, 0.45);
}

.footer__privacy-link {
  color: rgba(245, 242, 235, 0.45);
  transition: color var(--transition);
}

.footer__privacy-link:hover {
  color: var(--color-cream);
}

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(27, 58, 42, 0.97);
  backdrop-filter: blur(12px);
  padding: 20px;
  border-top: 1px solid rgba(245, 242, 235, 0.1);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__content {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner__content p {
  color: rgba(245, 242, 235, 0.8);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-banner__content a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn--cookie-accept {
  background: var(--color-accent);
  color: var(--color-dark);
  padding: 10px 24px;
  font-weight: 700;
}

.btn--cookie-accept:hover {
  background: #d4b275;
}

.btn--cookie-reject {
  background: transparent;
  color: rgba(245, 242, 235, 0.7);
  padding: 10px 24px;
  border: 1px solid rgba(245, 242, 235, 0.2);
}

.btn--cookie-reject:hover {
  color: var(--color-cream);
  border-color: rgba(245, 242, 235, 0.5);
}

/* ===== Mobile nav overlay ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.nav-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Media Queries ===== */

/* Mobile */
@media (max-width: 767px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100dvh;
    background: var(--color-dark);
    padding: 100px 32px 32px;
    transition: right var(--transition);
    z-index: 999;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
  }

  .header__nav.open {
    right: 0;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 28px;
  }

  .header__nav-link {
    font-size: 1.15rem;
    color: var(--color-cream);
  }

  .header__cta {
    display: none;
  }

  .header__hamburger {
    display: flex;
  }

  .hero {
    min-height: 70vh;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__badge {
    font-size: 0.8rem;
  }

  .about__row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about__row + .about__row {
    margin-top: 48px;
  }

  .about__row--reverse {
    direction: ltr;
  }

  .about__image {
    order: -1;
  }

  .about__text {
    text-align: center;
  }

  .about__text h2 {
    text-align: center;
  }

  .about__photo-wrapper {
    width: 260px;
    height: 260px;
  }

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

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__info {
    align-items: center;
  }

  .footer__list {
    align-items: center;
  }

  .footer__link:hover {
    transform: none;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .cookie-banner__content {
    flex-direction: column;
    text-align: center;
  }

  .section {
    padding: 64px 0;
  }

  .section__title {
    font-size: 1.7rem;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .about__row {
    gap: 32px;
  }

  .about__photo-wrapper {
    width: 320px;
    height: 320px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .carousel__container {
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}