/* ================================================
   MBSTOMATOLOGIA — modern site styles
   Palette inspired by clinical elegance:
   deep teal + warm cream + soft gold accent
   ================================================ */

:root {
  --bg: #f6f2ec;
  --bg-alt: #efe9df;
  --surface: #ffffff;
  --ink: #0f1f2d;
  --ink-soft: #35485a;
  --muted: #6a7684;
  --line: #e3dccf;
  --gold: #b58b4a;
  --gold-soft: #d4b483;
  --dark: #0f1f2d;
  --dark-2: #16293a;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 4px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(15, 31, 45, 0.06);
  --shadow: 0 20px 50px -20px rgba(15, 31, 45, 0.25);

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
}

/* --------- Typography --------- */
.h2,
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 0.4em;
}

.h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.h2--center {
  text-align: center;
}

.h3 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  margin: 0 0 1rem;
  color: var(--ink);
}

.italic {
  font-style: italic;
  color: var(--gold);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 34px;
}

.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 1px;
  background: currentColor;
}

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

.lead {
  font-size: 1.125rem;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 62ch;
}

.lead--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* --------- Layout helpers --------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  padding: 0 var(--gutter);
  margin: 0 auto;
}

.section {
  padding: clamp(72px, 10vw, 140px) 0;
  position: relative;
}

.section__head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto clamp(48px, 6vw, 80px);
}

.section__head .eyebrow {
  padding-left: 34px;
  padding-right: 34px;
}
.section__head .eyebrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 22px;
  height: 1px;
  background: currentColor;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* --------- Buttons --------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gold);
  color: #fff;
}
.btn--primary:hover {
  background: var(--ink);
  transform: translateY(-1px);
}

.btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}
.btn--dark:hover {
  background: var(--gold);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ================================================
   NAV
   ================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(246, 242, 236, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}

/* When the mobile menu is open, force the nav bar fully opaque and
   drop backdrop-filter — otherwise backdrop-filter creates a new
   containing block for `.nav__links` (position: fixed), which then
   positions itself relative to the 79px-tall nav instead of the viewport. */
.nav.is-menu-open {
  background: var(--bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  max-width: 1400px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  transition: color 0.35s var(--ease);
}

.nav.is-scrolled .brand,
.nav.is-menu-open .brand {
  color: var(--ink);
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.brand__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.brand__sub {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.nav__links {
  display: flex;
  gap: 26px;
  color: #fff;
  white-space: nowrap;
  transition: color 0.35s var(--ease);
}

.nav.is-scrolled .nav__links {
  color: var(--ink);
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 400;
  position: relative;
  opacity: 0.9;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

.nav__links a:hover {
  opacity: 1;
  color: var(--gold);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__links a.nav__link--doc {
  padding-left: 12px;
  margin-left: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0.75;
}
.nav.is-scrolled .nav__links a.nav__link--doc {
  border-left-color: rgba(15, 31, 45, 0.15);
}
.nav__links a.nav__link--doc:hover,
.nav__links a[aria-current="page"] {
  opacity: 1;
  color: var(--gold);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 10px 20px;
  border-radius: 999px;
  transition: all 0.3s var(--ease);
}

.nav.is-scrolled .nav__cta {
  color: var(--ink);
  border-color: var(--ink);
}

.nav__cta:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.nav__cta-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--gold);
  animation: pulse 2.5s infinite;
}
.nav.is-scrolled .nav__cta-dot {
  background: var(--gold);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(181, 139, 74, 0.5);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(181, 139, 74, 0);
  }
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
}
.nav__toggle span {
  width: 22px;
  height: 1.5px;
  background: #fff;
  transition: all 0.3s var(--ease);
}
.nav.is-scrolled .nav__toggle span,
.nav.is-menu-open .nav__toggle span {
  background: var(--ink);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 1240px) {
  .nav__cta span:not(.nav__cta-dot) {
    display: none;
  }
  .nav__cta {
    padding: 10px 12px;
  }
  .nav__links {
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .nav__links {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    color: var(--ink);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s var(--ease);
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__links a {
    font-family: var(--serif);
    font-size: 1.5rem;
  }
  .nav__links a.nav__link--doc {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    font-size: 1rem;
    font-family: var(--sans);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-top: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(15, 31, 45, 0.1);
  }
  .nav__toggle {
    display: inline-flex;
  }
  .brand__sub {
    display: none;
  }
}

/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("images/gabinet-mikroskop.jpg") center / cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 22s ease-out forwards;
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Stronger scrim so white text stays readable over the bright clinic photo */
  background: linear-gradient(
      120deg,
      rgba(11, 24, 36, 0.94) 0%,
      rgba(11, 24, 36, 0.8) 45%,
      rgba(11, 24, 36, 0.6) 100%
    ),
    linear-gradient(to top, rgba(11, 24, 36, 0.75) 0%, transparent 45%),
    linear-gradient(rgba(11, 24, 36, 0.28), rgba(11, 24, 36, 0.28));
}

.hero__inner {
  width: 100%;
  max-width: var(--wrap);
  padding: 140px var(--gutter) 100px;
  margin: 0 auto;
  animation: fadeUp 1.1s var(--ease) both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  max-width: 14ch;
  color: #fff;
  text-shadow: 0 2px 30px rgba(15, 31, 45, 0.35);
}

.hero__title .italic {
  display: block;
  font-style: italic;
  color: var(--gold-soft);
  font-weight: 300;
}

.hero__lead {
  font-size: 1.15rem;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 40px;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 800px;
}

.hero__meta > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero__meta-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.hero__meta-value {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero__meta a:hover {
  color: var(--gold-soft);
}

@media (max-width: 700px) {
  .hero__meta {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.hero__scroll span {
  width: 3px;
  height: 8px;
  background: var(--gold-soft);
  border-radius: 3px;
  animation: scroll 1.8s ease-in-out infinite;
}
@keyframes scroll {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.3;
  }
}

/* ================================================
   ABOUT
   ================================================ */
.about {
  background: var(--bg);
}

.about__media {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about__img {
  position: relative;
  width: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  overflow: hidden;
}

.about__img--real {
  aspect-ratio: 3 / 2;
  background-image: url("images/gabinet-wnetrze.jpg");
  box-shadow: var(--shadow);
}
.about__img--real::after {
  content: "";
  position: absolute;
  inset: auto -12px -12px auto;
  width: 80px;
  height: 80px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
}

.about .eyebrow {
  padding-right: 34px;
}
.about .eyebrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 22px;
  height: 1px;
  background: currentColor;
}

.about__content p {
  color: var(--ink-soft);
}
.about__content strong {
  color: var(--ink);
  font-weight: 500;
}

.tags {
  list-style: none;
  padding: 0;
  margin: 32px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.5);
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.about__stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat__num {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}

.stat__label {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.3;
}

@media (max-width: 640px) {
  .about__stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ================================================
   SERVICES
   ================================================ */
.services {
  background: var(--bg-alt);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.service {
  background: var(--bg-alt);
  padding: 40px 32px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  position: relative;
}

.service:hover {
  background: var(--surface);
}

.service__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  margin-bottom: 24px;
  transition: all 0.3s var(--ease);
}

.service:hover .service__icon {
  background: var(--gold);
  color: #fff;
}

.service h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--ink);
}

.service p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

.service__label {
  font-family: var(--sans);
  font-size: 0.72rem !important;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold) !important;
  margin: 0 0 10px !important;
}

.service__list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.service__list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  line-height: 1.55;
}
.service__list li:last-child {
  margin-bottom: 0;
}
.service__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* ================================================
   QUOTE / CTA BANNER
   ================================================ */
.quote {
  background: var(--dark);
  color: #fff;
  padding: clamp(80px, 10vw, 130px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote::before,
.quote::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(181, 139, 74, 0.25);
  border-radius: 50%;
  pointer-events: none;
}
.quote::before {
  top: -150px;
  left: -100px;
}
.quote::after {
  bottom: -180px;
  right: -80px;
  width: 400px;
  height: 400px;
}

.quote__inner {
  position: relative;
}

.quote__text {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  margin: 0 0 20px;
  line-height: 1.15;
}

.quote__sub {
  color: rgba(255, 255, 255, 0.7);
  max-width: 56ch;
  margin: 0 auto 40px;
  font-size: 1.05rem;
}

.quote .btn--dark {
  background: var(--gold);
}
.quote .btn--dark:hover {
  background: #fff;
  color: var(--ink);
}

/* ================================================
   TEAM
   ================================================ */
.team {
  background: var(--bg);
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}

.member {
  text-align: left;
}

.member__portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  filter: grayscale(15%);
  transition: filter 0.4s var(--ease);
}

.member:hover .member__portrait {
  filter: grayscale(0%);
}

.member__portrait--1 {
  background-image: url("images/monika-borzymowska.jpg");
  background-position: center 18%;
  filter: grayscale(8%);
}
.member__portrait--2 {
  background-image: url("https://images.unsplash.com/photo-1594824476967-48c8b964273f?auto=format&fit=crop&w=900&q=80");
}
.member__portrait--3 {
  background-image: url("https://images.unsplash.com/photo-1704655295066-681e61ecca6b?auto=format&fit=crop&w=900&q=80");
  background-position: center 55%;
}
.member__portrait--4 {
  background-image: url("images/andrij-klovanets.jpg");
  background-position: center 22%;
  filter: grayscale(8%);
}
.member__portrait--5 {
  background-image: url("images/andrei-blaga.jpg");
  background-position: center 22%;
  filter: grayscale(8%);
}
.member__portrait--6 {
  background-image: url("images/lila-bilan.jpg");
  background-position: center 25%;
  filter: grayscale(8%);
}

.member h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 4px;
  color: var(--ink);
}

.member__role {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.member p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0 0 12px;
}

.member__hours {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.member__hours strong {
  color: var(--ink);
  font-weight: 500;
}
.member__hours a:hover {
  color: var(--gold);
}

/* ================================================
   PRICING
   ================================================ */
.pricing {
  background: var(--bg-alt);
}

.pricing__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}

.tab {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.25s var(--ease);
}

.tab:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.tab.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.pricing__panels {
  max-width: 880px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-sm);
}

.panel {
  display: none;
  animation: fadeIn 0.4s var(--ease);
}
.panel.is-active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel__note {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-left: 2px solid var(--gold);
  background: rgba(201, 169, 97, 0.08);
  border-radius: 2px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.panel__note strong {
  color: var(--ink);
  font-weight: 600;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.price-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink);
}
.price-list li.price-list__head {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 20px 0 6px;
  border-bottom: 0;
}
.price-list li.price-list__head:first-child {
  padding-top: 4px;
}
.price-list li:last-child {
  border-bottom: 0;
}

.price-list li > span:first-child {
  flex-shrink: 1;
  color: var(--ink-soft);
}

.dots {
  flex: 1;
  border-bottom: 1px dotted var(--line);
  position: relative;
  top: -4px;
  min-width: 24px;
}

.price {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--gold);
  font-weight: 500;
  white-space: nowrap;
}

