@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #fafaf7;
  --bg-soft: #f3f5ef;
  --card: #ffffff;
  --text: #17201a;
  --muted: #647067;
  --accent: #4d9172;
  --accent-hover: #3e7f62;
  --accent-soft: rgba(61, 130, 97, 0.08);
  --line: #e4e7df;
  --shadow: 0 22px 46px rgba(23, 32, 26, 0.06);
  --wrap: 1160px;
  --radius: 24px;
}

site-header,
site-footer {
  display: block;
}

site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(243, 245, 239, 0.72), rgba(250, 250, 247, 0.96)),
    var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin: 0 auto;
}

.site-header {
  position: relative;
  background: rgba(250, 250, 247, 0.94);
  border-bottom: 1px solid rgba(228, 231, 223, 0.92);
  backdrop-filter: blur(12px);
}

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.brand-copy strong,
.brand-copy span {
  display: block;
}

.brand-copy strong {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.brand-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 160ms ease, background 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: var(--accent-soft);
  color: var(--accent-hover);
  outline: none;
}

.mobile-toggle,
.mobile-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
}

.mobile-toggle__dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mobile-toggle__dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.mobile-close__icon {
  position: relative;
  width: 16px;
  height: 16px;
}

.mobile-close__icon::before,
.mobile-close__icon::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-close__icon::before {
  transform: rotate(45deg);
}

.mobile-close__icon::after {
  transform: rotate(-45deg);
}

.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  background: rgba(250, 250, 247, 0.995);
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

body.menu-open .mobile-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 180ms ease;
}

.mobile-panel__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: calc(12px + env(safe-area-inset-top)) 0 calc(24px + env(safe-area-inset-bottom));
}

.mobile-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  padding-bottom: 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
}

.mobile-nav {
  display: grid;
  gap: 2px;
}

.mobile-nav__link {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.3rem, 6vw, 1.9rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.mobile-panel__footer {
  margin-top: auto;
  padding-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.btn--primary {
  background: var(--accent);
  color: #ffffff;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--accent-hover);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  border-color: var(--line);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: var(--bg-soft);
}

.btn--block {
  width: 100%;
}

main {
  display: block;
}

.page-hero {
  padding: 92px 0 80px;
}

.page-hero--compact {
  padding: 64px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--accent-hover);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.page-title,
.section-title,
.card-title,
.doc-title,
.contact-title {
  margin: 0;
  letter-spacing: -0.045em;
}

.page-title {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  font-weight: 700;
  line-height: 1.02;
}

.page-lead,
.section-copy,
.doc-lead {
  margin: 0;
  color: var(--muted);
}

.page-lead {
  max-width: 650px;
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  line-height: 1.8;
}

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

.hero-figure {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 247, 242, 0.96)),
    var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-figure::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(61, 130, 97, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 130, 97, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 95%);
  pointer-events: none;
}

.hero-figure > * {
  position: relative;
  z-index: 1;
}

