:root {
  --bg: #f6f3ed;
  --paper: #fffdfa;
  --ink: #11110f;
  --muted: #676158;
  --line: #d8d1c7;
  --soft: #b8aa98;
  --max: 1180px;
  --gutter: clamp(20px, 5vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

.skip-link {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 20;
  transform: translateY(-140%);
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer,
main {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 22px var(--gutter);
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.brand {
  display: grid;
  gap: 2px;
  text-decoration: none;
}

.brand span:first-child {
  font-size: 0.86rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand span:last-child {
  color: var(--muted);
  font-size: 0.84rem;
}

.nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  color: var(--muted);
  font-size: 0.86rem;
}

.nav a,
.site-footer a {
  text-decoration: none;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  gap: clamp(32px, 7vw, 84px);
  min-height: calc(100svh - 112px);
  padding: clamp(42px, 7vw, 82px) var(--gutter) clamp(36px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}

.hero__text {
  min-width: 0;
  max-width: 850px;
}

.kicker,
.section__index {
  margin: 0;
  color: #62584c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.06;
}

h1 {
  margin-top: 18px;
  max-width: 900px;
  font-size: clamp(2.55rem, 9vw, 4.5rem);
}

h2 {
  max-width: 820px;
  font-size: clamp(2rem, 7vw, 4rem);
}

.subline {
  max-width: 740px;
  margin: 26px 0 0;
  color: var(--ink);
  font-size: clamp(1.18rem, 3vw, 1.55rem);
  line-height: 1.3;
}

.intro,
.section__content p,
.contact p,
.faq p {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.24rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 720;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background: transparent;
  color: var(--ink);
}

.text-link {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.audit-card {
  min-width: 0;
  max-width: 100%;
  align-self: end;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.audit-card h2 {
  margin-top: 18px;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
}

.audit-card ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.audit-card li {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 680;
}

.section {
  display: grid;
  gap: 22px;
  padding: clamp(58px, 10vw, 112px) var(--gutter);
  border-bottom: 1px solid var(--line);
}

.section__index {
  color: var(--soft);
}

.section__content {
  min-width: 0;
  max-width: 100%;
}

#formate article + article {
  margin-top: clamp(38px, 6vw, 72px);
}

.audit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}

.audit-grid li {
  min-height: 68px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.5);
  font-weight: 680;
}

.section-button {
  margin-top: 32px;
}

.trust-profile {
  display: grid;
  gap: clamp(30px, 5vw, 58px);
  align-items: center;
}

.trust-profile__text {
  min-width: 0;
}

.trust-profile__portrait {
  width: min(100%, 360px);
  margin: 0;
}

.trust-profile__portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.faq-list {
  display: grid;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.faq summary {
  cursor: pointer;
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.32rem);
  font-weight: 720;
}

.faq summary::marker {
  color: var(--soft);
}

.faq details p {
  margin-top: 16px;
}

.contact {
  display: grid;
  gap: 34px;
  padding: clamp(62px, 10vw, 118px) var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.contact__panel {
  display: grid;
  gap: 28px;
  align-content: start;
}

address {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-style: normal;
}

.site-footer {
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer p {
  margin: 0;
}

.legal {
  min-height: calc(100svh - 180px);
  padding: clamp(52px, 8vw, 96px) var(--gutter);
}

.legal h1 {
  margin-top: 18px;
  font-size: clamp(2.45rem, 8vw, 5rem);
}

.legal section {
  max-width: 820px;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.legal h2 {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.96rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
}

@media (min-width: 820px) {
  .hero {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    align-items: end;
  }

  .section {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: clamp(34px, 6vw, 82px);
  }

  .section__index {
    padding-top: 0.55em;
  }

  .contact {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .trust-profile {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  }

  .trust-profile__portrait {
    justify-self: end;
  }
}

@media (max-width: 700px) {
  .site-header,
  .site-footer {
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }
}

@media (max-width: 767px) {
  :root {
    --gutter: 22px;
  }

  .site-header,
  .site-footer {
    gap: 18px;
    padding-right: var(--gutter);
    padding-left: var(--gutter);
  }

  .nav {
    width: 100%;
    flex-wrap: nowrap;
    gap: 18px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .nav a {
    flex: 0 0 auto;
  }

  main,
  .site-header,
  .site-footer {
    width: 100%;
  }

  .hero {
    width: 100%;
    gap: 30px;
    min-height: auto;
    padding: 38px var(--gutter) 58px;
  }

  .hero__text,
  .subline,
  .intro,
  .section__content,
  .section__content p,
  .contact p,
  .faq p,
  h1,
  h2 {
    max-width: 100%;
  }

  .hero__actions {
    align-items: flex-start;
    gap: 14px 22px;
    margin-top: 30px;
  }

  .audit-card {
    width: 100%;
    padding: 24px 0;
  }

  .section {
    width: 100%;
    gap: 18px;
    padding: 64px var(--gutter);
  }

  #formate article + article {
    margin-top: 64px;
  }

  #formate article + article h2 {
    padding-top: 4px;
  }

  .audit-grid {
    width: 100%;
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .audit-grid li {
    min-height: auto;
    padding: 20px;
  }

  .trust-profile {
    gap: 28px;
  }

  .trust-profile__portrait {
    width: min(86vw, 320px);
    margin-right: auto;
    margin-left: auto;
  }

  .trust-profile__portrait img {
    max-height: 360px;
    object-fit: contain;
  }

  .faq-list {
    margin-top: 28px;
  }

  .faq details {
    padding: 16px 0;
  }

  .faq summary {
    line-height: 1.32;
  }

  .faq details p {
    margin-top: 12px;
  }

  .contact {
    padding: 64px var(--gutter);
  }

  .legal {
    padding-right: var(--gutter);
    padding-left: var(--gutter);
  }
}

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