/* ===========================
   LOCAL FONTS (GOOGLE FONTS, TTF, CONNECTED LOCALLY)
   =========================== */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Merriweather";
  src: url("../fonts/Merriweather-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

/* ===========================
   CSS VARIABLES
   =========================== */

:root {
  --gb-color-bg: #020713;
  --gb-color-bg-soft: #050d21;
  --gb-color-ice: #6ee7ff;
  --gb-color-ice-soft: #c0f3ff;
  --gb-color-accent: #ffb35c;
  --gb-color-text: #f3f7ff;
  --gb-color-muted: #8ca0c3;
  --gb-color-line: rgba(255, 255, 255, 0.08);
  --gb-color-danger: #ff6b6b;

  --gb-radius-lg: 32px;
  --gb-radius-md: 18px;
  --gb-radius-pill: 999px;

  --gb-shadow-soft: 0 18px 55px rgba(2, 12, 40, 0.85);
  --gb-shadow-elevated: 0 22px 60px rgba(0, 0, 0, 0.85);

  --gb-header-height-desktop: 80px;
  --gb-header-height-mobile: 64px;

  --gb-font-sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gb-font-serif: "Merriweather", "Georgia", serif;

  --gb-transition-fast: 200ms ease-out;
  --gb-transition-normal: 260ms ease-out;
}

/* ===========================
   BASE RESET
   =========================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--gb-font-sans);
  background:
    radial-gradient(circle at 0 0, #143761 0, transparent 48%),
    radial-gradient(circle at 100% 100%, #071322 0, transparent 45%),
    linear-gradient(180deg, #020713 0%, #050d21 100%);
  color: var(--gb-color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fixed header offset */
.gb-main {
  padding-top: var(--gb-header-height-desktop);
}

@media (max-width: 768px) {
  .gb-main {
    padding-top: var(--gb-header-height-mobile);
  }
}

/* Global container */
.gb-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography defaults */

h1,
h2,
h3,
h4 {
  margin: 0 0 0.65em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

p {
  margin: 0 0 1.1em;
  line-height: 1.6;
  color: var(--gb-color-muted);
  font-size: 0.98rem;
}

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

a:hover,
a:focus-visible {
  text-decoration: none;
}

/* Images: all jpg, max width 350px */
img {
  display: block;
  max-width: min(100%, 350px);
  height: auto;
  border-radius: 18px;
}

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

.gb-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  height: var(--gb-header-height-desktop);
  display: flex;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(1, 6, 20, 0.98),
    rgba(2, 11, 33, 0.96)
  );
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background var(--gb-transition-normal),
              transform var(--gb-transition-normal),
              box-shadow var(--gb-transition-normal);
}

.gb-header--scrolled {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
  background: radial-gradient(circle at 0 0, #050f24 0, #020713 55%);
}

.gb-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */

.gb-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.gb-logo__mark {
  width: 34px;
  height: 34px;
  border-radius: 40% 60% 45% 55%;
  background: radial-gradient(circle at 30% 0, #6ee7ff 0, #142e4a 48%, #020713 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: #020713;
  box-shadow:
    0 0 0 1px rgba(192, 243, 255, 0.15),
    0 18px 40px rgba(1, 10, 30, 0.9);
}

.gb-logo__text {
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 0.88rem;
  text-transform: uppercase;
  color: var(--gb-color-ice-soft);
}

/* Navigation */

.gb-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.gb-nav__list {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gb-nav__link {
  position: relative;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gb-color-muted);
  padding: 8px 0;
  transition: color var(--gb-transition-fast);
}

.gb-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gb-color-ice), var(--gb-color-accent));
  transition: width var(--gb-transition-normal);
}

.gb-nav__link:hover,
.gb-nav__link:focus-visible {
  color: var(--gb-color-ice-soft);
}

.gb-nav__link:hover::after,
.gb-nav__link:focus-visible::after {
  width: 100%;
}

/* Burger toggle */

.gb-nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(circle at 30% 0, #0b2744 0, #020713 100%);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.gb-nav__line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--gb-color-ice-soft);
  transition: transform var(--gb-transition-fast), opacity var(--gb-transition-fast);
}

.gb-header--nav-open .gb-nav__line:nth-child(1) {
  transform: translateY(2px) rotate(40deg);
}

.gb-header--nav-open .gb-nav__line:nth-child(2) {
  transform: translateY(-2px) rotate(-40deg);
}

/* ===========================
   BUTTONS
   =========================== */

.gb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border-radius: var(--gb-radius-pill);
  border: 1px solid transparent;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform var(--gb-transition-fast),
    box-shadow var(--gb-transition-fast),
    background var(--gb-transition-fast),
    border-color var(--gb-transition-fast);
}

.gb-btn--primary {
  background: radial-gradient(circle at 0 0, #c0f3ff 0, #6ee7ff 38%, #1f2e5a 100%);
  color: #020713;
  box-shadow: 0 18px 40px rgba(6, 37, 73, 0.8);
}

.gb-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(3, 23, 53, 0.95);
}

.gb-btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.8);
}

/* ===========================
   FOOTER
   =========================== */

.gb-footer {
  margin-top: 80px;
  padding: 40px 0 28px;
  border-top: 1px solid var(--gb-color-line);
  background: radial-gradient(circle at 100% 0, #07152a 0, #020713 60%);
}

.gb-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: flex-start;
}

.gb-footer__logo {
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gb-footer__text {
  font-size: 0.9rem;
  max-width: 480px;
}

.gb-footer__heading {
  font-size: 0.9rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
  color: var(--gb-color-ice-soft);
}

.gb-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gb-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--gb-color-muted);
  padding: 2px 0;
  position: relative;
}

.gb-footer__link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(192, 243, 255, 0.4);
  margin-right: 4px;
}

.gb-footer__link:hover {
  color: var(--gb-color-ice-soft);
}

.gb-footer__meta {
  margin: 22px 0 0;
  font-size: 0.78rem;
  text-align: center;
  color: rgba(168, 183, 210, 0.75);
}

/* ===========================
   REVEAL ANIMATION (FOR JS OBSERVER)
   =========================== */

.gb-reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.99);
  transition:
    opacity 420ms ease-out,
    transform 420ms ease-out;
  will-change: opacity, transform;
}

.gb-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 960px) {
  .gb-footer__grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

@media (max-width: 768px) {
  .gb-header {
    height: var(--gb-header-height-mobile);
  }

  .gb-nav__list {
    position: fixed;
    inset-inline: 20px;
    top: calc(var(--gb-header-height-mobile) + 10px);
    padding: 16px 18px;
    border-radius: 24px;
    background: radial-gradient(circle at 0 0, #09182e 0, #020713 60%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity var(--gb-transition-normal),
      transform var(--gb-transition-normal);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.9);
  }

  .gb-header--nav-open .gb-nav__list {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .gb-nav__link {
    font-size: 0.86rem;
  }

  .gb-nav__toggle {
    display: inline-flex;
  }

  .gb-footer__grid {
    grid-template-columns: 1fr;
  }

  .gb-footer__col--links {
    border-top: 1px solid var(--gb-color-line);
    padding-top: 16px;
  }
}

@media (max-width: 480px) {
  .gb-wrap {
    padding: 0 16px;
  }

  .gb-footer {
    padding: 32px 0 24px;
  }

  .gb-footer__text {
    font-size: 0.86rem;
  }
}
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* убираем горизонтальный скролл на всех страницах */
}
.gb-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
