/* =====================================================
   GABINET KOSMETOLOGICZNY — GŁÓWNY ARKUSZ STYLÓW
   Kolorystyka: beże, pudrowy róż, biel i złote akcenty
   ===================================================== */

/* Zmienne i ustawienia bazowe */
:root {
  --cream: #fbf8f5;
  --beige: #f2e9e3;
  --beige-dark: #dfcfc3;
  --blush: #ead3d0;
  --rose: #c98f8b;
  --rose-dark: #9f6664;
  --gold: #b9925e;
  --gold-light: #d4b98d;
  --brown: #433633;
  --brown-soft: #6f625e;
  --white: #ffffff;
  --line: rgba(67, 54, 51, 0.12);
  --shadow-sm: 0 10px 30px rgba(78, 58, 50, 0.08);
  --shadow-lg: 0 24px 60px rgba(78, 58, 50, 0.14);
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 36px;
  --header-height: 82px;
  --transition: 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  color: var(--brown);
  background: var(--cream);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1,
h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  letter-spacing: -0.03em;
}

h2 em,
h1 em {
  color: var(--rose-dark);
  font-weight: 600;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 120px 0;
}

.section-tinted {
  background: var(--beige);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 30px;
  height: 1px;
  background: currentColor;
  content: "";
}

.section-heading {
  max-width: 700px;
  margin: 0 auto 58px;
  text-align: center;
}

.section-heading .eyebrow {
  justify-content: center;
}

.section-heading > p:last-child {
  max-width: 610px;
  margin-inline: auto;
  color: var(--brown-soft);
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--white);
  background: var(--brown);
  transform: translateY(-160%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Przyciski i linki */
.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.button:hover {
  transform: translateY(-3px);
}

.button:focus-visible,
.text-link:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(185, 146, 94, 0.4);
  outline-offset: 4px;
}

.button-primary {
  color: var(--white);
  background: var(--rose-dark);
  box-shadow: 0 12px 26px rgba(159, 102, 100, 0.28);
}

.button-primary:hover {
  background: #8f5a58;
  box-shadow: 0 16px 35px rgba(159, 102, 100, 0.38);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.button-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.17);
}

.button-outline {
  border-color: var(--gold);
  color: var(--brown);
  background: transparent;
}

.button-outline:hover {
  color: var(--white);
  background: var(--gold);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  transition: gap var(--transition), color var(--transition);
}

.text-link:hover {
  gap: 16px;
  color: var(--rose-dark);
}

/* Nawigacja */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(251, 248, 245, 0.93);
  transition: height var(--transition), box-shadow var(--transition), border-color var(--transition);
  backdrop-filter: blur(14px);
}

.site-header.scrolled {
  height: 70px;
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(67, 54, 51, 0.07);
}

.nav-container {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.brand-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.18rem;
  line-height: 0.95;
}

.brand-text strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
  color: var(--brown-soft);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  transition: color var(--transition);
}

.main-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transition: transform var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--rose-dark);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.main-nav .nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  color: var(--white);
  background: var(--brown);
}

.main-nav .nav-cta:hover {
  color: var(--white);
  background: var(--rose-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  margin: 6px auto;
  background: var(--brown);
  transition: transform var(--transition), opacity var(--transition);
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  min-height: 780px;
  align-items: center;
  color: var(--white);
  background-image: url("https://images.unsplash.com/photo-1616394584738-fc6e612e71b9?auto=format&fit=crop&w=2000&q=90");
  background-position: center 38%;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(49, 37, 34, 0.84) 0%, rgba(55, 42, 39, 0.64) 45%, rgba(55, 42, 39, 0.12) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: var(--header-height);
}

.hero-eyebrow {
  margin-top: 28px;
  color: var(--gold-light);
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.5rem, 7.8vw, 6.8rem);
  letter-spacing: -0.04em;
}

.hero h1 em {
  color: #f2d9d5;
}

.hero-lead {
  max-width: 600px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-trust {
  display: flex;
  gap: 44px;
  margin: 62px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  list-style: none;
  transform: translateY(-18px);
}

.hero-trust li {
  display: flex;
  flex-direction: column;
}

.hero-trust strong {
  color: var(--gold-light);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.75rem;
  line-height: 1;
}

.hero-trust span {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.7rem;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: 50%;
  bottom: 26px;
  display: grid;
  width: 28px;
  height: 46px;
  place-items: start center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  transform: translateX(50%);
}

.scroll-cue span {
  width: 4px;
  height: 7px;
  margin-top: 9px;
  border-radius: 4px;
  background: var(--white);
  animation: scroll-down 2s infinite;
}

@keyframes scroll-down {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px); }
}

