﻿/* ================================================================
   CENTRUM CHIRURGII GRZEŚKOWIAK – Design System v2 · 2026
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Accessibility ─────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: .5rem 1rem;
  background: var(--teal, #B39158);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  z-index: 9999;
  border-radius: 0 0 .5rem 0;
  text-decoration: none;
  transition: top .1s;
}
.skip-link:focus { top: 0; }

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  /* Champagne – primary brand 2026 */
  --gold:          #B39158;
  --gold-dark:     #9A7D4A;
  --gold-darker:   #7D6339;
  --gold-light:    #C8AD82;
  --gold-pale:     #F5EFE3;
  --gold-100:      #EDE4D3;

  /* Legacy variable names – mapped to new palette */
  --blue:          #B39158;
  --blue-dark:     #9A7D4A;
  --blue-mid:      #B39158;
  --blue-light:    #C8AD82;
  --blue-pale:     #F5EFE3;
  --blue-100:      #EDE4D3;
  --navy:          #222428;
  --navy-mid:      #3D3F44;
  --navy-light:    #5C5E63;
  --teal:          #B39158;
  --teal-light:    #C8AD82;
  --teal-pale:     #F5EFE3;

  /* Neutrals */
  --white:         #FFFFFF;
  --bg:            #F7F6F2;   /* Ivory White */
  --bg-alt:        #F2EEE9;   /* Warm Stone pale */
  --surface-alt:   #EDE4D3;   /* Champagne tint */
  --border:        #D8D0C5;   /* Warm Stone */
  --border-light:  #EAE5DF;

  /* Typography */
  --text:          #222428;   /* Deep Graphite */
  --text-mid:      #3D3F44;
  --text-muted:    #5C5E63;
  --text-light:    #9A9C9F;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, -apple-system, Arial, sans-serif;

  --fs-2xs:  0.72rem;
  --fs-xs:   0.8rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.05rem;
  --fs-lg:   1.2rem;

  --max-w:       85%;
  --section-py:  clamp(4rem, 8vw, 8rem);
  --px:          clamp(1rem, 3vw, 1.5rem);

  /* Graphite-toned shadows */
  --shadow-sm:   0 1px 4px rgba(34,36,40,.06), 0 1px 2px rgba(34,36,40,.04);
  --shadow-md:   0 4px 20px rgba(34,36,40,.10), 0 2px 6px rgba(34,36,40,.05);
  --shadow-lg:   0 12px 48px rgba(34,36,40,.12), 0 4px 14px rgba(34,36,40,.07);
  --shadow-xl:   0 24px 72px rgba(34,36,40,.14), 0 8px 28px rgba(34,36,40,.08);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --ease:     cubic-bezier(.25,.46,.45,.94);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur:      .26s;
  --dur-lg:   .44s;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; overflow-x: clip; }
body {
  font-family: var(--font-sans);
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; padding: 0; }
input, textarea, select { font: inherit; }

h1, h2 { font-family: var(--font-serif); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
h3, h4, h5, h6 { font-family: var(--font-sans); font-weight: 600; line-height: 1.3; letter-spacing: -.015em; }

/* ── Typography Scale ──────────────────────────────────────────── */
h1 { font-size: clamp(2.6rem, 5.5vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: var(--fs-base); }
p  { color: var(--text-mid); line-height: 1.75; font-size: var(--fs-base);
     text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
strong { font-weight: 600; color: var(--text); }

/* Justify exceptions */
.hero p, .hero__lead,
.page-hero p, .page-hero__lead,
.section-header p,
.cta-section p,
.navbar p, .footer p,
.sub-nav p,
.breadcrumb p,
.service-card p,
.consult-card p,
.stat-mini p, .hero__stat-label,
.cta-contact p,
.about-item__body,
.sidebar p,
.cta-block p { text-align: left; hyphens: none; -webkit-hyphens: none; }

.service-content li, .info-box li {
  text-align: justify; hyphens: auto; -webkit-hyphens: auto;
}

/* ── Layout ────────────────────────────────────────────────────── */
.container { width: var(--max-w); margin-inline: auto; padding-inline: var(--px); }
.section    { padding-block: var(--section-py); }
.section--dark {
  background:
    linear-gradient(rgba(28,30,34,.90), rgba(18,20,24,.95)),
    url('../images/bg-filozofia.jpg') center/cover no-repeat;
}
.section--dark p   { color: rgba(255,255,255,.65); }
.section--alt      { background: var(--bg); }
.section--alt-2    { background: var(--bg-alt); }
.section--teal     { background: var(--teal-pale); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
/* Responsive content grids — collapse to 1 column at ≤768px */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.cols-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
.layout-aside { display: grid; grid-template-columns: 3fr 2fr; gap: 4rem; align-items: start; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }

/* ── Label ─────────────────────────────────────────────────────── */
.label {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.label::before {
  content: '';
  display: inline-block;
  width: 2.2rem;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}
.section--dark .label { color: var(--gold-light); }

/* ── Section Header ────────────────────────────────────────────── */
.section-header { margin-bottom: clamp(2.5rem,5vw,4.5rem); }
.section-header h2 { margin-bottom: .8rem; }
.section-header p  { font-size: var(--fs-md); max-width: 58ch; }
.section-header.center { text-align: center; }
.section-header.center p { margin-inline: auto; }
.section--dark .section-header h2 { color: var(--white); }

/* ── Section Featured (Phlebology) ─────────────────────────────── */
.section-header--phlebology {
  position: relative;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, rgba(179,145,88,.07) 0%, rgba(179,145,88,.03) 100%);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--teal);
  margin-bottom: 2rem !important;
}
.section-header--phlebology .label { color: var(--teal); }
.section-header--phlebology h2 { color: var(--text); }
.section-header--phlebology p { max-width: 68ch; }

.phlebology-usg-banner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--teal);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  flex-wrap: wrap;
}
.phlebology-usg-banner__icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  background: rgba(255,255,255,.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phlebology-usg-banner__body {
  flex: 1;
  min-width: 200px;
}
.phlebology-usg-banner__body strong {
  display: block;
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: .25rem;
}
.phlebology-usg-banner__body span {
  font-size: var(--fs-sm);
  opacity: .88;
}
.phlebology-usg-banner .btn--primary {
  background: #fff;
  color: var(--teal);
  flex-shrink: 0;
}
.phlebology-usg-banner .btn--primary:hover { background: rgba(255,255,255,.9); }

.service-card--dermatoscopy {
  border-color: var(--teal);
  background: linear-gradient(160deg, var(--teal-pale) 0%, var(--bg) 60%);
}
.service-card--dermatoscopy .service-card__icon { color: var(--teal); background: rgba(179,145,88,.12); }

/* ── Section Accordion ─────────────────────────────────────────── */
.section-header--collapsible {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
}
.section-header--collapsible .section-header__text { flex: 1; }
.section-toggle {
  flex-shrink: 0;
  align-self: center;
  display: flex;
  align-items: center;
  gap: .6rem;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  border: none;
  border-radius: var(--radius);
  padding: .75rem 1.75rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .03em;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(179,145,88,.28);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur);
  white-space: nowrap;
}
.section-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(179,145,88,.38);
}
.section-toggle:active { transform: translateY(0); }
.section-toggle svg { transition: transform .35s var(--ease-out); opacity: .9; }
.section-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.section-toggle[aria-expanded="true"] .toggle-label::before { content: 'Zwiń'; }
.section-toggle[aria-expanded="false"] .toggle-label::before { content: 'Rozwiń'; }
.section-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease-out);
}
.section-collapse.open { grid-template-rows: 1fr; }
.section-collapse__inner {
  overflow: hidden;
  padding-top: 0;
  transition: padding-top .45s var(--ease-out);
}
.section-collapse.open .section-collapse__inner {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.25rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .015em;
  border-radius: var(--radius);
  white-space: normal;
  word-break: break-word;
  text-align: center;
  max-width: 100%;
  transition:
    background var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
  cursor: pointer;
}
.btn:active { transform: scale(.98); }
.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 18px rgba(179,145,88,.28);
}
.btn--primary:hover {
  background: var(--blue-mid);
  box-shadow: 0 6px 26px rgba(179,145,88,.40);
  transform: translateY(-2px);
}
.btn--outline-white {
  border: 1.5px solid rgba(255,255,255,.5);
  color: #fff;
}
.btn--outline-white:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn--ghost {
  border: 1.5px solid var(--border);
  color: var(--text-mid);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }
.btn--gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 4px 18px rgba(179,145,88,.28);
}
.btn--gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(179,145,88,.38);
}
.btn--sm  { padding: .6rem 1rem;   font-size: var(--fs-xs); }
.btn--lg  { padding: 1.1rem 1.5rem; font-size: var(--fs-base); }
.btn--icon{ padding: .6rem .7rem; }

/* Hero ghost variant (on light background) */
.hero .btn--outline-white {
  border-color: rgba(179,145,88,.22);
  color: var(--blue);
  background: rgba(179,145,88,.04);
}
.hero .btn--outline-white:hover {
  border-color: var(--blue);
  background: var(--blue-pale);
}

