/* ===========================================
   ДЮСШ №16 МОСКВА — Main Stylesheet
   =========================================== */

:root {
  --primary:    #dc2626;
  --secondary:  #b91c1c;
  --accent:     #d97706;
  --bg:         #fff8f8;
  --text:       #1c1917;
  --header-bg:  #dc2626;
  --footer-bg:  #1c1917;
  --link:       #b91c1c;
  --link-hover: #991b1b;
  --card-bg:    #ffffff;
  --border:     #fecaca;
  --muted:      #78716c;
  --font-h:     'Playfair Display', serif;
  --font-b:     'Source Sans Pro', sans-serif;
  --radius:     3px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(-60deg, transparent, transparent 90px, rgba(220,38,38,.018) 90px, rgba(220,38,38,.018) 91px),
    repeating-linear-gradient(30deg,  transparent, transparent 140px, rgba(220,38,38,.012) 140px, rgba(220,38,38,.012) 141px);
  min-height: 100vh;
}

/* ---- Typography ---- */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-h); font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: 2.1rem; margin-bottom: .65rem; letter-spacing: -.01em; }
h2 { font-size: 1.65rem; margin-bottom: .55rem; }
h3 { font-size: 1.25rem; margin-bottom: .45rem; }
h4 { font-size: 1.05rem; margin-bottom: .35rem; }

a { color: var(--link); text-decoration: none; transition: color .2s; }
a:hover { color: var(--link-hover); }
p { margin-bottom: 1rem; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.4rem; }

/* =============================================
   HEADER — CORPORATE DUAL-TONE
   ============================================= */

header {
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 18px rgba(220,38,38,.22);
  transition: box-shadow .3s;
}

.header-inner {
  display: flex;
  align-items: stretch;
  min-height: 62px;
  background: linear-gradient(to right, var(--primary) 38%, #fff 38%);
}

header.scrolled .header-inner { min-height: 50px; }

.header-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem 1.4rem;
  width: 38%;
  background: var(--primary);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.header-brand::after {
  content: '';
  position: absolute;
  right: -2px; top: 0; bottom: 0;
  width: 28px;
  background: #fff;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.header-brand img { flex-shrink: 0; filter: drop-shadow(0 1px 4px rgba(0,0,0,.25)); }

.header-brand-text { line-height: 1.2; }

.header-brand-name {
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
  display: block;
}

.header-brand-sub {
  font-family: var(--font-b);
  font-size: .65rem;
  color: rgba(255,255,255,.72);
  text-transform: uppercase;
  letter-spacing: .1em;
  display: block;
}

.header-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 1.4rem;
  background: #fff;
}

.header-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: flex-end;
  padding: 0;
}

.header-nav ul li a {
  display: block;
  padding: .5rem .8rem;
  font-family: var(--font-b);
  font-weight: 600;
  font-size: .82rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .07em;
  position: relative;
  transition: color .2s;
}

.header-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%; right: 50%;
  height: 2px;
  background: var(--primary);
  transition: left .2s, right .2s;
}

.header-nav ul li a:hover { color: var(--primary); }
.header-nav ul li a:hover::after { left: .8rem; right: .8rem; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .6rem;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform .3s, opacity .3s;
  border-radius: 1px;
}

/* =============================================
   LAYOUT
   ============================================= */

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }

.page-wrapper {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  gap: 1.75rem;
  padding: 2rem 0 3rem;
}

.main-content { min-width: 0; }
.sidebar { min-width: 0; }

/* =============================================
   HERO
   ============================================= */

