/*
Theme Name: Hipokrates
Theme URI: https://smartecommerce.pl
Author: Emil Jaromin - Smart E-Commerce Solutions
Author URI: https://smartecommerce.pl
Description: Custom theme for Centrum Medyczne Hipokrates w Węgrowie. Redesigned with custom CSS.
Version: 2.0.0
License: Proprietary
Text Domain: hipokrates
*/

/* ===== HIPOKRATES REDESIGN - CSS ===== */

/* --- Reset & Variables --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1688D5;
  --primary-dark: #106BA8;
  --primary-light: #5AB2F0;
  --accent: #1688D5;
  --ice: #F0F7FF;
  --light-blue: #E8F4FD;
  --white: #FFFFFF;
  --grey-50: #F8FAFC;
  --grey-100: #F1F5F9;
  --grey-400: #94A3B8;
  --grey-500: #64748B;
  --grey-700: #334155;
  --grey-900: #0F172A;
  --shadow-sm: 0 1px 3px rgba(22, 136, 213, 0.08);
  --shadow-md: 0 4px 20px rgba(22, 136, 213, 0.12);
  --shadow-lg: 0 10px 40px rgba(22, 136, 213, 0.15);
  --shadow-xl: 0 20px 60px rgba(22, 136, 213, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--grey-700);
  background: var(--white);
  line-height: 1.7;
  overflow-x: clip;
}

h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--primary-dark);
  line-height: 1.3;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* TURA3 DISABLED: .animate { */
/* TURA3 DISABLED:   opacity: 0; */
/* TURA3 DISABLED:   transform: translateY(30px); */
/* TURA3 DISABLED:   transition: opacity 0.35s ease, transform 0.35s ease; */
/* TURA3 DISABLED: } */
/* TURA3 DISABLED:  */
/* TURA3 DISABLED: .animate.visible { */
/* TURA3 DISABLED:   opacity: 1; */
/* TURA3 DISABLED:   transform: translateY(0); */
/* TURA3 DISABLED: } */

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

/* --- Top Bar --- */
.top-bar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  padding: 8px 0;
  letter-spacing: 0.3px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-item svg {
  width: 14px;
  height: 14px;
  fill: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.top-bar-item a {
  color: rgba(255, 255, 255, 0.9);
}

.top-bar-item a:hover {
  color: #fff;
}

/* --- Komunikat Banner --- */
.komunikat-banner {
  background: #f59e0b;
  color: #fff;
  text-align: center;
  padding: 8px 24px;
  font-size: 0.85rem;
  font-weight: 500;
}

.komunikat-banner p {
  margin: 0;
  color: #fff;
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(30, 95, 173, 0.08);
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  transition: height 0.3s ease;
}

.header.scrolled .container {
  height: 72px;
}

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

.logo-img {
  height: 56px;
  width: auto;
  transition: var(--transition);
}

/* WP custom-logo support */
.custom-logo-link {
  display: flex;
  align-items: center;
}

.custom-logo-link img {
  height: 56px;
  width: auto;
}

.header.scrolled .logo-img,
.header.scrolled .custom-logo-link img {
  height: 44px;
}

.logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--primary);
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Top-level nav links (direct children only) */
.nav > a,
.nav > .nav-item > a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #005BC4;
  padding: 8px 14px;
  letter-spacing: 0.5px;
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
  text-transform: uppercase;
}

.nav > a:hover,
.nav > .nav-item > a:hover {
  color: var(--primary);
  background: var(--ice);
}

.nav > a.current-menu-item {
  color: var(--primary);
  background: var(--light-blue);
}

/* --- Dropdown Menu --- */
.nav-item {
  position: relative;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-item > a .dropdown-arrow {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.nav-item:hover > a .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(22, 136, 213, 0.08);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Bridge gap between trigger and dropdown */
.nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--grey-700);
  border-radius: 6px;
  white-space: nowrap;
  transition: var(--transition);
}

.nav-dropdown a:hover {
  background: var(--ice);
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: white;
  box-shadow: 0 4px 15px rgba(22, 136, 213, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(22, 136, 213, 0.4);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.nav-cta {
  font-size: 0.85rem;
  padding: 10px 24px;
  white-space: nowrap;
  margin-left: 8px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary-dark);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 90vh;
  margin-top: -88px;
  padding-top: 88px;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--white) 0%, var(--ice) 30%, var(--light-blue) 60%, #D0E8FF 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(22, 136, 213, 0.08) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--white), transparent);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(22, 136, 213, 0.08);
  color: var(--accent);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 1.15rem;
  color: var(--grey-500);
  margin-bottom: 16px;
  max-width: 540px;
}

.hero-services {
  display: flex;
  gap: 24px;
  margin: 28px 0 36px;
  flex-wrap: wrap;
}

.hero-services span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--grey-700);
  font-weight: 500;
}

.hero-services svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 550px;
  height: 550px;
  z-index: 1;
}

.hero-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(22, 136, 213, 0.06), rgba(90, 178, 240, 0.12));
  border: 2px solid rgba(22, 136, 213, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.9;
}

.hero-circle::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(22, 136, 213, 0.06);
  animation: pulse 4s ease-in-out infinite;
}

.hero-circle::after {
  content: '';
  position: absolute;
  inset: -50px;
  border-radius: 50%;
  border: 1px solid rgba(22, 136, 213, 0.03);
  animation: pulse 4s ease-in-out infinite 1s;
}

/* --- Hero Background Logo --- */
.hero-bg-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 900px;
  height: auto;
  opacity: 0.04;
  z-index: 0;
  pointer-events: none;
  filter: grayscale(1);
}

/* --- Sections --- */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--ice);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--grey-500);
  font-size: 1.05rem;
}

.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  border-radius: 3px;
  margin: 16px auto 0;
}

