/* Layout & page compositions */

.hero {
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero__copy h1 {
  margin-bottom: 1rem;
}

.hero__copy .lead {
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.trust-item {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  color: var(--text-strong);
  margin-bottom: 0.25rem;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.split--reverse > :first-child {
  order: 2;
}

.feature-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.feature-list article {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.feature-list article:last-child {
  border-bottom: 1px solid var(--border);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.process-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  min-height: 100%;
}

.process-card .num {
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.55rem;
}

.pricing-card {
  position: relative;
  overflow: hidden;
}

.pricing-card--featured {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  box-shadow: var(--shadow-md);
}

.pricing-card--featured::before {
  content: "Odporúčané";
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--primary);
  background: var(--accent-soft);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.gallery-grid .media-frame:first-child {
  grid-row: 1 / span 2;
  aspect-ratio: auto;
  min-height: 100%;
}

.cta-band {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 92%, #000), #3d6f58);
  color: #eff5f1;
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-md);
}

.cta-band h2,
.cta-band p {
  color: inherit;
}

.cta-band p {
  opacity: 0.9;
  max-width: 40rem;
}

.cta-band .btn--secondary {
  --btn-bg: transparent;
  --btn-color: #fff;
  --btn-border: rgba(255, 255, 255, 0.45);
}

.cta-band .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.transparency {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.85rem);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}

.contact-card dl {
  margin: 0;
  display: grid;
  gap: 1rem;
}

.contact-card dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-family: var(--font-mono);
}

.contact-card dd {
  margin: 0.25rem 0 0;
  color: var(--text-strong);
  font-weight: 600;
}

.placeholder-field {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: var(--surface-alt);
  border: 1px dashed var(--border-strong);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
}

.thanks-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.thanks-card {
  width: min(100%, 560px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.page-nav-cards a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-nav-cards a:hover h3 {
  color: var(--primary);
}

/* Mobile navigation */
@media (max-width: 1024px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform var(--transition),
      opacity var(--transition);
    z-index: 999;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  body.nav-open .nav {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav__list a {
    min-height: 48px;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-sm);
  }

  .nav__list a::after {
    display: none;
  }

  .nav__cta {
    margin: 0.75rem 0 0;
    width: 100%;
  }

  .nav__cta .btn {
    width: 100%;
  }

  .hero__grid,
  .split,
  .split--reverse,
  .contact-layout,
  .footer-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .split--reverse > :first-child {
    order: 0;
  }

  .gallery-grid .media-frame:first-child {
    grid-row: auto;
    min-height: 240px;
    aspect-ratio: 16 / 10;
  }

  .trust-strip,
  .process-grid,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .trust-strip,
  .process-grid,
  .grid-3,
  .grid-2,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .brand-mark span[data-brand] {
    max-width: 9.5rem;
    font-size: 0.9rem;
  }

  .footer-meta {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .container {
    width: min(100% - 1.25rem, var(--container));
  }

  .hero__copy h1 {
    font-size: clamp(1.85rem, 9vw, 2.3rem);
  }

  .btn {
    width: 100%;
  }

  .btn-group {
    width: 100%;
  }

  .cookie-banner {
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.65rem;
  }
}

/* Hard overflow guard */
section,
header,
footer,
main {
  max-width: 100%;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden !important;
  max-width: 100vw;
}
