:root {
  --primary: #5a0047;
  --secondary: #303748;
  --accent: #c99a58;
  --text: #243144;
  --bg: #f3f4f8;
  --surface: #ffffff;
  --surface-soft: #f6f0f8;
  --muted: #667287;
  --border: #e4e8f0;
  --shadow: 0 12px 28px rgba(27, 41, 68, 0.08);
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: min(100% - 2rem, 980px);
  margin-inline: auto;
}

.site-header {
  padding: 1.75rem 0 1.1rem;
}

.site-header-home {
  padding: 0;
}

.hero {
  background: linear-gradient(145deg, #ffffff, #fafbfe);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 1.2rem;
  padding: 1.9rem 1.25rem 1.5rem;
  display: grid;
  gap: 0.95rem;
  justify-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-subpage {
  padding-top: 1.5rem;
  padding-bottom: 1.3rem;
}

.hero-home {
  width: 100%;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background:
    linear-gradient(180deg, #040508 0%, #08070e 44%, #3a0034 100%);
  padding: 0;
  min-height: 420px;
}

.hero-home::before {
  content: none;
}

.hero-home::after {
  content: none;
}

.hero-inner {
  width: min(100% - 2rem, 980px);
  margin-inline: auto;
  padding: 2.1rem 0 2.4rem;
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  position: relative;
  z-index: 1;
}

.hero-home .hero-copy {
  max-width: 520px;
}

.hero-home .logo-wrap {
  width: 230px;
  height: 230px;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

.hero-home .logo-wrap img {
  image-rendering: auto;
}

.hero-home h1 {
  color: #e4c793;
  font-size: clamp(2.2rem, 6vw, 4rem);
}

.hero-home .subtitle {
  color: #f0f0f0;
  font-size: clamp(1.35rem, 2.7vw, 2.2rem);
  font-weight: 500;
}

.hero-legal {
  min-height: 290px;
}

.hero-legal .logo-wrap {
  width: 170px;
  height: 170px;
}

.hero-legal h1 {
  color: #e4c793;
  font-size: clamp(1.8rem, 4.2vw, 3rem);
}

.hero-legal .subtitle {
  color: #f0f0f0;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
}

.hero:not(.hero-home)::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(90, 0, 71, 0.13), transparent 70%);
  right: -90px;
  top: -90px;
  pointer-events: none;
}

.logo-wrap {
  width: 104px;
  height: 104px;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid #ececf2;
  box-shadow: 0 10px 22px rgba(34, 49, 76, 0.12);
  background: transparent;
}

.logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

h1 {
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  letter-spacing: 0.01em;
  color: var(--primary);
}

h2 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  margin-bottom: 0.4rem;
  text-align: center;
  color: var(--secondary);
}

h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  border-radius: 999px;
  margin: 0.7rem auto 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.hero-logo-link {
  border-radius: 0.9rem;
  display: inline-block;
  position: relative;
  z-index: 1;
}

.hero-logo-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.hero-copy {
  max-width: 62ch;
  position: relative;
  z-index: 1;
}

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

.subtitle {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 600;
}

.lead {
  margin: 1rem 0 0;
  max-width: 60ch;
  color: #5a6477;
  font-size: 1.05rem;
}

.trust-chips {
  margin: 0.95rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.trust-chips li {
  background: rgba(90, 0, 71, 0.07);
  color: #412b40;
  border: 1px solid rgba(90, 0, 71, 0.14);
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  font-size: 0.84rem;
}

main {
  padding: 0.5rem 0 2rem;
}

section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  padding: 1.3rem;
  margin-bottom: 2.2rem;
  box-shadow: 0 10px 24px rgba(27, 41, 68, 0.05);
}

.services-list {
  list-style: none;
  padding: 0;
  margin: 1.3rem 0 0;
  display: grid;
  gap: 0.95rem;
}

.sections-pattern {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 2.2rem;
  padding-bottom: 2rem;
}

.sections-pattern::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background:
    radial-gradient(circle at 17% 22%, transparent 0 46px, rgba(124, 132, 146, 0.14) 46px 47.3px, transparent 48px),
    radial-gradient(circle at 41% 68%, transparent 0 31px, rgba(128, 136, 149, 0.11) 31px 32.1px, transparent 33px),
    radial-gradient(circle at 76% 30%, transparent 0 52px, rgba(121, 129, 143, 0.12) 52px 53.4px, transparent 54px),
    radial-gradient(circle at 83% 76%, transparent 0 27px, rgba(132, 140, 153, 0.1) 27px 28px, transparent 29px),
    radial-gradient(circle at 58% 18%, transparent 0 19px, rgba(140, 147, 159, 0.08) 19px 19.8px, transparent 21px),
    linear-gradient(#f5f6f8, #f5f6f8);
  background-size: 310px 250px, 280px 320px, 360px 300px, 240px 340px, 420px 220px, 100% 100%;
  background-position: -30px -24px, 180px 90px, 480px -20px, 760px 110px, 360px -40px, 0 0;
  z-index: 0;
}

.sections-pattern > section {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.section-services {
  position: relative;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.section-services h2,
.section-services .services-list {
  width: 100%;
}

.service-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 0.95rem;
  padding: 1.2rem 1rem 1.15rem;
  background: #fff;
  text-align: center;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  margin: 0 auto 0.95rem;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  color: var(--primary);
  background: #f8f3f9;
  border: 1px solid #eaddeb;
}

.service-icon-svg {
  width: 22px;
  height: 22px;
  display: block;
}

.service-card h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #2d3b52;
  min-height: 2.8em;
}

.service-card p {
  margin: 0.7rem 0 0;
  color: #6a7588;
  font-size: 0.98rem;
}

.contact-grid {
  margin-top: 1.3rem;
  display: grid;
  gap: 0.75rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.contact-list li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.75rem;
  padding: 0.78rem 0.85rem;
}

.contact-map {
  margin: 0.5rem 0 0;
  padding: 0.75rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.contact-map-title {
  margin: 0 0 0.55rem;
  color: #311f37;
  font-weight: 700;
  text-align: center;
}

.contact-map img {
  display: block;
  width: min(100%, 520px);
  height: auto;
  margin: 0 auto;
}

.contact-map figcaption {
  margin-top: 0.55rem;
  text-align: center;
  color: #3a2b42;
  font-size: 0.95rem;
}

.contact-actions {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.label {
  font-weight: 700;
  color: #36445c;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

a:hover,
a:focus-visible {
  color: #7e0d65;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 0.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  min-height: 44px;
  padding: 0.55rem 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 9px 20px rgba(90, 0, 71, 0.24);
}

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

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

.btn-primary:hover,
.btn-primary:focus-visible {
  color: #fff;
  background: #4a003b;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #f7f8fd;
}

.note {
  margin-top: 0.4rem;
  padding: 0.7rem 0.8rem;
  border-left: 4px solid var(--accent);
  background: linear-gradient(160deg, #fff8ec, #fff3d9);
  border-radius: 0.7rem;
  color: #3f3742;
}

.section-testimonial {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-top: 0.1rem;
  padding-bottom: 0.2rem;
}

.testimonial {
  margin: 0 auto;
  max-width: 860px;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 4px solid var(--primary);
  background: transparent;
  color: #4a5670;
  font-size: 1.12rem;
  line-height: 1.85;
  text-align: center;
  font-style: italic;
}

.section-contact {
  background: linear-gradient(160deg, #f8f3f9, #f3edf6);
  border-color: #dbcde0;
  box-shadow: 0 8px 18px rgba(63, 38, 76, 0.08);
}

.section-contact h2 {
  color: var(--primary);
}

.section-contact h2::after {
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.section-contact .contact-list li {
  background: #ffffff;
  border-color: #e2d7e7;
  color: #31283a;
}

.section-contact .label {
  color: #3a2e45;
}

.section-contact a {
  color: var(--primary);
}

.section-contact a:hover,
.section-contact a:focus-visible {
  color: #7e0d65;
}

.section-contact .note {
  margin-top: 1rem;
  background: #fff;
  border-left-color: var(--accent);
  color: #3d3347;
}

.legal-content p {
  margin: 0.35rem 0 0.85rem;
  color: #434d61;
}

.sub-page .legal-content {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin-bottom: 2.2rem;
}

.legal-grid {
  display: block;
}

.legal-item {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #2c3445;
  margin-bottom: 0.65rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 0 1.8rem;
  color: #f1e8f3;
  background: linear-gradient(180deg, #08070e 0%, #150914 40%, #3a0034 100%);
}

.home-page main {
  padding-bottom: 0;
}

.sub-page main {
  padding-top: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  justify-content: center;
}

.footer-links a {
  display: inline-block;
  padding: 0.35rem 0.5rem;
}

.footer-copy {
  margin: 0.6rem 0 0;
  text-align: center;
  color: #f1e8f3;
  font-size: 0.92rem;
}

.site-footer a {
  color: #f7dba8;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff3d6;
}

@media (min-width: 700px) {
  .hero {
    padding: 2.3rem 1.9rem 1.7rem;
  }

  .hero-home {
    padding: 0;
  }

  section {
    padding: 1.5rem;
  }

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

  .hero-inner {
    grid-template-columns: 320px 1fr;
    align-items: center;
    justify-items: start;
    text-align: left;
    padding-top: 2.2rem;
    padding-bottom: 2.6rem;
  }

  .hero-home .hero-copy {
    align-self: center;
  }

  .hero-legal {
    min-height: 320px;
  }
}

@media (min-width: 980px) {
  .services-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.3rem, 980px);
  }

  .site-header {
    padding-top: 1.4rem;
  }

  .hero {
    padding: 1.35rem 0.95rem 1.2rem;
    gap: 0.9rem;
  }

  .hero-home {
    padding: 0;
  }

  .hero-home {
    min-height: 360px;
  }

  .hero-home .logo-wrap {
    width: 180px;
    height: 180px;
  }

  .hero-legal .logo-wrap {
    width: 140px;
    height: 140px;
  }

  .hero-inner {
    width: min(100% - 1.3rem, 980px);
    padding-top: 1.7rem;
    padding-bottom: 2rem;
  }

  .logo-wrap {
    width: 96px;
    height: 96px;
  }

  section {
    padding: 1rem;
  }

  .btn {
    width: 100%;
  }

  h2 {
    font-size: 1.5rem;
  }
}
