/*
 * DOMUS TABITHAE — STRONA GŁÓWNA
 * Ten arkusz jest ładowany tylko przez index.html.
 * Pozostałe podstrony korzystają ze starego styles.css bez zmian.
 */

.home-page {
  --home-paper: #FAF9F7;
  --home-white: #FFFFFF;
  --home-linen: #EDE8E3;
  --home-greige: #C8BDB1;
  --home-taupe: #AFA59B;
  --home-charcoal: #5E5550;
  --home-ink: #26221F;
  --home-text: #4F4944;
  --home-blush: #E7BFC0;
  background: var(--home-paper);
  color: var(--home-text);
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  line-height: 1.65;
}

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

.home-page .container {
  width: min(1200px, calc(100% - 76px));
  margin-inline: auto;
}

.home-page h1,
.home-page h2,
.home-page h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  color: var(--home-ink);
  letter-spacing: -0.025em;
}

.home-page h2 {
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  line-height: 1.17;
  margin-bottom: 1.25rem;
}

.home-page p {
  margin-bottom: 1rem;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

/* Podpisy i pytanie wprowadzajace pozostaja skladane jak naglowki. */
.home-page .section-kicker,
.home-page .hero__question,
.home-page .method-card__subtitle {
  text-align: left;
  hyphens: none;
}

.home-page a:focus-visible,
.home-page button:focus-visible,
.home-page input:focus-visible {
  outline: 3px solid var(--home-charcoal);
  outline-offset: 4px;
}

.home-page .skip-link {
  position: fixed;
  z-index: 100;
  top: -80px;
  left: 16px;
  padding: 10px 16px;
  background: var(--home-ink);
  color: white;
}
.home-page .skip-link:focus {
  top: 10px;
}

.home-page [id] {
  scroll-margin-top: 110px;
}

/* Nagłówek — układ i odnośniki takie same jak na reszcie strony. */
.home-page .site-header {
  background: rgba(250, 249, 247, .96);
  border-bottom: 1px solid rgba(94, 85, 80, .14);
  backdrop-filter: blur(12px);
}
.home-page .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.7rem;
  padding: .82rem 0;
}
.home-page .brand {
  display: flex;
  align-items: center;
  gap: .48rem;
  flex-shrink: 0;
}
.home-page .brand__icon,
.home-page .site-header .brand .brand__icon {
  /* Plik PNG ma szerokie, przezroczyste marginesy. */
  width: 50px;
  height: 36px;
  margin-inline: -12px;
  object-fit: contain;
  filter: none;
  mix-blend-mode: multiply;
}
.home-page .brand__word,
.home-page .site-header .brand .brand__word {
  font-size: 1.09rem;
  letter-spacing: .24em;
  color: var(--home-ink) !important;
}
.home-page .brand__tag {
  margin-left: .2rem;
  font-size: .76rem;
  letter-spacing: .025em;
  color: var(--home-charcoal);
  white-space: nowrap;
}
.home-page .nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: .3rem 1.17rem;
}
.home-page .nav a {
  margin: 0;
  padding: .3rem 0;
  white-space: nowrap;
  color: var(--home-ink);
  font-size: .92rem;
  line-height: 1.3;
}
.home-page .nav a:hover {
  color: var(--home-charcoal);
}
.home-page .nav a.btn--ghost {
  border: 1px solid var(--home-charcoal);
  padding: .54rem .69rem;
  border-radius: 2px;
  background: transparent;
}
.home-page .nav a.btn--ghost:hover {
  background: var(--home-linen);
}

.home-page .section-kicker {
  font-size: .73rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--home-charcoal);
}

.home-page .home-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  min-height: 51px;
  padding: .78rem 1.35rem;
  border-radius: 2px;
  font-size: .9rem;
  line-height: 1.35;
  text-align: center;
  font-weight: 500;
  white-space: normal;
  box-shadow: none;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.home-page .home-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}
