:root {
  --brand: #FF6B35;
  --brand-dark: #E5501C;
  --brand-light: #FF8F66;
  --accent: #FFB347;
  --accent-2: #FF4E7D;
  --bg: #FFF9F4;
  --bg-alt: #FFF3EA;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.55);
  --border: rgba(255, 107, 53, 0.16);
  --border-strong: rgba(255, 107, 53, 0.3);
  --text: #2B1D14;
  --text-soft: #6B5546;
  --text-muted: #9A8578;
  --shadow-sm: 0 2px 8px rgba(180, 90, 40, 0.08);
  --shadow-md: 0 8px 28px rgba(180, 90, 40, 0.12);
  --shadow-lg: 0 18px 48px rgba(180, 90, 40, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --grad-brand: linear-gradient(135deg, #FF6B35 0%, #FF4E7D 55%, #FFB347 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(255, 179, 71, 0.12));
  --grad-hero: linear-gradient(135deg, #FF7A45 0%, #FF4E7D 45%, #FFB347 100%);
  --header-h: 72px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
  --brand: #FF8A5C;
  --brand-dark: #FF6B35;
  --brand-light: #FFA57F;
  --accent: #FFC266;
  --accent-2: #FF6B8F;
  --bg: #14100D;
  --bg-alt: #1B1512;
  --surface: rgba(38, 30, 26, 0.72);
  --surface-solid: #221B17;
  --surface-glass: rgba(45, 36, 31, 0.55);
  --border: rgba(255, 138, 92, 0.18);
  --border-strong: rgba(255, 138, 92, 0.34);
  --text: #F5EAE2;
  --text-soft: #C9B5A8;
  --text-muted: #9A8578;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.5);
  --grad-soft: linear-gradient(135deg, rgba(255, 138, 92, 0.14), rgba(255, 194, 102, 0.1));
  --grad-hero: linear-gradient(135deg, #B23A1C 0%, #8E2A4A 45%, #A66A1E 100%);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 107, 53, 0.1), transparent 60%),
    radial-gradient(1000px 520px at 100% 0%, rgba(255, 179, 71, 0.12), transparent 55%),
    radial-gradient(900px 700px at 50% 120%, rgba(255, 78, 125, 0.08), transparent 60%);
  background-attachment: fixed;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

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

a {
  color: var(--brand-dark);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover,
a:focus-visible {
  color: var(--accent-2);
}

h1,
h2,
h3,
h4 {
  line-height: 1.3;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
}

h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--brand-dark);
}

[data-theme="dark"] h3 {
  color: var(--brand);
}

p {
  margin: 0 0 1em;
  color: var(--text-soft);
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
  color: var(--text-soft);
}

li {
  margin-bottom: 0.45em;
}

strong {
  color: var(--text);
  font-weight: 700;
}

blockquote {
  margin: 1em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
  color: var(--text-soft);
  font-style: normal;
}

blockquote p {
  margin: 0;
}

time {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.visually-hidden,
.visually-hidden:not(:focus):not(:active) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--brand);
  color: #fff;
}

/* ============ HEADER ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  flex-shrink: 0;
}

.brand svg {
  border-radius: 10px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.brand:hover svg {
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 6px 18px rgba(255, 107, 53, 0.4);
}

.brand-name {
  font-size: 1.15rem;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: 0.02em;
}

#main-nav {
  flex: 1 1 auto;
}

#main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#main-nav a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

#main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

#main-nav a:hover,
#main-nav a:focus-visible {
  color: var(--brand-dark);
  background: var(--grad-soft);
}

#main-nav a:hover::after {
  width: 60%;
}

[data-theme="dark"] #main-nav a:hover {
  color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

#site-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

#site-search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.18);
}

#search-input {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  font-size: 0.88rem;
  color: var(--text);
  width: 180px;
  font-family: inherit;
  outline: none;
}

#search-input::placeholder {
  color: var(--text-muted);
}

#site-search button {
  border: 0;
  background: var(--grad-brand);
  color: #fff;
  padding: 8px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.25s var(--ease);
}

#site-search button:hover {
  filter: brightness(1.08);
}

#theme-toggle,
#menu-toggle {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  padding: 8px 14px;
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}

#theme-toggle:hover,
#menu-toggle:hover {
  background: var(--grad-brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.32);
}

#menu-toggle {
  display: none;
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px 0;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--text-muted);
  opacity: 0.6;
}

.breadcrumb a {
  color: var(--text-soft);
}

.breadcrumb a:hover {
  color: var(--brand-dark);
}

/* ============ MAIN LAYOUT ============ */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 20px 60px;
}

main > section {
  margin: 0 0 40px;
  padding: 32px clamp(18px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease),
    border-color 0.4s var(--ease);
  animation: fadeUp 0.7s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% entry 22%;
}

@supports not (animation-timeline: view()) {
  main > section {
    animation: none;
  }
}

main > section:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

/* ============ HERO ============ */
#hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--grad-hero);
  color: #FFF7E8;
  overflow: hidden;
  isolation: isolate;
  border: 0;
}

#hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, 0.28), transparent 70%) 20% 30% / 60% 60% no-repeat,
    radial-gradient(closest-side, rgba(255, 255, 255, 0.18), transparent 70%) 85% 75% / 55% 55% no-repeat;
  z-index: -1;
  animation: floatGlow 14s ease-in-out infinite alternate;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  z-index: -1;
  mask-image: linear-gradient(120deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(120deg, #000, transparent 70%);
}

#hero h1,
#hero p,
#hero .hero-lead {
  color: #FFF7E8;
}

#hero h1 {
  text-shadow: 0 2px 20px rgba(120, 40, 0, 0.28);
}

