:root {
  color-scheme: dark;
  --charcoal: #111112;
  --charcoal-soft: #1a1a1c;
  --paper: #f0ece3;
  --paper-bright: #faf7f0;
  --ink: #171719;
  --red: #e54538;
  --red-dark: #bd3027;
  --gold: #c9a560;
  --muted-dark: #5f5d5a;
  --muted-light: #a9a6a0;
  --line-dark: rgba(23, 23, 25, 0.18);
  --line-light: rgba(255, 255, 255, 0.16);
  --max: 1360px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--charcoal);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: var(--red);
  color: white;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 11px 15px;
  background: var(--paper-bright);
  color: var(--ink);
  transform: translateY(-160%);
}

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

.masthead {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  display: grid;
  width: min(calc(100% - 56px), var(--max));
  min-height: 88px;
  grid-template-columns: 1fr auto;
  align-items: center;
  border-bottom: 1px solid var(--line-light);
  transform: translateX(-50%);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: start;
  text-decoration: none;
}

.wordmark span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--red);
  color: white;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.wordmark strong {
  font-size: 14px;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-self: end;
}

.nav a,
.main-version {
  color: #d8d4cc;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.main-version {
  justify-self: end;
  color: var(--gold);
}

.main-version span {
  margin-left: 7px;
}

.hero {
  position: relative;
  min-height: 940px;
  overflow: hidden;
  padding: 154px max(28px, calc((100vw - var(--max)) / 2)) 150px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--charcoal);
  background-size: 80px 80px, 80px 80px, auto;
}

.hero::before {
  content: "";
  position: absolute;
  top: 74px;
  right: -210px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.94;
  animation: red-orbit 16s ease-in-out infinite alternate;
}

.hero::after {
  content: "ПРАЙД";
  position: absolute;
  right: 8%;
  bottom: 88px;
  color: rgba(255, 255, 255, 0.035);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(120px, 20vw, 330px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 610px);
  gap: clamp(48px, 6vw, 92px);
  align-items: center;
  margin: 0 auto;
}

.hero-copy {
  max-width: 760px;
}

