/* ============================================
   CrownCycleMethod.com — Global Styles
   Claude-inspired warm minimal aesthetic
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #faf9f7;
  --bg-secondary: #f0ece4;
  --bg-card: #ffffff;
  --bg-card-hover: #fdfcfa;
  --border: #e5ded5;
  --border-accent: #d1c9bc;
  --text-primary: #1a1915;
  --text-secondary: #6b6560;
  --text-muted: #9b958d;
  --accent: #da7756;
  --accent-light: #c4684a;
  --accent-dim: rgba(218, 119, 86, 0.1);
  --accent-glow: rgba(218, 119, 86, 0.05);
  --gold: #b08d57;
  --gold-dim: rgba(176, 141, 87, 0.1);
  --success: #5a9a6e;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 1200px;
  --header-height: 72px;
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { color: var(--text-secondary); max-width: 680px; }

.label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.label--gold { color: var(--gold); background: var(--gold-dim); }

/* --- Layout --- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section--alt { background: var(--bg-secondary); }

/* --- Header --- */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  height: var(--header-height);
  background: rgba(250, 249, 247, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
}
.header__logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.15rem; font-weight: 700; color: var(--text-primary);
  letter-spacing: -0.02em;
}
.header__logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--accent), #e09a7a);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: #fff; font-weight: 800;
}
.header__nav { display: flex; align-items: center; gap: 32px; }
.header__nav a {
  font-size: 0.88rem; font-weight: 500; color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}
.header__nav a:hover,
.header__nav a.active { color: var(--text-primary); }
.header__nav a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 1px;
}
.header__cta {
  background: var(--accent); color: #fff !important;
  padding: 8px 20px; border-radius: 6px; font-size: 0.85rem; font-weight: 600;
  transition: all var(--transition);
}
.header__cta:hover { background: var(--accent-light); transform: translateY(-1px); }

/* Mobile menu */
.header__menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.header__menu-btn span {
  display: block; width: 20px; height: 2px; background: var(--text-secondary);
  border-radius: 1px; transition: all var(--transition);
}
.mobile-nav {
  display: none; position: fixed; top: var(--header-height); left: 0; right: 0;
  background: var(--bg-secondary); border-bottom: 1px solid var(--border);
  padding: 24px; z-index: 999;
}
.mobile-nav.active { display: block; }
.mobile-nav a {
  display: block; padding: 12px 0; font-size: 1rem; color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }

/* --- Hero --- */
.hero {
  min-height: 90vh; display: flex; align-items: center;
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -40%; right: -20%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; max-width: 720px; }
.hero__title { margin-bottom: 24px; }
.hero__title span { color: var(--accent); }
.hero__subtitle {
  font-size: 1.15rem; line-height: 1.8; margin-bottom: 40px;
  color: var(--text-secondary);
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius); font-size: 0.92rem;
  font-weight: 600; border: none; cursor: pointer; transition: all var(--transition);
  text-decoration: none;
}
.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 16px rgba(218, 119, 86, 0.2);
}
.btn--primary:hover { background: var(--accent-light); transform: translateY(-2px); color: #fff; }
.btn--outline {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border-accent);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 10px 20px; font-size: 0.85rem; }

/* --- Cards --- */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 20px;
  background: var(--accent-dim); color: var(--accent);
}
.card__icon--gold { background: var(--gold-dim); color: var(--gold); }
.card__title { margin-bottom: 12px; }
.card__text { font-size: 0.92rem; line-height: 1.7; }

/* --- Grid --- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --- Stats row --- */
.stats { display: flex; gap: 48px; flex-wrap: wrap; padding: 40px 0; }
.stat { text-align: center; }
.stat__number {
  font-size: 2.5rem; font-weight: 700; color: var(--accent);
  letter-spacing: -0.03em;
}
.stat__label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }

/* --- Section header --- */
.section-header { max-width: 600px; margin-bottom: 60px; }
.section-header--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header h2 { margin-bottom: 16px; }

