:root {
  --surface: #ffffff;
  --surface-muted: #f5f7fa;
  --text: #4d4d4d;
  --text-soft: #717171;
  --heading: #18191f;
  --blue: #0088ff;
  --green: #34c759;
  --footer: #263238;
  --footer-text: #d3d5df;
  --line: rgba(24, 25, 31, 0.08);
  --shell: min(1152px, calc(100vw - 48px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text-soft);
  font-family: "TeXGyreHeros", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.35;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
}

.site-bg {
  display: none;
}

.section-shell {
  width: var(--shell);
  margin: 0 auto;
}

.section {
  padding: 110px 0;
}

.section--muted {
  background: var(--surface-muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 247, 250, 0.25);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.site-header.is-scrolled {
  background: rgba(245, 247, 250, 0.78);
}

.header-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 44px;
  min-height: 84px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.brand img {
  width: 30px;
  height: 40px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--heading);
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
}

.site-nav a.is-active {
  font-weight: 700;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transition: opacity 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  opacity: 1;
}

.header-cta {
  justify-self: end;
  min-width: 122px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 32px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  white-space: nowrap;
  transition: opacity 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  opacity: 0.92;
}

.button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.button--blue {
  background: var(--blue);
  color: #ffffff;
}

.button--green {
  background: var(--green);
  color: #ffffff;
}

.button--compact {
  min-height: 40px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 16px;
  line-height: 20px;
}

.button--small {
  min-width: 118px;
}

.button-icon {
  flex: 0 0 auto;
  width: 18px;
  height: auto;
}

.hero {
  background: var(--surface-muted);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 561px) minmax(0, 540px);
  align-items: center;
  gap: 51px;
  min-height: 500px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.hero h1,
.section-title h2 {
  margin: 0;
  color: var(--text);
  font-family: "TeXGyreHeros", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
}

.hero h1 {
  font-size: 64px;
  line-height: 76px;
  letter-spacing: -0.03em;
}

.hero h1 span,
.section-title h2 span {
  display: block;
  color: var(--blue);
}

.hero-text {
  max-width: 561px;
  margin: 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 24px;
}

.hero-actions {
  margin: 0;
}

.hero-visual::before {
  content: none;
}

.hero-visual img {
  width: 100%;
  max-width: 540px;
  margin-left: auto;
}

.services,
.benefits,
.about {
  background: var(--surface);
}

.docs,
.contact {
  background: var(--surface-muted);
}

.section-title {
  margin-bottom: 60px;
}

.section-title--center {
  text-align: center;
}

.section-title h2 {
  font-size: 48px;
  line-height: 58px;
  letter-spacing: -0.02em;
}

.docs .section-title h2,
.contact .section-title h2 {
  font-size: 36px;
  line-height: 44px;
  letter-spacing: 0;
}

.about .section-title {
  margin-bottom: 32px;
}

.about .section-title h2 {
  font-size: 64px;
  line-height: 44px;
}

.card-grid,
.docs-grid,
.benefits-grid {
  display: grid;
}

.card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 32px;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(171, 190, 209, 0.2);
}

.service-card h3,
.doc-copy h3,
.benefit-item h3 {
  margin: 0;
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
  line-height: 36px;
}

.service-card p,
.doc-copy p,
.benefit-item p,
.about-panel p,
.footer-copy p {
  margin: 0;
  color: var(--text-soft);
}

.service-card h3,
.service-card p {
  max-width: 304px;
}

.service-card:nth-child(2) h3,
.service-card:nth-child(2) p,
.service-card:nth-child(3) h3,
.service-card:nth-child(3) p {
  max-width: 267px;
}

.service-card p {
  font-size: 18px;
  line-height: 20px;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 56px;
  margin-bottom: 8px;
}

.service-icon img {
  width: 65px;
  height: 56px;
}

.docs-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 0;
}

.doc-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.doc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 59px;
  height: 59px;
  flex: 0 0 59px;
}

.doc-icon img {
  width: 40px;
  height: 50px;
}

.doc-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(316px, 100%);
  min-height: 152px;
}

.doc-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-copy p {
  font-size: 18px;
  line-height: 24px;
}

.doc-item .button {
  width: 118px;
  min-height: 52px;
  min-width: 118px;
  padding: 14px 32px;
}