/* O nas */
.about-grid {
  display: grid;
  align-items: center;
  gap: clamp(60px, 9vw, 120px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
}

.about-visual {
  position: relative;
}

.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: 180px 180px var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.image-frame::before {
  position: absolute;
  z-index: 1;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.image-frame img {
  width: 100%;
  height: 610px;
  object-fit: cover;
}

.experience-card {
  position: absolute;
  right: -42px;
  bottom: 54px;
  display: flex;
  width: 160px;
  height: 160px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(185, 146, 94, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.experience-card::before {
  position: absolute;
  inset: 8px;
  border: 1px solid var(--beige-dark);
  border-radius: inherit;
  content: "";
}

.experience-card strong,
.experience-card span {
  position: relative;
  z-index: 1;
}

.experience-card strong {
  color: var(--rose-dark);
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1;
}

.experience-card span {
  width: 100px;
  margin-top: 5px;
  color: var(--brown-soft);
  font-size: 0.65rem;
  line-height: 1.45;
}

.about-copy .lead {
  color: var(--brown);
  font-size: 1.02rem;
}

.about-copy > p:not(.eyebrow) {
  color: var(--brown-soft);
}

.about-values {
  display: grid;
  gap: 18px;
  margin: 34px 0;
  grid-template-columns: repeat(2, 1fr);
}

.about-values > div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-values svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.3;
}

.about-values span {
  color: var(--brown-soft);
  font-size: 0.72rem;
  line-height: 1.55;
}

.about-values strong {
  display: block;
  margin-bottom: 3px;
  color: var(--brown);
  font-size: 0.76rem;
}

/* Usługi */
.services::before {
  position: absolute;
  top: 40px;
  right: -80px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(185, 146, 94, 0.18);
  border-radius: 50%;
  content: "";
}

.services-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  position: relative;
  display: flex;
  min-height: 355px;
  flex-direction: column;
  overflow: hidden;
  padding: 38px 34px 30px;
  border: 1px solid rgba(185, 146, 94, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card::after {
  position: absolute;
  right: -35px;
  bottom: -35px;
  width: 110px;
  height: 110px;
  border: 1px solid var(--beige-dark);
  border-radius: 50%;
  content: "";
  transition: transform var(--transition);
}

.service-card:hover {
  border-color: rgba(185, 146, 94, 0.4);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.service-card:hover::after {
  transform: scale(1.18);
}

.service-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--rose-dark);
  background: var(--beige);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.service-icon svg use[href="#icon-sparkles"] {
  fill: currentColor;
  stroke: none;
}

.service-card h3 {
  margin-bottom: 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  font-weight: 600;
}

.service-card p {
  margin-bottom: 24px;
  color: var(--brown-soft);
  font-size: 0.8rem;
}

.service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
}

.service-meta span {
  color: var(--brown-soft);
}

.service-meta strong {
  color: var(--rose-dark);
}

/* Galeria */
.gallery-grid {
  display: grid;
  height: 770px;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.gallery-item {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--beige);
}

.gallery-item-large {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}

/* Jawne pozycje eliminują automatyczne utworzenie pustego trzeciego rzędu. */
.gallery-item:nth-child(2) { grid-column: 3; grid-row: 1; }
.gallery-item:nth-child(3) { grid-column: 4; grid-row: 1; }
.gallery-item:nth-child(4) { grid-column: 3; grid-row: 2; }
.gallery-item:nth-child(5),
.gallery-item-wide { grid-column: 4; grid-row: 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1), filter var(--transition);
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(43, 33, 30, 0.75), transparent 55%);
  content: "";
  opacity: 0.72;
  transition: opacity var(--transition);
}

.gallery-item:hover img {
  filter: saturate(0.8);
  transform: scale(1.06);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item figcaption {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 22px;
  left: 24px;
  color: var(--white);
  transform: translateY(5px);
  transition: transform var(--transition);
}

.gallery-item:hover figcaption {
  transform: translateY(0);
}

.gallery-item figcaption span,
.gallery-item figcaption strong {
  display: block;
}

.gallery-item figcaption span {
  margin-bottom: 5px;
  color: var(--gold-light);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.gallery-item figcaption strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 600;
}

.gallery-note {
  margin: 24px 0 0;
  color: var(--brown-soft);
  font-size: 0.68rem;
  text-align: center;
}

/* Opinie */
.section-dark {
  color: var(--white);
  background: var(--brown);
}

.section-dark::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 10%, rgba(234, 211, 208, 0.08), transparent 30%), radial-gradient(circle at 90% 80%, rgba(185, 146, 94, 0.1), transparent 27%);
  content: "";
}