/* ── Navigation ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(18px) saturate(1.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  border-bottom: 1px solid rgba(179,145,88,.08);
  transition:
    background .35s var(--ease),
    box-shadow .35s var(--ease),
    border-color .35s var(--ease);
}
.navbar.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(24px) saturate(2);
  -webkit-backdrop-filter: blur(24px) saturate(2);
  box-shadow: 0 2px 28px rgba(34,36,40,.09);
  border-bottom-color: rgba(179,145,88,.14);
}
.navbar.has-subnav { box-shadow: none; }
.navbar .container {
  max-width: 100%;
  width: 100%;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}
.navbar__inner {
  display: flex;
  align-items: center;
  height: 4.5rem;
  gap: 1.5rem;
  transition: height .35s var(--ease-out);
}
.navbar.scrolled .navbar__inner { height: 3.5rem; }

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-shrink: 0;
}
.navbar__logo-mark {
  width: 2.6rem;
  height: 2.6rem;
  background: var(--blue);
  border-radius: 7px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--dur);
}
.navbar__logo:hover .navbar__logo-mark { background: var(--blue-mid); }
.navbar__logo-text { display: none; }
.navbar__logo-name {
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--text);
  letter-spacing: .01em;
}
.navbar__logo-sub {
  font-size: var(--fs-2xs);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: .09em;
  text-transform: uppercase;
}

/* Nav menu */
.navbar__menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}
.navbar__list {
  display: flex;
  align-items: center;
  gap: .1rem;
}
.navbar__link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .5rem .9rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-mid);
  border-radius: 7px;
  transition: color var(--dur), background var(--dur);
}
.navbar__link:hover  { color: var(--blue); background: var(--blue-pale); }
.navbar__link.active { color: var(--blue); background: var(--blue-pale); font-weight: 600; }
.navbar__link svg { transition: transform var(--dur) var(--ease); flex-shrink: 0; }
.navbar__dropdown:hover .navbar__link--dropdown svg { transform: rotate(180deg); }

/* Dropdown */
.navbar__dropdown { position: relative; }
.navbar__drop-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 1100px;
  padding-top: .875rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--dur-lg) var(--ease-out),
    transform var(--dur-lg) var(--ease-out),
    visibility var(--dur-lg);
  pointer-events: none;
}
.navbar__drop-panel::before {
  content: '';
  position: absolute;
  top: .875rem; left: 0; right: 0; bottom: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  pointer-events: none;
}
.navbar__dropdown:hover .navbar__drop-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
.navbar__drop-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.navbar__drop-col {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.5rem;
  gap: .08rem;
}
.navbar__drop-col:not(:last-child) { border-right: 1px solid var(--border); }
.navbar__drop-head {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--blue);
  padding: .35rem .5rem .15rem;
  margin-top: .75rem;
}
.navbar__drop-col .navbar__drop-head:first-child { margin-top: 0; }
.navbar__drop-col a {
  font-size: var(--fs-sm);
  color: var(--text-mid);
  padding: .32rem .55rem;
  border-radius: 6px;
  transition: color var(--dur), background var(--dur);
  display: block;
  white-space: normal;
  line-height: 1.35;
}
.navbar__drop-col a:hover  { color: var(--blue); background: var(--blue-pale); }
.navbar__drop-col a.active { color: var(--blue); background: var(--blue-pale); font-weight: 500; }

/* CTA in nav */
.navbar__cta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--blue);
  color: #fff;
  padding: .55rem 1.25rem;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: background var(--dur), box-shadow var(--dur), transform var(--dur);
  box-shadow: 0 2px 12px rgba(179,145,88,.28);
}
.navbar__cta::before {
  content: 'Umów wizytę:';
  font-size: var(--fs-2xs);
  font-weight: 400;
  opacity: .78;
  white-space: nowrap;
}
.navbar__cta:hover {
  background: var(--blue-mid);
  box-shadow: 0 4px 18px rgba(179,145,88,.38);
  transform: translateY(-1px);
}

/* Mobile toggle */
.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: .5rem;
  margin-left: auto;
  flex-shrink: 0;
}
.navbar__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur);
}
.navbar__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle.open span:nth-child(2) { opacity: 0; }
.navbar__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Sub-nav bar ───────────────────────────────────────────────── */
.sub-nav {
  position: fixed;
  left: 0; right: 0;
  z-index: 99;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px) saturate(1.6);
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
  border-bottom: 1px solid rgba(179,145,88,.1);
  box-shadow: 0 3px 14px rgba(34,36,40,.07);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .28s ease;
  pointer-events: none;
}
.sub-nav.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.sub-nav__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sub-nav__scroll::-webkit-scrollbar { display: none; }
.sub-nav .container { max-width: none; margin: 0; padding: 0; }
.sub-nav__inner {
  display: flex;
  align-items: stretch;
  padding: 0 0 0 48px;
  min-width: max-content;
}
.sub-nav__head {
  font-size: .69rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-light);
  padding: .55rem .75rem .55rem 0;
  white-space: nowrap;
  user-select: none;
  align-self: center;
}
.sub-nav__link {
  font-size: .8125rem;
  font-weight: 400;
  color: var(--text-muted);
  padding: .6rem .85rem;
  white-space: nowrap;
  transition: color .18s ease;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
}
.sub-nav__link:hover { color: var(--text-mid); }
.sub-nav__link.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  font-weight: 500;
}
.sub-nav__sep {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
  align-self: stretch;
  margin: .3rem .125rem;
}
.sub-nav__arrow {
  position: absolute;
  top: 0; bottom: 0;
  width: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--text-muted);
  transition: color .18s ease;
  z-index: 3;
  pointer-events: auto;
}
.sub-nav__arrow:hover { color: var(--blue); }
.sub-nav__arrow[hidden] { display: none; }
.sub-nav__arrow--prev {
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,.97) 55%, transparent);
}
.sub-nav__arrow--next {
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,.97) 55%, transparent);
}

/* ── Hero (Homepage) – Light 2026 ──────────────────────────────── */
.hero {
  min-height: 100svh;
  background:
    radial-gradient(ellipse 70% 80% at 80% 40%, rgba(179,145,88,.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 15% 75%, rgba(179,145,88,.05) 0%, transparent 55%),
    linear-gradient(150deg, #ffffff 0%, #F7F6F2 55%, #F2EEE9 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 4.5rem;
}
.hero__bg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* Subtle dot grid */
.hero__bg-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(179,145,88,.07) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
/* Decorative arc */
.hero__bg-glow::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(179,145,88,.08);
  top: -200px;
  right: 5%;
  pointer-events: none;
  animation: rotateSlow 110s linear infinite;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
  padding-block: clamp(3rem, 8vw, 5rem);
  position: relative;
  z-index: 1;
}
.hero__logo {
  display: block;
  width: 100%;
  max-width: 24rem;
  height: auto;
  margin-bottom: 2rem;
}
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.5rem;
}
.hero__label::before {
  content: '';
  width: 2.5rem;
  height: 1px;
  background: var(--blue);
  display: block;
  flex-shrink: 0;
}
.hero h1 {
  color: var(--text);
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--blue); }
.hero__lead {
  font-size: var(--fs-md);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.75rem;
  max-width: 50ch;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__actions .btn { flex: 1 1 0; min-width: 0; justify-content: center; text-align: center; }
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  margin-top: 3.5rem;
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
  gap: 2rem;
}
.hero__stat-num {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--blue);
  line-height: 1;
  margin-bottom: .4rem;
}
.hero__stat-num sup { font-size: 1.4rem; vertical-align: super; }
.hero__stat-label { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 400; line-height: 1.4; }

/* Hero visual */
.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__visual::before {
  content: '';
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 3rem;
  background: radial-gradient(ellipse 100% 60% at 50% 100%, rgba(179,145,88,.18) 0%, transparent 70%);
  filter: blur(16px);
  pointer-events: none;
}
.hero__photo {
  width: 100%;
  max-width: 430px;
  aspect-ratio: 3/4;
  border-radius: 6px 80px 6px 44px;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(34,36,40,.15),
    0 8px 24px rgba(34,36,40,.10),
    0 0 0 6px rgba(179,145,88,.08),
    0 0 0 12px rgba(179,145,88,.04);
  position: relative;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: none;
}
.hero__photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 480px;
  background: linear-gradient(160deg, var(--blue-pale) 0%, var(--bg-alt) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: var(--fs-sm);
  text-align: center;
  gap: 1rem;
  padding: 2rem;
}
/* Floating trust badge */
.hero__badge {
  position: absolute;
  bottom: 2.5rem;
  left: -3rem;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(179,145,88,.14);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 210px;
}
.hero__badge-icon {
  width: 3rem;
  height: 3rem;
  background: var(--blue-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.hero__badge-text { line-height: 1.35; }
.hero__badge-text strong { display: block; font-size: var(--fs-base); color: var(--text); font-weight: 700; margin-bottom: .15rem; }
.hero__badge-text span  { font-size: var(--fs-xs); color: var(--text-muted); }

/* ── Page Hero (inner pages – dark) ───────────────────────────── */
.page-hero {
  background:
    linear-gradient(to right, rgba(22,24,28,.95) 0%, rgba(34,36,40,.88) 55%, rgba(22,24,28,.92) 100%),
    url('../images/gabinet-glowne.webp') center/cover no-repeat;
  padding-block: 7rem 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero--section {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 47px, rgba(255,255,255,.018) 47px, rgba(255,255,255,.018) 48px),
    repeating-linear-gradient(90deg, transparent, transparent 47px, rgba(255,255,255,.018) 47px, rgba(255,255,255,.018) 48px),
    linear-gradient(145deg, rgba(28,30,34,.93) 0%, rgba(34,36,40,.84) 50%, rgba(28,30,34,.92) 100%),
    url('../images/CTA-Image-012.jpg') center 30% / cover no-repeat;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 100% at 90% 50%, rgba(179,145,88,.12) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(179,145,88,.05) 0%, transparent 55%);
  pointer-events: none;
}
.page-hero__deco {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 40%;
  opacity: .03;
  background: repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,.8) 10px, rgba(255,255,255,.8) 11px);
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__lead {
  font-size: var(--fs-md);
  color: rgba(255,255,255,.58);
  max-width: 60ch;
  line-height: 1.8;
  border-left: 2px solid rgba(179,145,88,.55);
  padding-left: 1rem;
  margin-top: .5rem;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.38);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.58); transition: color var(--dur); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { color: rgba(255,255,255,.22); }
