@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&display=swap");

:root {
  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --navy: #0b1f33;
  --navy-deep: #071422;
  --navy-soft: #16324a;
  --wine: #e30613;
  --wine-deep: #c10510;
  --cream: #ffffff;
  --paper: #ffffff;
  --ink: #14181f;
  --muted: #5c6370;
  --subtle: #8a9098;
  --line: #e6e8ec;
  --line-strong: #cfd3d8;
  --whatsapp: #25d366;
  --calc: #f4f5f7;
  --slider-rest: #7a7f85;
  --slider-ring: #ffffff;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-calc: 34px;
  --shadow-soft: 0 18px 50px rgba(11, 31, 51, 0.08);
  --max: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  text-wrap: balance;
  margin: 0;
}

p {
  text-wrap: pretty;
}

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

a {
  color: inherit;
}

button:not(:disabled),
[role="button"]:not(:disabled) {
  cursor: pointer;
}

button {
  font-family: inherit;
}

::selection {
  background: var(--navy);
  color: var(--cream);
}

.font-display {
  font-family: var(--font-display);
}

.site {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
}

.site > main {
  flex: 1;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(2.75rem, env(safe-area-inset-left, 0px) + 1.5rem);
  padding-right: max(2.75rem, env(safe-area-inset-right, 0px) + 1.5rem);
}

@media (min-width: 640px) {
  .wrap {
    padding-left: clamp(3.5rem, 12vw, 8rem);
    padding-right: clamp(3.5rem, 12vw, 8rem);
  }
}

.kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wine);
}

.kicker--cream {
  color: rgba(255, 255, 255, 0.55);
}

.kicker--cream-strong {
  color: rgba(255, 255, 255, 0.7);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(11, 31, 51, 0.1);
  background: var(--navy);
  color: var(--cream);
}

.header-inner {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.logo {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #ffffff;
  animation: logo-glow 2.2s ease-in-out infinite;
}

.logo-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--cream);
}

.logo-sub {
  display: none;
  margin-top: 0.25rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 640px) {
  .logo-name {
    font-size: 1.35rem;
  }
  .logo-sub {
    display: block;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: color 150ms ease;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--cream);
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.header-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.btn-wine {
  background: var(--wine);
  color: var(--cream);
}

.btn-wine:hover {
  background: var(--wine-deep);
}

.btn-navy {
  background: var(--navy);
  color: var(--cream);
}

.btn-navy:hover {
  background: var(--navy-soft);
}

.btn-outline {
  border: 1px solid rgba(11, 31, 51, 0.2);
  background: transparent;
  color: var(--navy);
}

.btn-outline:hover {
  border-color: var(--navy);
}

.btn-glow-green {
  animation: home-btn-glow 1.8s ease-in-out infinite;
}

.btn-glow-green.btn-outline {
  background: #fff;
}

@keyframes home-btn-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 3px rgba(34, 197, 94, 0.55),
      0 0 18px 6px rgba(34, 197, 94, 0.72),
      0 0 36px 12px rgba(74, 222, 128, 0.42);
  }
  50% {
    box-shadow:
      0 0 0 4px rgba(134, 239, 172, 0.95),
      0 0 28px 10px rgba(34, 197, 94, 0.95),
      0 0 52px 18px rgba(187, 247, 208, 0.55);
  }
}

