:root {
  --bg: #120d09;
  --bg-soft: #1b130d;
  --surface: rgba(31, 21, 13, 0.82);
  --surface-strong: rgba(36, 24, 15, 0.96);
  --card: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #fff4ea;
  --muted: #d1b8a6;
  --primary: #ff7a18;
  --primary-2: #ffb347;
  --accent: #ff5a36;
  --danger-soft: #ff8b6b;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
  --radius: 22px;
  --radius-sm: 16px;
  --container: 1240px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 122, 24, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 179, 71, 0.1), transparent 25%),
    radial-gradient(circle at bottom center, rgba(255, 90, 54, 0.08), transparent 28%),
    linear-gradient(180deg, #0f0b08 0%, #18110c 100%);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 122, 24, 0.12), transparent 18%),
    radial-gradient(circle at 82% 20%, rgba(255, 179, 71, 0.09), transparent 18%),
    radial-gradient(circle at 50% 78%, rgba(255, 90, 54, 0.07), transparent 20%);
  z-index: -1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(16, 11, 8, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header.scrolled {
  background: rgba(16, 11, 8, 0.92);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.24);
}

.header-container {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.site-logo img,
.footer-logo img {
  width: auto;
  height: 44px;
  object-fit: contain;
}

.site-nav {
  margin-left: auto;
}

.nav-list,
.mobile-nav-list,
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-list a {
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.nav-list a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 30px rgba(255, 122, 24, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 15px 35px rgba(255, 122, 24, 0.36);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.burger span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: var(--transition);
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(17, 12, 9, 0.96);
}

.mobile-menu.open {
  display: block;
  animation: fadeDown 0.35s ease;
}

.mobile-menu-inner {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 24px;
}

.mobile-nav-list {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.mobile-nav-list a {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
}

.mobile-actions {
  display: grid;
  gap: 12px;
}

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.hero-content,
.hero-card,
.article-shell,
.footer-col {
  backdrop-filter: blur(12px);
}

.hero-content {
  position: relative;
  padding: 38px;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}

.hero-badge {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff1de;
  background: rgba(255, 122, 24, 0.12);
  border: 1px solid rgba(255, 122, 24, 0.22);
  margin-bottom: 18px;
}

.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0;
  max-width: 680px;
  font-size: 18px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.feature-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.feature-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.feature-card span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.hero-visual {
  position: relative;
}

.glow-card {
  position: relative;
  overflow: hidden;
}

.glow-card::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -10%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 122, 24, 0.18);
  filter: blur(40px);
}

.glow-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 179, 71, 0.14);
  filter: blur(45px);
}

.hero-card {
  position: relative;
  min-height: 500px;
  padding: 30px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)),
    rgba(24, 16, 10, 0.9);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}

.stat-chip {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 90, 54, 0.14);
  border: 1px solid rgba(255, 90, 54, 0.22);
  color: #fff0e8;
  font-size: 13px;
  font-weight: 700;
}

.hero-card-title {
  margin-top: 22px;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  max-width: 300px;
}

.hero-lines {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.hero-lines span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,122,24,0.95), rgba(255,179,71,0.55));
  animation: pulseWidth 4s ease-in-out infinite;
}

.hero-lines span:nth-child(2) {
  width: 82%;
  animation-delay: 0.4s;
}

.hero-lines span:nth-child(3) {
  width: 68%;
  animation-delay: 0.8s;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.mini-box {
  position: relative;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.mini-box small {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-2);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mini-box strong {
  font-size: 16px;
  line-height: 1.4;
}

/* Article shell */
.content-section {
  padding: 24px 0 70px;
}

.article-shell {
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}

/* Стилі для тегів без класів */
article {
  color: var(--text);
  overflow-x: hidden;
}

article > *:first-child {
  margin-top: 0;
}

article h1,
article h2,
article h3 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

article h1 {
  margin: 0 0 24px;
  font-size: clamp(32px, 4vw, 54px);
}

article h2 {
  margin: 42px 0 18px;
  font-size: clamp(26px, 3vw, 38px);
}

article h3 {
  margin: 28px 0 14px;
  font-size: clamp(21px, 2.2vw, 28px);
}

article p {
  margin: 0 0 18px;
  color: #f1dccd;
  font-size: 17px;
  line-height: 1.8;
}

article ul {
  margin: 0 0 20px;
  padding-left: 22px;
}

article li {
  margin-bottom: 10px;
  color: #f4dfd2;
}

article strong {
  color: #ffffff;
}

article blockquote {
  margin: 28px 0;
  padding: 24px 24px 24px 22px;
  border-left: 4px solid var(--primary);
  border-radius: 0 18px 18px 0;
  background: rgba(255,255,255,0.045);
  color: #fff1e7;
  font-size: 18px;
  line-height: 1.7;
}

article table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
}

article thead {
  background: rgba(255, 122, 24, 0.14);
}

article tbody,
article thead {
  width: 100%;
}

article th,
article td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

article th {
  width: 1%;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

article td {
  color: #f0dccf;
  font-size: 15px;
}

article tbody tr:hover {
  background: rgba(255,255,255,0.03);
}

article table::-webkit-scrollbar {
  height: 10px;
}

article table::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

article table::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  border-radius: 999px;
}

article img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 28px auto;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

article p img {
  margin: 24px auto;
}

/* Footer */
.site-footer {
  position: relative;
  padding: 34px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(16, 11, 8, 0.74);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 22px;
}

.footer-col {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p,
.footer-col p,
.site-footer li a {
  color: var(--muted);
}

.footer-col h3 {
  margin: 0 0 16px;
  font-size: 18px;
}

.site-footer li + li {
  margin-top: 10px;
}

.site-footer li a:hover {
  color: #fff;
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 16px;
}

.footer-btn {
  margin-top: 18px;
}

.footer-bottom {
  padding-top: 22px;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255,255,255,0.58);
  text-align: center;
  font-size: 14px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.15s;
}

/* Animations */
@keyframes pulseWidth {
  0%, 100% {
    width: 100%;
    opacity: 0.85;
  }
  50% {
    width: 72%;
    opacity: 1;
  }
}

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

/* Responsive */
@media (max-width: 1100px) {
  .hero-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: auto;
  }
}

@media (max-width: 940px) {
  .site-nav,
  .header-actions {
    display: none;
  }

  .burger {
    display: inline-flex;
    margin-left: auto;
  }

  .header-container {
    min-height: 78px;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-content,
  .article-shell,
  .footer-col,
  .hero-card {
    padding: 24px;
  }

  .hero-features,
  .hero-mini-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, var(--container));
  }

  .site-logo img,
  .footer-logo img {
    height: 38px;
  }

  .hero h2 {
    font-size: 32px;
  }

  .hero p,
  article p,
  article blockquote {
    font-size: 16px;
  }

  article h1 {
    font-size: 32px;
  }

  article h2 {
    font-size: 25px;
  }

  article h3 {
    font-size: 21px;
  }

  article th,
  article td {
    padding: 13px 12px;
    font-size: 14px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  article img {
    margin: 22px auto;
    border-radius: 16px;
  }
}