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

html {
  scroll-behavior: smooth;
}

:root {
  --bg-1: #0d0b07;
  --bg-2: #161009;
  --bg-3: #1e1710;
  --surface: rgba(28, 22, 12, 0.78);
  --surface-strong: rgba(22, 16, 8, 0.92);
  --border: rgba(255, 191, 105, 0.14);
  --border-strong: rgba(255, 191, 105, 0.26);
  --text-main: #fff5e6;
  --text-soft: #d4c4a8;
  --text-dim: #a89878;
  --accent: #f0a830;
  --accent-2: #e8c547;
  --accent-3: #d4763a;
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.42);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.32);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 15% 10%, rgba(240, 168, 48, 0.07), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(212, 118, 58, 0.06), transparent 26%),
    radial-gradient(circle at 50% 95%, rgba(232, 197, 71, 0.05), transparent 35%),
    linear-gradient(180deg, #0a0806 0%, #100d08 42%, #0d0a06 100%);
  background-attachment: fixed;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 11, 7, 0.76);
  border-bottom: 1px solid rgba(255, 191, 105, 0.10);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 18px;
}

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

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.site-nav__link {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  transition: width 0.25s ease;
}

.site-nav__link:hover { color: #fff; }
.site-nav__link:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.header-btn--ghost {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.header-btn--main {
  color: var(--bg-1);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px rgba(240, 168, 48, 0.18);
}

.burger {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--bg-1);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* LANG SWITCHER */
.lang-switcher {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 191, 105, 0.06);
  border: 1px solid var(--border);
}

.lang-switcher__btn {
  min-width: 44px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--text-soft);
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}

.lang-switcher__btn:hover { color: #fff; }

.lang-switcher__btn.is-active {
  color: var(--bg-1);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 14px rgba(240, 168, 48, 0.22);
}

/* MOBILE MENU */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(13, 11, 7, 0.98), rgba(16, 13, 8, 0.98));
  transition: max-height 0.35s ease;
  border-top: 1px solid var(--border);
}

.mobile-menu.is-open { max-height: 560px; }

.mobile-menu__inner {
  padding-top: 16px;
  padding-bottom: 24px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav__link {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  transition: transform 0.2s ease, background 0.2s ease;
}

.mobile-nav__link:hover {
  transform: translateX(2px);
  background: rgba(240, 168, 48, 0.08);
}

.mobile-menu__top {
  margin-bottom: 14px;
}

.mobile-menu__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.mobile-menu__actions .header-btn { width: 100%; }

body.menu-open { overflow: hidden; }

/* HERO */
.hero-ra {
  position: relative;
  z-index: 1;
  padding: 34px 0 24px;
}

.hero-ra__banner {
  position: relative;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: stretch;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(13, 11, 7, 0.88), rgba(28, 22, 12, 0.72)),
    rgba(16, 13, 8, 0.85);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.hero-ra__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.30;
  filter: saturate(1.1) contrast(1.05) sepia(0.12);
}

.hero-ra__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 11, 7, 0.96) 0%, rgba(13, 11, 7, 0.88) 32%, rgba(13, 11, 7, 0.52) 64%, rgba(13, 11, 7, 0.16) 100%),
    radial-gradient(circle at 12% 22%, rgba(240, 168, 48, 0.08), transparent 24%),
    radial-gradient(circle at 72% 68%, rgba(212, 118, 58, 0.10), transparent 30%);
  z-index: 1;
}

.hero-ra__content {
  position: relative;
  z-index: 2;
  padding: 56px 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 780px;
}

.hero-ra__eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 34px;
  padding: 0 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(240, 168, 48, 0.10);
  border: 1px solid rgba(240, 168, 48, 0.18);
  color: #ffd68a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-ra__title {
  margin: 0 0 16px;
  max-width: 720px;
  font-size: 56px;
  line-height: 1.0;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fffaf0;
}

.hero-ra__text {
  margin: 0;
  max-width: 600px;
  font-size: 17px;
  line-height: 1.78;
  color: var(--text-soft);
}

.hero-ra__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-ra__btn {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.hero-ra__btn--primary {
  color: var(--bg-1);
  background: linear-gradient(135deg, var(--accent), var(--accent-2) 60%, var(--accent-3));
  box-shadow: 0 14px 30px rgba(240, 168, 48, 0.20);
}

.hero-ra__side {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
}

.hero-ra__side-card {
  width: 100%;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(13, 11, 7, 0.60);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}

.hero-ra__side-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(212, 118, 58, 0.14);
  color: #ffc68a;
  font-size: 12px;
  font-weight: 800;
}