.hero {
  background: linear-gradient(135deg, #7f1d1d 0%, var(--primary) 55%, #b45309 100%);
  color: #fff;
  padding: 3rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: -5%; bottom: 0;
  width: 55%;
  background: repeating-linear-gradient(-45deg, transparent, transparent 12px, rgba(255,255,255,.03) 12px, rgba(255,255,255,.03) 13px);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 56px;
  background: var(--bg);
  clip-path: polygon(0 80%, 100% 0, 100% 100%, 0 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(255,255,255,.65);
  margin-bottom: .4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.hero-kicker::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.hero-text h2 {
  font-family: var(--font-h);
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero-excerpt { color: rgba(255,255,255,.8); margin-bottom: 1.4rem; font-size: .98rem; }
.hero-date { font-size: .78rem; color: rgba(255,255,255,.55); margin-bottom: 1rem; }

.hero-image img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
  border-radius: var(--radius);
}

/* =============================================
   PAGE TITLE SECTION (categories / article)
   ============================================= */

.page-title-section {
  background: linear-gradient(to right, #7f1d1d, var(--primary));
  padding: 1.8rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-title-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: repeating-linear-gradient(-55deg, transparent, transparent 30px, rgba(255,255,255,.025) 30px, rgba(255,255,255,.025) 31px);
  pointer-events: none;
}

.page-title-section::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 48px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.page-title-section h1 { color: #fff; position: relative; z-index: 1; font-size: 2rem; }
.page-title-section .page-subtitle { color: rgba(255,255,255,.72); position: relative; z-index: 1; font-size: .95rem; margin-top: .2rem; }

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-block;
  padding: .55rem 1.5rem;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-b);
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background .2s;
  text-decoration: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.18) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0s;
}

.btn:hover { background: var(--secondary); color: #fff; }
.btn:hover::before { transform: translateX(100%); transition: transform .5s ease; }

@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* =============================================
   SECTION HEADER
   ============================================= */

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--primary);
}

.section-title { font-family: var(--font-h); font-size: 1.45rem; font-weight: 700; }
.section-more { margin-left: auto; font-size: .8rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .07em; }
.section-more:hover { color: var(--secondary); }

/* =============================================
   ARTICLE CARDS
   ============================================= */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-bottom: 1.5rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity .25s;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 10px 36px rgba(220,38,38,.13); }
.card:hover::before { opacity: 1; }

.card-img-wrap { overflow: hidden; height: 190px; background: #f5f5f5; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img-wrap img { transform: scale(1.05); }

.card-body { padding: .95rem 1.1rem 1.1rem; }

.card-category {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  margin-bottom: .35rem;
}

.card-title { font-family: var(--font-h); font-size: 1rem; line-height: 1.3; margin-bottom: .45rem; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--primary); }

.card-excerpt { font-size: .85rem; color: #57534e; line-height: 1.5; margin-bottom: .6rem; }
.card-date { font-size: .77rem; color: var(--muted); }

/* Featured card (full-width) */
.card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.card-featured .card-img-wrap { height: 100%; min-height: 230px; }

.card-featured .card-body {
  padding: 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-featured .card-title { font-size: 1.35rem; }

/* =============================================
   SIDEBARS & WIDGETS
   ============================================= */

.widget {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.4rem;
}

.widget::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--accent));
}

.widget-title {
  font-family: var(--font-h);
  font-size: .95rem;
  font-weight: 700;
  padding: .75rem 1rem .55rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.widget-body { padding: .75rem 1rem; }

/* Categories list */
.cat-list { list-style: none; padding: 0; }
.cat-list li { border-bottom: 1px solid var(--border); }
.cat-list li:last-child { border-bottom: none; }

.cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .45rem 0;
  font-weight: 600;
  font-size: .875rem;
  color: var(--text);
  transition: color .2s, padding-left .2s;
}

.cat-list a:hover { color: var(--primary); padding-left: .4rem; }

.cat-list .count {
  background: var(--primary);
  color: #fff;
  font-size: .7rem;
  padding: 1px 6px;
  border-radius: 2px;
  font-weight: 600;
}

/* Recent posts */
.recent-posts { list-style: none; padding: 0; }

.rp-item {
  display: flex;
  gap: .7rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
}

.rp-item:last-child { border-bottom: none; }

.rp-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.rp-info a {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  display: block;
  margin-bottom: .15rem;
}

.rp-info a:hover { color: var(--primary); }
.rp-date { font-size: .73rem; color: var(--muted); }

/* Calendar widget */
.cal-list { list-style: none; padding: 0; }