.section-heading-light {
  position: relative;
}

.section-heading-light .eyebrow {
  color: var(--gold-light);
}

.section-heading-light h2 em {
  color: #e6c5c2;
}

.testimonials-grid {
  position: relative;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}

.testimonial-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(212, 185, 141, 0.35);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-6px);
}

.stars {
  margin-bottom: 24px;
  color: var(--gold-light);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
}

.testimonial-card blockquote {
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.79);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.36rem;
  font-style: italic;
  line-height: 1.55;
}

.client {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: auto;
}

.client > span {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(212, 185, 141, 0.5);
  border-radius: 50%;
  color: var(--gold-light);
  font-family: "Cormorant Garamond", serif;
}

.client p,
.client small,
.client strong {
  display: block;
  margin: 0;
}

.client strong {
  font-size: 0.74rem;
}

.client small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.63rem;
}

/* Cennik */
.pricing-layout {
  display: grid;
  align-items: start;
  gap: clamp(55px, 8vw, 100px);
  grid-template-columns: minmax(0, 0.75fr) minmax(550px, 1.25fr);
}

.pricing-intro {
  position: sticky;
  top: 110px;
}

.pricing-intro > p:not(.eyebrow) {
  color: var(--brown-soft);
}

.consultation-box {
  display: grid;
  align-items: center;
  gap: 16px;
  margin: 34px 0;
  padding: 20px;
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius-sm);
  background: var(--white);
  grid-template-columns: auto 1fr auto;
}

.consultation-box svg {
  width: 26px;
  height: 26px;
  fill: var(--gold);
}

.consultation-box p,
.consultation-box span,
.consultation-box strong {
  display: block;
  margin: 0;
}

.consultation-box p > strong {
  color: var(--brown);
  font-size: 0.74rem;
}

.consultation-box span {
  color: var(--brown-soft);
  font-size: 0.62rem;
  line-height: 1.5;
}

.consultation-box > strong {
  color: var(--rose-dark);
  font-size: 0.78rem;
  white-space: nowrap;
}

.price-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.price-table th {
  color: var(--gold);
  background: #f8f3ef;
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price-table td {
  font-size: 0.76rem;
}

.price-table th:nth-child(2),
.price-table td:nth-child(2) {
  color: var(--brown-soft);
}

.price-table th:last-child,
.price-table td:last-child {
  color: var(--rose-dark);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.price-table tbody tr {
  transition: background var(--transition);
}

.price-table tbody tr:hover {
  background: var(--cream);
}

.price-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Kontakt */
.contact-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 0.85fr 1.15fr;
}

.contact-details,
.contact-form {
  border-radius: var(--radius-md);
}

.contact-details {
  padding: 45px;
  color: var(--white);
  background: var(--brown);
}

.contact-details h3 {
  margin-bottom: 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
}

.contact-intro {
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.contact-details address {
  display: grid;
  gap: 22px;
  font-style: normal;
}

.contact-details address > a,
.contact-details address > div {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  font-size: 0.75rem;
}

.contact-details address > a {
  transition: color var(--transition);
}

.contact-details address > a:hover {
  color: var(--gold-light);
}

.contact-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(212, 185, 141, 0.35);
  border-radius: 50%;
}

.contact-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--gold-light);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.contact-details address small {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-row > span {
  margin-right: 6px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.68rem;
}

.social-row a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.social-row a:hover {
  border-color: var(--gold);
  background: var(--gold);
  transform: translateY(-3px);
}

.social-row svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.social-row a:last-child svg {
  fill: currentColor;
  stroke: none;
}

.sample-data {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.36);
  font-size: 0.59rem;
}