.home-page .home-btn--dark {
  background: var(--home-ink);
  color: white;
  border: 1px solid var(--home-ink);
}
.home-page .home-btn--dark:hover {
  background: var(--home-charcoal);
  border-color: var(--home-charcoal);
  color: white;
}
.home-page .home-btn--line {
  background: transparent;
  color: var(--home-ink);
  border: 1px solid var(--home-charcoal);
}
.home-page .home-btn--line:hover {
  background: var(--home-linen);
  color: var(--home-ink);
}
.home-page .text-link {
  display: inline-block;
  width: fit-content;
  color: var(--home-ink);
  font-size: .94rem;
  line-height: 1.4;
  border-bottom: 1px solid var(--home-charcoal);
  padding-bottom: .19rem;
  text-decoration: none;
}
.home-page .text-link:hover {
  color: var(--home-charcoal);
  border-color: var(--home-taupe);
  text-decoration: none;
}

/* Otwarcie: szlachetny arkusz zamiast mglistego krajobrazu. */
.home-page .hero {
  padding: clamp(4rem, 7vw, 7.3rem) 0 clamp(4.5rem, 7vw, 7rem);
  background: var(--home-paper);
  border-bottom: 1px solid rgba(94, 85, 80, .1);
}
.home-page .hero__inner {
  display: block;
}
.home-page .hero__copy {
  display: flow-root;
  max-width: none;
}
.home-page .hero__kicker {
  margin: 0 0 1.8rem;
}
.home-page .hero h1 {
  font-size: clamp(2.5rem, 3.4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.045em;
  margin: 0 0 1.45rem;
  max-width: none;
  white-space: nowrap;
}
.home-page .hero__copy p:not(.section-kicker) {
  max-width: none;
  font-size: 1rem;
  line-height: 1.8;
}
.home-page .hero__copy .hero__question {
  color: var(--home-ink);
  font-size: clamp(1.12rem, 2vw, 1.4rem) !important;
  line-height: 1.55 !important;
  max-width: 43ch !important;
  margin-bottom: 1.6rem;
}
.home-page .hero__cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
  padding: 0;
}
.home-page .hero__visual {
  display: block;
  float: right;
  height: auto;
  min-width: 0;
  max-width: 520px;
  overflow: visible;
  margin: .3rem 0 1.8rem clamp(2rem, 5vw, 4.8rem);
  border-radius: 0;
}
.home-page .hero-engraving {
  width: 42%;
}
.home-page .hero-engraving__mount {
  padding: clamp(9px, 1.15vw, 15px);
  border: 1px solid var(--home-greige);
  background: #FFFFFF;
  box-shadow: 13px 15px 0 rgba(0, 0, 0, .025), 0 20px 42px rgba(0, 0, 0, .055);
}
.home-page .hero-engraving__mount img {
  display: block;
  width: 100%;
  height: auto;
  filter: none;
}
.home-page .hero-engraving figcaption {
  margin-top: 1.15rem;
  font-size: .67rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  line-height: 1.55;
  color: var(--home-charcoal);
  text-align: center;
}
.home-page .hero-folio {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 555px;
  padding: 1.65rem;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(255,255,255,.85), transparent 55%),
    linear-gradient(145deg, #ECE5DD 0%, #E3D9CE 62%, #E9E1D9 100%);
  border: 1px solid #CEC3B8;
  box-shadow: 15px 18px 0 rgba(94,85,80,.055), 0 25px 55px rgba(56,43,32,.07);
  color: var(--home-ink);
}
.home-page .hero-folio::before {
  content: '';
  position: absolute;
  inset: 13px;
  z-index: -1;
  border: 1px solid rgba(94,85,80,.27);
  pointer-events: none;
}
.home-page .hero-folio__rule {
  width: 100%;
  height: 1px;
  background: rgba(94,85,80,.26);
}
.home-page .hero-folio__caption,
.home-page .hero-folio__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  font-size: .65rem;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--home-charcoal);
}
.home-page .hero-folio__caption span {
  text-align: right;
}
.home-page .hero-folio__foot {
  justify-content: center;
  gap: .65rem;
  margin: 1rem 0;
}
.home-page .hero-folio__foot span {
  color: #AB918F;
}
.home-page .hero-folio__center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2.1rem .5rem;
}
.home-page .hero-folio__gazelle {
  width: 90px;
  height: 65px;
  object-fit: contain;
  margin-bottom: 1.8rem;
  filter: none;
  mix-blend-mode: multiply;
}
.home-page .hero-folio__small,
.home-page .hero-folio__motto {
  font-size: .7rem;
  letter-spacing: .2em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--home-charcoal);
}
.home-page .hero-folio__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3.8rem, 5.5vw, 5.5rem);
  line-height: 1.24;
  letter-spacing: -.055em;
  font-style: italic;
  color: var(--home-ink);
  margin: .25rem 0 .5rem;
}
.home-page .hero-folio__latin {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  letter-spacing: .01em;
  color: var(--home-charcoal);
}
.home-page .hero-folio__divider {
  width: 60px;
  height: 1px;
  background: var(--home-charcoal);
  opacity: .5;
  margin: 2rem 0;
}