/* ================================================
   FAQ
   ================================================ */
.faq {
  background: var(--bg);
}

.faq__list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease);
}

.faq__item[open] {
  box-shadow: var(--shadow-sm);
  border-color: var(--gold-soft);
}

.faq__item summary {
  list-style: none;
  padding: 22px 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  transition: background 0.2s var(--ease);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary:hover {
  background: var(--bg);
}

.faq__icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 1.2rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    color 0.3s var(--ease);
  flex-shrink: 0;
}

.faq__item[open] .faq__icon {
  transform: rotate(45deg);
  background: var(--gold);
  color: #fff;
}

.faq__body {
  padding: 0 28px 28px;
  color: var(--ink-soft);
}
.faq__body p {
  margin: 0 0 12px;
}
.faq__body ul,
.faq__body ol {
  padding-left: 22px;
  margin: 12px 0;
}
.faq__body li {
  margin-bottom: 6px;
}

/* ================================================
   CONTACT
   ================================================ */
.contact {
  background: var(--bg-alt);
}

.contact__info .h2 {
  margin-top: 8px;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.contact__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact__label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.contact__value {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
}

.contact__value:hover {
  color: var(--gold);
}

.contact__value--sub {
  font-size: 1rem;
  color: var(--ink-soft);
}

.contact__hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 8px;
}

