/* Joga w życiu codziennym — design system
   DNA: #0071B8 accent, cream hero text, India banner, 3-column rhythm, horizontal nav
*/

:root {
  --blue: #0071b8;
  --blue-deep: #005a94;
  --ink: #1f2428;
  --muted: #5a6168;
  --line: #d5dde3;
  --cream: #fffacd;
  --panel: #f4f7fa;
  --white: #ffffff;
  --nav-bg: linear-gradient(180deg, #e8eef3 0%, #c8d6e2 100%);
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --max: 1100px;
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white) url("/wakacje/szary.gif") repeat-y left top;
  background-color: #f7f9fb;
  font: 17px/1.65 var(--font);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--blue-deep);
}

.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.page-article,
.page-article .site-wrap,
.page-article .site-main {
  overflow-x: hidden;
}

/* ——— Header / brand hero ——— */
.site-top {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-top__bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 0;
  font-size: 0.85rem;
}

.site-top__bar a {
  color: var(--muted);
  text-decoration: none;
}

.site-top__bar a:hover {
  color: var(--blue);
}

.brand-hero {
  position: relative;
  min-height: clamp(140px, 22vw, 190px);
  background: #123a56 url("/wakacje/joga-indie.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

.brand-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 40, 64, 0.15) 0%, rgba(8, 40, 64, 0.45) 55%, rgba(8, 40, 64, 0.55) 100%);
}

.brand-hero__text {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 1.5rem 1.25rem;
  text-align: right;
  color: var(--cream);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  animation: brandIn 0.7s ease-out both;
}

.brand-hero__text span {
  display: block;
  font-size: 0.55em;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  opacity: 0.95;
}

@keyframes brandIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.site-brand-link {
  text-decoration: none;
  color: inherit;
}

/* ——— Nav ——— */
.site-nav {
  background: var(--nav-bg);
  border-bottom: 1px solid #b7c6d4;
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
}

.site-nav__toggle {
  display: none;
  border: 1px solid var(--blue);
  background: #fff;
  color: var(--blue);
  padding: 0.4rem 0.75rem;
  font: 700 0.85rem/1 var(--font);
  cursor: pointer;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
}

.site-nav__list a {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  color: #404040;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius);
}

.site-nav__list a:hover,
.site-nav__list a.is-active {
  color: #fff;
  background: var(--blue);
}

/* ——— Layout ——— */
.site-main {
  flex: 1;
  padding: 1.75rem 0 2.5rem;
}

.page-header {
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--blue);
}

.page-header h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: 0.01em;
}

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

.layout-home {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 220px;
  gap: 1.25rem;
  align-items: start;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
}

.panel__title {
  margin: 0;
  padding: 0.65rem 0.85rem;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
}

.panel__body {
  padding: 0.75rem 0.85rem 1rem;
}

.dest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dest-list li {
  border-bottom: 1px dotted #c5d0d9;
}

.dest-list a,
.dest-list span {
  display: block;
  padding: 0.45rem 0.15rem;
  color: #404040;
  text-decoration: none;
  font-size: 0.92rem;
}

.dest-list a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.aside-note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}

.aside-note a {
  font-weight: 700;
}

.reco-card {
  margin: 0 0 1rem;
}

.reco-card:last-child {
  margin-bottom: 0;
}

.reco-card img {
  display: block;
  width: 100%;
  border: 1px solid #b8c4ce;
}

