/* ===========================
   CatSphinx.ru — Main Styles
   =========================== */

:root {
  --cream: #f7f2eb;
  --warm-white: #fdf9f4;
  --sand: #e8dccb;
  --tan: #c9a87c;
  --bronze: #a67c52;
  --dark-brown: #3b2a1a;
  --charcoal: #2c2416;
  --muted: #7a6a58;
  --accent: #c4833a;
  --accent-dark: #9e6428;
  --card-bg: #fff9f2;
  --border: #e0d3c0;
  --shadow: 0 4px 24px rgba(59,42,26,0.10);
  --radius: 14px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Nunito', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--dark-brown);
  line-height: 1.7;
  font-size: 1rem;
}

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

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,242,235,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; gap: 2rem;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-size: 1.5rem;
  color: var(--dark-brown); text-decoration: none; flex-shrink: 0;
}
.logo-icon { font-size: 1.6rem; }
.logo-dot { color: var(--accent); }
.main-nav {
  display: flex; gap: 1.5rem; margin-left: auto; flex-wrap: wrap;
}
.main-nav a {
  color: var(--muted); font-weight: 600; font-size: .88rem;
  letter-spacing: .04em; text-transform: uppercase; transition: color .2s;
}
.main-nav a:hover { color: var(--accent); }
.nav-highlight {
  background: var(--accent); color: #fff !important;
  padding: .3rem .9rem; border-radius: 50px;
}
.nav-highlight:hover { background: var(--accent-dark); }
.burger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--dark-brown); }

/* ── HERO ── */
.hero {
  position: relative; overflow: hidden;
  background: var(--charcoal);
  min-height: 560px;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, #5a3a1a 0%, #2c2416 60%, #1a150e 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 680px; padding: 5rem 1.5rem 5rem 8vw;
  animation: fadeUp .9s ease both;
}
.hero-eyebrow {
  font-family: var(--font-body); font-size: .8rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--tan); margin-bottom: 1rem;
}
.hero h1 { color: #f5e8d0; margin-bottom: 1.2rem; }
.hero-sub { color: #c9b89a; font-size: 1.1rem; margin-bottom: 2rem; max-width: 520px; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-ornament {
  position: absolute; right: 6vw; top: 50%; transform: translateY(-50%);
  font-size: clamp(6rem, 12vw, 14rem); opacity: .07; pointer-events: none;
  z-index: 1; color: var(--tan);
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--accent); color: #fff;
  padding: .75rem 2rem; border-radius: 50px;
  font-weight: 700; font-size: .9rem; letter-spacing: .04em;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); color: #fff; }
.btn-secondary {
  display: inline-block;
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent);
  padding: .7rem 1.8rem; border-radius: 50px;
  font-weight: 700; font-size: .9rem; letter-spacing: .04em;
  transition: all .2s;
}
.btn-secondary:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* ── SECTIONS ── */
.section { padding: 4.5rem 0; }
.section-title {
  text-align: center; margin-bottom: .6rem; color: var(--dark-brown);
}
.section-sub { text-align: center; color: var(--muted); margin-bottom: 2.5rem; }
.section-title + .section-sub { margin-top: .4rem; }
.section-title::after {
  content: ''; display: block;
  width: 48px; height: 3px;
  background: var(--accent); border-radius: 2px;
  margin: .8rem auto 2rem;
}

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: block;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--tan);
}
.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.card h3 { color: var(--dark-brown); margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .92rem; line-height: 1.6; }

/* ── FACTS ── */
.facts-section { background: var(--sand); }
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem; text-align: center;
}
.fact { padding: 1.5rem; }
.fact-num {
  display: block; font-family: var(--font-display);
  font-size: 2.8rem; font-weight: 600; color: var(--accent);
}
.fact-label { color: var(--muted); font-size: .88rem; text-transform: uppercase; letter-spacing: .08em; }

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
}
.faq-item summary {
  cursor: pointer; font-weight: 600;
  font-size: 1.02rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; color: var(--dark-brown);
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--accent); font-size: 1.4rem; flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { color: var(--accent); }
.faq-item p, .faq-item ul, .faq-item ol {
  padding-top: .8rem; color: var(--muted);
  font-size: .95rem; line-height: 1.75;
}
.faq-item a { color: var(--accent); text-decoration: underline; }