.contact-form {
  padding: 45px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.form-heading {
  margin-bottom: 28px;
}

.form-heading span {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
}

.form-heading p {
  margin: 4px 0 0;
  color: var(--brown-soft);
  font-size: 0.7rem;
}

.form-row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.68rem;
  font-weight: 600;
}

.form-field label span,
.form-note span {
  color: var(--rose-dark);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  color: var(--brown);
  background: var(--cream);
  font-size: 0.76rem;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-field input {
  height: 50px;
  padding: 0 15px;
}

.form-field textarea {
  min-height: 126px;
  padding: 13px 15px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #aa9e99;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(185, 146, 94, 0.12);
}

.form-field input.invalid,
.form-field textarea.invalid {
  border-color: #b75353;
  background: #fffafa;
}

.field-error {
  display: block;
  min-height: 15px;
  margin-top: 3px;
  color: #a73f3f;
  font-size: 0.59rem;
  line-height: 1.4;
}

.form-note {
  margin: -3px 0 19px;
  color: var(--brown-soft);
  font-size: 0.59rem;
}

.form-submit {
  width: 100%;
  justify-content: space-between;
  border: 0;
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 0.68rem;
}

.form-status.success {
  display: block;
  color: #37674c;
  background: #edf7f1;
}

.form-status.error {
  display: block;
  color: #943a3a;
  background: #fff0f0;
}

.map-wrapper {
  position: relative;
  height: 410px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.9) sepia(0.15) contrast(0.92);
}

.map-label {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: calc(100% - 48px);
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}

.map-label svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--rose-dark);
  stroke-width: 1.5;
}

.map-label span,
.map-label strong {
  display: block;
}

.map-label span {
  color: var(--brown-soft);
  font-size: 0.62rem;
  line-height: 1.45;
}

.map-label strong {
  color: var(--brown);
  font-size: 0.72rem;
}

/* Stopka */
.site-footer {
  padding: 70px 0 0;
  color: var(--white);
  background: #302623;
}

.footer-main {
  display: grid;
  align-items: center;
  gap: 40px;
  padding-bottom: 50px;
  grid-template-columns: 1fr 1.1fr 1fr;
}

.brand-light .brand-mark {
  color: var(--gold-light);
}

.footer-main > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  text-align: center;
}

.footer-main nav {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

.footer-main nav a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.66rem;
  transition: color var(--transition);
}

.footer-main nav a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.6rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--gold-light);
}

/* Animacje pojawiania się elementów */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal-delay-sm { transition-delay: 100ms; }
.js .reveal-delay,
.js .reveal-delay-md { transition-delay: 200ms; }

/* Tablet */
@media (max-width: 1024px) {
  :root { --header-height: 74px; }

  .section { padding: 95px 0; }

  .menu-toggle { display: block; }

  .main-nav {
    position: fixed;
    z-index: 999;
    top: var(--header-height);
    right: 0;
    width: min(390px, 88vw);
    height: calc(100vh - var(--header-height));
    padding: 44px;
    background: var(--cream);
    box-shadow: -20px 25px 50px rgba(67, 54, 51, 0.16);
    transform: translateX(105%);
    transition: transform var(--transition);
  }

  .main-nav.open { transform: translateX(0); }

  .main-nav ul {
    align-items: stretch;
    gap: 10px;
    flex-direction: column;
  }

  .main-nav a {
    display: block;
    padding: 13px 4px;
    font-size: 0.85rem;
  }

  .main-nav .nav-cta {
    margin-top: 12px;
    padding: 13px 20px;
    text-align: center;
  }

  .menu-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .hero { min-height: 730px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(49, 37, 34, 0.84), rgba(55, 42, 39, 0.38)); }

  .about-grid { gap: 70px; }
  .image-frame img { height: 530px; }
  .experience-card { right: -30px; width: 140px; height: 140px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { min-height: 335px; }

  .gallery-grid {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 420px repeat(2, 260px);
  }
  .gallery-item-large { grid-column: 1 / -1; grid-row: 1; }
  .gallery-item:nth-child(2) { grid-column: 1; grid-row: 2; }
  .gallery-item:nth-child(3) { grid-column: 2; grid-row: 2; }
  .gallery-item:nth-child(4) { grid-column: 1; grid-row: 3; }
  .gallery-item:nth-child(5),
  .gallery-item-wide { grid-column: 2; grid-row: 3; }

  .testimonials-grid { gap: 15px; }
  .testimonial-card { min-height: 410px; padding: 28px; }
  .testimonial-card blockquote { font-size: 1.23rem; }

  .pricing-layout { gap: 50px; grid-template-columns: 0.8fr 1.2fr; }
  .price-table th, .price-table td { padding: 18px 16px; }

  .contact-grid { grid-template-columns: 0.85fr 1.15fr; }
  .contact-details, .contact-form { padding: 35px; }

  .footer-main { gap: 25px; }
  .footer-main nav { flex-wrap: wrap; }
}

