/* EMK Optyk – Clean, Modern & Reassuring */

/* =========================================
   FONTS
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* =========================================
   VARIABLES
   ========================================= */

:root {
  --primary: #4A90E2;
  --primary-dark: #2563A8;
  --primary-light: #6BA8F0;
  --secondary: #A8E6CF;
  --secondary-light: #C8F2DD;
  --accent: #81C3D7;
  --accent-light: #A3D9E8;
  --trust: #1E3A5F;
  --white: #FFFFFF;
  --off-white: #FAFBFC;
  --gray-light: #F0F4F8;
  --gray: #94A3B8;
  --gray-dark: #475569;
  --black: #1E293B;
  --success: #10B981;
  --warning: #F59E0B;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --shadow-xs: 0 1px 2px rgba(0, 58, 95, 0.05);
  --shadow-sm: 0 2px 8px rgba(0, 58, 95, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 58, 95, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 58, 95, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 58, 95, 0.15);

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
}

/* =========================================
   RESET AND BASE
   ========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--black);
  background-color: var(--off-white);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(74, 144, 226, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(168, 230, 207, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--trust);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--spacing-sm);
}

h4 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--gray-dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Service images */

.service-list img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* =========================================
   CONTAINER
   ========================================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* =========================================
   HEADER
   ========================================= */

.header {
  background: var(--white);
  padding: var(--spacing-sm) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--gray-light);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--trust);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: translateY(-2px);
}

.logo-icon {
  font-size: 2.5rem;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

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

.logo-text span {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  text-transform: none;
  letter-spacing: 0.05em;
}

/* Navigation */

.nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav-link {
  color: var(--gray-dark);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.header-cta {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.header-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =========================================
   HERO
   ========================================= */

.hero {
  background: url('images/placeholder.jpg') center center / cover no-repeat;
  color: var(--white);
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(10, 25, 60, 0.01) 0%,
    rgba(10, 25, 60, 0.05) 100%
  );
  pointer-events: none;
}

@keyframes float {
  0%, 100% {
    transform: translateY(-50%) rotate(-15deg);
  }

  50% {
    transform: translateY(-55%) rotate(-12deg);
  }
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 700px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--spacing-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  animation: slideUp 0.8s ease-out 0.2s both;
}

.hero h1 span {
  color: var(--secondary);
  display: inline-block;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
  color: rgba(255, 255, 255, 0.95);
  animation: slideUp 0.8s ease-out 0.4s both;
}

/* Przyciski HERO – wyrównanie do lewej */

.hero-buttons {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
  animation: slideUp 0.8s ease-out 0.6s both;
}

.hero-buttons .btn {
  flex: 0 0 auto;
}

/* =========================================
   PAGE HERO
   ========================================= */

.page-hero {
  padding: var(--spacing-lg) 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* =========================================
   BUTTONS – WSPÓLNY WYGLĄD
   ========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  font-family: var(--font-body);
  text-decoration: none;
  opacity: 1;
  visibility: visible;
}

/* Główny przycisk – niebieski */

.btn-primary {
  background: var(--primary) !important;
  color: var(--white) !important;
  border: 2px solid var(--primary) !important;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-dark) !important;
  color: var(--white) !important;
  border-color: var(--primary-dark) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Przycisk z obramowaniem – niebieski */

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

.btn-outline:hover {
  background: var(--primary) !important;
  color: var(--white) !important;
  border-color: var(--primary) !important;
  transform: translateY(-3px);
}

/* Przycisk dodatkowy */

.btn-secondary {
  background: var(--primary-dark) !important;
  color: var(--white) !important;
  border: 2px solid var(--primary-dark) !important;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--trust) !important;
  color: var(--white) !important;
  border-color: var(--trust) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Przyciski w HERO – kontrast na zdjęciu */

.hero .btn-primary {
  background: #ffffff !important;
  color: var(--primary-dark) !important;
  border: 2px solid #ffffff !important;
}

.hero .btn-primary:hover {
  background: var(--primary-dark) !important;
  color: #ffffff !important;
  border-color: var(--primary-dark) !important;
}

.hero .btn-outline {
  background: transparent !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
}

.hero .btn-outline:hover {
  background: #ffffff !important;
  color: var(--primary-dark) !important;
  border-color: #ffffff !important;
}

/* Linki będące przyciskami */

a.btn {
  opacity: 1;
  visibility: visible;
}

/* =========================================
   SECTIONS
   ========================================= */

.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.section-light {
  background-color: var(--gray-light);
}

.section-white {
  background-color: var(--white);
}

.section-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.section-primary h2,
.section-primary h3,
.section-primary h4 {
  color: var(--white);
}

.section-primary p {
  color: rgba(255, 255, 255, 0.95);
}

.section-header {
  margin-bottom: var(--spacing-lg);
}

.section-header.center {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--spacing-lg);
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--spacing-sm);
}

