/* Responsywny układ: szerokie ekrany, mniejsze laptopy i telefony. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}

img {
  max-width: 100%;
}

/* Ukrywa nagłówek wyłącznie wizualnie, pozostawiając go dla czytników ekranu i wyszukiwarek. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
}

/* Ikony tekstowe nie mogą przełączać się na systemowe, kolorowe emoji na iOS/Androidzie. */
.header-cta b,
.hero-cta b,
.hero-bottom b,
.pill b,
.features b,
.tile b,
.tile-carousel button,
.form-submit b,
.call i b,
.reviews-more a b,
.review-stars,
.social .fixly,
.modal button {
  font-family: Arial, Helvetica, sans-serif !important;
  font-variant-emoji: text;
  -webkit-font-smoothing: antialiased;
}

/* Zachowuje pierwotny krój strzałki „Na dół”, który nie był zastępowany emoji. */
.header-actions .header-cta:first-child b {
  font-family: inherit !important;
  font-variant-emoji: normal;
}

/* Na telefonach dozwolone jest tylko przesuwanie pionowe; powiększanie gestem jest wyłączone. */
@media (max-width: 760px) {
  html,
  body,
  main,
  footer {
    touch-action: pan-y;
  }

  .site-header,
  .screen,
  .footer-grid,
  .privacy-shell,
  .privacy-grid,
  .privacy-contact,
  .reviews,
  .reviews-grid,
  .contact,
  .contact-copy,
  .contact-photo {
    max-width: 100%;
  }
}

/* Komputery o mniejszej szerokości: zachowują układ desktopowy bez ścisku. */
@media (min-width: 761px) and (max-width: 1100px) {
  .site-header,
  .hero,
  .gallery-section,
  .process,
  footer {
    padding-inline: 3vw;
  }

  .site-header nav {
    gap: clamp(15px, 2vw, 27px);
    font-size: 13px;
  }

  .header-cta {
    padding: 11px 14px;
  }

  .about {
    grid-template-columns: minmax(250px, .78fr) minmax(390px, 1.22fr);
  }

  .about-copy {
    padding-inline: clamp(30px, 5vw, 64px);
  }

  .process-top {
    gap: clamp(30px, 5vw, 64px);
  }

  .contact {
    grid-template-columns: minmax(250px, .75fr) minmax(500px, 1.25fr);
  }

  .contact-copy {
    padding-inline: clamp(28px, 4.8vw, 60px);
  }

  .contact-options {
    grid-template-columns: minmax(220px, 1fr) minmax(145px, .46fr);
    gap: 20px;
  }
}

/* Niskie laptopy: każdy ekran zachowuje oddech i mieści najważniejszą treść. */
@media (min-width: 761px) and (max-height: 820px) {
  .site-header {
    height: 82px;
  }

  .hero {
    padding-top: 94px;
    padding-bottom: 16px;
    gap: 9px;
  }

  .hero-image {
    min-height: 360px;
  }

  .hero-bottom {
    gap: 20px;
  }

  .about-photo,
  .contact-photo {
    margin-top: 82px;
  }

  .about-photo {
    height: calc(100svh - 132px);
  }

  .contact-photo {
    height: calc(100svh - 116px);
  }

  .about-copy {
    padding-top: 82px;
    padding-bottom: 30px;
  }

  .about-copy .eyebrow,
  .section-head .eyebrow,
  .process .eyebrow {
    margin-bottom: 12px;
  }

  .about-lead {
    margin: 19px 0;
    line-height: 1.5;
  }

  .about-lines p {
    padding: 11px 0;
  }

  .gallery-section {
    padding-top: 88px;
    padding-bottom: 16px;
  }

  .section-head {
    margin-bottom: 18px;
  }

  .gallery-grid {
    min-height: 240px;
  }

  .gallery-section.is-expanded {
    padding-top: 88px;
    padding-bottom: 18px;
  }

  .gallery-grid.expanded .tile.active {
    height: clamp(280px, 47svh, 380px);
  }

  .gallery-section.is-expanded .gallery-grid.expanded .tile.active {
    height: clamp(330px, 55svh, 430px);
  }

  .process {
    padding-top: 88px;
    padding-bottom: 18px;
  }

  .process-image {
    height: min(29svh, 240px);
    min-height: 185px;
    margin-top: 14px;
  }

  .features article {
    min-height: 104px;
    padding: 13px;
  }

  .features b {
    margin-bottom: 12px;
  }

  .contact-copy {
    padding-top: 74px;
    padding-bottom: 26px;
  }

  .contact-body {
    gap: 12px;
    margin-top: 18px;
  }

  .contact-options .call,
  .estimate {
    min-height: 126px;
    padding: 15px;
  }
}