.page-hero h1 { color: #fff; margin-bottom: .75rem; font-size: clamp(2rem, 4vw, 3.5rem); }
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 80% at 95% 50%, rgba(179,145,88,.10) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ── Service Cards ─────────────────────────────────────────────── */
.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition:
    transform var(--dur-lg) var(--ease-out),
    box-shadow var(--dur-lg) var(--ease-out),
    border-color var(--dur) var(--ease);
  position: relative;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(179,145,88,.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--dur-lg) var(--ease-out);
  pointer-events: none;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-lg) var(--ease-out);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(34,36,40,.12), 0 6px 18px rgba(179,145,88,.08);
  border-color: rgba(179,145,88,.16);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after  { transform: scaleX(1); }
.service-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--blue-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 1.4rem;
  flex-shrink: 0;
}
.service-card h3 { font-size: var(--fs-lg); color: var(--text); margin-bottom: .5rem; font-weight: 700; }
.service-card p  { font-size: var(--fs-sm); color: var(--text-muted); flex: 1; margin-bottom: 1.75rem; line-height: 1.65; }
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .01em;
  transition: gap var(--dur);
}
.service-card__link:hover { gap: .7rem; }
.service-card__link svg  { flex-shrink: 0; }
.service-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card__arrow {
  margin-top: auto;
  padding-top: 1.25rem;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: .45;
  transition: opacity var(--dur), transform var(--dur);
}
.service-card:hover .service-card__arrow { opacity: 1; transform: translateX(4px); }

/* Dark card variant */
.service-card--dark {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.08);
}
.service-card--dark:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18); box-shadow: none; }
.service-card--dark .service-card__icon { background: rgba(179,145,88,.22); }
.service-card--dark h3 { color: #fff; }
.service-card--dark p  { color: rgba(255,255,255,.55); }
.service-card--dark .service-card__link { color: var(--blue-light); }
.service-card--dark::after { display: none; }

/* ── About Block ───────────────────────────────────────────────── */
.about-block {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}
.about-photo { position: relative; }
.about-photo::after {
  content: '';
  position: absolute;
  bottom: -2rem;
  left: 10%; right: 10%;
  height: 3.5rem;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(179,145,88,.15) 0%, transparent 70%);
  filter: blur(14px);
  pointer-events: none;
  z-index: -1;
}
.about-photo__frame {
  aspect-ratio: 4/5;
  border-radius: 6px 60px 6px 40px;
  overflow: hidden;
  max-height: 560px;
  box-shadow:
    0 24px 72px rgba(34,36,40,.14),
    0 8px 28px rgba(34,36,40,.08),
    0 0 0 6px rgba(179,145,88,.06);
}
.about-photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.about-photo__placeholder {
  width: 100%;
  height: 100%;
  min-height: 480px;
  background: linear-gradient(160deg, var(--blue-pale) 0%, var(--bg-alt) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  text-align: center;
  padding: 2rem;
}
.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  min-width: 150px;
}
.about-badge__num  { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 300; line-height: 1; display: block; margin-bottom: .35rem; }
.about-badge__text { font-size: var(--fs-xs); opacity: .85; line-height: 1.4; }
.about-content .label { margin-bottom: .75rem; }
.about-content h2 { margin-bottom: 1.5rem; }
.about-name { font-family: var(--font-serif); font-size: var(--fs-md); font-weight: 400; color: var(--blue); margin-bottom: .75rem; letter-spacing: .01em; font-style: italic; }
.about-text { margin-bottom: 1.25rem; }
.about-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-block: 2rem;
}
.about-item { display: flex; align-items: flex-start; gap: .875rem; }
.about-item__icon {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--blue-pale);
  border-radius: 7px;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .15rem;
}
.about-item__body { font-size: var(--fs-sm); line-height: 1.5; color: var(--text-mid); }
.about-item__body strong { display: block; font-size: var(--fs-base); font-weight: 600; color: var(--text); margin-bottom: .2rem; }

/* ── Equipment / Features (dark) ───────────────────────────────── */
.equip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.equip-card {
  background: linear-gradient(145deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.03) 100%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: background var(--dur), border-color var(--dur), transform var(--dur-lg) var(--ease-out), box-shadow var(--dur-lg);
  position: relative;
  overflow: hidden;
}
.equip-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(179,145,88,.5), transparent);
}
.equip-card:hover {
  background: linear-gradient(145deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.05) 100%);
  border-color: rgba(255,255,255,.18);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(34,36,40,.25);
}
.equip-card__icon {
  width: 3rem;
  height: 3rem;
  background: rgba(179,145,88,.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  margin-bottom: 1.25rem;
}
.equip-card h4 { color: #fff; margin-bottom: .4rem; }
.equip-card p  { font-size: var(--fs-sm); margin: 0; }

/* ── Service Page Layout ───────────────────────────────────────── */
.service-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3.5rem;
  padding-block: clamp(3rem, 6vw, 5.5rem);
  align-items: start;
}
.service-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--navy);
  margin-top: 2.5rem;
  margin-bottom: .875rem;
}
.service-content h2:first-child { margin-top: 0; }
.service-content h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: .75rem;
}
.service-content p { margin-bottom: 1.1rem; }
.service-content ul,
.service-content ol { margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.service-content ul li,
.service-content ol li {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  font-size: var(--fs-base);
  color: var(--text-mid);
  line-height: 1.65;
}
.service-content ul li::before {
  content: '';
  width: .45rem;
  height: .45rem;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: .6rem;
}
.service-content ol { counter-reset: ol; }
.service-content ol li::before {
  counter-increment: ol;
  content: counter(ol);
  min-width: 1.75rem;
  height: 1.75rem;
  background: var(--blue-pale);
  color: var(--blue);
  border-radius: 50%;
  font-size: var(--fs-xs);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Info box */
.info-box {
  background: var(--blue-pale);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin-block: 2rem;
}
.info-box p { margin: 0; font-size: var(--fs-base); color: var(--text-mid); }
.info-box.gold { background: var(--gold-pale); border-color: var(--gold); }

/* Stats mini grid */
.stats-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-block: 2rem;
  box-shadow: var(--shadow-sm);
}
.stat-mini {
  background: linear-gradient(160deg, #fff 0%, var(--bg) 100%);
  padding: 1.4rem 1rem;
  text-align: center;
  transition: background var(--dur);
}
.stat-mini:hover { background: var(--blue-pale); }
.stat-mini__num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--blue);
  line-height: 1;
  margin-bottom: .3rem;
}
.stat-mini__label { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.4; }

/* Technique cards */
.technique-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-block: 1.5rem; }
.technique-card {
  background: linear-gradient(145deg, var(--bg) 0%, #F2EEE9 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur-lg);
  box-shadow: var(--shadow-sm);
}
.technique-card:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(34,36,40,.09); }
.technique-card h4 { color: var(--blue); margin-bottom: .5rem; font-size: 1rem; }
.technique-card p  { font-size: var(--fs-sm); margin: 0; color: var(--text-mid); line-height: 1.6; }

