/* ==== ГЛОБАЛЬНЫЕ ШРИФТЫ (локальные ttf из Google Fonts) ==== */
/* Скачай ttf из Google Fonts и положи в папку fonts, имена можно скорректировать под реальные файлы */

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

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

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

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

/* ==== CSS-ПЕРЕМЕННЫЕ В СТИЛИСТИКЕ ЛЬДА ==== */

:root {
  --pfb-bg: #e7f4ff;
  --pfb-bg-deep: #d6ecff;
  --pfb-bg-gradient: radial-gradient(circle at 0% 0%, #ffffff 0, #e7f4ff 40%, #d0e8ff 100%);
  --pfb-ice: #a4d4ff;
  --pfb-ice-bright: #c6e5ff;
  --pfb-ice-deep: #5a9bd8;
  --pfb-ink: #103049;
  --pfb-ink-soft: #40627d;
  --pfb-ink-muted: #7c97ac;
  --pfb-accent: #4ad2ff;
  --pfb-accent-soft: rgba(74, 210, 255, 0.18);
  --pfb-warning: #ffd27b;
  --pfb-border-soft: rgba(17, 73, 116, 0.08);
  --pfb-shadow-soft: 0 18px 40px rgba(10, 56, 90, 0.15);
  --pfb-radius-lg: 24px;
  --pfb-radius-md: 18px;
  --pfb-radius-pill: 999px;
  --pfb-header-height: 72px;
  --pfb-transition-fast: 180ms ease-out;
  --pfb-transition-med: 260ms ease-out;
}

/* ==== СБРОС И БАЗА ==== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PFB Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--pfb-ink);
  background: var(--pfb-bg-gradient);
  -webkit-font-smoothing: antialiased;
}

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

/* Ограничение ширины изображений по требованию */
.pfb-image {
  width: 100%;
  max-width: 350px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(10, 56, 90, 0.18);
  transition: transform var(--pfb-transition-med), box-shadow var(--pfb-transition-med),
    filter var(--pfb-transition-med);
}

.pfb-image:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 22px 50px rgba(10, 56, 90, 0.28);
  filter: saturate(1.08);
}

/* Оболочка для контента */

.pfb-shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==== ХЕДЕР ==== */

.pfb-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--pfb-header-height);
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(224, 242, 255, 0.96),
    rgba(224, 242, 255, 0.86),
    rgba(224, 242, 255, 0.82)
  );
  border-bottom: 1px solid var(--pfb-border-soft);
  transition: box-shadow var(--pfb-transition-fast), background var(--pfb-transition-fast),
    transform 200ms ease-out;
}

.pfb-header--scrolled {
  box-shadow: 0 10px 30px rgba(10, 56, 90, 0.25);
  background: linear-gradient(
    to bottom,
    rgba(210, 234, 255, 0.98),
    rgba(226, 242, 255, 0.95)
  );
}

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

/* Логотип */

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

.pfb-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 18px;
  background: radial-gradient(circle at 0% 0%, #ffffff 0, #c5e5ff 50%, #86c5ff 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--pfb-ink);
  box-shadow: 0 10px 26px rgba(10, 56, 90, 0.35);
}

.pfb-logo-text {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--pfb-ink-soft);
}

/* Десктопное меню */

.pfb-nav {
  display: block;
}

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

.pfb-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pfb-ink-muted);
  transition: color var(--pfb-transition-fast), background var(--pfb-transition-fast),
    transform var(--pfb-transition-fast);
}

.pfb-nav-link::after {
  content: "";
  position: absolute;
  inset: auto 10px -4px 10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #4ad2ff, #fff);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--pfb-transition-med);
}