/* --- Trust / Why Us --- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.trust-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(30, 95, 173, 0.06);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.trust-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.trust-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.trust-card:hover::before {
  transform: scaleX(1);
}

.trust-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--light-blue), var(--ice));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.trust-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--accent);
}

.trust-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--primary-dark);
}

.trust-card p {
  font-size: 0.95rem;
  color: var(--grey-500);
}

/* --- Services --- */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.services-grid .service-card {
  flex: 0 0 calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
}

.service-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(30, 95, 173, 0.06);
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(22, 136, 213, 0.15);
}

.service-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--light-blue), var(--ice));
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--accent);
}

.service-card h3 {
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--grey-500);
}

.service-nfz-badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(22, 136, 213, 0.1);
  color: var(--accent);
  padding: 2px 10px;
  border-radius: 50px;
}

/* --- Specialists --- */
/* Tabs */
.tabs-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 28px;
  border-radius: 50px;
  background: var(--grey-100);
  border: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--grey-500);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.tab-btn:hover {
  background: var(--light-blue);
  color: var(--primary);
}

.tab-btn.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(22, 136, 213, 0.3);
}

/* Slider */
.slider-container {
  position: relative;
  overflow: hidden;
  padding: 20px 0 40px;
  margin: 0 -24px;
  width: calc(100% + 48px);
}

.slider-track {
  display: flex;
  gap: 32px;
  padding: 10px 24px 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.specialist-card {
  flex: 0 0 340px;
  scroll-snap-align: center;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(30, 95, 173, 0.06);
  transition: var(--transition);
}

.specialist-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.specialist-photo {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--light-blue), #D0E8FF);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.specialist-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.specialist-photo svg {
  width: 80px;
  height: 80px;
  fill: var(--primary-light);
  opacity: 0.4;
}

.specialist-photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--white), transparent);
}

.specialist-info {
  padding: 24px 28px 28px;
}

.specialist-info h3 {
  font-size: 1.15rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.specialist-info .specialty {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: block;
}

.specialist-info p {
  font-size: 0.9rem;
  color: var(--grey-500);
}

/* Slider Navigation */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.slider-btn:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(22, 136, 213, 0.3);
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

/* --- Gallery --- */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.gallery-grid .gallery-item {
  flex: 0 0 calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--light-blue), #D0E8FF);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.gallery-item svg {
  width: 48px;
  height: 48px;
  fill: var(--primary-light);
  opacity: 0.3;
}

.gallery-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
}

/* --- Contact --- */
.contact-section {
  background: linear-gradient(160deg, var(--ice) 0%, var(--light-blue) 50%, #D0E8FF 100%);
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(22, 136, 213, 0.2), transparent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-cta {
  text-align: center;
  padding: 48px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.contact-cta h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.contact-cta p {
  color: var(--grey-500);
  margin-bottom: 28px;
}

.contact-cta-icon {
  margin: 0 auto 20px;
  opacity: 0.15;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contact-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--light-blue), var(--ice));
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--accent);
}

.contact-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--grey-400);
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  font-size: 1rem;
  color: var(--primary-dark);
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--accent);
}

/* --- Page Hero --- */
.page-hero {
  background: linear-gradient(160deg, var(--white) 0%, var(--ice) 40%, var(--light-blue) 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--white), transparent);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary-dark);
  margin: 0;
}

/* --- Page Content --- */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  color: var(--grey-700);
  line-height: 1.8;
  font-size: 1.05rem;
}

.page-content h2 {
  font-size: 1.6rem;
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--light-blue);
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  font-size: 1.2rem;
  margin: 32px 0 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.page-content p {
  margin-bottom: 16px;
  color: var(--grey-700);
}

.page-content ul,
.page-content ol {
  margin: 16px 0 24px;
  padding-left: 0;
  list-style: none;
}

.page-content ul li,
.page-content ol li {
  position: relative;
  padding: 10px 0 10px 32px;
  border-bottom: 1px solid var(--grey-100);
}

.page-content ul li:last-child,
.page-content ol li:last-child {
  border-bottom: none;
}

.page-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.page-content ol {
  counter-reset: list-counter;
}

.page-content ol li {
  counter-increment: list-counter;
}

.page-content ol li::before {
  content: counter(list-counter);
  position: absolute;
  left: 0;
  top: 10px;
  width: 24px;
  height: 24px;
  background: var(--light-blue);
  color: var(--primary);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
}

.page-content strong {
  color: var(--primary-dark);
  font-weight: 600;
}

.page-content a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(22, 136, 213, 0.3);
  text-underline-offset: 3px;
  transition: var(--transition);
}

.page-content a:hover {
  color: var(--primary-dark);
  text-decoration-color: var(--primary);
}

.page-content iframe {
  margin-top: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.page-content hr {
  border: none;
  border-top: 2px solid var(--light-blue);
  margin: 40px 0;
}

/* --- Footer --- */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-logo .logo-text {
  color: white;
  font-size: 1.1rem;
}

.footer-logo svg {
  fill: white;
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-visual {
    display: none;
  }

  .hero-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .nav-cta.desktop-only {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item::after {
    display: none;
  }

  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    min-width: auto;
    background: transparent;
  }

  .nav-dropdown a {
    font-size: 0.85rem;
    color: var(--grey-500);
    padding: 6px 16px;
  }

  .nav-item > a .dropdown-arrow {
    display: none;
  }

  .nav > a,
  .nav > .nav-item > a {
    padding: 10px 16px;
    width: 100%;
  }

  .nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    gap: 16px;
    z-index: 999;
  }

  .trust-grid,
  .specialists-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid .gallery-item {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .services-grid .service-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero {
    min-height: 70vh;
  }

  .section {
    padding: 60px 0;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-services {
    flex-direction: column;
    gap: 12px;
  }

  .top-bar .container {
    justify-content: center;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .slider-btn {
    display: none;
  }

  .page-hero {
    padding: 48px 0 40px;
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }

  .page-content h2 {
    font-size: 1.3rem;
    margin: 32px 0 16px;
  }

  /* Single lekarz - stack vertically */
  .trust-card > div[style*="display: flex"] {
    flex-direction: column;
  }

  .trust-card > div > div[style*="flex: 0 0 300px"] {
    flex: 0 0 auto !important;
    min-height: 250px !important;
  }

  /* Cookie banner mobile */
  #cookie-banner > div {
    flex-direction: column;
    text-align: center;
  }

  #cookie-banner > div > div:last-child {
    justify-content: center;
    width: 100%;
  }
}

/* === Team panels (Poprawki Tura 1 - 2026-04-09) === */
.team-panels { position: relative; }
.team-panel { display: none; }
.team-panel.active { display: block; }
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 32px;
}
.team-grid .specialist-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--white);
    border-radius: 16px;
    padding: 32px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.team-grid .specialist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(22,136,213,0.12);
}