/* Mały tablet i telefon */
@media (max-width: 768px) {
  .container { width: min(calc(100% - 32px), 620px); }
  .section { padding: 78px 0; }
  h2 { font-size: clamp(2.4rem, 12vw, 3.5rem); }
  .section-heading { margin-bottom: 42px; }

  .brand-text { display: none; }

  .hero {
    min-height: 760px;
    background-position: 61% center;
  }

  .hero-overlay { background: linear-gradient(90deg, rgba(45, 34, 31, 0.9), rgba(49, 37, 34, 0.58)); }
  .hero-content { padding-top: 95px; }
  .hero h1 { font-size: clamp(3.4rem, 16vw, 5rem); }
  .hero-lead { font-size: 0.9rem; }
  .hero-trust { gap: 20px; margin-top: 48px; transform: translateY(-10px); }
  .hero-trust li { flex: 1; }
  .hero-trust span { font-size: 0.58rem; line-height: 1.45; }
  .scroll-cue { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 500px; margin-inline: auto; }
  .image-frame img { height: 570px; }
  .experience-card { right: -8px; bottom: 34px; }
  .about-values { gap: 14px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; padding: 32px 28px; }

  .gallery-grid {
    height: auto;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
  }
  .gallery-item { height: 320px; }
  .gallery-item-large { height: 480px; grid-column: span 2; grid-row: auto; }
  .gallery-item-wide { grid-column: span 2; }

  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card { min-height: 0; }

  .pricing-layout { grid-template-columns: 1fr; }
  .pricing-intro { position: static; }
  .price-table-wrap { overflow-x: auto; }
  .price-table { min-width: 590px; }

  .contact-grid { grid-template-columns: 1fr; }
  .map-wrapper { height: 350px; }

  .footer-main { text-align: center; grid-template-columns: 1fr; }
  .footer-main .brand { justify-content: center; }
  .footer-main .brand-text { display: block; text-align: left; }
  .footer-main nav { justify-content: center; }
}

/* Telefon */
@media (max-width: 520px) {
  .container { width: calc(100% - 28px); }
  .section { padding: 68px 0; }

  .hero { min-height: 720px; }
  .hero-content { padding-top: 90px; }
  .hero h1 { margin-bottom: 18px; font-size: 3.35rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-trust { gap: 10px; }
  .hero-trust strong { font-size: 1.45rem; }

  .about-grid { gap: 50px; }
  .image-frame img { height: 460px; }
  .experience-card { width: 120px; height: 120px; }
  .experience-card strong { font-size: 1.65rem; }
  .about-values { grid-template-columns: 1fr; }

  .gallery-grid { display: flex; flex-direction: column; }
  .gallery-item,
  .gallery-item-large,
  .gallery-item-wide { height: 360px; }

  .testimonial-card { padding: 27px; }

  .consultation-box { align-items: start; grid-template-columns: auto 1fr; }
  .consultation-box > strong { grid-column: 2; }

  .contact-details,
  .contact-form { padding: 30px 22px; }
  .form-row { grid-template-columns: 1fr; }
  .form-field { margin-bottom: 12px; }
  .contact-details address > a,
  .contact-details address > div { overflow-wrap: anywhere; }

  .map-wrapper { height: 330px; }
  .map-label { right: 14px; bottom: 14px; left: 14px; max-width: none; }

  .footer-main nav { gap: 12px 18px; }
  .footer-bottom { gap: 10px; padding: 20px 0; text-align: center; flex-direction: column; }
}

/* Poszanowanie preferencji ograniczonego ruchu */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* =====================================================
   CHATBOT AI — ELEGANCKI WIDGET GABINETU
   Fragment dodany na końcu głównego arkusza stylów
   ===================================================== */

/* Klasa pomocnicza dostępna tylko dla czytników ekranu */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ai-chatbot {
  --chat-accent: #b98a6f;
  --chat-accent-dark: #946853;
  --chat-cream: #fffaf7;
  --chat-bot-bubble: #f2e6de;
  --chat-text: #433633;
  --chat-muted: #7c6c65;
  position: fixed;
  z-index: 1600;
  right: 24px;
  bottom: 24px;
  font-family: "Montserrat", sans-serif;
}

/* Pływający przycisk otwierający czat */
.ai-chatbot__launcher {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 11px;
  padding: 9px 20px 9px 9px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--chat-accent);
  box-shadow: 0 14px 38px rgba(90, 61, 48, 0.28);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  transform-origin: right bottom;
  transition: background 250ms ease, box-shadow 250ms ease, transform 250ms ease, opacity 200ms ease;
}