.btn-header-cta {
  display: none;
  min-height: 2.75rem;
  padding: 0 1rem;
  background: var(--wine);
  color: var(--cream);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.btn-header-cta:hover {
  background: var(--wine-deep);
}

@media (min-width: 640px) {
  .btn-header-cta {
    display: inline-flex;
    align-items: center;
  }
}

.menu-toggle {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.lang {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  height: 2.75rem;
  min-width: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  z-index: 50;
  margin-top: 0.5rem;
  max-height: 18rem;
  width: 11rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 0.25rem 0;
  color: var(--navy);
  box-shadow: var(--shadow-soft);
  list-style: none;
}

[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

.lang-menu.is-open {
  display: block;
}

.lang-menu button {
  display: flex;
  min-height: 2.5rem;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.75rem;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 0.875rem;
  text-align: left;
}

.lang-menu button:hover,
.lang-menu button.is-active {
  background: var(--calc);
}

.lang-menu button.is-active {
  font-weight: 500;
}

.lang-code {
  color: var(--subtle);
}

.nav-mobile {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--navy-deep);
  padding: 1.25rem max(2.75rem, env(safe-area-inset-left, 0px) + 1.5rem);
}

.nav-mobile.is-open {
  display: block;
}

@media (min-width: 1024px) {
  .nav-mobile.is-open {
    display: none;
  }
}

.nav-mobile a {
  display: flex;
  min-height: 3rem;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--cream);
  text-decoration: none;
  font-size: 1rem;
}

/* Hero slider */
.hero-swiper {
  width: 100%;
  max-width: 42rem;
  max-height: min(42vh, 400px);
  aspect-ratio: 16 / 10;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--calc);
  touch-action: pan-y;
  outline: none;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 1024px) {
  .hero-swiper {
    max-width: 38rem;
    max-height: 360px;
  }
}

.hero-swiper-track {
  display: flex;
  height: 100%;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-swiper-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}

.hero-swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-swiper-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.hero-swiper-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.hero-swiper-dot.is-active {
  background: var(--wine);
  width: 22px;
}

@media (max-width: 640px) {
  .hero-swiper {
    border-radius: 8px;
  }
}

.hero {
  padding: 2.5rem 0 3.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .hero {
    padding: 2.75rem 0 4rem;
  }
}

.hero h1 {
  margin-top: 0.75rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.hero .lead {
  margin-top: 1.25rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions {
  margin-top: 1.75rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  width: min(100%, 22rem);
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 3.5rem;
    max-width: 16ch;
  }
  .hero .lead {
    font-size: 1.125rem;
  }
  .hero-actions {
    flex-direction: row;
    width: auto;
    justify-content: center;
  }
}

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.stats-grid {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 0;
  text-align: center;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.875rem;
  color: var(--navy);
}

.stat-label {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.section {
  padding: 3.5rem 0;
}

@media (min-width: 640px) {
  .section {
    padding: 5rem 0;
  }
}

.section h2 {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--navy);
}

@media (min-width: 640px) {
  .section h2 {
    font-size: 3rem;
  }
}

.services {
  background: var(--navy);
  color: var(--cream);
}

.services-grid {
  display: grid;
  gap: 3rem;
  padding: 5rem 0;
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
  }
}

.services h2 {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.15;
  color: var(--cream);
}

@media (min-width: 640px) {
  .services h2 {
    font-size: 3rem;
  }
}

.service {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.service + .service {
  margin-top: 1.5rem;
}

.service-n {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.4);
}

.service h3 {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--cream);
}

.service p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
}

.steps {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  padding: 1.25rem;
}

.step-n {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--wine);
}

.step h3 {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--navy);
}

.step p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
}

.cta-band {
  position: relative;
  overflow: hidden;
}

.cta-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band-mask {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 51, 0.7);
}

.cta-band-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 6rem 0;
}

.cta-band h2 {
  max-width: 42rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--cream);
}

@media (min-width: 640px) {
  .cta-band h2 {
    font-size: 3rem;
  }
}