/* Top bar Gabinety Prywatne button */
.top-bar-prywatne {
    margin-left: auto;
}
.top-bar-prywatne a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}
.top-bar-prywatne a:hover {
    background: var(--primary-dark);
}

/* Kafelki uslug - linkowanie */
.service-card a {
    text-decoration: none;
    color: inherit;
}

/* Ikonografiki programow */
.programs-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 48px;
    padding: 32px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.programs-bar .program-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--grey-600);
    white-space: nowrap;
}
.programs-bar .program-item svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* Mobile hero image fix */
@media (max-width: 768px) {
    .hero-visual {
        display: block !important;
        position: relative;
        width: 100%;
        margin-top: 24px;
    }
    .hero-circle {
        width: 220px;
        height: 220px;
        margin: 0 auto;
    }
    .hero-circle::before,
    .hero-circle::after {
        display: none;
    }
    /* Mobile footer two columns */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }
    /* Slider scroll indicator */
    .slider-container::after {
        content: '\2192 Przewiń';
        display: block;
        text-align: center;
        color: var(--grey-400);
        font-size: 0.85rem;
        margin-top: 12px;
        animation: pulseArrow 2s ease infinite;
    }
    @keyframes pulseArrow {
        0%, 100% { opacity: 0.5; }
        50% { opacity: 1; }
    }
}

/* === Cennik Accordion (Poprawki Tura 1 - 2026-04-09) === */
.cennik-accordion {
    border: 1px solid var(--grey-100);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--white);
}
.cennik-accordion-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--grey-800);
    transition: background 0.2s;
}
.cennik-accordion-btn span {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cennik-accordion-btn:hover {
    background: var(--grey-50);
}
.accordion-chevron {
    transition: transform 0.3s;
}
.cennik-accordion.open .accordion-chevron {
    transform: rotate(180deg);
}
.cennik-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.cennik-accordion.open .cennik-accordion-content {
    max-height: 2000px;
}
.cennik-accordion-content .cennik-table {
    margin: 0 24px 18px;
}

/* Fizjoterapia button fix - biały tekst (Poprawka 2026-04-09) */
.service-card a .btn,
.page-content .btn.btn-primary {
    color: #fff !important;
}

/* #002 Hero alignment - tekst do lewej (Poprawka 2026-04-09) */
.hero .container {
    text-align: left;
}
.hero-content {
    text-align: left;
    align-items: flex-start;
}
.hero-content h1 {
    text-align: left;
}
.hero-services {
    justify-content: flex-start;
}

/* #030 Mobile menu - rozwijane sekcje (Poprawka 2026-04-09) */
@media (max-width: 768px) {
    .nav .nav-item > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .nav .nav-dropdown {
        display: none;
        flex-direction: column;
        position: static;
        box-shadow: none;
        border: none;
        background: var(--grey-50);
        border-radius: 8px;
        margin: 4px 0 8px;
        padding: 4px 0;
    }
    .nav .nav-item.mobile-open .nav-dropdown {
        display: flex;
    }
    .nav .nav-item.mobile-open .dropdown-arrow {
        transform: rotate(180deg);
    }
    .nav .dropdown-arrow {
        transition: transform 0.3s;
    }
}

/* Fix: cennik accordion icon size */
.cennik-accordion-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Fix: wyrównanie kart usług - equal height (Poprawka 2026-04-10) */
.services-grid {
    align-items: stretch;
}
.services-grid .service-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    min-height: 120px;
    opacity: 1 !important;
    transform: none !important;
}
.services-grid .service-card .service-icon {
    flex-shrink: 0;
}


.team-grid .specialist-photo {
    width: 200px;
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--ice);
    display: flex;
    align-items: center;
    justify-content: center;
}
.team-grid .specialist-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-grid .specialist-photo svg {
    width: 80px;
    height: 80px;
    fill: var(--primary-light);
    opacity: 0.4;
}
.team-grid .specialist-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 4px;
}
.team-grid .specialist-info .specialty {
    font-size: 0.82rem;
    color: var(--grey-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Fix: sekcja specjalistow i taby zawsze widoczne */
#specjalisci .section-header,
#specjalisci .tabs-container,
#specjalisci .team-panels,
#specjalisci .animate {
    opacity: 1 !important;
    transform: none !important;
}

/* Fix: team grid cards visibility */
.team-panel .team-grid .specialist-card {
    opacity: 1 !important;
    transform: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}



/* Karty lekarzy na stronie glownej - identyczne jak w /zespol/ (2026-04-10) */
#specjalisci .specialist-card,
.team-grid .specialist-card,
.team-panel .specialist-card {
    background: var(--white) !important;
    box-shadow: 0 1px 3px rgba(22,136,213,0.08) !important;
    padding: 0 !important;
    border-radius: 16px !important;
    text-decoration: none;
    color: inherit;
    flex: none;
    width: auto;
    overflow: hidden;
}
#specjalisci .specialist-card:hover,
.team-grid .specialist-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(22,136,213,0.12) !important;
}
#specjalisci .specialist-photo,
.team-grid .specialist-photo,
.team-panel .specialist-photo {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    border-radius: 0 !important;
    overflow: hidden;
    background: var(--ice) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0 !important;
}
#specjalisci .specialist-photo img,
.team-grid .specialist-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#specjalisci .specialist-info,
.team-grid .specialist-info,
.team-panel .specialist-info {
    padding: 16px 20px;
    text-align: center;
}

