:root {
  --ink: #0b1c28;
  --ink-soft: #1a3344;
  --mist: #e7eef2;
  --paper: #f4f7f9;
  --line: rgba(11, 28, 40, 0.12);
  --gold: #c9a227;
  --gold-deep: #a88412;
  --sky: #3d7a8c;
  --white: #fff;
  --shadow: 0 24px 60px rgba(11, 28, 40, 0.18);
  --font-brand: "Syne", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Nav */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(11, 28, 40, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}

.brand {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--white);
}

.brand em {
  font-style: normal;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--gold);
  color: var(--ink) !important;
  font-weight: 700;
  padding: 0.65rem 1rem;
  border-radius: 999px;
}

.nav-cta::after {
  display: none !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--white);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: hero-zoom 18s var(--ease) forwards;
}

@keyframes hero-zoom {
  to {
    transform: scale(1);
  }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 28, 40, 0.55) 0%, rgba(11, 28, 40, 0.25) 35%, rgba(11, 28, 40, 0.88) 100%),
    radial-gradient(ellipse at 20% 20%, rgba(61, 122, 140, 0.35), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 8rem 0 5rem;
}

.hero-brand {
  font-family: var(--font-brand);
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 1.25rem;
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

.hero-brand em {
  font-style: normal;
  color: var(--gold);
}

.hero h1 {
  font-family: var(--font-brand);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  max-width: 22ch;
  margin: 0 0 0.85rem;
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.9s var(--ease) 0.3s forwards;
}

.hero p {
  max-width: 38ch;
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.9s var(--ease) 0.45s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.9s var(--ease) 0.6s forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
}

.btn-primary:hover {
  background: #d8b33a;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--ink-soft);
}

/* Sections */
section {
  padding: 5.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.65rem;
}

.section-head h2,
.page-hero h1 {
  font-family: var(--font-brand);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
}

.section-head p {
  margin: 0;
  color: rgba(11, 28, 40, 0.72);
  font-size: 1.08rem;
}

/* About */
.about {
  background:
    linear-gradient(135deg, #f7fafb 0%, #e8f1f4 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.about-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.about-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.about-visual::before {
  content: "";
  position: absolute;
  inset: auto -8% -8% auto;
  width: 55%;
  height: 55%;
  background: var(--gold);
  z-index: -1;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: var(--font-brand);
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat span {
  font-size: 0.92rem;
  color: rgba(11, 28, 40, 0.65);
}

/* Services */
.services {
  background: var(--ink);
  color: var(--white);
}

.services .eyebrow {
  color: var(--gold);
}

.services .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.service {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  align-items: stretch;
  min-height: 180px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}

.service:hover {
  border-color: rgba(201, 162, 39, 0.55);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-3px);
}

.service img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 180px;
}

.service-body {
  padding: 1.35rem 1.35rem 1.35rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service h3 {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.service p {
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
}

.service a {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.92rem;
}

/* Insurers */
.insurers {
  padding: 4.5rem 0;
  background: var(--mist);
}

.insurers .section-head {
  margin-bottom: 1.25rem;
}

.insurers-list {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.45;
  color: var(--ink);
  max-width: 40rem;
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-item {
  padding: 0;
  border-top: 2px solid var(--gold);
  padding-top: 1.25rem;
}

.why-item h3 {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  margin: 0 0 0.55rem;
}

.why-item p {
  margin: 0;
  color: rgba(11, 28, 40, 0.7);
}

/* Local band */
.local {
  position: relative;
  color: var(--white);
  padding: 6rem 0;
  overflow: hidden;
}

.local-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.local-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.local-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 28, 40, 0.92) 0%, rgba(11, 28, 40, 0.72) 55%, rgba(11, 28, 40, 0.45) 100%);
}

.local .container {
  position: relative;
  z-index: 1;
}

.local h2 {
  font-family: var(--font-brand);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin: 0 0 1rem;
}

.local p {
  max-width: 46ch;
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.82);
}

.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  max-width: 42rem;
}

.area-chips li {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.area-chips a {
  color: inherit;
}

.area-groups {
  display: grid;
  gap: 1.75rem;
  margin: 1.75rem 0 2rem;
}

.area-groups h3 {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  margin: 0 0 0.65rem;
}

.area-groups .area-chips li {
  background: var(--mist);
  border-color: var(--line);
  color: var(--ink);
}

.faq-list {
  display: grid;
  gap: 0;
  max-width: 46rem;
}

.faq-list details {
  border-top: 1px solid var(--line);
  padding: 1.05rem 0;
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.12rem;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--gold-deep);
  font-weight: 800;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  margin: 0.75rem 0 0;
  color: rgba(11, 28, 40, 0.72);
}

.related {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0 0;
}

.related a {
  display: block;
  background: var(--mist);
  padding: 1.1rem 1.2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  text-decoration: none;
}

.related a span {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sky);
  margin-bottom: 0.25rem;
}

.prose a:not(.btn) {
  color: var(--sky);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.prose a.btn {
  margin-top: 0.5rem;
}

/* Contact */
.contact {
  background: var(--mist);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact-card {
  background: var(--white);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  font-family: var(--font-brand);
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  display: grid;
  gap: 0.15rem;
}

.contact-list span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(11, 28, 40, 0.55);
  font-weight: 700;
}

.contact-list a,
.contact-list strong {
  font-size: 1.15rem;
  font-weight: 650;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  font: inherit;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.85rem 0.95rem;
  border-radius: 0.4rem;
  color: var(--ink);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: rgba(11, 28, 40, 0.6);
  margin: 0;
}

.form-status {
  margin: 0;
  font-weight: 600;
  min-height: 1.4em;
}

.form-status.is-ok {
  color: #1f6b4a;
}

.form-status.is-err {
  color: #9b2c2c;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 2.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem 1.5rem;
  align-items: start;
}

.site-footer .brand {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.site-footer small {
  display: block;
  font-size: 0.85rem;
}

.site-footer h3 {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--gold);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Inner pages */
.page-hero {
  background:
    linear-gradient(135deg, rgba(11, 28, 40, 0.92), rgba(26, 51, 68, 0.88)),
    url("../img/bielsko.jpg") center/cover;
  color: var(--white);
  padding: 8.5rem 0 4rem;
}

.page-hero p {
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  font-family: var(--font-brand);
  letter-spacing: -0.02em;
  margin-top: 2rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose .area-chips {
  padding-left: 0;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
  color: var(--gold);
}

/* Mobile */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 4.2rem 1rem auto;
    background: rgba(11, 28, 40, 0.97);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
    border-radius: 0.75rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .about-grid,
  .contact-grid,
  .service-list,
  .why-grid,
  .related,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service {
    grid-template-columns: 1fr;
  }

  .service img {
    min-height: 180px;
    max-height: 200px;
  }

  .service-body {
    padding: 1.25rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-media img {
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
