/* ===== HEADER CORE ===== */

.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LEFT */
.brand {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand__logo {
  height: 220px; /* не 270 — это слишком */
  width: auto;
}

/* CENTER */
.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: .2s;
}

.nav a:hover {
  color: #fff;
}

/* RIGHT */
.header__actions {
  display: flex;
  align-items: center;
}

/* ===== BRAND TYPOGRAPHY ===== */

.brand__text{
  display:flex;
  flex-direction:column;
  justify-content:center;
  line-height:1.2;
}

.brand__name{
  font-size:18px;
  font-weight:800;
  letter-spacing:0.22em;
  text-transform:uppercase;
  margin:0;
}

.brand__sub{
  font-size:12px;
  font-weight:400;
  color:var(--muted2);
  letter-spacing:0.08em;
  margin-top:6px;
}
/* ===============================
   HEADER ADAPTIVE
============================== */

@media (max-width: 1100px) {
  .header__row {
    gap: 18px;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    justify-content: center;
  }

  .header__actions {
    margin-left: auto;
  }

  .brand__logo {
    width: 86px;
    height: auto;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 14px 0;
  }

  .header__row {
    align-items: center;
    gap: 14px;
  }

  .brand {
    gap: 12px;
    align-items: center;
  }

  .brand__logo {
    width: 68px;
    height: auto;
    flex: 0 0 68px;
  }

  .brand__name {
    font-size: 24px;
    line-height: 1;
  }

  .brand__sub {
    font-size: 12px;
    line-height: 1.3;
  }

  .nav {
    justify-content: flex-start;
    gap: 10px 14px;
    overflow-x: auto;
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

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

  .nav a {
    white-space: nowrap;
    font-size: 13px;
  }

  .header__actions {
    width: 100%;
    margin-left: 0;
  }

  .header__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .brand__text {
    min-width: 0;
  }

  .brand__name {
    font-size: 20px;
  }

  .brand__sub {
    font-size: 11px;
  }

  .brand__logo {
    width: 58px;
    flex-basis: 58px;
  }
}

/* ===============================
   TG CTA BUTTON (HEADER)
============================== */

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Telegram CTA — заметная, но не сильнее основной */
.btn--tg-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;

  background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
  color: #ffffff;

  font-size: 14px;
  font-weight: 600;
  text-decoration: none;

  box-shadow: 0 10px 24px rgba(34,158,217,0.35);

  transition: all 0.2s ease;
}

.btn--tg-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(34,158,217,0.45);
}

/* иконка */
.btn--tg-cta__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.btn--tg-cta__icon svg {
  width: 100%;
  height: 100%;
}

/* текст */
.btn--tg-cta__text {
  white-space: nowrap;
}

/* адаптив */
@media (max-width: 900px) {
  .header__actions {
    width: 100%;
  }

  .header__actions .btn {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .header__actions {
    flex-direction: column;
    align-items: stretch;
  }
}
/* ===============================
   HEADER SPACING FIX
============================== */

.nav {
  margin-right: 32px; /* главный фикс */
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}