/* =====================================================
   RESET
===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =====================================================
   BASE
===================================================== */
html, body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #1e1e1e;
  color: #cfcfcf;
  line-height: 1.65;
}

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

a {
  color: #cfcfcf;
  text-decoration: none;
}

a:hover {
  color: #ff7a18;
}

/* =====================================================
   HEADER
===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.35s ease;
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.header-inner {
  margin: 16px auto 40px;
  max-width: 1100px;
  padding: 14px 22px;
  background: rgba(30, 30, 30, 0.65);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,122,24,0.35);
  border-radius: 18px;
  box-shadow:
    0 0 25px rgba(0,0,0,0.6),
    inset 0 0 20px rgba(255,122,24,0.06);
}

/* =====================================================
   NAVIGATION
===================================================== */
.nav-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
}

.logo {
  font-weight: 700;
}

.logo-mark {
  color: #ff7a18;
}

.nav-links {
  display: flex;
  gap: 20px;
  margin-left: 24px;
}

/* только обычные ссылки, не кнопка */
.nav-links a:not(.order-btn) {
  position: relative;
  padding-bottom: 4px;
}

/* линия */
.nav-links a:not(.order-btn)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;

  width: 0;
  height: 2px;

  background: #ff7a18;
  border-radius: 2px;

  transform: translateX(-50%);
  transition: width 0.25s ease;
}

/* hover */
.nav-links a:not(.order-btn):hover::after {
  width: 100%;
}

.order-btn {
  margin-left: auto;
  background: #ff7a18;
  color: #111;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.order-btn:hover {
  background: #ff8a33;   /* чуть светлее / ярче */
  color: #cfcfcf;           /* всегда читаемый текст */
  box-shadow: 0 0 12px rgba(255, 122, 24, 0.6);
   transition: color 0.2s ease, box-shadow 0.2s ease;
}

/* desktop */
.mobile-order {
  display: none;
}

/* =====================================================
   BURGER
===================================================== */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: #ff7a18;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.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);
}

/* =====================================================
   CONTAINER
===================================================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* =====================================================
   HERO
===================================================== */
.hero-title {
  margin: 40px 0 60px;
  max-width: 720px;
}

.hero-title h1 {
  font-size: 42px;
}

.hero-line {
  width: 120px;
  height: 2px;
  margin: 10px 0 18px;
  background: linear-gradient(90deg, transparent, #ff7a18, transparent);
}

.hero-subtitle {
  display: flex;
  flex-wrap: wrap;
  #gap: 10px;
  font-size: 14px;
  color: #aaa;
}

/* =====================================================
   ARTICLE SECTIONS (GLOBAL)
===================================================== */
.article-section {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin: 70px 0;
}

.article-section.right {
  flex-direction: row-reverse;
}

.article-section img {
  width: 420px;
  height: 280px;
  object-fit: cover;
  border-radius: 14px;
}


.article-section ul {
  margin-left: 1.5em;
}

.article-section li {
  margin-bottom: 6px;
}

.article-section h2 {
  margin-bottom: 18px;
}

.article-section .image-group,
.article-section > img,
.article-section figure {
  margin-bottom: 18px;
}



/* =====================================================
   FOOTER
===================================================== */
.site-footer {
  margin: 80px auto 40px;
  max-width: 1100px;
  padding: 0 20px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 30px;
  background: #1c1c1c;
  border: 1px solid rgba(255,122,24,0.35);
  border-radius: 18px;
}

/* ===============================
   FOOTER NAV — VERTICAL LIST
================================ */

.site-footer .footer-col a {
  display: block;
  margin-bottom: 8px;
  line-height: 1.6;
}

/* =====================================================
   SCROLL TOP
===================================================== */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ff7a18;
  border: 1px solid rgba(255,122,24,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.25s;
  z-index: 999;
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-icon {
  width: 20px;
  height: 20px;
  stroke: #000;
  stroke-width: 3.5;
  fill: none;
}

/* =====================================================
   MOBILE (GLOBAL)
===================================================== */
@media (max-width: 768px) {

  body {
    font-size: 17px;
    line-height: 1.7;
  }

  .burger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 14px);
    right: -23px;
    width: 240px;
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 12px;
    background: rgba(30,30,30,0.95);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,122,24,0.35);
    border-radius: 14px;
  }

  .nav-links.open {
    display: flex;
  }

   .desktop-order {
    display: none;
  }
  .mobile-order {
    display: block;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* =====================================================
   HOME PAGE ONLY — CARD TOP
===================================================== */

body.home .article-section.card-top {
  display: block;
  width: 100%;
  max-width: none;
}

/* images row */
body.home .article-section.card-top .image-group {
  display: flex;
  gap: 16px;
  width: 100%;
  margin-bottom: 12px;
}

body.home .article-section.card-top .image-group figure {
  flex: 1;
  margin: 0;
}

body.home .article-section.card-top .image-group img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 14px;
}