/* Metoda */
.home-page .method-section {
  padding: clamp(4.5rem, 7.5vw, 7rem) 0;
  background: var(--home-linen);
}
.home-page .section-heading {
  max-width: 800px;
  margin-bottom: 2.8rem;
}
.home-page .section-heading .section-kicker {
  margin-bottom: 1.1rem;
}
.home-page .section-heading p:not(.section-kicker) {
  max-width: 78ch;
  font-size: 1.03rem;
  line-height: 1.85;
}
.home-page .method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1px;
  border: 1px solid rgba(94,85,80,.24);
  background: rgba(94,85,80,.24);
}
.home-page .method-card {
  position: relative;
  min-height: 273px;
  padding: clamp(1.7rem, 3.6vw, 2.65rem);
  background: #FAF8F5;
}
.home-page .method-card__number {
  position: absolute;
  top: 2rem;
  right: 2.3rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  color: var(--home-taupe);
}
.home-page .method-card h3 {
  font-size: clamp(1.55rem, 2.3vw, 2.1rem);
  letter-spacing: .06em;
  margin: 0 2rem .5rem 0;
}
.home-page .method-card__subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--home-charcoal);
  margin-bottom: 1.3rem;
}
.home-page .method-card p:last-child {
  max-width: 56ch;
  font-size: .96rem;
  line-height: 1.83;
  margin: 0;
}

/* Przykład bezpłatnej lekcji */
.home-page .sample-section {
  padding: clamp(4.5rem, 7.5vw, 7.2rem) 0;
  background: #FCFBFA;
}
.home-page .sample-section__inner {
  display: grid;
  grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.home-page .sample-section__image {
  min-height: 475px;
  display: grid;
  place-items: center;
  padding: 3.2rem;
  border: 1px solid #D7CDC3;
  background:
    linear-gradient(135deg, rgba(255,255,255,.45), transparent 55%),
    var(--home-linen);
}
.home-page .sample-cover {
  max-width: 260px;
  width: 100%;
  min-height: 340px;
  background: white;
  box-shadow: 15px 19px 28px rgba(55,45,38,.18);
  transform: rotate(-2deg);
}
.home-page .sample-cover img {
  display: block;
  width: 100%;
  height: auto;
}
.home-page .sample-section__copy {
  max-width: 600px;
}
.home-page .sample-section__copy p:not(.section-kicker) {
  max-width: 60ch;
  font-size: 1.02rem;
  line-height: 1.88;
}
.home-page .sample-section__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.55rem;
  margin-top: 2rem;
}

