/* =============================================================
   Specjalistyczna Przychodnia Lekarska Fundacji AK
   Main stylesheet
   ============================================================= */

:root {
  --bordeaux: #5c1a1b;
  --bordeaux-deep: #421214;
  --bordeaux-soft: #7a2729;
  --paper: #f1e9d6;
  --paper-light: #f7f1e1;
  --paper-dark: #e6dcc4;
  --copper: #a8642a;
  --copper-light: #c4824a;
  --bottle: #2d3e2c;
  --bottle-light: #3d5240;
  --ink: #2a1f1a;
  --ink-soft: #4a3a32;
  --muted: #6b5a50;
  --rule: #c4b896;

  --serif: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --sans: 'Karla', -apple-system, system-ui, sans-serif;

  --base-size: 18px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html { font-size: var(--base-size); scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(168,100,42,0.025) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(92,26,27,0.02) 0%, transparent 40%);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============================================================
   ANNOUNCEMENT TICKER
   ============================================================= */
.ticker {
  background: var(--bottle);
  color: var(--paper-light);
  padding: 0.65rem 0;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--copper);
}
.ticker::before, .ticker::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 80px; z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(to right, var(--bottle), transparent); }
.ticker::after { right: 0; background: linear-gradient(to left, var(--bottle), transparent); }
.ticker-track {
  display: flex;
  gap: 4rem;
  animation: ticker-scroll 25s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { font-size: 0.88rem; letter-spacing: 0.02em; }
.ticker-item .dot { color: var(--copper-light); margin: 0 1rem; font-size: 1.2rem; vertical-align: middle; }
.ticker-item strong { color: var(--copper-light); font-weight: 600; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =============================================================
   TOP BAR
   ============================================================= */
.topbar {
  background: var(--bordeaux-deep);
  color: var(--paper-light);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--copper);
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.topbar-inner > div { display: inline-flex; align-items: center; gap: 0.4rem; }
.topbar .icon { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
.topbar a { color: var(--paper-light); text-decoration: none; transition: color 0.2s; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar strong { color: var(--copper-light); font-weight: 600; }

/* =============================================================
   HEADER
   ============================================================= */
header.main {
  background: rgba(247,241,225,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 12px rgba(66, 18, 20, 0.08);
  transition: box-shadow 0.3s;
}
header.main.scrolled { box-shadow: 0 4px 20px rgba(66, 18, 20, 0.12); }
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 1.25rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  transition: padding 0.3s var(--ease-out);
}
header.main.scrolled .header-inner { padding: 0.75rem 2rem; }
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit; }
.brand-mark {
  height: 60px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.05); }
.brand-text { line-height: 1.2; }
.brand-text .top { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--bordeaux-deep); }
.brand-text .bot {
  font-size: 0.78rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-top: 0.15rem; font-style: italic; font-family: var(--serif);
}
nav.primary ul { list-style: none; display: flex; gap: 1.25rem; align-items: center; }
nav.primary a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem;
  padding: 0.5rem 0; position: relative; transition: color 0.2s;
  white-space: nowrap;
}
nav.primary a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--copper);
  transition: width 0.3s var(--ease-out);
}
nav.primary a:hover { color: var(--bordeaux); }
nav.primary a:hover::after { width: 100%; }
nav.primary a.active { color: var(--bordeaux-deep); }
nav.primary a.active::after { width: 100%; background: var(--bordeaux); }
.menu-toggle {
  display: none; background: none;
  border: 2px solid var(--bordeaux); color: var(--bordeaux);
  padding: 0.5rem 0.8rem; font-family: var(--sans); font-weight: 600;
  cursor: pointer;
}

/* =============================================================
   BANNER IMAGE
   ============================================================= */