/* --- Timeline --- */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 15px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline__item { position: relative; margin-bottom: 48px; }
.timeline__item::before {
  content: ''; position: absolute; left: -33px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline__phase {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--accent); margin-bottom: 8px;
}
.timeline__title { margin-bottom: 8px; }
.timeline__text { font-size: 0.92rem; }

/* --- Blog cards --- */
.blog-card { display: flex; flex-direction: column; }
.blog-card__image {
  height: 200px; background: var(--bg-secondary); border-radius: var(--radius) var(--radius) 0 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--text-muted);
  border: 1px solid var(--border); border-bottom: none;
}
.blog-card__body {
  flex: 1; background: var(--bg-card); border: 1px solid var(--border);
  border-top: none; border-radius: 0 0 var(--radius) var(--radius);
  padding: 28px;
}
.blog-card__meta {
  font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 12px;
}
.blog-card__title { font-size: 1.1rem; margin-bottom: 12px; }
.blog-card__title a { color: var(--text-primary); }
.blog-card__title a:hover { color: var(--accent); }
.blog-card__excerpt { font-size: 0.88rem; line-height: 1.7; }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-card) 0%, #f0ece4 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
}
.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p { margin: 0 auto 32px; }

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  background: var(--bg-secondary);
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer__brand p { font-size: 0.88rem; margin-top: 12px; max-width: 300px; }
.footer__col h4 {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--text-muted); margin-bottom: 16px;
}
.footer__col a { display: block; font-size: 0.88rem; color: var(--text-secondary); padding: 4px 0; }
.footer__col a:hover { color: var(--text-primary); }
.footer__bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--text-muted);
}

/* --- Page header (inner pages) --- */
.page-header {
  padding: calc(var(--header-height) + 80px) 0 60px;
  text-align: center; position: relative;
}
.page-header::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.page-header h1 { margin-bottom: 16px; position: relative; }
.page-header p { margin: 0 auto; position: relative; font-size: 1.1rem; }

/* --- Content blocks --- */
.content-block { max-width: 800px; margin: 0 auto; }
.content-block h2 { margin: 48px 0 20px; }
.content-block h3 { margin: 36px 0 16px; }
.content-block p { margin-bottom: 20px; }
.content-block ul { margin: 16px 0 24px 24px; }
.content-block ul li {
  position: relative; padding-left: 20px; margin-bottom: 10px;
  font-size: 0.95rem; color: var(--text-secondary);
}
.content-block ul li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* --- Feature grid (method page) --- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center; margin-bottom: 80px;
}
.feature-row:nth-child(even) { direction: rtl; }
.feature-row:nth-child(even) > * { direction: ltr; }
.feature-visual {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); height: 320px;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
.feature-content h3 { margin-bottom: 16px; }
.feature-content p { font-size: 0.95rem; margin-bottom: 16px; }

/* --- Testimonial --- */
.testimonial {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
  position: relative;
}
.testimonial::before {
  content: '\201C'; position: absolute; top: 16px; left: 24px;
  font-size: 4rem; color: var(--border); line-height: 1;
  font-family: Georgia, serif;
}
.testimonial__text { font-size: 1.05rem; font-style: italic; margin-bottom: 20px; color: var(--text-primary); }
.testimonial__author { font-size: 0.85rem; color: var(--text-muted); }

