*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #0a2540;
  --ocean: #0d4f6e;
  --sea: #1a7a9e;
  --aqua: #2aabca;
  --foam: #e8f4f8;
  --white: #ffffff;
  --sand: #f5f0e8;
  --text: #1a2e3b;
  --text-muted: #4a6572;
  --shadow: 0 4px 24px rgba(10, 37, 64, 0.12);
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3 {
  font-family: "Merriweather", Georgia, serif;
  line-height: 1.25;
}

a {
  color: var(--ocean);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--aqua);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Nav */
.header {
  color: var(--white);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.header-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1);
  animation: heroCrossfade 14s ease-in-out infinite;
  will-change: opacity, transform;
}

.header-bg-slide--1 {
  background-image: url("images/hero-seals.jpg");
}

.header-bg-slide--2 {
  background-image: url("images/hero-boat.jpg");
  animation-delay: -7s;
}

.header-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(10, 37, 64, 0.82) 0%, rgba(13, 79, 110, 0.72) 45%, rgba(26, 122, 158, 0.65) 100%),
    linear-gradient(to top, rgba(10, 37, 64, 0.5) 0%, transparent 50%);
  z-index: 1;
}

@keyframes heroCrossfade {
  0%, 42% {
    opacity: 1;
    transform: scale(1);
  }
  50%, 92% {
    opacity: 0;
    transform: scale(1.08);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-bg-slide {
    animation: none;
  }

  .header-bg-slide--1 {
    opacity: 1;
  }

  .header-bg-slide--2 {
    opacity: 0;
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 9999;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Merriweather", serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
}

.logo img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--white);
  padding: 3px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.logo:hover {
  color: var(--foam);
}

.logo:hover img {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  min-width: 44px;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Hero */
.hero {
  padding: 4rem 1.5rem 6rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-logo {
  display: block;
  width: clamp(120px, 28vw, 160px);
  height: auto;
  margin: 0 auto 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.6rem;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
}

.hero-tag {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  margin: 0.25rem;
}

.btn-primary {
  background: var(--aqua);
  color: var(--white);
  border-color: var(--aqua);
}

.btn-primary:hover {
  background: #2399b5;
  border-color: #2399b5;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 3;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--foam);
}

.section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--navy);
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: -0.5rem auto 2.5rem;
}

.note {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: rgba(26, 122, 158, 0.08);
  border-left: 4px solid var(--sea);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* About */
.about-grid {
  /*display: grid;
  /*grid-template-columns: 1.2fr 1fr;*/
  /*gap: 2.5rem;*/
  /*align-items: start;*/
  display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 20px 0;
    
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.features {
  list-style: none;
  margin-top: 1.5rem;
}

.features li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  color: var(--text);
}

.features li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--aqua);
  font-size: 0.6rem;
  top: 0.85rem;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--aqua);
}

.about-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
  color: var(--sea);
}

.about-card-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.about-card h3 {
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Cards */
.cards {
  display: grid;
  /*grid-template-columns: repeat(3, 1fr);*/
  gap: 1.5rem;
  
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
}

.card h3 {
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.card-duration {
  color: var(--sea);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.card p:last-child {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-featured {
  border: 2px solid var(--aqua);
  transform: scale(1.03);
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--aqua);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  white-space: nowrap;
}

/* Seals */
.seals-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.seals-grid p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.seals-facts {
  background: linear-gradient(135deg, var(--navy), var(--ocean));
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
}

.seals-facts h3 {
  margin-bottom: 1rem;
  color: var(--foam);
}

.seals-facts ul {
  list-style: none;
}

.seals-facts li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.95rem;
}

.seals-facts li:last-child {
  border-bottom: none;
}

/* Gallery */
.gallery {
  max-width: 900px;
  margin: 0 auto;
}

.gallery-frame {
  position: relative;
  background: var(--white);
  border-radius: calc(var(--radius) + 4px);
  padding: 0.75rem;
  box-shadow: 0 12px 40px rgba(10, 37, 64, 0.18);
  border: 1px solid rgba(42, 171, 202, 0.2);
}

.gallery-viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
}

.gallery-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.gallery-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(10, 37, 64, 0.85), transparent);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(10, 37, 64, 0.75);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.gallery-btn:hover {
  background: rgba(10, 37, 64, 0.95);
  transform: translateY(-50%) scale(1.05);
}

