/* ===========================
   ROOT & DESIGN TOKENS
   =========================== */
:root {
  --bg: #0A0A0A;
  --surface: #141414;
  --surface-2: #1E1E1E;
  --text: #F5F5F5;
  --text-muted: #9A9A9A;
  --accent: #C8A96E;
  --accent-hover: #D9BC84;
  --border: #2A2A2A;
  --max-w: 1120px;
  --radius: 3px;
  --transition: 220ms ease;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
img, video { max-width: 100%; display: block; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* TYPOGRAPHY */
h1, h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 3.5vw, 3.25rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.125rem; margin-bottom: 0.875rem; }
p { margin-bottom: 1rem; }
a { color: inherit; text-decoration: none; }

/* CONTAINER */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.8125rem 1.875rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), color var(--transition);
  border-radius: var(--radius);
  transform: translateY(0);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  color: #0A0A0A;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(200,169,110,0.5);
}
.btn-ghost:hover {
  background: rgba(200,169,110,0.08);
  border-color: var(--accent);
  color: var(--accent-hover);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: rgba(245,245,245,0.4); }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.site-header.header--scrolled {
  background: rgba(10,10,10,0.96);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text);
  text-decoration: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
  letter-spacing: 0.03em;
}
.nav a:hover { color: var(--text); }
.nav-cta { color: #0A0A0A !important; }

/* Active nav state via data-page */
body[data-page="portfolio"] .nav a[href="/portfolio"],
body[data-page="sluzby"] .nav a[href="/sluzby"],
body[data-page="cenik"] .nav a[href="/cenik"],
body[data-page="idea-statica"] .nav a[href="/idea-statica"],
body[data-page="o-mne"] .nav a[href="/o-mne"],
body[data-page="kontakt"] .nav a[href="/kontakt"] {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

/* HAMBURGER */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

/* SECTION LABEL */
.section-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
@keyframes kenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  animation: kenBurns 16s ease-out forwards;
  transform-origin: center center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10,10,10,0.65) 0%, rgba(10,10,10,0.2) 60%, rgba(10,10,10,0.1) 100%),
    linear-gradient(to bottom, rgba(10,10,10,0.25) 0%, rgba(10,10,10,0.1) 40%, rgba(10,10,10,0.9) 100%);
}
.hero-container {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: 5rem;
}
.hero-content {
  max-width: 720px;
}
.hero h1 {
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.125rem;
  color: rgba(245,245,245,0.75);
  margin-bottom: 2.5rem;
  font-weight: 400;
  max-width: 520px;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* SECTION SPACING */
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
.section-surface { background: var(--surface); }
.section-surface-2 { background: var(--surface-2); }

/* SCROLL REVEAL ANIMATIONS */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }

/* STATS STRIP */
.stats-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  display: flex;
  align-items: stretch;
}
.stat-item {
  flex: 1;
  padding: 2.75rem 2rem;
  border-right: 1px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.25rem, 3.5vw, 3rem);
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
}
.stat-label {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.625rem;
  max-width: 18ch;
  line-height: 1.5;
}

/* PROBLEM STRIP */
.problem-strip {
  background: var(--surface);
  padding: 5rem 0;
}
.problem-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.problem-bold {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}
.problem-body p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin: 0 0 1rem;
}
.problem-body p:last-child { margin: 0; }
.problem-coda {
  color: var(--text) !important;
  font-weight: 500;
}

/* SERVICES GRID */
.services-section { padding: 6rem 0; }
.services-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.services-section .section-link {
  font-size: 0.875rem;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}