/* ── Sidebar ────────────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 5.5rem; }
.sidebar-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--dur-lg);
}
.sidebar-box:hover { box-shadow: var(--shadow-lg); }
.sidebar-box__head {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 1.1rem 1.4rem;
}
.sidebar-box__head h4 { color: #fff; font-size: var(--fs-base); }
.sidebar-box__head .label { margin: 0; color: rgba(255,255,255,.5); font-size: .65rem; }
.sidebar-box__body { padding: 1.4rem; }
.contact-list { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-row { display: flex; align-items: flex-start; gap: .875rem; }
.contact-row__icon {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--blue-pale);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.contact-row__text { font-size: var(--fs-sm); line-height: 1.5; color: var(--text-mid); }
.contact-row__text strong { display: block; font-weight: 600; color: var(--text); margin-bottom: .1rem; }
.contact-row__text a { color: var(--blue); font-weight: 700; font-size: 1rem; }
.cta-block {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  border-radius: var(--radius-lg);
  text-align: center;
}
.cta-block h4 { color: #fff; margin-bottom: .35rem; }
.cta-block p  { color: rgba(255,255,255,.75); font-size: var(--fs-sm); margin-bottom: 1.25rem; }
.cta-block .btn { width: 100%; }
.related-list { display: flex; flex-direction: column; }
.related-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .65rem .875rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--text-mid);
  gap: .5rem;
  transition: color var(--dur), background var(--dur);
}
.related-list a:hover { color: var(--blue); background: var(--blue-pale); }
.related-list a svg { opacity: .3; flex-shrink: 0; transition: opacity var(--dur); }
.related-list a:hover svg { opacity: 1; }

/* ── CTA Section ───────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(145deg, #1C1E22 0%, #222428 40%, #1A1C20 100%);
  padding-block: clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 80% at 50% 50%, rgba(179,145,88,.22) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 90% 20%, rgba(179,145,88,.12) 0%, transparent 55%);
  pointer-events: none;
}
.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section__inner { text-align: center; }
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p  { color: rgba(255,255,255,.62); font-size: var(--fs-md); margin-bottom: 2.5rem; max-width: 54ch; margin-inline: auto; text-align: center; }
.cta-section__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-section__contacts {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.cta-contact { display: flex; align-items: center; gap: 1rem; }
.cta-contact__icon {
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(179,145,88,.28);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
}
.cta-contact__text { line-height: 1.35; }
.cta-contact__text span { display: block; font-size: var(--fs-2xs); color: rgba(255,255,255,.42); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .2rem; }
.cta-contact__text a  { display: block; font-size: var(--fs-md); font-weight: 700; color: #fff; }
.cta-contact__text p  { font-size: var(--fs-sm); color: rgba(255,255,255,.55); margin: 0; text-align: center; }

/* ── Contact Page ──────────────────────────────────────────────── */
.contact-page { padding-block: clamp(3rem, 6vw, 5rem); }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.contact-card--private::before { background: linear-gradient(90deg, var(--blue), var(--blue-light)); }
.contact-card--nfz::before    { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.contact-card__tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
}
.contact-card--private .contact-card__tag { background: var(--blue-pale); color: var(--blue); }
.contact-card--nfz    .contact-card__tag  { background: var(--gold-pale);  color: var(--gold); }
.contact-card h3 { font-size: 1.4rem; font-weight: 700; color: var(--text); margin-bottom: 1.75rem; }
.map-section { margin-bottom: 2rem; }
.map-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 420px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ── Gabinet Page ──────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
  position: relative;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-lg) var(--ease-out), box-shadow var(--dur-lg);
}
.gallery-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(34,36,40,.22) 0%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-lg);
}
.gallery-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 60px rgba(34,36,40,.16), 0 6px 18px rgba(34,36,40,.08);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:first-child { grid-column: span 2; aspect-ratio: 16/7; }
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .75rem;
  color: var(--text-light);
  font-size: var(--fs-xs);
  text-align: center;
  background: var(--bg-alt);
}

/* ── About Page Extras ─────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 80px 1fr; gap: 2rem; position: relative; padding-bottom: 2.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-year {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--blue);
  text-align: right;
  padding-top: .15rem;
  flex-shrink: 0;
}
.timeline-body { border-left: 1px solid var(--border); padding-left: 2rem; position: relative; }
.timeline-body::before {
  content: '';
  position: absolute;
  left: -5px;
  top: .55rem;
  width: 9px;
  height: 9px;
  background: var(--blue);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--blue);
}
.timeline-body h4 { margin-bottom: .35rem; color: var(--text); }
.timeline-body p  { font-size: var(--fs-base); margin: 0; }
.memberships { display: flex; flex-direction: column; gap: .75rem; }
.membership {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.membership__icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--blue-pale);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.membership__text { font-size: var(--fs-base); color: var(--text-mid); line-height: 1.4; }
.membership__text strong { display: block; font-weight: 600; color: var(--text); }
.cert-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; }
.cert {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.cert__dot {
  width: .5rem;
  height: .5rem;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: .45rem;
}
.cert p { font-size: var(--fs-sm); margin: 0; color: var(--text-mid); }

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
  background: #1C1E22;
  padding-top: 5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer__brand .navbar__logo-name { font-size: var(--fs-md); }
.footer__desc { font-size: var(--fs-sm); color: rgba(255,255,255,.40); line-height: 1.75; margin-block: 1rem; max-width: 32ch; }
.footer__specialty { font-size: var(--fs-xs); color: rgba(255,255,255,.22); }
.footer__heading {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
  margin-bottom: 1.25rem;
}
.footer__links { display: flex; flex-direction: column; gap: .5rem; }
.footer__links a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.40);
  transition: color var(--dur);
  line-height: 1.5;
}
.footer__links a:hover { color: var(--blue-light); }
.footer__contact { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.5rem; }
.footer__contact a { font-size: var(--fs-sm); color: rgba(255,255,255,.65); transition: color var(--dur); }
.footer__contact a:hover { color: #fff; }
.footer__contact p { font-size: var(--fs-xs); color: rgba(255,255,255,.3); margin: 0; line-height: 1.5; }
.footer__bottom {
  padding-block: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.62rem;
  color: rgba(255,255,255,.18);
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__bottom p {
  font-size: 0.62rem;
  color: rgba(255,255,255,.2);
  margin: 0;
  text-align: left;
  hyphens: none;
  -webkit-hyphens: none;
}
.footer__bottom a { color: rgba(255,255,255,.28); transition: color var(--dur); }
.footer__bottom a:hover { color: rgba(255,255,255,.5); }

/* ── Logo image ─────────────────────────────────────────────────── */
.navbar__logo-img {
  height: 2.8rem;
  width: auto;
  display: block;
  filter: none;
  object-fit: contain;
  transition: height .35s var(--ease-out);
}
.navbar.scrolled .navbar__logo-img { height: 2.2rem; }
.navbar__logo-mark { display: none; }

/* Footer logo stays white */
.footer .navbar__logo-img { filter: none; }

/* ── Service section heading ────────────────────────────────────── */
.services-subhead {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
  margin-top: 3rem;
  padding-left: .25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.services-subhead::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Consultation & Procedural Cards ────────────────────────────── */
.consult-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.consult-card {
  background: #fff;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .875rem;
  transition: transform var(--dur-lg) var(--ease-out), box-shadow var(--dur-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.consult-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-lg) var(--ease-out);
}
.consult-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(34,36,40,.11); }
.consult-card:hover::after { transform: scaleX(1); }
.consult-card__photo {
  margin: -2rem -1.75rem 0;
  height: 300px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  flex-shrink: 0;
}
.consult-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-lg) var(--ease-out);
}
.consult-card:hover .consult-card__photo img { transform: scale(1.06); }
.consult-card h3 { font-size: var(--fs-md); font-weight: 700; color: var(--text); line-height: 1.35; }
.consult-card p  { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.65; flex: 1; margin: 0; }
.consult-card__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--blue);
  transition: gap var(--dur);
  margin-top: auto;
}
.consult-card__link:hover { gap: .7rem; }

.proc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.proc-card {
  display: flex;
  flex-direction: column;
  gap: .875rem;
  padding: 2rem 1.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--dur-lg) var(--ease-out), box-shadow var(--dur-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.proc-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-lg) var(--ease-out);
}
.proc-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(34,36,40,.11); }
.proc-card:hover::after { transform: scaleX(1); }
.proc-card__photo {
  margin: -2rem -1.75rem 0;
  height: 220px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  flex-shrink: 0;
  position: relative;
}
.proc-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-lg) var(--ease-out);
}
.proc-card__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(34,36,40,.12) 0%, rgba(34,36,40,.42) 100%);
  pointer-events: none;
}
.proc-card:hover .proc-card__photo img { transform: scale(1.06); }
.proc-card h4 { font-size: var(--fs-base); font-weight: 700; color: var(--text); margin-bottom: .25rem; }
.proc-card p  { font-size: .825rem; color: var(--text-muted); line-height: 1.6; margin: 0; flex: 1; }