.benefits-shell {
  display: grid;
  grid-template-columns: 434px minmax(0, 700px);
  align-items: center;
  gap: 16px;
}

.benefits-title {
  margin: 0;
}

.benefits-title h2 {
  max-width: 408px;
}

.benefits-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 30px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.benefit-icon {
  flex: 0 0 48px;
  width: 48px;
}

.benefit-item p {
  font-size: 20px;
  line-height: 24px;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 637px) minmax(320px, 463px);
  align-items: center;
  gap: 52px;
}

.contact-copy {
  padding: 18px;
}

.contact-copy .section-title {
  margin-bottom: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 601px;
}

.contact-row {
  display: grid;
  grid-template-columns: 217px minmax(0, 364px);
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 20px 15px;
  border: 0;
  border-radius: 8px;
  background: rgba(108, 108, 108, 0.2);
  color: var(--heading);
  font-size: 16px;
  line-height: 20px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #727272;
  opacity: 1;
}

.contact-form textarea {
  min-height: 193px;
  padding-top: 14px;
  resize: vertical;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.form-actions .button {
  min-width: 136px;
}

.form-status {
  min-height: 1.5em;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 20px;
}

.contact-visual img {
  width: 100%;
  max-width: 463px;
  margin-left: auto;
}

.about-panel {
  max-width: 1151px;
}

.about-panel p {
  font-size: 18px;
  line-height: 1.13;
}

.about-panel p + p {
  margin-top: 24px;
}

.site-footer {
  background: var(--footer);
  padding: 55px 0;
}

.footer-shell {
  display: grid;
  grid-template-columns: 386px 339px;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
}

.footer-brand-image {
  width: 386px;
  max-width: 100%;
}

.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  color: var(--footer-text);
}

.footer-icon-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 1px;
}

.footer-item-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--footer-text);
  font-size: 18px;
  line-height: 24px;
}

.footer-copy strong {
  color: #ffffff;
  font-weight: 700;
}

.footer-copy a:hover,
.footer-copy a:focus-visible {
  color: #ffffff;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 30;
  max-width: min(92vw, 560px);
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(24, 25, 31, 0.92);
  color: #ffffff;
  font-size: 0.95rem;
  text-align: center;
  transform: translateX(-50%) translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--heading);
  border-radius: 999px;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.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;
}

.button:focus-visible,
.site-nav a:focus-visible,
.menu-toggle:focus-visible,
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(0, 136, 255, 0.3);
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  .hero-shell,
  .benefits-shell,
  .contact-shell,
  .footer-shell {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .docs-grid,
  .card-grid--three,
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 24px;
  }

  .hero-visual img,
  .contact-visual img {
    margin: 0 auto;
  }

  .benefits-title h2 {
    max-width: none;
  }

  .footer-shell {
    justify-content: stretch;
  }
}

@media (max-width: 960px) {
  .header-shell {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    min-height: auto;
    padding: 18px 0;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header-cta {
    display: none;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 8px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .section {
    padding: 84px 0;
  }

  .hero h1 {
    font-size: 56px;
    line-height: 64px;
  }

  .section-title h2 {
    font-size: 42px;
    line-height: 48px;
  }

  .docs .section-title h2,
  .contact .section-title h2 {
    font-size: 34px;
    line-height: 40px;
  }

  .about .section-title h2 {
    font-size: 52px;
    line-height: 48px;
  }

  .contact-copy {
    padding: 0;
  }

  .contact-form {
    max-width: none;
  }

  .contact-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: min(1152px, calc(100vw - 32px));
  }

  .brand {
    font-size: 20px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 44px;
    line-height: 48px;
  }

  .section-title {
    margin-bottom: 38px;
  }

  .section-title h2,
  .docs .section-title h2,
  .contact .section-title h2,
  .about .section-title h2 {
    font-size: 32px;
    line-height: 38px;
  }

  .card-grid--three,
  .docs-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 24px;
  }

  .doc-details {
    width: 100%;
    min-height: auto;
    gap: 20px;
  }

  .footer-brand-image {
    width: min(320px, 100%);
  }

  .footer-copy {
    font-size: 16px;
    line-height: 22px;
  }
}
