:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #13253f;
  --muted: #4f617a;
  --primary: #0f5e91;
  --primary-dark: #0a4468;
  --accent: #25b79f;
  --border: #d9e2ec;
  --shadow: 0 18px 40px rgba(12, 42, 74, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #dff3ff 0%, #f5f7fb 40%), var(--bg);
  line-height: 1.6;
  cursor: default;
}

body.motion-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

body.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 251, 0.9);
  border-bottom: 1px solid rgba(15, 94, 145, 0.12);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 78px;
}

.brand {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  color: var(--text);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo img {
  display: block;
  width: auto;
  height: 52px;
  max-width: 100%;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-nav a {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: rgba(37, 183, 159, 0.14);
  color: var(--primary-dark);
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 8px;
}

.lang-switch button,
.menu-toggle {
  font-family: inherit;
}

.lang-switch button {
  border: 0;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  padding: 7px 11px;
  cursor: pointer;
}

.lang-switch button.is-active {
  background: var(--primary);
  color: #fff;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -120px;
  background: radial-gradient(circle, rgba(37, 183, 159, 0.22), rgba(37, 183, 159, 0));
}

.hero::after {
  width: 360px;
  height: 360px;
  left: -140px;
  bottom: -190px;
  background: radial-gradient(circle, rgba(15, 94, 145, 0.22), rgba(15, 94, 145, 0));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}

h1,
h2 {
  font-family: 'Merriweather', serif;
}

h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 14px;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.lead {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 65ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 700;
  padding: 12px 18px;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #0f7db2);
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 94, 145, 0.28);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff;
}

.btn-outline:hover {
  background: #eef7fd;
}

.hero-card,
.card,
.doc-box,
.panel,
.receipt {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.card,
.doc-box,
.panel,
.receipt,
.hero-card {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.card:hover,
.doc-box:hover,
.panel:hover,
.receipt:hover,
.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(12, 42, 74, 0.17);
}

.hero-card {
  padding: 22px;
}

.hero-card ul {
  margin: 0;
  padding-left: 20px;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(15, 94, 145, 0.04), rgba(15, 94, 145, 0.01));
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 20px;
}

.media-card {
  padding: 0;
  overflow: hidden;
}

.card-photo {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 18px 20px 20px;
}

.steps {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.process-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.process-card {
  padding: 0;
  overflow: hidden;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 5px 10px;
  margin: 0 0 10px;
  border-radius: 999px;
  background: rgba(15, 94, 145, 0.12);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.doc-box {
  padding: 18px;
}

.doc-box ul {
  margin: 0;
  padding-left: 20px;
}

.docs-lead {
  margin-bottom: 22px;
  max-width: 72ch;
}

.enhanced-doc-box {
  position: relative;
  overflow: hidden;
}

.enhanced-doc-box::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -18%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 94, 145, 0.14), rgba(15, 94, 145, 0));
  pointer-events: none;
}

.doc-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  margin: 0 0 10px;
  background: rgba(37, 183, 159, 0.15);
  color: #0d5d53;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.doc-list {
  list-style: none;
  padding-left: 0;
}

.doc-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}

.doc-list li:last-child {
  margin-bottom: 0;
}

.doc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #1f85ba);
  box-shadow: 0 0 0 4px rgba(15, 94, 145, 0.12);
}

.docs-note {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #c8d8e7;
  border-left: 6px solid var(--primary);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(15, 94, 145, 0.08), rgba(15, 94, 145, 0.02));
}

.docs-note h3 {
  margin-bottom: 8px;
}

.docs-note p {
  margin: 0;
  color: var(--muted);
}

.cursor-glow {
  position: fixed;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 183, 159, 0.35), rgba(15, 94, 145, 0.1));
  box-shadow: 0 0 0 8px rgba(15, 94, 145, 0.08);
  pointer-events: none;
  z-index: 70;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease, transform 0.08s ease;
}

.cursor-glow.is-visible {
  opacity: 1;
}