.banner-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: var(--bordeaux-deep);
  text-align: center;
}
.banner-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.banner-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(66,18,20,0.4));
  pointer-events: none;
}

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(66,18,20,0.95) 0%, rgba(92,26,27,0.92) 60%, rgba(45,62,44,0.88) 100%);
  color: var(--paper-light);
  overflow: hidden;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 60px, rgba(241,233,214,0.025) 60px 61px),
    radial-gradient(ellipse at 90% 10%, rgba(168,100,42,0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 5% 95%, rgba(45,62,44,0.35) 0%, transparent 55%);
  will-change: transform;
}
.hero-medal {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(196,130,74,0.25);
  pointer-events: none;
  opacity: 0.6;
}
.hero-medal::before {
  content: ""; position: absolute; inset: 18px;
  border-radius: 50%; border: 1px solid rgba(196,130,74,0.2);
}
.hero-medal::after {
  content: ""; position: absolute; inset: 36px;
  border-radius: 50%; border: 1px dashed rgba(196,130,74,0.15);
}
.hero-medal.m1 { top: 15%; right: 8%; width: 220px; height: 220px; animation: float-medal 18s var(--ease-in-out) infinite; }
.hero-medal.m2 { bottom: 12%; left: 5%; width: 140px; height: 140px; animation: float-medal 14s var(--ease-in-out) infinite reverse; }
@keyframes float-medal {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(20px, -30px) rotate(180deg); }
}
.hero-bar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg,
    var(--copper) 0%, var(--copper) 30%,
    var(--bordeaux) 30%, var(--bordeaux) 35%,
    var(--copper) 35%, var(--copper) 65%,
    var(--bordeaux) 65%, var(--bordeaux) 70%,
    var(--copper) 70%, var(--copper) 100%);
  z-index: 3;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 5rem 2rem 6rem;
  display: grid; grid-template-columns: 1.6fr 1fr;
  gap: 4rem; align-items: center;
  position: relative; z-index: 2; width: 100%;
}
.hero-eyebrow, .hero h1, .hero .lead, .hero-actions, .hero-card {
  opacity: 0; transform: translateY(30px);
  animation: rise 1s var(--ease-out) forwards;
}
.hero-eyebrow { animation-delay: 0.1s; }
.hero h1 { animation-delay: 0.25s; }
.hero .lead { animation-delay: 0.4s; }
.hero-actions { animation-delay: 0.55s; }
.hero-card { animation-delay: 0.7s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--copper-light);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(196,130,74,0.45);
  font-weight: 600;
}
.hero-eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--copper-light);
  box-shadow: 0 0 0 0 rgba(196,130,74,0.7);
  animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(196,130,74,0.7); }
  70% { box-shadow: 0 0 0 14px rgba(196,130,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(196,130,74,0); }
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1.12; letter-spacing: -0.005em;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: italic; color: var(--copper-light);
  font-weight: 400; display: inline-block;
}

.rotator {
  display: inline-block; position: relative;
  height: 1.2em; vertical-align: top;
  overflow: hidden; min-width: 9ch;
}
.rotator-word {
  position: absolute; left: 0; top: 0;
  white-space: nowrap; opacity: 0;
  transform: translateY(100%);
  animation: rotate-word 9s infinite;
  font-style: italic; color: var(--copper-light);
}
.rotator-word:nth-child(1) { animation-delay: 0s; }
.rotator-word:nth-child(2) { animation-delay: 3s; }
.rotator-word:nth-child(3) { animation-delay: 6s; }
@keyframes rotate-word {
  0% { opacity: 0; transform: translateY(100%); }
  5%, 28% { opacity: 1; transform: translateY(0); }
  33%, 100% { opacity: 0; transform: translateY(-100%); }
}

.hero .lead {
  font-size: 1.15rem; line-height: 1.6;
  color: rgba(241,233,214,0.9);
  max-width: 560px; margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background 0.2s, color 0.2s, box-shadow 0.2s;
  letter-spacing: 0.02em; position: relative; overflow: hidden;
}
.btn .icon { width: 18px; height: 18px; fill: currentColor; }
.btn-primary {
  background: var(--copper); color: #fff;
  box-shadow: 0 4px 0 var(--bordeaux-deep);
}
.btn-primary:hover {
  background: var(--copper-light);
  transform: translateY(-3px);
  box-shadow: 0 7px 0 var(--bordeaux-deep);
}
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--bordeaux-deep); }

.btn-ghost {
  background: transparent; color: var(--paper-light);
  border-color: var(--paper-light); position: relative;
}
.btn-ghost::before {
  content: ""; position: absolute; inset: 0;
  background: var(--paper-light);
  transform: translateX(-101%);
  transition: transform 0.35s var(--ease-out);
  z-index: -1;
}
.btn-ghost:hover { color: var(--bordeaux-deep); }
.btn-ghost:hover::before { transform: translateX(0); }

