:root {
  --primary-color: #d90404;
  --primary-dark: #8f0303;
  --secondary-color: #f25a1d;
  --accent-color: #f6c453;
  --dark-color: #090d1f;
  --light-color: #f7f8fb;
  --text-color: #1f2937;
  --muted-color: #687385;
  --border-color: #e6e9ef;
  --white-color: #ffffff;
  --shadow-soft: 0 18px 45px rgba(9, 13, 31, .12);
  --shadow-hover: 0 22px 55px rgba(217, 4, 4, .18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-color);
  background: var(--white-color);
  font-family: "Be Vietnam Pro", "Inter", Arial, sans-serif;
  line-height: 1.7;
  overflow-x: clip;
}

.hero > .container,
.page-hero > .container,
.section-padding > .container,
.site-footer > .container {
  overflow-x: clip;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

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

.section-padding {
  padding: 92px 0;
}

.section-soft {
  background: var(--light-color);
}

.section-dark {
  color: #fff;
  background: radial-gradient(circle at 20% 20%, rgba(246, 196, 83, .18), transparent 30%),
    linear-gradient(135deg, #090d1f 0%, #200b16 52%, #5b0303 100%);
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--primary-color);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-title {
  color: var(--dark-color);
  font-weight: 900;
  line-height: 1.24;
  margin-bottom: 16px;
}

.section-dark .section-title,
.section-dark .eyebrow {
  color: #fff;
}

.section-lead {
  color: var(--muted-color);
  max-width: 760px;
  margin-bottom: 36px;
}

.section-dark .section-lead {
  color: rgba(255,255,255,.76);
}

.btn {
  border-radius: var(--radius);
  font-weight: 800;
  min-height: 44px;
  padding: .68rem 1.05rem;
}

.btn-primary {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  box-shadow: 0 12px 28px rgba(217, 4, 4, .25);
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--primary-dark);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: rgba(217, 4, 4, .35);
}

.btn-outline-primary:hover {
  border-color: var(--primary-color);
  background: var(--primary-color);
}

.btn-light {
  color: var(--dark-color);
}

.focus-ring,
.form-control:focus,
.form-select:focus,
.btn:focus-visible,
.nav-link:focus-visible {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 .2rem rgba(246, 196, 83, .35);
}

.topbar {
  background: var(--dark-color);
  color: rgba(255,255,255,.86);
  font-size: .88rem;
}

.topbar a {
  color: rgba(255,255,255,.86);
}

.topbar a:hover {
  color: var(--accent-color);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(230,233,239,.9);
  backdrop-filter: blur(16px);
  transition: box-shadow .25s ease, transform .25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px rgba(9, 13, 31, .08);
}

.navbar-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-text {
  color: var(--dark-color);
  font-weight: 900;
  line-height: 1.05;
}

.brand-subtitle {
  display: block;
  color: var(--muted-color);
  font-size: .74rem;
  font-weight: 600;
}

.navbar-nav .nav-link {
  color: var(--dark-color);
  font-size: .94rem;
  font-weight: 750;
  padding: .75rem .7rem;
  border-radius: var(--radius);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color);
  background: rgba(217, 4, 4, .07);
}

.offcanvas {
  max-width: 340px;
}

.offcanvas:not(.show):not(.showing) {
  display: none;
}

.hero {
  position: relative;
  color: #fff;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(246,196,83,.24), transparent 26%),
    radial-gradient(circle at 12% 78%, rgba(242,90,29,.25), transparent 30%),
    linear-gradient(135deg, #070b18 0%, #190916 48%, #780404 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.88), transparent 88%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -130px;
  top: 110px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(246,196,83,.32);
  border-radius: 50%;
  box-shadow: 0 0 90px rgba(246,196,83,.2);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-title {
  max-width: 900px;
  font-size: clamp(2.65rem, 4.7vw, 5.15rem);
  font-weight: 950;
  line-height: 1.14;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.hero-title-main,
.hero-title-accent {
  display: block;
}

.hero-title-accent {
  color: var(--accent-color);
  margin-top: .04em;
}

.hero-copy {
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  max-width: 680px;
}

.hero-media {
  position: relative;
  max-width: 465px;
  margin-left: auto;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 11% -8% -4% 8%;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(246,196,83,.95), rgba(217,4,4,.78));
  filter: blur(20px);
  opacity: .48;
}

.hero-media img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 28px 70px rgba(0,0,0,.42);
}

.hero-badge {
  position: absolute;
  left: -20px;
  bottom: 28px;
  z-index: 2;
  padding: 16px 18px;
  color: var(--dark-color);
  background: var(--accent-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  font-weight: 850;
}

.page-hero {
  position: relative;
  padding: 82px 0 72px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 25%, rgba(246,196,83,.25), transparent 26%),
    linear-gradient(135deg, #090d1f, #3a0710 58%, #d90404);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: .52;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-weight: 950;
  line-height: 1.08;
}

.breadcrumb {
  margin-bottom: 0;
}

.breadcrumb-item,
.breadcrumb-item a {
  color: rgba(255,255,255,.82);
}

.breadcrumb-item.active,
.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,.58);
}

.phoenix-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(9,13,31,.06);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.phoenix-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217,4,4,.28);
  box-shadow: var(--shadow-hover);
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--light-color);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.phoenix-card:hover .card-img-wrap img {
  transform: scale(1.04);
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-color);
  background: rgba(217, 4, 4, .08);
  border: 1px solid rgba(217, 4, 4, .14);
  border-radius: 999px;
  padding: .34rem .65rem;
  font-size: .78rem;
  font-weight: 800;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted-color);
  font-size: .9rem;
}

