/* ═══════════════════════════════════════════════
   SEVRUGIN.PRO — Blog Stylesheet
   ═══════════════════════════════════════════════ */

:root {
  --bg:           #F8F5F0;
  --bg-alt:       #EDEAE3;
  --bg-dark:      #0F1F16;
  --green:        #1C3A28;
  --green-mid:    #2A5238;
  --green-light:  #4A7A5A;
  --green-muted:  #8FAF8A;
  --green-pale:   #E8EDE6;
  --text:         #1A1A1A;
  --text-2:       #5A5A50;
  --text-3:       #9A9A8A;
  --border:       #DDD9D0;
  --white:        #FFFFFF;
  --gold:         #C9A84C;
  --font:         'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --r-sm: 8px; --r-md: 14px; --r-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t: 0.3s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--green); color: var(--white); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── CONTAINER ─────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container--narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }

/* ── HEADER ────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 245, 240, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 172px; gap: 32px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo__img { height: 144px; width: auto; mix-blend-mode: multiply; }
.nav { display: flex; gap: 4px; }
.nav__link {
  font-size: 14px; font-weight: 500; color: var(--text-2);
  padding: 6px 12px; border-radius: var(--r-sm);
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
}
.nav__link:hover { color: var(--green); background: var(--green-pale); }
.nav__link--active { color: var(--green); font-weight: 600; }
.header__back {
  font-size: 13px; font-weight: 500; color: var(--text-3);
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-sm);
  transition: color var(--t) var(--ease);
}
.header__back:hover { color: var(--green); }
.header__back svg { width: 14px; height: 14px; }

/* ── FOOTER ────────────────────────────────────── */
.footer {
  background: var(--bg-dark); color: var(--white);
  padding: 32px 0 24px;
}
.footer__seo {
  text-align: center; font-size: 12px;
  color: rgba(255,255,255,0.3); padding: 0 0 20px;
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
}
.footer__logo .logo__img { height: 28px; opacity: 0.7; }
.footer__copy { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer__langs { display: flex; gap: 4px; }
.footer .lang-btn {
  font-family: var(--font); font-size: 13px; font-weight: 600;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.4); padding: 4px 8px;
  border-radius: 6px; transition: all var(--t) var(--ease);
}
.footer .lang-btn:hover { color: var(--white); background: rgba(255,255,255,0.1); }

/* ── BTN ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  padding: 13px 28px; border-radius: 100px;
  border: none; cursor: pointer; text-decoration: none;
  transition: all var(--t) var(--ease);
}
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-mid); transform: translateY(-1px); }
.btn--ghost {
  background: transparent; color: var(--green);
  border: 1.5px solid var(--green);
}
.btn--ghost:hover { background: var(--green-pale); }

/* ════════════════════════════════════════════════
   BLOG LISTING PAGE
   ════════════════════════════════════════════════ */

.blog-hero {
  background: var(--green); color: var(--white);
  padding: 80px 0 64px; text-align: center;
}
.blog-hero__label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--green-muted);
  margin-bottom: 16px; display: block;
}
.blog-hero__title {
  font-size: clamp(36px, 5vw, 56px); font-weight: 800;
  line-height: 1.1; margin-bottom: 16px;
}
.blog-hero__desc {
  font-size: 18px; color: rgba(255,255,255,0.7);
  max-width: 540px; margin: 0 auto;
}

.blog-section { padding: 80px 0; }

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

.blog-card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  box-shadow: var(--shadow-sm);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.blog-card__badge {
  background: var(--green); color: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 24px 24px 0;
  display: inline-block;
}
.blog-card__badge span {
  background: rgba(255,255,255,0.15);
  padding: 4px 10px; border-radius: 100px;
}
.blog-card__body { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card__tag {
  font-size: 12px; font-weight: 600; color: var(--green-light);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 10px;
}
.blog-card__title {
  font-size: 20px; font-weight: 700; line-height: 1.3;
  margin-bottom: 12px; color: var(--text);
}
.blog-card__desc {
  font-size: 15px; color: var(--text-2); line-height: 1.6;
  flex: 1; margin-bottom: 20px;
}
.blog-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.blog-card__meta { font-size: 13px; color: var(--text-3); }
.blog-card__link {
  font-size: 14px; font-weight: 600; color: var(--green);
  display: flex; align-items: center; gap: 4px;
  transition: gap var(--t) var(--ease);
}
.blog-card:hover .blog-card__link { gap: 8px; }
.blog-card__link svg { width: 14px; height: 14px; }

/* ════════════════════════════════════════════════
   ARTICLE PAGE
   ════════════════════════════════════════════════ */

.article-hero {
  background: var(--green); color: var(--white);
  padding: 64px 0 56px;
}
.article-hero__inner { max-width: 760px; margin: 0 auto; padding: 0 32px; }
.article-hero__tag {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--green-muted);
  margin-bottom: 20px; display: block;
}
.article-hero__title {
  font-size: clamp(28px, 4vw, 46px); font-weight: 800;
  line-height: 1.15; margin-bottom: 20px;
}
.article-hero__desc {
  font-size: 18px; color: rgba(255,255,255,0.75);
  line-height: 1.6; margin-bottom: 28px;
}
.article-hero__meta {
  display: flex; align-items: center; gap: 20px;
  font-size: 13px; color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
}
.article-hero__meta strong { color: rgba(255,255,255,0.8); }