.hero-card {
  background: rgba(241,233,214,0.08);
  border: 1px solid rgba(196,130,74,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem 1.75rem; position: relative;
  transition: transform 0.4s var(--ease-out);
}
.hero-card:hover { transform: translateY(-4px); }
.hero-card::before {
  content: ""; position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px solid rgba(196,130,74,0.25);
  pointer-events: none;
  transition: inset 0.3s var(--ease-out);
}
.hero-card:hover::before { inset: 12px; }
.hero-card h3 {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 700;
  margin-bottom: 1.25rem; color: var(--copper-light);
  text-align: center; padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(196,130,74,0.3);
}
.hero-card .row {
  display: flex; align-items: baseline; gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(241,233,214,0.18);
  font-size: 0.95rem;
}
.hero-card .row:last-child { border-bottom: none; }
.hero-card .day {
  color: var(--copper-light); min-width: 90px;
  font-weight: 600; font-family: var(--serif); font-style: italic;
}
.hero-card .hours { color: rgba(241,233,214,0.95); }

/* Today highlighting */
.hero-card .row.is-today {
  background: rgba(196,130,74,0.18);
  border-left: 3px solid var(--copper-light);
  padding-left: 0.75rem;
  margin: 0 -0.5rem;
  padding-right: 0.5rem;
  border-radius: 4px;
  border-bottom-color: rgba(196,130,74,0.25);
}
.hero-card .row.is-today .day {
  color: #fff;
}
.hero-card .row.is-today .hours {
  color: #fff;
  font-weight: 600;
}
.hero-card .row.is-other-day {
  opacity: 0.5;
}
.hero-card .row.is-other-day:hover {
  opacity: 0.75;
}

/* Holiday notice */
.holiday-notice {
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
  padding: 0.7rem 0.85rem;
  background: rgba(180,40,40,0.25);
  border: 1px solid rgba(220,80,80,0.4);
  border-radius: 4px;
}
.holiday-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.holiday-text {
  font-size: 0.85rem;
  color: rgba(255,200,200,0.95);
  font-weight: 500;
  line-height: 1.35;
}

/* Today status */
.today-status {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.status-open {
  color: #6ddb7a;
  animation: status-pulse 2s ease-in-out infinite;
}
.status-closed {
  color: #e87070;
}
.status-info {
  color: var(--copper-light);
}
@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%); z-index: 3;
  color: rgba(241,233,214,0.6);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.3em;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  animation: fade-in 1s var(--ease-out) 1.5s backwards;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.scroll-hint .line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(241,233,214,0.6), transparent);
  animation: line-move 2.5s var(--ease-in-out) infinite;
}
@keyframes line-move {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =============================================================
   STATS
   ============================================================= */
.stats {
  background: var(--bottle); color: var(--paper);
  border-top: 3px double var(--copper);
  border-bottom: 3px double var(--copper);
  position: relative; overflow: hidden;
}
.stats::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 30px, rgba(241,233,214,0.02) 30px 31px);
  pointer-events: none;
}
.stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.stat {
  padding: 2.5rem 1.5rem; text-align: center;
  border-right: 1px solid rgba(241,233,214,0.15);
  position: relative; transition: background 0.3s;
}
.stat:last-child { border-right: none; }
.stat:hover { background: rgba(241,233,214,0.04); }
.stat .num {
  font-family: var(--serif); font-size: 3rem; font-weight: 700;
  color: var(--copper-light); line-height: 1;
  margin-bottom: 0.4rem; font-style: italic; display: block;
}
.stat .lbl {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(241,233,214,0.88); font-weight: 500;
}

/* =============================================================
   REVEAL
   ============================================================= */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-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; }

/* =============================================================
   SECTIONS
   ============================================================= */