.cal-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .6rem 0;
  border-bottom: 1px dashed var(--border);
}

.cal-item:last-child { border-bottom: none; }

.cal-badge {
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: .3rem .45rem;
  border-radius: 2px;
  min-width: 42px;
}

.cal-badge .day { font-family: var(--font-h); font-size: 1.05rem; line-height: 1; display: block; }
.cal-badge .mon { font-size: .6rem; text-transform: uppercase; letter-spacing: .04em; opacity: .8; }

.cal-event-title { font-size: .82rem; font-weight: 600; line-height: 1.3; color: var(--text); }
.cal-event-place { font-size: .75rem; color: var(--muted); margin-top: .1rem; }

/* "Athlete of the week" widget */
.athlete-widget { text-align: center; padding-bottom: .5rem; }
.athlete-widget img { width: 80px; height: 80px; object-fit: cover; border-radius: 50%; margin: 0 auto .75rem; border: 3px solid var(--primary); }
.athlete-name { font-family: var(--font-h); font-size: 1rem; color: var(--text); margin-bottom: .2rem; }
.athlete-sport { font-size: .78rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.athlete-desc { font-size: .82rem; color: #57534e; margin-top: .5rem; }

/* =============================================
   BREADCRUMBS
   ============================================= */

.breadcrumbs {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}

.breadcrumbs a { color: var(--link); }
.breadcrumbs a:hover { color: var(--link-hover); }
.breadcrumbs .sep { margin: 0 .35rem; color: #a8a29e; }

/* =============================================
   ARTICLE SINGLE PAGE
   ============================================= */

article.single {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}

article.single h1 { font-size: 1.85rem; margin-bottom: .4rem; line-height: 1.2; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
}

.article-date { font-size: .82rem; color: var(--muted); }

.article-cat-link {
  font-size: .75rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  padding: .15rem .6rem;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.article-cat-link:hover { background: var(--secondary); color: #fff; }

.first-image {
  width: 100%;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: var(--radius);
}

.first-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 96%, 96% 100%, 0 100%);
}

/* =============================================
   ENTRY CONTENT (article body)
   ============================================= */

.entry-content { font-size: 1rem; line-height: 1.8; color: var(--text); }

.entry-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: .7rem;
  padding-bottom: .35rem;
  border-bottom: 2px solid var(--primary);
}

.entry-content h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: .55rem;
  padding-left: .7rem;
  border-left: 3px solid var(--accent);
  color: var(--secondary);
}

.entry-content p { margin-bottom: 1.1rem; }

.entry-content ul,
.entry-content ol { margin-bottom: 1.1rem; padding-left: 1.5rem; }

.entry-content li { margin-bottom: .35rem; }
.entry-content ul li::marker { color: var(--primary); }
.entry-content ol li::marker { color: var(--primary); font-weight: 700; }

.entry-content blockquote {
  border-left: 4px solid var(--primary);
  background: #fef2f2;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: #44403c;
}

.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: .9rem;
}

.entry-content th {
  background: var(--primary);
  color: #fff;
  padding: .55rem .85rem;
  text-align: left;
  font-weight: 600;
}

.entry-content td {
  padding: .5rem .85rem;
  border-bottom: 1px solid var(--border);
}

.entry-content tbody tr:nth-child(even) td { background: #fef2f2; }
.entry-content tbody tr:hover td { background: #fee2e2; }

.entry-content img { border-radius: var(--radius); margin: 1.5rem 0; }

.entry-content a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--link-hover); }