@media (max-width: 500px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

.contact__form {
  background: var(--surface);
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s var(--ease);
  resize: vertical;
  font-family: var(--sans);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 12px 0 22px;
  line-height: 1.4;
}

.check input {
  margin-top: 3px;
  accent-color: var(--gold);
}

.map {
  margin-top: clamp(60px, 8vw, 90px);
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(20%) contrast(0.95);
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 64px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer__name {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: 0.03em;
}
.footer__sub {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer__cols h4 {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold-soft);
  margin: 0 0 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.footer__cols p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer__cols a:hover {
  color: var(--gold-soft);
}

.footer__bottom {
  padding: 22px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 800px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer__cols {
    grid-template-columns: 1fr 1fr;
  }
}

/* ================================================
   PROCESS · 3D TREATMENT PLAN
   ================================================ */
.process {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}

.process::before,
.process::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(201, 169, 97, 0.18);
  border-radius: 50%;
  pointer-events: none;
}
.process::before {
  top: -180px;
  left: -140px;
  width: 380px;
  height: 380px;
}
.process::after {
  bottom: -220px;
  right: -160px;
  width: 480px;
  height: 480px;
}

.process .section__head .h2 {
  color: #fff;
}
.process .section__head .lead {
  color: rgba(255, 255, 255, 0.72);
}
.process .eyebrow {
  color: var(--gold-soft);
}

.process__viewer {
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 3.5vw, 44px);
  position: relative;
}

/* --- Viewport (tooth, on top) --- */
.process__viewport {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  /* Explicit fallback size so the viewport always renders even in
     browsers where aspect-ratio + max-height doesn't produce a height */
  min-height: 320px;
  background: radial-gradient(
      120% 90% at 30% 20%,
      #1c3450 0%,
      #0f1f2d 60%,
      #081420 100%
    );
  border: 1px solid rgba(201, 169, 97, 0.25);
  border-radius: 6px;
  overflow: hidden;
  perspective: 1400px;
}

/* If aspect-ratio isn't supported at all, use a padding-based square
   as an absolute fallback. Modern browsers ignore this because aspect-ratio wins. */
@supports not (aspect-ratio: 1 / 1) {
  .process__viewport::before {
    content: "";
    display: block;
    padding-top: 100%;
  }
}

.process__hud {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.process__hud-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid var(--gold);
}
.process__hud-corner.tl {
  top: 12px;
  left: 12px;
  border-right: 0;
  border-bottom: 0;
}
.process__hud-corner.tr {
  top: 12px;
  right: 12px;
  border-left: 0;
  border-bottom: 0;
}
.process__hud-corner.bl {
  bottom: 12px;
  left: 12px;
  border-right: 0;
  border-top: 0;
}
.process__hud-corner.br {
  bottom: 12px;
  right: 12px;
  border-left: 0;
  border-top: 0;
}

.process__hud-top,
.process__hud-bottom {
  position: absolute;
  left: 40px;
  right: 40px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 500;
  align-items: center;
}
.process__hud-top {
  top: 20px;
}
.process__hud-bottom {
  bottom: 20px;
  font-size: 0.62rem;
  opacity: 0.7;
}
.process__hud-status {
  color: var(--gold);
  opacity: 1;
  animation: hudBlink 2.4s ease-in-out infinite;
}
@keyframes hudBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.process__scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: transform 0.6s var(--ease);
  will-change: transform;
  transform-style: preserve-3d;
}

.tooth {
  width: 78%;
  height: 78%;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
}

.tooth text {
  font-weight: 500;
}

/* Stage visibility — cross-faded via opacity */
.stage-crown,
.stage-stump,
.stage-temp,
.stage-final,
.hud-diagnostic,
.hud-plan,
.hud-prep,
.hud-temp,
.hud-final {
  transition: opacity 0.55s var(--ease);
}

/* Default: everything hidden */
.stage-crown,
.stage-stump,
.stage-temp,
.stage-final,
.hud-diagnostic,
.hud-plan,
.hud-prep,
.hud-temp,
.hud-final {
  opacity: 0;
}