.ai-chatbot__launcher:hover {
  background: var(--chat-accent-dark);
  box-shadow: 0 18px 44px rgba(90, 61, 48, 0.36);
  transform: translateY(-3px);
}

.ai-chatbot__launcher:focus-visible,
.ai-chatbot__close:focus-visible,
.ai-chatbot__send:focus-visible,
.ai-chatbot__input-row input:focus-visible {
  outline: 3px solid rgba(185, 138, 111, 0.35);
  outline-offset: 3px;
}

.ai-chatbot__launcher-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.17);
}

.ai-chatbot__launcher-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.ai-chatbot.is-open .ai-chatbot__launcher {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.92);
}

/* Główne okno rozmowy */
.ai-chatbot__window {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  width: 380px;
  height: 540px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(185, 138, 111, 0.2);
  border-radius: 24px;
  color: var(--chat-text);
  background: var(--chat-cream);
  box-shadow: 0 24px 70px rgba(67, 43, 34, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(22px) scale(0.94);
  transform-origin: right bottom;
  transition: opacity 260ms ease, transform 350ms cubic-bezier(0.22, 1, 0.36, 1), visibility 260ms;
}

.ai-chatbot.is-open .ai-chatbot__window {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Nagłówek okna */
.ai-chatbot__header {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: #fff;
  background: linear-gradient(135deg, #b98a6f, #9f7059);
}

.ai-chatbot__avatar {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-weight: 700;
}

.ai-chatbot__heading {
  min-width: 0;
  flex: 1;
}

.ai-chatbot__heading h2 {
  margin: 0;
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.37rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
}

.ai-chatbot__heading p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.59rem;
  line-height: 1.2;
}

.ai-chatbot__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dcefcf;
  box-shadow: 0 0 0 3px rgba(220, 239, 207, 0.15);
}

.ai-chatbot__close {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  padding: 0 0 3px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 1.55rem;
  font-weight: 300;
  line-height: 1;
  transition: background 200ms ease, transform 200ms ease;
}

.ai-chatbot__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(5deg);
}

/* Historia rozmowy i dymki */
.ai-chatbot__messages {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 18px 15px;
  scroll-behavior: smooth;
  scrollbar-color: rgba(185, 138, 111, 0.38) transparent;
  scrollbar-width: thin;
}

.ai-chatbot__messages::-webkit-scrollbar {
  width: 5px;
}

.ai-chatbot__messages::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: rgba(185, 138, 111, 0.38);
}

.ai-chatbot__message {
  width: fit-content;
  max-width: 84%;
  padding: 10px 13px;
  border-radius: 17px;
  font-size: 0.71rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  animation: ai-chatbot-message-in 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ai-chatbot__message--bot {
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  color: var(--chat-text);
  background: var(--chat-bot-bubble);
}

.ai-chatbot__message--user {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  color: #fff;
  background: var(--chat-accent);
  box-shadow: 0 6px 16px rgba(185, 138, 111, 0.18);
}

@keyframes ai-chatbot-message-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Wskaźnik oczekiwania na odpowiedź */
.ai-chatbot__typing {
  display: flex;
  align-self: flex-start;
  align-items: center;
  gap: 4px;
  padding: 10px 13px;
  border-radius: 17px 17px 17px 5px;
  color: var(--chat-muted);
  background: var(--chat-bot-bubble);
  font-size: 0.63rem;
}

.ai-chatbot__typing-label {
  margin-right: 3px;
}

.ai-chatbot__typing-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--chat-accent);
  animation: ai-chatbot-typing 1.1s infinite ease-in-out;
}