/* Baner promujacy (2026-04-10) */
.promo-banner {
    padding: 24px 0;
}
.promo-banner-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 32px;
    background: linear-gradient(135deg, var(--ice) 0%, #e8f4fd 100%);
    border: 1px solid rgba(22,136,213,0.12);
    border-radius: 16px;
    flex-wrap: wrap;
}
.promo-banner-icon {
    flex-shrink: 0;
}
.promo-banner-content {
    flex: 1;
    min-width: 200px;
}
.promo-banner-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}
.promo-banner-content p {
    color: var(--grey-600);
    font-size: 0.9rem;
    margin: 0;
}
@media (max-width: 768px) {
    .promo-banner-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Breadcrumbs (2026-04-10) */
.breadcrumbs {
    background: var(--ice);
    padding: 10px 0;
    font-size: 0.82rem;
    color: var(--grey-500);
}
.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs-sep {
    margin: 0 8px;
    color: var(--grey-300);
}

/* === TURA 2 POPRAWKI - 2026-04-16 === */

/* B1: Tytul Gabinety Prywatne wiekszy */
.top-bar-prywatne a {
    font-size: 0.95rem;
    padding: 8px 20px;
}

/* B3: Button GP bardziej kontrastowy */
.top-bar-prywatne a {
    background: #e8a024;
    color: #fff;
}
.top-bar-prywatne a:hover {
    background: #d4911a;
}

/* B4: 4 kafelki zamiast 6 - 4 kolumny */
.front-page .services-grid .service-card,
.home .services-grid .service-card {
    flex: 0 0 calc(25% - 15px) !important;
    max-width: calc(25% - 15px) !important;
}
#uslugi .services-grid .service-card {
    flex: 0 0 calc(25% - 15px) !important;
    max-width: calc(25% - 15px) !important;
}

/* E1: Hero mobile - fix layout (Tura 2 v2) */
@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }
    .hero .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-content {
        text-align: center;
        align-items: center;
        max-width: 100%;
        position: relative;
        z-index: 2;
    }
    .hero-visual {
        position: relative !important;
        opacity: 1 !important;
        animation: none !important;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 0.95rem;
    }
    .hero-services {
        justify-content: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-badge {
        justify-content: center;
    }
    .hero-bg-logo {
        display: none;
    }
}

/* E2: Specjalisci mobile - slider horizontal */
@media (max-width: 768px) {
    .team-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding-bottom: 16px;
    }
    .team-grid .specialist-card {
        flex: 0 0 200px;
        scroll-snap-align: start;
    }
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

/* E3: Menu mobile - dropdowns fix */
@media (max-width: 768px) {
    .nav-dropdown {
        display: none;
    }
    .nav-item.mobile-open .nav-dropdown {
        display: flex;
        flex-direction: column;
    }
    .nav-item > a .dropdown-arrow {
        display: inline-block !important;
        width: 20px;
        height: 20px;
        transition: transform 0.2s ease;
    }
    .nav-item.mobile-open > a .dropdown-arrow {
        transform: rotate(180deg);
    }
}

/* E4: Stopka mobile - kompresja 30-40% */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .footer h4 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    .footer p, .footer a, .footer li {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    .footer-logo img {
        max-height: 40px;
    }
}

/* E5: Szybsze animacje */
.animate {
    transition: opacity 0.4s ease, transform 0.4s ease !important;
}
.delay-1 { transition-delay: 0.05s !important; }
.delay-2 { transition-delay: 0.1s !important; }
.delay-3 { transition-delay: 0.15s !important; }
.delay-4 { transition-delay: 0.2s !important; }

/* Specialist card placeholder for missing photos */
.specialist-photo svg {
    width: 60px;
    height: 60px;
    fill: var(--grey-300);
}

/* C4: Slider nawigacja na stronie Zespol */
.team-slider-container {
    position: relative;
}
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: var(--transition);
    color: var(--primary);
}
.slider-nav:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.slider-prev { left: -22px; }
.slider-next { right: -22px; }

@media (max-width: 768px) {
    .slider-nav { display: none; }
}

/* Scrollbar ukryty ale funkcjonalny */
.team-slider-container > div::-webkit-scrollbar {
    height: 4px;
}
.team-slider-container > div::-webkit-scrollbar-track {
    background: var(--grey-100);
    border-radius: 4px;
}
.team-slider-container > div::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

/* C6: Formularz e-recept - stylowanie */
.erecept-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 8px;
}
@media (max-width: 768px) {
    .erecept-form .form-row {
        grid-template-columns: 1fr;
    }
}
.erecept-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-dark);
    margin: 12px 0 4px;
}
.erecept-form input[type="text"],
.erecept-form input[type="email"],
.erecept-form input[type="tel"],
.erecept-form select,
.erecept-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}
.erecept-form input:focus,
.erecept-form select:focus,
.erecept-form textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 136, 213, 0.1);
}
.erecept-form textarea {
    min-height: 80px;
}
.erecept-form input[type="submit"] {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: background 0.3s;
}
.erecept-form input[type="submit"]:hover {
    background: var(--primary-dark);
}

