/* GLOBAL RESET & BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

.fbt-html {
  scroll-behavior: smooth;
}

/* LOCAL FONTS (положить ttf в /fonts) */
@font-face {
  font-family: "FrostBiteSans";
  src: url("../fonts/Manrope-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FrostBiteSans";
  src: url("../fonts/Manrope-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

@font-face {
  font-family: "FrostBiteDisplay";
  src: url("../fonts/Rubik-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* THEME TOKENS */
:root {
  --fbt-bg: #071421;
  --fbt-bg-soft: #0d2335;
  --fbt-bg-glow: radial-gradient(
      circle at 10% 0%,
      rgba(122, 206, 255, 0.28),
      transparent 55%
    ),
    radial-gradient(
      circle at 90% 100%,
      rgba(167, 224, 255, 0.24),
      transparent 60%
    ),
    #071421;
  --fbt-surface: rgba(10, 33, 52, 0.95);
  --fbt-surface-soft: rgba(11, 42, 69, 0.9);
  --fbt-border-soft: rgba(164, 210, 255, 0.15);
  --fbt-primary: #7ed3ff;
  --fbt-primary-soft: rgba(126, 211, 255, 0.18);
  --fbt-primary-strong: #d2f1ff;
  --fbt-accent: #98ffe9;
  --fbt-accent-soft: rgba(152, 255, 233, 0.12);
  --fbt-text: #eaf5ff;
  --fbt-text-soft: #b7cbe0;
  --fbt-danger: #ff8a72;
  --fbt-radius-lg: 24px;
  --fbt-radius-pill: 999px;
  --fbt-shadow-soft: 0 18px 40px rgba(2, 12, 23, 0.85);
  --fbt-shadow-glow: 0 0 40px rgba(126, 211, 255, 0.35);
  --fbt-header-height: 80px;
}

/* BODY */
.fbt-body {
  font-family: "FrostBiteSans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--fbt-bg-glow);
  color: var(--fbt-text);
  padding-top: var(--fbt-header-height);
  min-height: 100vh;
}

/* LAYOUT SHELL */
.fbt-shell {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}

/* HEADER */
.fbt-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: radial-gradient(
      circle at top left,
      rgba(126, 211, 255, 0.12),
      transparent 55%
    ),
    rgba(3, 18, 32, 0.96);
  border-bottom: 1px solid rgba(164, 210, 255, 0.25);
  transition: background 220ms ease, border-color 220ms ease,
    box-shadow 220ms ease, transform 220ms ease;
  will-change: transform, background;
}

.fbt-header--scrolled {
  background: rgba(3, 18, 32, 0.98);
  box-shadow: var(--fbt-shadow-soft);
  border-color: rgba(164, 210, 255, 0.4);
}

.fbt-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--fbt-header-height);
}

/* LOGO */
.fbt-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.fbt-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 40% 60% 55% 45%;
  background: radial-gradient(circle at 30% 10%, #d9f6ff, #7ed3ff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "FrostBiteDisplay", system-ui, sans-serif;
  font-size: 16px;
  color: #071421;
  box-shadow: 0 0 22px rgba(126, 211, 255, 0.7);
}

.fbt-logo-text {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--fbt-primary-strong);
}

/* NAVIGATION */
.fbt-nav {
  display: flex;
}

.fbt-nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
  align-items: center;
}

.fbt-nav-link {
  position: relative;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fbt-text-soft);
  padding: 8px 4px;
  transition: color 150ms ease;
}

.fbt-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--fbt-primary), var(--fbt-accent));
  transition: width 180ms ease;
}

.fbt-nav-link:hover {
  color: var(--fbt-primary-strong);
}

.fbt-nav-link:hover::after,
.fbt-nav-link--active::after {
  width: 100%;
}

.fbt-nav-link--active {
  color: var(--fbt-primary);
}

/* BURGER */
.fbt-burger {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(164, 210, 255, 0.4);
  background: radial-gradient(
    circle at 30% 10%,
    rgba(137, 220, 255, 0.5),
    rgba(8, 33, 52, 0.98)
  );
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(126, 211, 255, 0.45);
  transition: transform 150ms ease, box-shadow 150ms ease,
    background 150ms ease;
}

.fbt-burger:hover {
  transform: translateY(-1px);
  box-shadow: var(--fbt-shadow-glow);
}

.fbt-burger:active {
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(1, 7, 15, 0.9);
}

.fbt-burger-ice {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #e8f7ff;
  box-shadow: 0 0 8px rgba(223, 246, 255, 0.9);
  transition: transform 180ms ease, opacity 140ms ease, top 180ms ease,
    bottom 180ms ease;
}

.fbt-burger-ice--top {
  top: 13px;
}

.fbt-burger-ice--middle {
  top: 19px;
}

.fbt-burger-ice--bottom {
  bottom: 13px;
}