.ai-chatbot__typing-dot:nth-child(3) { animation-delay: 120ms; }
.ai-chatbot__typing-dot:nth-child(4) { animation-delay: 240ms; }

@keyframes ai-chatbot-typing {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* Pole wpisywania wiadomości */
.ai-chatbot__form {
  flex: 0 0 auto;
  padding: 11px 13px 10px;
  border-top: 1px solid rgba(185, 138, 111, 0.16);
  background: rgba(255, 250, 247, 0.96);
}

.ai-chatbot__input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-chatbot__input-row input {
  width: 100%;
  height: 43px;
  min-width: 0;
  padding: 0 13px;
  border: 1px solid rgba(185, 138, 111, 0.28);
  border-radius: 14px;
  outline: none;
  color: var(--chat-text);
  background: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.68rem;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.ai-chatbot__input-row input::placeholder {
  color: #a7958c;
}

.ai-chatbot__input-row input:focus {
  border-color: var(--chat-accent);
  box-shadow: 0 0 0 3px rgba(185, 138, 111, 0.1);
}

.ai-chatbot__input-row input:disabled {
  cursor: wait;
  opacity: 0.65;
}

.ai-chatbot__send {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: var(--chat-accent);
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease, opacity 200ms ease;
}

.ai-chatbot__send:hover:not(:disabled) {
  background: var(--chat-accent-dark);
  transform: translateY(-2px);
}

.ai-chatbot__send:disabled {
  cursor: wait;
  opacity: 0.55;
}

.ai-chatbot__send svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.ai-chatbot__note {
  margin: 7px 2px 0;
  color: var(--chat-muted);
  font-size: 0.5rem;
  line-height: 1.35;
  text-align: center;
}

/* Dopasowanie widgetu do małych ekranów */
@media (max-width: 480px) {
  .ai-chatbot {
    right: 12px;
    bottom: 12px;
  }

  .ai-chatbot__launcher {
    min-height: 54px;
    padding-right: 17px;
  }

  .ai-chatbot__launcher-icon {
    width: 36px;
    height: 36px;
  }

  .ai-chatbot__window {
    right: 0;
    bottom: 0;
    width: calc(100vw - 24px);
    height: min(540px, calc(100vh - 24px));
    height: min(540px, calc(100dvh - 24px));
    max-height: none;
    border-radius: 21px;
  }

  .ai-chatbot__header {
    min-height: 72px;
  }

  .ai-chatbot__messages {
    padding-inline: 13px;
  }

  .ai-chatbot__message {
    max-width: 88%;
  }
}

@media (max-width: 360px) {
  .ai-chatbot__launcher > span:last-child {
    display: none;
  }

  .ai-chatbot__launcher {
    width: 54px;
    padding: 9px;
  }
}

/* Poszanowanie ustawienia ograniczonego ruchu także w chatbocie */
@media (prefers-reduced-motion: reduce) {
  .ai-chatbot__window,
  .ai-chatbot__launcher,
  .ai-chatbot__message,
  .ai-chatbot__typing-dot {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .ai-chatbot__messages {
    scroll-behavior: auto;
  }
}

/* =====================================================
   KOŃCOWE POPRAWKI RESPONSYWNE — TELEFONY I MAŁE TABLETY
   Reguły znajdują się na końcu pliku, aby bezpiecznie
   nadpisać wcześniejsze ustawienia bez zmian na desktopie.
   ===================================================== */
@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  main,
  .site-header,
  .site-footer,
  .section {
    max-width: 100%;
  }

  .container {
    width: min(calc(100% - 28px), 620px);
  }

  .section {
    padding-block: 72px;
  }

  .section-heading {
    margin-bottom: 38px;
    padding-inline: 2px;
  }

  .section-heading > p:last-child,
  .pricing-intro > p,
  .about-copy > p {
    overflow-wrap: anywhere;
  }

  .service-card,
  .testimonial-card,
  .contact-details,
  .contact-form,
  .price-table-wrap {
    width: 100%;
    min-width: 0;
  }

  /* Mobilny cennik: bez szerokiej tabeli i przewijania w bok. */
  .pricing-layout {
    width: 100%;
    min-width: 0;
    gap: 38px;
  }

  .pricing-intro {
    width: 100%;
    min-width: 0;
  }

  .price-table-wrap {
    overflow: hidden;
    border-radius: 18px;
  }

  .price-table {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .price-table thead {
    display: none;
  }

  .price-table tbody {
    display: block;
    width: 100%;
  }

  .price-table tbody tr {
    display: grid;
    width: 100%;
    min-width: 0;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    column-gap: 14px;
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-rows: auto auto;
    row-gap: 3px;
  }

  .price-table tbody tr:last-child {
    border-bottom: 0;
  }

  .price-table td {
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    line-height: 1.45;
  }

  .price-table td:first-child {
    align-self: center;
    color: var(--brown);
    font-size: 0.73rem;
    font-weight: 500;
    grid-column: 1;
    grid-row: 1 / span 2;
    overflow-wrap: anywhere;
  }

  .price-table td:nth-child(2) {
    color: var(--brown-soft);
    font-size: 0.61rem;
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    white-space: nowrap;
  }

  .price-table td:last-child {
    color: var(--rose-dark);
    font-size: 0.76rem;
    font-weight: 600;
    grid-column: 2;
    grid-row: 2;
    text-align: right;
    white-space: nowrap;
  }

  /* Czat jest pozycjonowany względem ekranu, nie szerokości dokumentu. */
  .ai-chatbot {
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    left: auto;
    max-width: calc(100vw - 24px);
  }

  .ai-chatbot__launcher {
    max-width: calc(100vw - 24px);
    white-space: nowrap;
  }

  .ai-chatbot__window {
    position: fixed;
    right: max(8px, env(safe-area-inset-right, 0px));
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
    left: max(8px, env(safe-area-inset-left, 0px));
    width: auto;
    height: min(620px, calc(100vh - 16px));
    height: min(620px, calc(100dvh - 16px));
    max-width: none;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 20px;
    transform-origin: center bottom;
  }

  .ai-chatbot__messages {
    min-width: 0;
    overscroll-behavior: contain;
  }

  .ai-chatbot__message {
    max-width: 88%;
  }

  .ai-chatbot__form,
  .ai-chatbot__input-row,
  .ai-chatbot__input-row input {
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .container {
    width: calc(100% - 24px);
  }

  .section {
    padding-block: 60px;
  }

  h2 {
    font-size: clamp(2.15rem, 11vw, 3rem);
    overflow-wrap: anywhere;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .service-card {
    padding: 28px 24px;
    border-radius: 20px;
  }

  .service-card h3 {
    font-size: 1.58rem;
  }

  .testimonial-card {
    padding: 25px 22px;
  }

  .consultation-box {
    gap: 10px 12px;
    margin-block: 28px;
    padding: 16px;
  }

  .price-table tbody tr {
    padding: 15px 14px;
    column-gap: 10px;
  }

  .price-table td:first-child {
    font-size: 0.7rem;
  }

  .price-table td:nth-child(2) {
    font-size: 0.58rem;
  }

  .price-table td:last-child {
    font-size: 0.73rem;
  }

  .contact-details,
  .contact-form {
    padding: 28px 20px;
  }

  .map-wrapper {
    height: 300px;
  }

  .ai-chatbot__header {
    min-height: 70px;
    padding: 12px 13px;
  }

  .ai-chatbot__avatar {
    width: 40px;
    height: 40px;
  }

  .ai-chatbot__heading h2 {
    font-size: 1.24rem;
    overflow-wrap: normal;
  }

  .ai-chatbot__messages {
    padding: 14px 12px;
  }

  .ai-chatbot__message {
    max-width: 90%;
    padding: 9px 11px;
    font-size: 0.69rem;
  }

  .ai-chatbot__form {
    padding: 10px 11px max(9px, env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 2.95rem;
  }

  .hero-trust {
    gap: 7px;
  }

  .hero-trust strong {
    font-size: 1.32rem;
  }

  .hero-trust span {
    font-size: 0.53rem;
  }

  .price-table tbody tr {
    padding-inline: 12px;
  }

  .price-table td:first-child {
    padding-right: 2px !important;
  }

  .ai-chatbot__close {
    width: 34px;
    height: 34px;
  }
}
