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

* {
  box-sizing: border-box;
}

:root {
  --canvas: #f3f7f8;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.58);
  --ink: #17232b;
  --text: #33454f;
  --muted: #738188;
  --line: #e0e7ea;
  --line-strong: #c9d5da;
  --accent-bg: #e3f0ef;
  --accent: #27675f;
  --blue-bg: #e6eef7;
  --blue: #315f8c;
  --warn-bg: #f2ead8;
  --warn: #8a6428;
  --page-max: 1320px;
  --page-gutter: 64px;
  --header-height: 96px;
  --anchor-offset: 128px;
  --section-anchor-offset: 42px;
  --hero-title: 64px;
  --lead-size: 18px;
  --brand-size: 21px;
  --nav-size: 15px;
  --button-size: 17px;
  --section-title: 46px;
  --section-copy: 17px;
  --area-title: 26px;
  --card-title: 24px;
  --price-size: 18px;
  --footer-size: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--ink);
  font-family: "Golos Text", "Golos UI", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms var(--ease);
}

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

.page {
  width: 100%;
  padding-bottom: 64px;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(var(--page-gutter), 1fr) minmax(0, var(--page-max)) minmax(var(--page-gutter), 1fr);
  align-items: center;
  min-height: 56px;
  padding: 24px 0 14px;
  margin-bottom: clamp(42px, 5vh, 76px);
  border-bottom: 1px solid rgba(174, 188, 204, 0.5);
  background: rgba(243, 247, 248, 0.9);
  backdrop-filter: blur(14px);
}

.top-inner {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 56px;
  height: 43px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  color: var(--ink);
  font-size: var(--brand-size);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: var(--nav-size);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}

.nav a:hover {
  color: var(--ink);
  background: rgba(23, 35, 43, 0.04);
}

.nav a.is-action {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
}

/* Hero */
.hero {
  display: grid;
  align-items: center;
  justify-items: center;
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--page-max));
  min-height: clamp(560px, calc(100svh - 150px), 780px);
  margin: 0 auto;
  padding: 0;
}

.hero-inner {
  min-width: 0;
  max-width: 960px;
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
  animation: enter 700ms var(--ease) both;
}

.hero-inner .actions {
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

h1 {
  max-width: 860px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: var(--hero-title);
  font-weight: 760;
  line-height: 1.03;
  letter-spacing: 0;
  text-wrap: balance;
}

.lead {
  max-width: 720px;
  margin: 0;
  color: var(--text);
  font-size: var(--lead-size);
  line-height: 1.58;
}


.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: var(--button-size);
  font-weight: 720;
  text-decoration: none;
  transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
}

.button:hover {
  transform: translateY(-1px);
  background: #22313b;
  border-color: #22313b;
}

.button:active {
  transform: scale(0.98);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--line-strong);
  background: #f8fbfc;
}

.button.text-link {
  min-height: 44px;
  border-color: transparent;
  background: transparent;
  color: var(--ink);
}

.button.text-link:hover {
  background: rgba(23, 35, 43, 0.04);
}

.button:focus-visible,
.nav a:focus-visible,
.brand:focus-visible,
.footer a:focus-visible,
.article-card:focus-visible {
  outline: 3px solid rgba(39, 103, 95, 0.28);
  outline-offset: 2px;
}

/* Sections */
.section {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--page-max));
  margin: 0 auto;
  padding-top: 72px;
  scroll-margin-top: var(--section-anchor-offset);
}

.hero + .section {
  padding-top: clamp(112px, 11vh, 132px);
}

.section-head {
  max-width: 720px;
  margin-bottom: 30px;
}

h2 {
  max-width: 820px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: var(--section-title);
  font-weight: 720;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-note {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: var(--section-copy);
  line-height: 1.62;
}

/* Cards & rows: shared surface */
.service,
.feature,
.article-card,
.reviews-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

/* About / profile — compact avatar layout */
.profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.profile-image {
  position: relative;
  width: clamp(210px, 26vw, 300px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(160deg, #22333d, #17232b);
  box-shadow: 0 0 0 1px var(--line), 0 20px 44px rgba(15, 26, 34, 0.18);
}

.profile-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.04);
  transform-origin: 50% 40%;
}

.profile-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.profile-copy {
  display: grid;
  gap: 16px;
  align-content: center;
}

.profile-copy h2 {
  max-width: 720px;
  margin-bottom: 0;
}

.profile-role {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
}

.profile-copy .actions {
  justify-content: flex-start;
  margin-top: 6px;
}

/* Services */
.service-list {
  display: grid;
  gap: 12px;
}

.service {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.24fr);
  gap: 26px;
  align-items: center;
  padding: 22px;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease);
}