/* ── Certificate Carousel ────────────────────────────────────────── */
.cert-belt { position: relative; margin-top: 2rem; }
.cert-belt__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: background var(--dur), color var(--dur), box-shadow var(--dur);
}
.cert-belt__nav:hover { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 6px 20px rgba(179,145,88,.28); }
.cert-belt__nav--prev { left: -1.25rem; }
.cert-belt__nav--next { right: -1.25rem; }
.cert-belt__track-wrap { overflow: hidden; }
.cert-belt__track { display: flex; gap: 1rem; transition: transform .45s cubic-bezier(.25,.46,.45,.94); }
.cert-tile {
  flex: 0 0 calc((100% - 5rem) / 6);
  min-width: 0;
  background: linear-gradient(160deg, #fffef7 0%, #fef8ea 100%);
  border: 1px solid #d6b87a;
  border-radius: var(--radius);
  padding: 1.5rem 1.1rem 1.25rem;
  position: relative;
  cursor: pointer;
  transition: transform var(--dur-lg) var(--ease-out), box-shadow var(--dur-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
  min-height: 190px;
}
.cert-tile::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(179,145,88,.22);
  border-radius: calc(var(--radius) - 3px);
  pointer-events: none;
}
.cert-tile:hover { transform: translateY(-5px); box-shadow: 0 14px 40px rgba(179,145,88,.22); }
.cert-tile__icon {
  width: 2.75rem;
  height: 2.75rem;
  background: linear-gradient(135deg, var(--gold-pale) 0%, rgba(179,145,88,.15) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.cert-tile__title { font-size: var(--fs-xs); font-weight: 700; color: var(--text); line-height: 1.4; flex: 1; }
.cert-tile__meta  { font-size: var(--fs-2xs); color: var(--text-muted); line-height: 1.4; }
.cert-tile__zoom {
  position: absolute;
  bottom: .6rem; right: .6rem;
  width: 1.6rem; height: 1.6rem;
  background: rgba(179,145,88,.15);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  opacity: 0;
  transition: opacity var(--dur), background var(--dur);
}
.cert-tile:hover .cert-tile__zoom { opacity: 1; }
.cert-tile__zoom:hover { background: var(--gold); color: #fff; }

/* Certificate Modal */
.cert-modal {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.cert-modal.open { opacity: 1; visibility: visible; }
.cert-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(8,18,40,.78);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.cert-modal__box {
  position: relative; z-index: 1;
  background: linear-gradient(160deg, #fffef7 0%, #fef8ea 100%);
  border: 2px solid #c8a55a;
  border-radius: var(--radius-xl);
  padding: 3rem 3.5rem;
  max-width: 540px; width: 90%;
  text-align: center;
  box-shadow: 0 40px 100px rgba(34,36,40,.28);
  transform: scale(.9) translateY(20px);
  transition: transform .35s var(--ease-out);
}
.cert-modal.open .cert-modal__box { transform: none; }
.cert-modal__box::before {
  content: '';
  position: absolute; inset: 12px;
  border: 1px solid rgba(179,145,88,.3);
  border-radius: calc(var(--radius-xl) - 8px);
  pointer-events: none;
}
.cert-modal__close {
  position: absolute; top: 1rem; right: 1rem;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: rgba(179,145,88,.12);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-md);
  cursor: pointer;
  transition: background var(--dur), color var(--dur);
  line-height: 1;
}
.cert-modal__close:hover { background: var(--gold); color: #fff; }
.cert-modal__icon {
  width: 4rem; height: 4rem;
  background: linear-gradient(135deg, var(--gold-pale), rgba(179,145,88,.18));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  margin: 0 auto 1.5rem;
}
.cert-modal__title   { font-family: var(--font-serif); font-size: 1.55rem; font-weight: 500; color: var(--text); margin-bottom: .5rem; line-height: 1.3; }
.cert-modal__issuer  { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: .25rem; }
.cert-modal__year    { font-family: var(--font-serif); font-size: var(--fs-lg); color: var(--gold); font-weight: 400; }
.cert-modal__seal {
  margin: 1.75rem auto 0;
  width: 3.5rem; height: 3.5rem;
  background: linear-gradient(135deg, var(--blue-pale), rgba(179,145,88,.12));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
}

@media (max-width: 1100px) { .cert-tile { flex: 0 0 calc((100% - 3rem) / 4); } }
@media (max-width: 768px)  { .cert-tile { flex: 0 0 calc((100% - 1rem) / 2); } .cert-belt__nav { display: none; } }

/* ── Photo Certificate Carousel ─────────────────────────────────── */
.photo-belt { position: relative; padding: .75rem 0 1rem; }
.photo-belt__nav {
  position: absolute;
  top: calc(50% - 1.25rem); z-index: 10;
  width: 2.25rem; height: 2.25rem;
  background: #fff; border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mid); box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: background var(--dur), color var(--dur), box-shadow var(--dur);
}
.photo-belt__nav:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.photo-belt__nav--prev { left: -1rem; }
.photo-belt__nav--next { right: -1rem; }
.photo-belt__wrap { overflow: hidden; }
.photo-belt__track { display: flex; gap: .75rem; transition: transform .4s cubic-bezier(.25,.46,.45,.94); }
.photo-cert { flex: 0 0 calc((100% - 5 * .75rem) / 6); cursor: pointer; }
.photo-cert__thumb {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-lg), transform var(--dur-lg);
}
.photo-cert:hover .photo-cert__thumb { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.photo-cert__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur-lg); }
.photo-cert:hover .photo-cert__thumb img { transform: scale(1.04); }
.photo-cert__overlay {
  position: absolute; inset: 0;
  background: rgba(15,30,60,.42);
  display: flex; align-items: center; justify-content: center;
  color: #fff; opacity: 0;
  transition: opacity var(--dur);
}
.photo-cert:hover .photo-cert__overlay { opacity: 1; }
.photo-cert__cap { font-size: var(--fs-2xs); color: var(--text-muted); margin-top: .5rem; text-align: center; line-height: 1.4; }

/* Photo Modal */
.photo-modal {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.photo-modal.open { opacity: 1; visibility: visible; }
.photo-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(8,18,40,.90);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.photo-modal__box {
  position: relative; z-index: 1;
  max-width: min(90vw, 700px); max-height: 90vh;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  transform: scale(.92);
  transition: transform .35s var(--ease-out);
}
.photo-modal.open .photo-modal__box { transform: none; }
.photo-modal__close {
  position: fixed; top: 1.25rem; right: 1.25rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--dur); line-height: 1;
}
.photo-modal__close:hover { background: rgba(255,255,255,.30); }
.photo-modal__img { display: block; max-width: 100%; max-height: calc(90vh - 4rem); border-radius: var(--radius); box-shadow: 0 32px 80px rgba(34,36,40,.6); object-fit: contain; }
.photo-modal__cap { color: rgba(255,255,255,.65); font-size: var(--fs-sm); text-align: center; max-width: 50ch; }

@media (max-width: 1000px) { .photo-cert { flex: 0 0 calc((100% - 3 * .75rem) / 4); } }
@media (max-width: 600px)  { .photo-cert { flex: 0 0 calc((100% - .75rem) / 2); } .photo-belt__nav { display: none; } }

/* ── ProfiMed Section ───────────────────────────────────────────── */
.profimed-section { background: #ffffff; }
.profimed-block {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}
.profimed-visual {
  background: linear-gradient(145deg, #1C1E22 0%, #222428 60%, #2D3036 100%);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.profimed-visual::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}
.profimed-visual::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -30px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.profimed-logo-wrap { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.75rem; }
.profimed-brand { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.profimed-icon { border-radius: 10px; flex-shrink: 0; }
.profimed-tagline { font-size: 1.6rem; font-family: var(--font-serif); font-weight: 600; line-height: 1.2; margin-bottom: .6rem; }
.profimed-sub { font-size: var(--fs-base); font-weight: 600; color: var(--gold-light); letter-spacing: .03em; margin-bottom: 1.75rem; }
.profimed-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.profimed-pill {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 2rem;
  padding: .3rem .85rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
}
.profimed-desc { font-size: 1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.profimed-benefits { display: flex; flex-direction: column; gap: .65rem; margin-bottom: 2rem; }
.profimed-benefit {
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: var(--fs-base); color: var(--text);
}
.profimed-benefit svg { color: var(--blue); flex-shrink: 0; margin-top: .1rem; }
.profimed-cta { background: var(--blue); box-shadow: 0 4px 18px rgba(179,145,88,.30); }
.profimed-cta:hover { background: var(--blue-mid); box-shadow: 0 8px 28px rgba(179,145,88,.40); transform: translateY(-2px); }

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

/* ── Gallery enhancements ────────────────────────────────────────── */
.gallery-item img { transition: transform .6s cubic-bezier(.25,.46,.45,.94); }

/* ================================================================
   ANIMATIONS & DECORATIONS
   ================================================================ */

/* ── Keyframes ───────────────────────────────────────────────────── */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroImgIn {
  from { opacity: 0; transform: scale(.93) translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-14px); }
}
@keyframes rotateSlow    { to { transform: rotate(360deg); } }
@keyframes rotateSlowRev { to { transform: rotate(-360deg); } }
@keyframes pulseRing {
  0%   { transform: scale(.95); opacity: .5; }
  100% { transform: scale(1.55); opacity: 0; }
}
@keyframes fadeLeft  { from { opacity: 0; transform: translateX(-44px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeRight { from { opacity: 0; transform: translateX(44px);  } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleUp   { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes pageFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes pageFadeOut { from { opacity: 1; } to { opacity: 0; } }

/* ── Hero entrance ───────────────────────────────────────────────── */
.hero__logo    { animation: heroIn .90s var(--ease-out) .00s both; }
.hero__label   { animation: heroIn .85s var(--ease-out) .18s both; }
.hero h1       { animation: heroIn .95s var(--ease-out) .36s both; }
.hero__lead    { animation: heroIn .85s var(--ease-out) .44s both; }
.hero__actions { animation: heroIn .80s var(--ease-out) .58s both; }
.hero__stats   { animation: heroIn .80s var(--ease-out) .72s both; }
.hero__visual  { animation: heroImgIn 1.1s var(--ease-out) .18s both; }

/* ── Scroll-reveal ───────────────────────────────────────────────── */
.fade-up    { opacity: 0; transform: translateY(24px); transition: opacity .65s var(--ease-out), transform .65s var(--ease-out); }
.fade-up.visible { opacity: 1; transform: none; }
.fade-left  { opacity: 0; transform: translateX(-44px); transition: opacity .75s var(--ease-out), transform .75s var(--ease-out); }
.fade-right { opacity: 0; transform: translateX(44px);  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out); }
.fade-scale { opacity: 0; transform: scale(.9);         transition: opacity .75s var(--ease-out), transform .75s var(--ease-out); }
.fade-left.visible, .fade-right.visible, .fade-scale.visible { opacity: 1; transform: none; }

/* ── Stagger delays ──────────────────────────────────────────────── */
.fade-up[data-delay="1"] { transition-delay: .12s; }
.fade-up[data-delay="2"] { transition-delay: .22s; }
.fade-up[data-delay="3"] { transition-delay: .32s; }
.fade-up[data-delay="4"] { transition-delay: .42s; }
.fade-up[data-delay="5"] { transition-delay: .52s; }
.fade-up[data-delay="6"] { transition-delay: .62s; }
.fade-up[data-delay="7"] { transition-delay: .72s; }
.fade-up[data-delay="8"] { transition-delay: .82s; }
.fade-left[data-delay="1"]  { transition-delay: .1s; }
.fade-right[data-delay="1"] { transition-delay: .1s; }

/* ── Section backgrounds ─────────────────────────────────────────── */
.section, .section--alt, .section--teal, .section--dark { position: relative; }
.section > .container,
.section--alt > .container,
.section--teal > .container,
.section--dark > .container { position: relative; z-index: 1; }

.section--dark::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 70% at 85% 50%, rgba(179,145,88,.12) 0%, transparent 65%),
    radial-gradient(ellipse 45% 60% at 10% 30%, rgba(179,145,88,.06) 0%, transparent 55%);
  pointer-events: none; z-index: 0;
}

/* ── Number counter highlight ────────────────────────────────────── */
.stat-mini__num.counting,
.hero__stat-num.counting {
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-light) 50%, var(--blue) 100%);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer .8s var(--ease) 1;
}

/* ── Floating card animation ─────────────────────────────────────── */
.equip-card:nth-child(odd)  { animation: floatY 6s ease-in-out infinite; }
.equip-card:nth-child(even) { animation: floatY 6s ease-in-out .8s infinite; }
.equip-card:hover { animation-play-state: paused; }

/* ── Page transitions ────────────────────────────────────────────── */
body { animation: pageFadeIn .48s var(--ease-out) both; }
body.page-out { animation: pageFadeOut .32s var(--ease) forwards !important; }

/* ── Certificate scan placeholder ───────────────────────────────── */
.photo-cert__thumb--empty {
  background: linear-gradient(160deg, var(--bg-alt), var(--bg));
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: .4rem;
  color: var(--text-light); font-size: .65rem;
}
.photo-cert__thumb--empty::before {
  content: ''; display: block;
  width: 2.2rem; height: 2.8rem;
  background: linear-gradient(var(--border), var(--border)) no-repeat 0 0 / 100% 100%;
  border-radius: 3px; opacity: .45;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3C/svg%3E");
  mask-size: contain; mask-repeat: no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3C/svg%3E");
  -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat;
}

/* ── Trust Bar (certifications strip) ───────────────────────────── */
.trust-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding-block: 1.1rem;
  overflow: hidden;
}
.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-wrap: nowrap;
}
.trust-bar__inner::-webkit-scrollbar { display: none; }
.trust-bar__item {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 1;
  min-width: 0;
  padding: .3rem clamp(.75rem, 2vw, 1.25rem);
}
.trust-bar__icon {
  width: 2.25rem; height: 2.25rem;
  border-radius: 8px;
  background: var(--blue-pale);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-bar__text strong {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.trust-bar__text span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}
.trust-bar__divider {
  width: 1px; height: 2.25rem;
  background: var(--border);
  flex-shrink: 0;
}

/* ── FAQ Accordion ────────────────────────────────────────────────── */
.faq-list { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.3rem 0;
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-sans);
  transition: color var(--dur) var(--ease);
}
.faq-q:hover { color: var(--blue); }
.faq-item.open .faq-q { color: var(--blue); }
.faq-q__icon {
  flex-shrink: 0;
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.faq-item.open .faq-q__icon {
  transform: rotate(45deg);
  background: var(--blue);
  color: #fff;
}
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .42s var(--ease-out);
}
.faq-item.open .faq-a { max-height: 600px; }
.faq-a__inner { padding-bottom: 1.25rem; }
.faq-a p {
  text-align: left;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.82;
  max-width: 72ch;
  hyphens: none;
  -webkit-hyphens: none;
}

/* ── Sticky Mobile CTA ────────────────────────────────────────────── */
.mobile-cta { display: none; }

/* ── Photo Modal prev/next ────────────────────────────────────────── */
.photo-modal__layout {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  gap: 1rem;
}
.photo-modal__nav {
  flex-shrink: 0;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s var(--ease), opacity .2s;
}
.photo-modal__nav:hover { background: rgba(179,145,88,.55); }
.photo-modal__nav[disabled] { opacity: .28; pointer-events: none; }
.photo-modal__footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: .5rem; gap: 1rem;
}
.photo-modal__counter {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.45);
  white-space: nowrap;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1100px) {
  /* Trust bar: wrap to 3-up when 5 items no longer fit in one row */
  .trust-bar { overflow: visible; }
  .trust-bar__inner { flex-wrap: wrap; overflow-x: visible; justify-content: center; }
  .trust-bar__divider { display: none; }
  .trust-bar__item { flex: 0 0 auto; padding: .4rem .875rem; }
}
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .hero__lead { max-width: 60ch; }
  .about-block { grid-template-columns: 1fr; }
  .about-photo { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .service-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .cta-block { grid-column: span 2; }
  .consult-grid { grid-template-columns: 1fr 1fr; }
  .proc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-column: span 2; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .technique-grid { grid-template-columns: 1fr; }
  .profimed-block { grid-template-columns: 1fr; }
}
/* ── Compact navbar for medium screens (tablets/small laptops) ── */
@media (max-width: 1200px) {
  .navbar__link { padding: .4rem .6rem; font-size: .8rem; }
  .navbar__menu { gap: 1rem; }
  .navbar__cta { padding: .5rem 1rem; font-size: .8rem; }
  .navbar__cta::before { display: none; }
}
@media (max-width: 960px) {
  .navbar__toggle { display: flex; }
  .navbar__toggle span { background: var(--text); }
  .navbar__menu {
    position: fixed;
    top: 4.5rem; left: 0; right: 0; bottom: 0;
    background: rgba(8,18,42,.97);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: .25rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 950;
    margin-left: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--dur-lg) var(--ease-out), transform var(--dur-lg) var(--ease-out);
  }
  .navbar__menu.open { opacity: 1; pointer-events: all; transform: none; }
  .navbar.scrolled .navbar__menu { top: 3.5rem; }
  .navbar__list { flex-direction: column; width: 100%; gap: 0; align-items: stretch; }
  .navbar__link { width: 100%; padding: .9rem 1rem; font-size: var(--fs-base); border-radius: var(--radius); color: rgba(255,255,255,.82); }
  .navbar__link:hover  { color: #fff; background: rgba(255,255,255,.08); }
  .navbar__link.active { color: #fff; background: rgba(179,145,88,.35); }
  .navbar__toggle.open span { background: var(--text); }
  .navbar__drop-panel {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    min-width: auto;
    width: 100%;
    display: none;
    border-radius: var(--radius);
    margin-top: .25rem;
    padding-top: 0;
    background: rgba(255,255,255,.05);
  }
  .navbar__drop-panel::before { display: none; }
  .navbar__dropdown.open .navbar__drop-panel { display: block; }
  .navbar__drop-inner { grid-template-columns: 1fr; }
  .navbar__drop-col { border-right: none; border-top: 1px solid rgba(255,255,255,.07); }
  .navbar__drop-col a { color: rgba(255,255,255,.62); }
  .navbar__drop-col a:hover { color: #fff; background: rgba(179,145,88,.25); }
  .navbar__drop-head { color: rgba(179,145,88,.9); }
  .navbar__cta { width: 100%; justify-content: center; margin-top: 1rem; padding: 1rem; font-size: var(--fs-base); border-radius: var(--radius); }
  .navbar__cta::before { display: none; }
  /* Remove backdrop-filter on mobile — it creates a WebKit compositing
     layer that traps position:fixed children. */
  .navbar, .navbar.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255,255,255,.97);
    box-shadow: 0 1px 0 rgba(179,145,88,.10);
  }
  /* Menu is moved to <body> by JS on mobile so it sits in the root
     stacking context — z-index here is root-level, not inside navbar. */
  .navbar__menu--mobile-root {
    position: fixed;
    top: 4.5rem; left: 0; right: 0; bottom: 0;
    z-index: 1000;
    /* ── Professional mobile menu design ── */
    padding: 0;
    gap: 0;
    background: #07111f;
    align-items: stretch;
    flex-direction: column;
    display: flex;
    overflow: hidden; /* let the inner list scroll, not the whole container */
  }

  /* Main list fills scroll area */
  .navbar__menu--mobile-root .navbar__list {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    width: 100%;
    padding: .5rem 0;
  }

  /* Top-level link */
  .navbar__menu--mobile-root .navbar__list > li > .navbar__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.375rem;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,.78);
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    min-height: 3.25rem;
    letter-spacing: .01em;
    transition: background .12s, color .12s;
  }
  .navbar__menu--mobile-root .navbar__list > li:last-of-type > .navbar__link { border-bottom: none; }
  .navbar__menu--mobile-root .navbar__list > li > .navbar__link:active { background: rgba(255,255,255,.055); }
  .navbar__menu--mobile-root .navbar__list > li > .navbar__link.active {
    color: #fff;
    background: rgba(179,145,88,.18);
    border-left: 3px solid var(--teal);
    padding-left: calc(1.375rem - 3px);
  }

  /* Dropdown chevron */
  .navbar__menu--mobile-root .navbar__link--dropdown {
    justify-content: space-between;
  }
  .navbar__menu--mobile-root .navbar__link--dropdown svg {
    flex-shrink: 0;
    width: 1rem; height: 1rem;
    color: rgba(255,255,255,.35);
    transition: transform .28s var(--ease-out), color .15s;
  }
  .navbar__menu--mobile-root .navbar__dropdown.open > .navbar__link--dropdown { color: #fff; background: rgba(255,255,255,.05); }
  .navbar__menu--mobile-root .navbar__dropdown.open > .navbar__link--dropdown svg {
    transform: rotate(180deg);
    color: var(--teal);
  }

  /* Dropdown panel */
  .navbar__menu--mobile-root .navbar__drop-panel {
    background: rgba(34,36,40,.22);
    border: none;
    border-radius: 0;
    padding: .35rem 0 .75rem;
    margin-top: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .navbar__menu--mobile-root .navbar__drop-inner {
    display: flex;
    flex-direction: column;
    grid-template-columns: unset;
  }
  .navbar__menu--mobile-root .navbar__drop-col {
    border-right: none;
    border-top: none;
    padding: 0;
  }

  /* Section head */
  .navbar__menu--mobile-root .navbar__drop-head {
    display: block;
    padding: .75rem 1.375rem .3rem 1.75rem;
    font-size: .675rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .11em;
    color: var(--teal);
    opacity: .8;
  }

  /* Sub-links */
  .navbar__menu--mobile-root .navbar__drop-col a {
    display: block;
    padding: .575rem 1.375rem .575rem 1.75rem;
    font-size: .875rem;
    font-weight: 400;
    color: rgba(255,255,255,.55);
    border-radius: 0;
    line-height: 1.45;
    transition: background .1s, color .1s;
  }
  .navbar__menu--mobile-root .navbar__drop-col a:active,
  .navbar__menu--mobile-root .navbar__drop-col a:hover {
    background: rgba(255,255,255,.042);
    color: rgba(255,255,255,.88);
  }
  .navbar__menu--mobile-root .navbar__drop-col a.active { color: var(--teal); }

  /* CTA phone button pinned at the bottom */
  .navbar__menu--mobile-root .navbar__cta {
    flex-shrink: 0;
    margin: .75rem 1.25rem max(1.25rem, env(safe-area-inset-bottom));
    width: auto !important;
    border-radius: var(--radius);
    background: var(--teal);
    color: #fff !important;
    font-size: .9375rem;
    font-weight: 700;
    justify-content: center;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0,175,199,.28);
    transition: opacity .12s, transform .12s;
    border: none;
    letter-spacing: .01em;
  }
  .navbar__menu--mobile-root .navbar__cta:active {
    opacity: .82;
    transform: scale(.97);
  }
  .navbar__menu--mobile-root .navbar__cta::before { display: none; }
  .navbar__inner { gap: 1rem; }
  .navbar__logo-img { height: 2.2rem; max-width: calc(100vw - 6.5rem); }
  .navbar .container { padding-inline: clamp(.875rem, 4vw, 2rem); }
}
@media (max-width: 768px) {
  /* Collapse content grids to single column */
  .cols-2, .cols-3 { grid-template-columns: 1fr !important; }
  .layout-aside { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .footer__grid { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .breadcrumb { display: none; }
  .cta-block { grid-column: 1; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .consult-grid { grid-template-columns: 1fr; }
  .proc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: 1; aspect-ratio: 4/3; }
  .hero__stats { grid-template-columns: 1fr; }
  .about-list { grid-template-columns: 1fr; }
  .footer__grid { gap: 2.5rem; }
  .cta-section__contacts { flex-direction: column; align-items: center; gap: 1.25rem; }
  .cta-contact { flex-direction: column; align-items: center; text-align: center; gap: .6rem; }
  .cta-contact__text span { text-align: center; }
  .cta-contact__text a { text-align: center; }
  .hero__badge { display: none; }
  .photo-modal__layout { gap: .5rem; }
  .photo-modal__nav { width: 2.25rem; height: 2.25rem; }
  .photo-modal__box { max-width: calc(100vw - 6.5rem); }
}
@media (max-width: 768px) {
  .mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 890;
    gap: .625rem;
    padding: .625rem .875rem;
    padding-bottom: max(.625rem, env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(34,36,40,.10);
  }
  .mobile-cta__btn {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    gap: .45rem;
    padding: .85rem 1rem;
    border-radius: var(--radius);
    font-size: var(--fs-sm);
    font-weight: 700;
    white-space: nowrap;
    transition: opacity var(--dur);
  }
  .mobile-cta__btn:active { opacity: .78; }
  .mobile-cta__btn--call {
    background: var(--bg-alt);
    color: var(--blue);
    border: 1.5px solid var(--blue-100);
  }
  .mobile-cta__btn--book {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 2px 12px rgba(179,145,88,.28);
  }
  body.has-mobile-cta { padding-bottom: 5.5rem; }
}

/* ================================================================
   SMOOTH SCROLL · PAGE TRANSITIONS · MOBILE POLISH
   ================================================================ */

/* ── Page progress bar ────────────────────────────────────────────── */
.page-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-light) 75%, rgba(255,255,255,.6) 100%);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 12px rgba(179,145,88,.55), 0 0 4px rgba(179,145,88,.3);
}
.page-progress.active { opacity: 1; }

/* ── Back-to-top button ───────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 880;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(179,145,88,.35);
  opacity: 0;
  transform: translateY(1rem) scale(.85);
  transition:
    opacity .28s var(--ease),
    transform .28s var(--ease-out),
    background .2s,
    box-shadow .2s;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--blue-mid);
  box-shadow: 0 6px 28px rgba(179,145,88,.48);
  transform: translateY(-3px);
}
.back-to-top:active { transform: scale(.93); }

/* ── View Transitions (modern browsers) ──────────────────────────── */
@keyframes _vtOut { to   { opacity: 0; transform: translateY(-10px) scale(.985); } }
@keyframes _vtIn  { from { opacity: 0; transform: translateY( 10px) scale(.985); } }
::view-transition-old(root) { animation: _vtOut .22s var(--ease) both; }
::view-transition-new(root) { animation: _vtIn  .30s var(--ease-out) .04s both; }

/* ── MOBILE IMPROVEMENTS ──────────────────────────────────────────── */

/* Back-to-top sits above sticky mobile CTA bar */
@media (max-width: 768px) {
  .back-to-top { bottom: 1.5rem; right: 1rem; width: 2.75rem; height: 2.75rem; }
  .has-mobile-cta .back-to-top { bottom: 6.5rem; }
  .label { color: rgba(255,255,255,.65); }
}

@media (max-width: 1440px) {
  :root { --max-w: 95%; }
}
@media (max-width: 768px) {
  /* Wider container — 85% is too narrow at 375px */
  :root { --max-w: 94%; --px: 1rem; }

  /* ── Hero ── */
  .hero { padding-top: 5rem; }
  .hero__logo { max-width: 16rem; margin-bottom: 1.5rem; }
  .hero__grid { padding-block: 2rem 2.5rem; gap: 0; }
  .hero h1 { font-size: clamp(1.85rem, 9vw, 2.7rem); }
  .hero__lead { font-size: var(--fs-base); margin-bottom: 1.75rem; max-width: 100%; }
  .hero__actions { flex-direction: column; gap: .75rem; align-items: stretch; }
  .hero__actions .btn { width: 100%; flex: none; }
  .hero__stats { margin-top: 2rem; padding-top: 1.5rem; gap: .75rem; grid-template-columns: repeat(3,1fr); }
  .hero__stat-num { font-size: 2rem; }

  /* ── Section accordion: stack button below heading on mobile ── */
  .section-header--collapsible { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .section-toggle { align-self: flex-start; }

  /* ── Reduce section vertical rhythm ── */
  .section,
  .section--alt,
  .section--teal,
  .section--dark { padding-block: clamp(2.75rem, 8vw, 4.5rem); }

  /* ── Inner page hero ── */
  .page-hero { padding-block: 5rem 3rem; }
  .page-hero h1 { font-size: clamp(1.65rem, 6.5vw, 2.5rem); }
  .page-hero__lead { font-size: var(--fs-sm); }

  /* ── Section header bottom margin ── */
  .section-header { margin-bottom: clamp(1.75rem, 4vw, 3rem); }

  /* ── Trust bar: wrap to 2-column grid on mobile ── */
  .trust-bar { overflow: visible; }
  .trust-bar__inner { flex-wrap: wrap; overflow-x: visible; justify-content: center; gap: 0; }
  .trust-bar__divider { display: none; }
  .trust-bar__item { flex: 0 0 50%; padding: .5rem .875rem; }

  /* ── Service cards: tighter on mobile ── */
  .service-card { padding: 1.5rem; }

  /* ── Consult grid single column ── */
  .consult-grid { grid-template-columns: 1fr; }

  /* ── Footer tighter ── */
  .footer { padding-block: 3rem 1.5rem; }
}

@media (max-width: 520px) {
  /* Hero stats: 2 × 1 on very small */
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__stat-num { font-size: 1.75rem; }

  /* Tighter grid gap */
  .grid-3, .grid-4 { gap: 1.15rem; }

  /* Services subhead: top spacing */
  .services-subhead { margin-top: 2rem; }

  /* FAQ bigger tap area */
  .faq-q { padding-block: 1.15rem; min-height: 3.25rem; }
}

/* ── Reduced motion: respect user preference ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .fade-up, .fade-left, .fade-right, .fade-scale { opacity: 1 !important; transform: none !important; }
}

/* ═══════════════════════════════════════════════════════ MEDIA COMPONENTS */

/* Page image banner (single image) */
.page-media { margin: 3rem 0; }
.page-media__img {
  width: 100%; height: auto; display: block; border-radius: var(--radius-lg);
  object-fit: cover; max-height: 520px;
}

/* ── Plastyka powłok – text + gallery two-column layout ─────────── */
.pp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.pp-layout__gallery {}
@media (max-width: 1024px) {
  .pp-layout { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 768px) {
  .pp-layout { grid-template-columns: 1fr; }
  .pp-layout__gallery { position: static; }
}

/* ── Photo gallery (plastyka-powlok) ─────────────────────────────── */
.pp-gallery {
  display: flex;
  gap: 1rem;
  margin: 0 0 2.5rem;
  align-items: flex-start;
}
.pp-gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  max-height: 608px;
  overflow-y: auto;
  flex-shrink: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  padding-right: .25rem;
}
.pp-gallery__thumbs::-webkit-scrollbar { width: 4px; }
.pp-gallery__thumbs::-webkit-scrollbar-track { background: transparent; }
.pp-gallery__thumbs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.pp-gallery__thumb {
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0;
  cursor: pointer;
  background: none;
  flex-shrink: 0;
  overflow: hidden;
  opacity: .55;
  transition: opacity var(--dur), border-color var(--dur);
}
.pp-gallery__thumb:hover { opacity: .85; }
.pp-gallery__thumb--active { border-color: var(--gold); opacity: 1; }
.pp-gallery__thumb img { display: block; width: 100px; height: 126px; object-fit: cover; }
.pp-gallery__stage {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.pp-gallery__img {
  width: 100%;
  max-height: 608px;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--bg-alt);
  display: block;
}
.pp-gallery__bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  justify-content: center;
}
.pp-gallery__nav, .pp-gallery__play {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 2.2rem; height: 2.2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-mid);
  transition: background var(--dur), color var(--dur);
}
.pp-gallery__nav:hover, .pp-gallery__play:hover { background: var(--gold-pale); color: var(--gold-dark); }
.pp-gallery__counter {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  min-width: 4rem;
  text-align: center;
}
@media (max-width: 600px) {
  .pp-gallery { flex-direction: column-reverse; }
  .pp-gallery__thumbs { flex-direction: row; max-height: none; max-width: 100%; overflow-x: auto; overflow-y: hidden; padding-right: 0; padding-bottom: .25rem; }
  .pp-gallery__img { max-height: 400px; }
}

/* 2-column image split */
.media-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 3rem 0;
}
.media-split img {
  width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius-lg);
}
@media (max-width: 640px) {
  .media-split { grid-template-columns: 1fr; }
  .media-split img { height: 240px; }
}