.faq-list {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.faq-list details {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 0;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-size: 1.125rem;
  color: var(--navy);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  margin: 0.75rem 0 0;
  max-width: 48rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
}

/* Calculator */
.calc-card {
  margin: 0 auto;
  max-width: 34rem;
  padding: 28px 24px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.calc-card--compact {
  padding: 28px 24px 24px;
  border-radius: 24px;
}

.calc-kicker {
  margin: 0;
  color: var(--wine);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.calc-lead {
  margin: 10px 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.calc-row {
  margin-top: 22px;
}

.calc-card--compact .calc-row {
  margin-top: 26px;
}

.calc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.calc-label {
  margin: 0;
  color: #30343a;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.calc-card--compact .calc-label {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
}

.calc-value {
  width: min(220px, 48%);
  min-width: 140px;
  height: 52px;
  margin: 0;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--slider-ring);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.04);
}

.calc-card--compact .calc-value {
  height: 64px;
  min-width: 132px;
  padding: 0 14px;
  border-radius: 12px;
}

.calc-value .calc-affix {
  flex: 0 0 auto;
  font-size: 1.05rem;
  color: #26292e;
  font-weight: 600;
}

.calc-card--compact .calc-value .calc-affix {
  font-size: 1.05rem;
}

.calc-value input,
.calc-value select {
  width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #30343a;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.calc-card--compact .calc-value input,
.calc-card--compact .calc-value select {
  font-size: 1.15rem;
}

.calc-value select {
  text-align: left;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2330343a' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 22px;
}

.calc-slider-wrap {
  position: relative;
  padding: 18px 24px 0;
}

.calc-card--compact .calc-slider-wrap {
  padding: 10px 12px 0;
}

.calc-slider {
  width: 100%;
  height: 12px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(
    to right,
    var(--wine) 0 var(--progress, 0%),
    var(--slider-rest) var(--progress, 0%) 100%
  );
  border-radius: 0;
  outline: none;
  cursor: pointer;
}

[dir="rtl"] .calc-slider {
  background: linear-gradient(
    to left,
    var(--wine) 0 var(--progress, 0%),
    var(--slider-rest) var(--progress, 0%) 100%
  );
}

.calc-slider::-webkit-slider-runnable-track {
  height: 12px;
  background: transparent;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--wine);
  border: 5px solid var(--slider-ring);
  box-shadow: 0 0 0 1px rgba(148, 16, 67, 0.12);
  cursor: pointer;
}

.calc-slider::-moz-range-track {
  height: 12px;
  background: transparent;
}

.calc-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--wine);
  border: 7px solid var(--slider-ring);
  cursor: pointer;
}

.calc-range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: #676c73;
  font-size: 0.85rem;
  font-weight: 500;
}

.calc-card--compact .calc-range-labels {
  font-size: 0.85rem;
  margin-top: 10px;
}

.calc-results {
  margin-top: 22px;
  padding: 16px 18px 18px;
  background: var(--slider-ring);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  color: #30343a;
}

.calc-card--compact .calc-results {
  padding: 16px 18px 18px;
  border-radius: 16px;
  margin-top: 20px;
}

.calc-result {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.calc-result strong {
  color: var(--wine);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: right;
}

.calc-result.is-hero {
  font-size: 1.2rem;
}

.calc-note {
  margin: 14px 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

.calc-cta {
  margin-top: 22px;
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--wine);
  color: var(--cream);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.calc-cta:hover {
  background: var(--wine-deep);
  transform: translateY(-1px);
}

.calc-row-currency .calc-top {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.calc-row-currency .calc-value {
  width: 100%;
  min-width: 0;
}

.calc-row-currency .calc-value select {
  text-align: left;
}

.apply-form {
  overflow: visible;
}

.form-nav .btn,
.form-nav .btn-ghost {
  width: 100%;
}

@media (min-width: 640px) {
  .form-nav .btn,
  .form-nav .btn-ghost {
    width: auto;
  }
}

@media (max-width: 640px) {
  .calc-card {
    padding: 26px 18px 22px;
    border-radius: 24px;
  }
  .calc-top {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 12px;
  }
  .calc-value {
    width: 100%;
    min-width: 0;
    height: 72px;
  }
  .calc-slider-wrap {
    padding: 14px 8px 0;
  }
}

/* Apply form */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  min-height: 42vh;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero--meeting img {
  opacity: 0.55;
}

.page-hero--desk img {
  opacity: 0.4;
}

.page-hero-mask {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 51, 0.55);
}

.page-hero--desk .page-hero-mask {
  background: rgba(11, 31, 51, 0.6);
}

.page-hero-inner {
  position: relative;
  padding: 6rem 0;
}

.page-hero h1 {
  margin-top: 0.75rem;
  max-width: 48rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--cream);
}

@media (min-width: 640px) {
  .page-hero h1 {
    font-size: 3.75rem;
  }
}

.page-hero p.lead {
  margin-top: 1rem;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.75);
}

.apply-page {
  padding: 3.5rem 0 5rem;
}