/* --- Divider --- */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* --- Fade-in animation --- */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- Home hero --- */
.home-hero {
  padding: calc(var(--header-height) + 48px) 0 48px;
  text-align: center;
}
.home-hero__content { max-width: 750px; margin: 0 auto; }
.home-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.35;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.home-hero p {
  font-size: 1.05rem; color: var(--text-secondary);
  margin: 0 auto 28px; max-width: 550px;
}
.home-hero__actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* --- Story card --- */
.story-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
  position: relative; overflow: hidden;
}
.story-card__badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--accent); color: #fff;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 5px 12px; border-radius: 100px;
}
.story-card__content {
  display: grid; grid-template-columns: auto 1fr; gap: 32px;
  align-items: center;
}
.story-card__photos {
  display: flex; gap: 12px;
}
.story-card__img {
  width: 160px; height: 200px;
  border-radius: var(--radius); border: 1px solid var(--border);
  object-fit: cover;
}
.story-card__img:last-of-type { border-color: var(--accent); }
.story-card__text h3 { font-size: 1.3rem; margin-bottom: 12px; }
.story-card__highlight {
  display: inline-block;
  background: rgba(218, 119, 86, 0.1);
  border: 1px solid rgba(218, 119, 86, 0.3);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.story-card__text p {
  font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7;
}
@media (max-width: 768px) {
  .story-card__content { grid-template-columns: 1fr; }
  .story-card__photos { justify-content: center; }
  .story-card__photo { width: 120px; height: 150px; }
  .home-hero { padding-top: calc(var(--header-height) + 32px); padding-bottom: 32px; }
}

/* --- Blog feed (homepage) --- */
.blog-feed {
  padding-top: 32px;
}
.blog-feed__header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px; flex-wrap: wrap; gap: 16px;
}
.blog-feed__header h2 { margin: 0; }
.category-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.category-filter {
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); padding: 6px 16px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition); text-decoration: none;
}
.category-filter:hover,
.category-filter.active {
  background: var(--accent-dim); border-color: var(--accent);
  color: var(--accent);
}

/* --- Product cards --- */
.product-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition);
}
.product-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.product-card__image {
  height: 200px; background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.product-card__body { padding: 24px; }
.product-card__category {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--gold); margin-bottom: 8px;
}
.product-card__title { font-size: 1.1rem; margin-bottom: 10px; }
.product-card__desc {
  font-size: 0.88rem; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 20px;
}
.product-card__footer {
  display: flex; justify-content: space-between; align-items: center;
}
.product-card__price {
  font-size: 1.1rem; font-weight: 700; color: var(--text-primary);
}
.btn--amazon {
  background: #ff9900; color: #111 !important; font-weight: 700;
  padding: 10px 20px; border-radius: var(--radius); font-size: 0.85rem;
  border: none; cursor: pointer; transition: all var(--transition);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.btn--amazon:hover { background: #ffad33; transform: translateY(-1px); color: #111 !important; }

/* --- Guide cards --- */
.guide-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  position: relative; text-align: center;
  transition: all var(--transition);
  display: flex; flex-direction: column;
}
.guide-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.guide-card__badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--gold-dim); color: var(--gold);
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 4px 10px; border-radius: 100px;
}
.guide-card__icon {
  font-size: 2.5rem; margin-bottom: 16px;
}
.guide-card__title {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 12px;
}
.guide-card__desc {
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 16px; flex: 1;
}
.guide-card__meta {
  font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 20px;
}
.guide-card__footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.guide-card__price {
  font-size: 1.3rem; font-weight: 800; color: var(--text-primary);
}
.guide-card__footer .btn:disabled {
  opacity: 0.5; cursor: not-allowed;
}

/* --- Checkout modal --- */
.checkout-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
  max-width: 460px; width: 90%;
}
.checkout-box h3 { font-size: 1.2rem; margin-bottom: 6px; }
.checkout-box .contact-form__group { margin-bottom: 14px; }
.checkout-box .contact-form__group label {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 5px;
}
.checkout-box .contact-form__group input[type="text"],
.checkout-box .contact-form__group input[type="email"] {
  width: 100%; background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 14px; color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.9rem;
  transition: border-color var(--transition);
}
.checkout-box .contact-form__group input:focus {
  outline: none; border-color: var(--accent);
}

/* --- Affiliate disclosure --- */
.affiliate-disclosure {
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-bottom: 40px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.affiliate-disclosure strong { color: var(--gold); }

/* --- Product category section --- */
.product-section { margin-bottom: 64px; }
.product-section__header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.product-section__icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; background: var(--accent-dim); color: var(--accent);
}
.product-section__icon--gold { background: var(--gold-dim); color: var(--gold); }
.product-section__icon--green { background: rgba(78,204,163,0.12); color: var(--success); }