.service:hover {
  transform: translateY(-3px);
  border-color: #bfced7;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 44px rgba(31, 48, 73, 0.1);
}

.service:has(.service-expenses[open]) {
  z-index: 25;
}

.service-pricing {
  position: relative;
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 230px;
  text-align: right;
}

.service-price {
  justify-self: end;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--price-size);
  font-weight: 760;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.service-installment {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.service-expenses {
  position: relative;
  justify-self: end;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.service-expenses summary {
  list-style: none;
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  outline: none;
}

.service-expenses summary::-webkit-details-marker {
  display: none;
}

.service-expenses summary::after {
  content: "+";
  display: inline-block;
  margin-left: 6px;
  color: var(--accent);
}

.service-expenses[open] summary {
  color: var(--ink);
}

.service-expenses[open] summary::after {
  content: "-";
}

.service-expenses-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: min(340px, 86vw);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 26, 34, 0.16);
  text-align: left;
}

.service-expenses-pop p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

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

.feature {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 14px 20px;
  align-content: start;
  padding: 24px;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease);
}

.feature:hover {
  transform: translateY(-3px);
  border-color: #bfced7;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 44px rgba(31, 48, 73, 0.1);
}

.feature-media {
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

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

.feature-index {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

/* Shared heading for cards */
.service h3,
.feature h3,
.faq-item h3,
.article-card h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: var(--card-title);
  font-weight: 700;
  line-height: 1.18;
  text-wrap: balance;
}

.service p,
.feature p,
.faq-item p,
.article-card p,
.profile-copy p {
  margin-bottom: 0;
  color: var(--text);
  font-size: var(--section-copy);
  line-height: 1.62;
}

/* FAQ — editorial rows */
.faq-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.faq-item {
  display: grid;
  grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.56fr);
  gap: 42px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  margin-bottom: 0;
  font-size: var(--area-title);
  line-height: 1.2;
}

/* Consequences — mandatory notice + citation on hover */
#consequences {
  position: relative;
  z-index: 2;
}

#consequences:has(.legal-cite:hover),
#consequences:has(.legal-cite:focus-within) {
  z-index: 45;
}

.legal-notice {
  max-width: 840px;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.56;
}

.legal-cite {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  width: min(680px, 100%);
  margin: 14px 0 0;
}

.cite {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: help;
  outline: none;
}

.legal-cite:hover .cite,
.cite:focus-visible {
  color: var(--ink);
}

.cite-pop {
  width: min(560px, 100%);
  max-height: 0;
  overflow: auto;
  margin-top: 0;
  padding: 0 20px 0 22px;
  border: 0 solid rgba(120, 138, 151, 0.42);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: max-height 220ms var(--ease), margin-top 180ms var(--ease), padding 180ms var(--ease), border-width 180ms var(--ease), opacity 160ms var(--ease), transform 180ms var(--ease), visibility 160ms;
  pointer-events: none;
}

