/* ============================================================
   Новая главная страница Moviestart (предпросмотр, /new)
   Изолированные стили, все классы с префиксом .hn-
   Шрифт макета: Onest (Google Fonts). NT Somic заменён на Onest.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;600;700;800&display=swap');

.hn-body {
  --hn-bg: #11161e;
  --hn-panel: #384355;
  --hn-panel-2: #2e3644;
  --hn-cyan: #00d9ff;
  --hn-gold-a: #ffc700;
  --hn-gold-b: #ff9900;
  --hn-text: #ffffff;
  --hn-muted: rgba(255, 255, 255, 0.6);
  --hn-radius: 16px;
  --hn-gold-grad: linear-gradient(95deg, #ffc700 3%, #ffba00 28%, #ffa600 67%, #ff9900 92%);

  margin: 0;
  padding: 0;
  background: #1D232D;
  color: var(--hn-text);
  font-family: 'Onest', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: clamp(14px, 10.667px + 0.333vw, 16px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.hn-body * { box-sizing: border-box; }
.hn-body img { max-width: 100%; display: block; }
.hn-body a { color: inherit; text-decoration: none; }

.hn-container {
  width: 1280px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
}

.hn-section { margin: clamp(51px, 36px + 1.5vw, 60px) 0; position: relative; background: #1D232D; }

.hn-eyebrow {
  font-size: clamp(26px, 22.667px + 0.333vw, 28px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: normal;
  margin: 0 0 clamp(34px, 24px + 1vw, 40px);
}

/* ---------- Кнопки ---------- */
.hn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease, background-image .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  text-align: center;
  white-space: nowrap;
  border: 1px solid transparent;
}

.hn-btn.hn-btn-gold {
  background: var(--hn-gold-grad);
  color: #1d232d;
}
.hn-btn.hn-btn-gold:hover {
  background: transparent;
  background-image: none;
  color: #fff;
  border-color: var(--hn-gold-a);
}

.hn-btn-outline {
  background: transparent;
  border-color: var(--hn-gold-a);
  color: #fff;
}
.hn-btn-outline:hover {
  background-image: var(--hn-gold-grad);
  border-color: transparent;
  color: #1d232d;
}

.hn-btn-cta {
  background-image: linear-gradient(102.78deg, rgba(255, 199, 0, 0.4) 3%, rgba(255, 186, 0, 0.4) 28%, rgba(255, 166, 0, 0.4) 67%, rgba(255, 153, 0, 0.4) 92%);
  border-color: var(--hn-gold-a);
  color: #fff;
  padding: clamp(15px, 10px + 0.5vw, 18px) clamp(26px, 19.333px + 0.667vw, 30px);
  font-size: clamp(17px, 12px + 0.5vw, 20px);
  font-weight: 600;
}
.hn-btn-cta:hover {
  background-image: var(--hn-gold-grad);
  border-color: transparent;
  color: #1d232d;
}

/* ============================================================
   Шапка
   ============================================================ */
.hn-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: clamp(54px, 37.333px + 1.667vw, 64px);
  background: rgba(17, 22, 30, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.hn-header-inner {
  width: 1280px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(20px, 13.333px + 0.667vw, 24px);
}
.hn-logo img { width: clamp(141px, 99.333px + 4.167vw, 166px); height: clamp(32px, 22px + 1vw, 38px); }
.hn-nav {
  display: flex;
  gap: clamp(43px, 29.667px + 1.333vw, 51px);
  margin: 0 auto;
  height: 100%;
}
.hn-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  font-size: clamp(14px, 10.667px + 0.333vw, 16px);
  color: #fff;
  transition: color .15s ease;
}
.hn-nav a:hover { color: var(--hn-cyan); }
.hn-nav a.is-active { color: #fff; }
/* Навигация с пунктами авторизованного пользователя — компактнее */
.hn-nav--auth { gap: clamp(20px, 12px + 1vw, 32px); }
/* Выпадающий пункт «Мои проекты» */
.hn-nav-dd { position: relative; display: flex; align-items: center; height: 100%; }
.hn-nav-dd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: clamp(14px, 10.667px + 0.333vw, 16px);
  color: #fff;
  transition: color .15s ease;
}
.hn-nav-dd-toggle:hover { color: var(--hn-cyan); }
.hn-nav-dd-toggle svg { flex: 0 0 auto; color: rgba(255, 255, 255, 0.6); transition: transform .2s ease; }
.hn-nav-dd:hover .hn-nav-dd-toggle svg { transform: rotate(180deg); }
.hn-nav-dd-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 300px;
  display: none;
  flex-direction: column;
  padding: 8px;
  background: rgba(20, 25, 33, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  z-index: 110;
}
.hn-nav-dd:hover .hn-nav-dd-menu { display: flex; }
.hn-nav-dd-menu a {
  height: auto;
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  transition: background-color .15s ease;
}
.hn-nav-dd-menu a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.hn-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--hn-gold-grad);
}
.hn-header-actions { display: flex; gap: 12px; }
.hn-header-actions .hn-btn { padding: 10px clamp(17px, 12px + 0.5vw, 20px); font-size: clamp(14px, 10.667px + 0.333vw, 16px); font-weight: 500; line-height: 1.25; }

