:root {
  color-scheme: light;
  --bg: #f7f8f7;
  --ink: #101514;
  --muted: #5d6865;
  --line: rgba(16, 21, 20, 0.13);
  --white: #fff;
  --teal: #167f6f;
  --red: #e00012;
  --blue: #2d8fd7;
  --amber: #d99a22;
  --graphite: #111918;
  --shadow: 0 18px 55px rgba(13, 28, 26, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

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

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

picture > img {
  width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 14px max(22px, calc((100vw - var(--max)) / 2));
  background: rgba(247, 248, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: end;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 152px;
  height: auto;
}

.main-nav {
  display: flex;
  gap: 6px;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  flex: 0 0 auto;
  padding: 10px 13px;
  border-radius: 8px;
  color: #34403d;
  font-size: 16px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: #e9efed;
  color: #0b1614;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--teal);
  color: var(--white);
  cursor: pointer;
  font-weight: 700;
  line-height: 1.1;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible,
.icon-btn:focus-visible,
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 3px solid rgba(45, 143, 215, 0.28);
  outline-offset: 2px;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn--light {
  background: var(--white);
  color: var(--graphite);
}

.btn--red {
  background: var(--red);
}

.btn--blue {
  background: var(--blue);
}

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

.header-cta {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 14px;
}

.share-btn svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.mobile-menu-toggle,
.mobile-nav-cta {
  display: none;
}

.mobile-menu-toggle {
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.mobile-menu-toggle i,
.mobile-menu-toggle i::before,
.mobile-menu-toggle i::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.mobile-menu-toggle i {
  position: relative;
}

.mobile-menu-toggle i::before,
.mobile-menu-toggle i::after {
  content: "";
  position: absolute;
  left: 0;
}

.mobile-menu-toggle i::before {
  top: -6px;
}

.mobile-menu-toggle i::after {
  top: 6px;
}

body.nav-open .mobile-menu-toggle i {
  background: transparent;
}

body.nav-open .mobile-menu-toggle i::before {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .mobile-menu-toggle i::after {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 76vh;
  overflow: hidden;
  background: #101514;
  color: var(--white);
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 18, 17, 0.9), rgba(10, 18, 17, 0.58) 46%, rgba(10, 18, 17, 0.18)),
    linear-gradient(0deg, rgba(10, 18, 17, 0.88), rgba(10, 18, 17, 0.05) 42%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 92px 0 58px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #9be1d1;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 20px;
  font-size: 58px;
  line-height: 1.02;
  font-weight: 850;
}

.hero__lead {
  max-width: 690px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 21px;
  line-height: 1.45;
}

.hero__actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 1px;
  max-width: 780px;
  margin-top: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.proof-item {
  padding: 18px;
  background: rgba(8, 16, 15, 0.44);
}

.proof-item strong {
  display: block;
  color: var(--white);
  font-size: 24px;
  line-height: 1.1;
}

.proof-item span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.section {
  padding: 78px max(22px, calc((100vw - var(--max)) / 2));
}

.section,
.variant-grid,
.article-layout {
  content-visibility: auto;
  contain-intrinsic-size: 760px;
}

.section--tight {
  padding-top: 48px;
  padding-bottom: 48px;
}

.section--dark {
  background: var(--graphite);
  color: var(--white);
}

.section--tint {
  background: #edf4f1;
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.46fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.section__head h2,
.split-copy h2,
.cta-band h2 {
  margin-bottom: 12px;
  font-size: 40px;
  line-height: 1.12;
}

.section__head p,
.split-copy p,
.cta-band p {
  color: var(--muted);
  font-size: 18px;
}

.section--dark .section__head p,
.section--dark .split-copy p,
.section--dark .cta-band p {
  color: rgba(255, 255, 255, 0.72);
}

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

.service-card {
  min-height: 246px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-card img {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 8px;
  object-fit: cover;
}

.service-card h3,
.case-card h3,
.process-step h3,
.package-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.2;
}

.service-card p,
.case-card p,
.process-step p,
.package-card p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.case-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.case-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.case-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e6ece9;
}

.case-card picture {
  background: #e6ece9;
}

.case-card__body {
  padding: 20px;
}

.case-card__link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--teal);
  font-weight: 850;
}

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

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

.service-landing-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.service-landing-card:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 143, 123, 0.32);
  box-shadow: 0 22px 60px rgba(13, 28, 26, 0.16);
}

.service-landing-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e6ece9;
}

