:root {
  --ink: #040f26;
  --ink-soft: #10213d;
  --text: #172238;
  --muted: #6d7888;
  --line: #d9dee7;
  --paper: #f5f7fb;
  --white: #ffffff;
  --silver: #c8d0db;
  --silver-dark: #7b8797;
  --focus: #9bb6d8;
  --header-height: 88px;
  --shadow: 0 14px 34px rgba(4, 15, 38, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: Montserrat, Poppins, Avenir Next, Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.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;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: clamp(8px, 1vw, 12px) clamp(16px, 4vw, 48px);
  color: var(--white);
  background: rgba(4, 15, 38, 0.98);
  border-bottom: 1px solid rgba(200, 208, 219, 0.22);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 28px rgba(4, 15, 38, 0.18);
}

.brand {
  width: clamp(210px, 18vw, 290px);
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: auto;
  max-height: calc(var(--header-height) - 18px);
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(9px, 1.1vw, 18px);
  font-size: clamp(0.62rem, 0.72vw, 0.72rem);
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.74);
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 8px 0;
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: linear-gradient(90deg, var(--silver-dark), var(--white), var(--silver));
  transition: transform 180ms ease;
}

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

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 10px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0;
  background: currentColor;
}

.section {
  padding: clamp(44px, 6vw, 76px) 0;
  overflow-x: hidden;
}

.section-inner {
  width: calc(100% - 36px);
  max-width: 1080px;
  margin: 0 auto;
}

.first-section {
  padding-top: calc(var(--header-height) + clamp(38px, 6vw, 68px));
}

.intro {
  color: var(--ink);
  background: var(--paper);
}

.intro.first-section {
  padding-top: calc(var(--header-height) + clamp(27px, 4.2vw, 48px));
  padding-bottom: clamp(31px, 4.2vw, 53px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) 1.1fr;
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
}

.intro-grid > *,
.pro-layout > *,
.contact-layout > * {
  min-width: 0;
}

.intro-copy p {
  margin: 0;
  color: var(--text);
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--silver);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.65rem, 2.8vw, 2.8rem);
  line-height: 1.1;
}

.services {
  color: var(--white);
  background: var(--ink);
}

.services h2 {
  color: var(--white);
}

.intro h1,
.pro-copy h2 {
  color: var(--ink);
}

.contact-card h2 {
  color: var(--white);
}

#contact-title {
  font-size: clamp(1.35rem, 2.1vw, 2.15rem);
}

.intro .section-kicker,
.pro-band .section-kicker {
  color: var(--silver-dark);
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
}

p {
  color: var(--text);
}

.section-heading {
  width: 100%;
  max-width: 650px;
  margin-bottom: 28px;
}

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

