/* Мурад Султанов: сайт-визитка. Чистый CSS, без сборки. */

@font-face {
  font-family: "Forum";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/forum-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Forum";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/forum-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root{
  --fade-left: linear-gradient(to right, rgba(0,0,0,0.000) 0.0%, rgba(0,0,0,0.002) 2.7%, rgba(0,0,0,0.007) 5.3%, rgba(0,0,0,0.010) 8.0%, rgba(0,0,0,0.020) 10.0%, rgba(0,0,0,0.040) 12.0%, rgba(0,0,0,0.050) 14.0%, rgba(0,0,0,0.087) 15.7%, rgba(0,0,0,0.163) 17.3%, rgba(0,0,0,0.200) 19.0%, rgba(0,0,0,0.275) 20.3%, rgba(0,0,0,0.425) 21.7%, rgba(0,0,0,0.500) 23.0%, rgba(0,0,0,0.570) 24.0%, rgba(0,0,0,0.710) 25.0%, rgba(0,0,0,0.780) 26.0%, rgba(0,0,0,0.818) 27.0%, rgba(0,0,0,0.893) 28.0%, rgba(0,0,0,0.930) 29.0%, rgba(0,0,0,0.945) 30.3%, rgba(0,0,0,0.975) 31.7%, rgba(0,0,0,0.990) 33.0%, rgba(0,0,0,0.992) 34.7%, rgba(0,0,0,0.997) 36.3%, rgba(0,0,0,1.000) 38.0%, rgba(0,0,0,1.000) 100%);
  --fade-bottom: linear-gradient(to bottom, rgba(0,0,0,1.000) 56.0%, rgba(0,0,0,0.997) 59.1%, rgba(0,0,0,0.977) 62.3%, rgba(0,0,0,0.931) 65.4%, rgba(0,0,0,0.855) 68.6%, rgba(0,0,0,0.754) 71.7%, rgba(0,0,0,0.632) 74.9%, rgba(0,0,0,0.500) 78.0%, rgba(0,0,0,0.368) 81.1%, rgba(0,0,0,0.246) 84.3%, rgba(0,0,0,0.145) 87.4%, rgba(0,0,0,0.069) 90.6%, rgba(0,0,0,0.023) 93.7%, rgba(0,0,0,0.003) 96.9%, rgba(0,0,0,0.000) 100.0%);
  --fade-bottom-m: linear-gradient(to bottom, rgba(0,0,0,1.000) 64.0%, rgba(0,0,0,0.997) 66.6%, rgba(0,0,0,0.977) 69.1%, rgba(0,0,0,0.931) 71.7%, rgba(0,0,0,0.855) 74.3%, rgba(0,0,0,0.754) 76.9%, rgba(0,0,0,0.632) 79.4%, rgba(0,0,0,0.500) 82.0%, rgba(0,0,0,0.368) 84.6%, rgba(0,0,0,0.246) 87.1%, rgba(0,0,0,0.145) 89.7%, rgba(0,0,0,0.069) 92.3%, rgba(0,0,0,0.023) 94.9%, rgba(0,0,0,0.003) 97.4%, rgba(0,0,0,0.000) 100.0%);
}

:root {
  --bg: #0f211b;
  --surface: #183228;
  --tint: #153027;
  --edge: #27473b;
  --text: #e9eee6;
  --text-2: #cbd6ca;
  --muted: #9bb0a3;
  --accent: #c4a263;
  --accent-hover: #d3b377;
  --accent-press: #b08d4f;
  --on-accent: #0f211b;

  --r: 6px;
  --pad: clamp(20px, 5vw, 120px);
  --c1: clamp(220px, 21vw, 320px);
  --serif: "Forum", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  color-scheme: dark;
  interpolate-size: allow-keywords;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg) url("grain.png") repeat;
  background-size: 128px 128px;
  color: var(--text);
  font: 17px/1.6 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.wrap {
  width: 100%;
  max-width: 1400px;
  padding-inline: var(--pad);
}

.ico {
  width: 24px;
  height: 24px;
  flex: none;
  fill: currentColor;
}

.arr {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  transition: transform 0.25s ease;
}

/* ---------- кнопка ---------- */

.btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 60px;
  padding: 0 28px;
  border-radius: var(--r);
  background: var(--accent);
  color: var(--on-accent);
  font: 600 18px/1.2 var(--sans);
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.btn:hover {
  background: var(--accent-hover);
}
.btn:active {
  background: var(--accent-press);
}
.btn:hover .arr,
.btn:focus-visible .arr {
  transform: translate(3px, -3px);
}
.btn:focus-visible {
  outline-color: var(--text);
}

