:root {
  --ink: #17231e;
  --muted: #5f6b65;
  --paper: #f4f0e7;
  --paper-deep: #e9e2d5;
  --white: #fffdf8;
  --green: #1f4d3b;
  --green-deep: #143629;
  --lime: #d9ea8a;
  --blue: #b8d9e7;
  --blue-deep: #396272;
  --line: rgba(23, 35, 30, 0.15);
  --shadow: 0 28px 80px rgba(27, 45, 36, 0.12);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 90% 0, rgba(184, 217, 231, 0.52), transparent 27rem),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

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

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

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(3rem, 5.4vw, 4.9rem);
}

h2 {
  font-size: clamp(2.15rem, 4.4vw, 4.4rem);
}

h3 {
  font-size: 1.45rem;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--white);
  transform: translateY(-160%);
}

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

.site-header {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 28px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 720;
}

.brand-text {
  line-height: 1.25;
}

.brand-dash {
  color: var(--green);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: var(--green);
  color: var(--white);
  font-size: 0.79rem;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: clamp(16px, 2.5vw, 34px);
  font-size: 0.92rem;
}

.site-nav a,
.back-link {
  color: var(--muted);
  text-decoration: none;
}

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

.section-shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.hero {
  min-height: min(780px, calc(100vh - 86px));
  padding: clamp(52px, 9vw, 112px) 0 clamp(68px, 10vw, 126px);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.63fr);
  gap: clamp(44px, 7vw, 100px);
  align-items: center;
}

.hero h1 {
  max-width: 900px;
  margin-bottom: 32px;
  font-weight: 670;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 780px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.18rem, 2vw, 1.46rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--green);
  color: var(--white);
}

.button-primary:hover {
  background: var(--green-deep);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 253, 248, 0.55);
}

.button-muted {
  background: var(--white);
  color: var(--green);
}

.trust-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.trust-list li {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
}

.portrait-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.52);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.portrait-frame {
  overflow: hidden;
  aspect-ratio: 4 / 4.8;
  border-radius: 23px;
  background: var(--paper-deep);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.portrait-caption {
  padding: 16px 6px 5px;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.portrait-caption span {
  color: var(--muted);
  font-size: 0.9rem;
}

.intro {
  padding: clamp(68px, 9vw, 116px);
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 30px;
  border-radius: var(--radius-lg);
  background: var(--green);
  color: var(--white);
}

.intro h2 {
  max-width: 900px;
  margin-bottom: 30px;
}

.intro p:not(.section-number) {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.16rem;
}

.section-number {
  color: var(--lime);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.services,
.process {
  padding-block: clamp(100px, 12vw, 170px);
}

.section-heading {
  max-width: 950px;
  margin-bottom: 54px;
}

.section-heading h2 {
  margin-bottom: 0;
}

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

.service-card {
  min-height: 340px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.58);
}

.service-card:nth-child(2) {
  background: var(--blue);
}

.service-card:nth-child(3) {
  background: var(--lime);
}

.card-index {
  margin-bottom: auto;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
}

.service-card h3 {
  margin: 34px 0 16px;
}

.service-card p {
  margin-bottom: 0;
  color: rgba(23, 35, 30, 0.72);
}

.price {
  padding: clamp(68px, 9vw, 112px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: center;
  border-radius: var(--radius-lg);
  background: var(--green);
  color: var(--white);
}

.price .eyebrow {
  color: var(--lime);
}

.price h2 {
  max-width: 760px;
  margin-bottom: 24px;
}

.price-lead {
  max-width: 700px;
  font-size: 1.34rem;
}

.price-panel > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.payment-state {
  margin: 28px 0 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

.payment-dot {
  width: 9px;
  height: 9px;
  margin-top: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(217, 234, 138, 0.12);
}

.price-note {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
}

.price-note p:not(.quote-mark) {
  font-size: 1.15rem;
}

.price-note span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
}

.quote-mark {
  height: 60px;
  margin-bottom: 8px;
  color: var(--lime);
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
}

.steps {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
  list-style: none;
}

.steps li {
  min-height: 180px;
  padding: 28px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  background: var(--paper);
}

.steps li > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
  font-weight: 760;
}

.steps h3 {
  margin: 8px 0 10px;
}

.steps p {
  max-width: 420px;
  margin-bottom: 0;
  color: var(--muted);
}

.contact {
  margin-bottom: 34px;
  padding: clamp(56px, 8vw, 92px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(34px, 8vw, 100px);
  align-items: center;
  border-radius: var(--radius-lg);
  background: var(--blue);
}

.contact h2 {
  margin-bottom: 24px;
}

.contact p:not(.eyebrow) {
  color: rgba(23, 35, 30, 0.72);
}

.contact-links {
  display: grid;
}

.contact-links a,
.contact-links .contact-item {
  padding: 18px 0;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  border-bottom: 1px solid rgba(23, 35, 30, 0.19);
  text-decoration: none;
}

.contact-links > :first-child {
  border-top: 1px solid rgba(23, 35, 30, 0.19);
}

.contact-links span {
  color: var(--muted);
  font-size: 0.86rem;
}

.contact-links strong {
  overflow-wrap: anywhere;
}

.site-footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 52px 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-main {
  padding-bottom: 28px;
  display: flex;
  justify-content: space-between;
  gap: 34px;
  border-bottom: 1px solid var(--line);
}

.footer-main strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.footer-main p {
  margin: 6px 0 0;
}

.footer-main nav,
.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 22px;
}

.footer-note {
  max-width: 850px;
  margin: 24px 0 0;
}

.compact-header {
  padding-bottom: 42px;
}

.legal-page {
  background:
    radial-gradient(circle at 100% 0, rgba(184, 217, 231, 0.45), transparent 28rem),
    var(--paper);
}

.legal-shell {
  width: min(calc(100% - 40px), 920px);
  margin: 0 auto;
  padding-bottom: 90px;
}

.narrow-legal {
  max-width: 780px;
}

.legal-title {
  padding: 56px 0 46px;
  border-bottom: 1px solid var(--line);
}

.legal-title h1 {
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 7vw, 5.5rem);
}

.legal-title > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.legal-content {
  padding-top: 46px;
}

.legal-content section {
  margin-bottom: 50px;
}

.legal-content h2 {
  margin-bottom: 24px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.legal-content p,
.legal-content li {
  color: #35423c;
}

.legal-content ul {
  padding-left: 1.4em;
}

.legal-content a {
  color: var(--green);
  font-weight: 650;
}

.requisites {
  padding: 32px;
  border-radius: var(--radius-md);
  background: var(--white);
}

.requisites dl {
  margin: 0;
}

.requisites dl div {
  padding: 13px 0;
  display: grid;
  grid-template-columns: minmax(170px, 0.65fr) 1.35fr;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.requisites dl div:last-child {
  border-bottom: 0;
}

.requisites dt {
  color: var(--muted);
}

.requisites dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.legal-note {
  padding: 28px;
  border-left: 5px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--white);
}

.legal-note p {
  margin: 8px 0 0;
}

.legal-footer {
  padding-top: 0;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.error-page main {
  width: min(calc(100% - 40px), 680px);
  padding: 46px;
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.74);
  box-shadow: var(--shadow);
}

.error-page .brand {
  margin-bottom: 80px;
}

.error-page h1 {
  margin-bottom: 20px;
  font-size: clamp(3rem, 9vw, 6rem);
}

.error-page p:not(.eyebrow) {
  margin-bottom: 32px;
  color: var(--muted);
}

.status-page {
  min-height: 100vh;
  padding: 34px 0;
  display: grid;
  place-items: center;
}

.status-page::before {
  content: "";
  position: fixed;
  inset: auto -12vw -34vh auto;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: rgba(217, 234, 138, 0.28);
  pointer-events: none;
}

.status-fail::before {
  background: rgba(184, 217, 231, 0.38);
}

.status-card {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), 760px);
  padding: clamp(32px, 7vw, 62px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.84);
  box-shadow: var(--shadow);
}