.hero-ra__side-list { display: grid; gap: 12px; }

.hero-ra__side-item {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 191, 105, 0.08);
}

.hero-ra__side-item:last-child { padding-bottom: 0; border-bottom: 0; }

.hero-ra__side-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.3;
  color: #fffaf0;
}

.hero-ra__side-item span {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
}

.hero-ra__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.hero-ra__stat {
  position: relative;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(28, 22, 12, 0.90), rgba(22, 16, 8, 0.90));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.hero-ra__stat::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  opacity: 0.85;
}

.hero-ra__stat span {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.hero-ra__stat strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
  color: #fffaf0;
}

/* CONTENT SECTION */
.content-section {
  position: relative;
  z-index: 1;
  padding: 24px 0 30px;
}

.content-box {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(22, 18, 10, 0.94), rgba(16, 13, 8, 0.96));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.content-main {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.content-main > *:first-child { margin-top: 0; }
.content-main > *:last-child { margin-bottom: 0; }

.content-main h1, .content-main h2, .content-main h3, .content-main h4 {
  margin-top: 0;
  color: #fffaf0;
  letter-spacing: -0.03em;
}

.content-main h1 { margin-bottom: 22px; font-size: 44px; line-height: 1.06; font-weight: 900; }
.content-main h2 { margin-bottom: 16px; font-size: 32px; line-height: 1.12; font-weight: 900; }
.content-main h3 { margin-top: 32px; margin-bottom: 12px; font-size: 23px; line-height: 1.22; font-weight: 800; }
.content-main h4 { margin-top: 26px; margin-bottom: 10px; font-size: 19px; line-height: 1.28; font-weight: 800; }

.content-main p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-soft);
}

.content-main strong { color: #ffffff; font-weight: 800; }
.content-main em { color: #ffd68a; font-style: italic; }

.content-main a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-main a:hover { color: #ffd68a; }

.content-main ul, .content-main ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.content-main li {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.72;
  color: var(--text-soft);
}

.content-main li::marker { color: var(--accent); font-weight: 700; }

.content-main blockquote {
  margin: 26px 0;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--accent);
  background: linear-gradient(180deg, rgba(240, 168, 48, 0.06), rgba(212, 118, 58, 0.03));
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.content-main blockquote p {
  margin: 0;
  font-size: 17px;
  line-height: 1.76;
  color: #ffe8c4;
}

.content-main img {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 28px auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.content-main table {
  display: block;
  width: 100%;
  overflow-x: auto;
  margin: 22px 0 26px;
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}

.content-main thead { background: rgba(240, 168, 48, 0.08); }

.content-main tr { border-bottom: 1px solid rgba(255, 191, 105, 0.06); }
.content-main tr:last-child { border-bottom: 0; }

.content-main th, .content-main td {
  min-width: 170px;
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.6;
}

.content-main th { font-weight: 800; color: #fffaf0; white-space: nowrap; width: 1%; }
.content-main td { color: var(--text-soft); }

.content-main hr {
  margin: 30px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.content-main p + h2, .content-main ul + h2, .content-main ol + h2,
.content-main blockquote + h2, .content-main table + h2, .content-main img + h2 { margin-top: 42px; }

.content-main p + h3, .content-main ul + h3, .content-main ol + h3,
.content-main blockquote + h3, .content-main table + h3, .content-main img + h3 { margin-top: 32px; }

/* AUTHOR */
.author-box-section {
  padding: 12px 0 30px;
  position: relative;
  z-index: 1;
}

.author-box {
  padding: 24px 26px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(24, 19, 10, 0.94), rgba(16, 13, 8, 0.96));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.author-box__tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.author-box__tab {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.author-box__tab--active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--bg-1);
  border-color: transparent;
}

.author-box__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 18px;
  margin-bottom: 12px;
}

.author-box__name {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 900;
  color: #fffaf0;
}

.author-box__date {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
}

.author-box__text {
  margin: 0;
  max-width: 1080px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-soft);
}

/* FOOTER */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 14px 0 28px;
}

.site-footer__box {
  padding: 30px 28px 22px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(18, 15, 8, 0.96), rgba(10, 9, 5, 0.98));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: start;
}

.site-footer__logo {
  display: inline-flex;
  margin-bottom: 16px;
}

.site-footer__logo img { height: 50px; width: auto; object-fit: contain; }

.site-footer__description {
  margin: 0;
  max-width: 600px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-soft);
}