.article-wrap { padding: 64px 0 96px; }

/* Prose styles */
.prose { max-width: 760px; margin: 0 auto; padding: 0 32px; }
.prose h2 {
  font-size: clamp(22px, 2.5vw, 28px); font-weight: 700;
  color: var(--text); line-height: 1.3;
  margin: 52px 0 16px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 18px; font-weight: 700; color: var(--text);
  margin: 32px 0 10px;
}
.prose p {
  font-size: 17px; color: var(--text-2); line-height: 1.75;
  margin-bottom: 20px;
}
.prose p strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol {
  margin: 8px 0 20px 0; padding-left: 0;
  list-style: none;
}
.prose ul li, .prose ol li {
  font-size: 17px; color: var(--text-2); line-height: 1.7;
  padding: 6px 0 6px 28px; position: relative;
}
.prose ul li::before {
  content: ''; position: absolute; left: 6px; top: 15px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-light);
}
.prose ol { counter-reset: prose-counter; }
.prose ol li { counter-increment: prose-counter; }
.prose ol li::before {
  content: counter(prose-counter);
  position: absolute; left: 0; top: 6px;
  font-size: 13px; font-weight: 700; color: var(--green);
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-pale);
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

.prose-lead {
  font-size: 20px !important; color: var(--text) !important;
  font-weight: 500; line-height: 1.65 !important;
  margin-bottom: 32px !important;
}

/* Price table inside article */
.price-table {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  margin: 32px 0;
}
.price-table__row {
  display: flex; align-items: center;
  padding: 18px 24px; gap: 16px;
  border-bottom: 1px solid var(--border);
}
.price-table__row:last-child { border-bottom: none; }
.price-table__row:nth-child(even) { background: var(--bg); }
.price-table__name { flex: 1; font-size: 16px; font-weight: 600; color: var(--text); }
.price-table__detail { font-size: 14px; color: var(--text-3); margin-top: 2px; }
.price-table__price {
  font-size: 18px; font-weight: 700; color: var(--green);
  white-space: nowrap;
}

/* Highlight box */
.highlight {
  background: var(--green-pale); border-left: 3px solid var(--green);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 20px 24px; margin: 28px 0;
}
.highlight p { margin: 0; color: var(--text); font-size: 16px; }

/* CTA box */
.article-cta {
  background: var(--green); color: var(--white);
  border-radius: var(--r-lg); padding: 40px 48px;
  margin: 52px 0 0; text-align: center;
}
.article-cta__title { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.article-cta__desc { font-size: 16px; color: rgba(255,255,255,0.75); margin-bottom: 28px; }
.article-cta .btn--ghost {
  border-color: rgba(255,255,255,0.5); color: var(--white);
}
.article-cta .btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* Author block */
.article-author {
  display: flex; align-items: center; gap: 16px;
  padding: 28px 0; border-top: 1px solid var(--border);
  margin-top: 48px;
}
.article-author__img {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--green-pale);
}
.article-author__name { font-size: 15px; font-weight: 700; color: var(--text); }
.article-author__role { font-size: 13px; color: var(--text-3); margin-top: 2px; }

/* Related */
.related { padding: 0 0 80px; border-top: 1px solid var(--border); }
.related__title {
  font-size: 22px; font-weight: 700; margin: 48px 0 28px;
  max-width: 760px; margin-left: auto; margin-right: auto;
  padding: 0 32px;
}
.related-grid {
  max-width: 760px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.related-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 20px;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.related-card__tag { font-size: 11px; font-weight: 700; color: var(--green-light); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.related-card__title { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.4; }
.related-card__arrow { font-size: 13px; color: var(--green); margin-top: 10px; font-weight: 600; }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container, .container--narrow, .prose, .article-hero__inner,
  .related__title, .related-grid { padding-left: 20px; padding-right: 20px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-hero { padding: 56px 0 48px; }
  .article-hero { padding: 48px 0 40px; }
  .article-wrap { padding: 40px 0 64px; }
  .article-cta { padding: 28px 24px; }
  .price-table__row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer__inner { flex-direction: column; text-align: center; }
}
