:root {
  --paper: #fffaf3;
  --ink: #2f3232;
  --blue: #9fc4db;
  --blue-dark: #6c9bb7;
  --shadow: rgba(58, 68, 73, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px clamp(20px, 4vw, 68px);
  background: linear-gradient(
    to bottom,
    rgba(255, 250, 243, 0.92),
    rgba(255, 250, 243, 0.58),
    rgba(255, 250, 243, 0)
  );
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
}

.brand-mark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(47, 50, 50, 0.82);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.4vw, 38px);
  font-size: 14px;
  font-weight: 500;
  color: rgba(47, 50, 50, 0.72);
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--blue-dark);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.78);
  box-shadow: 0 12px 32px var(--shadow);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  margin: 6px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  height: 100vh;
  height: 100svh; /* mobile fix */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/*  TO JEST KLUCZ */
.hero-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 58%;
  background-image: url("../img/okladka2.jpg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center bottom;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 90px;
  text-align: center;
}

h1 {
  font-size: clamp(58px, 8vw, 112px);
  line-height: 0.9;
}

@media (max-width: 768px) {
  .hero-bg {
    height: 58%;
  }

  .hero-content {
    margin-top: 80px;
  }
}  
.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 7%, rgba(255, 250, 243, 0.96) 0 18%, rgba(255, 250, 243, 0.66) 32%, rgba(255, 250, 243, 0.05) 58%),
    linear-gradient(to bottom, rgba(255, 250, 243, 0.74) 0%, rgba(255, 250, 243, 0.18) 46%, rgba(255, 250, 243, 0.36) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  text-align: center;
  padding-top: clamp(18px, 5vh, 42px);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: clamp(11px, 1.3vw, 13px);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(47, 50, 50, 0.48);
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(86px, 12vw, 172px);
  line-height: 0.82;
  font-weight: 700;
  letter-spacing: 0.015em;
  color: rgba(67, 103, 122, 0.92);
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.58);
}

.title-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: clamp(18px, 2vw, 26px) auto 14px;
  color: rgba(102, 128, 105, 0.58);
}

.title-ornament span:not(.leaf) {
  display: block;
  width: clamp(58px, 8vw, 118px);
  height: 1px;
  background: rgba(96, 139, 163, 0.44);
}

.leaf {
  font-size: 18px;
  transform: rotate(12deg);
}

.hero-subtitle {
  margin: 0 auto;
  max-width: 720px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(25px, 3.25vw, 43px);
  line-height: 1.15;
  font-weight: 600;
  color: rgba(47, 50, 50, 0.78);
}

.hero-button {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 30px 15px;
  border-radius: 999px;
  color: white;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, rgba(168, 207, 229, 0.98), rgba(114, 173, 204, 0.96));
  box-shadow: 0 18px 38px rgba(67, 119, 148, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.42);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-button:hover,
.hero-button:focus-visible {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 22px 42px rgba(67, 119, 148, 0.27), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.hero-button span {
  font-size: 24px;
  line-height: 1;
  margin-top: -2px;
}

@media (max-width: 900px) {
  .site-header {
    padding: 16px 18px;
  }

  .menu-toggle {
    display: inline-block;
    position: relative;
    z-index: 30;
  }

  .main-nav {
    position: fixed;
    z-index: 25;
    top: 70px;
    right: 18px;
    display: grid;
    gap: 6px;
    min-width: 210px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 250, 243, 0.96);
    box-shadow: 0 20px 50px var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav a {
    padding: 10px 6px;
  }

  .hero {
    padding-top: 82px;
  }

  .hero-bg {
    background-size: cover;
    background-position: center 46%;
  }

  .hero-shade {
    background:
      radial-gradient(circle at 50% 9%, rgba(255, 250, 243, 0.98) 0 24%, rgba(255, 250, 243, 0.78) 38%, rgba(255, 250, 243, 0.05) 62%),
      linear-gradient(to bottom, rgba(255, 250, 243, 0.82) 0%, rgba(255, 250, 243, 0.22) 50%, rgba(255, 250, 243, 0.45) 100%);
  }

  .hero-content {
    padding-top: 8px;
  }

  .hero-button {
    bottom: 34px;
    width: min(310px, calc(100vw - 42px));
  }
}

@media (max-width: 520px) {
  .hero-bg {
    background-size: cover;
    background-position: center 50%;
  }

  .hero-subtitle {
    max-width: 340px;
  }

  .title-ornament {
    margin-top: 16px;
  }

  .hero-button {
    bottom: 28px;
  }
}

.home-stories {
  padding: clamp(58px, 8vw, 92px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.96), rgba(255, 254, 253, 0.88)),
    var(--paper);
}

.home-directions {
  padding: clamp(54px, 7vw, 86px) clamp(18px, 5vw, 72px) 24px;
  background: var(--paper);
}

.home-directions-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-direction-card {
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(47, 50, 50, 0.1);
  border-radius: 8px;
  background: rgba(255, 254, 253, 0.86);
  box-shadow: 0 16px 38px rgba(58, 68, 73, 0.07);
}

.home-direction-card h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  line-height: 1.05;
  color: rgba(67, 103, 122, 0.9);
}