.reco-card h3 {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.content-col {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.1rem 1.25rem 1.5rem;
}

.content-col > h1 {
  margin: 0 0 0.85rem;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.15;
  color: var(--ink);
}

.content-col h2 {
  margin: 1.35rem 0 0.65rem;
  font-size: 1.15rem;
  color: var(--ink);
}

.content-col p {
  margin: 0 0 1rem;
  text-align: justify;
}

.content-col .lead-image {
  display: block;
  margin: 1rem auto 1.25rem;
  max-width: 360px;
  border: 1px solid var(--line);
}

.notice-strip {
  margin: 0 0 1rem;
  padding: 0.55rem 0.75rem;
  background: #fff5f5;
  border-left: 3px solid #c0392b;
  color: #8b1e1e;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  overflow: hidden;
  white-space: nowrap;
}

.notice-strip span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 18s linear infinite;
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

.more-link {
  font-weight: 700;
  white-space: nowrap;
}

/* ——— Catalog / articles ——— */
.catalog-main,
.article-main {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.25rem 1.35rem 1.75rem;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.romlicontainer {
  max-width: 48rem;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.romlicontainer > *:first-child {
  margin-top: 0;
}

.romlicontainer p {
  margin: 0 0 1rem;
}

.romlicontainer h2,
.romlicontainer h3,
.romlicontainer h4 {
  margin: 1.4rem 0 0.65rem;
  line-height: 1.25;
  color: var(--ink);
}

.romlicontainer h2 {
  font-size: 1.35rem;
}

.romlicontainer h3 {
  font-size: 1.15rem;
}

.romlicontainer ul,
.romlicontainer ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

.romlicontainer li {
  margin-bottom: 0.35rem;
}

.romlicontainer img {
  display: block;
  margin: 1rem auto;
  border: 1px solid var(--line);
}

.romlicontainer blockquote {
  margin: 1rem 0;
  padding: 0.35rem 0 0.35rem 0.9rem;
  border-left: 3px solid var(--blue);
  color: var(--muted);
}

.romlicontainer .table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1rem 0 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.romlicontainer .table-wrap table {
  display: table;
  width: max-content;
  min-width: 100%;
  max-width: none;
  margin: 0;
}

.romlicontainer table {
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
  font-size: 0.92em;
}

.romlicontainer th,
.romlicontainer td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.romlicontainer th {
  background: var(--panel);
  color: var(--blue-deep);
  font-weight: 700;
}

.romlicontainer tr:nth-child(even) td {
  background: #fafcfd;
}

.section-articles {
  margin-top: 2rem;
  padding: 1.5rem 0 0.5rem;
  border-top: 1px solid var(--line);
}

.section-articles h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--ink);
}

.links-block {
  margin-top: 1.5rem;
  padding: 1rem 0 0;
}

/* ——— Footer ——— */
.site-footer {
  margin-top: auto;
  background: #2a4558 url("/wp-content/uploads/2017/03/footer_bg_id-451.jpg") center / cover no-repeat;
  color: #e8eef3;
  border-top: 3px solid var(--blue);
}

.site-footer__inner {
  padding: 1.75rem 0 1.35rem;
  text-align: center;
}

.site-footer a {
  color: #cfe3f3;
}

.site-footer__meta {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: #d7e2ea;
}

.site-footer__meta--small {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #9eb0bd;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.site-footer nav a {
  text-decoration: none;
}

.site-footer nav a:hover {
  text-decoration: underline;
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .layout-home {
    grid-template-columns: 1fr 1fr;
  }

  .layout-home .side-left {
    grid-column: 1;
  }

  .layout-home .content-col {
    grid-column: 2;
  }

  .layout-home .side-right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
  }

  .layout-home .side-right .panel__body {
    display: contents;
  }

  .layout-home .side-right .panel__title {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .site-nav__toggle {
    display: inline-block;
    margin: 0.45rem 0;
  }

  .site-nav__list {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-bottom: 0.75rem;
  }

  .site-nav.is-open .site-nav__list {
    display: flex;
  }

  .site-nav__inner {
    flex-wrap: wrap;
  }

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

  .layout-home .side-left,
  .layout-home .content-col,
  .layout-home .side-right {
    grid-column: auto;
  }

  .brand-hero__text {
    text-align: left;
    padding-right: 1rem;
  }

  .content-col p {
    text-align: left;
  }

  .notice-strip {
    white-space: normal;
  }

  .notice-strip span {
    display: inline;
    padding-left: 0;
    animation: none;
  }
}

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