/* Аккаунт залогиненного пользователя */
.hn-account { position: relative; }
.hn-account-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px 5px 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  cursor: pointer;
  color: #fff;
  transition: background-color .15s ease, border-color .15s ease;
}
.hn-account-toggle:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }
.hn-account-ava {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
}
.hn-account-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hn-account-info { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; min-width: 0; }
.hn-account-name { font-size: 14px; font-weight: 600; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.hn-account-role { font-size: 12px; font-weight: 300; color: rgba(255, 255, 255, 0.6); white-space: nowrap; }
.hn-account-chev { flex: 0 0 auto; color: rgba(255, 255, 255, 0.6); transition: transform .2s ease; }
.hn-account.is-open .hn-account-chev { transform: rotate(180deg); }
.hn-account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  display: none;
  flex-direction: column;
  padding: 8px;
  background: rgba(20, 25, 33, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  z-index: 110;
}
.hn-account.is-open .hn-account-menu { display: flex; }
.hn-account-item {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  transition: background-color .15s ease;
}
.hn-account-item:hover { background: rgba(255, 255, 255, 0.08); }
.hn-account-logout { color: var(--hn-gold-a); }

/* На десктопе обёртка меню «прозрачна» — nav и кнопки лежат в строке шапки */
.hn-menu { display: contents; }
.hn-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 9px 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.hn-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.hn-header.is-open .hn-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hn-header.is-open .hn-burger span:nth-child(2) { opacity: 0; }
.hn-header.is-open .hn-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hn-hero {
  position: relative;
  background: linear-gradient(135deg, #222b3b 0%, #161d28 55%, #11161e 100%);
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, #FEA200 0%, #00E5FC 100%) 1;
  overflow: hidden;
}
.hn-hero::before {
  content: '';
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: -13%;
  top: -40%;
  width: 65vw;
  height: 69vw;
  background: url('/images/home-new/ellipse-19.png') center / contain no-repeat;
  animation: hn-hero-glow-a 10s linear infinite;
}
.hn-hero::after {
  content: '';
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: 58%;
  top: 28%;
  width: 58vw;
  height: 62vw;
  background: url('/images/home-new/ellipse-glow.png') center / contain no-repeat;
  animation: hn-hero-glow-b 10s linear infinite;
}
@keyframes hn-hero-glow-a {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate(80px, 20px) scale(1.3) rotate(180deg); }
  100% { transform: translate(0, 0) scale(1) rotate(360deg); }
}
@keyframes hn-hero-glow-b {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  40%  { transform: translate(-253px, -172px) scale(1.3) rotate(180deg); }
  100% { transform: translate(0, 0) scale(1) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hn-hero::before, .hn-hero::after { animation: none; }
}
.hn-hero-inner {
  width: 1280px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: clamp(558px, 394.667px + 16.333vw, 656px);
}
.hn-hero-text { max-width: clamp(544px, 384px + 16vw, 640px); position: relative; z-index: 2; }
.hn-hero h1 {
  font-size: clamp(44px, 27.333px + 1.667vw, 54px);
  line-height: 1.166;
  font-weight: 700;
  margin: 0 0 clamp(24px, 17.333px + 0.667vw, 28px);
  max-width: clamp(542px, 382px + 16vw, 638px);
}
.hn-hero p {
  font-size: clamp(19px, 12.333px + 0.667vw, 23px);
  font-weight: 400;
  line-height: 1.3;
  color: #fff;
  max-width: clamp(489px, 345.667px + 14.333vw, 575px);
  margin: 0 0 clamp(31px, 22.667px + 0.833vw, 36px);
}
.hn-hero-art {
  position: absolute;
  top: 50%;
  right: -50px;
  transform: translateY(-50%);
  width: 707px;
  max-width: 48%;
  z-index: 1;
}
.hn-hero-art img { width: 100%; }
.hn-hero .hn-btn-cta {
  padding: 12px clamp(21px, 14.333px + 0.667vw, 25px);
  font-size: clamp(15px, 10px + 0.5vw, 18px);
  background: transparent;
  background-image: none;
}
.hn-hero .hn-btn-cta:hover {
  background-image: var(--hn-gold-grad);
  border-color: transparent;
  color: #1d232d;
}

/* ============================================================
   Активные конкурсы
   ============================================================ */
.hn-lead {
  font-size: clamp(26px, 16px + 1vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 clamp(31px, 22.667px + 0.833vw, 36px);
  max-width: clamp(887px, 627px + 26vw, 1043px);
}
.hn-comp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(26px, 19.333px + 0.667vw, 30px);
}
.hn-comp-card {
  position: relative;
  height: clamp(231px, 162.667px + 6.833vw, 272px);
  border-radius: var(--hn-radius);
  overflow: hidden;
  background: var(--hn-panel);
  display: flex;
  align-items: flex-end;
  transition: transform .3s ease, box-shadow .3s ease;
}
.hn-comp-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.hn-comp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}
.hn-comp-card:hover img { transform: scale(1.06); }
.hn-comp-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 22, 30, 0) 35%, rgba(17, 22, 30, 0.9) 100%);
}
.hn-comp-card span {
  position: relative;
  z-index: 1;
  padding: clamp(17px, 12px + 0.5vw, 20px);
  font-size: clamp(15px, 10px + 0.5vw, 18px);
  font-weight: 600;
  line-height: 1.3;
}
.hn-comp-empty {
  grid-column: 1 / -1;
  color: var(--hn-muted);
  padding: clamp(34px, 24px + 1vw, 40px) 0;
}
.hn-comp-all {
  text-align: center;
  margin-top: clamp(31px, 22.667px + 0.833vw, 36px);
}
.hn-comp-all .hn-btn {
  padding: clamp(15px, 10px + 0.5vw, 18px) clamp(34px, 24px + 1vw, 40px);
  font-size: clamp(17px, 12px + 0.5vw, 20px);
}

