﻿/* ═══════════════════════════
   RESET & VARIABLES
═══════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue:        #1a4b8c;
  --blue-dark:   #0f3060;
  --blue-mid:    #1e5aa0;
  --blue-light:  #2563c7;
  --accent:      #3b9ede;
  --accent-soft: #d4eaf9;
  --text:        #1e2a3a;
  --text-mid:    #3d4f63;
  --text-light:  #6b7c93;
  --bg:          #ffffff;
  --bg-light:    #f4f8fd;
  --bg-mid:      #eaf2fb;
  --border:      #d8e8f5;
  --shadow-sm:   0 2px 8px rgba(26,75,140,.08);
  --shadow-md:   0 8px 28px rgba(26,75,140,.12);
  --shadow-lg:   0 20px 60px rgba(26,75,140,.18);
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --transition:  .22s cubic-bezier(.4,0,.2,1);
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ═══════════════════════════
   ANIMATIONS
═══════════════════════════ */

/* Keyframes */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(48px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(-48px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes floatX {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(6px); }
}
@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: .6; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes countUp {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes barGrow {
  from { width: 0; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.88); }
  to   { opacity: 1; transform: scale(1); }
}

/* Scroll-triggered reveal classes */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.from-left  { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.scale      { transform: scale(.9); }

.reveal.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delays */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: .1s; }
.stagger > *:nth-child(3) { transition-delay: .2s; }
.stagger > *:nth-child(4) { transition-delay: .3s; }
.stagger > *:nth-child(5) { transition-delay: .4s; }
.stagger > *:nth-child(6) { transition-delay: .5s; }

/* ═══════════════════════════
   TYPOGRAPHY HELPERS
═══════════════════════════ */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-soft);
  color: var(--blue);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.section-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.section-header {
  max-width: 620px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-header h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.3rem);
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.2;
  margin-bottom: 12px;
}
.section-header p { color: var(--text-light); font-size: 1.05rem; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 5%; }

/* ═══════════════════════════
   BUTTONS
═══════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 18px rgba(26,75,140,.30);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 26px rgba(26,75,140,.38); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

.btn-white { background: #fff; color: var(--blue); box-shadow: var(--shadow-md); }
.btn-white:hover { background: var(--bg-light); transform: translateY(-2px); }

.btn-sm { padding: 10px 20px; font-size: .85rem; }

/* ═══════════════════════════
   NAVIGATION
═══════════════════════════ */
#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: 70px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  padding: 0 5%;
  transition: box-shadow var(--transition), background var(--transition);
  animation: slideDown .5s ease both;
}
#navbar.scrolled { box-shadow: var(--shadow-md); background: rgba(255,255,255,.99); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-logo-img {
  height: 44px;
  width: auto;
  display: block;
  transition: opacity .2s;
}
.nav-logo:hover .nav-logo-img { opacity: .85; }

.nav-links { display: flex; align-items: center; list-style: none; gap: 2px; }
.nav-links a {
  text-decoration: none; color: var(--text-mid);
  font-size: 1.22rem; font-weight: 800;
  padding: 8px 13px; border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 13px; right: 13px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .25s;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }

.nav-cta-group { display: flex; align-items: center; gap: 12px; }
.nav-phone {
  display: flex; align-items: center; gap: 6px;
  text-decoration: none; color: var(--blue);
  font-weight: 600; font-size: .88rem;
  transition: transform .2s;
}
.nav-phone:hover { transform: scale(1.04); }
.nav-phone svg { width: 15px; height: 15px; fill: var(--blue); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--blue); border-radius: 2px; transition: var(--transition); }

.nav-drawer {
  display: none; flex-direction: column;
  position: fixed; top: 70px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md); padding: 16px 5% 24px;
  z-index: 999; gap: 4px;
  animation: slideDown .25s ease both;
}
.nav-drawer.open { display: flex; }
.nav-drawer a { text-decoration: none; color: var(--text); font-size: .95rem; font-weight: 500; padding: 12px 14px; border-radius: var(--radius-sm); border-bottom: 1px solid var(--bg-light); transition: var(--transition); }
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { background: var(--bg-light); color: var(--blue); padding-left: 20px; }