/* 3-column media grid */
.media-grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 3rem 0;
}
.media-grid-3 img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.media-grid-3 img:hover {
  transform: scale(1.02); box-shadow: 0 8px 32px rgba(34,36,40,.14);
}
@media (max-width: 768px) { .media-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .media-grid-3 { grid-template-columns: 1fr; } }

/* Gallery carousel (for 5+ images) */
.gallery-carousel { margin: 3rem 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.gallery-carousel__track {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 4px;
  scroll-behavior: smooth;
}
.gallery-carousel__track::-webkit-scrollbar { display: none; }
.gallery-carousel__slide {
  flex: 0 0 calc(33.333% - 0.667rem); scroll-snap-align: start;
  border-radius: var(--radius-lg); overflow: hidden;
}
.gallery-carousel__slide img {
  width: 100%; height: 280px; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.gallery-carousel__slide:hover img { transform: scale(1.04); }
.gallery-carousel__nav {
  display: flex; justify-content: center; gap: .5rem; margin-top: 1rem;
}
.gallery-carousel__btn {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text); cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: all .2s;
}
.gallery-carousel__btn:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
@media (max-width: 768px) {
  .gallery-carousel__slide { flex: 0 0 calc(50% - .5rem); }
  .gallery-carousel__slide img { height: 220px; }
}
@media (max-width: 480px) {
  .gallery-carousel__slide { flex: 0 0 85%; }
  .gallery-carousel__slide img { height: 200px; }
}

/* Video section */
.page-video { margin: 3rem 0; border-radius: var(--radius-lg); overflow: hidden; position: relative; background: #000; }
.page-video video {
  width: 100%; height: auto; max-height: 540px; object-fit: cover;
  display: block;
}
.page-video--overlay::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(34,36,40,.35) 100%);
  pointer-events: none;
}

