:root {
  --ink: #122033;
  --muted: #667085;
  --line: #d8e0ea;
  --paper: #f7f9fc;
  --white: #ffffff;
  --blue: #123c7c;
  --blue-2: #1f6fbe;
  --green: #1f8a70;
  --gold: #d6a64b;
  --shadow: 0 24px 80px rgba(18, 32, 51, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(247, 249, 252, .88);
  border-bottom: 1px solid rgba(216, 224, 234, .8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 150px;
}

.brand img {
  width: min(200px, 43vw);
  height: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #31445c;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  padding: 11px 13px;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--white);
  box-shadow: 0 8px 24px rgba(18, 32, 51, .08);
}

.nav-client {
  color: var(--white);
  background: var(--blue);
}

.site-nav .nav-client:hover,
.site-nav .nav-client:focus-visible {
  background: var(--blue-2);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(48px, 8vw, 110px) clamp(18px, 5vw, 72px) 46px;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(9, 28, 58, .92), rgba(18, 60, 124, .78)),
    url("/assets/legacy/img/header/fundo.jpg") center / cover;
}

.hero-content {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  max-width: 720px;
  font-size: clamp(48px, 7vw, 94px);
  line-height: .95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 670px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.55;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: var(--ink);
  background: var(--gold);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, .36);
  background: rgba(255, 255, 255, .12);
}

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

.hero-panel {
  width: min(100%, 430px);
  justify-self: end;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .13);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, .72);
}

.panel-top strong {
  color: var(--white);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.metric-grid div {
  min-height: 118px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .14);
}

.metric-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 30px;
}

.metric-grid span,
.panel-phone {
  color: rgba(255, 255, 255, .78);
  line-height: 1.35;
}

.panel-phone {
  display: block;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .24);
  font-size: 22px;
  font-weight: 800;
}

.quick-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.quick-bar a {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-right: 1px solid var(--line);
  color: #2f4156;
  font-weight: 800;
  text-align: center;
}

.quick-bar a:hover,
.quick-bar a:focus-visible {
  color: var(--blue);
  background: #eef4fb;
}

.home-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: 20px;
  padding: clamp(44px, 6vw, 72px) clamp(18px, 5vw, 72px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.home-links-panel,
.newsletter-panel {
  min-width: 0;
}

.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.home-section-heading h2,
.newsletter-panel h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.home-section-heading a {
  color: var(--blue);
  font-weight: 800;
}

.home-links-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.home-links-grid a {
  min-height: 158px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid rgba(18, 60, 124, .18);
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(145deg, #123c7c, #1f6fbe);
  box-shadow: 0 14px 34px rgba(18, 32, 51, .12);
}

.home-links-grid a:hover,
.home-links-grid a:focus-visible {
  transform: translateY(-2px);
}

.home-links-grid strong {
  min-height: 42px;
  display: flex;
  align-items: end;
  font-size: 16px;
  line-height: 1.15;
}

.utility-icon {
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--blue);
  background: var(--white);
  font-size: 22px;
  font-weight: 800;
}

.gov-icon {
  color: #1b5fad;
}

.gov-icon::first-letter {
  color: #16a34a;
}

.portal-icon,
.doc-icon,
.support-icon {
  letter-spacing: 0;
}

.doc-icon {
  color: var(--green);
}

.esocial-icon {
  color: #123c7c;
  font-size: 20px;
}

.support-icon {
  color: var(--gold);
}

.newsletter-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.newsletter-panel p:not(.section-kicker) {
  color: var(--muted);
  line-height: 1.65;
}

.newsletter-panel form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.newsletter-panel label {
  display: grid;
  gap: 7px;
  color: #2f4156;
  font-size: 13px;
  font-weight: 800;
}

.newsletter-panel input {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.newsletter-panel .button {
  width: fit-content;
  border: 0;
  cursor: pointer;
}

.section,
.cards,
.feature-band,
.contact-section {
  padding-inline: clamp(18px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(280px, .9fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: 28px;
}

.intro h2,
.feature-copy h2,
.contact-section h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

.intro p,
.feature-copy p,
.contact-section p,
.service-card p,
.process-list p {
  color: var(--muted);
  line-height: 1.72;
}

.services-carousel-section {
  padding: 24px clamp(18px, 5vw, 72px) clamp(56px, 8vw, 96px);
  background: var(--paper);
}

.carousel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.carousel-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
}

.carousel-controls {
  display: flex;
  gap: 8px;
}

.carousel-controls button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  background: var(--white);
  cursor: pointer;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.carousel-controls button:hover,
.carousel-controls button:focus-visible {
  color: var(--white);
  background: var(--blue);
}

.service-carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.service-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 4);
  gap: 16px;
  transition: transform .35s ease;
  will-change: transform;
}

.service-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 42px rgba(18, 32, 51, .06);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
  font-weight: 800;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.2;
}

