:root {
  --wil-accent: #b91c1c;
  --wil-accent-rgb: 185, 28, 28;
  --wil-accent-hover: #991b1b;
  --wil-bg: #fafafa;
  --wil-text: #252525;
  --wil-muted: #6b7280;
  --wil-border: rgba(37, 37, 37, 0.12);
  --wil-footer: #252525;
  --wil-hover-text: #c4c4c4;
  --content-max: 56rem;
  --wil-radius-btn: 8px;
  --wil-radius-card: 10px;
  --site-main-footer-gap: calc(2.5rem + 1.5em);
  --header-height: 8.75rem;
}

@supports (color: color-mix(in srgb, red 50%, blue)) {
  :root {
    --wil-accent-hover: color-mix(in srgb, var(--wil-accent) 88%, #000);
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--wil-text);
  background: var(--wil-bg);
  line-height: 1.5;
}

@supports (min-height: 100dvh) {
  body {
    min-height: 100dvh;
  }
}

address {
  font-style: normal;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip-path: inset(50%);
}

@supports not (clip-path: inset(50%)) {
  .visually-hidden {
    clip: rect(0, 0, 0, 0);
  }
}

.site-header {
  position: relative;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.header-bar {
  background: var(--wil-accent);
  color: #fff;
}

.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand img {
  height: clamp(2rem, 4vw, 2.5rem);
  width: auto;
  display: block;
}

.brand:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 4px;
}

.header-tagline-strip {
  background: #fff;
  color: var(--wil-text);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-tagline {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0.85rem 1.25rem 1rem;
  text-align: center;
}

.header-tagline-lead {
  margin: 0 0 0.35rem;
  font-size: clamp(0.88rem, calc(0.42rem + 2.75vw), 2rem);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--wil-text);
}

.header-tagline-line {
  margin: 0.15rem 0;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--wil-text);
}

.header-tagline-name {
  margin: 0.35rem 0 0.25rem;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wil-accent);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.site-nav a:hover {
  color: var(--wil-hover-text);
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.site-nav a:focus-visible {
  color: var(--wil-hover-text);
  border-bottom-color: rgba(255, 255, 255, 0.5);
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 2px;
}

.site-nav a.is-active {
  border-bottom-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-nav {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    justify-items: stretch;
    gap: 0.5rem 0.35rem;
  }

  .site-nav a {
    text-align: center;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
  }
}

.hero {
  width: 100%;
  background: var(--wil-bg);
  border-bottom: 1px solid rgba(var(--wil-accent-rgb), 0.12);
}

.hero-frame {
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  object-fit: contain;
  object-position: center center;
}

.site-main {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem var(--site-main-footer-gap);
}

.content-panel[hidden] {
  display: none !important;
}

.content-panel h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 600;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wil-text);
}

#heading-consult {
  text-align: center;
}

#consult .btn-primary {
  margin-top: 2rem;
}

input:focus-visible {
  outline: 2px solid rgba(var(--wil-accent-rgb), 0.35);
  outline-offset: 1px;
}

.radio-list input:focus {
  outline: none;
}

.radio-list input:focus-visible {
  outline: 2px solid rgba(var(--wil-accent-rgb), 0.35);
  outline-offset: 2px;
}

.btn-primary {
  display: block;
  width: 100%;
  max-width: 40rem;
  margin: 1rem auto 0;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: var(--wil-radius-btn);
  background: var(--wil-accent);
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background: var(--wil-accent-hover);
  color: #fff;
}

a.btn-primary {
  text-decoration: none;
  text-align: center;
}

.radio-list {
  --radio-list-pad-x: 1rem;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 40rem;
  border: 1px solid var(--wil-accent);
  border-radius: var(--wil-radius-card);
  background: #fff;
  overflow: hidden;
}

.radio-list li {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-bottom: 1px solid rgba(var(--wil-accent-rgb), 0.2);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.radio-list-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem var(--radio-list-pad-x);
}

.radio-list-row input[type="radio"] {
  flex-shrink: 0;
  margin: 0;
}

.radio-list-row label {
  flex: 1;
  min-width: 0;
}

.radio-list-details {
  display: none;
  padding: 0.35rem var(--radio-list-pad-x) 0.65rem;
  background: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(var(--wil-accent-rgb), 0.12);
}

