@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --pink: #e92660;
  --pink-dark: #c81a4f;
  --pink-soft: #fbe3ea;
  --violet: #361758;
  --violet-2: #4b2675;
  --cream: #fbf5ee;
  --cream-2: #f3e8dc;
  --white: #ffffff;
  --ink: #2b2034;
  --muted: #6d6274;
  --line: #eadccf;
  --radius: 14px;
  --head: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Figtree", "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-dark); }
a:hover { color: var(--violet); }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--violet); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 999px; border: 2px solid var(--pink);
  background: var(--pink); color: #fff; font: 600 16px/1.2 var(--body);
  text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--pink-dark); border-color: var(--pink-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--violet); border-color: var(--violet); }
.btn--ghost:hover { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn--small { padding: 10px 20px; font-size: 15px; }
.btn--block { width: 100%; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.is-scrolled { border-bottom-color: var(--line); }
.header__bar { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.header__logo img { width: 210px; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__list a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav__list a:hover { color: var(--pink-dark); border-bottom-color: var(--pink); }
.nav__phone { display: none; }
.nav__fb { display: none; }
.burger { display: none; }

.header__fb {
  display: inline-flex; align-items: center; justify-content: center; gap: 0; flex: none;
  height: 42px; padding: 0 12px; border-radius: 999px; overflow: hidden;
  background: var(--cream-2); color: var(--violet); text-decoration: none;
  transition: background .2s, color .2s, gap .3s ease;
}
.header__fb-icon { width: 18px; height: 18px; flex: none; fill: currentColor; }
.header__fb-text {
  display: inline-block; max-width: 0; opacity: 0; white-space: nowrap; overflow: hidden;
  font-weight: 600; font-size: 15px;
  transition: max-width .3s ease, opacity .2s ease;
}
.header__fb:hover, .header__fb:focus-visible { background: var(--violet); color: #fff; gap: 8px; }
.header__fb:hover .header__fb-text, .header__fb:focus-visible .header__fb-text { max-width: 90px; opacity: 1; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%); padding: 56px 0 72px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.hero__title {
  font-family: var(--head); font-style: italic; font-weight: 500;
  font-size: clamp(44px, 6.2vw, 84px); line-height: .98; letter-spacing: -.02em;
  color: var(--violet); font-variation-settings: "opsz" 144;
}
.hero__lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 26px 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin: 22px 0 0; font-weight: 600; color: var(--pink-dark); display: flex; align-items: center; gap: 10px; }
.hero__note::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 5px var(--pink-soft); }

.hero__photos { position: relative; }
.hero__photo { display: block; width: 88%; margin-inline: auto; }
@media (prefers-reduced-motion: no-preference) {
  .hero__photo { animation: rise .9s .1s both cubic-bezier(.2,.7,.2,1); }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}

/* Dojazd */
.drive { position: relative; background: var(--violet); color: #fff; padding: 34px 0; }
.drive__inner { position: relative; display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: center; }
.drive__inner::before {
  content: ""; position: absolute; left: 0; top: -70px; width: 360px; height: 70px;
  background: var(--cream); z-index: -1;
}
.drive__car { position: relative; width: 100%; margin: -70px 0 -20px; filter: drop-shadow(0 16px 18px rgba(0,0,0,.25)); }
.drive__title { font-family: var(--head); font-style: italic; font-weight: 500; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; margin-bottom: 8px; }
.drive__text p { margin: 0; color: #e5d9f0; max-width: 40em; }

/* Sekcje */
.section { padding: 100px 0; }
.section__head { max-width: 640px; margin-bottom: 48px; }
.section__title {
  font-family: var(--head); font-style: italic; font-weight: 500;
  font-size: clamp(34px, 4.2vw, 52px); line-height: 1.05; letter-spacing: -.015em; color: var(--violet);
}
.section__lead { font-size: 19px; color: var(--muted); margin: 14px 0 0; }

/* Usługi */
.services__head { display: flex; align-items: center; justify-content: space-between; gap: 40px; max-width: none; }
.services__photo { width: 200px; height: auto; flex: none; }
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.service { padding: 34px 40px 30px 0; border-bottom: 1px solid var(--line); }
.service:nth-child(2n) { padding: 34px 0 30px 40px; border-left: 1px solid var(--line); }
.service__title { font-family: var(--head); font-style: italic; font-weight: 600; font-size: 27px; line-height: 1.15; color: var(--pink-dark); margin-bottom: 10px; }
.service p { margin: 0; max-width: 32em; }
.services__special {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; align-items: baseline;
  margin-top: 40px; padding: 24px 30px; border-radius: var(--radius);
  background: var(--violet); color: #fff; text-decoration: none; transition: background .2s;
}
.services__special:hover { background: var(--violet-2); color: #fff; }
.services__special-title { font-family: var(--head); font-style: italic; font-size: 24px; font-weight: 500; }
.services__special-text { color: #e5d9f0; }

/* O mnie */
.about { background: var(--cream); }
.about__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: end; }
.about__photo { position: relative; align-self: end; margin-bottom: -100px; }
.about__photo::before { content: ""; position: absolute; inset: 18% 4% 0 8%; background: var(--cream-2); border-radius: 200px 200px 0 0; z-index: 0; }
.about__photo img { position: relative; margin-inline: auto; width: 100%; max-width: 395px; }
.about__text { padding-bottom: 10px; }
.about__text .section__title { margin-bottom: 22px; }
.about__text > p { max-width: 36em; }
.about__script { width: 260px; margin: 34px 0 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; }

/* Strzyżenie termiczne */
.thermo__grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 70px; align-items: center; }
.thermo__text .section__lead { margin-bottom: 34px; }
.thermo__h { font-family: var(--body); font-weight: 700; font-size: 18px; color: var(--violet); margin: 26px 0 8px; }
.thermo__text > p { max-width: 36em; }
.checks { list-style: none; margin: 0 0 26px; padding: 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 6px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 14px; height: 8px; border-left: 2.5px solid var(--pink); border-bottom: 2.5px solid var(--pink); transform: rotate(-45deg); }
.thermo__cta-text { font-weight: 600; margin-bottom: 22px; }
.thermo__photo { position: relative; display: flex; justify-content: center; isolation: isolate; }
.thermo__photo::before { content: ""; position: absolute; inset: 12% 8%; background: var(--pink-soft); border-radius: 999px; z-index: -1; }
.thermo__photo img { width: 100%; max-width: 230px; }

/* Galeria */
.gallery { background: var(--cream); }
.gallery__slider { position: relative; }
.gallery__track {
  list-style: none; margin: 0; padding: 4px 20px 14px; display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 20px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__item { flex: 0 0 clamp(150px, 19vw, 280px); scroll-snap-align: start; }
.gallery__link { display: block; border-radius: 10px; overflow: hidden; background: var(--cream-2); }
.gallery__link img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .4s; }
.gallery__link:hover img { transform: scale(1.06); }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); color: var(--violet); box-shadow: 0 8px 20px rgba(54,23,88,.2);
  font-size: 26px; line-height: 1; transition: background .2s, color .2s, opacity .2s;
}
.gallery__nav:hover { background: var(--pink); color: #fff; }
.gallery__nav:disabled { opacity: 0; pointer-events: none; }
.gallery__nav--prev { left: 16px; }
.gallery__nav--next { right: 16px; }

/* Kontakt */
.contact { background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; max-width: 800px; margin-inline: auto; }
.card { background: var(--violet); color: #fff; border-radius: var(--radius); padding: 32px; }
.card a { color: #fff; }
.card a:hover { color: #ffc2d4; }
.card__brand { font-family: var(--head); font-style: italic; font-size: 30px; line-height: 1.1; margin-bottom: 18px; }
.card__brand span { font-family: var(--body); font-style: normal; font-size: 15px; color: #d8c8e8; }
.card__phone { display: inline-block; font: 700 34px/1.1 var(--body); text-decoration: none; margin-bottom: 14px; letter-spacing: .01em; }
.card__line { margin: 0 0 6px; }
.card__company { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); font-size: 15px; color: #d8c8e8; }
.range { margin: 24px 0 0; }
.range img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }
.range figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; }

/* Stopka */
.footer { background: var(--violet); color: #d8c8e8; padding: 64px 0 28px; font-size: 16px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: #ffc2d4; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__brand img { width: 220px; margin-bottom: 16px; }
.footer__col p { margin: 0 0 6px; }
.footer__phone { display: inline-block; font: 700 26px/1.2 var(--body); margin-bottom: 10px; }
.footer__nav { display: flex; flex-direction: column; gap: 6px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); font-size: 14px; }
.footer__bottom p { margin: 0; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(28,12,44,.94); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb__fig { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lb__img { max-width: 92vw; max-height: 82vh; width: auto; margin: 0 auto; border-radius: 6px; }
.lb__count { color: #d8c8e8; font-size: 14px; margin-top: 10px; }
.lb__btn { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 32px; line-height: 1; cursor: pointer; }
.lb__btn:hover { background: var(--pink); }
.lb__close { top: 18px; right: 18px; }
.lb__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 18px; top: 50%; transform: translateY(-50%); }

/* Podstrona */
.page { padding: 70px 0 100px; }
.page .container { max-width: 760px; }
.page h1 { font-family: var(--head); font-style: italic; font-weight: 500; font-size: clamp(34px, 4vw, 48px); color: var(--violet); margin-bottom: 26px; line-height: 1.1; }
.page h2 { font-size: 20px; color: var(--violet); margin: 30px 0 10px; }

/* Tablet */
@media (max-width: 1080px) {
  .nav__list { gap: 18px; }
  .nav__list a { font-size: 15px; }
  .header__logo img { width: 180px; }
}

/* Mobile menu */
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .header { backdrop-filter: none; background: var(--white); }
  .header__logo img { width: 170px; }
  .header__cta { margin-left: auto; }
  .burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 10px; background: none; border: 0; cursor: pointer; }
  .burger span { display: block; height: 2px; background: var(--violet); border-radius: 2px; transition: transform .25s, opacity .2s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; overflow: hidden;
    background: linear-gradient(165deg, var(--pink) 0%, var(--pink-dark) 40%, var(--violet) 100%);
    padding: 34px 24px 40px; display: flex; flex-direction: column; margin: 0;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-18px) scale(.97);
    transition: opacity .3s ease, transform .35s cubic-bezier(.22,.8,.28,1), visibility 0s linear .35s;
  }
  .nav::before {
    content: ""; position: absolute; top: 6%; right: -14%; width: 65vw; aspect-ratio: 1;
    border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
    z-index: 0; pointer-events: none;
  }
  .nav.is-open {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1);
    transition: opacity .3s ease, transform .35s cubic-bezier(.22,.8,.28,1), visibility 0s;
  }
  .nav__list { flex-direction: column; gap: 0; position: relative; overflow-y: auto; }
  .nav__list li { opacity: 0; transform: translateY(10px); }
  .nav__list a { display: block; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.25); font-family: var(--head); font-style: italic; font-size: 26px; color: #fff; transition: color .2s, padding-left .2s; }
  .nav__list a:hover, .nav__list a:active { color: var(--cream); padding-left: 8px; border-bottom-color: rgba(255,255,255,.25); }
  .nav__phone {
    display: block; margin-top: 26px; text-align: center; position: relative;
    background: #fff; color: var(--pink-dark); border-radius: 999px; padding: 16px;
    font: 700 24px/1.2 var(--body); text-decoration: none; box-shadow: 0 10px 24px rgba(0,0,0,.18);
    transition: transform .2s, box-shadow .2s;
  }
  .nav__phone:hover, .nav__phone:active { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0,0,0,.22); }
  .nav__fb {
    display: flex; align-items: center; justify-content: center; gap: 10px; position: relative;
    margin-top: 12px; padding: 14px; border-radius: 999px;
    background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.4);
    color: #fff; text-decoration: none; font-weight: 600; font-size: 17px; transition: background .2s;
  }
  .nav__fb:hover, .nav__fb:active { background: rgba(255,255,255,.26); color: #fff; }
  .nav__fb-icon { width: 20px; height: 20px; fill: currentColor; flex: none; }
  .header__fb { display: none; }
  body.menu-open { overflow: hidden; }

  .hero { padding: 34px 0 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 26px; }
  .hero__photos { order: -1; width: min(100%, 460px); margin-inline: auto; }
  .hero__lead { font-size: 18px; margin: 18px 0 24px; }

  .drive { padding: 28px 0 30px; }
  .drive__inner { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .drive__inner::before { left: 0; width: 100%; top: -64px; height: 64px; }
  .drive__car { max-width: 320px; margin: -64px auto 0; }
  .drive__text p { margin-inline: auto; }

  .section { padding: 72px 0; }
  .services__head { flex-direction: column-reverse; align-items: flex-start; gap: 20px; }
  .services__photo { width: 150px; }
  .services__grid { grid-template-columns: 1fr; }
  .service, .service:nth-child(2n) { padding: 26px 0; border-left: 0; }
  .services__special { grid-template-columns: 1fr; }

  .about__grid { grid-template-columns: 1fr; gap: 30px; }
  .about__photo { order: 2; margin: 0 auto -72px; max-width: 320px; }
  .thermo__grid { grid-template-columns: 1fr; gap: 20px; }
  .thermo__photo { order: -1; }
  .thermo__photo img { max-width: 170px; }
  .thermo__photo::before { inset: 10% 25%; }
  .gallery__track { gap: 10px; }
  .gallery__item { flex-basis: 130px; }
  .contact__grid { grid-template-columns: 1fr; max-width: none; }
  .range { margin: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .header__cta { display: none; }
  .burger { margin-left: auto; }
  .hero__actions .btn { width: 100%; }
  .card { padding: 24px 20px; }
  .card__phone { font-size: 30px; }
  .footer__bottom { flex-direction: column; }
  .gallery__nav { display: none; }
}

@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .nav.is-open .nav__list li { animation: navItemIn .45s cubic-bezier(.2,.8,.2,1) forwards; }
  .nav.is-open .nav__list li:nth-child(1) { animation-delay: .08s; }
  .nav.is-open .nav__list li:nth-child(2) { animation-delay: .13s; }
  .nav.is-open .nav__list li:nth-child(3) { animation-delay: .18s; }
  .nav.is-open .nav__list li:nth-child(4) { animation-delay: .23s; }
  .nav.is-open .nav__list li:nth-child(5) { animation-delay: .28s; }
  @keyframes navItemIn { to { opacity: 1; transform: none; } }
}