.link {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: var(--edge);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.link:hover {
  color: var(--text);
  text-decoration-color: var(--accent);
}
.link .ico--tg {
  color: var(--muted);
  transition: color 0.2s ease;
}
.link:hover .ico--tg {
  color: var(--text-2);
}
.link:hover .arr {
  transform: translate(2px, -2px);
}

/* ---------- первый экран ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: clip;
}

.hero__media {
  position: relative;
  z-index: -1;
  flex: 1 1 0;
  min-height: 300px;
  max-height: 124vw;
  -webkit-mask-image: var(--fade-bottom-m);
  mask-image: var(--fade-bottom-m);
  will-change: transform;
}
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

.hero__body {
  position: relative;
  flex: none;
  margin-top: calc(-1 * clamp(36px, 11vw, 84px));
  padding: 0 var(--pad) clamp(20px, 3.5svh, 40px);
}

.hero h1 {
  font: 400 clamp(52px, 17vw, 124px) / 0.95 var(--serif);
  letter-spacing: -0.01em;
  color: var(--text);
}
.hero h1 span {
  display: block;
}

.hero__lead {
  max-width: 34em;
  margin-top: clamp(14px, 2.4svh, 24px);
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.5;
  text-wrap: pretty;
}

.hero__sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

.hero__cta {
  margin-top: clamp(18px, 3svh, 32px);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "btn"
    "note"
    "alt";
  align-items: center;
  justify-items: start;
}
.hero__cta .btn {
  grid-area: btn;
  width: 100%;
}
.hero__cta .link {
  grid-area: alt;
}
.hero__note {
  grid-area: note;
  margin-top: 10px;
  line-height: 1.4;
  color: var(--muted);
  font-size: 16px;
}

@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .hero {
    --left: var(--pad);
    --name: clamp(56px, min(9.2vw, 17.5svh), 200px);
    justify-content: flex-end;
  }
  .hero {
    /* левый край лица (25% ширины фото) не должен заходить под имя */
    --fl: calc(var(--left) + var(--name) * 3.95 + 2vw);
    --shift: max(0px, calc(var(--fl) - 100vw + 100svh * 0.848 * 0.747));
  }
  .hero__media {
    position: absolute;
    top: 0;
    bottom: 0;
    right: calc(-1 * var(--shift));
    left: auto;
    flex: none;
    min-height: 0;
    max-height: none;
    height: 100%;
    aspect-ratio: 1460 / 1722;
    -webkit-mask-image: var(--fade-bottom);
    mask-image: var(--fade-bottom);
  }
  .hero__media img {
    object-position: 50% 0;
    -webkit-mask-image: var(--fade-left);
    mask-image: var(--fade-left);
  }
  .hero__body {
    margin-top: 0;
    padding: 0 var(--left) clamp(40px, 9svh, 110px);
    max-width: none;
  }
  .hero h1 {
    font-size: var(--name);
    line-height: 0.92;
  }
  .hero__lead {
    max-width: 27em;
    font-size: clamp(18px, 1.45vw, 23px);
  }
  .hero__cta {
    grid-template-columns: auto auto;
    grid-template-areas:
      "btn alt"
      "note note";
    column-gap: 28px;
    justify-content: start;
    justify-items: start;
    align-items: center;
  }
  .hero__cta .btn {
    grid-area: btn;
    width: auto;
    min-height: 64px;
    padding: 0 34px;
  }
  .hero__cta .link {
    grid-area: alt;
  }
  .hero__note {
    margin-top: 12px;
  }
}

/* ---------- секции ---------- */

.section {
  padding-block: clamp(80px, 12vw, 180px);
}
.section--tint {
  background: linear-gradient(to bottom, transparent 0, var(--tint) 12%, var(--tint) 88%, transparent 100%);
}

h2 {
  font: 400 clamp(36px, 6vw, 72px) / 1.04 var(--serif);
  letter-spacing: -0.01em;
  text-wrap: balance;
  max-width: 16em;
}
h2 em {
  font-style: normal;
  color: var(--accent);
}

.lead {
  max-width: 62ch;
  margin-top: 28px;
  color: var(--text-2);
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.6;
  text-wrap: pretty;
}

/* Блок 2 */