.status-card .brand {
  margin-bottom: clamp(54px, 9vw, 88px);
}

.status-symbol {
  width: 62px;
  height: 62px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 2rem;
  font-weight: 760;
}

.status-fail .status-symbol {
  background: var(--blue-deep);
}

.status-card h1 {
  max-width: 660px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 5.8rem);
}

.status-lead {
  max-width: 650px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.5vw, 1.3rem);
}

.status-note {
  margin-bottom: 30px;
  padding: 22px 24px;
  border-left: 5px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--paper);
}

.status-fail .status-note {
  border-left-color: var(--blue-deep);
}

.status-note p {
  margin: 6px 0 0;
  color: var(--muted);
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.status-help {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

:focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 4px;
}

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

  .button {
    transition: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    padding-bottom: 8px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .status-card .brand {
    align-items: flex-start;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    display: contents;
  }

  .hero .eyebrow,
  .hero h1,
  .hero-lead,
  .hero-actions {
    grid-column: 1;
  }

  .portrait-card {
    width: min(100%, 420px);
    margin: 8px auto 0;
    grid-row: 5;
  }

  .trust-list {
    grid-row: 6;
  }

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

  .service-card {
    min-height: 260px;
  }

  .price,
  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: clamp(2.8rem, 13vw, 4.3rem);
  }

  .site-header,
  .section-shell,
  .site-footer,
  .legal-shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .brand-text {
    max-width: 275px;
    font-size: 0.9rem;
  }

  .site-nav {
    gap: 20px;
    font-size: 0.85rem;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  .intro,
  .price,
  .contact {
    padding: 32px 24px;
    border-radius: 24px;
  }

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

  .service-card {
    padding: 24px;
  }

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

  .steps li {
    min-height: auto;
    padding: 24px;
  }

  .contact-links a,
  .contact-links .contact-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-main,
  .legal-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-main nav,
  .legal-footer nav {
    justify-content: flex-start;
  }

  .compact-header {
    padding-bottom: 18px;
  }

  .legal-title {
    padding-top: 34px;
  }

  .legal-content {
    padding-top: 34px;
  }

  .requisites {
    padding: 24px;
  }

  .requisites dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .error-page main {
    padding: 30px 24px;
  }
}