/* Stage 0 — Diagnostyka */
[data-current="0"] .stage-crown {
  opacity: 0.55;
}
[data-current="0"] .hud-diagnostic {
  opacity: 1;
}

/* Stage 1 — Plan leczenia */
[data-current="1"] .stage-crown {
  opacity: 1;
}
[data-current="1"] .hud-plan {
  opacity: 1;
}

/* Stage 2 — Szlifowanie */
[data-current="2"] .stage-stump {
  opacity: 1;
}
[data-current="2"] .hud-prep {
  opacity: 1;
}

/* Stage 3 — Korona tymczasowa */
[data-current="3"] .stage-stump {
  opacity: 0.85;
}
[data-current="3"] .stage-temp {
  opacity: 1;
}
[data-current="3"] .hud-temp {
  opacity: 1;
}

/* Stage 4 — Korona ostateczna */
[data-current="4"] .stage-stump {
  opacity: 0.6;
}
[data-current="4"] .stage-final {
  opacity: 1;
}
[data-current="4"] .hud-final {
  opacity: 1;
}

/* Scan sweep line */
.scan-sweep {
  animation: scanSweep 4.5s linear infinite;
}
@keyframes scanSweep {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(560px);
    opacity: 0;
  }
}

/* --- Info panel (below the tooth) --- */
.process__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
}

.process__stages {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 4px;
}

.process__stage {
  flex: 1 1 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 10px;
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  transition: all 0.25s var(--ease);
  position: relative;
}

.process__stage:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.process__stage.is-active {
  background: rgba(201, 169, 97, 0.14);
  color: #fff;
}
.process__stage.is-active::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.process__stage-num {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--gold-soft);
  letter-spacing: 0.02em;
  line-height: 1;
}
.process__stage.is-active .process__stage-num {
  color: var(--gold);
}

.process__stage-label {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.process__descriptions {
  position: relative;
  min-height: 220px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

/* Inactive descriptions overlay absolutely (removed from flow); the active
   one is in normal flow so the container height matches the active stage. */
.process__desc {
  position: absolute;
  inset: 0;
  padding: 26px 28px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
  min-width: 0;
  overflow: hidden;
}
.process__desc.is-active {
  position: relative;
  inset: auto;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  overflow: visible;
}

.process__desc-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.process__desc .h3 {
  color: #fff;
  margin: 0 0 10px;
  font-size: 1.55rem;
}

.process__desc p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

.process__desc-intro {
  margin-bottom: 18px !important;
}

.process__video-head {
  margin: clamp(48px, 7vw, 90px) auto 22px;
  text-align: center;
}
.process__video-head .eyebrow {
  color: var(--gold-soft);
  padding-right: 34px;
}
.process__video-head .eyebrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 22px;
  height: 1px;
  background: currentColor;
}
.process__video-head .h2 {
  color: #fff;
  margin-top: 6px;
}

.process__video {
  margin: 0 auto;
  max-width: 600px;
  text-align: center;
}
.process__video-frame {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(201, 169, 97, 0.25);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  background: #081420;
}
.process__video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 848 / 480;
  object-fit: cover;
}
.process__video figcaption {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.process__video-tag {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.process__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.process__gallery--single {
  grid-template-columns: 1fr;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.process__gallery-item {
  margin: 0;
}
.process__gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}
.process__gallery-item figcaption {
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.process__tiers {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.process__note {
  margin-top: 16px !important;
  padding-left: 14px;
  border-left: 2px solid rgba(201, 169, 97, 0.5);
  color: rgba(255, 255, 255, 0.66) !important;
  font-size: 0.88rem !important;
  font-style: italic;
}

.process__tier {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  padding: 14px 16px;
  position: relative;
}

.process__tier--featured {
  border-color: rgba(198, 158, 87, 0.35);
  background: rgba(198, 158, 87, 0.05);
}

.process__tier--extra {
  padding: 12px 16px;
}

.process__tier-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.process__tier-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: 0.01em;
}

.process__tier-note {
  font-family: var(--sans);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-left: 4px;
}

.process__tier-meta {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft, #d9b877);
  white-space: nowrap;
}

.process__tier-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  line-height: 1.6;
}
.process__tier-list li {
  margin: 3px 0;
}
.process__tier-list li::marker {
  color: var(--gold);
}

.process__tier-photo {
  float: right;
  width: 42%;
  max-width: 220px;
  margin: 0 0 8px 14px;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 16 / 10;
  background: rgba(0, 0, 0, 0.2);
}
.process__tier-photo--portrait {
  aspect-ratio: 3 / 4;
  width: 36%;
  max-width: 180px;
}
.process__tier-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
}

.process__tier--extra p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.85rem;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .process__tier-photo {
    float: none;
    width: 100%;
    max-width: none;
    margin: 6px 0 10px;
  }
  .process__tier-list {
    font-size: 0.82rem;
  }
  .process__tier-head {
    gap: 4px;
  }
}