section { padding: 6rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-header { margin-bottom: 3rem; max-width: 760px; }
.section-eyebrow {
  display: block; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--bordeaux); font-weight: 600;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400; color: var(--bordeaux-deep);
  line-height: 1.2; margin-bottom: 1rem;
  letter-spacing: -0.005em;
}
.section-title em { font-style: italic; color: var(--copper); }
.section-rule {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.section-rule::before {
  content: ""; width: 0; height: 2px; background: var(--bordeaux);
  transition: width 1s var(--ease-out) 0.3s;
}
.reveal.is-visible .section-rule::before { width: 50px; }
.section-rule::after {
  content: "✦"; color: var(--copper); font-size: 0.9rem;
  opacity: 0; transition: opacity 0.5s 1.1s;
}
.reveal.is-visible .section-rule::after { opacity: 1; }

/* =============================================================
   MISSION
   ============================================================= */
.mission { background: var(--paper); position: relative; }
.mission-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 4rem; align-items: start;
}
.mission-quote {
  font-family: var(--serif); font-style: italic;
  font-size: 1.55rem; line-height: 1.45;
  color: var(--bordeaux-deep);
  padding: 4.5rem 2rem 2rem 2.5rem;
  background: var(--paper-dark);
  border-left: 4px solid var(--bordeaux);
  position: relative;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.mission-quote:hover {
  transform: translateX(4px);
  box-shadow: 8px 8px 0 rgba(92,26,27,0.08);
}
.mission-quote::before {
  content: "„"; position: absolute; top: -1.5rem; left: 2rem;
  font-size: 6rem; color: var(--copper); line-height: 1;
  font-family: var(--serif); opacity: 1;
}
.mission-quote cite {
  display: block; font-style: normal; font-size: 0.85rem;
  font-family: var(--sans); text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--muted);
  margin-top: 1.5rem; font-weight: 600;
}
.mission-text p { font-size: 1.05rem; margin-bottom: 1.25rem; color: var(--ink-soft); }
.mission-text p:first-child::first-letter {
  font-family: var(--serif); font-size: 4.5rem; float: left;
  line-height: 0.85; padding: 0.4rem 0.7rem 0 0;
  color: var(--bordeaux); font-weight: 700;
}
.mission-text strong { color: var(--bordeaux-deep); }

/* =============================================================
   FOR WHOM
   ============================================================= */
.forwhom {
  background: var(--paper-dark);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: var(--paper-light); padding: 2rem 1.75rem;
  border: 1px solid var(--rule); position: relative;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 40px; height: 3px; background: var(--copper);
  transition: width 0.4s var(--ease-out);
}
.card::after {
  content: ""; position: absolute; top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid; border-width: 0 30px 30px 0;
  border-color: transparent var(--paper-dark) transparent transparent;
  transition: border-width 0.3s var(--ease-out);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(66, 18, 20, 0.14);
}
.card:hover::before { width: 100%; }
.card:hover::after { border-width: 0 40px 40px 0; }
.card-num {
  font-family: var(--serif); font-style: italic;
  font-size: 1rem; color: var(--copper);
  font-weight: 700; letter-spacing: 0.08em;
}
.card h3 {
  font-family: var(--serif); font-size: 1.45rem; font-weight: 700;
  color: var(--bordeaux-deep); margin: 0.5rem 0 0.8rem;
  line-height: 1.2;
}
.card p { font-size: 0.98rem; color: var(--ink-soft); }

/* =============================================================
   SPECIALTIES
   ============================================================= */
