:root {
  --text: #172026;
  --muted: #5a6772;
  --paper: #ffffff;
  --soft: #f4f7f8;
  --line: #d9e2e6;
  --teal: #0d8078;
  --teal-dark: #095f59;
  --coral: #d85f49;
  --gold: #f3bd4f;
  --ink: #0f181d;
  --shadow: 0 18px 45px rgba(23, 32, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: Arial, "Helvetica Neue", sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 226, 230, 0.9);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  border-radius: 4px;
}

.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--teal-dark);
}

.hero {
  position: relative;
  min-height: 78svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/anatoliy-photo.png");
  background-position: center 28%;
  background-size: cover;
  opacity: 0.72;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(12, 22, 26, 0.68);
}

.hero-content {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 84px 0 98px;
  color: #fff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

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

h1 {
  max-width: 880px;
  margin-bottom: 24px;
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 22px;
  color: var(--ink);
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 760px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover,
.button:focus-visible,
.copy-button:hover,
.copy-button:focus-visible,
.document-card:hover,
.document-card:focus-visible,
.lightbox-close:hover,
.lightbox-close:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.button-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

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

.hero-actions,
.help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section {
  padding: 86px 0;
}

.section-summary {
  padding: 36px 0;
  background: var(--soft);
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

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

.summary-card,
.payment-panel,
.document-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 32, 38, 0.06);
}

.summary-card {
  padding: 22px;
}

.summary-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.summary-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 32px;
  line-height: 1;
}

.summary-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.two-column,
.transparency,
.help-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 58px;
  align-items: start;
}

.story-text,
.transparency-list,
.help-copy {
  color: var(--muted);
  font-size: 18px;
}

.story-text p:last-child,
.transparency-list p:last-child,
.help-copy p:last-child {
  margin-bottom: 0;
}

.section-help {
  background: #edf6f3;
}

.section-person {
  background: #fff;
}

.person-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: 56px;
  align-items: center;
}

.person-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.person-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(15, 24, 29, 0), rgba(15, 24, 29, 0.38));
  pointer-events: none;
}

.person-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.person-copy {
  color: var(--muted);
  font-size: 18px;
}

.person-copy p {
  max-width: 660px;
}

.help-layout {
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
}

.help-copy p {
  max-width: 680px;
  margin-bottom: 26px;
}

.payment-panel {
  padding: 24px;
}

.payment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.payment-row span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.payment-row strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 20px;
}

.copy-button,
.lightbox-close {
  min-height: 40px;
  padding: 10px 12px;
  color: var(--teal-dark);
  background: #f3fbf9;
  border: 1px solid #bddbd7;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.copy-button.is-copied {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.qr-box {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.qr-box img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center 20%;
}

.transparency {
  align-items: start;
}

.section-social {
  background: #fff;
}

.social-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 46px;
  align-items: center;
}

.social-layout p {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.social-cards {
  display: grid;
  gap: 14px;
}

.social-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 96px;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 32, 38, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.social-card:hover,
.social-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.social-card-vk:hover,
.social-card-vk:focus-visible {
  border-color: #78a7de;
}

.social-card-instagram:hover,
.social-card-instagram:focus-visible {
  border-color: #e190aa;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: #fff;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 900;
}

.social-card-vk .social-icon {
  background: #2f80ed;
}

.social-card-instagram .social-icon {
  background: linear-gradient(135deg, #f3bd4f, #d85f49 45%, #8b5cf6);
}

.social-card strong,
.social-card small {
  display: block;
}

.social-card strong {
  margin-bottom: 4px;
  font-size: 20px;
  line-height: 1.2;
}

.social-card small {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.section-documents {
  background: var(--soft);
}

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

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

.document-card {
  width: 100%;
  padding: 0;
  overflow: hidden;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.document-card:hover,
.document-card:focus-visible {
  box-shadow: var(--shadow);
}

.document-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-bottom: 1px solid var(--line);
}

.document-card span {
  display: block;
  min-height: 68px;
  padding: 14px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.25;
}

.final-cta {
  padding: 76px 0;
  color: #fff;
  background: var(--ink);
}

.final-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.4fr);
  gap: 28px;
  align-items: center;
}

.final-cta h2 {
  margin-bottom: 12px;
  color: #fff;
}

.final-cta p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.final-cta .button {
  justify-self: end;
}

.site-footer {
  padding: 24px 0;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 70px 22px 22px;
  background: rgba(15, 24, 29, 0.9);
}

.lightbox.is-open {
  display: flex;
}

.lightbox figure {
  margin: 0;
  max-width: min(980px, 100%);
  max-height: 100%;
}

.lightbox img {
  max-height: calc(100svh - 132px);
  width: auto;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.lightbox figcaption {
  margin-top: 10px;
  color: #fff;
  font-weight: 800;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 980px) {
  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 34px;
  }

  .summary-grid,
  .two-column,
  .transparency,
  .person-layout,
  .social-layout,
  .help-layout,
  .final-cta-inner {
    grid-template-columns: 1fr;
  }

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

  .payment-panel {
    width: min(100%, 560px);
  }

  .person-photo {
    width: min(100%, 520px);
  }

  .final-cta .button {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    gap: 12px;
    padding: 12px 18px;
  }

  .nav-links {
    gap: 12px;
    font-size: 14px;
  }

  .hero-content,
  .container {
    width: min(100% - 32px, 1120px);
  }

  .hero-content {
    padding: 74px 0 82px;
  }

  h1 {
    font-size: 42px;
    line-height: 1.02;
  }

  h2 {
    font-size: 30px;
  }

  .hero-lead,
  .story-text,
  .transparency-list,
  .person-copy,
  .social-layout p,
  .help-copy,
  .final-cta p {
    font-size: 17px;
  }

  .section {
    padding: 64px 0;
  }

  .section-summary {
    padding: 24px 0;
  }

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

  .payment-row {
    grid-template-columns: 1fr;
  }

  .qr-box img {
    height: 300px;
  }

  .social-card {
    grid-template-columns: 50px minmax(0, 1fr);
    min-height: 88px;
    padding: 16px;
  }

  .social-icon {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }
}

@media (max-width: 440px) {
  .site-header {
    position: static;
  }

  .brand {
    font-size: 15px;
  }

  .nav-links {
    display: none;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 26px;
  }

  .button {
    width: 100%;
  }

  .summary-card strong {
    font-size: 27px;
  }

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

  .document-card span {
    min-height: auto;
  }
}