/* --- Article cards (articles page) --- */
.article-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: all var(--transition);
  display: flex; flex-direction: column;
}
.article-card:hover {
  border-color: var(--border-accent); background: var(--bg-card-hover);
  transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.article-card__category {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; margin-bottom: 12px;
}
.article-card__category--science { color: var(--accent); }
.article-card__category--guide { color: var(--gold); }
.article-card__category--community { color: var(--success); }
.article-card__title { font-size: 1.2rem; margin-bottom: 12px; }
.article-card__title a { color: var(--text-primary); }
.article-card__title a:hover { color: var(--accent); }
.article-card__excerpt {
  font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 20px; flex: 1;
}
.article-card__meta {
  font-size: 0.75rem; color: var(--text-muted);
  display: flex; justify-content: space-between; align-items: center;
}

/* --- Blog Posts --- */
.post {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  margin-bottom: 24px; transition: all var(--transition);
}
.post:hover { border-color: var(--border-accent); }
.post__header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 16px; gap: 16px;
}
.post__title {
  font-size: 1.35rem; font-weight: 700; color: var(--text-primary);
  cursor: pointer; transition: color var(--transition);
}
.post__title:hover { color: var(--accent); }
.post__date { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; margin-top: 4px; }
.post__content {
  font-size: 0.95rem; color: var(--text-secondary); line-height: 1.8;
  margin-bottom: 12px; white-space: pre-wrap;
}
.post__content--preview {
  max-height: 4.5em; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}
.post__read-more {
  display: inline-block; font-size: 0.88rem; font-weight: 600;
  color: var(--accent); cursor: pointer; margin-bottom: 16px;
  transition: color var(--transition);
}
.post__read-more:hover { color: var(--accent-light); }
.post__images {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px; margin-bottom: 20px;
}
.post__images img {
  width: 100%; height: 200px; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--border);
  cursor: pointer; transition: transform var(--transition);
}
.post__images img:hover { transform: scale(1.02); }
.post__footer {
  display: flex; align-items: center; gap: 16px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.post__comment-count {
  font-size: 0.85rem; color: var(--text-muted); cursor: pointer;
  transition: color var(--transition);
}
.post__comment-count:hover { color: var(--accent); }

/* --- Comments --- */
.comments { margin-top: 24px; }
.comments__title {
  font-size: 0.9rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px;
}
.comment {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
}
.comment--reply {
  margin-left: 32px; border-left: 2px solid var(--accent-dim);
}
.comment__header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.comment__author { font-size: 0.85rem; font-weight: 600; color: var(--accent-light); }
.comment__date { font-size: 0.7rem; color: var(--text-muted); }
.comment__text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; white-space: pre-wrap; }
.comment__image {
  max-width: 300px; max-height: 200px; border-radius: var(--radius);
  margin-top: 10px; border: 1px solid var(--border);
}
.comment__reply-btn {
  background: none; border: none; color: var(--text-muted);
  font-size: 0.78rem; cursor: pointer; padding: 4px 0; margin-top: 8px;
  transition: color var(--transition);
}
.comment__reply-btn:hover { color: var(--accent); }