/* ═══════════════════════════
   PAGE HERO BANNER
═══════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 60%, var(--blue-light) 100%);
  padding: 130px 5% 80px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
@keyframes heroShine {
  0%   { transform: translateX(-120%) skewX(-20deg); }
  100% { transform: translateX(500%)  skewX(-20deg); }
}
.page-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.14) 50%, transparent 100%);
  animation: heroShine 5s ease-in-out infinite;
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(1.8rem,3.5vw,2.8rem); font-weight: 800; margin-bottom: 12px; animation: fadeUp .7s ease both; }
.page-hero p  { font-size: 1.05rem; color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto 20px; animation: fadeUp .7s .15s ease both; }

.breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 18px;
  animation: fadeUp .7s .05s ease both;
}
.breadcrumb a { color: rgba(255,255,255,.8); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { opacity: .5; }

/* ═══════════════════════════
   HOME HERO — BLENDED PHOTO
═══════════════════════════ */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  padding-top: 70px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #e8f2fc 0%, #f4f9ff 50%, #deeefa 100%);
}

/* Background decorative circles */
#hero::before {
  content: '';
  position: absolute;
  top: -200px; right: 40%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(59,158,222,.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-text-col {
  display: flex;
  align-items: center;
  padding: 80px 5% 80px 8%;
  position: relative;
  z-index: 2;
}

.hero-text-inner { max-width: 540px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--blue);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  animation: fadeRight .7s .1s ease both;
}
.hero-badge::before { content: ''; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse-ring 1.5s infinite; }

.hero-text-inner h1 {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.13;
  margin-bottom: 20px;
  animation: fadeRight .7s .2s ease both;
}
.hero-text-inner h1 em { font-style: normal; color: var(--blue-light); }

.hero-text-inner p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 460px;
  margin-bottom: 38px;
  line-height: 1.75;
  animation: fadeRight .7s .3s ease both;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; animation: fadeRight .7s .4s ease both; }

.hero-stats {
  display: flex;
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  animation: fadeRight .7s .5s ease both;
}
.stat strong { display: block; font-size: 2rem; font-weight: 800; color: var(--blue); line-height: 1; }
.stat span   { font-size: .78rem; color: var(--text-light); margin-top: 5px; display: block; }

/* ── Photo column — blended ── */
.hero-photo-col {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  animation: fadeIn 1s .3s ease both;
}

.hero-photo-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Gradient mask blending left edge + bottom into background */
.hero-photo-col::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  #ecf4fb 0%, rgba(236,244,251,0) 30%),
    linear-gradient(to top,    #e8f2fc 0%, rgba(232,242,252,0) 20%),
    linear-gradient(to bottom, #edf5fd 0%, rgba(237,245,253,0) 15%);
  z-index: 2;
  pointer-events: none;
}

/* Floating credential card */
.hero-card {
  position: absolute;
  bottom: 48px; left: 32px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: 0 12px 40px rgba(26,75,140,.22);
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 230px;
  z-index: 3;
  animation: floatY 4s ease-in-out infinite, fadeIn .8s .8s ease both;
}
.hero-card-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-card-icon svg { width: 22px; height: 22px; fill: #fff; }
.hero-card-text strong { display: block; font-size: .85rem; font-weight: 700; color: var(--text); }
.hero-card-text span  { font-size: .74rem; color: var(--text-light); }

/* Floating badge top */
.hero-badge-float {
  position: absolute;
  top: 40px; right: 40px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-md);
  font-size: .82rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
  z-index: 3;
  animation: floatX 5s ease-in-out infinite, fadeIn .8s 1s ease both;
}
.hero-badge-float strong { display: block; font-size: 1.5rem; font-weight: 800; }

/* ═══════════════════════════
   QUICK STRIP
═══════════════════════════ */
@keyframes stripShine {
  0%   { transform: translateX(-100%) skewX(-20deg); }
  100% { transform: translateX(400%) skewX(-20deg); }
}
.services-strip {
  background: var(--blue-dark);
  padding: 0 5%;
  position: relative;
  overflow: hidden;
}
.services-strip::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.18) 50%, transparent 100%);
  animation: stripShine 4s ease-in-out infinite;
  pointer-events: none;
}
.strip-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.strip-item {
  display: flex; align-items: center; gap: 14px;
  padding: 24px 20px;
  border-right: 1px solid rgba(255,255,255,.1);
  color: #fff; text-decoration: none;
  transition: var(--transition);
}
.strip-item:last-child { border-right: none; }
.strip-item:hover { background: rgba(255,255,255,.07); transform: translateY(-2px); }
.strip-icon { width: 38px; height: 38px; flex-shrink: 0; }
.strip-icon svg { width: 100%; height: 100%; fill: var(--accent); }
.strip-text strong { display: block; font-size: .88rem; font-weight: 700; }
.strip-text span   { font-size: .76rem; color: rgba(255,255,255,.6); }