.legal-cite:hover .cite-pop,
.legal-cite:focus-within .cite-pop {
  max-height: 420px;
  margin-top: 10px;
  padding: 18px 20px 18px 22px;
  border-width: 1px;
  box-shadow: 0 24px 58px rgba(15, 26, 34, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.cite-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
}

.cite-list b {
  color: var(--ink);
}

/* Reviews */
.reviews-live {
  width: 100%;
  padding: 22px 0 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.reviews-state {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 4px 0 18px;
}

.reviews-source {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.reviews-state p {
  max-width: 620px;
  margin: 0;
  color: var(--text);
  line-height: 1.62;
}

.reviews-loaded {
  display: grid;
  gap: 20px;
}

.reviews-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.reviews-summary-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviews-summary-main strong {
  color: var(--ink);
  font-size: 44px;
  font-weight: 760;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.reviews-summary-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.review-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.review-card {
  display: grid;
  gap: 14px;
  align-self: start;
  padding: 24px;
  border: 1px solid rgba(174, 188, 204, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.review-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.review-card-top > div {
  display: grid;
  gap: 4px;
}

.review-stars {
  flex: 0 0 auto;
  color: var(--line-strong);
  white-space: nowrap;
}

.review-stars .is-filled {
  color: var(--warn);
}

.review-date {
  color: var(--muted);
  font-size: 13px;
}

.review-card blockquote {
  margin: 0;
}

.review-card blockquote p {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.66;
}

.review-profile-link,
.review-link {
  justify-self: start;
  color: var(--ink);
  font-size: 14px;
  font-weight: 720;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.review-profile-link:hover,
.review-link:hover {
  text-decoration-color: var(--ink);
}

.reviews-more {
  display: flex;
  justify-content: center;
  padding-top: 2px;
}

/* Publications */
.publications-hero,
.publications-list-section {
  width: min(calc(100% - (var(--page-gutter) * 2)), 1120px);
  margin: 0 auto;
}

.publications-hero {
  display: grid;
  gap: 18px;
  padding: clamp(30px, 5vw, 58px) 0 20px;
  text-align: left;
}

.publications-hero .article-kicker {
  margin-bottom: 0;
}

.publications-hero h1 {
  max-width: 800px;
  font-size: clamp(36px, 4.3vw, 56px);
  font-weight: 780;
  line-height: 1.08;
}

.publications-hero .lead {
  max-width: 720px;
  font-size: clamp(18px, 1.6vw, 21px);
}

.publications-list-section {
  padding-top: 44px;
}

.pub-list {
  display: grid;
  gap: 14px;
  width: min(100%, 780px);
  margin: 0 auto;
}

.publications-page .pub-list {
  width: min(100%, 900px);
  margin: 0;
}

.article-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 26px;
  text-decoration: none;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease);
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: #bfced7;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 44px rgba(31, 48, 73, 0.1);
}

.publications-page .article-card {
  padding: 30px 32px;
}

.article-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.article-more {
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 720;
}

/* Contacts — minimal premium CTA */
.contacts-section {
  scroll-margin-top: var(--header-height);
}

.contact-cta {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
  text-align: center;
  box-shadow: 0 18px 40px rgba(31, 48, 73, 0.07);
}

.contact-cta h2 {
  max-width: 620px;
  margin-bottom: 0;
}

.contact-cta p {
  max-width: 620px;
  margin: 0;
  color: var(--text);
  font-size: var(--section-copy);
  line-height: 1.62;
}

.contact-cta .actions {
  justify-content: center;
  margin-top: 8px;
}

/* Floating contact widget */
.cw {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 60;
  display: grid;
  justify-items: end;
  gap: 12px;
}

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

.cw-phone,
.cw-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font: inherit;
  font-weight: 720;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(15, 26, 34, 0.28);
  transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
}

.cw-phone {
  width: 52px;
  height: 52px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.cw-toggle {
  gap: 9px;
  min-height: 52px;
  padding: 0 20px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
}

.cw-phone:hover,
.cw-toggle:hover {
  transform: translateY(-2px);
}

.cw-phone:hover {
  border-color: #bfced7;
  background: #fff;
}

.cw-toggle:hover {
  background: #22313b;
}

.cw-phone:focus-visible,
.cw-toggle:focus-visible {
  outline: 3px solid rgba(39, 103, 95, 0.28);
  outline-offset: 2px;
}

.cw-panel {
  width: min(360px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 26px 64px rgba(15, 26, 34, 0.22);
  animation: cw-in 220ms var(--ease) both;
}

.cw-panel[hidden] {
  display: none;
}

.cw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.cw-head strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 720;
}

.cw-close {
  padding: 2px 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.cw-close:hover {
  color: var(--ink);
}

.cw-note {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.cw-form {
  display: grid;
  gap: 12px;
}

.cw-form input[type="text"],
.cw-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.cw-form textarea {
  min-height: 84px;
  resize: vertical;
}

.cw-form input[type="text"]:focus,
.cw-form textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.cw-form .button {
  width: 100%;
}

@keyframes cw-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}

.consent input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--ink);
}

.consent a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

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

.form-status.is-ok {
  color: var(--ink);
  font-weight: 650;
}

.inline-link {
  color: var(--ink);
  font-weight: 720;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Footer */
.footer {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--page-max));
  margin: 118px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  color: var(--muted);
  font-size: var(--footer-size);
  line-height: 1.5;
}

.footer-brand {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.footer-name {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms var(--ease);
}

.footer-name:hover {
  color: var(--accent);
}

.footer-note {
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
}

.footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms var(--ease);
}

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

.footer-icon {
  flex: 0 0 auto;
}

/* Article page */
.article-hero {
  width: min(calc(100% - (var(--page-gutter) * 2)), 760px);
  margin: 0 auto;
  padding: 76px 0 44px;
  text-align: left;
}

.article-hero h1 {
  max-width: 720px;
  margin-right: 0;
  margin-left: 0;
  font-size: clamp(30px, 4.4vw, 42px);
  font-weight: 740;
  line-height: 1.16;
}

.article-hero .lead {
  margin-top: 20px;
  margin-right: 0;
  margin-left: 0;
  max-width: 680px;
  font-size: 19px;
  line-height: 1.6;
}

.article-page .article-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 780px);
  align-items: stretch;
  width: min(calc(100% - (var(--page-gutter) * 2)), 1180px);
  padding: clamp(30px, 5vw, 68px) 0 clamp(34px, 5vw, 72px);
  overflow: hidden;
}

.article-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  min-width: 0;
}