.radio-list li:has(input:checked) .radio-list-details {
  display: block;
}

.radio-list-detail {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--wil-muted);
  text-align: left;
}

.radio-list-detail + .radio-list-detail {
  border-top: 1px solid rgba(var(--wil-accent-rgb), 0.12);
}

.radio-list-detail-mark {
  flex: 0 0 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wil-accent);
  margin-top: calc((1.5em - 13px) / 2);
}

.radio-list-detail-mark svg,
.radio-list-detail-mark img {
  display: block;
  width: 12px;
  height: 13px;
}

.radio-list-detail-text {
  flex: 1;
  min-width: 0;
}

.radio-list li:last-child {
  border-bottom: none;
}

.radio-list li:hover {
  background: rgba(var(--wil-accent-rgb), 0.04);
}

.radio-list li:has(input:checked) {
  background: rgba(var(--wil-accent-rgb), 0.06);
}

.radio-list li:has(input:checked):hover {
  background: rgba(var(--wil-accent-rgb), 0.08);
}

.radio-list input {
  accent-color: var(--wil-accent);
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
}

.work-step {
  margin: 0 auto 1.5rem;
  max-width: 42rem;
  padding: 1.15rem 1.15rem 1.25rem;
  border: 1px solid rgba(var(--wil-accent-rgb), 0.35);
  border-radius: var(--wil-radius-card);
  background: #fff;
}

.work-step:last-of-type {
  margin-bottom: 2rem;
}

.work-step-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.work-step-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wil-accent);
}

.work-step-tags {
  font-size: 0.82rem;
  color: var(--wil-muted);
  line-height: 1.35;
}

.work-step-tags .work-step-tags-line {
  display: block;
}

.work-step-tags .work-step-tags-line + .work-step-tags-line {
  margin-top: 0.25em;
}

.work-step h3 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wil-text);
}

.work-step p {
  margin: 0;
  font-size: 0.95rem;
  text-align: left;
  color: var(--wil-text);
  line-height: 1.55;
}

.work-step p.work-step-closing {
  margin-top: 1em;
}

.work-help {
  margin: 0 auto;
  max-width: 42rem;
  padding: 2.25rem 1.25rem 0;
  text-align: left;
  background: transparent;
}

.work-help-title {
  margin: 0 0 1.35rem;
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wil-text);
  text-align: center;
}

.work-help .btn-primary {
  margin-top: 0;
}

.about-embed {
  max-width: var(--content-max);
  margin: 0;
  padding: 0;
}

.about-section-title {
  margin: 0;
  padding: 2.5rem 0 0.5rem;
  text-align: center;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--wil-text);
}

.about-embed > .about-section-title:first-of-type {
  padding-top: 0;
}

.content-panel[data-panel="about"] .about-section-title {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
}

.about-grid {
  max-width: var(--content-max);
  margin: 0;
  padding: 1.5rem 0 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .about-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .about-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.about-card {
  background: #fff;
  border: 1px solid rgba(var(--wil-accent-rgb), 0.35);
  border-radius: var(--wil-radius-card);
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.about-card img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.about-card-body {
  padding: 1rem 1rem 1.25rem;
}

.about-card-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--wil-accent);
}

.about-card-body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--wil-text);
  text-align: left;
}

.about-certs img {
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.site-footer {
  background: var(--wil-footer);
  padding: 1.75rem 1.25rem;
  font-size: 0.75rem;
  line-height: 1.5;
}

.site-footer .footer-copy,
.site-footer .footer-about-link,
.site-footer .footer-design {
  margin: 0;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a.footer-about-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a.footer-about-link:hover {
  text-decoration: underline;
  color: #fff;
}

.footer-meta {
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  width: 100%;
}

.footer-meta-social {
  gap: 0.65rem 1.25rem;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

.footer-email-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
  pointer-events: none;
}

a.footer-instagram,
a.footer-telegram,
a.footer-viber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  line-height: 1;
}

a.footer-instagram:hover,
a.footer-telegram:hover,
a.footer-viber:hover {
  color: #fff;
}

a.footer-instagram svg,
a.footer-telegram svg,
a.footer-viber svg,
.footer-email-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