.apply-page h1 {
  margin-top: 0.75rem;
  max-width: 42rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--navy);
}

.apply-page > .lead {
  margin-top: 1rem;
  max-width: 42rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .apply-page {
    padding: 5rem 0;
  }
  .apply-page h1 {
    font-size: 3.75rem;
  }
}

.apply-layout {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (min-width: 1024px) {
  .apply-layout {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }
  .apply-aside {
    position: sticky;
    top: 6rem;
    align-self: start;
  }
}

.apply-form {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 640px) {
  .apply-form {
    padding: 2rem;
  }
}

.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.stepper li {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--subtle);
  text-align: center;
}

.stepper li.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--cream);
}

.stepper li.is-done {
  border-color: rgba(11, 31, 51, 0.3);
  background: var(--calc);
  color: var(--navy);
}

.field {
  display: block;
  margin-top: 1.25rem;
}

.field-label {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
}

.req {
  color: var(--wine);
}

.opt {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--subtle);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field input[type="date"],
.field input[type="tel"] {
  margin-top: 0.5rem;
  min-height: 3rem;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0;
  font-family: inherit;
  font-size: 1.125rem;
  color: var(--ink);
  outline: none;
}

.field input:focus {
  border-bottom-color: var(--navy);
}

.consent {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--calc);
  padding: 1rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink);
}

.consent input {
  margin-top: 0.25rem;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: var(--navy);
}

.form-error {
  margin-top: 1.25rem;
  border: 1px solid rgba(148, 16, 67, 0.3);
  background: rgba(148, 16, 67, 0.05);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--wine);
}

.form-nav {
  margin-top: 2rem;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .form-nav {
    flex-direction: row;
    justify-content: space-between;
  }
}

.btn-ghost {
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
}

.ssl-note {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--subtle);
}

.success-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  padding: 4rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.success-card h2 {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.875rem;
  color: var(--navy);
}

.success-card p {
  margin: 0.75rem auto 0;
  max-width: 28rem;
  color: var(--muted);
}

.hp {
  display: none !important;
}

/* About / contact */
.split {
  display: grid;
  gap: 3rem;
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.body-lg {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
}

.body-muted {
  margin-top: 1.5rem;
  line-height: 1.7;
  color: var(--muted);
}

.aside-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  padding: 1.5rem;
}

.aside-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
}

.knf-number {
  margin-top: 1.25rem;
  font-weight: 500;
  color: var(--navy);
}

.offices {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.office-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .office-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.office {
  border-top: 1px solid var(--navy);
  padding-top: 1rem;
}

.office h3 {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--navy);
}

.office p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.office .country {
  color: var(--subtle);
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  padding: 1.5rem;
}

.contact-card h2 {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-card ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-card a,
.contact-card p {
  color: var(--navy);
  text-decoration: none;
}

.contact-card a:hover {
  color: var(--wine);
}

.legal-page {
  max-width: 48rem;
  margin: 0 auto;
  padding: 4rem clamp(2.25rem, 8vw, 6.5rem) 6rem;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--navy);
}

.legal-page p {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

@media (min-width: 640px) {
  .legal-page {
    padding: 6rem clamp(2.25rem, 8vw, 6.5rem);
  }
  .legal-page h1 {
    font-size: 3rem;
  }
}

/* Footer */
.footer {
  border-top: 1px solid rgba(11, 31, 51, 0.1);
  background: var(--navy);
  color: var(--cream);
}

.footer-top {
  display: grid;
  gap: 2.5rem;
  padding: 3.5rem 0;
}

@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: repeat(12, 1fr);
  }
  .footer-brand {
    grid-column: span 5;
  }
  .footer-cols {
    grid-column: span 7;
  }
}

.footer-tag {
  margin-top: 1.25rem;
  max-width: 24rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
}