.hero-lead {
  font-size: 0.98rem;
  opacity: 0.94;
  max-width: 60ch;
}

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

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease), color 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: #FFF7E8;
  color: var(--brand-dark);
  box-shadow: 0 10px 26px rgba(80, 20, 0, 0.28);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 107, 53, 0.25) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 34px rgba(80, 20, 0, 0.36);
  color: var(--brand-dark);
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #FFF7E8;
  border-color: rgba(255, 247, 232, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.26);
  color: #FFF7E8;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(80, 20, 0, 0.3);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual figure {
  margin: 0;
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-8deg) rotateX(3deg);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  background: #1F2937;
}

.hero-visual figure:hover {
  transform: perspective(1000px) rotateY(0) rotateX(0) translateY(-6px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
}

.hero-visual svg {
  width: 100%;
  display: block;
}

.hero-visual figcaption {
  font-size: 0.8rem;
  text-align: center;
  padding: 10px;
  color: rgba(255, 247, 232, 0.8);
  background: rgba(0, 0, 0, 0.25);
}

/* ============ CAROUSEL ============ */
#banner-carousel {
  position: relative;
  overflow: hidden;
  background: var(--grad-soft);
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--brand) transparent;
}

.carousel-track::-webkit-scrollbar {
  height: 6px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: var(--grad-brand);
  border-radius: var(--radius-pill);
}

.carousel-slide {
  flex: 0 0 min(440px, 88%);
  scroll-snap-align: center;
  padding: 26px 26px 22px;
  border-radius: var(--radius-md);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.carousel-slide:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.carousel-slide h3 {
  margin-top: 0;
}

.carousel-slide p {
  margin-bottom: 0;
}

.carousel-controls {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.carousel-controls button {
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  color: var(--text-soft);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.28s var(--ease);
}

.carousel-controls button:hover {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 107, 53, 0.32);
}

.carousel-dots {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.carousel-dots button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  color: var(--text-soft);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.28s var(--ease);
}

.carousel-dots button[aria-selected="true"] {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
  transform: scale(1.08);
}

.carousel-dots button:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.carousel-dots button[aria-selected="true"]:hover {
  color: #fff;
}

/* ============ STATS ============ */
#stats {
  background: var(--grad-hero);
  color: #FFF7E8;
  border: 0;
  position: relative;
  overflow: hidden;
}

#stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.4;
  pointer-events: none;
}

#stats h2,
#stats h2::before {
  color: #FFF7E8;
}

#stats h2::before {
  background: #FFF7E8;
}

.stats-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}