.section-primary .section-tag {
  color: var(--secondary);
}

.section-title {
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--gray-dark);
  line-height: 1.8;
}

.section-primary .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

/* =========================================
   GRID LAYOUTS
   ========================================= */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.features-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-md);
}

.services-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

/* =========================================
   FEATURE CARD
   ========================================= */

.feature-card {
  background: var(--white);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--gray-light);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
  display: inline-block;
  filter: grayscale(0);
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--trust);
}

.feature-card p {
  color: var(--gray-dark);
  line-height: 1.7;
}

/* =========================================
   SERVICE CARD
   ========================================= */

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.service-header {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  padding: var(--spacing-md);
  position: relative;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
  display: inline-block;
}

.service-header h3 {
  color: var(--white);
  font-size: 1.75rem;
}

.service-body {
  padding: var(--spacing-md);
}

.service-body p {
  margin-bottom: var(--spacing-sm);
  color: var(--gray-dark);
}

.service-list {
  list-style: none;
  margin-bottom: var(--spacing-md);
}

.service-list li {
  padding: 0.5rem 0;
  color: var(--gray-dark);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.service-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.section-primary .service-list li {
  color: rgba(255, 255, 255, 0.95);
}

.section-primary .service-list li::before {
  color: var(--secondary);
}

/* =========================================
   INFO BOX
   ========================================= */

.info-box {
  background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary);
  margin-bottom: var(--spacing-md);
}

.info-box h4 {
  color: var(--trust);
  margin-bottom: var(--spacing-sm);
}

.info-box p {
  color: var(--gray-dark);
  margin-bottom: 0;
}

/* =========================================
   TEAM
   ========================================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  border: 1px solid var(--gray-light);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.team-photo {
  width: 100%;
  height: 320px;
  background-color: var(--primary-light);
  background-size: cover;
  background-position: center top;
  position: relative;
  overflow: hidden;
}

.team-info {
  padding: var(--spacing-md);
}

.team-name {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--trust);
}

.team-role {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: var(--spacing-sm);
}

.team-bio {
  color: var(--gray-dark);
  line-height: 1.7;
  margin-bottom: var(--spacing-sm);
}

.team-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--spacing-sm);
}

.credential-badge {
  display: inline-block;
  background: var(--gray-light);
  color: var(--trust);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

/* =========================================
   TESTIMONIALS
   ========================================= */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-md);
}

.testimonial-card {
  background: var(--white);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 0.4s ease;
  border: 1px solid var(--gray-light);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -1rem;
  left: 1.5rem;
  font-size: 8rem;
  font-family: Georgia, serif;
  color: var(--primary);
  opacity: 0.1;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.testimonial-text {
  color: var(--gray-dark);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.testimonial-info h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--trust);
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--gray);
}

/* =========================================
   STATS
   ========================================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.stat-card {
  text-align: center;
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--secondary);
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: var(--spacing-sm);
}

.stat-label {
  font-size: 1rem;
  color: var(--white);
  font-weight: 500;
}

/* =========================================
   CTA BANNER
   ========================================= */

.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--trust) 100%);
  color: var(--white);
  padding: var(--spacing-lg) var(--spacing-md);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '★';
  position: absolute;
  font-size: 15rem;
  opacity: 0.05;
  right: -3rem;
  top: 50%;
  transform: translateY(-50%);
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.cta-banner p {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
  color: rgba(255, 255, 255, 0.95);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   INSURANCE LOGOS
   ========================================= */

.insurance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.insurance-logo {
  background: var(--white);
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--trust);
  box-shadow: var(--shadow-xs);
  transition: all 0.3s ease;
}

.insurance-logo:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

/* =========================================
   FAQ
   ========================================= */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

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

.faq-question {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--trust);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.faq-question::before {
  content: 'Q:';
  color: var(--primary);
  font-weight: 900;
  flex-shrink: 0;
}