body.home .article-section.card-top .image-group figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: #9a9a9a;
  text-align: center;
}

/* text block */
body.home .article-section.card-top > div:not(.image-group) {
  width: 100%;
  text-align: justify;
}

/* HOME MOBILE */
@media (max-width: 768px) {
  body.home .article-section.card-top .image-group {
    flex-direction: column;
  }

  body.home .article-section.card-top .image-group img {
    height: 220px;
  }

  body.home .article-section.card-top > div:not(.image-group) {
    width: 100%;
  }
}

/* =====================================================
   HISTORY PAGE — MOBILE CARD STACK
===================================================== */
@media (max-width: 768px) {

  /* карточки истории: всегда колонка */
  body:not(.home) .article-section {
    flex-direction: column;
    gap: 20px;
  }

  /* картинка сверху */
  body:not(.home) .article-section img {
    order: 1;
    width: 100%;
    height: 220px;
  }

  /* текст снизу */
  body:not(.home) .article-section > div {
    order: 2;
  }
}


/* =====================================================
   MATERIALS SUMMARY — FINAL BLOCK
===================================================== */

.materials-summary {
  margin: 100px 0 40px;
  max-width: 900px;
  padding: 0;
}

.neon-title {
  font-size: 34px;
  font-weight: 700;
  text-align: left;
  color: #ff7a18;
  #text-shadow: 0 0 6px rgba(255, 122, 24, 0.6), 0 0 18px rgba(255, 122, 24, 0.4);
}

.neon-line {
  width: 160px;
  height: 2px;
  margin: 14px 0 26px;
  background: linear-gradient(
    90deg,
    transparent,
    #ff7a18,
    transparent
  );
  box-shadow:
    0 0 6px rgba(255, 122, 24, 0.6);
}

.materials-summary p {
  margin-bottom: 18px;
}

.materials-summary ul {
  margin-left: 1.5em;
  margin-bottom: 24px;
}

.materials-summary li {
  margin-bottom: 8px;
}

.materials-summary p,
.materials-summary ul,
.materials-summary li {
  text-align: left;
}

.materials-summary-final {
  font-weight: 500;
  text-align: left;
  color: #e6e6e6;
}

/* =====================================================
   PAGE MENU
===================================================== */

.page-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 18px 0 28px;
  font-size: 14px;
}

.page-menu a {
  position: relative;
  color: #cfcfcf;
  padding-bottom: 4px;
}

/* постоянное подчеркивание */
.page-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 122, 24, 0.6);
}

/* hover */
.page-menu a:hover {
  color: #ff7a18;
}


/* =====================================================
   MATERIALS PAGE — CARD TOP
===================================================== */

body.materials .article-section {
  display: block;          /* отключаем горизонтальный flex */
}

body.materials .article-section .image-group {
  display: flex;
  gap: 16px;
  width: 100%;
  margin-bottom: 16px;
}

body.materials .article-section .image-group figure {
  #flex: 1;
  margin: 0;
}

body.materials .article-section .image-group img {
  #width: 100%;
  #height: 300px;
  object-fit: contain;
  border-radius: 14px;
}

body.materials .article-section .image-group figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: #9a9a9a;
  text-align: center;
}

/* текст */
body.materials .article-section > div:not(.image-group) {
  width: 100%;
  text-align: justify;
}

/* mobile */
@media (max-width: 768px) {
  body.materials .article-section .image-group {
    flex-direction: column;
  }

  body.materials .article-section .image-group img {
    height: 100%;
	#height: 220px;
  }

  body.materials .article-section > div:not(.image-group) {
    width: 100%;
  }
}