.figure-copy strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.figure-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.figure-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.figure-row {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(228, 231, 223, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.figure-row strong {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.42;
}

.figure-row span {
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.figure-line {
  width: 100%;
  height: 80px;
  margin-top: 14px;
}

.figure-line path,
.figure-line circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
}

.figure-line circle {
  fill: #ffffff;
}

.section {
  padding: 84px 0;
}

.section--tint {
  background: rgba(243, 245, 239, 0.72);
  border-top: 1px solid rgba(228, 231, 223, 0.9);
  border-bottom: 1px solid rgba(228, 231, 223, 0.9);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-title {
  margin-bottom: 12px;
  font-size: clamp(1.95rem, 3vw, 2.55rem);
  font-weight: 700;
  line-height: 1.08;
}

.section-copy {
  font-size: 17px;
  line-height: 1.78;
}

.split-grid,
.legal-panel,
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.84fr);
  gap: 28px;
}

.panel,
.service-card,
.audience-card,
.doc-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.panel,
.doc-card,
.contact-panel__main,
.contact-panel__side {
  padding: 30px;
}

.panel p,
.doc-card p,
.doc-card li,
.audience-card p,
.service-card p,
.contact-panel p {
  color: var(--muted);
  font-size: 16px;
}

.panel p,
.doc-card p,
.contact-panel p {
  margin: 0;
}

.panel p + p,
.doc-card p + p,
.doc-card ul,
.contact-panel p + p {
  margin-top: 14px;
}

.stack-list {
  display: grid;
  gap: 18px;
}

.stack-list div {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.stack-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.stack-list span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stack-list strong {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
}

.services-grid,
.audience-grid {
  display: grid;
  gap: 18px;
}

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

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

.service-card,
.audience-card {
  padding: 26px;
}

.service-card--wide {
  grid-column: 1 / -1;
}

.service-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 14px;
  font-weight: 700;
}

.card-title {
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.24;
}

.approach-list {
  border-top: 1px solid var(--line);
}

.approach-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.approach-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-hover);
  font-size: 16px;
  font-weight: 700;
}

.approach-body h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.approach-body p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.audience-card p {
  margin: 0;
}

.legal-panel__side {
  display: grid;
  gap: 16px;
}

.legal-item {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(243, 245, 239, 0.74);
}

.legal-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal-item strong {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
}

.legal-panel__main a,
.contact-panel a:not(.btn),
.doc-card a {
  color: var(--accent-hover);
  font-weight: 700;
}

.contact-panel__main,
.contact-panel__side {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.contact-title {
  margin-bottom: 10px;
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.mail-link {
  display: inline-block;
  max-width: 100%;
  color: var(--text);
  font-size: clamp(0.98rem, 3.8vw, 1.24rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.mail-address {
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

.doc-wrap {
  padding: 64px 0 82px;
}

.doc-header {
  max-width: 760px;
  margin-bottom: 28px;
}

.doc-title {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.04;
}

.doc-lead {
  font-size: 18px;
  line-height: 1.78;
}

.doc-card h2 {
  margin: 30px 0 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.doc-card ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.doc-card li + li {
  margin-top: 8px;
}

.doc-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.doc-meta__item {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(243, 245, 239, 0.74);
}

.doc-meta__item span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.doc-meta__item strong {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
}

.site-footer {
  padding: 26px 0 34px;
  border-top: 1px solid rgba(228, 231, 223, 0.92);
  background: rgba(255, 255, 255, 0.84);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: start;
}

.site-footer__brand strong,
.site-footer__brand span,
.site-footer__legal strong,
.site-footer__legal span {
  display: block;
}

.site-footer__brand strong {
  font-size: 18px;
  font-weight: 700;
}

.site-footer__brand span,
.site-footer__legal span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.site-footer__legal .mail-address {
  display: inline;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
}

.site-footer__links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.site-footer__legal {
  text-align: right;
}

.site-footer__legal strong {
  font-size: 14px;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .hero-grid,
  .split-grid,
  .legal-panel,
  .contact-panel,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__links {
    justify-content: flex-start;
  }

  .site-footer__legal {
    text-align: left;
  }
}

@media (max-width: 900px) {
  .site-head {
    min-height: 58px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .brand-copy span {
    display: none;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .page-hero {
    padding: 74px 0 62px;
  }

  .page-hero--compact {
    padding: 52px 0 28px;
  }

  .services-grid,
  .audience-grid,
  .doc-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(100% - 28px, var(--wrap));
  }

  .section {
    padding: 66px 0;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-figure,
  .panel,
  .service-card,
  .audience-card,
  .doc-card,
  .contact-panel__main,
  .contact-panel__side {
    padding: 22px;
  }

  .figure-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .figure-row span {
    text-align: left;
  }

  .approach-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .approach-index {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .doc-wrap {
    padding: 52px 0 70px;
  }
}
