/* ===== VeryStylish — общие стили портала ===== */
:root {
  --bg: #fffafc;
  --surface: #ffffff;
  --ink: #2a1a24;
  --muted: #8a7480;
  --line: #f0e3ea;
  --accent: #d6608a;
  --accent-2: #b14a73;
  --gold: #c79a4a;
  --soft: #fdeef4;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(120, 40, 75, 0.08);
  --shadow-hover: 0 18px 44px rgba(120, 40, 75, 0.16);
  --max: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== Topbar ===== */
.topbar {
  background: var(--ink);
  color: #f6e9f0;
  font-size: 0.82rem;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
}
.topbar .date { color: #cdb6c2; }
.topbar nav a { margin-left: 18px; color: #e7d3de; transition: color .2s; }
.topbar nav a:hover { color: var(--accent); }

/* ===== Header ===== */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}
.logo { font-size: 1.6rem; font-weight: 800; letter-spacing: -.5px; display: flex; align-items: center; gap: 7px; }
.logo .spark { color: var(--gold); }
.logo .stylish {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.main-nav { display: flex; gap: 26px; }
.main-nav a {
  font-weight: 600;
  font-size: 0.96rem;
  padding: 6px 0;
  position: relative;
  color: var(--ink);
  transition: color .2s;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--accent);
  transition: width .25s;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.header-tools { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer;
  font-size: 1rem; color: var(--ink); transition: all .2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.burger { display: none; }

/* ===== Section heads ===== */
.section { padding: 56px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px; gap: 16px; flex-wrap: wrap;
}
.section-head h2 {
  font-size: 1.7rem; font-weight: 800; letter-spacing: -.5px;
  display: flex; align-items: center; gap: 10px;
}
.section-head h2::before {
  content: ""; width: 8px; height: 26px; border-radius: 4px;
  background: linear-gradient(var(--accent), var(--accent-2));
}
.section-head a.more { color: var(--accent); font-weight: 600; font-size: .92rem; }
.section-head a.more:hover { text-decoration: underline; }

/* ===== Cards / thumbs ===== */
.thumb {
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  background-size: cover; background-position: center;
  position: relative; overflow: hidden;
}
/* gradient placeholder "photos" */
.ph-1 { background: linear-gradient(135deg, #f6b0c9, #c97b9a); }
.ph-2 { background: linear-gradient(135deg, #c7b3e6, #7a5db0); }
.ph-3 { background: linear-gradient(135deg, #f3cda0, #d99257); }
.ph-4 { background: linear-gradient(135deg, #a8d8d0, #4f9d92); }
.ph-5 { background: linear-gradient(135deg, #f4a9a9, #c76b6b); }
.ph-6 { background: linear-gradient(135deg, #b8c6e8, #6f86c2); }
.ph-7 { background: linear-gradient(135deg, #e9b8d8, #b85a98); }
.ph-8 { background: linear-gradient(135deg, #d8c9a0, #b09a5a); }

.tag {
  display: inline-block;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: #fff; background: var(--accent);
  padding: 5px 11px; border-radius: 100px;
}
.tag.gold { background: var(--gold); }
.tag.purple { background: #7a5db0; }
.tag.teal { background: #4f9d92; }

.card { display: flex; flex-direction: column; gap: 12px; }
.card .thumb .tag { position: absolute; top: 12px; left: 12px; }
.card h3 { font-size: 1.12rem; line-height: 1.35; font-weight: 700; transition: color .2s; }
.card a:hover h3 { color: var(--accent); }
.card .meta { font-size: .82rem; color: var(--muted); display: flex; gap: 12px; }
.card p.excerpt { color: var(--muted); font-size: .94rem; }

/* ===== Hero ===== */
.hero { padding: 40px 0 10px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
}
.hero-main { position: relative; border-radius: 20px; overflow: hidden; min-height: 440px; }
.hero-main .thumb { aspect-ratio: auto; height: 100%; position: absolute; inset: 0; }
.hero-main .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,12,22,.85) 0%, rgba(30,12,22,.15) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 34px; color: #fff;
}
.hero-main h1 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1.15; margin: 14px 0 10px; }
.hero-main p { color: #f1dde7; max-width: 560px; }
.hero-main .meta { color: #e6c9d6; font-size: .85rem; margin-top: 14px; }
.hero-side { display: flex; flex-direction: column; gap: 18px; }
.hero-side .mini {
  display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center;
}
.hero-side .mini .thumb { aspect-ratio: 1; border-radius: 12px; }
.hero-side .mini h3 { font-size: 1rem; line-height: 1.3; }
.hero-side .mini .meta { font-size: .78rem; color: var(--muted); margin-top: 6px; }

/* ===== Grid layouts ===== */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.content-cols { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }

/* ===== Sidebar ===== */
.sidebar > * + * { margin-top: 30px; }
.widget {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.widget h4 {
  font-size: 1.05rem; margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px;
}
.popular-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.popular-item:last-child { border-bottom: none; }
.popular-item .num { font-size: 1.5rem; font-weight: 800; color: var(--accent); opacity: .5; line-height: 1; }
.popular-item h5 { font-size: .92rem; font-weight: 600; line-height: 1.35; }
.popular-item:hover h5 { color: var(--accent); }
.popular-item .meta { font-size: .76rem; color: var(--muted); margin-top: 4px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  font-size: .82rem; background: var(--soft); color: var(--accent-2);
  padding: 6px 13px; border-radius: 100px; transition: all .2s;
}
.tag-cloud a:hover { background: var(--accent); color: #fff; }

/* ===== Category strip ===== */
.cat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  border-radius: var(--radius); padding: 26px 22px; color: #fff;
  position: relative; overflow: hidden; min-height: 150px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .3s;
}
.cat-card:hover { transform: translateY(-6px); }
.cat-card .emoji { font-size: 1.8rem; position: absolute; top: 18px; right: 20px; opacity: .9; }
.cat-card h3 { font-size: 1.25rem; font-weight: 800; }
.cat-card span { font-size: .82rem; opacity: .9; }

/* ===== Newsletter band ===== */
.band {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff; border-radius: 24px; padding: 50px 40px; text-align: center;
}
.band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.band p { opacity: .92; max-width: 560px; margin: 0 auto 26px; }
.band .btn {
  display: inline-block; background: #fff; color: var(--accent-2);
  font-weight: 700; padding: 14px 34px; border-radius: 100px; transition: transform .2s;
}
.band .btn:hover { transform: translateY(-2px); }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #d9c4d0; margin-top: 70px; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer p.about { font-size: .9rem; color: #b89aa9; }
.footer-col h5 { color: #fff; font-size: .95rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col a { display: block; padding: 5px 0; color: #cbb2c0; font-size: .9rem; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
  display: grid; place-items: center; font-size: .8rem; font-weight: 700; transition: all .2s;
}
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .84rem; color: #a98aa0;
}

/* ===== Article page ===== */
.article-hero { padding: 30px 0 20px; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--accent); }
.article-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.15; margin: 12px 0 16px; max-width: 820px; }
.article-meta { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.author { display: flex; align-items: center; gap: 10px; }
.author .ava { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.lead-img { border-radius: 20px; height: 420px; margin: 24px 0 36px; }
.article-body { font-size: 1.08rem; max-width: 760px; }
.article-body p { margin-bottom: 22px; }
.article-body h2 { font-size: 1.5rem; margin: 36px 0 16px; }
.article-body h3 { font-size: 1.2rem; margin: 28px 0 12px; }
.article-body ul, .article-body ol { margin: 0 0 22px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  border-left: 4px solid var(--accent); background: var(--soft);
  padding: 18px 24px; border-radius: 0 12px 12px 0; margin: 0 0 24px;
  font-family: var(--serif); font-style: italic; font-size: 1.15rem;
}
.article-body figure { margin: 0 0 28px; }
.article-body figure .thumb { aspect-ratio: 16/9; border-radius: 14px; }
.article-body figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; text-align: center; }

/* ===== Page title (category) ===== */
.page-title { padding: 44px 0 10px; }
.page-title .kicker { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: .82rem; }
.page-title h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin: 10px 0; }
.page-title p { color: var(--muted); max-width: 640px; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .content-cols { grid-template-columns: 1fr; }
  .cat-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .main-nav { display: none; }
  .burger { display: grid; }
  .topbar nav { display: none; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .cat-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-side .mini { grid-template-columns: 96px 1fr; }
}