/* ── NURSERY PREVIEW ── */
.nursery-preview { background: var(--cream); }
.nursery-mini-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}
.nursery-mini-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
  transition: transform .2s, box-shadow .2s; display: block; color: inherit;
}
.nursery-mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.nursery-city { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 700; margin-bottom: .3rem; }
.nursery-name { font-family: var(--font-display); font-size: 1.15rem; color: var(--dark-brown); margin-bottom: .3rem; }
.nursery-breeds { font-size: .88rem; color: var(--muted); }

/* ── ARTICLE PAGES (shared) ── */
.page-hero {
  background: var(--charcoal);
  padding: 4rem 1.5rem;
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, #5a3a1a 0%, #1a150e 100%);
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { color: #f5e8d0; }
.page-hero p { color: #c9b89a; max-width: 640px; margin: .8rem auto 0; font-size: 1.1rem; }
.page-eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--tan); margin-bottom: .8rem;
}

.article-body { max-width: 820px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.article-body h2 { margin: 2.5rem 0 1rem; color: var(--dark-brown); }
.article-body h3 { margin: 2rem 0 .8rem; color: var(--bronze); }
.article-body p { margin-bottom: 1rem; color: var(--muted); line-height: 1.8; }
.article-body ul, .article-body ol { margin: .8rem 0 1.2rem 1.4rem; color: var(--muted); line-height: 1.8; }
.article-body li { margin-bottom: .4rem; }
.article-body strong { color: var(--dark-brown); }
.article-body a { color: var(--accent); text-decoration: underline; }

.info-box {
  background: #fff4e5; border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.5rem; margin: 1.5rem 0;
}
.info-box strong { color: var(--accent-dark); display: block; margin-bottom: .3rem; }
.info-box p { margin: 0; }

.warn-box {
  background: #fff3cd; border-left: 4px solid #e6a817;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.5rem; margin: 1.5rem 0;
}

/* ── TABLE ── */
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .93rem; }
.article-body th { background: var(--sand); color: var(--dark-brown); font-weight: 700; padding: .7rem 1rem; text-align: left; }
.article-body td { padding: .65rem 1rem; border-bottom: 1px solid var(--border); color: var(--muted); }
.article-body tr:last-child td { border-bottom: none; }

/* ── NURSERY PAGE ── */
.nursery-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem; padding: 3rem 1.5rem 5rem; max-width: 1140px; margin: 0 auto;
}
.nursery-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.nursery-card-header {
  background: var(--charcoal); padding: 1.5rem;
  position: relative;
}
.nursery-card-header::before {
  content: '𓆓'; position: absolute; right: 1rem; top: 50%;
  transform: translateY(-50%); font-size: 3rem; opacity: .15; color: var(--tan);
}
.nursery-badge {
  display: inline-block; background: var(--accent);
  color: #fff; font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .2rem .7rem; border-radius: 50px; margin-bottom: .6rem;
}
.nursery-card-header h3 { color: #f5e8d0; font-size: 1.4rem; }
.nursery-card-header .city { color: var(--tan); font-size: .85rem; margin-top: .3rem; }
.nursery-card-body { padding: 1.5rem; }
.nursery-card-body p { color: var(--muted); font-size: .93rem; margin-bottom: 1rem; }
.nursery-info { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.nursery-info li { display: flex; gap: .6rem; font-size: .9rem; color: var(--muted); margin-bottom: .5rem; }
.nursery-info li::before { content: '•'; color: var(--accent); flex-shrink: 0; }
.nursery-tag {
  display: inline-block; background: var(--sand);
  color: var(--bronze); font-size: .78rem; font-weight: 600;
  padding: .25rem .7rem; border-radius: 50px; margin: .2rem .2rem 0 0;
}

.add-nursery-cta {
  background: var(--sand); border: 2px dashed var(--tan);
  border-radius: var(--radius); padding: 2.5rem;
  text-align: center; max-width: 640px; margin: 0 auto 4rem;
}
.add-nursery-cta h3 { color: var(--dark-brown); margin-bottom: .5rem; }
.add-nursery-cta p { color: var(--muted); margin-bottom: 1.2rem; }

/* ── BREADCRUMB ── */
.breadcrumb { padding: .8rem 1.5rem; max-width: 1140px; margin: 0 auto; font-size: .83rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 .4rem; }

/* ── FOOTER ── */
.site-footer { background: var(--charcoal); color: #c9b89a; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 2.5rem; margin-bottom: 2rem; }
.footer-logo { font-family: var(--font-display); font-size: 1.4rem; color: #f5e8d0; margin-bottom: .5rem; }
.site-footer p { font-size: .9rem; line-height: 1.6; }
.site-footer h4 { color: #f5e8d0; font-family: var(--font-display); margin-bottom: .8rem; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: .4rem; }
.site-footer ul a { color: #c9b89a; font-size: .9rem; transition: color .2s; }
.site-footer ul a:hover { color: var(--tan); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.2rem; text-align: center; font-size: .82rem; opacity: .6; }

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

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-ornament { display: none; }
  .hero-content { padding: 3rem 1.5rem; }
}
@media (max-width: 640px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--cream); padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); gap: .8rem; }
  .main-nav.open { display: flex; }
  .burger { display: block; margin-left: auto; }
  .site-header { position: relative; }
  .footer-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
}

/* ── TOC BOX ── */
.toc-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem 1.4rem;
  margin: 1.2rem auto;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.8;
}
.toc-box strong { color: var(--dark-brown); margin-right: .4rem; }
.toc-box a { color: var(--accent); text-decoration: none; }
.toc-box a:hover { text-decoration: underline; }

/* ── BREADCRUMB ── */
.bc-sep { margin: 0 .4rem; color: var(--muted); }
.bc-current { color: var(--dark-brown); font-weight: 600; }

/* ── RELATED LINKS ── */
.related-links {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-top: 2.5rem;
}
.related-links h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--dark-brown);
  margin-bottom: .7rem;
}
.related-links a {
  display: block;
  color: var(--accent);
  font-weight: 600;
  font-size: .93rem;
  text-decoration: none;
  padding: .25rem 0;
  transition: color .2s;
}
.related-links a:hover { color: var(--accent-dark); }