.home-direction-card p {
  margin: 0;
  line-height: 1.6;
  color: rgba(47, 50, 50, 0.72);
}

.home-stories-inner {
  width: min(900px, 100%);
  margin: 0 auto;
}

.home-stories-heading {
  display: grid;
  gap: 12px;
  max-width: 680px;
  margin-bottom: 30px;
}

.home-stories-heading h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1;
  color: rgba(67, 103, 122, 0.9);
}

.home-stories-heading p,
.home-empty p,
.home-story-body p {
  margin: 0;
  line-height: 1.65;
  color: rgba(47, 50, 50, 0.72);
}

.home-story-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(47, 50, 50, 0.1);
}

.home-story-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid rgba(47, 50, 50, 0.1);
  background: transparent;
}

.home-story-media {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(159, 196, 219, 0.16);
  color: rgba(47, 50, 50, 0.56);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.home-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-story-body {
  display: grid;
  gap: 10px;
  padding: 0;
}

.home-story-body h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.08;
  color: rgba(47, 50, 50, 0.86);
}

.home-story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.home-story-tags a {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(108, 155, 183, 0.13);
  color: #4f85a4;
  font-size: 13px;
  font-weight: 700;
}

.home-story-link,
.home-all-stories a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(180deg, rgba(168, 207, 229, 0.98), rgba(114, 173, 204, 0.96));
  font-weight: 700;
}

.home-empty {
  padding: 24px;
  border: 1px solid rgba(47, 50, 50, 0.1);
  border-radius: 8px;
  background: #fffefd;
}

.home-all-stories {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.simple-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 120px 24px 64px;
  background:
    radial-gradient(circle at 50% 18%, rgba(159, 196, 219, 0.16), rgba(255, 250, 243, 0) 34%),
    var(--paper);
}

.simple-page section {
  width: min(720px, 100%);
  text-align: center;
}

.simple-page-card {
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid rgba(47, 50, 50, 0.1);
  border-radius: 8px;
  background: rgba(255, 254, 253, 0.86);
  box-shadow: 0 18px 48px rgba(58, 68, 73, 0.08);
}

.simple-eyebrow {
  margin: 0 0 10px;
  color: rgba(47, 50, 50, 0.48);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.simple-page h1 {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(48px, 7vw, 82px);
  line-height: 1;
  color: rgba(67, 103, 122, 0.9);
}

.simple-page p {
  margin: 0 0 20px;
  color: rgba(47, 50, 50, 0.72);
  font-size: 18px;
}

.simple-note {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.simple-page a {
  color: #4f85a4;
  font-weight: 700;
}

.simple-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(108, 155, 183, 0.13);
}

@media (max-width: 900px) {
  .home-directions-inner {
    grid-template-columns: 1fr 1fr;
  }

  .home-story-grid {
    grid-template-columns: 1fr;
  }

  .home-story-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
  }

  .home-story-media {
    width: 96px;
    height: 96px;
  }
}

@media (max-width: 520px) {
  .home-directions-inner {
    grid-template-columns: 1fr;
  }

  .home-story-card {
    grid-template-columns: 1fr;
  }

  .home-story-media {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }
}

.cookie-consent {
  position: fixed;
  inset: auto 18px 24px;
  z-index: 80;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

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

.cookie-consent__box {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 26px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(108, 155, 183, 0.24);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 254, 253, 0.99), rgba(245, 250, 251, 0.99));
  box-shadow: 0 24px 70px rgba(58, 68, 73, 0.24);
  pointer-events: auto;
}

.cookie-consent__box h2 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  line-height: 1.08;
  color: #2f3232;
}

.cookie-consent__box p {
  margin: 0;
  color: rgba(47, 50, 50, 0.72);
  font-size: 16px;
  line-height: 1.7;
}

.cookie-consent__box .cookie-consent__eyebrow {
  margin: 0 0 8px;
  color: #6c9bb7;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cookie-consent__box .cookie-consent__note {
  margin-top: 10px;
  color: rgba(47, 50, 50, 0.62);
  font-size: 14px;
}

.cookie-consent__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.cookie-consent__button,
.cookie-settings {
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid rgba(108, 155, 183, 0.28);
  border-radius: 999px;
  color: #4f85a4;
  background: rgba(108, 155, 183, 0.1);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cookie-consent__button--primary {
  color: #fff;
  border-color: #5f94b1;
  background: #5f94b1;
  box-shadow: 0 12px 24px rgba(95, 148, 177, 0.28);
  font-size: 16px;
}

.cookie-consent__button--primary:hover,
.cookie-consent__button--primary:focus-visible {
  background: #4f85a4;
  border-color: #4f85a4;
}

.cookie-settings {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  font-size: 13px;
}

@media (max-width: 700px) {
  .cookie-consent {
    inset: auto 10px 10px;
  }

  .cookie-consent__box {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
    border-radius: 16px;
  }

  .cookie-consent__box h2 {
    font-size: 28px;
  }

  .cookie-consent__actions {
    justify-content: stretch;
  }

  .cookie-consent__button {
    width: 100%;
  }
}