/* Telefony: układ jednokolumnowy, czytelne pola i obrazy o kontrolowanej wysokości. */
@media (max-width: 760px) {
  .screen {
    min-height: auto;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .site-header {
    height: 76px;
    padding-inline: 16px;
  }

  .brand {
    font-size: 12px;
  }

  .brand img {
    width: 40px;
    height: 32px;
  }

  .header-cta {
    padding: 9px 11px;
    font-size: 11px;
  }

  .hero {
    min-height: 100svh;
    padding: 88px 16px 16px;
  }

  .hero-image {
    height: min(60svh, 520px);
    min-height: 400px;
  }

  .hero-bottom {
    gap: 10px;
  }

  .hero-bottom p {
    font-size: 11px;
  }

  .about-photo {
    height: min(50svh, 390px);
    min-height: 260px;
  }

  .about-copy,
  .contact-copy {
    padding-inline: 20px;
  }

  .gallery-section {
    padding: 90px 16px 20px;
  }

  .gallery-grid {
    min-height: 0;
  }

  .gallery-section.is-expanded {
    padding: 84px 16px 20px;
  }

  .gallery-grid.expanded .tile.active,
  .gallery-section.is-expanded .gallery-grid.expanded .tile.active {
    height: min(56svh, 500px);
  }

  .process {
    padding: 88px 16px 20px;
  }

  .process-image {
    height: min(48svh, 390px);
    min-height: 260px;
  }

  .features article {
    padding: 11px;
  }

  .contact-photo {
    height: min(46svh, 360px);
    min-height: 240px;
  }

  .contact-copy {
    padding-top: 42px;
    padding-bottom: 30px;
  }

  .contact-body {
    margin-top: 20px;
  }

  footer {
    min-height: auto;
    padding-inline: 16px;
  }
}

/* Najwęższe telefony: pola formularza i kafelki kontaktu układają się w jedną kolumnę. */
@media (max-width: 480px) {
  .header-cta b {
    margin-left: 4px;
  }

  .hero-image {
    min-height: 360px;
  }

  .form-fields,
  .contact-options {
    grid-template-columns: 1fr;
  }

  .form-message,
  .contact-options .mail {
    grid-column: auto;
  }

  .contact-options {
    gap: 14px;
  }

  .contact-options .mail {
    justify-self: start;
    margin-top: 2px;
  }

  .contact-options .call,
  .estimate {
    min-height: 128px;
  }

  .footer-grid {
    gap: 28px 14px;
  }
}

/* Podstrona polityki prywatności korzysta z tych samych progów szerokości. */
@media (min-width: 761px) and (max-width: 1100px) {
  .privacy-screen {
    padding-inline: 3vw;
  }

  .privacy-hero .privacy-shell,
  .privacy-grid,
  .privacy-contact {
    gap: clamp(28px, 5vw, 64px);
  }

  .privacy-note {
    gap: 9px;
  }
}

@media (min-width: 761px) and (max-height: 820px) {
  .privacy-screen {
    padding-top: 56px;
    padding-bottom: 42px;
  }

  .privacy-hero h1 {
    font-size: clamp(48px, 6.2vw, 80px);
  }

  .privacy-card {
    padding-top: 12px;
  }

  .privacy-card h3 {
    margin-bottom: 4px;
  }

  .privacy-note {
    margin-top: 20px;
  }

  .privacy-note article {
    min-height: 130px;
    padding: 14px;
  }
}

/* Dwa działania w nagłówku zachowują identyczny wygląd i mieszczą się na telefonie. */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions .header-cta {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .header-actions {
    gap: 6px;
  }

  .header-actions .header-cta {
    padding: 10px 9px;
    font-size: 11px;
  }

  .header-actions .header-cta b {
    margin-left: 4px;
  }
}

/* Lżejsze domknięcie sekcji startowej bez dodatkowych bloków tekstu. */
.hero-bottom {
  grid-template-columns: max-content minmax(40px, 1fr) max-content;
  gap: clamp(16px, 2.4vw, 30px);
  min-height: 44px;
}

.hero-bottom .eyebrow {
  margin: 0;
}

.hero-divider {
  display: block;
  height: 1px;
  background: var(--line);
}

@media (max-width: 760px) {
  .hero-bottom {
    grid-template-columns: 1fr auto;
  }

  .hero-divider {
    display: none;
  }
}

/* Opinie zewnętrznego portalu w stylistyce pozostałych sekcji strony. */
.reviews {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(270px, .76fr) minmax(0, 1.24fr);
  gap: clamp(32px, 7vw, 120px);
  overflow: hidden;
  padding: 118px 4.2vw 32px;
  background: #e1e3d7;
}

.reviews::before {
  position: absolute;
  top: 0;
  right: 0;
  width: min(40vw, 580px);
  height: min(40vw, 580px);
  border-radius: 0 0 0 100%;
  content: "";
  background: #d3d8c8;
}

.reviews-intro,
.reviews-content {
  position: relative;
  z-index: 1;
}

.reviews-intro {
  align-self: center;
}

.reviews-intro .eyebrow {
  margin-bottom: 20px;
  color: #6f7864;
}

.reviews-intro > p:not(.eyebrow) {
  max-width: 360px;
  margin: 24px 0 0;
  color: #596157;
  font-size: 14px;
  line-height: 1.6;
}

.reviews-intro .pill {
  margin-top: 26px;
}

.reviews-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.review-card {
  display: flex;
  min-height: 174px;
  flex-direction: column;
  border-radius: var(--card-radius);
  padding: clamp(16px, 2vw, 23px);
  background: rgba(255, 255, 255, .77);
}

.review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}

