/* Visual direction: warm paper, deep green, editorial typography. */
:root {
  --ink: #173c42;
  --accent: #315f55;
  --paper: #f7f5ef;
  --muted: #5c6b68;
  --line: #dce3dc;
  --color: #315f55;
}

html { scroll-behavior: smooth; scroll-padding-top: 115px; }
body { font-family: "Manrope", Arial, sans-serif; font-size: 16px; line-height: 1.75; color: var(--ink); background: #fff; }
a { color: var(--accent); text-underline-offset: 0.22em; }
a:hover { color: #1b4038; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #ad7141; outline-offset: 5px; }
.container { max-width: 1200px; padding-inline: 28px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 1100; padding: 12px 20px; color: #fff; background: var(--ink); }
.skip-link:focus { top: 40px; }

#navId { background: #fff; border-bottom: 1px solid var(--line); }
nav .navbar-brand { display: flex; align-items: center; gap: 12px; margin-right: 24px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #b6c8be; border-radius: 50%; font-family: "Lora", Georgia, serif; font-size: 17px; color: var(--accent); }
nav .nav-heading { color: var(--ink); font-family: "Lora", Georgia, serif; font-size: 21px; line-height: 1.15; }
nav .brand-specialty { display: block; margin-top: 4px; font-family: "Manrope", Arial, sans-serif; font-size: 9px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
nav .navbar-nav { gap: 8px; align-items: center; }
nav .nav-link { color: var(--ink); font-size: 12px; font-weight: 600; padding: 9px 8px !important; }
nav .nav-link:hover, nav .navbar-nav .nav-link.active { color: var(--accent); text-decoration: underline; text-underline-offset: 7px; }
nav .nav-booking { background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 5px; padding: 10px 17px !important; margin-left: 8px; }
nav .nav-booking:hover, nav .navbar-nav .nav-booking.active { background: var(--ink); color: #fff; text-decoration: none; }
nav .navbar-toggler, nav .fa-bars { color: var(--ink); }

header.hero-img { height: auto; min-height: 0; padding: 148px 0 0; background: var(--paper); color: var(--ink); overflow: hidden; }
.hero-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 72px; align-items: center; }
header.hero-img .hero-text { display: block; min-height: 0; height: auto; padding: 0 !important; text-align: left; }
.hero-eyebrow { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.hero-text h1 { font-family: "Lora", Georgia, serif; font-size: clamp(54px, 6.2vw, 82px); font-weight: 400; line-height: 1.05; letter-spacing: -0.055em; margin: 0 0 24px; }
.hero-credentials { display: block; margin-bottom: 12px; font-family: "Manrope", Arial, sans-serif; font-size: 16px; font-weight: 500; line-height: 1.5; letter-spacing: 0; color: var(--muted); }
.hero-text h1 em { font-style: normal; color: var(--accent); }
.hero-description { max-width: 470px; color: var(--muted); font-size: 16px; line-height: 1.85; margin: 0 0 28px; }
.hero-actions { justify-content: flex-start; align-items: center; gap: 12px; margin: 0; }
.hero-actions a { display: inline-flex; align-items: center; gap: 25px; padding: 13px 22px; font-size: 13px; font-weight: 600; border-radius: 5px; }
.action-primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.action-secondary { color: var(--ink); background: transparent; border-color: #b7c6bc; }
.hero-actions a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.hero-location { display: flex; align-items: center; gap: 9px; margin-top: 24px; color: var(--muted); font-size: 11px; }
.hero-location > span { font-size: 20px; }
.hero-portrait { width: 100%; max-width: 460px; height: 440px; position: relative; margin: 0 auto; background: #dce5dd; border-radius: 18px; overflow: hidden; }
.hero-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 42% center; }
.hero-portrait figcaption { position: absolute; bottom: 20px; left: 20px; right: 20px; padding: 15px 18px; border-radius: 7px; background: #fff; box-shadow: 0 8px 30px #173c4210; }
.hero-portrait figcaption span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.hero-portrait figcaption strong { display: block; margin-top: 3px; font-size: 12px; font-weight: 600; }
.hero-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 60px; padding-top: 0; padding-bottom: 0; }
.hero-services > a { display: flex; align-items: center; gap: 14px; padding: 25px 22px; text-decoration: none; color: var(--ink); border-top: 1px solid #cdd8cd; transition: background 160ms; }
.hero-services > a + a { border-left: 1px solid #cdd8cd; }
.hero-services > a:hover { background: #e9eee5; }
.hero-services > a > span:last-child { margin-left: auto; font-size: 20px; }
.service-index { color: var(--accent); font-family: "Lora", Georgia, serif; font-size: 20px; }
.hero-services strong { display: block; font-size: 12px; font-weight: 700; }
.hero-services small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.6; }

main > section.py-5 { padding-block: 84px !important; }
.section-title { text-align: left; font-family: "Lora", Georgia, serif; color: var(--ink); font-size: clamp(29px, 3.2vw, 42px); font-weight: 400; letter-spacing: -0.035em; line-height: 1.25; margin-bottom: 18px; }
.section-eyebrow { text-align: left; color: var(--accent); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 14px; }
.section-lead, .clinic-intro, .team-intro { text-align: left; margin: 0 0 36px; max-width: 690px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.underline { display: none; }
.doctor-grid, .visit-grid { gap: 24px; }
.info-panel { padding: 28px; border: 1px solid var(--line); border-radius: 9px; background: #fff; line-height: 1.9; }
.info-panel h3, .surgery-location h3 { font-size: 15px; color: var(--ink); font-weight: 700; }
.info-panel p { font-size: 15px; }
.info-panel a { font-size: 12px; color: var(--accent); }
.doctor-section .info-panel { background: var(--paper); border-color: transparent; }
.doctor-section a, .visit-section a, .patient-grid a, .team-card a, .team-details summary { color: var(--accent); }
.doctor-biography { padding: 24px 0 0; border-top-color: var(--line); }
.clinical-source { font-size: 11px !important; color: var(--muted); }
.clinical-source a { font-size: inherit; }

.clinic-section.home-hero { background: var(--ink); color: #fff; background-image: none; }
.clinic-section .section-title { color: #fff; }
.clinic-section .clinic-intro { color: #d0dfd9; }
.clinic-section .home-hero-item { text-align: left !important; padding: 10px 28px 5px 12px; }
.clinic-section .home-hero-item + .home-hero-item { border-left: 1px solid #49636a; padding-left: 28px; }
.clinic-section .home-hero-item i { font-size: 24px; color: #b4c7b0; }
.clinic-section .home-hero-item .home-hero-title { font-size: 17px; color: #fff; }
.clinic-section .home-hero-text { font-size: 13px; line-height: 1.9; color: #d0dfd9; }
.clinic-section .clinic-link { color: #fff; font-size: 12px; }
#zespol.team-section { background: var(--paper) !important; border: 0; }
.team-group-title { font-family: "Lora", Georgia, serif; font-size: 23px; font-weight: 400; margin: 30px 0 22px; }
.team-card { border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 9px; padding: 26px; font-size: 14px; line-height: 1.9; }
.team-card h4 { font-size: 15px; }
.team-card .team-role { font-size: 11px; color: var(--muted); }
.team-card-heading { align-items: center; }
.team-details { border-color: var(--line); }
.team-details summary { font-size: 12px; }
.team-registration { background: #e2eade; border-radius: 8px; }
.team-registration a { color: var(--accent); }
.price-groups { gap: 22px; }
.price-group { background: #fff; border-color: var(--line); padding: 26px; border-radius: 9px; }
.price-group h3, .prices-hero h3 { color: var(--ink); font-weight: 700; }
.price-description { color: var(--muted); font-size: 13px; }
.price-row { border-color: var(--line); font-size: 14px; }
.price-row dd { color: var(--accent); font-size: 17px; }
.price-note { color: var(--muted); font-size: 12px; }
.patients { background: var(--paper); }
.patient-grid { gap: 22px; }
.patient-grid a { font-size: 12px; }
.patient-checklist { font-size: 13px; }
.surgery-location { border-color: var(--line); }
.surgery-location p { color: var(--muted); font-size: 13px; }

.reviews-section { background: #fff; }
.reviews-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.reviews-section .section-lead { margin-bottom: 0; }
.google-review-link { display: flex; flex-direction: column; gap: 10px; padding: 28px 32px; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; text-decoration: none; color: var(--ink); }
.google-review-link:hover { background: #eaf0e7; color: var(--ink); }
.google-review-label { color: var(--accent); font-size: 12px; font-weight: 700; }
.google-review-link > strong { font-family: "Lora", Georgia, serif; font-size: 25px; font-weight: 400; line-height: 1.4; }
.google-review-link > strong > span { display: inline-block; margin-left: 10px; }
.google-review-note { font-size: 11px; line-height: 1.8; color: var(--muted); }
.google-review-link > .google-rating { font-size: 46px; font-family: "Lora", Georgia, serif; font-weight: 400; }
.rating-out-of { font-family: "Manrope", Arial, sans-serif; font-size: 15px; color: var(--muted); }
.google-review-action { color: var(--accent); font-size: 13px; font-weight: 600; }
.google-stars { color: #aa6a19; letter-spacing: 3px; }
.review-strip { margin-top: 38px; }
.review-strip-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.review-strip-toolbar p { margin: 0; font-size: 12px; color: var(--muted); }
.review-navigation { display: flex; gap: 8px; }
.review-navigation[hidden] { display: none; }
.review-navigation button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #b7c6bc; border-radius: 50%; background: #fff; color: var(--accent); font-size: 22px; }
.review-navigation button:hover { background: var(--paper); }
.review-marquee { overflow-x: auto; padding: 8px 0 15px; }
.review-track { display: flex; width: max-content; }
.review-group { display: flex; align-items: stretch; gap: 22px; width: max-content; margin: 0; padding: 0 22px 0 0; list-style: none; }
.review-group[aria-hidden="true"] { display: none; }
.review-card { flex: 0 0 auto; width: clamp(260px, 75vw, 330px); padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.review-card figure { display: flex; flex-direction: column; min-height: 220px; height: 100%; margin: 0; }
.review-platform { font-size: 10px; color: var(--accent); font-weight: 700; letter-spacing: 0.04em; }
.review-card blockquote { flex: 1; margin: 20px 0 25px; }
.review-card blockquote p { font: 400 23px/1.6 "Lora", Georgia, serif; margin: 0; }
.review-card figcaption strong { display: block; font-size: 13px; font-weight: 700; }
.review-card figcaption a { display: inline-block; margin-top: 7px; color: var(--muted); font-size: 10px; }
.review-strip[data-animated="true"] .review-marquee { overflow-x: hidden; touch-action: pan-y; cursor: grab; mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent); }
.review-strip[data-animated="true"] .review-group[aria-hidden="true"] { display: flex; }
.review-strip[data-animated="true"] .review-track { animation: review-drift var(--review-duration, 45s) linear infinite; }
.review-strip[data-dragging="true"] .review-track, .review-strip:focus-within .review-track { animation-play-state: paused; }
.review-strip[data-dragging="true"] .review-marquee { cursor: grabbing; user-select: none; }
@media (hover: hover) { .review-strip:hover .review-track { animation-play-state: paused; } }
@keyframes review-drift { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--review-distance, 1056px))); } }
.faq-list { max-width: 900px; }
.faq-item { border-bottom: 1px solid #cdd8cd; padding: 22px 0; }
.faq-item:first-child { border-top: 1px solid #cdd8cd; }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; line-height: 1.7; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: 0 0 24px; font-size: 24px; font-weight: 400; color: var(--accent); }
.faq-item[open] summary::after { content: "−"; }
.faq-item > p { color: var(--muted); max-width: 740px; font-size: 14px; margin: 18px 0 12px; }
.faq-item > a { font-size: 12px; }
.visit-section { background: #e7eee8; }
.registration-phones { display: grid; gap: 18px; }
.registration-phone + .registration-phone { padding-top: 18px; border-top: 1px solid var(--line); }
.registration-phone p { margin: 0; }
.visit-section .registration-number { font-family: "Manrope", Arial, sans-serif; font-size: clamp(20px, 2.1vw, 28px); font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
.visit-schedule, .visit-emergency { border-color: var(--line); }
.clinic-map { border-radius: 7px; }
footer.bg-dark { background: var(--ink) !important; font-size: 11px; }
footer a { color: #d7e4d6; }

.cookie-notification { max-width: 470px; right: auto; left: 20px; bottom: 20px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); text-align: left; font-size: 11px; line-height: 1.8; box-shadow: 0 10px 45px #173c4220; }
.cookie-notification p { display: block; }
.cookie-notification .cookie-button { background: var(--accent); padding: 9px 18px; margin: 12px 0 0 !important; font-size: 11px; border-radius: 5px; }

@media (max-width: 1199px) {
  nav .navbar-nav { align-items: stretch; padding-block: 15px; gap: 3px; }
  nav .nav-link { font-size: 14px; padding: 10px 4px !important; }
  nav .nav-booking { width: fit-content; margin: 8px 0 0; padding: 10px 18px !important; }
  .hero-layout { gap: 36px; }
  .hero-portrait { max-width: 390px; height: 420px; }
  .hero-services > a { padding-inline: 14px; gap: 10px; }
  .hero-services small { font-size: 9px; }
}
@media (max-width: 767px) {
  .container { padding-inline: 22px; }
  nav .navbar-brand { gap: 9px; margin-right: 0; }
  nav .nav-heading { font-size: 18px; }
  nav .brand-specialty { font-size: 8px; letter-spacing: 0.04em; }
  .brand-mark { width: 34px; height: 34px; font-size: 14px; }
  nav .navbar-toggler { padding: 8px 4px; }
  header.hero-img { padding-top: 140px; }
  .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .hero-eyebrow { font-size: 9px; letter-spacing: 0.08em; margin-bottom: 16px; }
  .hero-text h1 { font-size: clamp(47px, 13vw, 65px); letter-spacing: -0.055em; }
  .hero-credentials { font-size: 14px; }
  .hero-description { font-size: 14px; }
  .hero-actions { gap: 8px; }
  .hero-actions a { padding: 12px 15px; gap: 10px; font-size: 12px; }
  .hero-location { font-size: 10px; margin-top: 18px; }
  .hero-portrait { max-width: 390px; height: 350px; }
  .hero-portrait figcaption { left: 16px; right: 16px; bottom: 16px; padding: 12px 16px; }
  .hero-services { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
  .hero-services > a { padding: 20px 0; }
  .hero-services > a + a { border-left: 0; }
  .hero-services small { font-size: 10px; }
  main > section.py-5 { padding-block: 58px !important; }
  .section-title { font-size: 30px; }
  .section-lead, .clinic-intro, .team-intro { font-size: 14px; margin-bottom: 28px; }
  .info-panel, .team-card, .price-group { padding: 22px; }
  .clinic-section .home-hero-item, .clinic-section .home-hero-item + .home-hero-item { border-left: 0; padding: 16px 12px; }
  .clinic-section .home-hero-item + .home-hero-item { border-top: 1px solid #49636a; }
  .reviews-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .google-review-link { padding: 24px; }
  .google-review-link > strong { font-size: 23px; }
  .faq-item summary { font-size: 14px; gap: 14px; }
  .cookie-notification { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Analytics consent controls */
.cookie-notification h2 {font-size:16px;margin:0 0 10px;color:var(--ink);}
.cookie-notification[hidden] {display:none!important;}
.analytics-actions {display:flex;gap:10px;flex-wrap:wrap;margin-top:14px;}
.cookie-notification .analytics-actions .cookie-button {flex:1;margin:0!important;border:1px solid var(--accent);padding:10px 12px;white-space:nowrap;}
.analytics-details {margin-top:8px;}
.analytics-details summary {cursor:pointer;text-decoration:underline;}
.analytics-details p {margin-top:8px;}
.analytics-settings {font:inherit;font-size:12px;color:inherit;background:transparent;border:1px solid currentColor;border-radius:4px;padding:6px 12px;}
.cookie-notification {max-height:85vh;overflow:auto;}
