/* ============================================
   DERMEDIKA — Design System
   Medical luxury meets editorial warmth
   ============================================ */

/* --- Custom Properties --- */
:root {
  --ink:         #1a1a2e;
  --ink-soft:    #2d2d44;
  --accent:      #c41a50;
  --accent-light:#e8437a;
  --accent-glow: rgba(196, 26, 80, 0.15);
  --paper:       #faf7f5;
  --paper-warm:  #f3ece6;
  --white:       #ffffff;
  --muted:       #6b6b80;
  --muted-light: #9a9aae;
  --gold:        #c9a96e;
  --gold-soft:   rgba(201, 169, 110, 0.2);
  --radius:      6px;
  --max-w:       1280px;
  --nav-h:       72px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* --- Typography --- */
h1, h2, h3 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
}
h1 { font-size: clamp(36px, 5vw, 72px); line-height: 1.05; }
h2 { font-size: clamp(28px, 3.5vw, 44px); }
h3 { font-size: clamp(22px, 2.5vw, 32px); }

.label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: clamp(11px, 1.2vw, 13px);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}

/* --- Layout helpers --- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 100px 0; }
@media (max-width: 768px) { .section-pad { padding: 64px 0; } }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  border-radius: inherit;
}
.btn:hover::before { transform: scaleX(1); }

.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover { color: var(--white); }

.btn-outline {
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover { color: var(--white); border-color: var(--accent-light); }

.btn-outline-light {
  border: 1.5px solid rgba(255,255,255,0.3);
  color: var(--white);
}
.btn-outline-light:hover { border-color: var(--accent-light); color: var(--white); }

.btn-small { padding: 10px 20px; font-size: 13px; }

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: var(--nav-h);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.nav-logo img {
  height: 36px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-phone {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-phone svg { width: 14px; height: 14px; stroke: var(--gold); }
.nav-cta .btn { padding: 10px 24px; font-size: 13px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: var(--ink);
  z-index: 999;
  padding: 40px 24px;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  display: block;
  color: var(--white);
  font-size: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu .btn {
  margin-top: 24px;
  text-align: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .nav-links, .nav-phone, .nav-cta { display: none; }
  .hamburger { display: flex; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  margin-top: var(--nav-h);
  background: var(--ink);
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(196,26,80,0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  align-items: center;
}
.hero-text { position: relative; z-index: 2; }
.hero-text .label { margin-bottom: 20px; display: block; }
.hero-text h1 {
  color: var(--white);
  margin-bottom: 24px;
}
.hero-text h1 span { color: var(--gold); }
.hero-tagline {
  color: rgba(255,255,255,0.65);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 480px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-img {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.hero-img img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 12px;
}
.hero-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(26,26,46,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 14px 20px;
  text-align: center;
  z-index: 3;
}
.hero-badge .badge-score {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: var(--gold);
  display: block;
}
.hero-badge .badge-label {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .hero { min-height: auto; padding: 60px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-img img { height: 300px; }
  .hero-badge { top: 12px; right: 12px; padding: 10px 14px; }
  .hero-badge .badge-score { font-size: 22px; }
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
  background: var(--paper-warm);
  border-top: 1px solid var(--gold-soft);
  border-bottom: 1px solid var(--gold-soft);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust-item {
  text-align: center;
  padding: 32px 16px;
  border-right: 1px solid var(--gold-soft);
}
.trust-item:last-child { border-right: none; }
.trust-number {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--ink);
  display: block;
}
.trust-desc {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 600px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-bottom: 1px solid var(--gold-soft); padding: 24px 12px; }
  .trust-item:nth-child(odd) { border-right: 1px solid var(--gold-soft); }
  .trust-item:nth-child(even) { border-right: none; }
  .trust-item:nth-last-child(-n+2) { border-bottom: none; }
}

/* ============================================
   CATEGORIES (SERVICES GRID)
   ============================================ */