.site-footer__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.site-footer__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(240, 168, 48, 0.08);
  border: 1px solid var(--border);
  color: #ffd68a;
  font-size: 12px;
  font-weight: 800;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.site-footer__col h3, .site-footer__license h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  color: #fffaf0;
}

.site-footer__col ul { margin: 0; padding: 0; list-style: none; }
.site-footer__col li + li { margin-top: 8px; }

.site-footer__col a, .site-footer__col span {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
  transition: color 0.2s ease;
}

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

.site-footer__license {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.site-footer__license p {
  margin: 0;
  max-width: 1100px;
  font-size: 14px;
  line-height: 1.78;
  color: var(--text-soft);
}

.site-footer__license strong { color: #ffffff; }

.site-footer__bottom {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer__bottom p {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
}

/* RESPONSIVE */
@media (max-width: 1080px) {
  .site-footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .site-nav, .header-actions .header-btn, .header-actions .lang-switcher { display: none; }
  .header-actions { margin-left: auto; }
  .burger { display: inline-flex; margin-left: auto; }

  .hero-ra { padding: 22px 0 20px; }
  .hero-ra__banner { grid-template-columns: 1fr; min-height: auto; }

  .hero-ra__overlay {
    background:
      linear-gradient(180deg, rgba(13, 11, 7, 0.80) 0%, rgba(13, 11, 7, 0.90) 48%, rgba(13, 11, 7, 0.96) 100%),
      radial-gradient(circle at 14% 16%, rgba(240, 168, 48, 0.06), transparent 22%);
  }

  .hero-ra__content { padding: 32px 22px 20px; max-width: 100%; }
  .hero-ra__title { font-size: 40px; }
  .hero-ra__text { font-size: 16px; }
  .hero-ra__side { padding: 0 22px 22px; justify-content: stretch; }
  .hero-ra__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .content-box { padding: 20px; border-radius: var(--radius-lg); }
  .content-main h1 { font-size: 36px; }
  .content-main h2 { font-size: 28px; }
  .content-main h3 { font-size: 21px; }
  .content-main p, .content-main li, .content-main blockquote p, .author-box__text { font-size: 16px; }
  .author-box__name { font-size: 25px; }
}

@media (min-width: 981px) {
  .mobile-menu { display: none; }
}

@media (max-width: 760px) {
  .site-footer__nav { grid-template-columns: 1fr; gap: 18px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .header-inner { min-height: 70px; }
  .site-logo img { height: 42px; }
  .burger { width: 44px; height: 44px; border-radius: 10px; }

  .hero-ra__banner, .content-box, .author-box, .site-footer__box { border-radius: 18px; }
  .hero-ra__content { padding: 24px 16px 16px; }
  .hero-ra__title { font-size: 30px; }
  .hero-ra__text { font-size: 15px; line-height: 1.7; }
  .hero-ra__actions { flex-direction: column; }
  .hero-ra__btn { width: 100%; }
  .hero-ra__side { padding: 0 16px 16px; }
  .hero-ra__side-card { padding: 16px; border-radius: 16px; }
  .hero-ra__stats { grid-template-columns: 1fr; }
  .hero-ra__stat { border-radius: 16px; padding: 16px; }

  .content-section { padding: 18px 0 24px; }
  .content-box { padding: 14px; }
  .content-main h1 { font-size: 28px; }
  .content-main h2 { font-size: 24px; margin-bottom: 12px; }
  .content-main h3 { margin-top: 26px; font-size: 20px; }
  .content-main p, .content-main li, .content-main blockquote p, .author-box__text { font-size: 15px; line-height: 1.66; }
  .content-main ul, .content-main ol { padding-left: 18px; }
  .content-main blockquote { padding: 16px 14px; border-radius: 14px; }
  .content-main img { margin: 20px auto; border-radius: 14px; }
  .content-main th, .content-main td { min-width: 140px; padding: 12px; font-size: 14px; }

  .author-box-section { padding: 10px 0 24px; }
  .author-box { padding: 16px 14px; }
  .author-box__tabs { gap: 6px; margin-bottom: 12px; }
  .author-box__tab { min-height: 30px; padding: 0 10px; font-size: 11px; }
  .author-box__name { font-size: 22px; }
  .author-box__date { font-size: 12px; }

  .site-footer { padding: 14px 0 22px; }
  .site-footer__box { padding: 18px 14px 14px; }
  .site-footer__logo img { height: 42px; }
  .site-footer__description, .site-footer__license p { font-size: 14px; line-height: 1.68; }
}