/* Inline video beside text */
.media-with-text {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin: 3rem 0;
}
.media-with-text--reverse { direction: rtl; }
.media-with-text--reverse > * { direction: ltr; }
.media-with-text__media { border-radius: var(--radius-lg); overflow: hidden; }
.media-with-text__media video,
.media-with-text__media img { width: 100%; height: 340px; object-fit: cover; display: block; }
@media (max-width: 768px) {
  .media-with-text { grid-template-columns: 1fr; gap: 1.5rem; }
  .media-with-text--reverse { direction: ltr; }
  .media-with-text__media video,
  .media-with-text__media img { height: 240px; }
}

/* ═══════════════════════════════════════════════════════ EQUIPMENT ACCORDION */

.equip-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: .875rem;
}

.equip-item {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.equip-item.open {
  border-color: var(--teal);
  box-shadow: 0 4px 24px rgba(179,145,88,.12);
}
.equip-item__hd {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  text-align: left;
  transition: background .15s;
}
.equip-item__hd:hover { background: var(--surface-alt); }
.equip-item__icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 8px;
  background: var(--teal-pale);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .22s, color .22s;
}
.equip-item.open .equip-item__icon { background: var(--teal); color: #fff; }
.equip-item__title {
  flex: 1; min-width: 0;
  display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
}
.equip-item__title h3 {
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  color: var(--text);
  flex-shrink: 0;
}
.equip-item__cat {
  font-size: .72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .07em;
}
.equip-item__chev {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform .28s var(--ease-out), color .22s;
}
.equip-item.open .equip-item__chev { transform: rotate(180deg); color: var(--teal); }

.equip-item__bd {
  max-height: 0;
  overflow: hidden;
  transition: max-height .42s cubic-bezier(.4,0,.2,1);
}
.equip-item.open .equip-item__bd { max-height: 520px; }

.equip-item__bd-inner {
  padding: 1.1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}
.equip-item__bd-inner > p {
  font-size: var(--fs-sm);
  color: var(--text-mid);
  margin-bottom: 1rem;
  line-height: 1.65;
}
.equip-item__uses { }
.equip-item__uses strong {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--teal);
  margin-bottom: .5rem;
}
.equip-item__uses ul {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.equip-item__uses li {
  font-size: var(--fs-sm);
  color: var(--text-mid);
  padding-left: 1.1rem;
  position: relative;
}
.equip-item__uses li::before {
  content: '';
  position: absolute;
  left: 0; top: .55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal);
  opacity: .7;
}

