/* =====================================================
   LIFESTYLE BLOG — Main Stylesheet
   Eco-hotel in Gagra, Abkhazia
   Palette: dark/medium/light green + cream/beige
   Fonts: Playfair Display + Mulish
   ===================================================== */

/* --- Design Tokens --- */
:root {
  /* Brand Palette */
  --green-dark: #2C4A2E;
  --green-mid: #3D6B40;
  --green-light: #7AAF7D;
  --green-pale: #E8F0E9;
  --cream: #F7F4EE;
  --beige: #EDE8DF;
  --beige-dark: #D5CFC3;

  /* Semantic Roles */
  --color-bg: var(--cream);
  --color-surface: #FFFFFF;
  --color-surface-2: var(--beige);
  --color-border: var(--beige-dark);
  --color-text: #1E2E1F;
  --color-text-muted: #5A6B5B;
  --color-text-faint: #9AAF9B;
  --color-text-inverse: #F7F4EE;
  --color-primary: var(--green-mid);
  --color-primary-hover: var(--green-dark);
  --color-primary-light: var(--green-pale);
  --color-accent: var(--green-light);

  /* Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.2rem, 1rem + 5vw, 4.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radii */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(44, 74, 46, 0.08);
  --shadow-md: 0 4px 16px rgba(44, 74, 46, 0.12);
  --shadow-lg: 0 12px 40px rgba(44, 74, 46, 0.16);
  --shadow-card: 0 2px 12px rgba(44, 74, 46, 0.10);

  /* Transitions */
  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --content-narrow: 680px;
  --content-default: 980px;
  --content-wide: 1240px;

  /* Fonts */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Mulish', system-ui, sans-serif;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

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

ul[role='list'], ol[role='list'] {
  list-style: none;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-wrap: balance;
  line-height: 1.2;
  color: var(--green-dark);
}

p, li, figcaption {
  text-wrap: pretty;
  max-width: 72ch;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-hover);
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection {
  background: rgba(122, 175, 125, 0.25);
  color: var(--color-text);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===== LAYOUT UTILITIES ===== */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 5vw, var(--space-12));
}

.container--narrow {
  max-width: var(--content-narrow);
}

.container--default {
  max-width: var(--content-default);
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 238, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.site-header--scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.logo__mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.08em;
}

.logo__subtitle {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green-dark);
  border-bottom-color: var(--green-light);
}

/* CTA Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--green-dark);
  color: var(--cream);
}

.btn--primary:hover {
  background: var(--green-mid);
  color: var(--cream);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green-dark);
}

.btn--outline:hover {
  background: var(--green-dark);
  color: var(--cream);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--green-mid);
  padding-inline: 0;
}

.btn--ghost:hover {
  color: var(--green-dark);
}

.btn--small {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
}

.sidebar-card .btn + .btn {
  margin-top: var(--space-2);
}

.btn--white {
  background: var(--cream);
  color: var(--green-dark);
}

.btn--white:hover {
  background: white;
  color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--space-2);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===== HERO — BLOG INDEX ===== */
.blog-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.blog-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  transition: transform 8s ease;
}

.blog-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(44, 74, 46, 0.88) 0%,
    rgba(44, 74, 46, 0.6) 50%,
    rgba(44, 74, 46, 0.3) 100%
  );
}

.blog-hero__content {
  position: relative;
  z-index: 2;
  padding-block: var(--space-24);
  max-width: 780px;
}