/* --- Comment Form --- */
.comment-form {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-top: 16px;
}
.comment-form--reply { margin-left: 32px; margin-top: 8px; margin-bottom: 12px; }
.comment-form__row { margin-bottom: 12px; }
.comment-form__row:last-child { margin-bottom: 0; }
.comment-form input[type="text"],
.comment-form textarea {
  width: 100%; background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 14px; color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.9rem; resize: vertical;
  transition: border-color var(--transition);
}
.comment-form input[type="text"]:focus,
.comment-form textarea:focus {
  outline: none; border-color: var(--accent);
}
.comment-form textarea { min-height: 80px; }
.comment-form__actions {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.comment-form__upload {
  display: flex; align-items: center; gap: 8px;
}
.comment-form__upload label {
  font-size: 0.82rem; color: var(--text-muted); cursor: pointer;
  padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  transition: all var(--transition);
}
.comment-form__upload label:hover { border-color: var(--accent); color: var(--accent); }
.comment-form__upload input[type="file"] { display: none; }
.comment-form__preview {
  max-width: 80px; max-height: 60px; border-radius: 4px; margin-left: 8px;
  border: 1px solid var(--border);
}
.comment-form .btn { margin-left: auto; }

/* --- Admin Panel --- */
.admin { padding-top: calc(var(--header-height) + 32px); }
.admin__tabs {
  display: flex; gap: 0; margin-bottom: 32px;
  border-bottom: 2px solid var(--border);
}
.admin__tab {
  padding: 12px 24px; font-size: 0.9rem; font-weight: 600;
  color: var(--text-muted); background: none; border: none;
  cursor: pointer; transition: all var(--transition);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.admin__tab:hover { color: var(--text-primary); }
.admin__tab.active {
  color: var(--accent); border-bottom-color: var(--accent);
}
.admin__panel { display: none; }
.admin__panel.active { display: block; }
.admin__form { max-width: 800px; }
.admin__form-group { margin-bottom: 20px; }
.admin__form-group label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 8px;
}
.admin__form-group input[type="text"],
.admin__form-group textarea,
.admin__form-group select {
  width: 100%; background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px; color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color var(--transition);
}
.admin__form-group input:focus,
.admin__form-group textarea:focus,
.admin__form-group select:focus {
  outline: none; border-color: var(--accent);
}
.admin__form-group textarea { min-height: 200px; resize: vertical; }
.admin__form-group select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%239499ae' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.image-upload {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 32px; text-align: center; cursor: pointer;
  transition: all var(--transition);
  color: var(--text-muted); font-size: 0.9rem;
}
.image-upload:hover { border-color: var(--accent); color: var(--accent); }
.image-upload input[type="file"] { display: none; }
.image-upload__previews {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; justify-content: center;
}
.image-upload__previews img {
  width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* --- Manage list --- */
.manage-list { list-style: none; }
.manage-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 8px;
  transition: all var(--transition);
}
.manage-item:hover { border-color: var(--border-accent); }
.manage-item__info h4 { font-size: 1rem; margin-bottom: 4px; }
.manage-item__info span { font-size: 0.75rem; color: var(--text-muted); }
.manage-item__delete {
  background: rgba(220,60,60,0.12); border: 1px solid rgba(220,60,60,0.3);
  color: #dc3c3c; padding: 6px 14px; border-radius: var(--radius);
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition);
}
.manage-item__delete:hover { background: rgba(220,60,60,0.2); }

/* --- Article full view --- */
.article-full {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
  margin-bottom: 24px; display: none;
}
.article-full.active { display: block; }
.article-full__back {
  font-size: 0.85rem; color: var(--text-muted); cursor: pointer;
  margin-bottom: 20px; display: inline-block;
  transition: color var(--transition);
}
.article-full__back:hover { color: var(--accent); }
.article-full__content {
  font-size: 0.95rem; color: var(--text-secondary); line-height: 1.9;
  white-space: pre-wrap;
}
.article-full__meta {
  font-size: 0.75rem; color: var(--text-muted); margin-bottom: 20px;
}

/* --- Empty state --- */
.empty-state {
  text-align: center; padding: 60px 24px;
  color: var(--text-muted); font-size: 0.95rem;
}
.empty-state__icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; }

/* --- Blog layout (70/30 split) --- */
.blog-layout {
  display: grid;
  grid-template-columns: 8fr 2fr;
  gap: 32px;
  align-items: flex-start;
}
.blog-layout__sidebar {
  position: sticky;
  top: calc(var(--header-height) + 16px);
}
@media (max-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-layout__sidebar { position: static; }
}