.meta-line span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.price {
  color: var(--primary-color);
  font-weight: 900;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: var(--radius);
  font-size: 1.35rem;
  box-shadow: 0 14px 28px rgba(217,4,4,.22);
}

.stat-box {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(9,13,31,.05);
}

.stat-box p {
  min-height: 58px;
}

.stat-number {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.timeline {
  position: relative;
  display: grid;
  gap: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--primary-color), var(--accent-color));
}

.timeline-item {
  position: relative;
  padding-left: 56px;
}

.timeline-dot {
  position: absolute;
  left: 8px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-color);
  border: 5px solid var(--primary-color);
  box-shadow: 0 0 0 6px rgba(217,4,4,.12);
}

.filter-bar {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(9,13,31,.06);
}

.empty-state {
  padding: 46px 20px;
  text-align: center;
  color: var(--muted-color);
  background: var(--light-color);
  border: 1px dashed #cbd2df;
  border-radius: var(--radius);
}

.video-thumb {
  position: relative;
  cursor: pointer;
}

.video-feature-copy {
  padding: 34px;
  background:
    radial-gradient(circle at 100% 0, rgba(246, 196, 83, .22), transparent 34%),
    var(--white-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(9,13,31,.06);
}

.video-side-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(246, 196, 83, .22), transparent 32%),
    var(--white-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(9,13,31,.06);
}

.video-list-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  padding: 12px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.video-list-item:hover,
.video-list-item:focus {
  transform: translateY(-3px);
  border-color: rgba(217,4,4,.28);
  box-shadow: 0 14px 26px rgba(9,13,31,.08);
}

.video-list-thumb {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--light-color);
}

.video-list-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.video-list-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.video-list-category {
  color: var(--primary-color);
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.video-list-content strong {
  color: var(--dark-color);
  font-size: 1rem;
  line-height: 1.3;
}

.video-list-content small {
  display: -webkit-box;
  margin-top: 4px;
  color: var(--muted-color);
  line-height: 1.45;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.play-button-sm {
  width: 36px;
  height: 36px;
  box-shadow: 0 0 0 6px rgba(255,255,255,.22);
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62px;
  height: 62px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(217,4,4,.95);
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(255,255,255,.22);
}

.gallery-photo {
  position: relative;
  border: 0;
  padding: 0;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--light-color);
}

.gallery-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .25s ease;
}

.gallery-photo:hover img,
.gallery-photo:focus img {
  transform: scale(1.04);
}

.article-content {
  max-width: 780px;
  font-size: 1.03rem;
}

.article-content h2,
.article-content h3 {
  margin-top: 2rem;
  color: var(--dark-color);
  font-weight: 900;
  line-height: 1.25;
}

.article-content p {
  margin-bottom: 1.15rem;
}

.article-content blockquote {
  margin: 28px 0;
  padding: 24px;
  color: var(--dark-color);
  background: #fff7df;
  border-left: 5px solid var(--accent-color);
  border-radius: var(--radius);
  font-weight: 700;
}

.toc-box,
.sidebar-box {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(9,13,31,.05);
}

.toc-box a,
.sidebar-box a {
  color: var(--text-color);
}

.toc-box a:hover,
.sidebar-box a:hover {
  color: var(--primary-color);
}

.testimonial-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: stretch;
  max-width: 980px;
  text-align: left;
}

.testimonial-avatar-wrap {
  position: relative;
  min-height: 360px;
  background:
    radial-gradient(circle at 70% 20%, rgba(246, 196, 83, .26), transparent 28%),
    linear-gradient(135deg, var(--dark-color), var(--primary-color));
}

.testimonial-avatar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 168px;
  height: 168px;
  transform: translate(-50%, -50%);
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid rgba(255,255,255,.9);
  box-shadow: 0 18px 38px rgba(0,0,0,.22);
}

.testimonial-content {
  padding: 46px 54px;
}

.home-testimonial-title {
  font-size: clamp(2.25rem, 4vw, 4.35rem);
  line-height: 1.14;
}

.testimonial-mini-card {
  padding: 24px;
}

.testimonial-mini-avatar {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(246,196,83,.45);
  box-shadow: 0 10px 22px rgba(9,13,31,.1);
}

.testimonial-mini-text {
  margin: 8px 0 0;
  color: var(--text-color);
  font-size: .98rem;
  line-height: 1.65;
}

.form-error {
  display: block;
  min-height: 20px;
  color: var(--primary-color);
  font-size: .82rem;
  margin-top: 4px;
}

.site-footer {
  color: rgba(255,255,255,.78);
  background: #070b18;
}

.site-footer a {
  color: rgba(255,255,255,.78);
}

.site-footer a:hover {
  color: var(--accent-color);
}

.footer-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.back-to-top,
.mobile-float {
  position: fixed;
  z-index: 1030;
}

.back-to-top {
  right: 18px;
  bottom: 88px;
  width: 46px;
  height: 46px;
  display: none;
  place-items: center;
  padding: 0;
}

.mobile-float {
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: none;
  gap: 10px;
}

.mobile-float .btn {
  flex: 1;
}

.toast-container {
  z-index: 1080;
}

.object-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ratio-hero {
  aspect-ratio: 16 / 11;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