/* ═══════════════════════════
   MEDICAL PANEL ILLUSTRATIONS
═══════════════════════════ */

/* Shared panel base */
.med-panel {
  width: 100%; height: 100%;
  min-height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dot-grid texture overlay */
.med-panel::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 1;
}

/* Sweep shine animation */
@keyframes panelShine {
  0%   { transform: translateX(-100%) rotate(20deg); }
  100% { transform: translateX(300%)  rotate(20deg); }
}
.med-panel::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 60%; height: 200%;
  background: linear-gradient(to right, transparent 0%, rgba(255,255,255,.08) 50%, transparent 100%);
  animation: panelShine 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.med-panel svg.art { position: relative; z-index: 2; }

/* ── Colour themes ── */
.panel-usg       { background: linear-gradient(145deg, #0a2a5e 0%, #1256a0 50%, #1a80c4 100%); }
.panel-prostata  { background: linear-gradient(145deg, #0f3060 0%, #1a5a8a 50%, #147a9e 100%); }
.panel-kamica    { background: linear-gradient(145deg, #1a3a7a 0%, #2857a3 50%, #4a8fd4 100%); }
.panel-infekcje  { background: linear-gradient(145deg, #0a3a5e 0%, #0f6080 50%, #128faa 100%); }
.panel-onkologia { background: linear-gradient(145deg, #1e1a5e 0%, #1a3a8c 50%, #1a5cb0 100%); }
.panel-ntm       { background: linear-gradient(145deg, #0f3a5a 0%, #1a5878 50%, #2882a4 100%); }

/* Detail panels (uslugi page) */
.panel-detail {
  width: 100%; min-height: 340px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.panel-detail::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.panel-detail svg.art { position: relative; z-index: 2; }

/* Blog thumb panels */
.panel-blog {
  width: 100%; height: 210px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.panel-blog::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 18px 18px;
}
.panel-blog svg { position: relative; z-index: 2; }

/* ── Badge overlay on doctor photo ── */
.doctor-badge-overlay {
  position: absolute;
  left: 33%;
  top: 73%;
  z-index: 10;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 4px 8px 5px;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  line-height: 1.3;
  pointer-events: none;
}
.doctor-badge-overlay .badge-line1 {
  display: block;
  font-size: .55rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: .04em;
  font-family: 'Segoe UI', Arial, sans-serif;
}
.doctor-badge-overlay .badge-line2 {
  display: block;
  font-size: .48rem;
  font-weight: 600;
  color: #333;
  letter-spacing: .06em;
  font-family: 'Segoe UI', Arial, sans-serif;
}

/* Subtle extra animations */
@keyframes gentlePulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(26,75,140,.30); }
  50%       { box-shadow: 0 6px 28px rgba(26,75,140,.55); }
}
@keyframes softGlow {
  0%, 100% { opacity: .6; }
  50%       { opacity: 1; }
}
@keyframes ripple {
  0%   { transform: scale(0); opacity: .4; }
  100% { transform: scale(3); opacity: 0; }
}

/* Pulsing CTA button */
.btn-primary { animation: gentlePulse 3s ease-in-out infinite; }
.btn-primary:hover { animation: none; }

/* Floating dots behind hero */
@keyframes drift {
  0%   { transform: translateY(0)   rotate(0deg); opacity: .3; }
  50%  { transform: translateY(-20px) rotate(180deg); opacity: .6; }
  100% { transform: translateY(0)   rotate(360deg); opacity: .3; }
}
.hero-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: .2;
  animation: drift var(--d, 6s) ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* Ripple on click */
.ripple-btn { position: relative; overflow: hidden; }
.ripple-btn .ripple-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  transform: scale(0);
  animation: ripple .6s linear;
  pointer-events: none;
}

/* Section divider wave */
.wave-divider {
  width: 100%; overflow: hidden;
  line-height: 0; margin-bottom: -1px;
}
.wave-divider svg { display: block; }

/* ═══════════════════════════
   SERVICES CARDS WITH PHOTOS
═══════════════════════════ */
#uslugi-section, .uslugi-page { padding: 96px 5%; background: var(--bg); }

.services-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s;
  position: relative;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(26,75,140,.15); }

.service-card-photo {
  width: 100%; height: 200px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%);
  flex-shrink: 0;
}
.service-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.service-card:hover .service-card-photo img { transform: scale(1.07); }
.service-card-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,48,96,.65) 0%, transparent 55%);
}

.service-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 10px; }
.service-card p  { font-size: .88rem; color: var(--text-light); line-height: 1.7; flex: 1; }
.service-card .card-link {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 18px; font-size: .83rem; font-weight: 700;
  color: var(--blue); text-decoration: none;
  transition: gap .2s;
}
.service-card .card-link:hover { gap: 10px; }
.service-card .card-link svg { width: 14px; height: 14px; fill: var(--blue); }

/* ═══════════════════════════
   ABOUT SECTION (home)
═══════════════════════════ */
#o-mnie-home { background: var(--bg-light); padding: 96px 5%; }

.about-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}

.about-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.about-img img { width: 100%; height: auto; transition: transform .6s; }
.about-img:hover img { transform: scale(1.03); }
.about-img-badge {
  position: absolute; bottom: 24px; right: 24px;
  background: var(--blue); color: #fff;
  border-radius: var(--radius-md); padding: 14px 18px;
  text-align: center; font-size: .78rem; line-height: 1.4;
  box-shadow: var(--shadow-md);
}
.about-img-badge strong { display: block; font-size: 1.5rem; }

.about-text .section-tag { margin-bottom: 10px; }
.about-text h2 { font-size: clamp(1.6rem,2.4vw,2.1rem); font-weight: 800; color: var(--blue-dark); margin-bottom: 14px; line-height: 1.25; }
.about-text .lead { font-size: 1.05rem; color: var(--text-mid); margin-bottom: 24px; line-height: 1.7; }

.check-list { list-style: none; margin-bottom: 32px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 11px;
  margin-bottom: 13px; font-size: .93rem; color: var(--text-mid);
}
.check-list li::before {
  content: '';
  flex-shrink: 0; width: 20px; height: 20px;
  background: var(--blue); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
  margin-top: 2px;
}

.cert-strip { display: flex; gap: 12px; flex-wrap: wrap; }
.cert-pill {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 2px solid var(--border);
  border-radius: 30px; padding: 8px 18px;
  font-size: .8rem; font-weight: 700; color: var(--blue);
  transition: border-color .2s, box-shadow .2s;
}
.cert-pill:hover { border-color: var(--blue); box-shadow: 0 4px 12px rgba(26,75,140,.12); }
.cert-pill svg { width: 16px; height: 16px; fill: var(--blue); }

/* ═══════════════════════════
   TESTIMONIALS
═══════════════════════════ */
#opinie-section { background: var(--bg); padding: 96px 5%; }

.testimonials-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;
}
.t-card {
  background: var(--bg-light); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px;
  transition: transform .3s, box-shadow .3s;
}
.t-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.t-stars { color: #f5a623; font-size: .95rem; letter-spacing: 2px; margin-bottom: 14px; }
.t-card blockquote { font-size: .91rem; color: var(--text-mid); line-height: 1.75; font-style: italic; margin-bottom: 22px; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 40px; height: 40px; background: var(--blue); border-radius: 50%;
  color: #fff; font-weight: 700; font-size: .88rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.t-name strong { display: block; font-size: .85rem; font-weight: 700; }
.t-name span   { font-size: .76rem; color: var(--text-light); }

/* ═══════════════════════════
   CTA BANNER
═══════════════════════════ */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-light) 100%);
  padding: 80px 5%; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; top: -50px; right: -50px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  pointer-events: none;
}
.cta-banner h2 { font-size: clamp(1.6rem,2.5vw,2.1rem); font-weight: 800; margin-bottom: 12px; }
.cta-banner p  { font-size: 1.05rem; color: rgba(255,255,255,.75); max-width: 520px; margin: 0 auto 32px; }
.cta-banner .cta-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ═══════════════════════════
   BLOG
═══════════════════════════ */
.blog-page { padding: 80px 5%; background: var(--bg); }

.blog-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 30px;
}

