/* --------- ШРИФТЫ (локально) --------- */
@font-face {
  font-family: "ManropeFL";
  src: url("../fonts/Manrope-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

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

/* --------- ROOT & RESET --------- */
:root {
  --fl-bg: #e4f3ff;
  --fl-bg-alt: #f7fbff;
  --fl-bg-deep: #021822;
  --fl-ice: #a8dcff;
  --fl-ice-soft: #d2ecff;
  --fl-accent: #36b8e6;
  --fl-accent-soft: rgba(54, 184, 230, 0.16);
  --fl-warm: #f8b36c;
  --fl-text-main: #041b26;
  --fl-text-soft: #546876;
  --fl-border-soft: rgba(4, 27, 38, 0.08);
  --fl-radius-lg: 32px;
  --fl-radius-md: 20px;
  --fl-radius-pill: 999px;
  --fl-shadow-soft: 0 22px 60px rgba(1, 30, 48, 0.18);
  --fl-shadow-chip: 0 10px 30px rgba(1, 30, 48, 0.14);
  --fl-header-height: 80px;
  --fl-transition-fast: 0.25s ease-out;
  --fl-transition-slow: 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

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

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

body.fl-body {
  min-height: 100vh;
  font-family: "ManropeFL", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fl-text-main);
  background:
    radial-gradient(circle at 10% 0%, #ffffff 0, transparent 55%),
    radial-gradient(circle at 90% 20%, #dff3ff 0, transparent 50%),
    linear-gradient(180deg, #eaf5ff 0%, #f7fbff 55%, #e4f3ff 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ограничение ширины всех изображений */
.fl-image {
  width: 100%;
  max-width: 350px;
  border-radius: 16px;
  object-fit: cover;
}

/* Контейнер */
.fl-shell {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

/* --------- HEADER --------- */
.fl-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--fl-header-height);
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    90deg,
    rgba(244, 250, 255, 0.96),
    rgba(220, 239, 255, 0.9)
  );
  border-bottom: 1px solid var(--fl-border-soft);
}

.fl-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Логотип */
.fl-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fl-text-main);
}

.fl-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 40% 70% 50% 80%;
  background: radial-gradient(circle at 20% 10%, #ffffff, #5bc2f0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #021822;
  box-shadow: 0 6px 16px rgba(1, 30, 48, 0.2);
}

.fl-logo-text {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}

/* Навигация */
.fl-nav {
  display: flex;
}

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

.fl-nav-link {
  position: relative;
  text-decoration: none;
  font-size: 14px;
  color: var(--fl-text-soft);
  padding: 6px 0;
  transition: color var(--fl-transition-fast);
}

.fl-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--fl-accent), var(--fl-warm));
  transition: width var(--fl-transition-fast);
}

.fl-nav-link:hover {
  color: var(--fl-text-main);
}

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

/* Бургер */
.fl-burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(4, 27, 38, 0.08);
  background: rgba(244, 250, 255, 0.9);
  box-shadow: 0 8px 18px rgba(1, 30, 48, 0.14);
  align-items: center;
  justify-content: center;
  padding: 0;
  gap: 4px;
  cursor: pointer;
}

.fl-burger-line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #021822;
  transition: transform 0.2s ease, opacity 0.2s ease, width 0.2s ease;
}

/* состояние открытого бургера */
.fl-burger.is-open .fl-burger-line:nth-child(1) {
  transform: translateY(4px) rotate(40deg);
}

.fl-burger.is-open .fl-burger-line:nth-child(2) {
  opacity: 0;
  width: 0;
}

.fl-burger.is-open .fl-burger-line:nth-child(3) {
  transform: translateY(-4px) rotate(-40deg);
}

/* --------- MAIN / СЕКЦИИ --------- */
.fl-main {
  padding-top: calc(var(--fl-header-height) + 24px);
}

.fl-section {
  position: relative;
  padding-block: 72px;
}

/* Общий заголовок секций */
.fl-kicker {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fl-accent);
  margin: 0 0 12px;
}

.fl-section-title {
  margin: 0 0 18px;
  font-size: 32px;
  line-height: 1.25;
  font-family: "PlayfairFL", "ManropeFL", serif;
}

.fl-section-text {
  margin: 0;
  font-size: 15px;
  color: var(--fl-text-soft);
}

.fl-section-heading {
  margin-bottom: 32px;
}

.fl-section-heading--split {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
}

.fl-section-text--narrow {
  max-width: 340px;
}

/* Кнопки */
.fl-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--fl-radius-pill);
  border: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--fl-transition-fast),
    box-shadow var(--fl-transition-fast),
    background var(--fl-transition-fast),
    color var(--fl-transition-fast);
}

.fl-button--primary {
  background: linear-gradient(120deg, var(--fl-accent), #63d5ff);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(1, 30, 48, 0.3);
}

.fl-button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(1, 30, 48, 0.38);
}

.fl-button--ghost {
  background: rgba(244, 250, 255, 0.9);
  color: var(--fl-text-main);
  border: 1px solid rgba(4, 27, 38, 0.1);
}

.fl-button--ghost:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

