/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-height);
  background: rgba(251, 247, 239, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 64, 128, 0.1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-sm);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.site-header__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--brand-soft);
}

.site-header__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header__nav {
  display: none;
  align-items: center;
  gap: var(--space-md);
}

.site-header__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.site-header__link {
  font-size: 14px;
  color: var(--nav-text);
  transition: color 180ms ease;
}

.site-header__link:hover,
.site-header__link:focus-visible {
  color: var(--brand);
}

.site-header__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  color: var(--brand-deep);
}

.site-header__toggle-icon {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.site-header__toggle-icon::before,
.site-header__toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.site-header__toggle-icon::before {
  top: -6px;
}

.site-header__toggle-icon::after {
  top: 6px;
}

.site-header__mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md) 0 var(--space-sm);
  border-top: 1px solid var(--line);
}

.site-header__mobile-nav.is-open {
  display: flex;
}

@media (min-width: 768px) {
  .site-header__nav {
    display: flex;
  }

  .site-header__toggle {
    display: none;
  }

  .site-header__mobile-nav {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 800;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  text-align: center;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  box-shadow: 0 20px 40px rgba(0, 64, 128, 0.3);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  color: var(--brand-deep);
}

.btn--nav {
  min-height: 40px;
  padding: 0 18px;
  background: transparent;
  border: 1px solid var(--brand);
  color: var(--brand-deep);
  font-weight: 700;
}

.btn--full {
  width: 100%;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.text-link {
  color: var(--brand);
  font-weight: 700;
  font-size: 15px;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
}

/* Cards */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  padding: 26px;
}

.card--gradient {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(231, 240, 249, 0.72));
}

.card--dark {
  background: var(--brand-deep);
  color: var(--white);
  box-shadow: var(--shadow);
  padding: 34px;
  border: none;
}

.card--dark h3 {
  color: var(--white);
}

.card__num {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: var(--warm);
  margin-bottom: var(--space-xs);
}

.card__title {
  margin-bottom: var(--space-xs);
}

.card__desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.card--dark .card__desc {
  color: rgba(255, 255, 255, 0.78);
}

/* Numbered list */
.num-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.num-list__item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.num-list__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 50%;
}

.num-list__content h3 {
  margin-bottom: 4px;
}

/* Bullet list */
.bullet-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.bullet-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warm);
}

.card--dark .bullet-list li {
  color: rgba(255, 255, 255, 0.85);
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.stat {
  text-align: center;
}

.stat__value {
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 900;
  line-height: 1.18;
  color: var(--brand);
}

.stat__value--warm {
  color: var(--warm);
}

.stat__label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

@media (min-width: 768px) {
  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.tabs__btn {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--nav-text);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.tabs__btn:hover,
.tabs__btn:focus-visible {
  color: var(--brand);
  border-color: var(--brand);
}

.tabs__btn.is-active {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 760px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.faq-list summary {
  padding: 18px 22px;
  font-weight: 700;
  color: var(--brand-deep);
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--warm);
  font-weight: 900;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  padding: 0 22px 18px;
  color: var(--muted);
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 15;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: var(--white);
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  transform: translateY(-2px);
}
