:root {
  --bg-color: #ffffff;
  --text-color: #333333;
  --border-color: #eaeaea;
  --ndi-bg: #f5f5f5;
  --ndi-text: #444444;
  --nabywcy-bg: #e8f5e9;
  --nabywcy-title: #2e7d32;
  --ndi-orange: #f15a24;
  --ndi-red: #c8102e;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  line-height: 1.8;
  background-color: var(--bg-color);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
}

.navbar {
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 20px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

.logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.morska-brand {
  font-size: 1.55rem;
  font-weight: 600;
  color: #2c2c2c;
}

.nabywcy-label {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ndi-orange);
}

/* Menu */
.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--ndi-orange);
}

/* Hamburger */
.hamburger {
  display: none;
  width: 30px;
  height: 18px;
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #333;
  display: block;
  transition:
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.08s ease;
  transform-origin: center;
  will-change: transform, opacity;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
  bottom: 0;
}

/* Hamburger open (turn into X) */
.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 0 20px;
  flex-direction: column;
  border-top: 1px solid var(--border-color);
  z-index: 999;
}

/* show mobile menu when open */
.mobile-menu.open {
  display: flex;
  animation: slideDown 180ms ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-6px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Mobile menu item dividers and spacing */
.mobile-menu .nav-link {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition:
    background 0.15s,
    color 0.15s;
}

.mobile-menu .nav-link:hover,
.mobile-menu .nav-link:focus {
  color: var(--ndi-orange);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .navbar-container {
    flex-wrap: nowrap;
  }
  .brand {
    width: auto;
    justify-content: flex-start;
  }
}

.container {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px 60px;
}

header {
  text-align: center;
  margin-bottom: 60px;
}

header h1 {
  font-size: 2.15rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: #000;
  text-align: center;
}

header p {
  font-size: 1.1rem;
  color: #555;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.manifesto {
  margin-bottom: 80px;
}

.manifesto h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 30px;
  color: #000;
}

.manifesto p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  text-align: justify;
}

.faq-section {
  margin-top: 40px;
}

.faq-title {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 30px;
  color: #000;
}

.faq-item {
  border-top: 1px solid var(--border-color);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border-color);
}

.faq-header {
  padding: 25px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  background: transparent;
}

.faq-header:hover h3 {
  color: #000;
}

.faq-header h3 {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-color);
  padding-right: 20px;
  margin: 0;
  transition: color 0.2s;
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.faq-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #333;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.faq-body {
  padding-bottom: 30px;
}

.box-ndi {
  background-color: var(--ndi-bg);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.box-ndi h4 {
  color: #000;
  margin-bottom: 15px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.box-ndi p {
  color: var(--ndi-text);
  margin-bottom: 15px;
}

.box-ndi ul {
  margin-left: 20px;
  margin-bottom: 15px;
  color: var(--ndi-text);
}

.box-nabywcy {
  background-color: var(--nabywcy-bg);
  padding: 25px;
  border-radius: 4px;
}

.box-nabywcy h4 {
  color: var(--nabywcy-title);
  margin-bottom: 15px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.box-nabywcy p {
  margin-bottom: 15px;
  text-align: justify;
}

.box-nabywcy ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.box-nabywcy li,
.box-ndi li {
  margin-bottom: 8px;
}

.box-nabywcy p:last-child,
.box-ndi p:last-child,
.box-ndi ul:last-child {
  margin-bottom: 0;
}

.faq-item.active .faq-content {
  max-height: 3000px;
  transition: max-height 0.6s ease-in;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Documents Section */
.documents-section {
  margin: 80px 0 40px;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}

.document-card {
  background: white;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  padding: 24px;
  display: flex;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  align-items: center;
}

.document-card:hover {
  border-color: var(--ndi-orange);
  box-shadow: 0 8px 25px rgba(241, 90, 36, 0.12);
  transform: translateY(-3px);
}

.doc-icon {
  font-size: 42px;
  flex-shrink: 0;
  width: 60px;
}

.doc-info h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  line-height: 1.35;
}

.doc-info p {
  color: #666;
  font-size: 0.98rem;
  margin-bottom: 12px;
}

.download-btn {
  color: var(--ndi-orange);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .documents-section {
    margin: 40px 0 0;
  }
  .documents-grid {
    grid-template-columns: 1fr;
  }
}

footer {
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
  color: #888;
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
}

/* Documents Page */
.documents-section-page {
  margin: 0 0 100px;
}

.documents-section-page h1 {
  text-align: center;
  font-size: 2.1rem;
  margin-bottom: 12px;
  line-height: 2.5rem;
}

.section-desc {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
  color: #555;
  font-size: 1.05rem;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(360px, 1fr)
  ); /* Side by side on big screens */
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
}

.document-card {
  background: white;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 26px;
  display: flex;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  align-items: flex-start;
}

.document-card:hover {
  border-color: var(--ndi-orange);
  box-shadow: 0 10px 25px rgba(241, 90, 36, 0.12);
  transform: translateY(-4px);
}

.doc-icon {
  font-size: 48px;
  flex-shrink: 0;
  margin-top: 4px;
}

.doc-info h3 {
  font-size: 1.22rem;
  margin-bottom: 8px;
  line-height: 1.35;
}

.doc-date {
  color: #777;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.download-btn {
  color: var(--ndi-orange);
  font-weight: 600;
  display: inline-block;
  margin-top: 8px;
}

/* Mobile - stack */
@media (max-width: 768px) {
  .documents-section-page {
    margin: 0;
  }
  .documents-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 16px 20px;
  }
  .logo {
    width: 42px;
    height: 42px;
  }
  .morska-brand {
    font-size: 1.2rem;
  }
  .nabywcy-label {
    font-size: 1rem;
  }
  .container {
    padding: 50px 20px 60px;
  }
  header h1 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  header p {
    font-size: 1.05rem;
  }
  .faq-header h3 {
    font-size: 1rem;
  }
}

.media-title {
  line-height: 2rem;
  text-align: center;
  margin-bottom: 10px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 40px;
}

.media-card {
  position: relative;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
}

.media-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.media-type {
  background: var(--ndi-orange);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  display: inline-block;
  border-radius: 0 0 12px 0;
}

.media-date {
  position: absolute;
  top: 2px;
  right: 16px;
  font-size: 0.85rem;
  color: #777;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 8px;
  border-radius: 4px;
}

.media-content {
  padding: 24px;
  padding-top: 20px;
}

.media-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  line-height: 1.35;
}

.media-card p {
  color: #555;
  font-size: 1rem;
  line-height: 1.5;
}

.contact-section {
  margin: 20px auto;
  text-align: center;
}

.contact-section h1 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #222;
  line-height: 1.4;
}

.contact-box {
  background: white;
  padding: 50px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-box p {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.contact-email {
  font-size: 1.55rem;
  color: var(--ndi-orange);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  display: inline-block;
  word-break: break-word;
}

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

  .contact-section h1 {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }

  .contact-box {
    padding: 30px 20px;
  }

  .contact-box p {
    font-size: 1.2rem;
  }
}