.service-card a {
  margin-top: auto;
  color: var(--blue);
  font-weight: 800;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(300px, .95fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
  padding-top: clamp(52px, 7vw, 88px);
  padding-bottom: clamp(52px, 7vw, 88px);
  background: #edf3f8;
}

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

.process-list div {
  display: grid;
  grid-template-columns: 46px 1fr;
  column-gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.process-list span {
  grid-row: span 2;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--green);
  font-weight: 800;
}

.process-list strong {
  margin-bottom: 4px;
  font-size: 18px;
}

.process-list p {
  margin-bottom: 0;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) auto;
  gap: 28px;
  align-items: center;
  padding-top: clamp(52px, 7vw, 88px);
  padding-bottom: clamp(52px, 7vw, 88px);
  color: var(--white);
  background: var(--blue);
}

.contact-section .section-kicker,
.contact-section p {
  color: rgba(255, 255, 255, .78);
}

.about-hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding: clamp(56px, 8vw, 110px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(9, 28, 58, .93), rgba(18, 60, 124, .72)),
    url("/assets/legacy/img/header/fundo.jpg") center / cover;
}

.about-hero-copy {
  max-width: 850px;
}

.about-hero h1 {
  max-width: 920px;
  font-size: clamp(40px, 6vw, 78px);
}

.about-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.6;
}

.about-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .13);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.about-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
}

.about-card span {
  color: rgba(255, 255, 255, .78);
  line-height: 1.55;
}

.about-story {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background: var(--white);
}

.story-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(18, 32, 51, .12);
}

.story-image img {
  display: block;
  width: 100%;
  min-height: 430px;
  object-fit: cover;
}

.story-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.05;
}

.story-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.76;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 clamp(18px, 5vw, 72px) clamp(56px, 8vw, 96px);
  background: var(--white);
}

.principles article {
  min-height: 280px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.principles span {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
  font-weight: 800;
}

.principles h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.principles p {
  color: var(--muted);
  line-height: 1.72;
}

.service-hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding: clamp(56px, 8vw, 110px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(9, 28, 58, .93), rgba(31, 138, 112, .58)),
    url("/assets/legacy/imagens/imagem.jpg") center / cover;
}

.finance-hero {
  background:
    linear-gradient(120deg, rgba(9, 28, 58, .94), rgba(214, 166, 75, .46)),
    url("/assets/legacy/img/diagnostico.png") center / cover;
}

.opening-hero {
  background:
    linear-gradient(120deg, rgba(9, 28, 58, .93), rgba(31, 111, 190, .58)),
    url("/assets/legacy/img/print-aberturaempresa.jpg") center / cover;
}

.regularization-hero {
  background:
    linear-gradient(120deg, rgba(9, 28, 58, .93), rgba(102, 112, 133, .58)),
    url("/assets/legacy/imagens/primeiravia.jpg") center / cover;
}

.tax-hero {
  background:
    linear-gradient(120deg, rgba(9, 28, 58, .93), rgba(31, 138, 112, .52)),
    url("/assets/legacy/imagens/pqec.png") center / cover;
}

.irpf-hero {
  background:
    linear-gradient(120deg, rgba(9, 28, 58, .93), rgba(214, 166, 75, .46)),
    url("/assets/legacy/img/logo-form.jpg") center / cover;
}

.certificate-hero {
  background:
    linear-gradient(120deg, rgba(9, 28, 58, .93), rgba(31, 111, 190, .56)),
    url("/assets/legacy/img/logo-nfe.jpg") center / cover;
}

.people-hero {
  background:
    linear-gradient(120deg, rgba(9, 28, 58, .93), rgba(31, 138, 112, .52)),
    url("/assets/legacy/img/print_registrofuncionario.jpg") center / cover;
}

.service-hero-copy {
  max-width: 850px;
}

.service-hero h1 {
  max-width: 930px;
  font-size: clamp(42px, 6vw, 82px);
}

.service-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.62;
}

.service-summary {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .13);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.service-summary strong,
.service-summary span {
  display: block;
}

.service-summary strong {
  margin-bottom: 10px;
  font-size: 24px;
}

.service-summary span {
  color: rgba(255, 255, 255, .78);
  line-height: 1.55;
}

.service-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.service-menu a {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-right: 1px solid var(--line);
  color: #2f4156;
  font-weight: 800;
  text-align: center;
}