.footer-cols {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-cols p.label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer-cols ul {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.footer-cols a,
.footer-cols li {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-cols a:hover {
  color: var(--cream);
}

.footer-cols li + li {
  margin-top: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: 0.75rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--cream);
}

.wa-fab {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 40;
  display: flex;
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--whatsapp);
  color: var(--paper);
  text-decoration: none;
  transition: transform 150ms ease;
  animation: wa-glow 1.8s ease-in-out infinite;
}

.wa-fab:hover {
  transform: scale(1.03);
}

[dir="rtl"] .wa-fab {
  left: auto;
  right: 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pesel-upload {
  margin-top: 1.25rem;
}

.pesel-hint {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.pesel-drop {
  margin-top: 0.75rem;
  display: flex;
  min-height: 9.5rem;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: var(--calc);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.pesel-drop.is-drag {
  border-color: var(--wine);
  background: rgba(148, 16, 67, 0.05);
}

.pesel-drop.is-error {
  border-color: rgba(148, 16, 67, 0.5);
  background: rgba(148, 16, 67, 0.05);
}

.pesel-icon {
  display: flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--paper);
  color: var(--navy);
  box-shadow: 0 0 0 1px var(--line);
}

.pesel-drop p {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.pesel-file {
  display: flex;
  width: 100%;
  max-width: 28rem;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.pesel-file-icon {
  display: flex;
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--paper);
  color: var(--navy);
  outline: 1px solid rgba(0, 0, 0, 0.08);
}

.pesel-file-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pesel-file-meta {
  min-width: 0;
  flex: 1;
}

.pesel-file-name {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.pesel-file-size {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.pesel-file-change {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--wine);
}

.pesel-remove {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}

.pesel-remove:hover {
  background: var(--paper);
  color: var(--navy);
}

.pesel-error {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--wine);
}

@keyframes logo-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.22),
      0 0 8px 2px rgba(255, 215, 80, 0.55),
      0 0 20px 6px rgba(227, 6, 19, 0.4);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.4),
      0 0 16px 5px rgba(255, 230, 120, 0.95),
      0 0 32px 10px rgba(227, 6, 19, 0.55);
  }
}

@keyframes wa-glow {
  0% {
    box-shadow:
      0 0 0 0 rgba(37, 211, 102, 0.7),
      0 0 14px 4px rgba(37, 211, 102, 0.55);
  }
  70% {
    box-shadow:
      0 0 0 16px rgba(37, 211, 102, 0),
      0 0 22px 8px rgba(37, 211, 102, 0.4);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(37, 211, 102, 0),
      0 0 14px 4px rgba(37, 211, 102, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .logo-mark {
    animation: none !important;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.22),
      0 0 12px 3px rgba(255, 215, 80, 0.7),
      0 0 22px 6px rgba(227, 6, 19, 0.45);
  }
  .wa-fab {
    animation: none !important;
    box-shadow:
      0 0 12px 4px rgba(37, 211, 102, 0.55),
      0 8px 24px rgba(37, 211, 102, 0.35);
  }
  .apply-glow,
  .confirm-toggle,
  .btn-glow-green {
    animation: none !important;
  }
  .apply-glow,
  .confirm-toggle {
    box-shadow:
      0 0 0 2px rgba(255, 215, 80, 0.75),
      0 0 18px 6px rgba(227, 6, 19, 0.45);
  }
  .btn-glow-green {
    box-shadow:
      0 0 0 3px rgba(34, 197, 94, 0.7),
      0 0 18px 6px rgba(34, 197, 94, 0.55);
  }
}

.apply-glow {
  animation: apply-btn-glow 1.8s ease-in-out infinite;
}

@keyframes apply-btn-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 2px rgba(255, 215, 80, 0.7),
      0 0 16px 5px rgba(227, 6, 19, 0.5),
      0 0 28px 10px rgba(255, 196, 0, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 3px rgba(255, 236, 140, 0.95),
      0 0 24px 8px rgba(227, 6, 19, 0.7),
      0 0 40px 14px rgba(255, 215, 80, 0.55);
  }
}

.confirm-toggle {
  display: flex;
  gap: 0.85rem;
  width: 100%;
  margin-top: 1.25rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--calc);
  padding: 1rem 1.1rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink);
  text-align: start;
  font-family: inherit;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.confirm-toggle.is-on {
  border-color: #12805c;
  background: #f2fbf6;
}