/* TURA3 2026-04-20: Hero rounded rectangle desktop only */
@media (min-width: 769px) {
  .hero-visual {
    width: 550px !important;
    height: 440px !important;
  }
  .hero-circle {
    border-radius: 28px !important;
  }
  .hero-circle img {
    border-radius: 28px !important;
    object-position: right center !important;
  }
  .hero-circle::before {
    border-radius: 28px !important;
  }
}

/* TURA3 2026-04-20: Formularz e-Wizyty - redesign wg Adama */
.wpcf7 .form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
}
.wpcf7 .form-col {
  display: flex;
  flex-direction: column;
}
.wpcf7 label {
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--grey-700);
  display: block;
}
.wpcf7 input[type=text],
.wpcf7 input[type=email],
.wpcf7 input[type=tel],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 14px 18px !important;
  font-size: 1rem !important;
  border: 1.5px solid var(--grey-200) !important;
  border-radius: 10px !important;
  background: #fff;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: var(--primary) !important;
  outline: none;
}
.wpcf7 textarea {
  min-height: 120px;
  font-family: inherit;
}
.wpcf7 .btn-submit-big {
  background: var(--primary) !important;
  color: #fff !important;
  border: none !important;
  padding: 16px 40px !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
  cursor: pointer;
  margin-top: 12px;
  box-shadow: 0 4px 16px rgba(22, 136, 213, 0.25);
  transition: all 0.2s;
}
.wpcf7 .btn-submit-big:hover {
  background: #0f6dbf !important;
  box-shadow: 0 6px 20px rgba(22, 136, 213, 0.35);
  transform: translateY(-1px);
}
@media (max-width: 640px) {
  .wpcf7 .form-row-2col { grid-template-columns: 1fr; }
}

/* TURA3 2026-04-20: Mobile hero overflow fix - wymuszenie pełnej szerokości w flex containerze */
@media (max-width: 768px) {
  .hero-visual {
    width: 100% !important;
    flex: 1 1 100% !important;
    min-width: 0 !important;
  }
  .hero-circle {
    width: 100% !important;
    max-width: 320px;
    height: 240px !important;
    margin: 0 auto !important;
    border-radius: 20px !important;
  }
  .hero-circle img {
    border-radius: 20px !important;
    object-position: center center !important;
  }
}

/* TURA3 2026-04-20: Fix horizontal overflow na mobile - biały margines po prawej */
html, body {
  overflow-x: clip !important;
  max-width: 100%;
}
@media (max-width: 768px) {
  .team-panel .team-grid,
  .slider-container,
  .team-slider-container {
    max-width: 100%;
    overflow-x: auto;
  }
}

/* TURA3 2026-04-20: Mobile kafelki - ściśnięta harmonijka fix (Adam) */
@media (max-width: 768px) {
  .front-page .services-grid .service-card,
  .home .services-grid .service-card,
  #uslugi .services-grid .service-card {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .services-grid {
    gap: 16px !important;
  }
  .service-card h3 {
    font-size: 0.95rem !important;
  }
  .service-card p {
    font-size: 0.82rem !important;
  }
}

/* TURA3 2026-04-20: Mobile slider hint - wskaźnik przewijania */
@media (max-width: 768px) {
  .team-panel .team-grid::before {
    content: '← przewiń palcem →';
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: var(--grey-500);
    padding: 8px 0;
    letter-spacing: 0.05em;
    font-weight: 500;
  }
}