/* ── INTRO SECTION ── */
.intro-section { background: var(--warm-white); }
.intro-two-col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}
.intro-text p { color: var(--muted); line-height: 1.8; margin-bottom: 1rem; }
.intro-text h2 { margin-bottom: 1rem; color: var(--dark-brown); }
.intro-aside { display: flex; flex-direction: column; gap: 1.2rem; }
.aside-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}
.aside-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--dark-brown);
  margin-bottom: .7rem;
}
.aside-card ul { list-style: none; padding: 0; margin: 0; }
.aside-card ul li {
  padding: .25rem 0;
  font-size: .9rem;
  color: var(--muted);
  padding-left: 1.2rem;
  position: relative;
}
.aside-card ul li::before { content: '✓'; color: var(--accent); position: absolute; left: 0; }
.aside-card--warn { border-color: #e6a817; background: #fff9ed; }
.aside-card--warn ul li::before { content: '✗'; color: #c48a00; }
.aside-card--warn h4 { color: #9e6800; }

/* ── CTA BAND ── */
.cta-band { background: var(--charcoal); }
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: #f5e8d0; font-size: clamp(1.4rem, 2.5vw, 2rem); }
.cta-band p { color: #c9b89a; font-size: .95rem; margin-top: .3rem; }

@media (max-width: 860px) {
  .intro-two-col { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}