.confirm-toggle.is-needed {
  border-color: var(--wine);
  animation: consent-pulse 1s ease-in-out infinite, consent-shake 0.55s ease;
  box-shadow:
    0 0 0 4px rgba(227, 6, 19, 0.22),
    0 0 24px 8px rgba(255, 215, 80, 0.65);
}

.confirm-mark {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: 0.1rem;
  border-radius: 0.45rem;
  border: 2px solid var(--navy);
  background: var(--paper);
  display: grid;
  place-items: center;
  color: transparent;
}

.confirm-toggle.is-on .confirm-mark {
  background: #12805c;
  border-color: #12805c;
  color: #fff;
}

.confirm-hint {
  margin: 0.75rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: rgba(227, 6, 19, 0.08);
  color: var(--wine);
  font-size: 0.875rem;
  font-weight: 600;
}

.field-error {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--wine);
  font-weight: 600;
}

.field input.is-invalid,
.date-trigger.is-invalid {
  border-bottom-color: var(--wine);
}

@keyframes consent-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 4px rgba(227, 6, 19, 0.22),
      0 0 18px 6px rgba(255, 215, 80, 0.5);
  }
  50% {
    box-shadow:
      0 0 0 7px rgba(227, 6, 19, 0.12),
      0 0 28px 10px rgba(255, 215, 80, 0.8);
  }
}

@keyframes consent-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}

.date-field {
  position: relative;
}

.date-trigger {
  margin-top: 0.5rem;
  min-height: 3rem;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0;
  font-family: inherit;
  font-size: 1.125rem;
  color: var(--ink);
  text-align: start;
}

.date-trigger.is-empty {
  color: var(--subtle);
}

.date-pop {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  padding: 0.9rem;
}

[dir="rtl"] .date-pop {
  left: 0;
  right: 0;
}

.date-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.date-nav select {
  flex: 1;
  min-height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--calc);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--navy);
  padding: 0 0.6rem;
}

.date-nav button {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--navy);
}

.date-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
  margin-bottom: 0.35rem;
}

.date-week span,
.date-grid button {
  min-height: 2.4rem;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: var(--subtle);
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
}

.date-grid button {
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--navy);
  font-family: inherit;
  font-size: 0.9rem;
  min-height: 2.5rem;
}

.date-grid button:hover:not(:disabled) {
  background: var(--calc);
}

.date-grid button.is-selected {
  background: var(--navy);
  color: var(--cream);
}

.date-grid button:disabled {
  opacity: 0.28;
}

.upload-progress {
  margin-top: 0.85rem;
}

.upload-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.upload-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--wine), #ffb703);
  border-radius: inherit;
  transition: width 80ms linear;
}

.upload-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
}

.submit-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 1.5rem;
  background: rgba(7, 20, 34, 0.62);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.submit-overlay.is-open {
  display: grid;
  pointer-events: auto;
}

.submit-card {
  position: relative;
  width: min(28rem, 100%);
  border-radius: 28px;
  background: var(--paper);
  padding: 2.5rem 1.75rem 2rem;
  text-align: center;
  box-shadow: 0 24px 80px rgba(7, 20, 34, 0.28);
}

.submit-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--calc);
  color: var(--navy);
  text-decoration: none;
}

.submit-close:hover {
  background: var(--line);
}

.ring-wrap {
  width: 132px;
  height: 132px;
  margin: 0 auto 1.25rem;
  position: relative;
}

.ring-wrap svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: #eceff3;
  stroke-width: 8;
}

.ring-progress {
  fill: none;
  stroke: var(--wine);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.726;
  stroke-dashoffset: 326.726;
  transition: stroke-dashoffset 80ms linear;
}

.ring-check {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #12805c;
}

.ring-check svg {
  width: 54px;
  height: 54px;
  transform: none;
}

.submit-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--navy);
}

.submit-card p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.submit-amount {
  margin-top: 1rem !important;
  font-size: 1.15rem !important;
  font-weight: 700;
  color: var(--wine) !important;
}

.hero-home {
  padding-top: 1.5rem;
}

[hidden] {
  display: none !important;
}

button:not(:disabled), [role="button"]:not(:disabled) { cursor: pointer; }
[hidden] { display: none !important; }