/* Istniejący sklep zostaje bez zmian, tu tylko dwa wybrane materiały. */
.home-page .publications-section {
  padding: clamp(4.5rem, 7.5vw, 7rem) 0;
  background: #F5F2EE;
  border-top: 1px solid rgba(94,85,80,.08);
}
.home-page .publications-section__header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2.5rem;
  margin-bottom: 2.35rem;
}
.home-page .publications-section__header > div {
  max-width: 690px;
}
.home-page .publications-section__header p:not(.section-kicker) {
  font-size: 1.02rem;
}
.home-page .publications-section__header .text-link {
  flex-shrink: 0;
  margin-bottom: 1.1rem;
}
.home-page .product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1.6rem;
}
.home-page .product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(94,85,80,.20);
  background: #FDFCFB;
}
.home-page .product-card__image {
  display: block;
  width: 100%;
  height: 365px;
  overflow: hidden;
  background: var(--home-linen);
}
.home-page .product-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 14px;
  transition: transform .35s ease;
}
.home-page .product-card__image:hover img {
  transform: scale(1.035);
}
.home-page .product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 2.15rem 2.25rem 1.9rem;
}
.home-page .product-card__eyebrow {
  margin-bottom: .65rem;
  color: var(--home-charcoal);
  font-size: .69rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.home-page .product-card h3 {
  font-size: clamp(1.7rem, 2.35vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}
.home-page .product-card__body > p:not(.product-card__eyebrow) {
  font-size: .95rem;
  line-height: 1.85;
  margin: 0 0 1.8rem;
}
.home-page .product-card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(94,85,80,.22);
}
.home-page .product-card__price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--home-ink);
}

/* Osoba stojąca za projektem */
.home-page .about-section {
  padding: clamp(4.5rem, 7.5vw, 7.2rem) 0;
  background: var(--home-paper);
}
.home-page .about-section__inner {
  display: grid;
  grid-template-columns: minmax(0,.93fr) minmax(0,1.07fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.home-page .about-section__image {
  position: relative;
  min-width: 0;
  padding-bottom: 1.05rem;
  border-bottom: 1px solid var(--home-greige);
}
.home-page .about-section__image img {
  display: block;
  width: 100%;
  height: clamp(320px, 30vw, 460px);
  object-fit: cover;
  object-position: center;
  filter: saturate(.81);
}
.home-page .about-section__copy {
  max-width: 620px;
}
.home-page .about-section__copy p:not(.section-kicker) {
  font-size: 1.01rem;
  line-height: 1.87;
}

/* Listy i kontakt: zachowany dotychczasowy formularz MailerLite. */
.home-page .newsletter {
  background: var(--home-linen);
  margin: 0;
  padding: clamp(4.3rem, 7vw, 6rem) 0;
  border-top: 1px solid rgba(94,85,80,.14);
}
.home-page .newsletter__inner {
  max-width: 590px;
  text-align: center;
}
.home-page .newsletter h2 {
  margin-bottom: 1rem;
}
.home-page .newsletter p:not(.section-kicker) {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.6rem;
}
.home-page .newsletter .ml-form-embedContainer {
  max-width: 480px;
  margin: auto;
}
.home-page .newsletter .form-control {
  width: 100%;
  min-width: 0;
  display: block;
  border: 1px solid var(--home-greige);
  border-radius: 2px;
  background: white;
  color: var(--home-ink);
  font-family: 'Lora', Georgia, serif;
  font-size: .98rem;
  padding: .85rem 1rem;
}
.home-page .newsletter .ml-form-embedSubmit {
  margin-top: .8rem;
}
.home-page .newsletter .ml-form-embedSubmit .primary {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--home-ink);
  border-radius: 2px;
  background: var(--home-ink);
  color: white !important;
  cursor: pointer;
  font-family: 'Lora', Georgia, serif;
  font-size: .96rem;
}
.home-page .newsletter .ml-form-embedSubmit .primary:hover {
  background: var(--home-charcoal);
  border-color: var(--home-charcoal);
}
.home-page .contact {
  padding: 3.6rem 0 4.2rem;
  background: var(--home-paper);
}
.home-page .contact__inner {
  text-align: center;
}
.home-page .contact h2 {
  margin-bottom: .6rem;
}
.home-page .contact p:not(.section-kicker) {
  margin-bottom: 1.2rem;
}
.home-page .contact__email {
  display: inline-block;
  font-size: 1.08rem;
  border-bottom: 1px solid var(--home-charcoal);
  padding-bottom: .25rem;
}
.home-page .site-footer {
  background: #F4F1ED;
  padding: 1.6rem 0;
  color: var(--home-charcoal);
  border-top: 1px solid rgba(94,85,80,.16);
}
.home-page .home-footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 2rem;
}
.home-page .site-footer p {
  font-size: .8rem;
  line-height: 1.5;
  margin: 0;
}
.home-page .site-footer a {
  color: var(--home-charcoal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1100px) {
  .home-page .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: .8rem;
  }
  .home-page .nav {
    justify-content: flex-start;
    gap: .25rem 1.25rem;
  }
  .home-page .hero h1 {
    font-size: clamp(2.15rem, 4.2vw, 3rem);
    white-space: normal;
  }
  .home-page .hero__copy {
    display: flex;
    flex-direction: column;
  }
  .home-page .hero__visual {
    float: none;
    order: 10;
    align-self: center;
    width: min(100%, 650px);
    max-width: none;
    margin: 2rem 0 0;
  }
}