.article-back {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
  transition: color 180ms var(--ease), transform 180ms var(--ease);
}

.article-back::before {
  content: "\2190";
  margin-right: 8px;
}

.article-back:hover {
  color: var(--ink);
  transform: translateX(-2px);
}

.article-back:focus-visible,
.article-toc a:focus-visible,
.article-aside-action:focus-visible {
  outline: 3px solid rgba(39, 103, 95, 0.28);
  outline-offset: 2px;
}

.article-kicker {
  margin: 0 0 18px;
  padding-left: 13px;
  border-left: 3px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.article-page .article-hero h1 {
  max-width: 820px;
  font-size: clamp(38px, 4.8vw, 58px);
  font-weight: 790;
  line-height: 1.06;
}

.article-page .article-hero .lead {
  max-width: 720px;
  margin-top: 24px;
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.62;
}

.article-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: clamp(24px, 4vw, 36px) 0 0;
  padding: 0;
}

.article-stats div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid rgba(174, 188, 204, 0.62);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.article-stats dt,
.article-stats dd {
  margin: 0;
}

.article-stats dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.article-stats dd {
  color: var(--ink);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.25;
}

.article-hero-media {
  position: absolute;
  top: clamp(32px, 4vw, 58px);
  right: 0;
  bottom: clamp(36px, 5vw, 70px);
  width: min(42vw, 500px);
  height: auto;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  opacity: 0.86;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%);
}

.article-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 86%;
  transform: scale(1.12);
  transform-origin: 50% 82%;
  filter: saturate(0.88) contrast(0.94);
}

.article-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--canvas) 0%, rgba(243, 247, 248, 0.5) 28%, rgba(8, 16, 20, 0.08) 100%),
    linear-gradient(180deg, rgba(243, 247, 248, 0.2) 0%, rgba(8, 16, 20, 0.28) 100%);
  pointer-events: none;
}

.article-hero-media figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 760px);
  gap: clamp(34px, 6vw, 74px);
  align-items: start;
  width: min(calc(100% - (var(--page-gutter) * 2)), 1120px);
  margin: 0 auto;
}

.article-aside {
  position: sticky;
  top: calc(var(--header-height) + 18px);
}

.article-aside-inner {
  display: grid;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-aside-title {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}

.article-toc {
  display: grid;
  gap: 2px;
}

.article-toc a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid rgba(224, 231, 234, 0.68);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  transition: color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}

.article-toc a:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  transform: translateX(3px);
}

.article-aside-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}

.article-aside-action:hover {
  transform: translateY(-1px);
  background: #22313b;
}

.article-body {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 0 90px;
}

.article-body section {
  padding: 46px 0 52px;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + 26px);
}

.article-body section:first-child {
  padding-top: 0;
  border-top: 0;
}