.categories { background: var(--ink-soft); }
.categories h2 { color: var(--white); margin-bottom: 12px; }
.categories .section-intro {
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  margin-bottom: 48px;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.cat-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  background: var(--ink);
}
.cat-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.55);
}
.cat-card:hover .cat-card-bg { transform: scale(1.06); }
.cat-card-content {
  position: relative;
  z-index: 2;
  padding: 28px;
  width: 100%;
}
.cat-card h3 {
  color: var(--white);
  font-size: clamp(18px, 2vw, 24px);
  margin-bottom: 6px;
}
.cat-card-meta {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 28px;
  right: 28px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cat-card:hover::after { transform: scaleX(1); }

@media (max-width: 768px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card { aspect-ratio: 16/9; }
}

/* ============================================
   SEARCH BY PROBLEM
   ============================================ */
.search-section { background: var(--paper); text-align: center; }
.search-section h2 { margin-bottom: 12px; }
.search-section .section-intro {
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 40px;
}
.search-box {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 0;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.search-box select {
  flex: 1;
  padding: 16px 20px;
  border: none;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  appearance: none;
  cursor: pointer;
  outline: none;
}
.search-box .btn {
  border-radius: 0;
  padding: 16px 28px;
}

/* ============================================
   TEAM
   ============================================ */
.team-section { background: var(--white); }
.team-section h2 { margin-bottom: 12px; }
.team-section .section-intro {
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 48px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
.team-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  transition: all 0.3s;
  border: 1px solid transparent;
}
.team-card:hover {
  border-color: var(--gold-soft);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.team-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid var(--gold);
}
.team-card h3 {
  font-size: 20px;
  margin-bottom: 4px;
}
.team-role {
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.team-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.team-secondary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 600px;
  margin: 0 auto 40px;
}
.team-secondary .team-card { padding: 24px 16px; }
.team-secondary .team-photo { width: 100px; height: 100px; }
.team-secondary .team-card h3 { font-size: 18px; }

.team-cta { text-align: center; }

@media (max-width: 768px) {
  .team-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto 32px; }
  .team-secondary { grid-template-columns: 1fr; max-width: 400px; }
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials { background: var(--ink); }
.testimonials .label { margin-bottom: 12px; display: block; }
.testimonials h2 {
  color: var(--gold);
  margin-bottom: 48px;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.testimonial-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 32px;
}
.testimonial-quote {
  position: relative;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-quote::before {
  content: '\201C';
  font-family: 'DM Serif Display', serif;
  font-size: 48px;
  color: var(--gold);
  position: absolute;
  top: -20px;
  left: -4px;
  line-height: 1;
  font-style: normal;
}
.testimonial-author {
  color: var(--white);
  font-weight: 500;
  font-size: 14px;
}
.testimonial-source {
  color: var(--muted-light);
  font-size: 12px;
  margin-top: 2px;
}
.testimonials-cta {
  text-align: center;
  margin-top: 48px;
}

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

/* ============================================
   DNI DOBRYCH CEN (TABS)
   ============================================ */
.deals-section { background: var(--paper-warm); }
.deals-section h2 { margin-bottom: 12px; }
.deals-section .section-intro {
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 40px;
}
.deals-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.deals-tabs::-webkit-scrollbar { display: none; }
.deals-tab {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius) var(--radius) 0 0;
  white-space: nowrap;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}
.deals-tab:hover { color: var(--ink); }
.deals-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--white);
}
.deals-panel {
  display: none;
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: 32px;
  border: 1px solid rgba(0,0,0,0.06);
}
.deals-panel.active { display: block; }

.deals-table {
  width: 100%;
  border-collapse: collapse;
}
.deals-table tr { border-bottom: 1px solid rgba(0,0,0,0.06); }
.deals-table tr:last-child { border-bottom: none; }
.deals-table td {
  padding: 16px 0;
  vertical-align: middle;
}
.deals-table td:first-child {
  color: var(--ink);
  font-size: 15px;
}
.deals-table td:last-child {
  text-align: right;
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--accent);
  white-space: nowrap;
  padding-left: 20px;
}

@media (max-width: 600px) {
  .deals-panel { padding: 20px 16px; }
  .deals-table td:last-child { font-size: 17px; }
}

/* ============================================
   BRANDS MARQUEE
   ============================================ */
.brands-section {
  background: var(--white);
  padding: 48px 0;
  overflow: hidden;
}
.brands-section .label {
  text-align: center;
  display: block;
  margin-bottom: 32px;
}
.brands-track {
  display: flex;
  gap: 48px;
  animation: marquee 60s linear infinite;
  width: max-content;
}
.brands-track span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   CONTACT
   ============================================ */
.contact-section { background: var(--ink); }
.contact-section .label { margin-bottom: 12px; display: block; }
.contact-section h2 {
  color: var(--white);
  margin-bottom: 48px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contact-item-text h4 {
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 4px;
}
.contact-item-text p,
.contact-item-text a {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  line-height: 1.6;
}
.contact-item-text a:hover { color: var(--gold); }

.contact-buttons {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  filter: grayscale(1) brightness(0.7);
  transition: filter 0.3s;
}
.contact-map:hover iframe { filter: grayscale(0.3) brightness(0.85); }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { min-height: 280px; }
  .contact-map iframe { min-height: 280px; }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #12121f;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  color: rgba(255,255,255,0.45);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 340px;
}
.footer-brand img { height: 32px; margin-bottom: 4px; }
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.footer-social a:hover { background: var(--accent); }
.footer-social svg { width: 16px; height: 16px; fill: var(--white); }

.footer-col h4 {
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.45);
  font-size: 14px;
  padding: 5px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  color: rgba(255,255,255,0.3);
  font-size: 13px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================
   MOBILE STICKY BAR
   ============================================ */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 8px 12px;
  gap: 8px;
}
.mobile-cta-bar a {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mobile-cta-bar a svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.mobile-cta-bar .cta-call {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}
.mobile-cta-bar .cta-book {
  background: var(--accent);
  color: var(--white);
}

@media (max-width: 600px) {
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 64px; }
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Hero staggered animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-text .label { animation: fadeInUp 0.6s ease 0.1s both; }
.hero-text h1 { animation: fadeInUp 0.6s ease 0.2s both; }
.hero-tagline { animation: fadeInUp 0.6s ease 0.35s both; }
.hero-buttons { animation: fadeInUp 0.6s ease 0.5s both; }
.hero-img { animation: fadeInUp 0.7s ease 0.3s both; }

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