.service-landing-card picture {
  background: #e6ece9;
}

.service-landing-card__body {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.service-landing-card__body span {
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.service-landing-card__body h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
}

.service-landing-card__body p {
  margin: 0;
  color: var(--muted);
}

.service-landing-card__body strong {
  color: var(--teal);
}

.service-hero .case-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-hero__actions {
  margin-top: 26px;
}

.service-point {
  min-height: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-point p {
  color: var(--ink);
  font-weight: 760;
}

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

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

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

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

.service-faq p {
  color: var(--muted);
}

.case-directory {
  padding: 76px max(22px, calc((100vw - var(--max)) / 2)) 64px;
  background: #eef4f2;
}

.case-directory h1 {
  color: var(--ink);
}

.case-directory p {
  max-width: 780px;
  color: var(--muted);
  font-size: 20px;
}

.case-detail-hero {
  padding: 62px max(22px, calc((100vw - var(--max)) / 2)) 42px;
  background: #0d1716;
  color: var(--white);
}

.case-detail-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(360px, 0.55fr);
  gap: 42px;
  align-items: center;
}

.case-detail-hero h1 {
  margin-bottom: 18px;
}

.case-detail-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
}

.case-detail-hero img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: #9be1d1;
  font-weight: 850;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
}

.case-metric {
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.case-metric strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.case-metric span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.case-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.36fr);
  gap: 44px;
}

.case-story {
  display: grid;
  gap: 18px;
}

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

.case-story h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.case-section-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.case-section-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.case-section-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.case-visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--graphite);
  box-shadow: var(--shadow);
}

.case-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.case-aside {
  position: sticky;
  top: 104px;
  align-self: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.case-aside h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

.case-aside ul {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #edf2f0;
  color: #32423e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.7fr);
  gap: 44px;
  align-items: center;
}

.split-media {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 14px;
  height: 2px;
  background: var(--teal);
}

.process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.process-step {
  min-height: 210px;
  padding: 22px;
  background: var(--white);
}

.process-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: #e1eee9;
  color: var(--teal);
  font-weight: 850;
}

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

.package-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.package-card strong {
  display: block;
  margin-bottom: 16px;
  color: var(--red);
  font-size: 28px;
  line-height: 1;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding: 34px;
  border-radius: 8px;
  background: #0d1b19;
  color: var(--white);
}

.cta-band p {
  margin-bottom: 0;
}

.variant-index {
  background:
    linear-gradient(135deg, rgba(22, 127, 111, 0.12), transparent 38%),
    linear-gradient(315deg, rgba(224, 0, 18, 0.08), transparent 32%),
    #f7f8f7;
}

.index-hero {
  padding: 86px max(22px, calc((100vw - var(--max)) / 2)) 42px;
}

.index-hero h1 {
  color: var(--ink);
}

.index-hero p {
  max-width: 780px;
  color: var(--muted);
  font-size: 20px;
}

.variant-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0 max(22px, calc((100vw - var(--max)) / 2)) 80px;
}