.article-brief {
  margin: 0 0 32px;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.article-brief span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
}

.article-brief p {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.58;
}

.article-body h2 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 760;
  line-height: 1.18;
}

.article-body h3 {
  margin: 34px 0 12px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 740;
  line-height: 1.25;
}

.article-body h4 {
  margin: 28px 0 10px;
  padding-left: 13px;
  border-left: 3px solid var(--line-strong);
  color: var(--ink);
  font-size: 18px;
  font-weight: 720;
  line-height: 1.38;
}

.article-body p {
  margin: 0 0 1.15em;
  color: var(--text);
  font-size: 18px;
  line-height: 1.78;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-body strong {
  color: var(--ink);
  font-weight: 760;
}

.article-body a {
  color: var(--ink);
  font-weight: 720;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-body ul,
.article-body ol {
  display: grid;
  gap: 12px;
  margin: 6px 0 1.2em;
  padding-left: 24px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.72;
}

.article-body li::marker {
  color: var(--accent);
  font-weight: 760;
}

.article-conclusion,
.article-resources {
  padding: 28px !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 8px;
}

.article-conclusion {
  margin: 18px 0 28px;
  background: linear-gradient(135deg, rgba(227, 240, 239, 0.88), rgba(255, 255, 255, 0.68));
}

.article-resources {
  background: rgba(255, 255, 255, 0.68);
}

.article-conclusion h2,
.article-resources h2 {
  margin-bottom: 16px;
}

.article-author {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.article-author img {
  width: 96px;
  height: 96px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.article-author-label {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
}

.article-author h2 {
  margin-bottom: 4px;
  font-size: 26px;
}

.article-author-role {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.article-author-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
}

.article-author-actions a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 720;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.article-author-actions a:hover {
  text-decoration-color: var(--ink);
}

/* Reveal animation */
.reveal-block {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms var(--ease), transform 620ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fluid type scale */
@media (min-width: 1600px) {
  :root {
    --page-max: 1400px;
    --page-gutter: 72px;
    --header-height: 100px;
    --hero-title: 76px;
    --lead-size: 21px;
    --brand-size: 23px;
    --nav-size: 16px;
    --button-size: 18px;
    --section-title: 54px;
    --section-copy: 18px;
    --area-title: 30px;
    --card-title: 26px;
    --price-size: 19px;
  }

  h1 {
    max-width: 980px;
  }

  .lead {
    max-width: 820px;
  }
}

@media (min-width: 2200px) {
  :root {
    --page-max: 1520px;
    --page-gutter: 96px;
    --hero-title: 84px;
    --lead-size: 22px;
    --section-title: 60px;
    --section-copy: 19px;
    --area-title: 32px;
    --card-title: 28px;
  }

  h1 {
    max-width: 1080px;
  }
}

@media (max-width: 1180px) {
  :root {
    --page-gutter: 32px;
    --hero-title: 58px;
    --section-title: 42px;
    --area-title: 24px;
    --card-title: 23px;
  }
}

@media (max-width: 980px) {
  :root {
    --page-gutter: 24px;
    --header-height: 145px;
    --section-anchor-offset: 92px;
    --hero-title: 48px;
    --section-title: 38px;
    --area-title: 22px;
    --card-title: 22px;
  }

  .top {
    align-items: flex-start;
    padding-top: 22px;
    margin-bottom: 42px;
  }

  .top-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: max(440px, calc(100svh - 200px));
  }

  .profile {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .profile-image {
    margin: 0 auto;
  }

  .profile-copy {
    justify-items: center;
  }

  .profile-copy .actions {
    justify-content: center;
  }

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

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

  .contact-panel {
    grid-template-columns: 1fr;
    gap: 22px;
  }

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

  .publications-list-section {
    padding-top: 34px;
  }

  .article-page .article-hero {
    grid-template-columns: 1fr;
    width: min(calc(100% - (var(--page-gutter) * 2)), 820px);
    padding-top: 24px;
  }

  .article-hero-media {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    max-height: 420px;
    border: 1px solid rgba(174, 188, 204, 0.72);
    border-radius: 8px;
    opacity: 1;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .article-shell {
    grid-template-columns: 1fr;
    width: min(calc(100% - (var(--page-gutter) * 2)), 760px);
    gap: 28px;
  }

  .article-aside {
    position: static;
  }

  .article-aside-inner {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
  }

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

  .article-toc a {
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.74);
  }

  .article-toc a:hover {
    transform: none;
  }

  .article-aside-action {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  :root {
    --page-gutter: 16px;
    --header-height: 116px;
    --section-anchor-offset: 104px;
    --hero-title: 36px;
    --lead-size: 17px;
    --section-title: 32px;
    --section-copy: 15px;
    --area-title: 22px;
    --card-title: 22px;
    --price-size: 17px;
  }

  .page {
    padding-bottom: 38px;
  }

  .top {
    padding-top: 12px;
    margin-bottom: 24px;
  }

  .brand {
    gap: 8px;
    min-height: 44px;
  }

  .brand-mark {
    width: 48px;
    height: 37px;
  }

  .brand-note {
    display: none;
  }

  .brand-name {
    max-width: 240px;
    white-space: normal;
  }

  .nav {
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

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

  .nav a {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 10px;
  }

  .hero {
    min-height: max(420px, calc(100svh - 170px));
    padding: 24px 0;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-top: 56px;
  }

  .hero + .section {
    padding-top: 48px;
  }

  .profile {
    padding: 16px;
    gap: 22px;
  }

  .service {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
  }

  .service-price {
    justify-self: start;
    text-align: left;
  }

  .service-pricing,
  .service-expenses {
    justify-items: start;
    justify-self: start;
    text-align: left;
  }

  .service-pricing {
    min-width: 0;
  }

  .service-expenses-pop {
    right: auto;
    left: 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 20px;
  }

  .feature-media {
    width: 76px;
    height: 76px;
  }

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

  .reviews-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .reviews-summary-meta {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    gap: 5px;
  }

  .reviews-summary-main strong {
    font-size: 38px;
  }

  .review-card {
    padding: 18px;
  }

  .cw-toggle {
    min-height: 48px;
    padding: 0 16px;
    font-size: 15px;
  }

  .cw-phone {
    width: 48px;
    height: 48px;
  }

  .publications-hero {
    gap: 14px;
    padding: 16px 0 20px;
  }

  .publications-hero h1 {
    font-size: clamp(30px, 9vw, 36px);
    line-height: 1.1;
  }

  .publications-hero .lead {
    font-size: 17px;
    line-height: 1.62;
  }

  .publications-list-section {
    padding-top: 18px;
  }

  .publications-page .article-card {
    padding: 20px;
  }

  .article-page .article-hero {
    gap: 20px;
    padding: 16px 0 30px;
  }

  .article-back {
    margin-bottom: 14px;
  }

  .article-kicker {
    margin-bottom: 12px;
  }

  .article-page .article-hero h1 {
    font-size: clamp(30px, 8.8vw, 36px);
    line-height: 1.08;
  }

  .article-page .article-hero .lead {
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.62;
  }

  .article-stats {
    display: none;
  }

  .article-hero-media {
    display: none;
  }

  .article-shell {
    gap: 22px;
  }

  .article-aside-inner {
    gap: 14px;
    padding: 14px;
  }

  .article-toc {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .article-toc::-webkit-scrollbar {
    display: none;
  }

  .article-toc a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .article-aside-action {
    display: none;
  }

  .article-body {
    padding-bottom: 66px;
  }

  .article-body section {
    padding: 38px 0 42px;
  }

  .article-brief {
    margin-bottom: 24px;
    padding: 18px;
  }

  .article-brief p {
    font-size: 16px;
  }

  .article-body h2 {
    font-size: 25px;
  }

  .article-body h3 {
    margin-top: 30px;
    font-size: 20px;
  }

  .article-body h4 {
    font-size: 17px;
  }

  .article-body p,
  .article-body ul,
  .article-body ol {
    font-size: 17px;
  }

  .article-conclusion,
  .article-resources {
    padding: 20px !important;
  }

  .article-author {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .article-author img {
    width: 82px;
    height: 82px;
  }

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

  .footer {
    margin-top: 86px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 420px) {
  :root {
    --hero-title: 30px;
    --section-title: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-block {
    opacity: 1;
    transform: none;
  }
}