/* ============================================================
   Для тех, кто проводит — категории
   ============================================================ */
.hn-categories { margin-top: clamp(72px, 50.333px + 2.167vw, 85px); margin-bottom: clamp(81px, 57.667px + 2.333vw, 95px); }

.hn-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 13.333px + 0.667vw, 24px);
  margin-bottom: clamp(31px, 22.667px + 0.833vw, 36px);
}
.hn-cat-head .hn-eyebrow { margin: 0; }
.hn-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(31px, 22.667px + 0.833vw, 36px);
}
.hn-cat-item { text-align: center; }
.hn-cat-item img {
  width: 100%;
  border-radius: 24px;
  margin: 0 0 clamp(15px, 10px + 0.5vw, 18px);
}
.hn-cat-item b {
  font-size: clamp(24px, 17.333px + 0.667vw, 28px);
  font-weight: 300;
}
.hn-helper {
  font-size: clamp(26px, 16px + 1vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin: clamp(64px, 45.667px + 1.833vw, 75px) 0 0;
  max-width: clamp(887px, 627px + 26vw, 1043px);
}

/* ============================================================
   Преимущества
   ============================================================ */
.hn-advantages { position: relative; z-index: 1; overflow-x: clip; }
.hn-advantages::before {
  content: '';
  position: absolute;
  left: -40px;
  top: calc(50% - 367px);
  width: 687px;
  height: 734px;
  max-width: 60%;
  background: url('/images/home-new/ellipse-glow.png') center / contain no-repeat;
  pointer-events: none;
  z-index: 0;
  animation: hn-glow-float 13s linear infinite;
}
.hn-advantages::after {
  content: '';
  position: absolute;
  inset: -300px 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle 480px at 92% 50%, rgba(255, 182, 27, 0.38) 0%, rgba(17, 22, 30, 0) 58%);
}
.hn-advantages > .hn-container { position: relative; z-index: 1; }