.service-menu a:hover,
.service-menu a:focus-visible,
.service-menu .is-active {
  color: var(--white);
  background: var(--blue);
}

.service-layout {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background: var(--white);
}

.service-intro {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(280px, .9fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: 28px;
}

.service-intro h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.05;
}

.service-intro p {
  color: var(--muted);
  line-height: 1.72;
}

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

.scope-grid article {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.scope-grid span {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border-radius: 8px;
  color: var(--white);
  background: var(--green);
  font-weight: 800;
}

.scope-grid h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.scope-grid p {
  color: var(--muted);
  line-height: 1.72;
}

.service-feature {
  background: #eef5f2;
}

.finance-feature {
  background: #f6f0e5;
}

.opening-feature {
  background: #edf3f8;
}

.regularization-feature {
  background: #f0f3f6;
}

.tax-feature {
  background: #eef5f2;
}

.irpf-feature {
  background: #f6f0e5;
}

.certificate-feature {
  background: #edf3f8;
}

.people-feature {
  background: #eef5f2;
}

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

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

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

.links-hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding: clamp(56px, 8vw, 110px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(9, 28, 58, .93), rgba(18, 60, 124, .72)),
    url("/assets/legacy/imagens/links/2_imagem_site.jpg") center / cover;
}

.forms-hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding: clamp(56px, 8vw, 110px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(9, 28, 58, .94), rgba(31, 138, 112, .6)),
    url("/assets/legacy/img/print-aberturaempresa.jpg") center / cover;
}

.faq-hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding: clamp(56px, 8vw, 110px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(9, 28, 58, .94), rgba(214, 166, 75, .5)),
    url("/assets/legacy/imagens/pqec.png") center / cover;
}

.contact-hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding: clamp(56px, 8vw, 110px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(9, 28, 58, .94), rgba(31, 111, 190, .6)),
    url("/assets/legacy/img/header/fundo.jpg") center / cover;
}

.work-hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding: clamp(56px, 8vw, 110px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(9, 28, 58, .94), rgba(31, 138, 112, .58)),
    url("/assets/legacy/img/header/fundo.jpg") center / cover;
}

.work-hero h1 {
  font-size: clamp(46px, 7vw, 88px);
}

.work-hero p {
  max-width: 740px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.62;
}

.work-layout {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(0, 1fr);
  gap: 18px;
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background: var(--white);
}

.file-field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.contact-hero h1 {
  font-size: clamp(46px, 7vw, 88px);
}

.contact-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.62;
}

.contact-page-layout {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(0, 1fr);
  gap: 18px;
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background: var(--white);
}

.contact-info-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.contact-info-panel h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 3.5vw, 50px);
  line-height: 1.05;
}

.contact-info-panel p {
  color: var(--muted);
  line-height: 1.72;
}

.contact-methods {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-methods a {
  display: grid;
  gap: 5px;
  padding: 16px;
  border-radius: 8px;
  background: var(--white);
}

.contact-methods span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-methods strong {
  color: var(--blue);
  font-size: 18px;
}

.contact-form {
  align-self: start;
}

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

.map-section {
  padding: 0 clamp(18px, 5vw, 72px) clamp(56px, 8vw, 96px);
  background: var(--white);
}

.map-section iframe {
  width: 100%;
  min-height: 420px;
  display: block;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(18, 32, 51, .08);
}

.faq-hero h1 {
  font-size: clamp(46px, 7vw, 88px);
}

.faq-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.62;
}

.faq-layout {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background: var(--white);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 14px 42px rgba(18, 32, 51, .05);
}

.faq-list summary {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
  color: var(--ink);
  cursor: pointer;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 800;
  line-height: 1.25;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
  font-size: 16px;
}

.faq-list details[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq-list p {
  margin: 0;
  padding: 18px 22px 0 90px;
  color: var(--muted);
  line-height: 1.72;
}

.faq-list p:last-child {
  padding-bottom: 22px;
}

.forms-hero h1 {
  font-size: clamp(46px, 7vw, 88px);
}

.forms-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.62;
}

.form-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.form-switch a {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-right: 1px solid var(--line);
  color: #2f4156;
  font-weight: 800;
  text-align: center;
}

.form-switch a:hover,
.form-switch a:focus-visible {
  color: var(--white);
  background: var(--blue);
}

.form-switch a.featured-form-link {
  color: var(--white);
  background: var(--blue);
}

.form-switch a.featured-form-link:hover,
.form-switch a.featured-form-link:focus-visible {
  background: #062f63;
}

.forms-layout {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background: var(--white);
  scroll-margin-top: 96px;
}

.forms-layout.alternate {
  background: #edf3f8;
}