.service-card {
  background: var(--surface);
  padding: 3rem 2.5rem;
  transition: background var(--transition);
  position: relative;
}
.service-card:hover { background: var(--surface-2); }
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0;
  background: var(--accent);
  transition: height 0.35s var(--ease-out);
}
.service-card:hover::after { height: 100%; }
.service-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.875rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}
.service-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.625rem;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* CASE STUDY BLOCK */
.case-study-block {
  background: var(--surface);
  padding: 6rem 0;
}
.case-study-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.case-study-eyebrow {
  margin-bottom: 1rem;
}
.case-study-text h2 {
  margin-bottom: 1.5rem;
}
.case-study-text p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.0625rem;
}
.case-study-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* PORTFOLIO GRID */
.portfolio-section { padding: 6rem 0; }
.portfolio-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* IMG PLACEHOLDER */
.img-placeholder {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: var(--radius);
}
.img-placeholder::after {
  content: '';
  display: block;
}
.ratio-3-2 { padding-top: 66.66%; }
.ratio-4-3 { padding-top: 75%; }
.ratio-1-1 { padding-top: 100%; }
.ratio-16-9 { padding-top: 56.25%; }

/* Portfolio tile */
.portfolio-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  display: block;
  background: var(--surface);
}
.portfolio-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.65s var(--ease-out);
}
.portfolio-tile:hover img { transform: scale(1.04); }
.tile-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(10,10,10,0.88) 0%, transparent 100%);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.portfolio-tile:hover .tile-label {
  opacity: 1;
  transform: translateY(0);
}

.service-section-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* Case study images */
.case-study-img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* WHY GRID */
.why-section { padding: 7rem 0; background: var(--surface); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 4rem;
  border-top: 1px solid var(--border);
}
.why-card {
  padding: 2.5rem 3rem 2.5rem 0;
  border-top: 2px solid var(--accent);
  margin-top: -1px;
  position: relative;
}
.why-card:not(:last-child) { border-right: 1px solid var(--border); margin-right: 0; }
.why-card:not(:first-child) { padding-left: 2.5rem; padding-right: 2rem; }
.why-card-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8125rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1.5rem;
}
.why-card h3 { font-size: 1rem; margin-bottom: 0.75rem; letter-spacing: -0.005em; }
.why-card p { color: var(--text-muted); font-size: 0.9375rem; margin: 0; line-height: 1.65; }

/* CTA SECTION */
.cta-section {
  background: var(--bg);
  padding: 9rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(200,169,110,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section > .container { position: relative; z-index: 1; }
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { color: var(--text-muted); margin-bottom: 2.5rem; font-size: 1.0625rem; }

/* FILTER TABS */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 2px;
  transition: all var(--transition);
}
.filter-tab:hover, .filter-tab.active {
  border-color: var(--accent);
  color: var(--accent);
}

/* SERVICE SECTIONS (sluzby.html) */
.service-section {
  padding: 5rem 0;
}
.service-section:nth-child(even) { background: var(--surface); }
.service-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.service-section:nth-child(even) .service-section-image { order: -1; }
.service-section h2 { margin-bottom: 1.5rem; }
.service-section p { color: var(--text-muted); font-size: 1.0625rem; }
.service-includes {
  margin-top: 1.5rem;
  list-style: none;
}
.service-includes li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.service-includes li::before {
  content: '—';
  color: var(--accent);
  flex-shrink: 0;
}
.pricing-anchor {
  background: var(--surface);
  padding: 3rem 0;
  text-align: center;
}
.pricing-anchor .rate {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.pricing-anchor a {
  color: var(--accent);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--accent);
}

/* PRICING PAGE */
.rate-display {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin: 2rem 0;
}
.rate-unit {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.included-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius);
  margin: 3rem 0;
}
.included-box h3 { margin-bottom: 1.5rem; }
.included-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.included-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
}
.included-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 500;
  flex-shrink: 0;
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}
.pricing-table th {
  text-align: left;
  padding: 1rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.pricing-table td {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9375rem;
}
.pricing-table td:last-child { color: var(--accent); font-weight: 500; }
.pricing-table tbody tr:hover { background: var(--surface); }
.table-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1rem;
  font-style: italic;
}
.delivery-box {
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  padding: 2rem;
  margin: 3rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.delivery-box p { color: var(--text-muted); margin-bottom: 0.5rem; }
.delivery-box p:last-child { margin: 0; }

/* FAQ */
.faq-section { padding: 5rem 0; }
.faq-list { max-width: 720px; margin-top: 2.5rem; }
details {
  border-bottom: 1px solid var(--border);
}
details:first-child { border-top: 1px solid var(--border); }
summary {
  list-style: none;
  padding: 1.5rem 0;
  font-size: 1.0625rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--transition);
}
details[open] summary::after {
  transform: rotate(45deg);
}
.faq-answer {
  padding-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* CONTACT FORM */
.contact-page { padding: 6rem 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.contact-intro h1 { margin-bottom: 1.5rem; }
.contact-intro p { color: var(--text-muted); font-size: 1.0625rem; }
.contact-info { margin-top: 3rem; }
.contact-info p { color: var(--text-muted); font-size: 0.9375rem; margin-bottom: 0.5rem; }
.contact-legal {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-legal-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem !important;
}
.contact-legal p { color: var(--text-muted); font-size: 0.8125rem; margin-bottom: 0.35rem; }
.contact-legal p:last-child { margin-bottom: 0; }
.contact-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}
.contact-form label .required { color: var(--accent); margin-left: 2px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--text);
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-field { margin-bottom: 1.5rem; }
.form-submit { margin-top: 2rem; }
.form-submit .btn { width: 100%; text-align: center; }

/* TESTIMONIAL */
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 3rem 0;
}
.testimonial-card blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: var(--text);
}
.testimonial-card cite {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: normal;
}