/* HERO-2COL-CIRCLE-2026-04-21: koło + pulsująca obwódka + delikatny gradient */
.hero {
  display: block !important;
  position: relative;
  min-height: auto !important;
  padding: 80px 0 120px !important;
  margin-top: -88px !important;
  padding-top: 168px !important;
  overflow: hidden !important;
}
/* Radial blue glow za zdjęciem (mockup) */
.hero::before {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  top: -50% !important;
  right: -30% !important;
  width: 80% !important;
  height: 200% !important;
  background: radial-gradient(ellipse, rgba(22, 136, 213, 0.08) 0%, transparent 70%) !important;
  animation: float 8s ease-in-out infinite !important;
  pointer-events: none !important;
  z-index: 0 !important;
}
/* Delikatne przejście hero → biała sekcja pod spodem */
.hero::after {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 120px !important;
  background: linear-gradient(to top, var(--white), transparent) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.hero > .container {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 60px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  position: relative !important;
  z-index: 2 !important;
}
.hero .hero-content {
  flex: 1 1 50% !important;
  max-width: 560px !important;
  margin: 0 !important;
}
.hero .hero-visual {
  position: static !important;
  flex: 1 1 50% !important;
  width: auto !important;
  max-width: 550px !important;
  height: 550px !important;
  right: auto !important; top: auto !important; left: auto !important;
  transform: none !important;
  margin: 0 !important;
}
.hero .hero-circle {
  width: 100% !important;
  max-width: 500px !important;
  height: 500px !important;
  margin: 0 auto !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, rgba(22, 136, 213, 0.06), rgba(90, 178, 240, 0.12)) !important;
  border: 2px solid rgba(22, 136, 213, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  overflow: hidden !important;
}
.hero .hero-circle img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  object-position: center !important;
  opacity: 0.95 !important;
}
/* Pulsująca obwódka — 2 warstwy jak na mockupie */
.hero .hero-circle::before {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  inset: -20px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(22, 136, 213, 0.18) !important;
  animation: pulse 4s ease-in-out infinite !important;
  pointer-events: none !important;
}
.hero .hero-circle::after {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  inset: -50px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(22, 136, 213, 0.1) !important;
  animation: pulse 4s ease-in-out infinite 1s !important;
  pointer-events: none !important;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.6; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@media (max-width: 1024px) {
  .hero > .container { flex-direction: column !important; gap: 32px !important; }
  .hero .hero-content { max-width: 100% !important; text-align: center !important; align-items: center !important; }
  .hero .hero-content h1, .hero .hero-content p, .hero .hero-badge, .hero .hero-buttons, .hero .hero-services {
    text-align: center !important; justify-content: center !important; align-items: center !important;
  }
  .hero .hero-visual { display: none !important; }
}

@media (max-width: 768px) {
  .animate { opacity: 1 !important; transform: none !important; visibility: visible !important; }
  .services-grid { flex-direction: column !important; }
  .services-grid .service-card { flex: 0 0 100% !important; max-width: 100% !important; }
  .team-panel .team-grid .specialist-card { flex: 0 0 280px !important; max-width: 280px !important; }
  .team-panel .team-grid .specialist-card h3 { word-break: break-word; hyphens: auto; padding-right: 8px; }
  .mobile-team-nav { display: flex !important; width: 36px; height: 36px; top: 38%; position: absolute; align-items: center; justify-content: center; background: var(--primary); color: #fff; border: none; border-radius: 50%; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.15); z-index: 10; padding: 0; }
  .slider-prev.mobile-team-nav { left: 2px; }
  .slider-next.mobile-team-nav { right: 2px; }
  .team-panel .team-slider-container { padding: 0 44px; position: relative; }
  .hero h1 { font-size: 2rem !important; }
  .hero p { font-size: 0.95rem !important; }
}

/* LEKARZ-PHOTO-FIX-2026-04-22: nie rozciągać zdjęcia na całą wysokość prawej kolumny */
.single-lekarz .trust-card > div > div:first-child {
  align-self: flex-start !important;
  height: 380px !important;
  min-height: 380px !important;
  max-height: 380px !important;
}
.single-lekarz .trust-card > div > div:first-child img {
  object-position: center 20% !important;
}
@media (max-width: 768px) {
  .single-lekarz .trust-card > div { flex-direction: column !important; }
  .single-lekarz .trust-card > div > div:first-child {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: 320px !important;
    max-height: 320px !important;
  }
}

/* LEKARZ-CARD-REDESIGN-2026-04-22: A (no-photo full width) + C (spec list z checkmarkami) */
/* A: gdy brak zdjęcia — ukryj photo-column, info pełnej szerokości */
.trust-card.no-photo > div > div:first-child {
  display: none !important;
}
.trust-card.no-photo > div > div:last-child {
  flex: 1 1 100% !important;
  min-width: 100% !important;
}

/* C: lista specjalizacji z checkmarkami */
.lekarz-bio .spec-intro {
  margin: 20px 0 12px !important;
  color: var(--primary-dark) !important;
  font-size: 1rem !important;
}
.lekarz-bio .spec-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 24px !important;
}
.lekarz-bio .spec-list li {
  position: relative !important;
  padding: 6px 0 6px 32px !important;
  color: var(--grey-700) !important;
  line-height: 1.6 !important;
}
.lekarz-bio .spec-list li::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 10px !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: rgba(22, 136, 213, 0.12) !important;
}
.lekarz-bio .spec-list li::after {
  content: "" !important;
  position: absolute !important;
  left: 5px !important;
  top: 14px !important;
  width: 10px !important;
  height: 6px !important;
  border-left: 2px solid var(--primary) !important;
  border-bottom: 2px solid var(--primary) !important;
  transform: rotate(-45deg) !important;
}
.lekarz-bio p {
  margin: 0 0 12px !important;
}
.lekarz-bio p.spec-intro {
  margin-top: 24px !important;
}

/* FOOTER-LOGO-COLUMN-2026-04-22: nazwę pod logo */
.footer-logo {
  flex-direction: column-reverse !important;
  align-items: flex-start !important;
  gap: 12px !important;
}
.footer-logo .logo-text {
  font-size: 1.2rem !important;
  font-weight: 600 !important;
}

/* TEAM-SLIDER-2026-04-22 (Z4): zawsze 1 wiersz, 4/3/2/1 kart, strzałki na każdej szerokości */
.team-panel .team-grid,
.team-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  gap: 24px !important;
  padding: 8px 4px 20px !important;
  scrollbar-width: thin;
}
.team-panel .team-grid::-webkit-scrollbar,
.team-grid::-webkit-scrollbar { height: 6px; }
.team-panel .team-grid::-webkit-scrollbar-thumb,
.team-grid::-webkit-scrollbar-thumb { background: var(--grey-100); border-radius: 4px; }

.team-panel .team-grid .specialist-card,
.team-grid .specialist-card {
  flex: 0 0 calc((100% - 72px) / 4) !important;
  max-width: calc((100% - 72px) / 4) !important;
  min-width: 220px !important;
  scroll-snap-align: start !important;
}
@media (max-width: 1200px) {
  .team-panel .team-grid .specialist-card,
  .team-grid .specialist-card {
    flex: 0 0 calc((100% - 48px) / 3) !important;
    max-width: calc((100% - 48px) / 3) !important;
  }
}
@media (max-width: 900px) {
  .team-panel .team-grid .specialist-card,
  .team-grid .specialist-card {
    flex: 0 0 calc((100% - 24px) / 2) !important;
    max-width: calc((100% - 24px) / 2) !important;
  }
}
@media (max-width: 600px) {
  .team-panel .team-grid .specialist-card,
  .team-grid .specialist-card {
    flex: 0 0 80% !important;
    max-width: 80% !important;
  }
}

/* Strzałki nav widoczne na każdej szerokości (override mobile-only) */
.team-slider-container { position: relative; }
.team-slider-container .mobile-team-nav,
.team-slider-container .slider-nav.mobile-team-nav {
  display: flex !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 40px !important;
  height: 40px !important;
  background: var(--white) !important;
  color: var(--primary) !important;
  border: 1.5px solid var(--grey-100) !important;
  border-radius: 50% !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
  z-index: 10 !important;
  padding: 0 !important;
  transition: all 0.2s ease;
}
.team-slider-container .mobile-team-nav:hover {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}
.team-slider-container .slider-prev.mobile-team-nav { left: -8px !important; }
.team-slider-container .slider-next.mobile-team-nav { right: -8px !important; }