.stats-list li {
  margin: 0;
  padding: 22px 16px;
  text-align: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.stats-list li:hover {
  transform: translateY(-6px) scale(1.02);
  background: rgba(255, 255, 255, 0.24);
}

.stats-list strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #FFF7E8;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.stats-list span {
  display: block;
  margin-top: 6px;
  font-size: 0.86rem;
  color: rgba(255, 247, 232, 0.86);
}

/* ============ LISTS / CARDS ============ */
#products ul,
#howto ul,
#howto ol,
#tips ul,
#contact ul,
#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
}

#products ul li {
  position: relative;
  padding: 14px 18px 14px 46px;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#products ul li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--grad-brand);
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.16);
}

#products ul li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

#howto ol {
  counter-reset: step;
  padding-left: 0;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 56px;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 800;
  font-size: 0.86rem;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

#howto ol li:hover {
  transform: translateX(6px);
  border-color: var(--border-strong);
}

#howto ul li,
#tips ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
}

#howto ul li::before,
#tips ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: rotate(45deg);
}

/* ============ NEWS ============ */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.news-list li {
  margin: 0;
}

.news-list article {
  height: 100%;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.news-list article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.news-list article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.news-list article:hover::before {
  transform: scaleX(1);
}

.news-list h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text);
}

.news-list article:hover h3 {
  color: var(--brand-dark);
}

[data-theme="dark"] .news-list article:hover h3 {
  color: var(--brand);
}

.news-list p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

/* ============ ARTICLES ============ */
#articles > article {
  padding: 22px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-left-color 0.35s var(--ease);
}

#articles > article:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--accent-2);
}

#articles > article h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
  color: var(--text);
}

#articles > article:hover h3 {
  color: var(--brand-dark);
}

[data-theme="dark"] #articles > article:hover h3 {
  color: var(--brand);
}

#articles > article p {
  font-size: 0.92rem;
}

#articles > article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--grad-soft);
  border: 1px solid var(--border);
  transition: all 0.28s var(--ease);
}

#articles > article a::after {
  content: "→";
  transition: transform 0.28s var(--ease);
}

#articles > article a:hover {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.32);
}

#articles > article a:hover::after {
  transform: translateX(4px);
}

/* ============ FAQ ============ */
#faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-solid);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}

#faq details[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  background: var(--grad-soft);
}

#faq details:hover {
  border-color: var(--brand);
}

#faq summary {
  cursor: pointer;
  padding: 16px 48px 16px 20px;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  position: relative;
  transition: color 0.25s var(--ease);
  user-select: none;
}

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

#faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

#faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

#faq summary:hover {
  color: var(--brand-dark);
}

[data-theme="dark"] #faq summary:hover {
  color: var(--brand);
}

#faq details p {
  padding: 0 20px 18px;
  margin: 0;
  font-size: 0.94rem;
  animation: fadeIn 0.4s var(--ease);
}

/* ============ CONTACT ============ */
#contact ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

#contact ul li {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--grad-soft);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#contact ul li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

#contact form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 18px;
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

#contact form label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-soft);
  align-self: end;
}

#contact form input,
#contact form textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
  resize: vertical;
}

#contact form input::placeholder,
#contact form textarea::placeholder {
  color: var(--text-muted);
}

#contact form input:focus,
#contact form textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface-solid);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.18);
}

#contact form label[for="contact-message"],
#contact form textarea,
#contact form button {
  grid-column: 1 / -1;
}

#contact form button {
  justify-self: start;
  padding: 13px 34px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 107, 53, 0.3);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    filter 0.3s var(--ease);
}

#contact form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(255, 107, 53, 0.42);
  filter: brightness(1.06);
}

#contact form button:active {
  transform: translateY(-1px);
}

/* ============ SITEMAP / LINKS ============ */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap ul li,
#links ul li {
  margin: 0;
}

#sitemap a,
#links a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: all 0.28s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(255, 107, 53, 0.3);
}

/* ============ AUTHOR INFO ============ */
#author-info {
  background: var(--grad-soft);
}

#author-info p {
  font-size: 0.92rem;
  margin-bottom: 0.5em;
}