/* O MNE PAGE */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.about-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.good-fit {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius);
  margin: 3rem 0;
}
.good-fit h3 { margin-bottom: 1.5rem; }
.good-fit ul {
  list-style: none;
}
.good-fit li {
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.good-fit li:last-child { border-bottom: none; }
.good-fit li::before {
  content: '—';
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

/* FOOTER */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.125rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); }
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0 1.5rem;
}
.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--text); }
.footer-copy { text-align: right; }
.footer-copy p { font-size: 0.8125rem; color: var(--text-muted); }

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.lb-open { display: flex; }
.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  display: block;
}
.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.75rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition);
  line-height: 1;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-arrow {
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  opacity: 0.7;
  transition: opacity var(--transition);
  flex-shrink: 0;
}
.lightbox-arrow:hover { opacity: 1; }

/* PAGE HEADER (for inner pages) */
.page-header {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.page-header h1 { margin-bottom: 1rem; }
.page-header p { color: var(--text-muted); font-size: 1.125rem; max-width: 640px; margin: 0; }

/* IDEA STATICA PAGE */
.placeholder-page {
  padding: 6rem 0;
  max-width: 640px;
}

/* HAMBURGER ANIMATION */
.nav-toggle span {
  transition: transform 0.28s var(--ease-out), opacity 0.22s ease;
  transform-origin: center;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    align-items: flex-start;
  }
  .nav.nav--open { display: flex; }
  .nav a { font-size: 1rem; }
  .header-inner { position: relative; }

  .stats-inner { flex-wrap: wrap; }
  .stat-item { flex: 1 1 50%; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(2n) { border-right: none; }

  .services-grid { grid-template-columns: 1fr; background: none; gap: 1px; }
  .case-study-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .case-study-images { flex-direction: row; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .why-grid { grid-template-columns: 1fr; }
  .why-card { padding: 2rem 0; border-right: none !important; }
  .why-card:not(:first-child) { padding-left: 0; }
  .service-section-inner { grid-template-columns: 1fr; gap: 2rem; }
  .service-section:nth-child(even) .service-section-image { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-nav { flex-wrap: wrap; }
  .footer-copy { text-align: left; }
  .included-list { grid-template-columns: 1fr; }
  .hero-container { padding-bottom: 3rem; }
  .hero-content { max-width: 100%; }
  .hero-sub { max-width: 100%; font-size: 1rem; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .problem-cols { grid-template-columns: 1fr; gap: 2rem; }
  .services-section .section-header { flex-direction: column; align-items: flex-start; }
  .portfolio-section .section-header { flex-direction: column; align-items: flex-start; }
  .why-section { padding: 5rem 0; }
  .cta-section { padding: 6rem 0; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
}

@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; gap: 0.5rem; }
  .container { padding: 0 1.25rem; }
  .stat-item { flex: 1 1 100%; border-right: none; }
  .stats-inner { flex-direction: column; }
}