@media (max-width: 780px) {
  .home-page .container {
    width: min(100% - 38px, 650px);
  }
  .home-page [id] {
    scroll-margin-top: 160px;
  }
  .home-page .sample-section__inner,
  .home-page .about-section__inner {
    grid-template-columns: minmax(0,1fr);
  }
  .home-page .hero {
    padding: 4rem 0 4.5rem;
  }
  .home-page .hero h1 {
    max-width: none;
    font-size: clamp(2.35rem, 6vw, 3.25rem);
  }
  .home-page .hero__visual {
    margin-top: 1.8rem;
  }
  .home-page .hero-folio {
    min-height: 430px;
  }
  .home-page .method-grid,
  .home-page .product-grid {
    grid-template-columns: minmax(0,1fr);
  }
  .home-page .method-card {
    min-height: 0;
  }
  .home-page .publications-section__header {
    align-items: start;
    flex-direction: column;
    gap: .1rem;
  }
  .home-page .publications-section__header .text-link {
    margin-top: .25rem;
  }
  .home-page .sample-section__image {
    min-height: 400px;
  }
  .home-page .about-section__image img {
    height: 345px;
  }
}

@media (max-width: 480px) {
  .home-page .container {
    width: calc(100% - 32px);
  }
  .home-page .header-inner {
    padding: .75rem 0;
  }
  .home-page .brand {
    flex-wrap: wrap;
  }
  .home-page .brand__tag {
    font-size: .71rem;
    margin-left: .2rem;
  }
  .home-page .nav {
    gap: .1rem .9rem;
  }
  .home-page .nav a {
    font-size: .84rem;
  }
  .home-page .nav a.btn--ghost {
    padding: .32rem .53rem;
  }
  .home-page .hero h1 {
    font-size: clamp(2.15rem, 8vw, 2.65rem);
  }
  .home-page .hero__cta {
    align-items: stretch;
    flex-direction: column;
  }
  .home-page .hero__cta .home-btn {
    width: 100%;
  }
  .home-page .hero-folio {
    min-height: 405px;
    padding: 1.3rem;
  }
  .home-page .hero-folio__caption {
    font-size: .56rem;
  }
  .home-page .hero-folio__center {
    padding: 1.4rem .25rem;
  }
  .home-page .hero-folio__title {
    font-size: 3.9rem;
  }
  .home-page .hero-folio__latin {
    font-size: .92rem;
  }
  .home-page .hero-folio__small,
  .home-page .hero-folio__motto {
    font-size: .62rem;
  }
  .home-page .method-card {
    padding: 1.65rem 1.4rem;
  }
  .home-page .method-card__number {
    top: 1.6rem;
    right: 1.4rem;
  }
  .home-page .sample-section__image {
    min-height: 350px;
    padding: 2rem;
  }
  .home-page .sample-cover {
    width: min(235px, 100%);
    min-height: 290px;
  }
  .home-page .sample-section__cta {
    align-items: stretch;
    flex-direction: column;
  }
  .home-page .sample-section__cta .home-btn {
    width: 100%;
  }
  .home-page .product-card__image {
    height: 275px;
  }
  .home-page .product-card__body {
    padding: 1.55rem 1.4rem;
  }
  .home-page .product-card__bottom {
    flex-wrap: wrap;
  }
  .home-page .about-section__image img {
    height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-btn,
  .home-page .product-card__image img {
    transition: none;
  }
  .home-page .home-btn:hover {
    transform: none;
  }
}
