:root {
  --bg: #f5f3ff;
  --surface: #ffffff;
  --surface-soft: #f8f8fc;
  --text: #1d2340;
  --muted: #67708f;
  --primary: #760a99;
  --primary-strong: #5c0878;
  --secondary: #f6c453;
  --accent: #9b1cc3;
  --line: rgba(118, 10, 153, 0.1);
  --shadow-lg: 0 24px 80px rgba(35, 24, 83, 0.18);
  --shadow-md: 0 18px 42px rgba(34, 24, 79, 0.12);
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(118, 10, 153, 0.12), transparent 32%),
    linear-gradient(180deg, #fcfbff 0%, #f4f6fb 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  overflow: hidden;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(118, 10, 153, 0.08);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  max-width: 220px;
}

.brand__logo {
  display: block;
  width: 100%;
  max-width: 210px;
  height: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-item {
  position: relative;
}

.nav a,
.nav-submenu-toggle {
  color: var(--muted);
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav-submenu-toggle:hover,
.nav-submenu-toggle:focus-visible {
  color: var(--primary);
}

.submenu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  min-width: 220px;
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.submenu a {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
}

.submenu a:hover,
.submenu a:focus-visible {
  background: rgba(118, 10, 153, 0.08);
}

.nav-item--has-submenu:hover .submenu,
.nav-item--has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero__content h1,
.section-heading h2,
.showcase__content h2,
.contact__content h2,
.privacy-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.hero__content h1 {
  font-size: clamp(2.8rem, 6vw, 5.1rem);
  max-width: 11ch;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.78);
}

.hero__lead,
.section-heading p,
.showcase__content p,
.contact__content p,
.contact-data,
.testimonial,
.feature-card p,
.pillar-card p,
.service-card p,
.service-card li {
  color: var(--muted);
  line-height: 1.75;
}

.hero__lead {
  max-width: 60ch;
  margin: 1.35rem 0 0;
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 0.95rem 1.45rem;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 30px rgba(29, 78, 216, 0.24);
}

.button--ghost {
  color: var(--primary);
  background: rgba(118, 10, 153, 0.09);
}

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

.stat-card,
.feature-card,
.pillar-card,
.service-card,
.panel-card,
.map-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.stat-card {
  padding: 1.1rem 1rem;
}

.stat-card strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.6rem;
  color: var(--primary);
}

.stat-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero__visual {
  position: relative;
  min-height: 620px;
}

.hero__visual::before,
.hero__visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(16px);
}

.hero__visual::before {
  width: 240px;
  height: 240px;
  right: 10%;
  top: 4%;
  background: rgba(246, 196, 83, 0.32);
}

.hero__visual::after {
  width: 280px;
  height: 280px;
  left: 0;
  bottom: 5%;
  background: rgba(118, 10, 153, 0.18);
}

.hero-card {
  position: absolute;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
}

.hero-card--main {
  inset: 0 0 68px 52px;
  padding: 2rem;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(25, 31, 68, 0.56), rgba(118, 10, 153, 0.28)),
    radial-gradient(circle at right, rgba(255, 255, 255, 0.32), transparent 30%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900' viewBox='0 0 900 900'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1' y1='0' y2='1'%3E%3Cstop stop-color='%232f3f72'/%3E%3Cstop offset='1' stop-color='%23733ed8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='900' height='900' fill='url(%23g)'/%3E%3Ccircle cx='620' cy='260' r='230' fill='rgba(255,255,255,0.12)'/%3E%3Ccircle cx='280' cy='600' r='260' fill='rgba(255,255,255,0.07)'/%3E%3Cpath d='M610 150c90 0 160 74 160 165s-70 165-160 165-160-74-160-165 70-165 160-165Zm-295 240c120 0 220 100 220 225v45H95v-45c0-125 100-225 220-225Z' fill='rgba(255,255,255,0.2)'/%3E%3C/svg%3E") center/cover no-repeat;
}

.hero-card--floating {
  right: 0;
  bottom: 0;
  width: min(260px, 74%);
  padding: 1.35rem;
  background: #fff;
}

.hero-card__tag,
.panel-card__label {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-card__tag {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.hero-card--main h2,
.panel-card h3 {
  margin: 1rem 0 0.8rem;
  font-size: clamp(1.7rem, 2vw, 2.35rem);
  line-height: 1.15;
}

.hero-card--main p,
.hero-card--floating span,
.panel-card p {
  margin: 0;
  line-height: 1.7;
}

.hero-card--floating strong {
  display: block;
  color: var(--primary);
  font-size: 2.2rem;
  margin-bottom: 0.35rem;
}

.section {
  padding: 6rem 0;
}

.section--light {
  background: rgba(255, 255, 255, 0.72);
}

.section--accent {
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(135deg, #2b0838 0%, #760a99 55%, #9b1cc3 100%);
}

.section--contact {
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 22%),
    linear-gradient(135deg, #760a99 0%, #9b1cc3 100%);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.2rem;
}

.section-heading h2,
.showcase__content h2,
.contact__content h2,
.privacy-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-heading--split {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 2rem;
  align-items: end;
}

.privacy-hero {
  padding-bottom: 2rem;
}

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
  gap: 1.5rem;
  align-items: start;
}

.privacy-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 2rem;
}

.privacy-card h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  color: var(--primary);
}