.review-meta strong {
  font-size: 15px;
  letter-spacing: -.035em;
}

.review-stars {
  color: #8c9a61;
  font-size: 12px;
  letter-spacing: .07em;
  white-space: nowrap;
}

.review-card p {
  margin: 0;
  color: #626a60;
  font-size: 12px;
  line-height: 1.5;
}

.reviews-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 14px;
  border-top: 1px solid rgba(64, 73, 60, .2);
  padding-top: 14px;
}

.reviews-more p {
  max-width: 300px;
  margin: 0;
  color: #667064;
  font-size: 11px;
  line-height: 1.45;
}

.reviews-more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 5px;
  color: #3f4a38;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .18s ease, transform .18s ease;
}

.reviews-more a:hover {
  color: #596545;
  transform: translateY(-2px);
}

@media (min-width: 761px) and (max-height: 820px) {
  .reviews {
    padding-top: 94px;
    padding-bottom: 24px;
  }

  .review-card {
    min-height: 138px;
    padding: 14px 16px;
  }

  .review-meta {
    margin-bottom: 9px;
  }

  .review-card p {
    font-size: 11px;
  }
}

@media (max-width: 760px) {
  .reviews {
    display: block;
    min-height: auto;
    padding: 104px 16px 28px;
  }

  .reviews::before {
    width: 74vw;
    height: 74vw;
  }

  .reviews-intro > p:not(.eyebrow) {
    margin-top: 20px;
  }

  .reviews-content {
    margin-top: 34px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .review-card {
    min-height: auto;
    padding: 17px;
  }

  .reviews-more {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .reviews-more a {
    white-space: normal;
  }
}

/* Mobilna wersja grafiki startowej: osobny panel marki i osobne, pełne zdjęcie. */
.hero-mobile-brand {
  display: none;
}

@media (max-width: 760px) {
  .hero {
    min-height: 100svh;
  }

  .hero .hero-image {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    gap: 14px;
    height: auto;
    min-height: 0;
    overflow: visible;
    background: transparent;
  }

  .hero .hero-image::before {
    display: none;
  }

  .hero .hero-image > img {
    position: relative;
    z-index: 1;
    inset: auto;
    order: 2;
    width: 100%;
    height: auto;
    aspect-ratio: 2553 / 945;
    border-radius: var(--soft-radius);
    object-fit: contain;
    object-position: center;
  }

  .hero-mobile-brand {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1 0 278px;
    flex-direction: column;
    justify-content: space-between;
    min-height: 278px;
    border-radius: var(--soft-radius);
    padding: 26px 24px 22px;
    background: linear-gradient(135deg, rgba(8, 12, 9, .83), rgba(8, 12, 9, .62)), center / cover no-repeat url("assets/sypialnie-03.webp");
    color: #fff;
  }

  .hero-mobile-branding {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .hero-mobile-branding img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: brightness(0) invert(1);
  }

  .hero-mobile-branding div {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .hero-mobile-branding span {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .hero-mobile-branding strong {
    font-size: clamp(28px, 8vw, 38px);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: .9;
    text-transform: uppercase;
  }

  .hero-mobile-branding small {
    margin-top: 5px;
    color: rgba(255, 255, 255, .76);
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .hero-mobile-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-mobile-content p {
    max-width: 325px;
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: 14px;
    line-height: 1.48;
  }

  .hero-mobile-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 38px;
    min-width: 230px;
    border-radius: 999px;
    padding: 14px 18px;
    background: #fff;
    color: #1d211d;
    font-size: 13px;
    font-weight: 700;
  }

  .hero-mobile-cta b {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-variant-emoji: text;
    font-weight: 400;
  }

  .hero .hero-cta,
  .hero .hero-note {
    display: none;
  }
}