.pfb-nav-link:hover {
  color: var(--pfb-ink);
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.pfb-nav-link:hover::after {
  transform: scaleX(1);
}

.pfb-nav-link--active {
  color: var(--pfb-ink);
  background: rgba(255, 255, 255, 0.9);
}

/* Бургер-кнопка */

.pfb-burger {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(16, 48, 73, 0.2);
  background: linear-gradient(145deg, #f7fbff, #e1f1ff);
  padding: 0;
  cursor: pointer;
  position: relative;
  align-items: center;
  justify-content: center;
  transition: box-shadow var(--pfb-transition-fast), transform var(--pfb-transition-fast),
    border-color var(--pfb-transition-fast), background var(--pfb-transition-fast);
}

.pfb-burger-line {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--pfb-ink-soft);
  transition: transform var(--pfb-transition-fast), opacity var(--pfb-transition-fast);
}

.pfb-burger-line:nth-child(1) {
  transform: translateY(-6px);
}

.pfb-burger-line:nth-child(2) {
  transform: translateY(0);
}

.pfb-burger-line:nth-child(3) {
  transform: translateY(6px);
}

.pfb-burger:hover {
  box-shadow: 0 10px 24px rgba(10, 56, 90, 0.25);
  transform: translateY(-1px);
}

.pfb-burger--active {
  background: linear-gradient(145deg, #103049, #235a89);
  border-color: rgba(255, 255, 255, 0.6);
}

.pfb-burger--active .pfb-burger-line {
  background: #ffffff;
}

.pfb-burger--active .pfb-burger-line:nth-child(1) {
  transform: translateY(0) rotate(42deg);
}

.pfb-burger--active .pfb-burger-line:nth-child(2) {
  opacity: 0;
}

.pfb-burger--active .pfb-burger-line:nth-child(3) {
  transform: translateY(0) rotate(-42deg);
}

/* Мобильное меню */

.pfb-mobile-nav {
  position: fixed;
  inset: var(--pfb-header-height) 0 auto 0;
  background: linear-gradient(
    to bottom,
    rgba(224, 242, 255, 0.98),
    rgba(224, 242, 255, 0.96),
    rgba(222, 238, 255, 0.94)
  );
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--pfb-border-soft);
  transform: translateY(-120%);
  transition: transform 220ms ease-out;
  z-index: 40;
}

.pfb-mobile-nav--open {
  transform: translateY(0);
}

.pfb-mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 12px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pfb-mobile-nav-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  color: var(--pfb-ink-soft);
  transition: background var(--pfb-transition-fast), color var(--pfb-transition-fast),
    transform var(--pfb-transition-fast);
}

.pfb-mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--pfb-ink);
  transform: translateX(3px);
}

.pfb-mobile-nav-link--active {
  background: #ffffff;
  color: var(--pfb-ink);
}

/* ==== MAIN & SECTION BASE ==== */

.pfb-main {
  padding-top: calc(var(--pfb-header-height) + 16px);
}

.pfb-section {
  padding: 72px 0;
}

/* Reveal-анимации для IntersectionObserver */

.js-reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 420ms ease-out, transform 420ms ease-out;
}

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

/* Кикер, инлайновые метки */

.pfb-kicker {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pfb-ink-muted);
  margin: 0 0 10px;
}

.pfb-inline-label {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(90, 168, 230, 0.35);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pfb-ink-soft);
}

/* ==== КНОПКИ ==== */

.pfb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--pfb-radius-pill);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--pfb-transition-med), color var(--pfb-transition-med),
    box-shadow var(--pfb-transition-med), transform var(--pfb-transition-med);
}

.pfb-btn--primary {
  background: linear-gradient(135deg, #4ad2ff, #2b8cff);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(16, 84, 136, 0.4);
}

.pfb-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 40px rgba(16, 84, 136, 0.55);
}

.pfb-btn--ghost {
  background: rgba(255, 255, 255, 0.9);
  color: var(--pfb-ink-soft);
  border: 1px solid rgba(126, 165, 200, 0.6);
}

.pfb-btn--ghost:hover {
  background: #ffffff;
  color: var(--pfb-ink);
  transform: translateY(-1px);
}

/* ==== ФУТЕР ==== */

.pfb-footer {
  padding: 40px 0 32px;
  border-top: 1px solid var(--pfb-border-soft);
  background: linear-gradient(to top, #d9ecff, rgba(217, 236, 255, 0.9));
}

.pfb-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pfb-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pfb-footer-logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 16px;
  background: radial-gradient(circle at 0% 0%, #ffffff 0, #c5e5ff 45%, #76c0ff 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--pfb-ink);
}

.pfb-footer-logo-text {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pfb-ink-soft);
}