@media (max-width: 600px) {
  .team-slider-container .mobile-team-nav { width: 36px !important; height: 36px !important; }
  .team-slider-container .slider-prev.mobile-team-nav { left: 2px !important; }
  .team-slider-container .slider-next.mobile-team-nav { right: 2px !important; }
}

/* TEAM-SLIDER-POLISH-2026-04-22: strzałki na zewnątrz + ukryty scrollbar */
.team-panel {
  position: relative !important;
  padding: 0 !important;
}
.team-slider-container {
  padding: 0 52px !important;
}
.team-slider-container .slider-prev.mobile-team-nav { left: 4px !important; }
.team-slider-container .slider-next.mobile-team-nav { right: 4px !important; }
/* Ukryj scrollbar poziomy */
.team-grid {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.team-grid::-webkit-scrollbar {
  display: none !important;
  height: 0 !important;
}
@media (max-width: 600px) {
  .team-slider-container { padding: 0 40px !important; }
  .team-slider-container .slider-prev.mobile-team-nav { left: 0 !important; }
  .team-slider-container .slider-next.mobile-team-nav { right: 0 !important; }
}

/* AKTUALNOSCI-LINKS-2026-04-22: kartki klikalne */
.aktualnosc-item {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 20px !important;
  border: 1px solid var(--grey-100);
  border-radius: 12px;
  margin-bottom: 16px !important;
}
.aktualnosc-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22,136,213,0.08);
  border-color: var(--primary);
}
.aktualnosc-item a.aktualnosc-link {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}
.aktualnosc-item h3 {
  transition: color 0.2s ease;
}
.aktualnosc-item:hover h3 {
  color: var(--primary) !important;
}
.aktualnosc-item .aktualnosc-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* HERO-PULSE-STRONGER-2026-04-22: wyraźniejsza pulsująca obwódka */
.hero .hero-circle::before {
  border: 2px solid rgba(22, 136, 213, 0.35) !important;
  animation: heroPulseRing 3s ease-in-out infinite !important;
}
.hero .hero-circle::after {
  border: 2px solid rgba(22, 136, 213, 0.2) !important;
  animation: heroPulseRing 3s ease-in-out infinite 0.75s !important;
}
@keyframes heroPulseRing {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.08); opacity: 0.3; }
  100% { transform: scale(1); opacity: 1; }
}

/* SINGLE-POST-2026-04-22 */
.single-post-content p { margin-bottom: 20px !important; }
.single-post-content h2, .single-post-content h3 { color: var(--primary-dark); margin: 32px 0 16px; }
.single-post-content ul, .single-post-content ol { margin: 16px 0 24px 24px; }
.single-post-content li { margin-bottom: 8px; }
.single-post-content a { color: var(--primary); font-weight: 600; }
@media (max-width: 900px) {
  .aktualnosci-list { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
  .aktualnosci-list { grid-template-columns: 1fr !important; }
}

/* FORM-FIX-2026-04-22: wyraźne obwódki + naprawa --grey-200 */
.wpcf7 input[type=text],
.wpcf7 input[type=email],
.wpcf7 input[type=tel],
.wpcf7 input[type=number],
.wpcf7 input[type=url],
.wpcf7 textarea,
.wpcf7 select {
  border: 1.5px solid #CBD5E1 !important;
  background: #fff !important;
  padding: 14px 18px !important;
  font-size: 1rem !important;
  border-radius: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}
.wpcf7 input[type=text]:hover,
.wpcf7 input[type=email]:hover,
.wpcf7 input[type=tel]:hover,
.wpcf7 textarea:hover {
  border-color: #94A3B8 !important;
}
.wpcf7 input[type=text]:focus,
.wpcf7 input[type=email]:focus,
.wpcf7 input[type=tel]:focus,
.wpcf7 textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(22, 136, 213, 0.12) !important;
  outline: none !important;
}
.wpcf7 label {
  display: block !important;
  font-weight: 600 !important;
  color: var(--primary-dark) !important;
  margin-bottom: 8px !important;
  font-size: 0.92rem !important;
}
.wpcf7 .form-row-2col {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px !important;
  margin-bottom: 20px !important;
}
.wpcf7 .form-col { display: flex; flex-direction: column; margin-bottom: 0 !important; }
.wpcf7 p { margin-bottom: 20px; }

/* Acceptance checkbox RODO */
.wpcf7 .wpcf7-acceptance {
  display: block !important;
  margin: 20px 0 !important;
  padding: 14px 18px !important;
  background: #F8FAFC !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 10px !important;
}
.wpcf7 .wpcf7-acceptance label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  font-weight: 500 !important;
  color: var(--grey-700) !important;
  cursor: pointer !important;
  font-size: 0.9rem !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}
.wpcf7 .wpcf7-acceptance input[type=checkbox] {
  margin-top: 3px !important;
  width: 18px !important;
  height: 18px !important;
  accent-color: var(--primary) !important;
  flex-shrink: 0 !important;
}