.blog-card {
  background: var(--bg); border: 3px solid #c8d8ee;
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--blue); }

.blog-card-thumb {
  background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%);
  height: 210px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .5s; }
.blog-card:hover .blog-card-thumb img { transform: scale(1.06); }
.blog-card-thumb svg { width: 64px; height: 64px; fill: rgba(255,255,255,.3); }

.blog-card-cat {
  position: absolute; top: 18px; left: 0; z-index: 2;
  background: #3ab5d8; color: #fff;
  font-size: .82rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; padding: 6px 18px 6px 16px;
  border-radius: 0 20px 20px 0;
  box-shadow: 2px 2px 8px rgba(0,0,0,.20);
}

.blog-card-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta { font-size: .76rem; color: var(--text-light); margin-bottom: 10px; display: flex; gap: 12px; }
.blog-card-body h3 { font-size: 1.22rem; font-weight: 800; color: var(--blue-dark); margin-bottom: 10px; line-height: 1.35; }
.blog-card-body p  { font-size: .87rem; color: var(--text-light); line-height: 1.7; flex: 1; }
.blog-card-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; align-self: flex-start;
  font-size: .84rem; font-weight: 700;
  color: #fff; text-decoration: none;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  padding: 9px 20px; border-radius: 30px;
  position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 4px 14px rgba(26,75,140,.30);
}
.blog-card-link::after {
  content: '';
  position: absolute; top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.30), transparent);
  animation: frameShine 2.8s ease-in-out infinite;
}
.blog-card-link svg { width: 15px; height: 15px; fill: #fff; transition: transform .25s ease; }
.blog-card-link:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(26,75,140,.45); }
.blog-card-link:hover svg { transform: translateX(4px); }