.kicker {
  margin: 0 0 22px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.kicker-dark {
  color: var(--red-dark);
}

.hero-name {
  margin: 0 0 24px;
  color: #d8d4cc;
  font-size: 14px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  margin: 0;
  font-size: clamp(62px, 7vw, 112px);
  letter-spacing: -0.062em;
  line-height: 0.84;
}

h1 em {
  color: var(--red);
  font-weight: inherit;
}

.hero-lead {
  max-width: 600px;
  margin: 38px 0 0;
  color: #bbb7b0;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 780;
  text-decoration: none;
}

.button-light {
  background: var(--paper-bright);
  color: var(--ink);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button-light:hover,
.button-light:focus-visible {
  background: var(--red);
  color: white;
  transform: translateY(-2px);
}

.editorial-link {
  color: #d8d4cc;
  font-size: 14px;
  text-decoration-color: rgba(255, 255, 255, 0.32);
  text-underline-offset: 6px;
}

.editorial-link span {
  margin-left: 8px;
  color: var(--red);
}

.hero-visual {
  position: relative;
  padding: 18px 18px 72px 0;
}

.hero-visual::before {
  content: "";
  position: absolute;
  top: -28px;
  right: -22px;
  width: 62%;
  height: calc(100% - 38px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  transform: rotate(3deg);
  animation: frame-float 11s ease-in-out infinite alternate;
}

.hero-photo {
  position: relative;
  z-index: 1;
  aspect-ratio: 1;
  overflow: hidden;
  background: #263547;
  clip-path: polygon(9% 0, 100% 0, 100% 91%, 91% 100%, 0 100%, 0 9%);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.44);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, transparent 48%, rgba(17, 17, 18, 0.46));
  pointer-events: none;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pride-card {
  position: absolute;
  z-index: 3;
  right: -18px;
  bottom: 0;
  width: min(290px, 74%);
  padding: 25px 27px 24px;
  border-top: 4px solid var(--red);
  background: rgba(17, 17, 18, 0.92);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.pride-card span,
.pride-card small {
  display: block;
  color: var(--muted-light);
  font-size: 11px;
  font-weight: 740;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.pride-card strong {
  display: block;
  margin: 8px 0 11px;
  color: var(--paper-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 33px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.pride-card p {
  margin: 0 0 18px;
  color: #c6c2bb;
  font-size: 13px;
  line-height: 1.55;
}

.pride-card small {
  padding-top: 15px;
  border-top: 1px solid var(--line-light);
  color: var(--gold);
}

.stats {
  position: absolute;
  z-index: 3;
  right: max(28px, calc((100vw - var(--max)) / 2));
  bottom: 0;
  left: max(28px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light);
}

.stat {
  display: grid;
  min-height: 112px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 20px 28px;
  border-right: 1px solid var(--line-light);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
}

.stat span {
  max-width: 130px;
  color: var(--muted-light);
  font-size: 12px;
  line-height: 1.35;
}

.section {
  position: relative;
  overflow: hidden;
  padding: 138px max(28px, calc((100vw - var(--max)) / 2));
}

.section-number {
  position: absolute;
  top: 78px;
  right: max(28px, calc((100vw - var(--max)) / 2));
  color: rgba(23, 23, 25, 0.055);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(110px, 15vw, 230px);
  line-height: 0.8;
  pointer-events: none;
}

.section-number-light {
  color: rgba(255, 255, 255, 0.045);
}

.section-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  margin-bottom: 80px;
}

.section-head .kicker {
  grid-column: 1;
}

.section-head h2 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink);
  font-size: clamp(58px, 7vw, 108px);
  letter-spacing: -0.058em;
  line-height: 0.9;
}

.about {
  background:
    linear-gradient(rgba(23, 23, 25, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 25, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 80px 80px, 80px 80px, auto;
  color: var(--ink);
}

.story-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 70px clamp(44px, 7vw, 100px);
  align-items: start;
}

.story-intro {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.27;
}

.story-copy {
  margin: 0;
  color: #4f4d49;
  font-size: 18px;
}

.journey {
  grid-column: 1;
  grid-row: 2;
}

.family {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.media {
  margin: 0;
}

.media-frame {
  aspect-ratio: 1;
  overflow: hidden;
  background: #d8d4cc;
}

.media img {
  display: block;
  width: 100%;
}

.family img {
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  transition: transform 700ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.family:hover img {
  transform: scale(1.025);
}

.media figcaption {
  margin-top: 14px;
  color: #706d67;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.prado {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: 18px;
}

.prado img {
  width: 100%;
  height: auto;
}

.prado-label {
  position: absolute;
  z-index: 2;
  top: 28px;
  left: 0;
  padding: 12px 18px;
  background: var(--red);
  color: white;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.crisis {
  grid-column: 1;
  grid-row: 4;
}

blockquote {
  grid-column: 2;
  grid-row: 4;
  margin: 0;
  padding: 0 0 0 32px;
  border-left: 5px solid var(--red);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 43px);
  line-height: 1.25;
}

.faith {
  grid-column: 1 / -1;
  grid-row: 5;
  max-width: 810px;
  padding-top: 30px;
  border-top: 1px solid var(--line-dark);
}

.pride {
  background:
    radial-gradient(circle at 8% 88%, rgba(229, 69, 56, 0.14), transparent 29rem),
    var(--charcoal);
}

.pride-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.55fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 86px;
}

.pride-head h2,
.fit h2,
.contact h2 {
  margin: 0;
  font-size: clamp(56px, 6.5vw, 100px);
  letter-spacing: -0.058em;
  line-height: 0.91;
}

.pride-lead {
  margin: 0 0 7px;
  color: #b6b2aa;
  font-size: 19px;
}

.pride-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(360px, 560px) minmax(0, 1fr);
  gap: clamp(58px, 8vw, 126px);
  align-items: center;
}

.portrait {
  margin: 0;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 1;
  padding: 12px 30px;
  background: #070707;
}

.portrait-frame::before {
  content: "";
  position: absolute;
  top: -16px;
  right: -16px;
  width: 55%;
  height: 55%;
  border-top: 2px solid var(--red);
  border-right: 2px solid var(--red);
}

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

.portrait figcaption {
  margin-top: 15px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.principles {
  border-bottom: 1px solid var(--line-light);
}

.principle {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  padding: 30px 0;
  border-top: 1px solid var(--line-light);
}

.principle > span {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.principle h3 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
}

.principle p {
  max-width: 560px;
  margin: 0;
  color: #a8a49d;
}

.fit {
  background: var(--paper-bright);
  color: var(--ink);
}

.fit::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 42%;
  width: 130px;
  height: 420px;
  background: var(--red);
  opacity: 0.92;
  transform: rotate(43deg);
}

.fit-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: clamp(58px, 9vw, 138px);
  align-items: end;
}

.fit-copy {
  padding-bottom: 5px;
}

.fit-copy p {
  margin: 0 0 25px;
  color: #4f4d49;
  font-size: 18px;
}

.fit-copy p:last-child {
  margin-bottom: 0;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.66fr);
  gap: clamp(60px, 9vw, 140px);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    var(--red);
  background-size: 72px 72px, auto;
  color: white;
}

.section-number-contact {
  color: rgba(255, 255, 255, 0.09);
}

.kicker-contact {
  color: #ffe0c0;
}

.contact-copy,
.contact-links {
  position: relative;
  z-index: 1;
}

.contact-copy > p:last-child {
  max-width: 700px;
  margin: 31px 0 0;
  color: #ffe7df;
  font-size: 19px;
}

.contact-links {
  display: grid;
  gap: 13px;
}

.contact-link {
  position: relative;
  display: block;
  padding: 23px 62px 23px 25px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.06);
  color: white;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  background: white;
  color: var(--ink);
  transform: translateX(4px);
}

.contact-link-dark {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: white;
}

.contact-link-dark:hover,
.contact-link-dark:focus-visible {
  background: #29292c;
  color: white;
}

.contact-link span {
  display: block;
  margin-bottom: 5px;
  color: #ffd1c9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-link:hover span,
.contact-link:focus-visible span {
  color: var(--red-dark);
}

.contact-link-dark span,
.contact-link-dark:hover span,
.contact-link-dark:focus-visible span {
  color: var(--gold);
}

.contact-link strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 500;
}

.contact-link b {
  position: absolute;
  top: 50%;
  right: 25px;
  font-size: 24px;
  font-weight: 500;
  transform: translateY(-50%);
}

.footer {
  display: grid;
  width: min(calc(100% - 56px), var(--max));
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  padding: 34px 0 42px;
  color: var(--muted-light);
  font-size: 12px;
}

.footer span:nth-child(2) {
  justify-self: end;
}

.footer a {
  justify-self: end;
  color: var(--gold);
  text-underline-offset: 5px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(0.2, 0.72, 0.22, 1);
}

.js .reveal[data-delay="1"] {
  transition-delay: 120ms;
}

.js .reveal[data-delay="2"] {
  transition-delay: 240ms;
}

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

@keyframes red-orbit {
  from {
    transform: translate3d(0, -18px, 0) scale(0.98);
  }

  to {
    transform: translate3d(-34px, 24px, 0) scale(1.035);
  }
}

@keyframes frame-float {
  from {
    transform: translate3d(0, -8px, 0) rotate(3deg);
  }

  to {
    transform: translate3d(-13px, 14px, 0) rotate(5deg);
  }
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

@media (max-width: 1120px) {
  .hero {
    min-height: 890px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 470px);
    gap: 44px;
  }

  h1 {
    font-size: clamp(56px, 7vw, 78px);
  }

  .pride-head,
  .fit-layout,
  .contact {
    grid-template-columns: 1fr 0.72fr;
    gap: 52px;
  }

  .pride-layout {
    grid-template-columns: minmax(330px, 440px) 1fr;
    gap: 58px;
  }
}

@media (max-width: 820px) {
  .masthead {
    width: calc(100% - 36px);
    min-height: 76px;
    grid-template-columns: auto 1fr;
  }

  .wordmark strong {
    display: none;
  }

  .nav {
    justify-self: end;
    gap: 18px;
  }

  .main-version {
    font-size: 0;
  }

  .main-version::before {
    content: "Основная";
    font-size: 12px;
  }

  .main-version span {
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    padding: 120px 20px 0;
  }

  .hero::before {
    top: 480px;
    right: -300px;
    width: 600px;
    height: 600px;
  }

  .hero::after {
    right: -32px;
    bottom: 228px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 68px;
  }

  h1 {
    font-size: clamp(49px, 14vw, 76px);
    line-height: 0.9;
  }

  .hero-lead {
    margin-top: 30px;
    font-size: 18px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    margin-top: 34px;
  }

  .hero-visual {
    width: min(100%, 540px);
    margin: 0 auto;
    padding-bottom: 0;
  }

  .pride-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(88%, 310px);
    margin: -42px 0 0 auto;
  }

  .stats {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 66px;
  }

  .stat {
    min-height: 102px;
    padding: 17px 13px;
    border-bottom: 1px solid var(--line-light);
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(3),
  .stat:nth-child(4) {
    border-bottom: 0;
  }

  .stat strong {
    font-size: 37px;
  }

  .section {
    padding: 96px 20px;
  }

  .section-number {
    top: 54px;
    right: 20px;
  }

  .section-head {
    grid-template-columns: 1fr;
    margin-bottom: 58px;
  }

  .section-head h2,
  .pride-head h2,
  .fit h2,
  .contact h2 {
    font-size: clamp(48px, 13vw, 74px);
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .story-intro,
  .journey,
  .family,
  .prado,
  .crisis,
  blockquote,
  .faith {
    grid-column: 1;
    grid-row: auto;
  }

  .story-intro {
    font-size: 29px;
  }

  .story-copy {
    font-size: 17px;
  }

  .family {
    width: min(100%, 580px);
  }

  .prado {
    margin-top: 0;
  }

  blockquote {
    padding-left: 23px;
    font-size: 29px;
  }

  .faith {
    padding-top: 26px;
  }

  .pride-head,
  .pride-layout,
  .fit-layout,
  .contact {
    grid-template-columns: 1fr;
  }

  .pride-head {
    gap: 34px;
    margin-bottom: 62px;
  }

  .pride-lead {
    max-width: 650px;
    font-size: 18px;
  }

  .pride-layout {
    gap: 62px;
  }

  .portrait {
    width: min(100%, 560px);
  }

  .principle {
    grid-template-columns: 54px 1fr;
    gap: 16px;
  }

  .fit::before {
    top: -120px;
    left: 72%;
    opacity: 0.12;
  }

  .fit-layout,
  .contact {
    gap: 46px;
  }

  .contact-copy > p:last-child {
    font-size: 18px;
  }

  .footer {
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer span:nth-child(2),
  .footer a {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .masthead {
    grid-template-columns: auto 1fr;
  }

  .nav a:first-child,
  .nav a:nth-child(2) {
    display: none;
  }

  .nav {
    justify-self: end;
    margin-right: 16px;
  }

  .main-version::before {
    content: "Главная";
  }

  .hero-name {
    margin-bottom: 17px;
  }

  .hero-visual {
    padding-right: 8px;
  }

  .hero-visual::before {
    right: -5px;
  }

  .pride-card {
    width: 92%;
    margin-top: -24px;
  }

  .stat {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .stat span {
    max-width: 120px;
  }

  .portrait-frame {
    padding-right: 16px;
    padding-left: 16px;
  }

  .contact-link {
    padding-left: 20px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