/* Submit button — input[type=submit] too */
.wpcf7 input[type=submit],
.wpcf7 .btn-submit-big,
.wpcf7-submit {
  background: var(--primary) !important;
  color: #fff !important;
  border: none !important;
  padding: 16px 40px !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  margin-top: 12px !important;
  box-shadow: 0 4px 16px rgba(22, 136, 213, 0.25) !important;
  transition: all 0.2s !important;
  display: inline-block !important;
}
.wpcf7 input[type=submit]:hover,
.wpcf7-submit:hover {
  background: #0f6dbf !important;
  box-shadow: 0 6px 20px rgba(22, 136, 213, 0.35) !important;
  transform: translateY(-1px) !important;
}
.wpcf7 input[type=submit]:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Required marker */
.wpcf7 label:has(+ .wpcf7-form-control-wrap .wpcf7-validates-as-required)::after,
.wpcf7 .wpcf7-form-control-wrap.wpcf7-validates-as-required ~ label::after { content: " *"; color: #dc2626; }

/* Placeholder for inputs that don't have one */
.wpcf7 input[type=text]:placeholder-shown,
.wpcf7 input[type=email]:placeholder-shown,
.wpcf7 input[type=tel]:placeholder-shown { background: #fff; }

@media (max-width: 640px) {
  .wpcf7 .form-row-2col { grid-template-columns: 1fr !important; }
}

/* MOBILE-HERO-VISIBLE-2026-04-22 */
@media (max-width: 1024px) {
  .hero .hero-visual {
    display: block !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 32px auto 0 !important;
    height: auto !important;
    flex: 0 0 auto !important;
  }
  .hero .hero-circle {
    width: 100% !important;
    max-width: 320px !important;
    height: 280px !important;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1;
    max-height: 320px !important;
  }
  .hero .hero-circle img {
    border-radius: 50% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  /* zmniejszamy obwódki żeby nie wychodziły poza viewport */
  .hero .hero-circle::before { inset: -8px !important; border-width: 1.5px !important; }
  .hero .hero-circle::after { inset: -20px !important; border-width: 1.5px !important; }
}

/* MOBILE-MENU-TEXT-VISIBLE-2026-04-22: dropdown kontrast na mobile */
@media (max-width: 768px) {
  .nav-item.mobile-open .nav-dropdown a {
    color: var(--primary) !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    font-size: 0.95rem !important;
    border-left: 3px solid rgba(22,136,213,0.2);
    background: #fff !important;
  }
  .nav-item.mobile-open .nav-dropdown a:hover {
    background: rgba(22,136,213,0.08) !important;
    border-left-color: var(--primary);
  }
  .nav-item.mobile-open .nav-dropdown {
    background: #F8FAFC !important;
    border-radius: 8px !important;
    margin: 4px 0 8px !important;
    padding: 4px 0 !important;
  }
}

/* MOBILE-ANIMATE-INSTANT-2026-04-22: wszystkie treści od razu widoczne */
@media (max-width: 1024px) {
  .animate, .animate.delay-1, .animate.delay-2, .animate.delay-3, .animate.delay-4 {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    animation: none !important;
  }
}

/* Dynamiczne pola leków – formularz e-Wizyty (2026-04-29) */
.wpcf7 .lek-extra { display: none; }
.wpcf7 .lek-extra.is-visible { display: block; }
.wpcf7 .add-lek-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px dashed var(--primary);
    color: var(--primary);
    font-weight: 600;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin: 8px 0 16px;
    transition: all 0.2s;
}
.wpcf7 .add-lek-btn:hover { background: var(--ice); border-style: solid; }
.wpcf7 .add-lek-btn[hidden] { display: none; }

/* MOBILE-FIXES-PUNKTY-2026-04-29 */

/* #1 Team slider snap — 1 klik = 1 sylwetka */
@media (max-width: 768px) {
    .team-panel .team-grid,
    .team-grid {
        scroll-snap-type: x mandatory !important;
        scroll-padding-left: 0 !important;
    }
    .team-panel .team-grid .specialist-card,
    .team-grid .specialist-card {
        scroll-snap-align: start !important;
        scroll-snap-stop: always !important;
    }
}

/* #2 Single-lekarz: kolejność na mobile — zdjęcie → tagi/godziny/telefon/bio → CTA */
@media (max-width: 768px) {
    .trust-card .lekarz-photo-col {
        display: contents !important;
    }
    .trust-card .lekarz-photo-inner {
        order: 0 !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        height: 320px !important;
        min-height: 320px !important;
        max-height: 320px !important;
    }
    .trust-card > div > div[style*="flex: 1"]:not(.lekarz-cta) {
        order: 1 !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 24px !important;
    }
    .trust-card .lekarz-cta {
        order: 2 !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 24px !important;
        margin-top: 0 !important;
    }
    .trust-card .lekarz-cta .btn {
        width: auto !important;
        min-width: 200px !important;
    }
}

/* #3 Menu mobile: cofnięcie transform: translateX(-50%) z bazy */
@media (max-width: 768px) {
    .nav .nav-dropdown,
    .nav .nav-item.mobile-open .nav-dropdown {
        transform: none !important;
        left: auto !important;
        right: auto !important;
        min-width: 0 !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
    }
}

/* SLIDER-MOBILE-1CARD-2026-04-29: 1 sylwetka per widok na <=600px */
@media (max-width: 600px) {
    .team-panel .team-grid .specialist-card,
    .team-grid .specialist-card {
        flex: 0 0 calc(100% - 8px) !important;
        max-width: calc(100% - 8px) !important;
    }
}

/* --- ZESPOL-FILTR-2026-04-30: siatka kart i filtr specjalizacji w Gabinetach Prywatnych --- */
.zespol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}

.zespol-grid .specialist-card {
  flex: none !important;
  max-width: none !important;
  scroll-snap-align: unset;
}

.spec-tabs {
  flex-wrap: wrap;
  gap: 8px;
}

.spec-tabs .tab-btn {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.specialist-card.is-hidden {
  display: none !important;
}

@media (max-width: 600px) {
  .spec-tabs .tab-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  /* ZESPOL-MOBILE-SLIDER-2026-05-01: 1 karta per widok ze strzalkami (jak na home) */
  .zespol-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    grid-template-columns: none !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 12px !important;
  }
  .zespol-grid::-webkit-scrollbar { display: none !important; }
  .zespol-grid .specialist-card {
    flex: 0 0 calc(100% - 8px) !important;
    max-width: calc(100% - 8px) !important;
    scroll-snap-align: center !important;
  }
  .team-slider-container > .zespol-grid {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
}
