/* ===============================
   GLOBAL: RESET & TOKENS
   =============================== */

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

:root {
  --bb-bg: #050714;
  --bb-bg-soft: #101326;
  --bb-bg-elevated: #191c30;

  --bb-text: #f7f5ff;
  --bb-text-muted: #c8c6e0;
  --bb-text-soft: #9a97c7;

  --bb-accent: #ffb44b;       /* safran */
  --bb-accent-soft: #ffd9a3;
  --bb-accent-2: #18c4b9;     /* turkuaz */
  --bb-accent-3: #ff5c7a;     /* sıcak pembe */

  --bb-border-soft: rgba(255, 255, 255, 0.12);
  --bb-shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.65);

  --bb-radius-lg: 2rem;
  --bb-radius-md: 1.25rem;
  --bb-radius-pill: 999px;

  --bb-header-height: 76px;

  --bb-transition-fast: 0.18s ease-out;
  --bb-transition: 0.28s ease-out;
  --bb-transition-slow: 0.5s ease-out;
}

/* ===============================
   FONTS (локальные Google Fonts ttf)
   =============================== */

/* Скачай с Google Fonts:
   - Playfair Display (700)
   - Manrope (400, 500, 600)
   Положи файлы в /fonts/ и обнови имена ниже при необходимости
*/

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

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

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

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

/* ===============================
   BODY & LAYOUT
   =============================== */

html {
  scroll-behavior: smooth;
}

body.bb-body {
  margin: 0;
  min-height: 100vh;
  font-family: "BazaarBloomSans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--bb-text);
  background:
    radial-gradient(circle at 10% -10%, rgba(255, 180, 75, 0.12), transparent 60%),
    radial-gradient(circle at 90% 120%, rgba(24, 196, 185, 0.16), transparent 55%),
    linear-gradient(135deg, #050714, #090b18 40%, #13172b 80%);
  overflow-x: hidden;
}

.bb-main {
  padding-top: var(--bb-header-height);
}

/* Containers */

.bb-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

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

.bb-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: var(--bb-header-height);
  z-index: 1000;
  backdrop-filter: blur(18px);
  background:
    linear-gradient(to right, rgba(5, 7, 20, 0.96), rgba(9, 11, 24, 0.96));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bb-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */

.bb-logo {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-decoration: none;
}

.bb-logo-main {
  font-family: "BazaarBloomDisplay", "Times New Roman", serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.15rem;
  color: var(--bb-accent-soft);
}

.bb-logo-tag {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bb-text-soft);
}

/* Desktop nav */

.bb-nav {
  display: flex;
}

.bb-nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.bb-nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--bb-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-block: 0.35rem;
  transition: color var(--bb-transition), transform var(--bb-transition-fast);
}

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

.bb-nav-link:hover {
  color: var(--bb-text);
  transform: translateY(-1px);
}

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

.bb-nav-link--active {
  color: var(--bb-accent-soft);
}

/* Burger */

.bb-burger {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle at 0 0, rgba(255, 180, 75, 0.28), transparent 60%),
              rgba(7, 9, 22, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: border-color var(--bb-transition-fast), transform var(--bb-transition-fast),
              box-shadow var(--bb-transition-fast), background var(--bb-transition-fast);
}

.bb-burger:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(255, 180, 75, 0.12);
  transform: translateY(-1px);
}

.bb-burger-line {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bb-accent-soft), var(--bb-accent-2));
  transition: transform var(--bb-transition-fast), opacity var(--bb-transition-fast), top var(--bb-transition-fast), bottom var(--bb-transition-fast);
}

.bb-burger-line:nth-child(1) {
  top: 13px;
}

.bb-burger-line:nth-child(2) {
  top: 19px;
}

.bb-burger-line:nth-child(3) {
  bottom: 13px;
}

/* Burger active */

.bb-burger.is-active .bb-burger-line:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

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

.bb-burger.is-active .bb-burger-line:nth-child(3) {
  bottom: auto;
  top: 19px;
  transform: rotate(-45deg);
}