.faq-answer {
  color: var(--gray-dark);
  line-height: 1.8;
  padding-left: 1.75rem;
}

/* =========================================
   CONTACT FORM
   ========================================= */

.contact-form {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  font-weight: 700;
  color: var(--trust);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--black);
  background: var(--white);
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* =========================================
   CONTACT INFORMATION
   ========================================= */

.contact-info {
  background: linear-gradient(135deg, var(--trust) 0%, var(--primary) 100%);
  color: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: '';
  position: absolute;
  font-size: 15rem;
  opacity: 0.05;
  right: -3rem;
  top: 50%;
  transform: translateY(-50%);
}

.contact-info h3 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
}

.info-item {
  margin-bottom: var(--spacing-md);
  position: relative;
  z-index: 1;
}

.info-label {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.info-value {
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.6;
}

.info-value a {
  color: var(--white);
  transition: color 0.3s ease;
}

.info-value a:hover {
  color: var(--secondary);
}

/* =========================================
   FOOTER
   ========================================= */

.footer {
  background: var(--trust);
  color: var(--white);
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-brand {
  max-width: 350px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.8);
  margin: var(--spacing-sm) 0;
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: var(--spacing-sm);
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.footer-column h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-bottom a {
  position: relative;
  z-index: 10;
  pointer-events: auto;
  cursor: pointer;
}

/* =========================================
   ANIMATIONS
   ========================================= */

@media (prefers-reduced-motion: no-preference) {

  .feature-card,
  .service-card,
  .testimonial-card,
  .team-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .feature-card:nth-child(1),
  .service-card:nth-child(1),
  .testimonial-card:nth-child(1),
  .team-card:nth-child(1) {
    animation-delay: 0.1s;
  }

  .feature-card:nth-child(2),
  .service-card:nth-child(2),
  .testimonial-card:nth-child(2),
  .team-card:nth-child(2) {
    animation-delay: 0.2s;
  }

  .feature-card:nth-child(3),
  .service-card:nth-child(3),
  .testimonial-card:nth-child(3),
  .team-card:nth-child(3) {
    animation-delay: 0.3s;
  }

  .feature-card:nth-child(4),
  .service-card:nth-child(4),
  .testimonial-card:nth-child(4),
  .team-card:nth-child(4) {
    animation-delay: 0.4s;
  }

  .feature-card:nth-child(5),
  .service-card:nth-child(5) {
    animation-delay: 0.5s;
  }

  .feature-card:nth-child(6),
  .service-card:nth-child(6) {
    animation-delay: 0.6s;
  }
}

/* =========================================
   MOBILE NAVIGATION
   ========================================= */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 100;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

@media (max-width: 1024px) {

  .features-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 968px) {

  :root {
    --spacing-xl: 4rem;
    --spacing-lg: 3rem;
  }

  .nav {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .header-cta {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

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

@media (max-width: 768px) {

  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .header-inner {
    position: relative;
  }

  .nav.nav-open {
    display: flex;
  }

  .nav-link {
    padding: 0.75rem 2rem;
    width: 100%;
    text-align: center;
  }

  .header-cta {
    display: none;
  }

  .services-grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

@media (max-width: 640px) {

  :root {
    --spacing-xl: 3rem;
    --spacing-lg: 2rem;
  }

  .features-grid.cols-4 {
    grid-template-columns: 1fr;
  }

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

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .hero-buttons .btn {
    width: auto;
    min-width: 200px;
    max-width: 320px;
  }

  .contact-form {
    padding: var(--spacing-md);
  }

  .contact-info {
    padding: var(--spacing-md);
  }
}

/* =========================================
   COOKIE BANNER
   ========================================= */

.cookie-banner {
  position: fixed !important;
  left: 20px !important;
  right: 20px !important;
  bottom: 20px !important;
  z-index: 999999 !important;
  pointer-events: auto !important;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner a,
.cookie-banner button {
  pointer-events: auto !important;
}





/* =========================================
   GABINET OKULISTYCZNY – SZEROKI BANER
   ========================================= */

.ophthalmology-section {
    width: 100%;
    padding: 35px 20px;
    background: #ffffff;
    overflow: visible;
}

.ophthalmology-section .container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.ophthalmology-section .ophthalmology-content {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 45px;

    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 35px max(5%, 25px);

    background: #f0f7fd;
    border: 1px solid #e1edf7;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);

    overflow: visible;
}

.ophthalmology-section .ophthalmology-image {
    width: 100%;
    max-width: 560px;
    min-width: 0;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
}

.ophthalmology-section .ophthalmology-image img {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: contain;
    object-position: center;
}

.ophthalmology-section .ophthalmology-text {
    width: 100%;
    max-width: 650px;
    min-width: 0;
}

.ophthalmology-section .ophthalmology-text h2 {
    color: #244f7d;
    font-size: clamp(25px, 2.5vw, 34px);
    line-height: 1.3;
    margin: 10px 0 18px;
}

.ophthalmology-section .ophthalmology-text p {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.ophthalmology-section .ophthalmology-benefits {
    display: grid;
    gap: 10px;
    margin: 18px 0 22px;
}

.ophthalmology-section .ophthalmology-benefits div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #315f91;
    font-weight: 600;
    font-size: 15px;
}

.ophthalmology-section .ophthalmology-benefits i {
    color: #4A90E2;
    width: 20px;
    flex-shrink: 0;
}

/* TABLET */

@media (max-width: 768px) {
    .ophthalmology-section {
        padding: 20px 12px;
    }

    .ophthalmology-section .ophthalmology-content {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 22px;
    }

    .ophthalmology-section .ophthalmology-image {
        max-width: 100%;
    }

    .ophthalmology-section .ophthalmology-image img {
        height: auto;
        max-height: 350px;
        object-fit: contain;
    }

    .ophthalmology-section .ophthalmology-text {
        max-width: 100%;
    }
}

/* TELEFON */

@media (max-width: 480px) {
    .ophthalmology-section .ophthalmology-content {
        padding: 16px;
    }

    .ophthalmology-section .ophthalmology-text h2 {
        font-size: 23px;
    }
}




/* OPRAWKI NA STRONIE GŁÓWNEJ – TELEFONY
   Wyświetlanie całych zdjęć bez przycinania */

@media (max-width: 768px) {

    .team-grid .team-card img {
        width: 100%;
        height: auto;
        max-height: 350px;
        object-fit: contain;
        object-position: center;
        display: block;
    }

    .team-grid .team-card a {
        display: block;
        text-align: center;
    }

}



/* BADANIE WZROKU – WYŚRODKOWANIE PRZYCISKÓW */

.hero-buttons:has(+ .exam-note) {
    justify-content: center;
}




/* SERVICES – PRZYCISKI NA DOLE STRONY */

.services-bottom-buttons {
    justify-content: center;
    align-items: center;
    margin-top: 25px;
}

.services-bottom-buttons .btn {
    text-align: center;
}

@media (max-width: 600px) {
    .services-bottom-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .services-bottom-buttons .btn {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
    }
}


/* SERVICES – TRZY PRZYCISKI W JEDNYM RZĘDZIE */

.services-bottom-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.services-bottom-buttons .btn {
    white-space: nowrap;
    flex: 0 1 auto;
}

@media (max-width: 600px) {
    .services-bottom-buttons {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .services-bottom-buttons .btn {
        width: 100%;
        white-space: normal;
    }
}

/* SERVICES – CAŁE ZDJĘCIA OPRAWEK NA TELEFONACH */

@media (max-width: 768px) {

    .service-list img {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: contain;
        object-position: center;
        display: block;
    }

}

/* ABOUT – CAŁE ZDJĘCIA CHORÓB OCZU NA TELEFONACH */

@media (max-width: 768px) {

    .content-grid > div > a > div[style*="background"] {
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center center !important;
        min-height: 300px !important;
        height: 300px;
    }

}


/* =========================================
   MENU ROZWIJANE – WIEDZA
   ========================================= */

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    font-family: var(--font-body);
    cursor: pointer;
}

.nav-dropdown-toggle i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 8px 0;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 2000;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--gray-dark);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

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

.nav-dropdown:hover .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

/* MENU ROZWIJANE – TELEFONY */

@media (max-width: 768px) {

    .nav-dropdown {
        width: 100%;
        flex-direction: column;
    }

    .nav-dropdown-toggle {
        justify-content: center;
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        width: 100%;
        min-width: 0;
        box-shadow: none;
        border-radius: 0;
        text-align: center;
    }

}