.ba {
  margin-top: clamp(40px, 6vw, 88px);
  display: grid;
  gap: 18px;
  align-items: start;
}
.ba p {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  max-width: 24em;
}
.ba strong {
  font-weight: 600;
}
.ba__before {
  color: var(--muted);
}
.ba__after {
  color: var(--text);
}
.ba__after strong {
  color: var(--accent);
}
.ba .arr {
  width: 36px;
  height: 36px;
  color: var(--accent);
  transform: rotate(90deg);
}
@media (min-width: 760px) {
  .ba {
    grid-template-columns: 1fr auto 1fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
    max-width: 1100px;
  }
  .ba .arr {
    transform: none;
    margin-top: 4px;
  }
}

/* Блок 3 */

.steps {
  margin-top: clamp(48px, 7vw, 96px);
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  counter-reset: step;
}
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: clamp(18px, 3vw, 44px);
  max-width: 46rem;
}
.steps li::before {
  content: counter(step);
  counter-increment: step;
  font: 400 clamp(64px, 11vw, 150px) / 0.8 var(--serif);
  color: var(--accent);
  opacity: 0.9;
  min-width: 0.62em;
}
.steps p {
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.5;
  max-width: 30em;
  text-wrap: pretty;
}
@media (min-width: 900px) {
  .steps li {
    grid-template-columns: var(--c1) minmax(0, 1fr);
    column-gap: 0;
    align-items: center;
    max-width: none;
  }
  .steps li::before {
    font-size: clamp(88px, 9vw, 150px);
  }
  .steps p {
    max-width: 52ch;
  }
}

.timing {
  margin-top: clamp(48px, 7vw, 88px);
  max-width: 52ch;
  font-size: clamp(18px, 1.5vw, 21px);
  color: var(--text);
}
.after-help {
  margin-top: 28px;
  max-width: 62ch;
  color: var(--text-2);
  font-size: clamp(17px, 1.4vw, 20px);
}
.fineprint {
  margin-top: 28px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 16px;
}

/* Что дальше + Чем могу помочь */

.island {
  margin-top: clamp(48px, 7vw, 96px);
  padding: clamp(24px, 4.5vw, 72px);
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--r);
}
.island__title {
  font: 400 clamp(32px, 4.4vw, 60px) / 1.05 var(--serif);
  letter-spacing: -0.01em;
  color: var(--text);
}
.help {
  margin-top: clamp(28px, 4vw, 56px);
  display: grid;
  gap: clamp(26px, 3.2vw, 40px);
}
.help > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "p p"
    "a h";
  column-gap: 12px;
  row-gap: 6px;
  align-items: baseline;
}
.help dt {
  grid-area: p;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}
.help .arr {
  grid-area: a;
  align-self: center;
  width: 24px;
  height: 24px;
  color: var(--accent);
}
.help dd {
  grid-area: h;
  font: 400 clamp(26px, 2.8vw, 38px) / 1.15 var(--serif);
  color: var(--text);
}
@media (min-width: 900px) {
  .help > div {
    grid-template-columns: minmax(0, 5fr) auto minmax(0, 6fr);
    grid-template-areas: "p a h";
    column-gap: clamp(24px, 4vw, 64px);
    align-items: center;
  }
  .help dt {
    font-size: clamp(17px, 1.4vw, 20px);
    max-width: 24em;
  }
  .help .arr {
    width: 28px;
    height: 28px;
  }
}

/* Блок 4 */

.path {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid;
  gap: clamp(32px, 4.4vw, 56px);
}
.path li {
  max-width: 34em;
}
.path h3 {
  font: 400 clamp(28px, 3.4vw, 46px) / 1.1 var(--serif);
}
.path p {
  margin-top: 8px;
  color: var(--muted);
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.5;
  text-wrap: pretty;
}
@media (min-width: 900px) {
  .path li {
    display: grid;
    grid-template-columns: var(--c1) minmax(0, 1fr);
    column-gap: 0;
    align-items: baseline;
    max-width: none;
  }
  .path h3 {
    font-size: clamp(26px, 2.4vw, 36px);
    padding-right: 32px;
  }
  .path p {
    margin-top: 0;
    max-width: 52ch;
  }
}

/* подпись над этапами */
.path__cap {
  margin-top: clamp(40px, 5vw, 64px);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}
.path__cap + .path {
  margin-top: 20px;
}

/* Блок 5 */

.values {
  margin-top: clamp(44px, 6vw, 80px);
  display: grid;
  gap: clamp(36px, 4vw, 56px);
}
.values h3 {
  font: 400 clamp(40px, 5.2vw, 68px) / 1 var(--serif);
  color: var(--text);
}
.values p {
  margin-top: 12px;
  max-width: 20em;
  color: var(--muted);
  font-size: clamp(17px, 1.3vw, 19px);
}
@media (min-width: 900px) {
  .values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(36px, 6vw, 96px);
    max-width: 1200px;
  }
  .values h3 {
    font-size: clamp(32px, 3.4vw, 52px);
  }
}