.variant-card {
  display: grid;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.variant-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.variant-card div {
  padding: 20px;
}

.variant-card h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.variant-card p {
  color: var(--muted);
}

.theme-telegram {
  --teal: #1384c8;
  --red: #cf0055;
}

.theme-mvp {
  --teal: #2f7d61;
  --red: #e45c22;
}

.theme-engineering {
  --teal: #17766d;
  --red: #8c1d29;
  --bg: #f4f6f6;
}

.theme-telegram .hero::before {
  background:
    linear-gradient(90deg, rgba(5, 12, 31, 0.88), rgba(5, 12, 31, 0.38) 50%, rgba(5, 12, 31, 0.12)),
    linear-gradient(0deg, rgba(5, 12, 31, 0.82), rgba(5, 12, 31, 0.03) 45%);
}

.theme-mvp .hero::before {
  background:
    linear-gradient(90deg, rgba(18, 23, 18, 0.9), rgba(18, 23, 18, 0.62) 44%, rgba(18, 23, 18, 0.18)),
    linear-gradient(0deg, rgba(18, 23, 18, 0.86), rgba(18, 23, 18, 0.03) 48%);
}

.theme-engineering .hero::before {
  background:
    linear-gradient(90deg, rgba(10, 14, 14, 0.92), rgba(10, 14, 14, 0.5) 52%, rgba(10, 14, 14, 0.14)),
    linear-gradient(0deg, rgba(10, 14, 14, 0.88), rgba(10, 14, 14, 0.04) 46%);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 28px max(22px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-top {
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: #263431;
  font-weight: 850;
  line-height: 1;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.footer-link {
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #263431;
  font-weight: 850;
  line-height: 1;
}

.article-index-hero,
.article-hero {
  padding: 88px max(22px, calc((100vw - var(--max)) / 2)) 46px;
  background: linear-gradient(180deg, #edf6f2 0%, #f7f8f7 100%);
  border-bottom: 1px solid var(--line);
}

.article-index-hero h1,
.article-hero h1 {
  max-width: 960px;
  margin: 8px 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
}

.article-index-hero p:not(.eyebrow),
.article-hero p:not(.eyebrow) {
  max-width: 820px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

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

.article-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) 1fr;
  min-height: 270px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.article-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card picture {
  height: 100%;
}

.article-card__body {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 24px;
}

.article-card__body span,
.article-meta span {
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.article-card__body h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.14;
}

.article-card__body p {
  margin: 0;
  color: var(--muted);
}

.article-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 36px;
  align-items: end;
}

.article-hero__grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 0;
}

.article-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.article-links a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(240px, 320px);
  gap: 46px;
  align-items: start;
  padding: 58px max(22px, calc((100vw - var(--max)) / 2)) 76px;
}

.article-content {
  display: grid;
  gap: 18px;
}

.article-content h2 {
  margin: 24px 0 0;
  font-size: 34px;
  line-height: 1.12;
}

.article-content h3 {
  margin: 10px 0 0;
  font-size: 22px;
  line-height: 1.2;
}

.article-content p {
  margin: 0;
  color: #31413d;
  font-size: 18px;
  line-height: 1.72;
}

.article-content ul,
.article-content ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 28px;
  color: #31413d;
  font-size: 18px;
  line-height: 1.62;
}

.article-content li::marker {
  color: var(--green);
  font-weight: 800;
}

.article-content a {
  color: var(--green);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-aside {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.article-aside h2 {
  margin: 0;
  font-size: 20px;
}

.article-aside nav {
  display: grid;
  gap: 10px;
}

.article-aside a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.article-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin: 24px 0;
  padding: 26px;
  border-radius: 8px;
  background: #101514;
  color: var(--white);
}

.article-cta h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 28px;
}

.article-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.55;
}

.article-cta .btn {
  background: var(--green);
  color: var(--white);
  white-space: nowrap;
}

.article-cta--compact {
  margin: 12px 0 6px;
}

.not-found {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 32px;
  align-items: center;
  min-height: calc(100vh - 190px);
  padding: 86px max(22px, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(120deg, rgba(237, 246, 242, 0.96), rgba(247, 248, 247, 0.92)),
    radial-gradient(circle at 82% 24%, rgba(24, 142, 120, 0.16), transparent 30%);
}

.not-found__content h1 {
  max-width: 860px;
  margin: 8px 0 18px;
  color: var(--ink);
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.96;
}

.not-found__content p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.not-found__panel {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.not-found__panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--graphite);
  font-weight: 850;
}

.not-found__panel a::after {
  content: "→";
  color: var(--green);
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}

.lead-modal[aria-hidden="false"] {
  display: block;
}

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 10, 0.64);
}

.lead-modal__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(560px, calc(100% - 28px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  color-scheme: light;
}

.lead-modal__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 24px 24px 12px;
}

.lead-modal__head h2 {
  margin-bottom: 6px;
  font-size: 26px;
  line-height: 1.18;
}

.lead-modal__head p {
  margin-bottom: 0;
  color: var(--muted);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f5f4;
  color: var(--ink);
  cursor: pointer;
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 12px 24px 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  font-size: 13px;
  font-weight: 800;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
}

.form-field input,
.form-field select {
  min-height: 44px;
  padding: 10px 12px;
}

.form-field textarea {
  min-height: 112px;
  padding: 12px;
  resize: vertical;
}