.gallery-btn--prev {
  left: 1.25rem;
}

.gallery-btn--next {
  right: 1.25rem;
}

.gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 0 0.25rem;
}

.gallery-dots {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(26, 122, 158, 0.3);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.gallery-dot.is-active {
  background: var(--aqua);
  transform: scale(1.25);
}

.gallery-counter {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.contact-grid--single {
  grid-template-columns: 1fr;
  max-width: 480px;
  margin: 0 auto;
}

/* Pricing */
.pricing-table {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pricing-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--foam);
  align-items: center;
}

.pricing-row:last-child {
  border-bottom: none;
}

.pricing-header {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
}

.pricing-row span:last-child {
  font-weight: 700;
  color: var(--ocean);
  text-align: right;
}

.pricing-header span:last-child {
  color: var(--white);
}

.pricing-highlight {
  background: rgba(42, 171, 202, 0.08);
}

.pricing-highlight span:last-child {
  color: var(--aqua);
  font-size: 1.1rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-item {
  margin-bottom: 1.75rem;
}

.contact-label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.contact-item p {
  color: var(--text-muted);
}

.contact-item a {
  font-weight: 600;
}

.contact-form {
  background: var(--foam);
  padding: 2rem;
  border-radius: var(--radius);
}

.contact-form h3 {
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #c5dce6;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--aqua);
}

.contact-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.9rem;
}

/* Responsive — tablet */
@media (max-width: 992px) {
  .about-grid,
  .seals-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-featured {
    transform: none;
  }

  .contact-grid {
    gap: 2rem;
  }
}

/* Responsive — mobile */
@media (max-width: 768px) {
  .nav {
    padding: 0.75rem 1rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--navy);
    padding: 0.5rem 1rem 1.25rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    gap: 0;
    box-shadow: var(--shadow);
    max-height: calc(100dvh - 4rem);
    overflow-y: auto;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0.5rem;
    font-size: 1rem;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    padding: 2.5rem 1rem 4.5rem;
  }

  .hero-tag {
    letter-spacing: 0.08em;
    font-size: 0.75rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0;
    text-align: center;
    min-height: 48px;
    line-height: 1.2;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .hero-wave {
    height: 50px;
  }

  .section {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .section-intro {
    margin-bottom: 2rem;
    font-size: 0.95rem;
  }

  .cards,
  .contact-grid {
    /*grid-template-columns: 1fr; */
  }

  .card {
    padding: 1.5rem 1.25rem;
  }

  .card-featured {
    order: -1;
  }

  .about-card,
  .seals-facts,
  .contact-form {
    padding: 1.5rem;
  }

  .pricing-row {
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    gap: 0.5rem;
  }

  .pricing-row span:last-child {
    font-size: 0.95rem;
  }

  .footer {
    padding: 1.5rem 1rem;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    font-size: 0.85rem;
  }

  .gallery-frame {
    padding: 0.5rem;
  }

  .gallery-btn {
    width: 40px;
    height: 40px;
  }

  .gallery-btn--prev {
    left: 0.75rem;
  }

  .gallery-btn--next {
    right: 0.75rem;
  }

  .gallery-slide figcaption {
    font-size: 0.85rem;
    padding: 2rem 1rem 0.85rem;
  }

  .gallery-footer {
    flex-direction: column;
    align-items: center;
  }
}

/* Responsive — małe telefony */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .cards {
    gap: 1rem;
  }

  .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }

  .pricing-table {
    background: transparent;
    box-shadow: none;
    max-width: none;
  }

  .pricing-header {
    display: none;
  }

  .pricing-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 0.75rem;
    padding: 1rem 1.15rem;
    border-bottom: none;
  }

  .section-alt .pricing-row {
    background: var(--white);
  }

  .pricing-name {
    font-weight: 700;
    color: var(--navy);
    font-size: 1rem;
  }

  .pricing-time::before {
    content: "Czas: ";
    font-weight: 400;
    color: var(--text-muted);
  }

  .pricing-price {
    text-align: left !important;
    font-size: 1.15rem !important;
    color: var(--ocean) !important;
  }

  .pricing-price::before {
    content: "Cena: ";
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-muted);
  }

  .pricing-highlight .pricing-price {
    color: var(--aqua) !important;
    font-size: 1.25rem !important;
  }

  .note {
    font-size: 0.875rem;
    padding: 0.85rem 1rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
  }
}