.process__controls {
  display: flex;
  align-items: center;
  gap: 18px;
}

.process__ctrl {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.25s var(--ease);
  flex-shrink: 0;
}
.process__ctrl:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-1px);
}
.process__ctrl:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.4);
}

.process__progress {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.process__progress-fill {
  display: block;
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  transition: width 0.5s var(--ease);
}

/* Mobile */
@media (max-width: 900px) {
  /* Hide the big decorative arcs on mobile — on narrow viewports the
     bottom-right arc creates visual weight that makes the section look
     off-center even though the layout is mathematically centered. */
  .process::before,
  .process::after {
    display: none;
  }

  .process__viewport {
    position: relative;
    top: auto;
    aspect-ratio: 1 / 1;
    max-height: 460px;
    min-height: 320px;
  }

  /* Single-line, side-scrollable stepper instead of uneven wrapping */
  .process__stages {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .process__stages::-webkit-scrollbar {
    display: none;
  }
  .process__stage {
    flex: 0 0 auto;
    min-width: 104px;
    scroll-snap-align: center;
  }
  .tooth {
    width: 80%;
    height: 80%;
  }
  /* Disable 3D layer on mobile — no mouse-parallax and avoids
     iOS Safari quirks with preserve-3d + SVG. */
  .process__scene {
    transform: none !important;
    transform-style: flat;
    will-change: auto;
  }

  /* Compact HUD on mobile */
  .process__hud-top,
  .process__hud-bottom {
    left: 32px;
    right: 32px;
    font-size: 0.58rem;
    letter-spacing: 0.18em;
  }
  .process__hud-code,
  .process__hud-axis {
    display: none;
  }
  .process__hud-status {
    margin-left: auto;
  }

  .process__stages {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .process__stages::-webkit-scrollbar {
    display: none;
  }

  .process__stage {
    grid-template-columns: 1fr;
    gap: 4px;
    flex: 0 0 auto;
    min-width: 120px;
    scroll-snap-align: start;
    padding: 12px 14px;
  }
  .process__stage.is-active::before {
    left: 12%;
    right: 12%;
    top: auto;
    bottom: 2px;
    width: auto;
    height: 2px;
  }
  .process__stage-label {
    font-size: 0.82rem;
    white-space: normal;
    line-height: 1.25;
  }
  .process__stage-num {
    font-size: 1rem;
  }

  .process__descriptions {
    min-height: 260px;
  }
  .process__desc {
    padding: 24px 22px;
  }
  .process__desc .h3 {
    font-size: 1.35rem;
  }
  .process__desc p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

@media (max-width: 420px) {
  .process__hud-top,
  .process__hud-bottom {
    left: 26px;
    right: 26px;
    font-size: 0.52rem;
    letter-spacing: 0.16em;
  }
  .process__hud-corner {
    width: 16px;
    height: 16px;
  }
  .process__descriptions {
    min-height: 280px;
  }
}

/* --------- Reveal-on-scroll animation --------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.9s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* --------- Focus states for a11y --------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------- Selection --------- */
::selection {
  background: var(--gold);
  color: #fff;
}

/* ================================================
   DOC PAGE · REGULAMIN
   ================================================ */
.page-doc {
  background: var(--bg);
}

.doc {
  padding: 140px 0 100px;
  color: var(--ink-soft);
}

.doc__wrap {
  max-width: 960px;
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}

.doc__head {
  grid-column: 1 / -1;
  max-width: 760px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(15, 31, 45, 0.08);
  margin-bottom: 30px;
}

.doc__head .eyebrow {
  color: var(--gold);
}

.doc__head h1 {
  margin: 18px 0 20px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--ink);
}

.doc__head h1 .italic {
  display: block;
  color: var(--gold);
  font-style: italic;
}

.doc__toc {
  position: sticky;
  top: 100px;
  padding: 22px 22px 22px 24px;
  background: #fff;
  border: 1px solid rgba(15, 31, 45, 0.08);
  border-radius: 4px;
  box-shadow: 0 20px 60px -35px rgba(15, 31, 45, 0.28);
  font-size: 0.88rem;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.doc__toc-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.doc__toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}

.doc__toc ol li {
  counter-increment: toc;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(15, 31, 45, 0.08);
}

.doc__toc ol li:last-child { border-bottom: none; }

.doc__toc ol li::before {
  content: "§" counter(toc);
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  margin-right: 10px;
  font-size: 0.92em;
}

.doc__toc a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.doc__toc a:hover { color: var(--gold); }

.doc__body {
  min-width: 0;
  font-size: 0.98rem;
  line-height: 1.75;
}

.doc__section {
  margin-bottom: 56px;
  scroll-margin-top: 120px;
}

.doc__section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.2;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 31, 45, 0.08);
}

.doc__paragraph-mark {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin: 8px 0 14px;
  font-size: 1.1rem;
}

.doc__body p {
  margin: 0 0 14px;
}

.doc__body ul,
.doc__body ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.doc__body ul ul,
.doc__body ol ul,
.doc__body ul ol,
.doc__body ol ol {
  margin: 8px 0 8px;
}

.doc__body li {
  margin: 4px 0;
  padding-left: 4px;
}

.doc__body ul > li::marker {
  color: var(--gold);
}

.doc__body ol > li::marker {
  color: var(--gold);
  font-weight: 500;
}

.doc__body em {
  font-style: italic;
  background: rgba(198, 158, 87, 0.12);
  color: #6b4a12;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 0.88em;
  letter-spacing: 0.02em;
}

.doc__body strong {
  color: var(--ink);
  font-weight: 600;
}

.doc__body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(198, 158, 87, 0.5);
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

.doc__body a:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

.doc__signature {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid rgba(15, 31, 45, 0.08);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--muted);
}

