@font-face {
  font-family: Onest;
  src: url("assets/onest-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Onest;
  src: url("assets/onest-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Onest;
  src: url("assets/onest-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --cream: #e3d3bb;
  --orange: #e54717;
  --bar: #362b2b;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #160d0c;
  color: var(--cream);
  cursor: pointer;
  font-family: Onest, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-link {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: block;
  cursor: pointer;
}

.topbar {
  position: relative;
  z-index: 5;
  display: grid;
  height: 61px;
  padding: 0 40px;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  background: var(--bar);
  border-radius: 0 0 9px 9px;
  box-shadow: 0 5px 11px rgba(0, 0, 0, .48);
}

.topbar__brand {
  display: flex;
  align-items: center;
}

.topbar__brand img {
  width: 39px;
  height: 41px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(90%) sepia(20%) saturate(398%) hue-rotate(345deg) brightness(101%) contrast(87%);
}

.topbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.create-link {
  display: flex;
  width: 30px;
  height: 34px;
  align-items: center;
  justify-content: center;
}

.create-link svg {
  width: 30px;
  height: 30px;
  fill: var(--cream);
}

.hero__cta:hover,
.hero__cta:focus-visible {
  filter: brightness(1.1);
  transform: translateY(-1px);
  outline: none;
}

.hero {
  position: relative;
  height: calc(100svh - 61px);
  min-height: 540px;
  overflow: hidden;
  background: #361607;
}

.hero__video {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  object-fit: cover;
  object-position: center;
  filter: blur(2px) saturate(.86) brightness(.78);
  /* v19 (08.11.2026): первый кадр видео как фон, пока само видео грузится после load (вместо пустого коричневого) */
  background: #361607 url("assets/hero-desktop-poster.webp") center / cover no-repeat;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 7, 7, .6) 0%, rgba(16, 9, 8, .3) 45%, rgba(16, 9, 8, .14) 62%, rgba(10, 7, 7, .24) 100%),
    rgba(75, 27, 7, .16);
}

/* Текст — под общей ссылкой страницы (клик по нему = переход без цели), кнопка — над ней (клик = цель). */
/* v15: блок на всю высоту экрана, отступ сверху — сжимаемая распорка 33,2 % (как было top: 33.2%).
   На низких окнах ПК (ноутбук 1536×700 с панелями браузера) распорка сжимается и кнопка Telegram не обрезается. */
.hero__content {
  position: absolute;
  z-index: 101;
  pointer-events: none;
  top: 0;
  bottom: 0;
  left: 4.16vw;
  display: flex;
  padding: 24px 0 112px; /* v19: было 32px, снизу строка-подвал .hero__foot; v21: 72 → 112, кнопки тем налезали на кнопку Telegram */
  flex-direction: column;
  align-items: flex-start;
}

.hero__content::before {
  content: "";
  flex: 0 1 33.2%;
}

.hero__content > * {
  flex-shrink: 0;
}

.hero__content h1 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(92px, 5.85vw, 112px);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: .95;
}

.hero__content p {
  margin: 37px 0 0;
  color: var(--orange);
  font-size: clamp(48px, 3vw, 58px);
  font-weight: 600;
  letter-spacing: -.8px;
  line-height: 1.04;
  /* v23 (10.11.2026, владелец: «текст одна подписка ... сливается с фоном немного»): тёмный ореол под оранжевым текстом */
  /* v24: «полегче сделай тень» */
  text-shadow: 0 1px 10px rgba(10, 5, 4, .4), 0 1px 2px rgba(10, 5, 4, .3);
}

.hero__content p .subtitle-desktop {
  white-space: nowrap;
}

.subtitle-mobile {
  display: none;
}

.hero__cta {
  display: flex;
  width: 327px;
  height: 61px;
  margin-top: clamp(72px, 11.5vh, 106px);
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 11px;
  background: var(--orange);
  color: #f8e6cc;
  font-size: 20px;
  font-weight: 700;
  pointer-events: auto;
  cursor: pointer;
  transition: filter .18s ease, transform .18s ease;
}

.hero__cta svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

/* Кнопка Telegram (с v13, 07.11.2026): ведёт в наш бот @syntx_ai_robot, контурная (вариант A, выбран владельцем). */
.hero__tg {
  display: flex;
  width: 327px;
  height: 61px;
  margin-top: 14px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px solid rgba(227, 211, 187, .55);
  border-radius: 11px;
  background: rgba(22, 13, 12, .35);
  color: var(--cream);
  font-size: 20px;
  font-weight: 600;
  pointer-events: auto;
  cursor: pointer;
  transition: filter .18s ease, transform .18s ease;
}

.hero__tg svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.hero__tg:hover,
.hero__tg:focus-visible {
  filter: brightness(1.15);
  transform: translateY(-1px);
  outline: none;
}

.video-control {
  position: absolute;
  z-index: 101;
  right: 74px;
  bottom: 72px;
  display: grid;
  width: 54px;
  height: 54px;
  padding: 0;
  place-items: center;
  border: 7px solid rgba(124, 49, 22, .8);
  border-radius: 50%;
  background: #2f2928;
  color: var(--cream);
  cursor: pointer;
}

.video-control span {
  display: block;
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
}

.metrika-pixel {
  position: absolute;
  left: -9999px;
}

/* v19 (10.11.2026): строка-подвал как footer.foot1 тематических страниц, внизу первого экрана */
.hero__foot {
  position: absolute;
  z-index: 101;
  left: 4.16vw;
  right: 160px;
  bottom: 14px;
  color: rgba(227, 211, 187, .5);
  font-size: 12px;
  line-height: 1.5;
}

.hero__foot p {
  margin: 0;
}

/* v20 (10.11.2026, владелец: «сделай красиво»): темы кнопками в одну строку, ниже мелко правовая строка */
.fnav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
  margin: 0 0 8px;
}

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

.fnav a {
  flex: 0 0 auto;
  /* v22 (10.11.2026, владелец: «таблетки незаметные сделай»): без фона, еле видная рамка, тусклый текст */
  padding: 4px 10px;
  border: 1px solid rgba(227, 211, 187, .08);
  border-radius: 999px;
  background: transparent;
  color: rgba(227, 211, 187, .5);
  font-size: 12px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
}

.fnav a:hover {
  color: rgba(240, 228, 210, .9);
  border-color: rgba(227, 211, 187, .25);
}

.flegal {
  font-size: 11px;
  line-height: 1.45;
  color: rgba(227, 211, 187, .45);
}

@media (max-width: 1100px) and (min-width: 769px) {
  .hero__content p .subtitle-desktop {
    white-space: normal;
  }
}

/* v15: очень низкие окна ПК — меньше воздуха между текстом и кнопками. */
@media (min-width: 769px) and (max-height: 720px) {
  .hero__content p {
    margin-top: 24px;
  }

  .hero__cta {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .topbar {
    height: 40px;
    padding: 0 16px;
    grid-template-columns: 1fr auto;
    border-radius: 0;
  }

  .topbar__brand img {
    width: 24px;
    height: auto;
  }

  .create-link {
    width: 32px;
    height: 32px;
  }

  .create-link svg {
    width: 24px;
    height: 24px;
  }

  /* v14: экран не меньше высоты окна, но растёт под текст — с кнопкой Telegram на низких экранах
     (телефон боком, 740×360) заголовок уезжал под шапку. Текст прижат к низу, как раньше. */
  .hero {
    display: flex;
    height: auto;
    min-height: calc(100dvh - 40px);
    flex-direction: column;
    justify-content: flex-end;
  }

  .hero__video {
    object-position: center;
    filter: blur(4px);
    background-image: url("assets/hero-mobile-poster.webp");
  }

  .hero__shade {
    background: rgba(0, 0, 0, .6);
  }

  .hero__content {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: flex;
    padding: 96px 32px 32px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__content::before {
    display: none;
  }

  .hero__foot {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 0 32px 16px;
    font-size: 11px;
  }

  .hero__foot .fnav {
    margin: 0 -32px 8px;
    padding: 2px 32px;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }

  .fnav a {
    font-size: 12px;
    padding: 4px 10px;
  }

  .flegal {
    font-size: 10.5px;
  }

  .hero__content h1 {
    font-size: 48px;
    letter-spacing: 0;
    line-height: 1;
  }

  .hero__content p {
    margin: 16px 0 24px;
    font-size: 32px;
    letter-spacing: 0;
    line-height: 1;
  }

  .subtitle-desktop {
    display: none;
  }

  .subtitle-mobile {
    display: inline;
  }

  .hero__cta {
    width: 100%;
    height: 48px;
    margin-top: 0;
    padding: 0 24px;
    border-radius: 8px;
    font-size: 16px;
  }

  .hero__tg {
    width: 100%;
    height: 48px;
    margin-top: 12px;
    border-radius: 8px;
    font-size: 16px;
  }

  .hero__tg svg {
    width: 20px;
    height: 20px;
  }

  .video-control {
    top: 32px;
    right: 32px;
    bottom: auto;
    width: 48px;
    height: 48px;
    border-width: 7px;
  }

  .video-control span {
    border-top-width: 6px;
    border-bottom-width: 6px;
    border-left-width: 9px;
  }
}

@media (max-width: 390px) {
  .hero__content {
    padding-inline: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video,
  .video-control {
    display: none;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