.fbt-header--menu-open .fbt-burger-ice--top {
  top: 19px;
  transform: rotate(45deg);
}

.fbt-header--menu-open .fbt-burger-ice--middle {
  opacity: 0;
}

.fbt-header--menu-open .fbt-burger-ice--bottom {
  bottom: 19px;
  transform: rotate(-45deg);
}

/* MAIN */
.fbt-main {
  position: relative;
  z-index: 0;
}

/* SECTIONS BASE */
.fbt-section {
  padding-block: 80px;
}

/* BUTTONS */
.fbt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--fbt-radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease,
    border-color 150ms ease, color 150ms ease;
}

.fbt-btn--primary {
  background: linear-gradient(135deg, #7ed3ff, #98ffe9);
  color: #051321;
  border-color: rgba(226, 247, 255, 0.9);
  box-shadow: 0 12px 30px rgba(1, 11, 22, 0.9);
}

.fbt-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(1, 11, 22, 1);
}

.fbt-btn--ghost {
  background: rgba(8, 30, 49, 0.75);
  border-color: rgba(126, 211, 255, 0.4);
  color: var(--fbt-primary-strong);
}

.fbt-btn--ghost:hover {
  background: rgba(11, 42, 69, 0.95);
}

/* FOOTER */
.fbt-footer {
  border-top: 1px solid rgba(139, 191, 236, 0.3);
  background: radial-gradient(
      circle at top,
      rgba(126, 211, 255, 0.1),
      transparent 65%
    ),
    #050e17;
  margin-top: 40px;
}

.fbt-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 30px;
}

.fbt-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.fbt-logo-mark--footer {
  width: 28px;
  height: 28px;
  box-shadow: 0 0 18px rgba(126, 211, 255, 0.6);
}

.fbt-footer-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fbt-text-soft);
  max-width: 360px;
}

.fbt-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.fbt-footer-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 12px;
  color: var(--fbt-primary-strong);
}

.fbt-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fbt-footer-link {
  font-size: 13px;
  color: var(--fbt-text-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-block: 4px;
  transition: color 150ms ease, transform 150ms ease;
}

.fbt-footer-link::before {
  content: "•";
  font-size: 12px;
  color: var(--fbt-primary);
  opacity: 0.6;
}

.fbt-footer-link:hover {
  color: var(--fbt-primary-strong);
  transform: translateX(2px);
}

.fbt-footer-bottom {
  border-top: 1px solid rgba(90, 124, 156, 0.4);
  padding-block: 8px;
}

.fbt-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fbt-footer-meta {
  margin: 0;
  font-size: 12px;
  color: rgba(163, 190, 216, 0.8);
}

/* IMAGES GLOBAL */
img {
  display: block;
  max-width: 100%;
  height: auto;
  max-width: 350px; /* ограничение ширины для всех изображений */
  border-radius: 16px;
}

/* SCROLL REVEAL */
.js-reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  transition: opacity 320ms ease, transform 320ms ease;
  will-change: opacity, transform;
}

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

/* FLOATING ICE ANIMATION BASE (JS will tweak) */
.js-float {
  will-change: transform;
}

/* RESPONSIVE GLOBAL */
@media (max-width: 1024px) {
  .fbt-footer-inner {
    grid-template-columns: 1fr;
  }

  .fbt-footer-text {
    max-width: none;
  }
}

@media (max-width: 880px) {
  .fbt-nav {
    position: fixed;
    inset-inline: 12px;
    top: calc(var(--fbt-header-height) + 10px);
    border-radius: 18px;
    background: rgba(4, 18, 31, 0.97);
    border: 1px solid rgba(164, 210, 255, 0.35);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
    box-shadow: 0 14px 38px rgba(1, 7, 15, 0.98);
  }

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

  .fbt-nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
  }

  .fbt-burger {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .fbt-section {
    padding-block: 64px;
  }

  .fbt-footer-cols {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .fbt-footer-cols {
    grid-template-columns: 1fr;
  }

  .fbt-footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
/* ==== GLOBAL IMAGE SAFETY ==== */
/* Любые проектные картинки: hero-img, fk-hero-img, fk-family-img и т.д. */
img[class*="-img"] {
  display: block;
  width: 100%;        /* подстраивается под родительский блок */
  max-width: 350px;   /* глобальный лимит ширины по ТЗ */
  height: auto;
  border-radius: 16px; /* можно убрать, если где-то не нужно */
  margin-left: auto;
  margin-right: auto; /* центрируем внутри контейнера */
}

/* Фигуры не дают картинке вылезти наружу */
.fbt-section figure,
.fbt-section .img-wrap {
  max-width: 100%;
  overflow: hidden;
}

/* На совсем узких экранах подстраховка от горизонтального скролла */
@media (max-width: 640px) {
  .fbt-section {
    overflow-x: hidden;
  }
}