.form-field--full {
  grid-column: 1 / -1;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.consent-check {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.consent-check input {
  width: 24px;
  height: 24px;
  margin: 1px 0 0;
  accent-color: var(--green);
}

.consent-check a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-status.is-error {
  color: #b31d2a;
}

.form-status.is-checking {
  color: #b31d2a;
  font-weight: 800;
}

.form-status.is-success {
  color: #12735f;
}

.turnstile-slot {
  min-height: 0;
  overflow: visible;
}

.turnstile-widget {
  max-width: 100%;
}

.turnstile-widget iframe {
  max-width: 100%;
}

.success-panel {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 34px 26px 30px;
  text-align: center;
}

.success-panel__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #e4f5ef;
  color: #12735f;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.success-panel h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.success-panel p {
  margin: 0;
  color: var(--muted);
}

.legal-page {
  background: #f7f8f7;
}

.site-header--legal .header-row {
  min-height: 88px;
}

.legal-hero {
  padding: 72px 0 26px;
  background: linear-gradient(180deg, #edf6f2 0%, #f7f8f7 100%);
  border-bottom: 1px solid var(--line);
}

.legal-container {
  max-width: 920px;
}

.legal-hero h1 {
  max-width: 820px;
  margin: 8px 0 14px;
  font-size: 44px;
  line-height: 1.05;
}

.legal-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.legal-section {
  padding: 34px 0 72px;
}

.legal-document {
  display: grid;
  gap: 14px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.legal-document h2 {
  margin: 16px 0 2px;
  font-size: 24px;
  line-height: 1.2;
}

.legal-document h2:first-child {
  margin-top: 0;
}

.legal-document p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

.legal-list-item {
  position: relative;
  padding-left: 18px;
}

.legal-list-item::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--green);
}

.legal-table-wrap {
  overflow-x: auto;
}

.legal-document table {
  width: 100%;
  border-collapse: collapse;
}

.legal-document td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.5;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 70;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid #2d3432;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(13, 23, 33, 0.16);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.cookie-banner a {
  color: #101514;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__btn {
  min-width: 142px;
  border: 1px solid #101514;
  border-radius: 8px;
  background: #101514;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 14px 20px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border-radius: 8px;
  background: #101514;
  color: var(--white);
  box-shadow: var(--shadow);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: start;
    order: 3;
  }

  h1 {
    font-size: 46px;
  }

  .services-grid,
  .service-landing-grid,
  .service-faq,
  .case-grid,
  .packages,
  .variant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-detail-hero__grid,
  .case-detail {
    grid-template-columns: 1fr;
  }

  .case-aside {
    position: static;
  }

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

