/* Sleep & Fun — light flexbox redesign */
:root {
  --mint: #9ccfd0;
  --mint-deep: #6fadb0;
  --lavender: #dba8d6;
  --soft-gray: #bec2cf;
  --ink: #2c3340;
  --ink-soft: #5a6270;
  --paper: #f7f9fb;
  --cream: #eef4f4;
  --white: #ffffff;
  --line: rgba(44, 51, 64, 0.12);
  --max: 1120px;
  --font: "Poppins", "Montserrat", "Segoe UI", sans-serif;
  --display: "Caveat", "Poppins", cursive;
  --radius: 4px;
  --shadow: 0 12px 40px rgba(44, 51, 64, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(156, 207, 208, 0.35), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(219, 168, 214, 0.22), transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, var(--paper) 40%, var(--white) 100%);
  background-attachment: fixed;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--mint-deep);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--lavender);
}

.site-wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(247, 249, 251, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  flex-shrink: 0;
}

.brand img {
  width: 140px;
  height: auto;
}

.brand-text {
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius);
  font: inherit;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-list > li {
  position: relative;
}

.nav-list a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.35rem 0;
  display: inline-block;
}

.nav-list a:hover,
.nav-list a.is-active {
  color: var(--mint-deep);
}

.nav-list .has-sub > a::after {
  content: "";
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 0.35rem;
}

.sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  z-index: 50;
}

.has-sub:hover > .sub-menu,
.has-sub:focus-within > .sub-menu {
  display: block;
  animation: rise 0.25s ease;
}

.sub-menu p {
  margin: 0 0 0.6rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.sub-menu .btn {
  margin-top: 0.25rem;
}

.header-contact {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--mint), var(--mint-deep));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(111, 173, 176, 0.35);
}

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

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--mint);
  color: var(--ink);
}

.btn-lavender {
  background: linear-gradient(135deg, var(--lavender), #c98fc4);
  color: var(--white);
}

/* Main */
main {
  flex: 1;
}

.page-header {
  padding: 2.5rem 0 1.25rem;
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.2;
  font-weight: 700;
}

.page-header p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 42rem;
}

.page-content,
.romlicontainer {
  padding: 0 0 3rem;
}

.page-content h2,
.romlicontainer h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.35rem;
}

.page-content h3,
.romlicontainer h3 {
  margin: 1.4rem 0 0.55rem;
  font-size: 1.1rem;
}

.page-content p,
.romlicontainer p {
  margin: 0 0 1rem;
}

.page-content ul,
.romlicontainer ul {
  margin: 0 0 1rem 1.2rem;
  padding: 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(44, 51, 64, 0.55), rgba(111, 173, 176, 0.35)),
    url("/assets/img/biurko-alt.jpg") center/cover no-repeat,
    linear-gradient(135deg, #c8e4e5, #e8d4e6);
  color: var(--white);
  margin-bottom: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(44, 51, 64, 0.55) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 4rem 0 3rem;
  animation: fade-up 0.7s ease both;
}

.hero-brand {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  line-height: 0.95;
  margin: 0 0 0.75rem;
  letter-spacing: 0.01em;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 600;
  max-width: 18ch;
  line-height: 1.25;
}

.hero p {
  margin: 0 0 1.4rem;
  max-width: 36rem;
  font-size: 1.05rem;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
.section {
  padding: 3.25rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
  animation: fade-up 0.55s ease both;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.accent-line {
  display: inline-block;
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, var(--mint), var(--lavender));
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

/* Product / card grids — interaction containers */
.product-grid,
.feature-grid,
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.product-card,
.feature-card,
.blog-card {
  flex: 1 1 240px;
  max-width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: fade-up 0.55s ease both;
}

.product-card:nth-child(2),
.feature-card:nth-child(2),
.blog-card:nth-child(2) { animation-delay: 0.06s; }
.product-card:nth-child(3),
.feature-card:nth-child(3),
.blog-card:nth-child(3) { animation-delay: 0.12s; }
.product-card:nth-child(4),
.feature-card:nth-child(4),
.blog-card:nth-child(4) { animation-delay: 0.18s; }

.product-card:hover,
.feature-card:hover,
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-visual {
  aspect-ratio: 4/3;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), transparent 50%),
    linear-gradient(145deg, var(--mint), var(--lavender));
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: var(--white);
  font-family: var(--display);
  font-size: 1.6rem;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body,
.feature-card,
.blog-card {
  padding: 1.1rem 1.15rem 1.25rem;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.product-body h3,
.feature-card h3,
.blog-title {
  margin: 0;
  font-size: 1.05rem;
}

.product-body p,
.feature-card p,
.blog-preview p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.product-body .btn,
.feature-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.feature-card {
  background: linear-gradient(160deg, rgba(156, 207, 208, 0.18), rgba(255, 255, 255, 0.9));
}

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.split > * {
  flex: 1 1 280px;
}

.split-visual {
  min-height: 260px;
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(219, 168, 214, 0.35), rgba(156, 207, 208, 0.45)),
    url("/assets/img/biurko-alt.jpg") center/cover;
  box-shadow: var(--shadow);
}

.cta-band {
  margin: 1rem 0 3rem;
  padding: 2.25rem;
  border-radius: 18px;
  background: linear-gradient(120deg, #2c3340, #4a6670);
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.cta-band h2 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
}

.cta-band p {
  margin: 0;
  opacity: 0.9;
  max-width: 34rem;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-item {
  flex: 1 1 200px;
  padding: 1.1rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.contact-item strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--mint-deep);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-item p {
  margin: 0;
}

/* Footer */
.site-footer {
  background: #2c3340;
  color: rgba(255, 255, 255, 0.88);
  padding: 2.75rem 0 1.5rem;
  margin-top: auto;
}

.site-footer a {
  color: var(--mint);
}

.site-footer a:hover {
  color: var(--lavender);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col {
  flex: 1 1 180px;
}

.footer-col h3 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col p {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.romlifooter {
  margin-top: 1rem;
}

.romlidata {
  margin: 2rem 0;
}

.blog-container {
  padding-bottom: 2rem;
}

/* Animations */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Mobile */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(247, 249, 251, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1.1rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .sub-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0.25rem 0 0.5rem 0.75rem;
  }

  .has-sub > a::after {
    display: none;
  }

  .hero {
    min-height: 70vh;
  }

  .header-bar {
    position: relative;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