@keyframes hn-glow-float {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  54%  { transform: translate(209px, -43px) scale(1.3) rotate(180deg); }
  100% { transform: translate(0, 0) scale(1) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hn-advantages::before { animation: none; }
}

.hn-adv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(41px, 29.333px + 1.167vw, 48px) clamp(51px, 36px + 1.5vw, 60px);
}
.hn-adv-item {
  display: flex;
  align-items: center;
  gap: clamp(26px, 19.333px + 0.667vw, 30px);
}
.hn-adv-item img { width: clamp(54px, 44px + 1vw, 60px); height: clamp(54px, 44px + 1vw, 60px); flex: 0 0 clamp(54px, 44px + 1vw, 60px); }
.hn-adv-item span { font-size: clamp(18px, 14.667px + 0.333vw, 20px); font-weight: 300; line-height: 1.55; max-width: clamp(289px, 204px + 8.5vw, 340px); }

/* ============================================================
   Как это работает
   ============================================================ */
.hn-how { position: relative; z-index: 1; margin-top: clamp(106px, 74.333px + 3.167vw, 125px); overflow-x: clip; }
.hn-how > .hn-container { position: relative; z-index: 1; }
.hn-how::before {
  content: '';
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: -6%;
  top: 22%;
  width: 43vw;
  height: 45vw;
  max-width: 660px;
  background: url('/images/home-new/ellipse-19.png') center / contain no-repeat;
  animation: hn-hero-glow-a 12s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hn-how::before { animation: none; }
}
.hn-how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(34px, 24px + 1vw, 40px);
  margin-bottom: clamp(43px, 31.333px + 1.167vw, 50px);
}
.hn-step {
  border-radius: 40px;
  padding: clamp(25px, 18.333px + 0.667vw, 29px) clamp(27px, 18.667px + 0.833vw, 32px);
  min-height: clamp(136px, 96px + 4vw, 160px);
  font-size: clamp(17px, 12px + 0.5vw, 20px);
  font-weight: 400;
  line-height: 1.3;
  display: flex;
  align-items: center;
}
.hn-step-gold {
  background: var(--hn-gold-grad);
  color: #000;
}
.hn-step-glass {
  background: #141921;
  color: #fff;
}
.hn-step-outline {
  background: #1D232D;
  border: 2px solid #ffc700;
  color: #fff;
}
.hn-stats {
  margin-top: clamp(-50px, -31.333px - 1.167vw, -43px);
}
.hn-past .hn-eyebrow {
  margin-bottom: clamp(43px, 31.333px + 1.167vw, 50px);
}
.hn-partners .hn-eyebrow {
  margin-bottom: clamp(64px, 45.667px + 1.833vw, 75px);
}
.hn-how-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(43px, 31.333px + 1.167vw, 50px);
  flex-wrap: nowrap;
}
.hn-how-foot-text { flex: 1 1 520px; max-width: clamp(553px, 391.333px + 16.167vw, 650px); }
.hn-how-foot-text p {
  font-size: clamp(26px, 16px + 1vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}
.hn-how-art {
  position: relative;
  flex: 0 1 600px;
  max-width: 100%;
}
.hn-how-art img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}
.hn-how-cta {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: clamp(15px, 10px + 0.5vw, 18px) clamp(26px, 19.333px + 0.667vw, 30px);
}

/* ============================================================
   Статистика
   ============================================================ */