/* --- Topic cards --- */
.topics-section {
  margin-top: 0; padding-top: 0;
  border-top: none;
}
.topics-section__header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}
.topics-section__header h2 { font-size: 1.15rem; }
.topics-section__header h2 { margin: 0; }
.topic {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  margin-bottom: 16px; transition: all var(--transition);
}
.topic:hover { border-color: var(--border-accent); }
.topic__header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 8px; gap: 16px;
}
.topic__title {
  font-size: 1rem; font-weight: 700; color: var(--text-primary);
  cursor: pointer; transition: color var(--transition);
}
.topic__title:hover { color: var(--accent); }
.topic__date { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; margin-top: 4px; }
.topic__author {
  font-size: 0.8rem; color: var(--accent); font-weight: 600;
  margin-bottom: 10px;
}
.topic__author span { color: var(--text-muted); font-weight: 400; }
.topic__content {
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6;
  margin-bottom: 12px; white-space: pre-wrap;
}
.topic__images {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px; margin-bottom: 16px;
}
.topic__images img {
  width: 100%; height: 160px; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--border);
  cursor: pointer;
}
.topic__stats {
  display: flex; align-items: center; gap: 20px;
  padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text-muted);
}
.topic__stat {
  display: flex; align-items: center; gap: 5px;
  cursor: pointer; transition: color var(--transition);
}
.topic__stat:hover { color: var(--accent); }
.topic__stat-icon { font-size: 1rem; }

/* --- Contact form page --- */
.contact-page {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 60px;
}
.contact-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px;
  align-items: flex-start;
}
.contact-form-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
}
.contact-form-card h2 { margin-bottom: 8px; }
.contact-form-card > p { margin-bottom: 28px; }
.contact-form__group { margin-bottom: 18px; }
.contact-form__group label {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 6px;
}
.contact-form__group input,
.contact-form__group textarea,
.contact-form__group select {
  width: 100%; background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 11px 14px; color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.9rem;
  transition: border-color var(--transition);
}
.contact-form__group input:focus,
.contact-form__group textarea:focus,
.contact-form__group select:focus {
  outline: none; border-color: var(--accent);
}
.contact-form__group textarea { min-height: 120px; resize: vertical; }
.contact-form__group select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%239b958d' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.contact-form__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.contact-sidebar { display: flex; flex-direction: column; gap: 20px; }
.contact-info-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}
.contact-info-card h3 { font-size: 1rem; margin-bottom: 12px; }
.contact-info-card p { font-size: 0.88rem; line-height: 1.7; }
.contact-info-card ul { margin: 10px 0 0 18px; }
.contact-info-card ul li {
  font-size: 0.88rem; color: var(--text-secondary);
  margin-bottom: 6px; padding-left: 6px;
  list-style: disc;
}
.contact-success {
  text-align: center; padding: 48px 24px;
  display: none;
}
.contact-success.active { display: block; }
.contact-success__icon { font-size: 3rem; margin-bottom: 16px; }
.contact-success h3 { margin-bottom: 12px; }
.contact-success p { margin: 0 auto; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form__row { grid-template-columns: 1fr; }
  .topic__images { grid-template-columns: 1fr; }
}

/* --- Toast notification --- */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--accent); color: #fff; padding: 12px 24px;
  border-radius: var(--radius); font-size: 0.88rem; font-weight: 600;
  transform: translateY(100px); opacity: 0;
  transition: all 0.3s ease;
}
.toast.visible { transform: translateY(0); opacity: 1; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row:nth-child(even) { direction: ltr; }
}
@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__menu-btn { display: flex; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: calc(var(--header-height) + 40px); padding-bottom: 60px; }
  h1 { font-size: 2rem; }
  .section { padding: 60px 0; }
  .cta-banner { padding: 40px 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .stats { gap: 24px; justify-content: center; }
  .comment--reply { margin-left: 16px; }
  .comment-form--reply { margin-left: 16px; }
  .post__images { grid-template-columns: 1fr; }
  .admin__tabs { overflow-x: auto; }
  .admin__tab { padding: 10px 16px; font-size: 0.82rem; white-space: nowrap; }
}