/* Article */
.article-layout {
  max-width: 1180px; margin: 0 auto; padding: 64px 5%;
  display: grid; grid-template-columns: 1fr 320px; gap: 60px; align-items: start;
}
.article-content h2 { font-size: 1.4rem; font-weight: 700; color: var(--blue-dark); margin: 32px 0 12px; }
.article-content h3 { font-size: 1.1rem; font-weight: 700; color: var(--blue-dark); margin: 24px 0 10px; }
.article-content p  { color: var(--text-mid); line-height: 1.8; margin-bottom: 16px; }
.article-content ul { padding-left: 20px; margin-bottom: 16px; }
.article-content ul li { color: var(--text-mid); line-height: 1.8; margin-bottom: 6px; }
.article-content .highlight-box {
  background: var(--accent-soft); border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px; margin: 28px 0; font-size: .93rem; color: var(--text-mid);
}

.article-sidebar { position: sticky; top: 90px; }
.sidebar-widget {
  background: var(--bg-light); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px; margin-bottom: 22px;
}
.sidebar-widget h4 { font-size: .9rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 14px; }
.sidebar-widget ul { list-style: none; }
.sidebar-widget ul li a {
  display: block; padding: 8px 0; font-size: .85rem; color: var(--text-mid);
  text-decoration: none; border-bottom: 1px solid var(--border); transition: var(--transition);
}
.sidebar-widget ul li:last-child a { border-bottom: none; }
.sidebar-widget ul li a:hover { color: var(--blue); padding-left: 5px; }