.pfb-footer-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--pfb-ink-soft);
  max-width: 620px;
}

.pfb-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--pfb-ink-muted);
}

.pfb-footer-meta-item::before {
  content: "• ";
}

/* ==== АДАПТИВ: ХЕДЕР, ОБЩЕЕ ==== */

@media (max-width: 900px) {
  .pfb-nav {
    display: none;
  }

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

  .pfb-header-inner {
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .pfb-section {
    padding: 56px 0;
  }

  .pfb-footer-inner {
    gap: 14px;
  }

  .pfb-footer-text {
    font-size: 13px;
  }
}
/* Мобильное меню */

.pfb-mobile-nav {
  position: fixed;
  inset: var(--pfb-header-height) 0 auto 0;
  background: linear-gradient(
    to bottom,
    rgba(224, 242, 255, 0.98),
    rgba(224, 242, 255, 0.96),
    rgba(222, 238, 255, 0.94)
  );
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--pfb-border-soft);
  z-index: 40;

  /* важно: изначально меню полностью невидимо
     и не кликается — ничего не будет торчать над хеддером */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 220ms ease-out, transform 220ms ease-out;
}

.pfb-mobile-nav--open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.pfb-mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 12px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* ==== FOOTER ==== */

.pfb-footer {
  margin-top: 40px;
  background: linear-gradient(
    180deg,
    #dff1ff 0%,
    #c6e1f6 36%,
    #1a3046 100%
  );
  color: rgba(255, 255, 255, 0.94);
  position: relative;
  overflow: hidden;
}

.pfb-footer::before {
  content: "";
  position: absolute;
  inset: -120px -80px auto auto;
  background: radial-gradient(
    circle at 100% 0%,
    rgba(255, 255, 255, 0.9) 0,
    rgba(255, 255, 255, 0.1) 46%,
    transparent 70%
  );
  opacity: 0.8;
  pointer-events: none;
}

.pfb-footer-inner {
  position: relative;
  padding: 26px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* верхняя часть футера */

.pfb-footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 40px;
  align-items: flex-start;
  justify-content: space-between;
}

/* бренд */

.pfb-footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 320px;
}

.pfb-footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffffff 0, #e0f2ff 55%, #9abfdf 100%);
  box-shadow: 0 10px 26px rgba(5, 28, 52, 0.55);
}

.pfb-footer-logo-mark {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.12em;
  color: #123454;
}

.pfb-footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pfb-footer-name {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pfb-footer-tagline {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(235, 246, 255, 0.9);
}

/* колонки */

.pfb-footer-column {
  min-width: 200px;
  max-width: 320px;
}

.pfb-footer-heading {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(223, 238, 255, 0.9);
}

.pfb-footer-links {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pfb-footer-links a {
  font-size: 13px;
  text-decoration: none;
  color: rgba(237, 246, 255, 0.9);
  transition: color 160ms ease-out, opacity 160ms ease-out;
}

.pfb-footer-links a:hover {
  color: #ffffff;
  opacity: 1;
}

.pfb-footer-links--legal a {
  position: relative;
  padding-left: 16px;
}

.pfb-footer-links--legal a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4ad2ff, #2b8cff);
}

.pfb-footer-legal-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(221, 236, 255, 0.9);
}

/* нижняя линия */

.pfb-footer-bottom {
  border-top: 1px solid rgba(160, 191, 219, 0.4);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pfb-footer-copy {
  margin: 0;
  font-size: 12px;
  color: rgba(227, 240, 255, 0.9);
}

.pfb-footer-disclaimer {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(211, 229, 248, 0.86);
}

/* адаптив футера */

@media (max-width: 900px) {
  .pfb-footer-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .pfb-footer-column {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .pfb-footer-inner {
    padding-inline: 16px;
  }

  .pfb-footer-name {
    font-size: 14px;
  }

  .pfb-footer-tagline {
    font-size: 12px;
  }

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