.doc__back {
  grid-column: 1 / -1;
  margin-top: 40px;
  text-align: center;
}

.doc__back .btn--ghost {
  color: var(--ink);
  border-color: rgba(15, 31, 45, 0.2);
}

.doc__back .btn--ghost:hover {
  background: rgba(15, 31, 45, 0.05);
  border-color: var(--gold);
  color: var(--gold);
}

/* Regulamin link in footer bottom */
.footer__bottom a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer__bottom a:hover {
  color: var(--gold-soft, #d9b877);
}

@media (max-width: 900px) {
  .doc {
    padding: 110px 0 70px;
  }
  .doc__wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .doc__head { order: 0; }
  .doc__toc {
    order: 1;
    position: static;
    max-height: none;
  }
  .doc__body { order: 2; }
  .doc__back { order: 3; }
  .doc__section {
    margin-bottom: 40px;
  }
}

/* ================================================
   THANK-YOU PAGE
   ================================================ */
.thanks {
  min-height: calc(100vh - 260px);
  display: grid;
  place-items: center;
  padding: 160px 0 100px;
  text-align: center;
  background: var(--bg);
}

.thanks__wrap {
  max-width: 720px;
}

.thanks .eyebrow {
  color: var(--gold);
}

.thanks__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.05;
  color: var(--ink);
  margin: 20px 0 26px;
}

.thanks__title .italic {
  color: var(--gold);
  font-style: italic;
}

.thanks .lead {
  margin: 0 auto 42px;
  max-width: 560px;
}

.thanks__actions {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.thanks__actions .btn--ghost {
  color: var(--ink);
  border-color: rgba(15, 31, 45, 0.2);
}
.thanks__actions .btn--ghost:hover {
  background: rgba(15, 31, 45, 0.05);
  border-color: var(--gold);
  color: var(--gold);
}