@media (max-width: 1100px) {
  .header-cta {
    display: none;
  }

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

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 22px;
    right: 22px;
    z-index: 40;
    display: none;
    grid-template-columns: 1fr;
    gap: 6px;
    justify-content: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 50px rgba(13, 28, 26, 0.18);
    backdrop-filter: blur(14px);
    overflow: hidden;
  }

  body.nav-open .main-nav {
    display: grid;
  }

  .main-nav a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 8px;
  }

  .mobile-nav-cta {
    display: inline-flex;
    width: 100%;
    margin-top: 4px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .site-header {
    position: sticky;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 10px 16px;
    overflow: visible;
  }

  .brand img {
    width: 134px;
  }

  .header-actions {
    justify-self: end;
  }

  .share-btn,
  .mobile-menu-toggle {
    min-width: 44px;
    height: 44px;
    background: var(--white);
    box-shadow: 0 8px 22px rgba(13, 28, 26, 0.1);
  }

  .main-nav {
    left: 16px;
    right: 16px;
  }

  .main-nav a[href^="#"] {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero__content {
    width: calc(100% - 32px);
    padding: 48px 0 30px;
  }

  h1 {
    font-size: 32px;
    line-height: 1.08;
  }

  .hero__lead {
    font-size: 17px;
  }

  .proof-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 22px;
  }

  .proof-item {
    padding: 12px 10px;
  }

  .proof-item strong {
    font-size: 18px;
  }

  .proof-item span {
    font-size: 11px;
  }

  .section {
    padding: 54px 16px;
  }

  .section__head,
  .split,
  .cta-band,
  .article-hero__grid,
  .article-layout,
  .article-cta,
  .not-found,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .section__head h2,
  .split-copy h2,
  .cta-band h2 {
    font-size: 30px;
  }

  .services-grid,
  .service-landing-grid,
  .service-faq,
  .case-grid,
  .article-grid,
  .packages,
  .variant-grid,
  .process,
  .case-metrics,
  .service-hero .case-metrics {
    grid-template-columns: 1fr;
  }

  .case-directory,
  .case-detail-hero,
  .article-index-hero,
  .article-hero,
  .article-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .article-index-hero,
  .article-hero {
    padding-top: 54px;
    padding-bottom: 30px;
  }

  .article-index-hero h1,
  .article-hero h1 {
    font-size: 32px;
    line-height: 1.08;
  }

  .article-index-hero p:not(.eyebrow),
  .article-hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .article-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .article-card img {
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .article-card__body {
    padding: 20px;
  }

  .article-card__body h3 {
    font-size: 21px;
  }

  .service-landing-card__body {
    padding: 20px;
  }

  .service-landing-card__body h3 {
    font-size: 21px;
  }

  .article-hero__grid {
    gap: 24px;
  }

  .article-layout {
    gap: 30px;
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .article-content {
    gap: 15px;
  }

  .article-content h2 {
    font-size: 26px;
  }

  .article-content h3 {
    font-size: 19px;
  }

  .article-content p {
    font-size: 16px;
    line-height: 1.66;
  }

  .article-aside {
    position: static;
    order: 2;
  }

  .article-cta {
    gap: 16px;
    padding: 22px;
  }

  .article-cta h2 {
    font-size: 24px;
  }

  .article-cta .btn {
    width: 100%;
  }

  .not-found {
    min-height: auto;
    padding: 48px 16px 60px;
  }

  .not-found__content h1 {
    font-size: 36px;
    line-height: 1.04;
  }

  .not-found__content p:not(.eyebrow) {
    font-size: 16px;
  }

  .not-found__actions .btn {
    width: 100%;
  }

  .footer-actions {
    justify-content: flex-start;
  }

  .variant-grid,
  .index-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cta-band {
    padding: 24px;
  }

  .lead-modal__panel {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: min(100dvh, 100vh);
    transform: none;
    border-radius: 8px 8px 0 0;
  }

  .lead-modal__head,
  .lead-form {
    padding-left: 18px;
    padding-right: 18px;
  }

  .lead-modal__head {
    gap: 10px;
    padding-top: 16px;
    padding-bottom: 6px;
  }

  .lead-modal__head h2 {
    font-size: 22px;
  }

  .lead-modal__head p {
    font-size: 13px;
    line-height: 1.35;
  }

  .lead-form {
    gap: 9px;
    padding-top: 8px;
    padding-bottom: 14px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .form-field {
    gap: 4px;
  }

  .form-field label {
    font-size: 12px;
  }

  .form-field input,
  .form-field select {
    min-height: 40px;
    padding: 8px 10px;
  }

  .form-field textarea {
    min-height: 78px;
    padding: 10px;
  }

  .form-note {
    font-size: 12px;
    line-height: 1.4;
  }

  .consent-check {
    grid-template-columns: 24px 1fr;
    gap: 10px;
    font-size: 12px;
    line-height: 1.35;
  }

  .consent-check input {
    width: 22px;
    height: 22px;
  }

  .legal-hero {
    padding: 46px 0 22px;
  }

  .legal-hero h1 {
    font-size: 32px;
  }

  .legal-hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .legal-section {
    padding: 24px 0 52px;
  }

  .legal-document {
    gap: 12px;
    padding: 20px;
  }

  .legal-document h2 {
    font-size: 20px;
  }

  .legal-document p {
    font-size: 14px;
    line-height: 1.58;
  }

  .cookie-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .cookie-banner p {
    font-size: 13px;
  }

  .cookie-banner__btn {
    width: 100%;
    min-height: 46px;
  }

  .lead-form .btn[type="submit"] {
    position: sticky;
    bottom: 0;
    z-index: 2;
    min-height: 50px;
    box-shadow: 0 -8px 18px rgba(255, 255, 255, 0.9);
  }

  .form-status {
    min-height: 0;
    font-size: 13px;
  }

  .success-panel {
    min-height: 320px;
    align-content: center;
    padding: 30px 22px;
  }
}

@media (max-width: 700px) and (max-height: 760px) {
  .lead-modal__head {
    padding-top: 14px;
    padding-bottom: 4px;
  }

  .lead-modal__head h2 {
    font-size: 20px;
  }

  .lead-modal__head p {
    display: none;
  }

  .lead-form {
    gap: 7px;
    padding-top: 6px;
  }

  .form-grid {
    gap: 7px;
  }

  .form-field input,
  .form-field select {
    min-height: 38px;
  }

  .form-field textarea {
    min-height: 62px;
  }

  .consent-check {
    font-size: 11.5px;
  }
}