.hn-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 17.333px + 0.667vw, 28px);
}
.hn-stat-card {
  border: 2px solid transparent;
  border-radius: 40px;
  padding: clamp(22px, 15.333px + 0.667vw, 26px) clamp(26px, 19.333px + 0.667vw, 30px);
  min-height: clamp(119px, 84px + 3.5vw, 140px);
  background:
    linear-gradient(#1D232D, #1D232D) padding-box,
    linear-gradient(90deg, #00d9ff 0%, #00ff7a 100%) border-box;
}
.hn-stat-card:nth-child(2) {
  background:
    linear-gradient(#1D232D, #1D232D) padding-box,
    linear-gradient(90deg, #00ff7a 0%, #ba43cf 100%) border-box;
}
.hn-stat-card:nth-child(3) {
  background:
    linear-gradient(#1D232D, #1D232D) padding-box,
    linear-gradient(90deg, #ba43cf 0%, #fed337 100%) border-box;
}
.hn-stat-card:nth-child(4) {
  background:
    linear-gradient(#1D232D, #1D232D) padding-box,
    linear-gradient(90deg, #fec500 0%, #fe9800 100%) border-box;
}
.hn-stat-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.hn-stat-top img { height: clamp(32px, 22px + 1vw, 38px); width: auto; }
.hn-stat-num { font-size: clamp(34px, 24px + 1vw, 40px); font-weight: 300; line-height: 1.15; }
.hn-stat-label { font-size: clamp(17px, 12px + 0.5vw, 20px); font-weight: 700; color: #fff; }

/* ============================================================
   Отзывы
   ============================================================ */
.hn-reviews-wrap { position: relative; }
.hn-reviews {
  width: calc(100% - 120px);
  margin: 0 auto;
  overflow: hidden;
}
.hn-reviews-track {
  display: flex;
  gap: clamp(34px, 24px + 1vw, 40px);
  transition: transform .4s ease;
}
.hn-reviews-track .hn-review {
  flex: 0 0 calc(50% - 20px);
}
.hn-reviews-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(41px, 29.333px + 1.167vw, 48px);
  height: clamp(41px, 29.333px + 1.167vw, 48px);
  border-radius: 50%;
  background: #1d232d;
  border: 1px solid var(--hn-gold-a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease;
  z-index: 2;
}
.hn-reviews-arrow:hover { background: #28303d; }
.hn-reviews-arrow svg { width: clamp(10px, 6.667px + 0.333vw, 12px); height: clamp(19px, 14px + 0.5vw, 22px); }
.hn-reviews-prev { left: 0; }
.hn-reviews-next { right: 0; }
.hn-review {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 40px;
  padding: clamp(26px, 19.333px + 0.667vw, 30px) clamp(26px, 19.333px + 0.667vw, 30px) clamp(26px, 19.333px + 0.667vw, 30px) clamp(37px, 25.333px + 1.167vw, 44px);
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 13.333px + 0.583vw, 24px);
}
.hn-review-side {
  display: flex;
  align-items: center;
  gap: clamp(16px, 11.333px + 0.583vw, 22px);
}
.hn-review-ava {
  flex: 0 0 auto;
  width: clamp(72px, 56px + 1.6vw, 88px);
  height: clamp(72px, 56px + 1.6vw, 88px);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
}
.hn-review-ava img { width: 100%; height: 100%; object-fit: cover; }
.hn-review-name { font-size: clamp(15px, 10px + 0.5vw, 18px); font-weight: 700; line-height: 23px; }
.hn-review-role { display: block; margin-top: 6px; font-size: 13px; font-weight: 300; line-height: 18px; color: rgba(255, 255, 255, 0.6); }
.hn-review-text {
  flex: 1;
  margin: 0;
  font-weight: 300;
  font-size: clamp(15px, 10px + 0.5vw, 18px);
  line-height: 26px;
  color: #fff;
}

/* ============================================================
   Прошедшие конкурсы (лента обложек)
   ============================================================ */
.hn-past { overflow: hidden; }
.hn-past-row { overflow: hidden; margin-bottom: clamp(20px, 13.333px + 0.667vw, 24px); }
.hn-past-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.hn-past-track--left { animation: hn-marquee 45s linear infinite; }
.hn-past-track--right { animation: hn-marquee 55s linear infinite reverse; }
.hn-past-track:hover { animation-play-state: paused; }
.hn-past-group {
  display: flex;
  gap: clamp(20px, 13.333px + 0.667vw, 24px);
  padding-right: clamp(20px, 13.333px + 0.667vw, 24px);
}
@keyframes hn-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.hn-past-cover {
  flex: 0 0 clamp(194px, 137.333px + 5.667vw, 228px);
  height: clamp(122px, 85.333px + 3.667vw, 144px);
  border-radius: 16px;
  overflow: hidden;
  background: var(--hn-panel);
}
.hn-past-cover img { width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  .hn-past-track { animation: none; }
}

/* ============================================================
   Партнёры
   ============================================================ */
.hn-partners { background: #141921; margin: 0; padding: clamp(60px, 41.667px + 1.833vw, 71px) 0 clamp(72px, 50.333px + 2.167vw, 85px); }
.hn-partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(26px, 19.333px + 0.667vw, 30px) clamp(51px, 36px + 1.5vw, 60px);
  align-items: center;
  margin-top: clamp(26px, 19.333px + 0.667vw, 30px);
}
.hn-partners-grid img {
  width: 100%;
  height: clamp(77px, 55.333px + 2.167vw, 90px);
  object-fit: contain;
  object-position: center;
}

.hn-about { background: #1D232D; margin: 0; padding: clamp(60px, 41.667px + 1.833vw, 71px) 0; }
.hn-about-text { display: flex; flex-direction: column; gap: clamp(16px, 12px + 0.333vw, 20px); max-width: 920px; }
.hn-about-text p {
  margin: 0;
  font-weight: 300;
  font-size: clamp(15px, 10px + 0.5vw, 18px);
  line-height: 26px;
  color: #fff;
}

/* ============================================================
   Футер
   ============================================================ */
.hn-footer {
  background:
    linear-gradient(180deg, rgba(255, 162, 0, 0.08) 0%, rgba(255, 162, 0, 0) 100%),
    var(--hn-bg);
  border-top: 1px solid rgba(255, 162, 0, 0.6);
  padding: clamp(61px, 42.667px + 1.833vw, 72px) 0 clamp(37px, 25.333px + 1.167vw, 44px);
}
.hn-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(34px, 24px + 1vw, 40px);
}
.hn-footer-logo img { width: clamp(255px, 180px + 7.5vw, 300px); height: clamp(59px, 42.333px + 1.667vw, 69px); margin-bottom: clamp(27px, 18.667px + 0.833vw, 32px); }
.hn-footer-actions { display: flex; gap: 12px; }
.hn-footer-actions .hn-btn { padding: 10px clamp(17px, 12px + 0.5vw, 20px); font-size: clamp(14px, 10.667px + 0.333vw, 16px); font-weight: 500; line-height: 1.25; }
.hn-footer h4 {
  font-size: clamp(12px, 8.667px + 0.333vw, 14px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28px;
  margin: 0 0 14px;
}
.hn-footer ul { list-style: none; margin: 0; padding: 0; }
.hn-footer li { margin-bottom: 0; }
.hn-footer li a {
  display: inline-block;
  padding: 3px 0;
  font-size: clamp(12px, 8.667px + 0.333vw, 14px);
  font-weight: 100;
  letter-spacing: 0.28px;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hn-footer li a:hover { color: var(--hn-cyan); }
.hn-footer-bottom {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(34px, 24px + 1vw, 40px);
  align-items: start;
  margin-top: clamp(34px, 24px + 1vw, 40px);
}
.hn-footer-cta {
  grid-column: 2 / -1;
  justify-self: start;
  max-width: 100%;
  font-size: clamp(17px, 12px + 0.5vw, 20px);
  padding: clamp(15px, 10px + 0.5vw, 18px) clamp(26px, 19.333px + 0.667vw, 30px);
}
.hn-footer-legal {
  margin: 0;
  font-size: clamp(12px, 8.667px + 0.333vw, 14px);
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  line-height: 1.45;
  max-width: clamp(272px, 192px + 8vw, 320px);
}
.hn-footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; transition: color .15s ease; }
.hn-footer-legal a:hover { color: var(--hn-cyan); }
.hn-footer-copy { margin: 16px 0 0; font-size: clamp(10px, 6.667px + 0.333vw, 12px); font-weight: 100; color: #fff; }

/* ============================================================
   Мобильная версия (< 1000px)
   Десктоп тянется через clamp() в 1000-1600px; ниже 1000px
   переключаем раскладку под планшет и телефон.
   ============================================================ */
@media (max-width: 1000px) {
  /* Сетки — в 2 колонки */
  .hn-comp-grid,
  .hn-cat-grid,
  .hn-stat-grid,
  .hn-partners-grid { grid-template-columns: repeat(2, 1fr); }
  .hn-how-steps { grid-template-columns: 1fr; }
  .hn-footer-grid { grid-template-columns: 1fr 1fr; }
  .hn-footer-bottom { grid-template-columns: 1fr; gap: 24px; }
  .hn-footer-cta { grid-column: auto; width: 100%; white-space: normal; text-align: center; }

  /* Hero — текст и иллюстрация в колонку */
  .hn-hero-inner { display: block; min-height: auto; padding: 48px 0 56px; }
  .hn-hero-text { max-width: none; }
  .hn-hero-art {
    position: static;
    transform: none;
    right: auto;
    width: 100%;
    max-width: 460px;
    margin: 28px auto 0;
  }

  /* «Для тех, кто проводит» — заголовок и кнопка в колонку */
  .hn-cat-head { flex-direction: column; align-items: flex-start; }

  /* «Как это работает» — текст и картинка в колонку */
  .hn-how-foot { flex-wrap: wrap; }
  .hn-how-foot-text { flex: 1 1 100%; max-width: none; }
  .hn-how-art { flex: 1 1 100%; max-width: 560px; margin: 0 auto; }

  /* Отзывы — по одному в слайде */
  .hn-reviews-track .hn-review { flex: 0 0 100%; }
}

/* Телефоны (< 640px) */
@media (max-width: 640px) {
  /* Бургер-меню */
  .hn-burger { display: flex; }
  .hn-header-inner { gap: 12px; justify-content: space-between; }
  .hn-logo img { width: 120px; height: 28px; }
  .hn-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 20px;
    background: rgba(17, 22, 30, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .hn-header.is-open .hn-menu { display: flex; }
  .hn-nav { flex-direction: column; gap: 18px; height: auto; margin: 0; }
  .hn-nav a { height: auto; }
  .hn-nav a.is-active::after { display: none; }
  /* Выпадающий пункт «Мои проекты» в бургер-меню — раскрыт статично */
  .hn-nav-dd { flex-direction: column; align-items: flex-start; height: auto; gap: 12px; }
  .hn-nav-dd-toggle { height: auto; }
  .hn-nav-dd-menu {
    position: static;
    transform: none;
    display: flex;
    min-width: 0;
    width: 100%;
    padding: 0 0 0 14px;
    background: transparent;
    border: 0;
    box-shadow: none;
    gap: 12px;
  }
  .hn-nav-dd-menu a { padding: 0; white-space: normal; color: rgba(255, 255, 255, 0.8); }
  .hn-header-actions { flex-direction: column; gap: 10px; align-items: flex-start; }
  .hn-header-actions .hn-btn { padding: 11px 24px; font-size: 14px; align-self: flex-start; }
  /* Аккаунт в бургер-меню — компактная кнопка слева, меню «Выход» под ней */
  .hn-account { align-self: flex-start; width: auto; max-width: 100%; }
  .hn-account-toggle { width: auto; }
  .hn-account-menu {
    position: static;
    transform: none;
    min-width: 180px;
    width: auto;
    margin-top: 8px;
    box-shadow: none;
  }

  /* Всё в одну колонку */
  .hn-comp-grid,
  .hn-cat-grid,
  .hn-adv-grid,
  .hn-stat-grid,
  .hn-partners-grid,
  .hn-footer-grid { grid-template-columns: 1fr; }

  /* Типографика — мельче */
  .hn-hero h1 { font-size: 30px; }
  .hn-hero p { font-size: 16px; }
  .hn-eyebrow { font-size: 21px; }
  .hn-lead,
  .hn-helper,
  .hn-how-foot-text p { font-size: 21px; }
  .hn-cat-item b { font-size: 22px; }
  .hn-stat-num { font-size: 30px; }

  /* Текст преимуществ без ограничения ширины */
  .hn-adv-item span { max-width: none; }

  /* Длинная кнопка в шапке категорий переносится */
  .hn-cat-head .hn-btn { white-space: normal; }

  /* Отзывы — стопкой, без стрелок */
  .hn-reviews { width: 100%; }
  .hn-reviews-track { flex-direction: column; gap: 20px; transform: none !important; }
  .hn-reviews-track .hn-review { flex: 0 0 auto; }
  .hn-reviews-arrow { display: none; }
  .hn-review { min-height: auto; padding: 24px; flex-direction: column; gap: 16px; }
  .hn-review-side { flex: 0 0 auto; }

  /* Футер */
  .hn-footer-cta { width: 100%; justify-content: center; }
}