.entry-content .infobox {
  background: linear-gradient(135deg, #fef3c7, #fffbeb);
  border: 1px solid #fbbf24;
  border-left: 4px solid var(--accent);
  padding: .9rem 1.2rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.entry-content .infobox strong {
  color: #92400e;
  display: block;
  margin-bottom: .25rem;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.entry-content .stat-block {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  text-align: center;
}

.entry-content .stat-block .stat-number {
  font-family: var(--font-h);
  font-size: 2.4rem;
  display: block;
  line-height: 1;
  margin-bottom: .25rem;
}

.entry-content .stat-block .stat-label {
  font-size: .82rem;
  opacity: .85;
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* =============================================
   TAGS
   ============================================= */

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  padding-top: 1.25rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.article-tags-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-right: .2rem;
}

a.tag-pill {
  display: inline-block;
  padding: .2rem .65rem;
  background: #fef2f2;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: .78rem;
  color: var(--primary);
  font-weight: 600;
  transition: background .2s, color .2s, border-color .2s;
}

a.tag-pill:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* =============================================
   SPEED-LINE DIVIDER
   ============================================= */

.divider {
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--accent), transparent);
  margin: 2rem 0;
  clip-path: polygon(0 0, 100% 0, 98% 100%, 0 100%);
}

/* =============================================
   FOOTER — CREATIVE ASYMMETRIC
   ============================================= */

footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,.65);
  margin-top: 2.5rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--accent), var(--primary));
}

.footer-watermark {
  position: absolute;
  bottom: 30px;
  left: -1%;
  font-family: var(--font-h);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 700;
  color: rgba(255,255,255,.035);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: -.02em;
  line-height: 1;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  padding: 2.5rem 0 1.5rem;
  position: relative;
  z-index: 1;
}

.footer-brand {}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .8rem;
}

.footer-logo-row img { filter: brightness(0) invert(1) opacity(.8); }

.footer-site-name {
  font-family: var(--font-h);
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
}

.footer-tagline {
  font-size: .82rem;
  color: rgba(255,255,255,.48);
  line-height: 1.55;
  margin-bottom: 1.2rem;
  max-width: 240px;
}

.footer-author {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

.footer-author strong { color: rgba(255,255,255,.62); }

.footer-nav-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-nav-group h4 {
  font-family: var(--font-b);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.35);
  margin-bottom: .7rem;
}

.footer-nav-group ul { list-style: none; padding: 0; }
.footer-nav-group ul li { margin-bottom: .35rem; }

.footer-nav-group ul li a {
  font-size: .84rem;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}

.footer-nav-group ul li a:hover { color: #fff; }

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,.07);
  padding: .85rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .77rem;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: .5rem;
}

.footer-disclaimer {
  position: relative;
  z-index: 1;
  font-size: .73rem;
  color: rgba(255,255,255,.22);
  border-top: 1px solid rgba(255,255,255,.05);
  padding: .65rem 0;
  text-align: center;
}

/* Track lines decoration at footer bottom */
.footer-track {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 8px;
  background: repeating-linear-gradient(
    to right,
    transparent, transparent 50px,
    rgba(255,255,255,.04) 50px, rgba(255,255,255,.04) 51px
  );
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */

.anim-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .45s ease, transform .45s ease;
}

.anim-up.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   UTILITIES
   ============================================= */

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1100px) {
  .page-wrapper { grid-template-columns: 200px 1fr; }
  .sidebar-right { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-nav-col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .page-wrapper { grid-template-columns: 1fr; }
  .sidebar-left { display: none; }

  .header-inner { background: var(--primary); }
  .header-brand { width: auto; }
  .header-nav { display: none; background: #fff; position: absolute; top: 100%; left: 0; right: 0; padding: 1rem 1.25rem; box-shadow: 0 4px 16px rgba(0,0,0,.12); z-index: 300; }
  .header-nav.open { display: flex; }
  .header-nav ul { flex-direction: column; gap: 0; }
  .header-nav ul li a { padding: .6rem 0; }
  .menu-toggle { display: flex; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .hero { padding: 2rem 0 3rem; }

  .cards-grid { grid-template-columns: 1fr; }
  .card-featured { grid-template-columns: 1fr; }
  .card-featured .card-img-wrap { min-height: 200px; }

  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.35rem; }

  .footer-nav-col { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  article.single { padding: 1.25rem; }
  .first-image img { height: 220px; }
}

@media (max-width: 480px) {
  .container { padding: 0 .9rem; }
  .hero-text h2 { font-size: 1.45rem; }
  .footer-watermark { display: none; }
}