.blog-hero__badge-row {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge--glass {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

.badge--category {
  background: var(--green-pale);
  color: var(--green-dark);
}

.badge--category.cat-praktika { background: #E8F0E9; color: #2C4A2E; }
.badge--category.cat-pogoda { background: #E3EEF5; color: #1E4060; }
.badge--category.cat-sights { background: #F0EDE8; color: #4A3020; }
.badge--category.cat-compare { background: #F5EDE8; color: #4A2E1E; }
.badge--category.cat-eco { background: #E8F0E4; color: #2A4A1E; }
.badge--category.cat-food { background: #F5EEE8; color: #4A3620; }
.badge--category.cat-family { background: #F0EBF5; color: #3A2050; }
.badge--category.cat-spa { background: #EDE8F5; color: #4A1E70; }

.blog-hero__title {
  font-size: var(--text-hero);
  color: white;
  margin-bottom: var(--space-5);
  line-height: 1.1;
  font-weight: 700;
}

.blog-hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-body);
  font-weight: 400;
  max-width: 60ch;
  line-height: 1.6;
}

/* ===== ARTICLE GRID ===== */
.articles-section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

.section-header {
  margin-bottom: var(--space-10);
}

.section-title {
  font-size: var(--text-xl);
  color: var(--green-dark);
  margin-bottom: var(--space-2);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

/* ===== ARTICLE CARD ===== */
.article-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.article-card:hover .article-card__accent {
  width: 100%;
}

.article-card__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
}

.article-card__body {
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.article-card__title {
  font-size: var(--text-lg);
  line-height: 1.25;
  color: var(--green-dark);
  margin: 0;
}

.article-card__title a {
  color: inherit;
  text-decoration: none;
}

.article-card__title a:hover {
  color: var(--green-mid);
}

.article-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  max-width: none;
}

.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.article-card__time {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-weight: 600;
}

.article-card__link {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--green-mid);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: gap var(--transition), color var(--transition);
}

.article-card__link:hover {
  color: var(--green-dark);
  gap: var(--space-2);
}

.article-card__accent {
  height: 3px;
  background: linear-gradient(90deg, var(--green-mid), var(--green-light));
  width: 0;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: auto;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  padding-block: var(--space-12);
  text-align: center;
}

.cta-banner__text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: white;
  margin-bottom: var(--space-6);
  max-width: none;
}

.cta-banner__sub {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-8);
  max-width: none;
}

/* ===== GREEN CALLOUT (article CTA boxes) ===== */
.cta-box {
  background: var(--green-pale);
  border-left: 4px solid var(--green-mid);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-5) var(--space-6);
  margin-block: var(--space-8);
}

.cta-box__text {
  font-size: var(--text-base);
  color: var(--green-dark);
  font-weight: 600;
  margin-bottom: var(--space-3);
  max-width: none;
}

.cta-box .btn {
  font-size: var(--text-sm);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.75);
  padding-block: var(--space-10);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-8);
}

.footer-brand .logo__name {
  color: white;
}

.footer-brand .logo__subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.footer-brand p {
  font-size: var(--text-sm);
  margin-top: var(--space-4);
  line-height: 1.7;
  max-width: 30ch;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: white;
  font-weight: 700;
  margin-bottom: var(--space-4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--green-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  max-width: none;
}

/* ===== ARTICLE PAGE STYLES ===== */
.article-hero {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center;
}

.article-breadcrumb {
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  background: var(--beige);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--green-mid);
}

.breadcrumb__sep {
  color: var(--color-text-faint);
}

.breadcrumb__current {
  color: var(--color-text);
  font-weight: 600;
}

.article-header {
  padding-block: var(--space-10) var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.article-header__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.article-date, .article-readtime {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.article-title {
  font-size: var(--text-2xl);
  color: var(--green-dark);
  line-height: 1.15;
  margin-bottom: var(--space-5);
}

.article-lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.65;
  font-style: italic;
  max-width: 70ch;
  border-left: 3px solid var(--green-light);
  padding-left: var(--space-5);
}

/* Article Body */
.article-body {
  padding-block: var(--space-10);
}

.article-content {
  max-width: var(--content-narrow);
}

.article-content h2 {
  font-size: var(--text-xl);
  color: var(--green-dark);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--green-pale);
}

.article-content h3 {
  font-size: var(--text-lg);
  color: var(--green-mid);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.article-content p {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.article-content ul,
.article-content ol {
  padding-left: var(--space-5);
  margin-bottom: var(--space-5);
}

.article-content li {
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.article-content ul li::marker {
  color: var(--green-light);
}

/* Comparison Table */
.compare-table {
  width: 100%;
  margin-block: var(--space-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  font-size: var(--text-sm);
}

.compare-table th {
  background: var(--green-dark);
  color: white;
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  vertical-align: middle;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table tr:nth-child(even) td {
  background: var(--green-pale);
}

.compare-table tr:hover td {
  background: rgba(122, 175, 125, 0.1);
}

/* FAQ */
.faq-section {
  margin-top: var(--space-12);
  padding-top: var(--space-10);
  border-top: 2px solid var(--green-pale);
}

.faq-section h2 {
  font-size: var(--text-xl);
  color: var(--green-dark);
  margin-bottom: var(--space-6);
  border-bottom: none;
  margin-top: 0;
  padding-bottom: 0;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--green-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
  gap: var(--space-4);
  max-width: none;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--green-mid);
  flex-shrink: 0;
  transition: transform var(--transition);
  font-family: var(--font-body);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item[open] {
  border-color: var(--green-light);
  box-shadow: var(--shadow-sm);
}

.faq-answer {
  padding: 0 var(--space-5) var(--space-5);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: none;
}

/* Also Read Section */
.also-read {
  background: var(--beige);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-top: var(--space-12);
}

.also-read h2 {
  font-size: var(--text-lg);
  color: var(--green-dark);
  margin-bottom: var(--space-5);
  border-bottom: none;
  margin-top: 0;
  padding-bottom: 0;
}

.also-read__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.also-read__link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-4);
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.also-read__link:hover {
  border-color: var(--green-light);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  color: var(--green-dark);
}

.also-read__link::before {
  content: '→';
  color: var(--green-mid);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(247, 244, 238, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-5) var(--space-6);
    gap: var(--space-4);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

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

  .nav-toggle {
    display: flex;
  }

  .blog-hero__title {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }

  .article-title {
    font-size: var(--text-xl);
  }

  .article-hero {
    height: 260px;
  }

  .cta-banner__text {
    font-size: var(--text-lg);
  }

  .btn--cta-header {
    display: none;
  }

  .header-inner {
    gap: var(--space-3);
    padding-inline: var(--space-4);
  }

  .logo img {
    height: 38px !important;
  }

  .logo__text {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-nav .btn--primary {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .container {
    padding-inline: var(--space-4);
  }

  .article-content,
  .article-body {
    padding-inline: 0;
  }
}

/* ===== ARTICLE LAYOUT (with sidebar) ===== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-12);
  align-items: start;
}

.article-sidebar {
  position: sticky;
  top: var(--space-24);
}

.sidebar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
}

.sidebar-card h4 {
  font-size: var(--text-sm);
  color: var(--green-dark);
  font-weight: 700;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-3);
  max-width: none;
}

.sidebar-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-2);
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  
  .article-sidebar {
    position: static;
  }
}

/* Inline article illustrations (not hero) */
.article-img-inline {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-block: var(--space-6);
  height: auto;
  object-fit: cover;
}

/* Site logo in article header */
.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo {
  height: 44px;
  width: auto;
  display: block;
}


/* ── Мобильная оптимизация (touch targets ≥44px, Яндекс Вебмастер) ── */
@media (max-width: 768px) {

  /* Кнопки — минимум 44×44px для мобильного касания */
  .btn, .btn--primary, .btn--outline, .btn--white,
  .btn--small, .nav-book-btn {
    min-height: 44px;
    min-width: 44px;
    padding-block: 12px;
    font-size: 15px;
  }

  /* Ссылки навигации */
  .site-nav a, .footer-col a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding-block: 8px;
  }

  /* Боковая панель — на мобиле внизу, полная ширина */
  .article-sidebar {
    width: 100%;
    margin-top: 32px;
  }

  /* Sidebar кнопки */
  .sidebar-card .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-bottom: 8px;
  }

  /* Breadcrumb — удобнее на мобиле */
  .article-breadcrumb {
    font-size: 13px;
    padding: 10px 16px;
  }

  /* Hero изображение — без обрезки по высоте на мобиле */
  .article-hero {
    max-height: 260px;
  }

  /* Article header — меньше отступы */
  .article-header {
    padding-block: 24px 16px;
  }

  /* CTA banner — компактнее */
  .cta-banner {
    padding: 32px 20px;
  }

  .cta-banner .btn--white {
    width: 100%;
    text-align: center;
  }
}
