/* Первый экран главной по обложке от 05.11.2026: тёмный холст, жёлтый акцент,
   имя крупной подложкой, фигура владельца справа. Отдельный файл, чтобы не
   трогать landing.css — его стили держат остальные страницы сайта. */

:root { --hx-acc: #FFD400; --hx-line: rgba(255,255,255,.09); }

/* ── шапка ─────────────────────────────────────────────────────────────── */
.hx-top {
  position: sticky; top: 0; z-index: 60;
  background: rgba(14,14,16,.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hx-line);
}
.hx-top .hx-wrap {
  max-width: 1240px; margin: 0 auto; padding: 0 20px;
  height: 62px; display: flex; align-items: center; gap: 24px;
}
.hx-logo {
  color: #fff; text-decoration: none; font-weight: 800; font-size: 19px;
  letter-spacing: .04em; display: flex; align-items: center; gap: 8px;
}
.hx-logo i { color: var(--hx-acc); font-style: normal; font-weight: 800; }
.hx-nav { margin-left: auto; display: flex; gap: 26px; align-items: center; }
.hx-nav a {
  color: #c9cace; text-decoration: none; font-size: 14.5px; font-weight: 500;
  white-space: nowrap;
}
.hx-nav a:hover { color: #fff; }
.hx-top .hx-say {
  background: var(--hx-acc); color: #17171a; font-weight: 700; font-size: 14px;
  padding: 10px 20px; border-radius: 8px; text-decoration: none; white-space: nowrap;
}
.hx-top .hx-say:hover { filter: brightness(1.08); }

/* landing.css даёт всем section padding 60px сверху и снизу — для блоков
   обложки это лишний воздух, гасим его здесь */
.hx-hero, .hx-cards, .hx-ribbon { padding: 0; border-top: 0; }

/* ── первый экран ──────────────────────────────────────────────────────── */
.hx-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 78% 40%, #1b1b1f 0%, #0e0e10 62%, #0b0b0c 100%);
  border-bottom: 1px solid var(--hx-line);
}
.hx-hero .hx-wrap {
  max-width: 1240px; margin: 0 auto; padding: 0 20px;
  position: relative; display: grid; grid-template-columns: 1.06fr .94fr;
  align-items: end; min-height: 496px;
}
/* имя подложкой: тёмный металл, читается, но не спорит с заголовком */
.hx-word {
  position: absolute; left: 10px; top: 6px; z-index: 0;
  font-size: clamp(64px, 13.2vw, 182px); font-weight: 900; letter-spacing: -.018em;
  line-height: .9; white-space: nowrap; pointer-events: none; user-select: none;
  background: linear-gradient(180deg, #4a4c54 0%, #26272c 46%, #141416 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* жёлтые лучи за фигурой */
.hx-rays {
  position: absolute; right: -4%; top: 0; bottom: 0; width: 58%; z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(118deg, transparent 46%, rgba(255,212,0,.90) 48.4%, rgba(255,212,0,.08) 50.6%, transparent 52%),
    linear-gradient(118deg, transparent 62%, rgba(255,212,0,.42) 63.6%, transparent 66%),
    linear-gradient(118deg, transparent 74%, rgba(255,212,0,.18) 75.4%, transparent 78%);
  filter: blur(.3px);
}
.hx-copy { position: relative; z-index: 2; padding: 104px 0 46px; }
.hx-eyebrow {
  margin: 0 0 16px; color: #8d8f96; font-size: 12.5px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
}
.hx-eyebrow b { color: var(--hx-acc); font-weight: 700; }
.hx-hero h1 {
  margin: 0 0 26px; color: #fff; font-weight: 800; letter-spacing: -.025em;
  font-size: clamp(30px, 3.9vw, 47px); line-height: 1.1; max-width: 15ch;
}
.hx-hero h1 span { color: var(--hx-acc); }
.hx-name {
  border-left: 3px solid var(--hx-acc); padding-left: 14px; margin: 0 0 26px;
}
.hx-name b { display: block; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .03em; }
.hx-name span { display: block; margin-top: 5px; color: #9b9da4; font-size: 14px; }
.hx-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hx-btn {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  padding: 13px 24px; border-radius: 9px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; transition: transform .12s ease, filter .12s ease;
}
.hx-btn:active { transform: translateY(1px); }
.hx-btn-acc { background: var(--hx-acc); color: #17171a; }
.hx-btn-acc:hover { filter: brightness(1.08); }
.hx-btn-ghost { border-color: rgba(255,255,255,.28); color: #fff; }
.hx-btn-ghost:hover { border-color: var(--hx-acc); color: var(--hx-acc); }

.hx-photo { position: relative; z-index: 1; align-self: end; text-align: right; }
.hx-photo img {
  display: block; margin-left: auto; width: auto; height: 100%;
  max-height: 560px; max-width: 100%; object-fit: contain; object-position: bottom right;
}

/* ── три направления ───────────────────────────────────────────────────── */
.hx-cards {
  background: #0d0d0f; border-bottom: 1px solid var(--hx-line);
}
.hx-cards .hx-wrap {
  max-width: 1240px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.hx-card {
  position: relative; overflow: hidden; padding: 26px 26px 24px;
  border-right: 1px solid var(--hx-line); min-height: 196px;
  display: flex; flex-direction: column;
}
.hx-card:last-child { border-right: 0; }
.hx-card h2 {
  margin: 0 0 10px; font-size: 17px; font-weight: 800; color: #fff;
  letter-spacing: .02em; text-transform: uppercase;
}
.hx-card h2 i { color: var(--hx-acc); font-style: normal; }
.hx-card h2 u { color: #6f7178; text-decoration: none; font-weight: 600; }
.hx-card p { margin: 0 0 14px; color: #9b9da4; font-size: 14px; line-height: 1.5; max-width: 28ch; }
/* ссылки идут сразу под текстом: margin-top:auto отбрасывал их к низу карточки
   и между словами и ссылками зияла пустота */
.hx-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.hx-links a {
  color: var(--hx-acc); text-decoration: none; font-size: 14.5px; font-weight: 600;
  border-bottom: 1px solid rgba(255,212,0,.45); padding-bottom: 3px;
}
.hx-links a:hover { border-bottom-color: var(--hx-acc); }
/* 3D-объекты с обложки: чёрный фон гасим режимом screen */
/* height обязателен: без него браузер берёт height из атрибута картинки
   и растягивает объект на всю карточку */
.hx-obj {
  position: absolute; right: -6px; bottom: 2px; width: 150px; height: auto;
  opacity: .95; mix-blend-mode: screen; pointer-events: none;
}
/* плитка витрины стоит углом, как объекты в соседних колонках, —
   в поток её ставить нельзя: она растягивала весь ряд на лишние 150px */
.hx-card-3 .hx-tile {
  display: block; margin: 0; border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  position: absolute; right: 14px; bottom: 14px; width: 190px;
}
.hx-card-3 .hx-tile img { display: block; width: 100%; height: auto; }
.hx-card-3 .hx-tile::after {
  content: "Открыть"; position: absolute; inset: auto 6px 6px auto;
  background: rgba(10,10,12,.78); color: #fff; font-size: 11px; font-weight: 600;
  padding: 4px 8px; border-radius: 5px;
}
.hx-card-3 .hx-tile:hover { border-color: var(--hx-acc); }

/* ── полоса мини-курса ─────────────────────────────────────────────────── */
.hx-ribbon { background: #0b0b0c; border-bottom: 1px solid var(--hx-line); }
.hx-ribbon .hx-wrap {
  max-width: 1240px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 16px;
}
.hx-ribbon .hx-sl { color: var(--hx-acc); font-weight: 800; }
.hx-ribbon p { margin: 0; color: #e6e7ea; font-size: 15px; font-weight: 600; }
.hx-ribbon a {
  margin-left: auto; color: var(--hx-acc); text-decoration: none; font-weight: 700;
  font-size: 14.5px; border-bottom: 1px solid rgba(255,212,0,.45); padding-bottom: 3px;
  white-space: nowrap;
}

/* ── телефон и планшет ─────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .hx-nav a.hx-opt { display: none; }
}
/* на телефоне в шапке остаются только «Витрина» и жёлтая кнопка —
   иначе ряд ссылок выдавливает «Связаться» за край экрана */
@media (max-width: 760px) {
  .hx-nav a { display: none; }
  .hx-nav a[href="/vse.html"], .hx-nav a.hx-say { display: inline-flex; }
}
@media (max-width: 860px) {
  .hx-hero .hx-wrap { grid-template-columns: 1fr; min-height: 0; }
  .hx-copy { padding: 92px 0 22px; }
  .hx-hero h1 { max-width: none; }
  .hx-word { font-size: clamp(44px, 15vw, 96px); top: 10px; left: 4px; opacity: .85; }
  .hx-rays { width: 100%; right: -20%; opacity: .75; }
  .hx-photo img { max-height: 380px; margin: 0 auto; }
  .hx-cards .hx-wrap { grid-template-columns: 1fr; }
  .hx-card { border-right: 0; border-bottom: 1px solid var(--hx-line); min-height: 0; padding: 22px 20px 20px; }
  .hx-card:last-child { border-bottom: 0; }
  .hx-card p { max-width: 42ch; }
  .hx-obj { width: 124px; right: -6px; bottom: 4px; }
  /* на телефоне колонка узкая — плитку возвращаем в поток, под ссылки */
  .hx-card-3 .hx-tile { position: static; width: 100%; max-width: 420px; margin: 14px 0 0; }
  .hx-ribbon .hx-wrap { flex-wrap: wrap; }
  .hx-ribbon a { margin-left: 0; }
}
@media (max-width: 560px) {
  .hx-top .hx-wrap { gap: 12px; }
  .hx-nav { gap: 16px; }
  .hx-nav a { font-size: 13.5px; }
  .hx-top .hx-say { padding: 9px 14px; font-size: 13.5px; }
  .hx-btn { padding: 12px 18px; font-size: 14.5px; }
}