.service-card {
  min-height: 210px;
  display: grid;
  grid-template-rows: 22px 34px 1fr;
  align-items: start;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(4, 15, 38, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.card-number {
  color: var(--silver-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.service-card h3 {
  display: flex;
  align-items: flex-start;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact {
  color: var(--white);
  background: var(--ink);
}

.pro-band {
  color: var(--text);
  background: var(--paper);
}

.pro-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.96rem;
}

.pro-copy p {
  color: var(--text);
  font-size: 0.96rem;
}

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

.pro-list div,
.contact-card {
  border: 1px solid rgba(200, 208, 219, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.pro-list div {
  display: grid;
  gap: 7px;
  padding: 18px;
}

.pro-band .pro-list div {
  border-color: rgba(4, 15, 38, 0.12);
  background: var(--white);
  box-shadow: var(--shadow);
}

.pro-list strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.pro-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 22px;
  padding: clamp(20px, 3vw, 30px);
}

.contact-card img {
  width: 120px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-link {
  display: inline-flex;
  color: var(--silver);
  font-weight: 800;
  text-decoration: none;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.contact-actions .button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.contact-form {
  display: grid;
  gap: 13px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-alert {
  display: none;
  margin: 0;
  padding: 10px 12px;
  color: #9b2d30;
  background: #fff0f0;
  border: 1px solid rgba(155, 45, 48, 0.28);
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 800;
}

.form-alert.is-visible {
  display: block;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #ccd3dd;
  border-radius: 6px;
  background: #fbfcfe;
  color: var(--ink);
  padding: 11px 12px;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form .consent-label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
}

.contact-form .consent-label input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  padding: 0;
  cursor: pointer;
}

.contact-form .consent-label a {
  color: var(--ink);
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  color: var(--ink);
  background: linear-gradient(135deg, #f7f9fb, #c8d0db 55%, #7b8797);
  border-color: #eef2f6;
}

.button-secondary,
.button-calendar {
  color: var(--ink);
  border-color: rgba(4, 15, 38, 0.2);
  background: rgba(255, 255, 255, 0.78);
}

.contact-form .button {
  width: 100%;
  cursor: pointer;
}

.contact-form .button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 22px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.form-status.is-success {
  color: #25684b;
}

.form-status.is-error {
  color: #9b2d30;
}

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
}

.footer-inner img {
  width: 190px;
  height: 66px;
  object-fit: contain;
  object-position: left center;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner a {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 16px;
}

.footer-links .legal-link {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.legal-main {
  min-height: 100vh;
  background: var(--paper);
}

.legal-hero {
  padding: calc(var(--header-height) + clamp(34px, 5vw, 58px)) 0 clamp(30px, 4vw, 44px);
  color: var(--white);
  background: var(--ink);
}

.legal-hero h1 {
  max-width: 820px;
  margin: 8px 0 18px;
  color: var(--white);
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.12;
}

.back-link {
  display: inline-flex;
  color: var(--silver);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.legal-content {
  padding: clamp(30px, 5vw, 62px) 0;
}

.legal-document {
  max-width: 980px;
  padding: clamp(22px, 4vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.legal-document h1,
.legal-document h2,
.legal-document h3,
.legal-document p,
.legal-document ul {
  max-width: 820px;
}

.legal-document h1 {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.2;
}

.legal-document h2 {
  margin: 34px 0 14px;
  color: var(--ink);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.legal-document h3 {
  margin: 24px 0 10px;
  color: var(--ink-soft);
  font-size: 1rem;
}

.legal-document p,
.legal-document li {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.72;
}

.legal-document p {
  margin: 0 0 14px;
}

.legal-document ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.legal-document a {
  color: var(--ink);
  font-weight: 700;
}

.legal-document hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

@media (max-width: 1180px) {
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    justify-self: end;
  }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: grid;
    align-content: start;
    gap: 0;
    padding: 16px 18px;
    padding-top: calc(var(--header-height) + 16px);
    background: rgba(4, 15, 38, 0.99);
    border-bottom: 1px solid rgba(200, 208, 219, 0.2);
    transform: translateY(calc(-100% - var(--header-height)));
    transition: transform 200ms ease;
    visibility: hidden;
  }

  .site-nav.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(200, 208, 219, 0.14);
  }

  .intro-grid,
  .pro-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  :root {
    --header-height: 78px;
  }

  body {
    font-size: 14px;
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand {
    width: clamp(190px, 58vw, 235px);
  }

  .section-inner {
    width: min(350px, calc(100vw - 40px));
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }

  .intro-grid,
  .intro-grid > *,
  .pro-layout,
  .pro-layout > *,
  .contact-layout,
  .contact-layout > * {
    width: 100%;
    max-width: 350px;
  }

  h1,
  h2,
  h3,
  p {
    max-width: calc(100vw - 40px);
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .intro-copy,
  .section-heading,
  .service-card,
  .service-card p,
  .pro-copy,
  .contact-card,
  .contact-form {
    max-width: calc(100vw - 40px);
  }

  .first-section {
    padding-top: calc(var(--header-height) + 34px);
  }

  .intro.first-section {
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 31px;
  }

  h1,
  h2 {
    font-size: clamp(1.22rem, 5.1vw, 1.48rem);
    line-height: 1.14;
  }

  .intro-copy p,
  .pro-copy p,
  .contact-card p {
    font-size: 0.9rem;
  }

  .intro-actions,
  .button {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .service-card {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 18px;
  }

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

  .contact-card img {
    width: 96px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .section-inner {
    width: min(310px, calc(100vw - 40px));
    max-width: 310px;
  }

  .intro-grid,
  .intro-grid > *,
  .pro-layout,
  .pro-layout > *,
  .contact-layout,
  .contact-layout > *,
  .intro-copy,
  .section-heading,
  .service-card,
  .service-card p,
  .pro-copy,
  .contact-card,
  .contact-form {
    max-width: 310px;
  }
}