/* ═══════════════════════════
   CONTACT
═══════════════════════════ */
.contact-page { padding: 80px 5%; background: var(--bg); }
.contact-layout {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start;
}
.contact-info h2 { font-size: 1.8rem; font-weight: 800; color: var(--blue-dark); margin-bottom: 14px; }
.contact-info .lead { color: var(--text-light); margin-bottom: 36px; font-size: 1rem; }

.contact-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.ci-icon {
  width: 46px; height: 46px; background: var(--accent-soft);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .2s;
}
.contact-item:hover .ci-icon { background: var(--blue); }
.contact-item:hover .ci-icon svg { fill: #fff; }
.ci-icon svg { width: 22px; height: 22px; fill: var(--blue); transition: fill .2s; }
.ci-text strong { display: block; font-size: .76rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.ci-text a, .ci-text p { font-size: .97rem; font-weight: 600; color: var(--text); text-decoration: none; line-height: 1.55; }
.ci-text a:hover { color: var(--blue); }

.hours-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin-top: 6px; }
.hours-table td { padding: 5px 0; color: var(--text-mid); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--text); }

.contact-form-box {
  background: var(--bg-light); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
}
.contact-form-box h3 { font-size: 1.25rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 24px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .8rem; font-weight: 600; color: var(--text-mid); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px 15px;
  font-family: inherit; font-size: .92rem; color: var(--text);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,75,140,.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-submit {
  width: 100%; background: var(--blue); color: #fff;
  border: none; border-radius: var(--radius-sm); padding: 16px;
  font-size: .97rem; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: var(--transition); margin-top: 6px;
}
.form-submit:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.map-placeholder {
  background: linear-gradient(135deg, var(--bg-mid) 0%, var(--accent-soft) 100%);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  height: 240px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  color: var(--text-light); font-size: .88rem; margin-top: 28px;
  text-decoration: none; transition: var(--transition);
}
.map-placeholder:hover { border-color: var(--blue); color: var(--blue); transform: scale(1.01); }
.map-placeholder svg { width: 36px; height: 36px; fill: var(--blue); opacity: .5; }

/* ═══════════════════════════
   O MNIE – full page
═══════════════════════════ */
.about-page { padding: 80px 5%; background: var(--bg); }
.about-page-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 380px 1fr; gap: 72px; align-items: start;
}
.about-sticky-col { position: sticky; top: 90px; }