.privacy-card h2:not(:first-child) {
  margin-top: 2rem;
}

.privacy-card p,
.privacy-card li {
  color: var(--muted);
  line-height: 1.8;
}

.privacy-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.privacy-card--side {
  position: sticky;
  top: 110px;
}

.maintenance-page {
  min-height: calc(100vh - 84px);
  display: grid;
  align-items: center;
}

.maintenance-card {
  max-width: 620px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.maintenance-card__logo {
  width: min(220px, 100%);
  margin: 0 auto 1.5rem;
}

.maintenance-card p {
  margin: 1rem 0 1.75rem;
  color: var(--muted);
  line-height: 1.8;
}

.feature-grid,
.pillars-grid,
.services-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

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

.feature-card,
.pillar-card,
.service-card {
  padding: 1.5rem;
}

.feature-card__icon,
.pillar-card__icon,
.service-card__icon {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: 18px;
  margin-bottom: 1rem;
  color: var(--primary);
  background: rgba(118, 10, 153, 0.1);
}

.pillar-card {
  color: var(--text);
}

.feature-card h3,
.pillar-card h3,
.service-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.35rem;
}

.service-card {
  display: grid;
  gap: 1rem;
}

.service-card ul {
  margin: 0;
  padding-left: 1rem;
}

.testimonials {
  padding-top: 0;
}

.testimonial {
  max-width: 840px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.testimonial__avatar {
  width: 128px;
  height: 128px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid rgba(118, 10, 153, 0.08);
  box-shadow: 0 16px 34px rgba(118, 10, 153, 0.16);
}

.testimonial p {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.8;
}

.testimonial footer {
  margin-top: 1.25rem;
  color: var(--primary);
  font-weight: 800;
}

.contact {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: start;
}

.contact__content p,
.contact-data {
  color: rgba(255, 255, 255, 0.84);
}

.contact-data {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.4rem 0 1.5rem;
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.section--contact .button--primary {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
}

.section--contact .button--primary:hover,
.section--contact .button--primary:focus-visible {
  background: #f8efff;
}

.map-card {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.16);
}

.map-card__frame {
  display: block;
  width: 100%;
  min-height: 480px;
  border: 0;
  border-radius: 18px;
}

.footer {
  background: #fff;
  border-top: 1px solid rgba(118, 10, 153, 0.08);
}

.footer__inner {
  min-height: 86px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
}

.scroll-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 40;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 36px rgba(118, 10, 153, 0.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover,
.scroll-top:focus-visible {
  transform: translateY(-2px);
}

[data-nav].is-open {
  display: flex;
}

@media (max-width: 1100px) {
  .hero__grid,
  .contact,
  .privacy-layout,
  .section-heading--split {
    grid-template-columns: 1fr;
  }

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

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

  .hero__visual {
    min-height: 520px;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
  }

  .nav-item {
    position: static;
  }

  .nav a {
    padding: 0.75rem 0.35rem;
  }

  .nav-submenu-toggle {
    width: 100%;
    text-align: left;
    padding: 0.75rem 0.35rem;
  }

  .submenu {
    position: static;
    min-width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0.35rem 0 0.2rem 0.85rem;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .submenu a {
    padding: 0.55rem 0.35rem;
  }

  .feature-grid,
  .services-grid,
  .pillars-grid,
  .hero__trust {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero__content h1 {
    max-width: 100%;
  }

  .hero__visual {
    min-height: 440px;
  }

  .hero-card--main {
    inset: 0 0 56px 0;
  }

  .hero-card--floating {
    width: 220px;
  }

  .section,
  .testimonials {
    padding: 4.2rem 0;
  }

  .footer__inner {
    text-align: center;
    padding: 1rem 0;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .topbar__inner {
    min-height: 74px;
  }

  .brand {
    max-width: 170px;
  }

  .hero__lead,
  .section-heading p,
  .feature-card p,
  .pillar-card p,
  .service-card p {
    font-size: 0.97rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero__visual {
    min-height: 380px;
  }

  .hero-card--main,
  .hero-card--floating,
  .feature-card,
  .pillar-card,
  .service-card,
  .testimonial,
  .panel-card,
  .map-card,
  .privacy-card {
    border-radius: 22px;
  }

  .hero-card--main {
    padding: 1.35rem;
  }

  .hero-card--floating {
    width: min(100%, 190px);
    padding: 1rem;
  }
}