.forms-layout.diagnostic-form {
  background: #f6f9fc;
  border-top: 4px solid var(--blue);
}

.modern-form {
  display: grid;
  gap: 18px;
}

.modern-form fieldset {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.forms-layout.alternate .modern-form fieldset {
  background: var(--white);
}

.modern-form legend {
  padding: 0 8px;
  color: var(--blue);
  font-size: 18px;
  font-weight: 800;
}

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

.modern-form label {
  display: grid;
  gap: 8px;
  color: #2f4156;
  font-size: 13px;
  font-weight: 800;
}

.modern-form input,
.modern-form select,
.modern-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.modern-form textarea {
  resize: vertical;
}

.full-field {
  margin-top: 18px;
}

.option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.option-group span {
  width: 100%;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.option-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.option-group input {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.check-list label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 52px;
  padding: 14px;
  border-radius: 8px;
  background: var(--white);
  line-height: 1.35;
}

.forms-layout.alternate .check-list label {
  background: var(--paper);
}

.check-list input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 1px;
}

.form-warning {
  padding: 18px 20px;
  border: 1px solid rgba(214, 166, 75, .5);
  border-radius: 8px;
  color: #6f5420;
  background: #fff8e8;
  font-weight: 800;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.form-actions .button {
  border: 0;
  cursor: pointer;
}

.form-actions .button.secondary {
  color: var(--blue);
  border: 1px solid var(--line);
  background: var(--white);
}

.links-hero h1 {
  font-size: clamp(46px, 7vw, 88px);
}

.links-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.62;
}

.links-layout {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background: var(--white);
}

.useful-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.useful-links-grid a {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 14px 42px rgba(18, 32, 51, .06);
}

.icon-links-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.icon-links-grid a {
  min-height: 180px;
  color: var(--white);
  background: linear-gradient(145deg, #123c7c, #1f6fbe);
}

.icon-links-grid strong {
  margin-top: auto;
  color: var(--white);
  font-size: 18px;
  line-height: 1.18;
}

.useful-links-grid a:hover,
.useful-links-grid a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(18, 60, 124, .35);
}

.useful-links-grid img {
  width: 100%;
  height: 92px;
  object-fit: contain;
  margin-bottom: 28px;
  padding: 12px;
  border-radius: 8px;
  background: var(--white);
}

.useful-links-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
}

.useful-links-grid strong {
  margin-top: auto;
  color: var(--blue);
  font-size: 14px;
}

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

.certificate-columns article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.certificate-columns span {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--white);
  background: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.certificate-columns h3 {
  margin-bottom: 16px;
  font-size: 28px;
}

.certificate-columns ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.certificate-columns li {
  padding: 14px 16px;
  border-radius: 8px;
  color: #2f4156;
  background: var(--white);
  font-weight: 700;
}

.service-checklist {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-checklist strong {
  display: block;
  margin-bottom: 18px;
  font-size: 22px;
}

.service-checklist ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-checklist li {
  padding: 14px 16px;
  border-radius: 8px;
  color: #2f4156;
  background: var(--paper);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: #dfe7ef;
  background: #0f1c2d;
}

.site-footer p {
  margin-bottom: 0;
  font-weight: 800;
}

.site-footer span {
  color: #93a4b8;
}

@media (max-width: 1480px) {
  .nav-toggle { display: block; flex-shrink: 0; }
  .site-nav {
    position: absolute;
    inset: calc(100% + 8px) 12px auto 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100dvh - 170px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { border-radius: 8px; }
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    justify-self: start;
  }
}

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

  .site-nav {
    position: absolute;
    inset: calc(100% + 8px) 12px auto 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-radius: 8px;
  }

  .quick-bar,
  .home-tools,
  .intro,
  .about-hero,
  .about-story,
  .links-hero,
  .forms-hero,
  .faq-hero,
  .contact-hero,
  .work-hero,
  .contact-page-layout,
  .work-layout,
  .service-hero,
  .service-intro,
  .feature-band,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .principles,
  .service-menu,
  .home-links-grid,
  .form-switch,
  .scope-grid,
  .form-grid,
  .contact-form-grid,
  .check-list,
  .certificate-columns {
    grid-template-columns: 1fr;
  }

  .quick-bar a {
    border-bottom: 1px solid var(--line);
  }

  .contact-actions {
    margin-top: 0;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 46px;
  }

  .cards,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .carousel-heading {
    align-items: start;
    flex-direction: column;
  }

  .service-carousel-track {
    grid-auto-columns: minmax(250px, 86vw);
  }

  .service-card {
    min-height: auto;
  }

  .story-image img {
    min-height: 280px;
  }

  .site-footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