/* Mobile nav */

.bb-nav-mobile {
  position: fixed;
  inset-inline: 0;
  top: var(--bb-header-height);
  bottom: 0;
  background: radial-gradient(circle at top, rgba(255, 180, 75, 0.15), transparent 55%),
              radial-gradient(circle at bottom, rgba(24, 196, 185, 0.14), transparent 55%),
              rgba(4, 6, 18, 0.97);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--bb-transition), transform var(--bb-transition);
  z-index: 900;
}

.bb-nav-mobile-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bb-nav-mobile-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.bb-nav-mobile-link {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--bb-text);
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 0 0, rgba(255, 180, 75, 0.16), transparent 55%);
  transition: background var(--bb-transition-fast), border-color var(--bb-transition-fast), transform var(--bb-transition-fast);
}

.bb-nav-mobile-link:hover {
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

/* Mobile nav visible state */

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

/* ===============================
   SECTION WRAPPER
   =============================== */

.bb-section {
  position: relative;
  padding: clamp(4.5rem, 6vw, 6rem) 0;
}

/* ===============================
   IMAGES
   =============================== */

.bb-img {
  display: block;
  width: 100%;
  max-width: 340px; /* <= 350px требование */
  height: auto;
  border-radius: var(--bb-radius-lg);
  object-fit: cover;
}

.bb-img-shadow {
  box-shadow: var(--bb-shadow-soft);
}

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

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

.bb-btn-primary {
  background: radial-gradient(circle at 0 0, rgba(255, 180, 75, 0.45), transparent 60%),
              linear-gradient(135deg, var(--bb-accent), var(--bb-accent-3));
  color: #1a1020;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.6);
}

.bb-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75);
}

.bb-btn-ghost {
  background: rgba(15, 18, 35, 0.85);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--bb-text-muted);
}

.bb-btn-ghost:hover {
  background: rgba(18, 22, 43, 0.95);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

/* Pills */

.bb-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: radial-gradient(circle at 0 0, rgba(255, 180, 75, 0.14), transparent 55%);
  color: var(--bb-text-soft);
  margin: 0.15rem;
}

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

.bb-footer {
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 0 0, rgba(255, 180, 75, 0.14), transparent 60%),
    radial-gradient(circle at 100% 0, rgba(24, 196, 185, 0.18), transparent 60%),
    linear-gradient(to top, #050714, #090b18);
}

.bb-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-block: 3rem;
}

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

.bb-footer-logo {
  font-family: "BazaarBloomDisplay", "Times New Roman", serif;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--bb-accent-soft);
}

.bb-footer-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--bb-text-soft);
}

.bb-footer-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--bb-text-muted);
  margin: 0 0 0.9rem;
}

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

.bb-footer-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--bb-text-soft);
  text-decoration: none;
  padding-block: 0.2rem;
  position: relative;
  transition: color var(--bb-transition-fast), transform var(--bb-transition-fast);
}

.bb-footer-link::before {
  content: "•";
  font-size: 0.7rem;
  margin-right: 0.4rem;
  color: var(--bb-accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--bb-transition-fast), transform var(--bb-transition-fast);
}

.bb-footer-link:hover {
  color: var(--bb-text);
  transform: translateX(2px);
}

.bb-footer-link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.bb-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-block: 0.9rem;
}

.bb-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--bb-text-soft);
}

.bb-footer-copy {
  opacity: 0.8;
}

.bb-footer-made {
  opacity: 0.9;
}

/* ===============================
   REVEAL ANIMATION (IntersectionObserver)
   =============================== */

.bb-reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity var(--bb-transition-slow), transform var(--bb-transition-slow);
}

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

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

@media (max-width: 1024px) {
  .bb-footer-grid {
    grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  }
}

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

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

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

  .bb-footer-col--brand {
    max-width: none;
  }

  .bb-footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .bb-container {
    padding-inline: 1.1rem;
  }

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

  .bb-footer {
    margin-top: 2.5rem;
  }
}