.dr-card {
  background: var(--bg-light); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; text-align: center;
}
.dr-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; transition: transform .5s; }
.dr-card:hover img { transform: scale(1.03); }
.dr-card-body { padding: 24px; }
.dr-card-body h3 { font-size: 1.2rem; font-weight: 800; color: var(--blue-dark); margin-bottom: 4px; }
.dr-card-body span { font-size: .85rem; color: var(--text-light); }
.dr-card-certs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0; }
.dr-cert { background: var(--accent-soft); color: var(--blue); font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.dr-card-contact { border-top: 1px solid var(--border); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.dr-contact-link {
  display: flex; align-items: center; gap: 9px;
  font-size: .85rem; font-weight: 600; color: var(--blue);
  text-decoration: none; justify-content: center; transition: var(--transition);
}
.dr-contact-link:hover { color: var(--blue-dark); }
.dr-contact-link svg { width: 16px; height: 16px; fill: var(--blue); }

.about-content h2 { font-size: 1.5rem; font-weight: 800; color: var(--blue-dark); margin-bottom: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.about-content p  { color: var(--text-mid); line-height: 1.8; margin-bottom: 16px; }

.timeline { margin: 28px 0; border-left: 2px solid var(--border); padding-left: 28px; }
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-item::before {
  content: '';
  position: absolute; left: -37px; top: 4px;
  width: 16px; height: 16px; background: var(--blue); border-radius: 50%;
  border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--blue);
  transition: transform .2s;
}
.timeline-item:hover::before { transform: scale(1.3); }
.timeline-item .year { font-size: .76rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.timeline-item h4 { font-size: .97rem; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.timeline-item p  { font-size: .87rem; color: var(--text-light); margin: 0; }

.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.skill-item { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; }
.skill-item strong { display: block; font-size: .85rem; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.skill-bar { height: 5px; background: var(--border); border-radius: 5px; }
.skill-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--blue), var(--accent));
  border-radius: 5px; width: 0;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}
.skill-bar-fill.animated { /* width set by inline style */ }

/* ═══════════════════════════
   FOOTER
═══════════════════════════ */
footer { background: #07193a; color: rgba(255,255,255,.55); }

.footer-top {
  max-width: 1180px; margin: 0 auto;
  padding: 60px 5% 40px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand .brand-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; margin-bottom: 16px;
}
.footer-brand .brand-logo-mark {
  width: 36px; height: 36px; background: var(--blue); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.footer-brand .brand-logo-mark svg { width: 18px; height: 18px; fill: #fff; }
.footer-brand .brand-logo strong { color: #fff; font-size: .9rem; }
.footer-brand p { font-size: .84rem; line-height: 1.7; max-width: 280px; margin-bottom: 20px; }

.footer-col h4 { color: #fff; font-size: .85rem; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .05em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a {
  font-size: .83rem; color: rgba(255,255,255,.5);
  text-decoration: none; transition: var(--transition);
  display: inline-block;
}
.footer-col ul li a:hover { color: rgba(255,255,255,.9); transform: translateX(4px); }

.footer-contact-list { list-style: none !important; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.footer-contact-list li svg { width: 14px; height: 14px; fill: var(--accent); flex-shrink: 0; margin-top: 2px; }
.footer-contact-list li a,
.footer-contact-list li span { font-size: .83rem; color: rgba(255,255,255,.6); text-decoration: none; }
.footer-contact-list li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 5%; text-align: center; font-size: .8rem;
}
.footer-bottom a { color: rgba(255,255,255,.5); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,.9); }

/* ═══════════════════════════
   USLUGI page extras
═══════════════════════════ */
.service-detail {
  max-width: 1180px; margin: 0 auto; padding: 72px 5%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
  border-bottom: 1px solid var(--border);
}
.service-detail:last-child { border-bottom: none; }
.service-detail.reverse .sd-text  { order: 2; }
.service-detail.reverse .sd-visual { order: 1; }

.sd-tag { display: inline-block; background: var(--accent-soft); color: var(--blue); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; }
.sd-text h2 { font-size: 1.55rem; font-weight: 800; color: var(--blue-dark); margin-bottom: 12px; }
.sd-text p  { color: var(--text-mid); line-height: 1.8; margin-bottom: 14px; }
.sd-text ul { padding-left: 18px; margin-bottom: 20px; }
.sd-text ul li { color: var(--text-mid); line-height: 1.8; margin-bottom: 6px; }

.sd-visual {
  border-radius: var(--radius-lg); overflow: hidden;
  min-height: 300px; position: relative;
  box-shadow: var(--shadow-md);
}
.sd-visual img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; transition: transform .5s; }
.sd-visual:hover img { transform: scale(1.04); }

.info-box {
  background: var(--accent-soft); border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px; font-size: .88rem; color: var(--text-mid); margin-top: 12px;
}
.info-box strong { color: var(--blue); }

/* Blog featured */
.blog-featured {
  max-width: 1180px; margin: 0 auto 48px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
  border-radius: var(--radius-lg); overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; min-height: 320px;
}
.featured-text { padding: 48px; color: #fff; display: flex; flex-direction: column; justify-content: center; }
.featured-cat { display: inline-block; background: rgba(255,255,255,.2); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 12px; border-radius: 20px; margin-bottom: 14px; }
.featured-text h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 12px; line-height: 1.3; }
.featured-text p  { font-size: .95rem; color: rgba(255,255,255,.75); margin-bottom: 24px; line-height: 1.7; }
.featured-text .btn-white { align-self: flex-start; font-size: .88rem; }
.featured-visual { overflow: hidden; position: relative; }
.featured-visual img { width: 100%; height: 100%; object-fit: cover; }
.blog-filters { max-width: 1180px; margin: 0 auto 40px; display: flex; gap: 10px; flex-wrap: wrap; }
.filter-btn {
  background: var(--bg-light); border: 1px solid var(--border); border-radius: 20px;
  padding: 8px 18px; font-size: .82rem; font-weight: 600; color: var(--text-mid);
  cursor: pointer; transition: var(--transition); font-family: inherit;
}
.filter-btn:hover, .filter-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ═══════════════════════════
   RESPONSIVE
═══════════════════════════ */
@media (max-width: 1024px) {
  .strip-inner { grid-template-columns: repeat(2,1fr); }
  .strip-item:nth-child(2) { border-right: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-text-col { padding: 60px 5% 0; }
  .hero-photo-col { height: 480px; }
  .hero-badge-float { top: auto; bottom: 150px; right: 12px; }
  .hero-photo-col::before {
    background: linear-gradient(to top, #e8f2fc 0%, rgba(232,242,252,0) 30%),
                linear-gradient(to bottom, #edf5fd 0%, rgba(237,245,253,0) 15%);
  }
  .about-inner       { grid-template-columns: 1fr; }
  .contact-layout    { grid-template-columns: 1fr; }
  .about-page-inner  { grid-template-columns: 1fr; }
  .article-layout    { grid-template-columns: 1fr; }
  .about-sticky-col  { position: static; }
  .article-sidebar   { position: static; }
  .service-detail    { grid-template-columns: 1fr; gap: 32px; }
  .service-detail.reverse .sd-text  { order: 1; }
  .service-detail.reverse .sd-visual { order: 2; }
  .blog-featured { grid-template-columns: 1fr; }
  .featured-visual { display: none; }
  .nav-links, .nav-cta-group { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 640px) {
  .hero-text-col { padding: 48px 5% 0; }
  #uslugi-section, #o-mnie-home, #opinie-section, .cta-banner,
  .blog-page, .contact-page, .about-page, .uslugi-page { padding-left: 4%; padding-right: 4%; }
  .strip-inner { grid-template-columns: 1fr; }
  .strip-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .contact-form-box { padding: 24px; }
}



/* ── Article photo frame ── */
@keyframes frameShine {
  0%   { transform: translateX(-150%) skewX(-20deg); }
  100% { transform: translateX(250%) skewX(-20deg); }
}

/* Outer wrapper: elevation shadow + hover scale */
.article-photo-frame {
  position: relative;
  border-radius: 18px;
  box-shadow:
    0 0 0 3px rgba(45,125,210,.55),
    0 0 0 8px rgba(26,75,140,.18),
    0 16px 48px rgba(26,75,140,.35),
    0 4px 16px rgba(0,0,0,.18);
  transition: transform .35s ease, box-shadow .35s ease;
  background: linear-gradient(135deg,#1a4b8c,#2d7dd2,#5bb8d4,#1a4b8c);
  padding: 5px;
}
.article-photo-frame:hover {
  transform: scale(1.025);
  box-shadow:
    0 0 0 4px rgba(45,125,210,.75),
    0 0 0 12px rgba(45,125,210,.22),
    0 24px 64px rgba(26,75,140,.50),
    0 8px 24px rgba(0,0,0,.22);
}

/* Inner clip: hides the overflow so shine stays inside */
.article-photo-frame .frame-inner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}

/* Shine beam — lives inside frame-inner so it doesn't bleed */
.article-photo-frame .frame-inner::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 45%; height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,.28) 40%,
    rgba(255,255,255,.10) 60%,
    transparent 100%);
  animation: frameShine 3.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