/* FAQ */

.faq {
  margin-top: clamp(40px, 5vw, 64px);
  max-width: 52rem;
}
.faq details {
  border-bottom: 1px solid var(--edge);
}
.faq details:first-child {
  border-top: 1px solid var(--edge);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding-block: 14px;
  cursor: pointer;
  list-style: none;
  font: 400 clamp(22px, 2.2vw, 28px) / 1.2 var(--serif);
  transition: color 0.2s ease;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--accent-hover);
}
.faq summary .chev {
  flex: none;
  color: var(--accent);
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}
.faq details[open] summary .chev {
  transform: rotate(180deg);
}
.faq details p {
  padding: 2px 0 28px;
  max-width: 40em;
  color: var(--text-2);
  text-wrap: pretty;
}
.faq details::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 0.35s ease, content-visibility 0.35s allow-discrete;
}
.faq details[open]::details-content {
  block-size: auto;
}

/* Контакты */

.contact {
  padding-bottom: clamp(48px, 7vw, 90px);
}
.contact .btn {
  margin-top: clamp(32px, 5vw, 56px);
  min-height: 68px;
  padding: 0 clamp(16px, 5vw, 38px);
  white-space: nowrap;
  font-size: 20px;
  width: 100%;
}
@media (min-width: 640px) {
  .contact .btn {
    width: auto;
  }
}
.contact__alt {
  margin-top: 8px;
}
.social {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  gap: 8px;
}
.social a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  width: fit-content;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s ease;
}
.social a:hover {
  color: var(--text);
}
.social__txt {
  display: grid;
  gap: 2px;
  line-height: 1.3;
}
.social__act {
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--edge);
  text-underline-offset: 5px;
  transition: text-decoration-color 0.2s ease;
}
.social a:hover .social__act {
  text-decoration-color: var(--accent);
}
.social__handle {
  color: var(--muted);
  font-size: 15px;
}
.social .ico {
  color: var(--accent);
}
@media (min-width: 900px) {
  .social {
    grid-template-columns: repeat(2, max-content);
    column-gap: clamp(48px, 8vw, 120px);
  }
}

/* ---------- липкая кнопка на телефоне ---------- */

.sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: none;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--edge);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
}
.sticky.is-on {
  transform: none;
  visibility: visible;
  transition: transform 0.3s ease;
}
.sticky .btn {
  width: 100%;
  min-height: 52px;
}
.js .sticky {
  display: block;
}
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .js .sticky {
    display: none;
  }
}

/* ---------- движение ---------- */

.js [data-reveal] {
  transform: translateY(22px);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js [data-reveal].in {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .js [data-reveal] {
    transform: none;
  }
  .hero__media {
    will-change: auto;
  }
}

/* ---------- переносы строк ---------- */

h1,
h2,
h3,
.faq summary,
.help dt,
.help dd,
.values p,
.ba p,
.hero__sub,
.hero__note,
.timing,
.after-help,
.fineprint,
.path__cap,
.hero__lead,
.faq details p {
  text-wrap: balance;
}
.lead,
.steps p,
.path p {
  text-wrap: pretty;
}

/* ---------- ссылка на политику и страница политики ---------- */

.legal {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: underline;
  text-decoration-color: var(--edge);
  text-underline-offset: 5px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.legal:hover {
  color: var(--text-2);
  text-decoration-color: var(--accent);
}

.doc {
  padding-block: clamp(24px, 4vw, 56px) clamp(80px, 12vw, 160px);
}
.doc__home {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--text-2);
  font: 400 clamp(20px, 2vw, 26px) / 1.2 var(--serif);
  text-decoration: none;
  transition: color 0.2s ease;
}
.doc__home:hover {
  color: var(--accent-hover);
}
.doc h1 {
  margin-top: clamp(40px, 7vw, 96px);
  font: 400 clamp(32px, 6vw, 72px) / 1.04 var(--serif);
  letter-spacing: -0.01em;
  max-width: 14em;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.doc__date {
  margin-top: 20px;
  color: var(--muted);
  font-size: 16px;
}
.doc section {
  margin-top: clamp(36px, 5vw, 64px);
}
.doc h2 {
  font: 400 clamp(24px, 2.6vw, 34px) / 1.15 var(--serif);
  letter-spacing: 0;
  max-width: 22em;
  text-wrap: balance;
}
.doc section p {
  margin-top: 14px;
  max-width: 62ch;
  color: var(--text-2);
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.6;
  text-wrap: pretty;
}