.specs { background: var(--paper); }
.specs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.6rem; margin-top: 2rem;
}
.spec {
  display: block; text-decoration: none;
  padding: 1rem 1.25rem; background: var(--paper-light);
  border-left: 3px solid var(--bottle);
  font-weight: 500; color: var(--ink);
  border-top: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: border-left-color 0.3s, background 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
  cursor: pointer; position: relative; overflow: hidden;
}
.spec::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(196,130,74,0.08), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease-out);
}
.spec:hover {
  border-left-color: var(--copper); background: #fff;
  transform: translateX(4px);
  box-shadow: -2px 2px 8px rgba(66,18,20,0.06);
}
.spec:hover::before { transform: translateX(100%); }
.specs-cta {
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 2px solid var(--bordeaux);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.specs-cta p {
  font-family: var(--serif); font-size: 1.2rem;
  font-style: italic; color: var(--bordeaux-deep);
}
.btn-link {
  color: var(--bordeaux); font-weight: 600; text-decoration: none;
  border-bottom: 2px solid var(--copper);
  padding-bottom: 2px; position: relative; transition: color 0.2s;
}
.btn-link .arrow {
  display: inline-block; transition: transform 0.3s var(--ease-out);
}
.btn-link:hover { color: var(--bordeaux-deep); }
.btn-link:hover .arrow { transform: translateX(6px); }

/* =============================================================
   CTA BANNER
   ============================================================= */
.cta-banner {
  background: linear-gradient(rgba(66,18,20,0.96), rgba(66,18,20,0.96));
  color: var(--paper-light);
  padding: 5rem 2rem;
  text-align: center;
  border-top: 6px solid var(--copper);
  border-bottom: 6px solid var(--copper);
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0 30px, rgba(241,233,214,0.025) 30px 31px);
  pointer-events: none;
}
.cta-banner::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 800px; height: 800px;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(196,130,74,0.12);
  border-radius: 50%;
  animation: orbit 60s linear infinite;
  pointer-events: none;
}
@keyframes orbit { to { transform: translate(-50%, -50%) rotate(360deg); } }
.cta-banner > * { position: relative; }
.cta-banner h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400; margin-bottom: 1rem;
  color: var(--paper-light); font-style: italic;
}
.cta-banner p {
  font-size: 1.1rem; margin-bottom: 2rem;
  color: rgba(241,233,214,0.9);
  max-width: 600px; margin-left: auto; margin-right: auto;
}
.phone-big {
  font-family: var(--serif); font-size: 2.8rem;
  color: var(--copper-light); font-weight: 700;
  text-decoration: none; letter-spacing: 0.03em;
  display: inline-block;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.phone-big:hover {
  border-bottom-color: var(--copper-light);
  transform: scale(1.05);
}

.phones-wrapper {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 1.5rem 0;
}

.krs-small { margin-top: 1.5rem; font-size: 0.95rem; }
.krs-small strong { color: var(--copper-light); letter-spacing: 0.05em; }

/* =============================================================
   FOOTER
   ============================================================= */
footer {
  background: var(--bordeaux-deep); color: var(--paper-light);
  padding: 4rem 2rem 1.5rem; position: relative;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(241,233,214,0.15);
}
footer h4 {
  font-family: var(--serif); font-size: 1.15rem;
  color: var(--copper-light); margin-bottom: 1rem;
  font-weight: 700; font-style: italic;
}
footer p, footer a, footer li { color: rgba(241,233,214,0.82); font-size: 0.95rem; line-height: 1.7; }
footer a { text-decoration: none; transition: color 0.2s; }
footer a:hover { color: #fff; text-decoration: underline; }
footer ul { list-style: none; }
footer ul li a {
  position: relative; padding-left: 0;
  transition: padding-left 0.2s;
  display: inline-block;
}
footer ul li a::before {
  content: "→"; position: absolute; left: -20px;
  opacity: 0; transition: all 0.2s var(--ease-out);
  color: var(--copper-light);
}
footer ul li a:hover { padding-left: 20px; }
footer ul li a:hover::before { left: 0; opacity: 1; }
.footer-brand p { margin-top: 0.75rem; font-size: 0.92rem; }
.opp-badge {
  display: inline-block; margin-top: 1rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--copper-light);
  color: var(--copper-light);
  font-size: 0.82rem; text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 600;
  transition: background 0.3s, color 0.3s;
}
.opp-badge:hover { background: var(--copper-light); color: var(--bordeaux-deep); }
.footer-bottom {
  max-width: 1200px; margin: 1.5rem auto 0;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.82rem; color: rgba(241,233,214,0.55);
}

/* =============================================================
   BACK TO TOP
   ============================================================= */
.to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem;
  width: 48px; height: 48px;
  background: var(--bordeaux); color: var(--paper);
  border: 2px solid var(--copper); border-radius: 50%;
  display: grid; place-items: center;
  text-decoration: none; font-size: 1.2rem;
  opacity: 0; pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out), background 0.2s;
  z-index: 40; cursor: pointer;
}
.to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--copper); }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  nav.primary ul {
    display: none; position: absolute; top: 100%;
    left: 0; right: 0; flex-direction: column;
    background: var(--paper-light);
    border-top: 1px solid var(--rule);
    padding: 1rem 2rem; gap: 0;
  }
  nav.primary.open ul { display: flex; }
  nav.primary li { width: 100%; border-bottom: 1px solid var(--rule); }
  nav.primary li:last-child { border-bottom: none; }
  nav.primary a { display: block; padding: 1rem 0; }

  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 1.5rem 4rem; }
  .hero-medal { display: none; }
  .scroll-hint { display: none; }
  .rotator { display: block; min-width: 0; width: auto; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(241,233,214,0.15); }

  section { padding: 3.5rem 1.5rem; }
  .mission-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 1.5rem; }
  .topbar-inner { padding: 0 1.5rem; flex-direction: column; gap: 0.4rem; align-items: flex-start; }
  .header-inner { padding: 1rem 1.5rem; }
  .brand-text .top { font-size: 1.1rem; }
  .brand-text .bot { font-size: 0.7rem; }
  .phone-big { font-size: 2rem; }
}
