
:root {
  --paper: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f2f4f1;
  --ink: #1d272a;
  --muted: #5a6668;
  --line: #d9ded8;
  --gold: #d0ab5e;
  --gold-deep: #a7772f;
  --civil: #607c73;
  --civil-deep: #314f48;
  --graphite: #37474d;
  --focus: #0f766e;
  --shadow: 0 18px 45px rgba(29, 39, 42, 0.12);
  --radius: 8px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.032;
  background-image:
    linear-gradient(45deg, var(--graphite) 12.5%, transparent 12.5%, transparent 50%, var(--graphite) 50%, var(--graphite) 62.5%, transparent 62.5%),
    linear-gradient(-45deg, var(--gold-deep) 12.5%, transparent 12.5%, transparent 50%, var(--gold-deep) 50%, var(--gold-deep) 62.5%, transparent 62.5%);
  background-size: 46px 46px;
  z-index: -1;
}

img,
iframe {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-color: rgba(208, 171, 94, 0.78);
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--gold-deep);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.narrow {
  width: min(820px, calc(100% - 32px));
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

.switcher,
.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 0.88rem;
}

.switcher {
  background: #11181a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.switcher-inner,
.topbar-inner,
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.switcher-inner {
  min-height: 34px;
  flex-wrap: wrap;
}

.switcher-inner span {
  color: var(--gold);
  font-weight: 800;
}

.switcher-inner a,
.switcher-inner strong,
.topbar a,
.topbar span {
  text-decoration: none;
  color: inherit;
}

.switcher-inner strong {
  color: var(--gold);
}

.topbar-inner {
  min-height: 42px;
}

.topbar-inner > div {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 12;
  background: rgba(251, 250, 247, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 86px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  text-decoration: none;
}

.brand img {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(208, 171, 94, 0.55);
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.brand small {
  display: block;
  color: var(--muted);
  line-height: 1.3;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--graphite);
  font-weight: 760;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav a[aria-current="page"],
.nav a:hover {
  background: #f2eadc;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 800;
  color: var(--ink);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 820;
  text-decoration: none;
  line-height: 1.2;
}

.button.primary {
  background: var(--gold-deep);
  color: #fff;
}

.button.secondary {
  background: var(--ink);
  color: #fff;
}

.button.ghost {
  background: transparent;
  border-color: rgba(167, 119, 47, 0.45);
  color: var(--ink);
}

.button.ghost.dark {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.button.text {
  min-height: auto;
  padding: 0;
  color: var(--gold-deep);
  background: transparent;
}

.button:hover {
  transform: translateY(-1px);
}

.button-row,
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(520px, 72vh, 720px);
  display: grid;
  align-items: center;
  background: var(--ink);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(29, 39, 42, 0.96), rgba(29, 39, 42, 0.88)),
    repeating-linear-gradient(135deg, rgba(208, 171, 94, 0.16) 0 1px, transparent 1px 34px);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(280px, 360px);
  gap: 42px;
  align-items: center;
  padding-block: 72px;
}

.hero-content {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.36);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

.area-line {
  margin: 0 0 14px;
  color: #dfe8e3;
  font-weight: 800;
}

.hero h1,
.page-hero h1 {
  max-width: 880px;
  margin: 0 0 18px;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 5vw, 4.65rem);
  line-height: 0.97;
  letter-spacing: 0;
}

.hero p:not(.eyebrow):not(.area-line):not(.hero-hours),
.page-hero p:not(.eyebrow) {
  max-width: 760px;
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  line-height: 1.35;
}

.hero-hours {
  margin-top: 18px;
  color: #e9ded0;
  font-weight: 800;
}

.hero-panel {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

.hero-panel span {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-panel strong {
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.35;
}

.section {
  padding-block: 76px;
}

.compact-section {
  padding-block: 54px;
}

.tinted {
  background: rgba(255, 255, 255, 0.62);
  border-block: 1px solid rgba(217, 222, 216, 0.8);
}

.section-heading {
  margin-bottom: 28px;
}

h1,
h2,
h3 {
  color: var(--ink);
}

h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
}

.section-heading h2,
.certificate-band h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.lead {
  color: var(--graphite);
  font-size: 1.16rem;
}

.dual-areas,
.two-column,
.highlight-grid,
.three-feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}

.three-feature {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.area-panel,
.card,
.feature-panel,
.quick-card,
.need-card,
.map-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.area-panel {
  padding: 28px;
}

.area-panel.civil {
  border-top: 4px solid var(--civil);
}

.area-panel.notes {
  border-top: 4px solid var(--gold-deep);
}

.area-panel-head span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}

.area-panel h3 {
  margin: 6px 0 18px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.mini-list {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.mini-list a {
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.mini-list span,
.need-card span,
.quick-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.need-grid,
.quick-grid,
.card-grid,
.doc-grid,
.article-grid {
  display: grid;
  gap: 18px;
}

.need-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.need-card,
.quick-card {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 20px;
  text-decoration: none;
}

.quick-card.muted {
  box-shadow: none;
  background: #f6f5ef;
}

.card,
.feature-panel {
  padding: 24px;
}

.card h2,
.card h3,
.feature-panel h3 {
  margin: 0 0 12px;
  font-size: 1.55rem;
}

.card-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid rgba(208, 171, 94, 0.55);
  color: var(--gold-deep);
  background: #fffaf0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
}

.service-card .eyebrow {
  margin-bottom: 8px;
}

.certificate-band {
  background: linear-gradient(135deg, #f8f6ef, #fff 60%, #eef4f1);
  border-block: 1px solid var(--line);
}

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

.certificate-options a {
  min-height: 150px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 900;
  text-decoration: none;
}

.page-hero {
  min-height: clamp(370px, 48vh, 520px);
  display: grid;
  align-items: center;
  background: linear-gradient(135deg, #f8f6ef, #ffffff 58%, #edf1ef);
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  padding-block: 52px 44px;
}

.page-hero .button-row {
  margin-top: 22px;
}

.search-box {
  max-width: 680px;
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--graphite);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 760;
}

.consent {
  grid-template-columns: 20px 1fr;
  align-items: start;
  font-weight: 600;
}

.consent input {
  min-height: auto;
  margin-top: 4px;
}

.form-message {
  margin: 0;
  font-weight: 760;
}

.form-message.error {
  color: #9f3128;
}

.form-message.success {
  color: #1f6b42;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.contact-list div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  color: var(--muted);
  font-weight: 850;
}

.contact-list dd {
  margin: 0;
}

address {
  font-style: normal;
  color: var(--graphite);
}

.map-panel {
  overflow: hidden;
  min-height: 420px;
}

.map-panel iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
}

.form-wrap {
  margin-top: 44px;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.side-note {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 14px;
  padding: 24px;
  border-left: 4px solid var(--gold);
  background: #fff;
  box-shadow: var(--shadow);
}

.rich-content {
  color: var(--graphite);
  font-size: 1.04rem;
}

.rich-content section,
.rich-content > h2 {
  margin-top: 30px;
}

.rich-content section:first-child,
.rich-content > h2:first-child {
  margin-top: 0;
}

.rich-content h2 {
  color: var(--ink);
  font-size: 1.85rem;
}

.rich-content li,
.notice {
  margin-bottom: 8px;
}

.notice {
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  background: #fffaf0;
}

.wide {
  margin-top: 22px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

summary {
  cursor: pointer;
  font-weight: 850;
  color: var(--ink);
}

details p {
  color: var(--graphite);
}

.align-start {
  align-items: start;
}

.footer {
  background: var(--ink);
  color: #fff;
  padding-block: 54px 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 1fr);
  gap: 28px;
}

.footer h2 {
  color: #fff;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
}

.footer a {
  color: #fff;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.footer-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.developer-credit {
  margin-left: auto;
  white-space: nowrap;
  overflow-x: auto;
  max-width: 100%;
}

.developer-credit a::before {
  content: " | ";
  color: rgba(255, 255, 255, 0.58);
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 18;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  background: #1f9d55;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(31, 157, 85, 0.28);
}

.mobile-actions {
  display: none;
}

@media (max-width: 1060px) {
  .header-inner {
    flex-wrap: wrap;
    padding-block: 12px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-inline: 14px;
  }

  .nav-toggle span,
  .nav-toggle span::before,
  .nav-toggle span::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    content: "";
  }

  .nav-toggle span::before {
    transform: translateY(-6px);
  }

  .nav-toggle span::after {
    transform: translateY(4px);
  }

  .nav {
    width: 100%;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .nav.is-open {
    display: grid;
  }

  .nav a {
    justify-content: center;
    background: #f6f2ea;
  }

  .hero-grid,
  .dual-areas,
  .two-column,
  .highlight-grid,
  .three-feature,
  .service-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .doc-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .side-note {
    position: static;
  }
}

@media (max-width: 720px) {
  .switcher-inner,
  .topbar-inner,
  .topbar-inner > div {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .topbar-inner,
  .switcher-inner {
    padding-block: 10px;
  }

  .topbar-inner {
    display: grid;
  }

  .topbar-inner > div {
    display: grid;
    gap: 8px;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .brand img {
    width: 52px;
    height: 52px;
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .brand small {
    font-size: 0.82rem;
  }

  .hero {
    min-height: 620px;
  }

  .hero-grid {
    padding-block: 56px 46px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.25rem, 10vw, 3.2rem);
  }

  .section {
    padding-block: 54px;
  }

  .card-grid,
  .doc-grid,
  .article-grid,
  .need-grid,
  .quick-grid,
  .certificate-options,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: 374px;
  }

  .page-hero-inner {
    padding-block: 54px 34px;
  }

  .contact-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .footer-bottom {
    padding-bottom: 76px;
  }

  .floating-whatsapp {
    display: none;
  }

  .mobile-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 18;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .mobile-actions a {
    min-height: 56px;
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    font-weight: 850;
  }

  .mobile-actions a:nth-child(2) {
    background: #1f9d55;
  }
}

@media (max-width: 420px) {
  .container,
  .narrow {
    width: min(100% - 24px, 1120px);
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.15rem;
  }

  .button,
  .button-row .button {
    width: 100%;
  }
}