.split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.page-top {
  padding-bottom: 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.panel {
  padding: 22px;
}

label {
  display: block;
  margin-top: 14px;
  margin-bottom: 6px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c3cfdd;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(15, 94, 145, 0.25);
  border-color: var(--primary);
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #c62828;
  background: #fff8f8;
}

.form-feedback {
  margin-top: 10px;
  min-height: 22px;
  font-weight: 600;
}

.form-feedback.error {
  color: #b91c1c;
}

.form-feedback.success {
  color: #0f7a39;
}

.receipt {
  padding: 22px;
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin-bottom: 16px;
}

.professional-receipt {
  padding: 26px;
  border-radius: 18px;
  border: 1px solid #c7d8e9;
  box-shadow: 0 24px 48px rgba(8, 34, 58, 0.14);
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #d6e2ef;
}

.receipt-kicker {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.receipt-subtitle {
  margin: 0;
  color: var(--muted);
}

.receipt-meta-card {
  min-width: 250px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #d3e0ed;
  background: linear-gradient(180deg, #f7fbff, #eef6fc);
}

.receipt-meta-card p {
  margin: 0 0 8px;
  font-size: 0.94rem;
}

.receipt-meta-card p:last-child {
  margin-bottom: 0;
}

.receipt-section {
  margin-top: 18px;
}

.receipt-section h3 {
  margin-bottom: 10px;
  color: #102f4a;
}

.receipt-grid-clean {
  margin-bottom: 0;
}

.receipt-grid-clean p {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #deebf7;
  border-radius: 10px;
  background: #fbfdff;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d5e2ef;
  border-radius: 10px;
  overflow: hidden;
}

.receipt-table th,
.receipt-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid #dfe9f3;
}

.receipt-table thead th {
  background: #eff6fc;
  color: #103150;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.receipt-table tbody tr:last-child td {
  border-bottom: 0;
}

.receipt-total-row td {
  background: #f4f9ff;
}

.receipt-statement {
  padding: 14px;
  border-radius: 12px;
  border-left: 5px solid var(--primary);
  background: linear-gradient(90deg, rgba(15, 94, 145, 0.09), rgba(15, 94, 145, 0.02));
}

.receipt-statement p {
  margin: 0;
}

.receipt-signatures {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.signature-box {
  border: 1px dashed #9eb5cb;
  border-radius: 10px;
  padding: 12px;
  background: #fcfdff;
}

.signature-box p {
  margin: 0 0 26px;
  font-weight: 700;
}

.signature-box span {
  display: block;
  width: 100%;
  border-bottom: 1px solid #8ea7bf;
}

.receipt-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #d8e4f0;
  color: #51657e;
  font-size: 0.93rem;
}

.site-footer {
  margin-top: 30px;
  background: #0f2436;
  color: #d5deea;
  padding: 34px 0 18px;
}

.site-footer a,
.site-footer .brand {
  color: #ffffff;
}

.site-footer .brand-logo img {
  height: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1.1fr;
  gap: 20px;
  align-items: start;
}

.footer-col h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #ffffff;
}

.footer-col p {
  margin: 0 0 10px;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu li {
  margin-bottom: 8px;
}

.footer-menu li:last-child {
  margin-bottom: 0;
}

.footer-menu a {
  color: #d5deea;
}

.footer-menu a:hover {
  color: #ffffff;
}

.footer-small {
  color: #b8c7d8;
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-bottom-menu a {
  color: #d5deea;
  font-size: 0.92rem;
}

.footer-bottom-menu a:hover {
  color: #ffffff;
}

.site-toast-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-toast {
  background: #102331;
  color: #fff;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
  animation: slideIn .2s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .main-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .cards,
  .docs-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .process-cards {
    grid-template-columns: 1fr;
  }

  .lang-switch {
    margin-left: 0;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .brand-logo img {
    height: 42px;
  }

  .site-footer .brand-logo img {
    height: 56px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cursor-glow {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero,
  .section {
    padding: 48px 0;
  }

  .btn {
    width: 100%;
  }

  .receipt-grid {
    grid-template-columns: 1fr;
  }

  .professional-receipt {
    padding: 18px;
  }

  .receipt-header {
    flex-direction: column;
  }

  .receipt-meta-card {
    min-width: 0;
  }

  .receipt-signatures {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.motion-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card,
  .doc-box,
  .panel,
  .receipt,
  .hero-card,
  .btn {
    transition: none;
  }

  .cursor-glow {
    display: none;
  }
}