/* ═══════════════════════════════════════════════════════ ANIMATIONS */

/* ── Subpage hero entrance ─────────────────────────────────────────── */
.page-hero__inner > .breadcrumb { animation: heroIn .55s var(--ease-out) .05s both; }
.page-hero__inner > .label      { animation: heroIn .65s var(--ease-out) .15s both; }
.page-hero__inner > h1          { animation: heroIn .75s var(--ease-out) .25s both; }
.page-hero__inner > .page-hero__lead { animation: heroIn .7s var(--ease-out) .38s both; }

/* ── Card hover lift ───────────────────────────────────────────────── */
.service-card {
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(34,36,40,.10);
}
.consult-card {
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.consult-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(34,36,40,.09);
}
.equip-card {
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.equip-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(34,36,40,.09);
}

/* ── Image hover zoom + lightbox cursor ───────────────────────────── */
.page-media { overflow: hidden; border-radius: var(--radius-lg); }
.page-media > .page-media__img {
  border-radius: var(--radius-lg);
  transition: transform .55s var(--ease-out);
  cursor: zoom-in;
}
.page-media > .page-media__img:hover { transform: scale(1.025); }
.gallery-carousel__slide img { cursor: zoom-in; }

/* ── Section header reveal ─────────────────────────────────────────── */
.section-header { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }

/* ── Lightbox ──────────────────────────────────────────────────────── */
.lbx-overlay {
  position: fixed; inset: 0; z-index: 9990;
  background: rgba(4,8,20,.92);
  backdrop-filter: blur(6px) saturate(1.2);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease-out), visibility .3s;
}
.lbx-overlay.open { opacity: 1; visibility: visible; }
.lbx-inner {
  position: relative;
  display: flex; align-items: center; gap: 1rem;
  max-width: min(92vw, 1100px);
  max-height: 92vh;
}
.lbx-img-wrap {
  display: flex; align-items: center; justify-content: center;
  max-height: 88vh; max-width: 80vw;
}
.lbx-img-wrap img {
  display: block; border-radius: var(--radius-lg);
  max-height: 88vh; max-width: 80vw;
  width: auto; height: auto;
  object-fit: contain;
  box-shadow: 0 32px 80px rgba(34,36,40,.6);
  transform: scale(.93);
  transition: transform .35s var(--ease-out);
}
.lbx-overlay.open .lbx-img-wrap img { transform: none; }
.lbx-close {
  position: fixed; top: 1.25rem; right: 1.25rem;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.18);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s, transform .18s;
  z-index: 9995;
}
.lbx-close:hover { background: rgba(255,255,255,.2); transform: scale(1.08); }
.lbx-nav {
  flex-shrink: 0;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.15);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s, transform .18s;
}
.lbx-nav:hover { background: rgba(255,255,255,.2); }
.lbx-nav:disabled { opacity: .25; pointer-events: none; }
.lbx-counter {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  font-size: var(--fs-xs); color: rgba(255,255,255,.5);
  letter-spacing: .06em;
}

@media (max-width: 640px) {
  .lbx-inner { gap: .5rem; max-width: 96vw; }
  .lbx-img-wrap { max-width: 88vw; }
  .lbx-img-wrap img { max-width: 88vw; }
  .lbx-nav { display: none; }
}
