/* =============================================
   LAYOUT.CSS — nav, footer, breadcrumb, steps
   ============================================= */

/* ---- Навигация ---- */
.nav {
  background: var(--white);
  border-bottom: 2px solid var(--border2);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo__bubble {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(255,107,157,.3);
}

.logo__text {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--pink);
}
.logo__text span { color: var(--orange); }

.nav__menu {
  display: flex;
  gap: 4px;
}

.nav__menu a {
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 700;
  color: var(--gray);
  text-decoration: none;
  transition: .15s;
}
.nav__menu a:hover,
.nav__menu a.active {
  background: var(--pink-bg);
  color: var(--pink);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---- Бургер-кнопка (мобиль) ---- */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 2px solid var(--border);
  cursor: pointer;
  padding: 9px 10px;
  border-radius: 12px;
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}
.nav__burger:hover { background: var(--pink-bg); border-color: var(--pink2); }
.nav__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Мобильное меню (выдвижное) ---- */
.nav__mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 2px solid var(--border2);
  z-index: 99;
  box-shadow: 0 12px 32px rgba(0,0,0,.10);
  animation: navSlideDown .2s ease;
}
.nav__mobile.open { display: block; }

@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav__mobile-links {
  padding: 12px 5% 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav__mobile-links a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  transition: background .15s;
}
.nav__mobile-links a:hover { background: var(--pink-bg); color: var(--pink); }
.nav__mobile-cta {
  margin-top: 8px;
  background: linear-gradient(135deg, var(--pink), var(--orange)) !important;
  color: var(--white) !important;
  text-align: center;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-pink);
}

@media (max-width: 780px) {
  .nav__menu  { display: none; }
  .nav__right { display: none; }
  .nav__burger { display: flex; }
}

/* ---- Шаги прогресса на маленьких экранах ---- */
@media (max-width: 520px) {
  .step-item__label { display: none; }
  .step-bar__line   { width: 16px; }
  .nav { padding: 0 4%; }
}

/* ---- Хлебные крошки ---- */
.breadcrumb {
  background: var(--pink-bg);
  padding: 12px 6%;
  border-bottom: 2px solid var(--border2);
}

.breadcrumb__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--gray);
}

.breadcrumb__inner a {
  color: var(--pink);
  font-weight: 700;
  text-decoration: none;
}
.breadcrumb__inner a:hover { text-decoration: underline; }

.breadcrumb__sep { color: #d1d5db; }

/* ---- Прогресс-шаги (генератор / оплата) ---- */
.step-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 700;
}

.step-item__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 900;
  flex-shrink: 0;
}

.step-item--active .step-item__dot {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: var(--white);
}
.step-item--done .step-item__dot {
  background: #dcfce7;
  color: #15803d;
}
.step-item--pending .step-item__dot {
  background: #f3f4f6;
  color: var(--gray2);
}

.step-item--active .step-item__label { color: var(--dark); }
.step-item--done .step-item__label   { color: #15803d; }
.step-item--pending .step-item__label{ color: var(--gray2); }

.step-bar__line {
  width: 32px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
}
.step-bar__line--done {
  background: linear-gradient(90deg, var(--pink), var(--orange));
}

/* ---- Футер ---- */
.footer {
  background: var(--dark);
  padding: 48px 6% 24px;
}

.footer__top {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 700px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer__top { grid-template-columns: 1fr; }
}

.footer__logo {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--pink);
  margin-bottom: 8px;
}

.footer__desc {
  font-size: .82rem;
  color: rgba(255,255,255,.28);
  line-height: 1.7;
}

.footer__col h4 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.28);
  margin-bottom: 14px;
}

.footer__col a {
  display: block;
  font-size: .84rem;
  color: rgba(255,255,255,.28);
  text-decoration: none;
  margin-bottom: 8px;
  transition: .15s;
}
.footer__col a:hover { color: var(--white); }

.footer__bottom {
  max-width: 1140px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer__bottom p {
  font-size: .78rem;
  color: rgba(255,255,255,.18);
}
