@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --bg: #f7f5f2;
  --bg-alt: #efeae3;
  --surface: #ffffff;
  --text: #161514;
  --muted: #6f6a65;
  --line: #e5e0da;
  --accent: #9a8262;
  --accent-deep: #6f5c44;
  --accent-soft: #f0ebe4;
  --accent-glow: rgba(154, 130, 98, 0.18);
  --radius: 14px;
  --font: "DM Sans", system-ui, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --shadow: 0 20px 50px rgba(22, 21, 20, 0.06);
  --shadow-sm: 0 8px 24px rgba(22, 21, 20, 0.05);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  touch-action: pan-x pan-y;
  overscroll-behavior: none;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  touch-action: pan-x pan-y;
  overscroll-behavior: none;
}
a { color: var(--accent-deep); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

.container { width: min(1140px, 92vw); margin: 0 auto; }
.container--narrow { width: min(720px, 92vw); margin: 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: none;
  border-radius: 999px;
  padding: 0.82rem 1.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn--primary {
  background: var(--text);
  color: #faf9f7;
  box-shadow: 0 12px 28px rgba(22, 21, 20, 0.14);
}
.btn--primary:hover {
  background: #2a2826;
  color: #fff;
  box-shadow: 0 16px 36px rgba(22, 21, 20, 0.18);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-deep); }
.btn--accent {
  background: var(--accent);
  color: #fff;
}
.btn--accent:hover { background: var(--accent-deep); color: #fff; }

.logo {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none !important;
}
.logo span { color: var(--accent); font-weight: 500; }

/* Brand logo — Ujęcia Style (header w site-header.css) */
.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  flex-shrink: 0;
  line-height: 0;
}
.brand-logo svg,
.brand-logo img {
  display: block;
  flex-shrink: 0;
}
.brand-logo--footer {
  margin-bottom: 0.75rem;
}
.brand-logo--footer .brand-logo__img {
  height: var(--brand-logo-h, 3.85rem);
  width: auto;
  max-width: 14.75rem;
  margin: 0;
}

/* Header — pełne style w /css/site-header.css (link w HTML) */

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.hero__copy { max-width: 32rem; min-width: 0; }
.hero__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}
.hero h1 span { color: var(--accent); }
.hero .lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 2rem;
  line-height: 1.65;
}
.hero__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.hero__visual {
  position: relative;
  min-width: 0;
}
.hero__mosaic {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.65rem;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero__mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__mosaic .main {
  grid-row: span 2;
  min-height: 320px;
}
.hero__mosaic .side { min-height: 155px; }

/* Table cards / hall photos */
.table-cards-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--accent-soft) 100%);
}
.table-cards-section__head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}
.table-cards-section__head h2 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  line-height: 1.12;
}
.table-cards-showcase {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}
.hall-photo {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}
.hall-photo--main {
  grid-row: span 2;
}
.hall-photo img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}
.hall-photo--tone-wedding {
  background: linear-gradient(145deg, #f6f4f1 0%, #e8dfd3 45%, #c4b09a 100%);
}
.hall-photo--tone-party {
  background: linear-gradient(145deg, #faf8f5 0%, #ebe4da 100%);
}
.hall-photo--tone-scan {
  background: linear-gradient(160deg, #1a1816 0%, #3d3834 55%, #6b5740 100%);
}
.hall-photo--tone-scan .hall-photo__cap span {
  color: rgba(245, 243, 240, 0.88);
}

.hall-photo__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1.15rem;
  background: linear-gradient(to top, rgba(22, 21, 20, 0.82) 0%, transparent 100%);
  color: #f5f3f0;
}
.hall-photo__cap strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.hall-photo__cap span {
  font-size: 0.82rem;
  color: rgba(245, 243, 240, 0.82);
}
.table-cards-designs {
  margin-top: 2.5rem;
  padding: 2.25rem 0 0.5rem;
  border-top: 1px solid var(--line);
}
.table-cards-designs__label {
  text-align: center;
  color: var(--text);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 600;
  margin: 0 0 1.5rem;
  letter-spacing: 0.01em;
}
.table-cards-designs__hint {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 1rem 0 0;
}

/* Szablony karteczek — siatka 3×2 */
.tpl-showcase-wrap {
  position: relative;
  margin: 0;
  padding: 0;
}
.tpl-showcase-wrap::before,
.tpl-showcase-wrap::after {
  display: none;
}

.tpl-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.15rem;
  overflow: visible;
  padding: 0;
  max-width: 920px;
  margin: 0 auto;
}

.tpl-preview {
  margin: 0;
  min-width: 0;
}

/* Podglądy karteczek — wygenerowane PNG */
.table-cards-designs .table-card-preview {
  margin: 0;
  min-width: 0;
}
.table-cards-designs .table-card-preview__frame {
  aspect-ratio: 800 / 520;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(22, 21, 20, 0.08);
  background: #f7f5f2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.table-cards-designs .table-card-preview:hover .table-card-preview__frame {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(22, 21, 20, 0.12);
}
.table-cards-designs .table-card-preview__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.table-cards-designs .table-card-preview__loading {
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: table-card-spin 0.7s linear infinite;
}
.table-cards-designs .table-card-preview__err {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  padding: 1rem;
  margin: 0;
}
@keyframes table-card-spin {
  to { transform: rotate(360deg); }
}
.table-cards-designs .table-card-preview__label {
  font-size: 0.74rem;
  text-align: center;
  margin: 0.65rem 0 0;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-footer__legal {
  margin-top: 0.35rem;
  font-size: 0.82rem;
}

@media (min-width: 900px) {
  .table-cards-designs__hint {
    display: none;
  }
}

@media (max-width: 720px) {
  .tpl-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (max-width: 420px) {
  .tpl-showcase {
    grid-template-columns: 1fr;
    max-width: 280px;
  }
}

/* Flip section */
.flip-section {
  padding: 5rem 0;
  background: var(--text);
  color: #f5f3f0;
}
.flip-section__intro {
  max-width: 36rem;
  margin-bottom: 3rem;
}
.flip-section h2 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 600;
  margin: 0 0 1rem;
  line-height: 1.15;
}
.flip-section p {
  color: #b8b2aa;
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.65;
}
.flip-section .price-tag {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.flip-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.flip-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.flip-card:hover {
  border-color: rgba(154, 130, 98, 0.45);
  transform: translateY(-3px);
}
.flip-card__img {
  margin: 0;
  overflow: hidden;
}
.flip-card__img img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.flip-card:hover .flip-card__img img {
  transform: scale(1.02);
}
.flip-card__body {
  padding: 1.25rem 1.35rem 1.4rem;
}
.flip-card__body h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.45rem;
  color: #f5f3f0;
}
.flip-card__body p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #9a948c;
}

/* legacy single-image (unused) */
.flip-section__img {
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.35);
}
.flip-section__img img {
  width: 100%;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.flip-section__caption {
  font-size: 0.75rem;
  color: #8a8480;
  margin-top: 0.65rem;
  text-align: center;
}

/* Gallery strip */
.gallery-strip {
  padding: 4rem 0;
  overflow: hidden;
}
.gallery-strip h2 {
  font-family: var(--serif);
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}
.gallery-strip .sub {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 2.5rem;
  max-width: 28rem;
  font-size: 0.95rem;
}
.gallery-strip__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-strip__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-sm);
}
.gallery-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-strip__item:hover img { transform: scale(1.03); }
.gallery-strip__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(22, 21, 20, 0.72));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Steps */
.section { padding: 4.5rem 0; }
.section h2 {
  font-family: var(--serif);
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.section .sub {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 2.5rem;
  max-width: 32rem;
  font-size: 0.95rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  transition: box-shadow 0.2s;
  min-width: 0;
}
.step-card:hover { box-shadow: var(--shadow-sm); }
.step-card__num {
  font-family: var(--serif);
  font-size: 1.75rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.step-card strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.step-card p { margin: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.5; }

/* Plans */
.plans-section { background: var(--bg-alt); padding: 5rem 0; }
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.5rem 1.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 0;
}
.plan:hover { box-shadow: var(--shadow-sm); }
.plan--popular {
  border-color: var(--accent);
  box-shadow: 0 20px 48px var(--accent-glow);
  transform: translateY(-4px);
}
.plan__badge {
  position: absolute;
  top: -0.6rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.plan .tagline {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.15rem 0 0.75rem;
}
.plan h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
}
.plan .price {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  margin: 0.5rem 0 0;
  color: var(--text);
}
.plan .price small {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}
.plan .compare {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 0.9rem;
  font-family: var(--font);
  margin-left: 0.35rem;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem;
  flex: 1;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.plan ul li {
  padding: 0.32rem 0;
  padding-left: 1rem;
  position: relative;
}
.plan ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* FAQ */
.faq-section {
  padding: 4.5rem 0 5rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.faq-section__head {
  text-align: center;
  margin-bottom: 2.25rem;
}
.faq-section__head h2 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 600;
  margin: 0.35rem 0 0.5rem;
  line-height: 1.15;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open] {
  border-color: #d4c9bc;
  box-shadow: 0 12px 32px rgba(22, 21, 20, 0.07);
}
.faq-item__q {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  padding-right: 2.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  user-select: none;
  line-height: 1.4;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5rem;
  text-align: center;
  transition: transform 0.2s, background 0.2s;
}
.faq-item[open] .faq-item__q::after {
  content: "−";
  background: var(--accent);
  color: #fff;
}
.faq-item__a {
  padding: 0 1.15rem 1.05rem;
  border-top: 1px solid var(--line);
}
.faq-item__a p {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}
.faq-item__a p strong { color: var(--text); font-weight: 600; }
.faq-item__a a { font-weight: 600; }
.faq-cta {
  margin-top: 2.75rem;
  padding: 2.25rem 1.75rem;
  text-align: center;
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.faq-cta h3 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 1.25rem;
  color: var(--text);
}
.faq-cta .btn { min-width: min(100%, 18rem); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  text-align: center;
}
.site-footer .logo,
.site-footer .brand-logo { display: inline-block; margin-bottom: 0.75rem; }
.site-footer p { color: var(--muted); font-size: 0.85rem; margin: 0.35rem 0; }

@media (max-width: 1180px) {
  .site-nav a[data-nav-priority="low"] { display: none; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__visual { order: -1; }
  .hero__mosaic .main { min-height: 240px; }
  .flip-showcase { grid-template-columns: 1fr; max-width: 520px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .gallery-strip__row { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .table-cards-showcase { grid-template-columns: 1fr; }
  .hall-photo--main { grid-row: auto; }
  .site-nav a[data-nav-priority="mid"] { display: none; }
}

@media (max-width: 720px) {
  .site-nav a:not(.btn) { display: none; }
}

@media (max-width: 560px) {
  .hero { padding: 3rem 0 2.5rem; }
  .steps, .plans { grid-template-columns: 1fr; }
  .plan--popular { transform: none; }
  .site-nav .btn--ghost {
    padding: 0.52rem 0.65rem;
  }
}