/* Pills */
.fl-hero-badges,
.fl-pill {
  display: flex;
  align-items: center;
}

.fl-hero-badges {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.fl-pill {
  padding: 6px 12px;
  border-radius: var(--fl-radius-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(168, 220, 255, 0.5);
  box-shadow: var(--fl-shadow-chip);
  font-size: 12px;
  color: var(--fl-text-soft);
  gap: 8px;
}

.fl-pill--soft {
  background: rgba(255, 255, 255, 0.7);
}

.fl-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, var(--fl-warm), #ff8f5b);
}

/* Ссылки */
.fl-link-underline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  text-decoration: none;
  color: var(--fl-accent);
  margin-top: 10px;
}

.fl-link-underline::after {
  content: "";
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, var(--fl-accent), var(--fl-warm));
  transform-origin: left;
  transform: scaleX(0.2);
  transition: transform var(--fl-transition-fast);
}

.fl-link-underline:hover::after {
  transform: scaleX(1);
}

/* Анимация появления секций */
.js-reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  filter: blur(6px);
  transition:
    opacity var(--fl-transition-slow),
    transform var(--fl-transition-slow),
    filter var(--fl-transition-slow);
}

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

/* --------- FOOTER --------- */
.fl-footer {
  padding-block: 40px 32px;
  background: radial-gradient(circle at 10% -30%, #ffffff 0, transparent 55%),
    linear-gradient(180deg, #dbefff 0%, #cde7ff 100%);
  border-top: 1px solid rgba(4, 27, 38, 0.08);
  margin-top: 40px;
}

.fl-footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px 40px;
  align-items: flex-start;
}

.fl-footer-brand {
  max-width: 420px;
}

.fl-footer-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #021822;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.fl-footer-logo-text {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  margin-left: 8px;
}

.fl-footer-tagline {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--fl-text-soft);
}

.fl-footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fl-footer-link {
  font-size: 14px;
  text-decoration: none;
  color: var(--fl-text-main);
  opacity: 0.8;
  transition: opacity var(--fl-transition-fast);
}

.fl-footer-link:hover {
  opacity: 1;
}

.fl-footer-meta {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  color: var(--fl-text-soft);
}

/* --------- ADAPTIVE --------- */
@media (max-width: 1024px) {
  .fl-section {
    padding-block: 56px;
  }

  .fl-section-heading--split {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .fl-header-inner {
    gap: 16px;
  }

  .fl-nav {
    position: fixed;
    inset-inline: 12px;
    top: calc(var(--fl-header-height) + 10px);
    background: rgba(244, 250, 255, 0.98);
    border-radius: 20px;
    border: 1px solid rgba(4, 27, 38, 0.08);
    box-shadow: 0 18px 42px rgba(1, 30, 48, 0.25);
    padding: 10px 16px;
    transform-origin: top;
    transform: scaleY(0.8);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.2s ease-out,
      transform 0.2s ease-out;
  }

  .fl-nav.fl-nav--open {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
  }

  .fl-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

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

@media (max-width: 600px) {
  .fl-main {
    padding-top: calc(var(--fl-header-height) + 12px);
  }

  .fl-section {
    padding-block: 42px;
  }

  .fl-section-title {
    font-size: 26px;
  }

  .fl-footer-inner {
    grid-template-columns: 1fr;
  }
}
/* ===============================
   GLOBAL FOOTER
   =============================== */

.fl-footer {
  background: linear-gradient(135deg, #021822 0, #06354c 55%, #0d4f6f 100%);
  color: #ecf6ff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fl-footer-inner {
  padding: 28px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.fl-footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}

/* бренд */

.fl-footer-brand {
  max-width: 320px;
}

.fl-footer-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 8px;
  border-radius: 10px;
  background: #ecf6ff;
  color: #021822;
  font-weight: 700;
  font-size: 16px;
}

.fl-footer-logo-text {
  font-weight: 600;
  font-size: 16px;
}

.fl-footer-tagline {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(227, 243, 255, 0.9);
}

/* колонки */

.fl-footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
}

.fl-footer-column {
  min-width: 160px;
}

.fl-footer-heading {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(227, 243, 255, 0.96);
}

.fl-footer-link {
  display: block;
  font-size: 13px;
  color: rgba(214, 233, 250, 0.9);
  text-decoration: none;
  margin-bottom: 4px;
  transition:
    color var(--fl-transition-fast, 0.2s ease),
    transform var(--fl-transition-fast, 0.2s ease);
}

.fl-footer-link:hover {
  color: #ffffff;
  transform: translateX(2px);
}

/* низ футера */

.fl-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  margin-top: 6px;
}

.fl-footer-meta {
  margin: 0;
  font-size: 11px;
  color: rgba(196, 220, 239, 0.9);
}

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

@media (max-width: 840px) {
  .fl-footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .fl-footer-inner {
    padding-top: 24px;
    padding-bottom: 18px;
  }

  .fl-footer-columns {
    flex-direction: column;
  }

  .fl-footer-column {
    min-width: 0;
  }

  .fl-footer-meta {
    font-size: 10px;
  }
}