/* ============ FOOTER ============ */
#site-footer {
  background: linear-gradient(160deg, #2B1D14 0%, #1A110C 100%);
  color: rgba(255, 247, 232, 0.78);
  padding: 48px 20px 32px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] #site-footer {
  background: linear-gradient(160deg, #1A110C 0%, #0E0906 100%);
}

#site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-brand);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p {
  margin: 0 0 8px;
  color: rgba(255, 247, 232, 0.72);
  font-size: 0.9rem;
}

.footer-brand p strong {
  font-size: 1.2rem;
  color: #FFF7E8;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#site-footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
}

#site-footer nav a {
  color: rgba(255, 247, 232, 0.72);
  font-size: 0.9rem;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
  display: inline-block;
}

#site-footer nav a:hover {
  color: var(--brand-light);
  padding-left: 4px;
}

.footer-copy p {
  margin: 0 0 8px;
  font-size: 0.84rem;
  color: rgba(255, 247, 232, 0.58);
}

.footer-copy a {
  color: var(--brand-light);
}

.footer-copy a:hover {
  color: #FFF7E8;
}

/* ============ BACK TO TOP ============ */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 10px 26px rgba(255, 107, 53, 0.4);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    opacity 0.35s var(--ease);
  opacity: 0.95;
}

#back-to-top:hover {
  transform: translateY(-5px) scale(1.06);
  box-shadow: 0 16px 36px rgba(255, 107, 53, 0.55);
  opacity: 1;
}

#back-to-top:active {
  transform: translateY(-2px) scale(1.02);
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes floatGlow {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(-4%, 4%, 0) rotate(6deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .header-inner {
    gap: 14px;
  }

  #main-nav ul {
    gap: 0;
  }

  #main-nav a {
    padding: 7px 9px;
    font-size: 0.86rem;
  }

  #search-input {
    width: 140px;
  }

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

@media (max-width: 900px) {
  #hero {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-visual figure {
    transform: none;
    max-width: 420px;
    margin: 0 auto;
  }

  .stats-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 64px;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 10px 16px;
    row-gap: 10px;
  }

  #menu-toggle {
    display: inline-block;
  }

  #main-nav {
    flex-basis: 100%;
    order: 5;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }

  #main-nav.is-open {
    max-height: 640px;
  }

  #main-nav ul {
    flex-direction: column;
    gap: 2px;
    padding: 8px 0 4px;
  }

  #main-nav a {
    display: block;
    padding: 11px 14px;
    font-size: 0.94rem;
    border-radius: var(--radius-sm);
  }

  #main-nav a::after {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  #site-search {
    order: 6;
    flex-basis: 100%;
    width: 100%;
  }

  #search-input {
    flex: 1;
    width: auto;
  }

  main {
    padding: 16px 14px 48px;
  }

  main > section {
    padding: 24px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
  }

  #hero {
    padding: 28px 20px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 22px;
    font-size: 0.9rem;
    flex: 1 1 auto;
  }

  #contact form {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  #contact form label[for="contact-message"],
  #contact form textarea,
  #contact form button {
    grid-column: 1 / -1;
  }

  .footer-inner {
    padding: 0 4px;
  }

  #site-footer nav ul {
    grid-template-columns: repeat(2, 1fr);
  }

  #back-to-top {
    width: 46px;
    height: 46px;
    right: 14px;
    bottom: 14px;
    font-size: 0.66rem;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .stats-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .carousel-slide {
    flex-basis: 92%;
    padding: 20px;
  }

  .carousel-controls button {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  #contact ul {
    grid-template-columns: 1fr;
  }

  #site-footer nav ul {
    grid-template-columns: 1fr;
  }

  .news-list {
    grid-template-columns: 1fr;
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 5px;
  }

  #faq summary {
    padding: 14px 44px 14px 16px;
    font-size: 0.95rem;
  }
}

/* ============ PRINT ============ */
@media print {
  #site-header,
  #back-to-top,
  .carousel-controls,
  .carousel-dots,
  .hero-actions,
  #site-search,
  #theme-toggle,
  #menu-toggle {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  main > section {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}