@font-face {
  font-family: Manrope;
  src: url("assets/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #171d22;
  --muted: #454b51;
  --accent: #860519;
  --accent-dark: #650416;
  --accent-light: #edf0f2;
  --paper: #fff;
  --mist: #f5f6f7;
  --line: #dce0e4;
  --edge: clamp(18px, 4.46vw, 100px);
  --content-max: 1600px;
  font-family: Manrope, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
::selection { background: var(--accent-light); color: var(--accent-dark); }
:focus-visible { outline: 2px solid #8f2333; outline-offset: 4px; }
.page-width { width: min(calc(100% - 2 * var(--edge)), var(--content-max)); margin-inline: auto; }
.icon { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; transform: translateY(-180%); padding: 12px 16px; background: white; }
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 2; background: var(--paper); }
.contact-bar { background: var(--mist); border-bottom: 1px solid #e9ecef; }
.contact-bar__inner, .header-actions, .top-phone, .office-address { display: flex; align-items: center; }
.contact-bar__inner { min-height: 34px; }
.office-address, .top-phone { gap: 7px; }
.office-address { font-size: 0.8125rem; color: var(--muted); }
.office-address .icon, .top-phone .icon { width: 17px; height: 17px; color: var(--accent); }
.header-actions { gap: clamp(10px, 1.25vw, 20px); }
.top-phone { min-height: 44px; font-weight: 670; font-size: 0.875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.navigation-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: clamp(15px, 1.25vw, 24px); }
.wordmark { display: inline-flex; align-items: center; gap: 14px; flex: none; }
.brand-logo { display: block; width: clamp(102px, 8.5vw, 135px); height: auto; filter: contrast(1.1) brightness(1.025); }
.wordmark__label { display: flex; align-items: center; min-height: 54px; border-left: 1px solid var(--line); padding-left: 14px; color: var(--ink); font-size: 0.8125rem; font-weight: 700; line-height: 1.28; }
.navigation { display: flex; align-items: center; justify-content: space-between; gap: clamp(12px, 1.6vw, 32px); margin-inline: auto; }
.navigation button { background: none; border: 0; white-space: nowrap; min-height: 44px; padding: 0; font-size: clamp(0.8rem, 1.02vw, 0.9375rem); font-weight: 580; }
.menu-toggle { display: none; }

.hero { position: relative; isolation: isolate; background: var(--paper); }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 61fr) minmax(0, 39fr); min-height: clamp(580px, 45.4vw, 740px); align-items: center; }
.hero__content { position: relative; z-index: 1; padding: 38px 0 43px; }
.hero__identity { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin: 0 0 16px; font-size: 1rem; line-height: 1.4; }
.hero__agency { font-weight: 650; }
.hero__location { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 500; }
.hero__location .icon { width: 1.25em; height: 1.25em; color: var(--accent); }
h1 { max-width: 13em; margin: 0; font-size: clamp(2.68rem, 4.1vw, 4.8rem); letter-spacing: -0.035em; font-weight: 655; line-height: 0.98; }
.key-phrase { color: var(--accent); }
.hero__description { max-width: 46ch; margin: 17px 0 0; color: var(--muted); font-size: clamp(1rem, 1.28vw, 1.18rem); line-height: 1.37; }

.hero__benefits { display: grid; grid-template-columns: 0.98fr 1.07fr 0.97fr; max-width: 608px; margin: 27px 0 0; padding: 0; list-style: none; }
.benefit { min-width: 0; padding-right: clamp(15px, 2.15vw, 30px); }
.benefit + .benefit { border-left: 1px solid var(--line); padding-left: clamp(16px, 2.15vw, 29px); }
.benefit:last-child { padding-right: 0; }
.benefit__icon { width: 30px; height: 30px; margin-bottom: 8px; color: var(--accent); stroke-width: 1.9; }
.benefit h2 { margin: 0 0 6px; font-size: clamp(0.875rem, 1.12vw, 1rem); font-weight: 650; line-height: 1.18; }
.benefit p { margin: 0; max-width: 23ch; color: var(--muted); font-size: clamp(0.8125rem, 0.94vw, 0.875rem); line-height: 1.38; }

.hero__footer { display: flex; align-items: center; gap: clamp(14px, 2.8vw, 43px); margin-top: 33px; }
.button { display: inline-flex; min-height: 46px; justify-content: center; align-items: center; padding: 11px 19px; border: 1px solid transparent; border-radius: 5px; font-size: 0.875rem; font-weight: 650; line-height: 1.25; text-align: center; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
.callback.button { min-height: 44px; padding-inline: clamp(14px, 1.9vw, 28px); white-space: nowrap; }
.consultation-button { order: -1; min-width: clamp(182px, 18vw, 245px); flex: none; }
.button--primary { color: #fff; background: var(--accent); border-color: var(--accent); }

.hero__portrait { position: absolute; z-index: 0; inset: 0 calc((100% - 100vw) / 2); overflow: hidden; margin: 0; pointer-events: none; }
.hero__photo {
  display: block;
  position: absolute;
  top: -2%;
  left: 77.2%;
  width: auto;
  height: 121%;
  max-width: none;
  transform: translateX(-34%);
  -webkit-mask-image: linear-gradient(to right, transparent 8%, #000 19%);
  mask-image: linear-gradient(to right, transparent 8%, #000 19%);
}
.hero__caption {
  --caption-padding: 10px 14px;
  position: absolute;
  right: var(--edge);
  bottom: clamp(14px, 2.2vw, 32px);
  max-width: min(17rem, calc(100% - 2 * var(--edge)));
  gap: 4px;
  border-radius: 8px;
  background: rgb(255 255 255 / 90%);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.35;
}
.hero__caption-link {
  display: grid;
  min-height: 44px;
  gap: inherit;
  padding: var(--caption-padding);
  border-radius: inherit;
  pointer-events: auto;
}
.hero__caption strong { color: var(--ink); font-size: 1rem; font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.2em; }
.hero__caption-link:is(:hover, :focus-visible) strong { color: var(--accent); }
.hero__caption-link:focus-visible { outline-offset: -3px; }
.hero__caption span { text-wrap: balance; }
.trust-band { display: grid; grid-template-columns: max-content max-content minmax(0, 1fr); gap: clamp(9px, 1.28vw, 19px); min-width: 0; margin: 0; }
.trust-band__item { min-width: 0; display: grid; align-content: start; gap: 3px; }
.trust-band__item + .trust-band__item { border-left: 1px solid var(--line); padding-left: clamp(9px, 1.24vw, 18px); }
.trust-band dt { margin: 0; font-size: clamp(0.9375rem, 1.24vw, 1.14rem); font-weight: 700; line-height: 1.13; letter-spacing: -0.025em; white-space: nowrap; }
.trust-band dd { margin: 0; color: var(--muted); font-size: clamp(0.6875rem, 0.91vw, 0.8125rem); line-height: 1.35; }
.trust-band__rating a { display: inline-flex; align-items: center; gap: 4px; }
.rating-star { width: 14px; height: 14px; fill: var(--accent); flex: none; }

@media (hover: hover) and (pointer: fine) {
  .office-address:hover, .top-phone:hover, .navigation button:hover { color: var(--accent); }
  .hero__location:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 0.15em; }
  .menu-toggle:hover { background: var(--mist); }
  .button--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
  .trust-band__rating a:hover { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
}
.button:active, .menu-toggle:active { transform: translateY(1px); }

.panel { width: min(100% - 28px, 485px); max-height: calc(100dvh - 28px); border: 1px solid var(--line); border-radius: 12px; padding: clamp(18px, 4vw, 30px); color: var(--ink); background: var(--paper); overscroll-behavior: contain; }
.panel::backdrop { background: #1c2025a6; }
html:has(dialog[open]) { overflow: hidden; }
.panel__heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.panel h2 { color: var(--ink); font-size: clamp(1.4rem, 5vw, 1.9rem); letter-spacing: -0.025em; line-height: 1.15; margin: 2px 0 0; }
.panel__close { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 5px; flex: none; color: var(--accent); background: var(--mist); }
.panel__intro, .details-content, .form-preview, .form-status { color: var(--muted); line-height: 1.5; }
.panel__intro { margin: 9px 0 16px; }
.field { min-width: 0; display: grid; gap: 5px; color: var(--ink); font-size: 0.9375rem; font-weight: 650; margin-bottom: 12px; }
.field small { font-size: 0.8125rem; color: var(--muted); font-weight: 450; margin-left: 3px; }
.field input, .field textarea, .select-shell { width: 100%; min-width: 0; min-height: 43px; border: 1px solid #aeb5bc; border-radius: 4px; padding: 9px 10px; color: var(--ink); background: #fff; font-size: 1rem; font-weight: 430; caret-color: var(--accent-dark); }
.field textarea { resize: vertical; }
.select-shell { position: relative; display: grid; align-items: center; padding-right: 33px; line-height: 1.35; }
.select-shell::after { content: ""; position: absolute; right: 13px; top: 50%; width: 8px; height: 8px; border-bottom: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent); transform: translateY(-72%) rotate(45deg); pointer-events: none; }
.select-shell select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.select-shell:has(select:focus-visible) { outline: 2px solid #8f2333; outline-offset: 3px; }
.form-preview { margin: 13px 0; font-size: 0.875rem; }
.form-status { margin: 0; }
.form-status:not(:empty) { margin-top: 12px; color: var(--accent-dark); }
.details-content p { margin: 12px 0; }
.details-content ul { padding-left: 20px; }
.details-content li { margin: 7px 0; }
.details-content a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 0.18em; }
.details-content .button { color: #fff; text-decoration: none; margin-top: 6px; }

@media (max-width: 1400px) {
  .navigation { gap: 14px; }
}

@media (max-width: 1170px) {
  .hero__inner { grid-template-columns: 63fr 37fr; }
}

@media (max-width: 1280px) {
  .navigation-row { min-height: 75px; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: grid; width: 44px; height: 44px; flex: none; place-items: center; border: 1px solid var(--line); border-radius: 5px; color: var(--accent); background: var(--paper); }
  .navigation { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 8px var(--edge) 14px; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 10px 18px #1c20251a; }
  .navigation.is-open { display: grid; gap: 0; }
  .navigation button { border-bottom: 1px solid var(--line); text-align: left; font-size: 1rem; }
  .navigation button:last-child { border: 0; }
  .menu-toggle[aria-expanded="true"] .menu-top { transform: translateY(4px) rotate(45deg); transform-origin: center; }
  .menu-toggle[aria-expanded="true"] .menu-bottom { transform: translateY(-4px) rotate(-45deg); transform-origin: center; }
}

@media (max-width: 850px) {
  :root { --edge: clamp(18px, 5.5vw, 45px); }
  .site-header { border-bottom: 1px solid #e9ecef; }
  .contact-bar { display: none; }
  .navigation-row { min-height: 70px; }
  .wordmark { min-width: 0; flex: 0 1 auto; gap: 8px; }
  .brand-logo { flex: none; width: clamp(77px, 22vw, 110px); }
  .wordmark__label { min-height: 44px; padding-left: 8px; font-size: clamp(0.5625rem, 2.6vw, 0.75rem); }
  .hero__inner {
    width: 100%;
    min-height: auto;
    align-items: stretch;
    grid-template-columns: [full-start] var(--edge) [content-start] clamp(115px, 29vw, 180px) [portrait-start] minmax(0, 1fr) [content-end] var(--edge) [full-end];
    grid-template-rows: auto minmax(clamp(235px, 62vw, 411px), auto) auto auto;
  }
  .hero__content, .hero__footer { display: contents; }
  .hero__intro { grid-area: 1 / content-start / 2 / content-end; padding: 23px 0 21px; }
  .hero__agency { display: none; }
  .hero__location { align-items: flex-start; }
  h1 { font-size: clamp(2.13rem, 8.5vw, 3.6rem); line-height: 1.025; max-width: 14.6em; }
  .desktop-break { display: none; }
  .key-phrase { white-space: nowrap; }
  .hero__description { margin-top: 14px; font-size: 1rem; max-width: 43ch; }
  .consultation-button { grid-area: 3 / content-start / 4 / content-end; order: 0; justify-self: start; margin-top: 18px; }
  .trust-band {
    grid-area: 2 / content-start / 3 / portrait-start;
    grid-template-columns: minmax(0, 1fr);
    align-self: center;
    width: min(100%, 9rem);
    gap: 11px;
    padding-right: 12px;
  }
  .trust-band dt { font-size: 1rem; }
  .trust-band dd { font-size: 0.75rem; overflow-wrap: anywhere; }
  .trust-band__item + .trust-band__item { padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .hero__portrait {
    grid-area: 2 / portrait-start / 3 / full-end;
    position: relative;
    inset: auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 8rem var(--edge) 14px 8px;
  }
  .hero__photo {
    inset: -1% auto auto 0;
    width: 100%;
    height: 118%;
    object-fit: cover;
    object-position: 24% top;
    transform: none;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 clamp(20px, 6vw, 42px));
    mask-image: linear-gradient(to right, transparent, #000 clamp(20px, 6vw, 42px));
  }
  .hero__caption { --caption-padding: 8px 12px; position: relative; inset: auto; max-width: min(100%, 15rem); gap: 3px; font-size: 0.75rem; }
  .hero__benefits { grid-area: 4 / content-start / 5 / content-end; grid-template-columns: 1fr; gap: 0; margin-top: 14px; margin-bottom: 25px; }
  .benefit, .benefit + .benefit { display: grid; grid-template-columns: 32px 1fr; gap: 11px; padding: 14px 0; border-left: 0; }
  .benefit + .benefit { border-top: 1px solid var(--line); }
  .benefit__icon { width: 26px; height: 26px; margin: 0; }
  .benefit h2 { font-size: 0.9375rem; }
  .benefit p { max-width: 48ch; }
}

@media (max-width: 768px) {
  .navigation-row { min-height: 64px; }
  .hero__inner {
    grid-template-columns: var(--edge) [content-start] minmax(0, 1fr) [content-end] var(--edge);
    grid-template-rows: repeat(5, auto);
  }
  .hero__intro { padding-bottom: 16px; }
  .trust-band {
    grid-area: 3 / content-start / 4 / content-end;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin-top: 14px;
    padding: 0;
  }
  .trust-band dt { white-space: normal; }
  .trust-band__item + .trust-band__item { border: 0; border-left: 1px solid var(--line); padding: 0 0 0 12px; }

  .hero__portrait {
    grid-area: 2 / content-start / 3 / content-end;
    display: block;
    aspect-ratio: 4 / 3;
    padding: 0;
    border-radius: 10px;
  }
  .hero__photo {
    inset: 0 auto auto 0;
    width: 175%;
    height: auto;
    transform: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero__caption {
    position: absolute;
    inset: auto 12px 12px auto;
    max-width: min(15rem, calc(100% - 24px));
    gap: 2px;
    --caption-padding: 7px 10px;
  }
  .hero__caption-specialty { display: none; }
  .consultation-button { grid-row: 4; }
  .hero__benefits { grid-row: 5; }
}

@media (max-width: 750px) {
  .navigation-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; }
  .wordmark { padding-block: 4px; }
  .header-actions { grid-column: 1 / -1; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; margin-left: 0; padding-bottom: 6px; }
  .callback.button { padding-inline: 12px; }
}

@media (max-width: 470px) {
  .hero__identity { font-size: 0.9375rem; }
  h1 { overflow-wrap: anywhere; }
  .consultation-button { width: 100%; }
  .trust-band { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .trust-band__item {
    grid-template-columns: minmax(0, 5rem) minmax(0, 1fr);
    align-items: baseline;
    column-gap: 12px;
    padding: 6px 0;
  }
  .trust-band__item + .trust-band__item { border-left: 0; border-top: 1px solid var(--line); padding: 6px 0; }
}

@media (max-width: 360px) {
  .header-actions { column-gap: 4px; }
  .top-phone { gap: 5px; font-size: 0.8125rem; }
  .top-phone .icon { width: 15px; height: 15px; }
  .callback.button { padding-inline: 8px; }
  .hero__caption strong { font-size: 0.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.form-consent { display: flex; gap: 9px; align-items: start; font-size: 0.875rem; line-height: 1.4; }
.form-consent input { margin: 2px 0 0; flex: none; width: 17px; height: 17px; accent-color: var(--accent); }
