
:root {
  --spl-white: #ffffff;
  --spl-bg: #fff8fb;
  --spl-soft: #fff4f8;
  --spl-line: #f4c7d8;
  --spl-line-soft: #f8dce7;
  --spl-pink: #ec3b85;
  --spl-pink-soft: #f48ab6;
  --spl-wine: #7f294f;
  --spl-rose: #9a2f62;
  --spl-text: #3a2630;
  --spl-muted: #6f6268;
  --spl-shadow: 0 10px 26px rgba(127, 41, 79, 0.055);
  --spl-serif: Georgia, "Times New Roman", serif;
  --spl-sans: Arial, Helvetica, sans-serif;
  --spl-radius: 16px;
}

body.spl-v4-theme {
  background: #fff;
  color: var(--spl-text);
}

body.spl-v4-theme,
body.spl-v4-theme p,
body.spl-v4-theme a,
body.spl-v4-theme li,
body.spl-v4-theme input,
body.spl-v4-theme button {
  font-family: var(--spl-sans);
}

body.spl-v4-theme h1,
body.spl-v4-theme h2,
body.spl-v4-theme h3,
body.spl-v4-theme h4 {
  font-family: var(--spl-serif);
}

.spl-wrap {
  width: min(1320px, calc(100% - 56px));
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

.spl-header {
  background: #fff;
  border-bottom: 1px solid rgba(244, 199, 216, 0.65);
}

.spl-topbar {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--spl-muted);
  font-size: 13px;
}

.spl-topbar a {
  color: var(--spl-muted);
  text-decoration: none;
}

.spl-top-left,
.spl-top-right,
.spl-top-menu {
  display: flex;
  align-items: center;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.spl-top-left span,
.spl-top-right span {
  width: 1px;
  height: 13px;
  background: var(--spl-line);
}

.spl-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spl-socials a {
  width: 27px;
  height: 27px;
  border: 1px solid var(--spl-line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--spl-pink) !important;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.spl-brand {
  padding: 12px 0 10px;
  text-align: center;
}

.spl-logo-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: min(100%, 560px);
  min-height: 110px;
  line-height: 0;
}

.spl-logo {
  display: block !important;
  width: min(100%, 520px) !important;
  height: auto !important;
  max-width: 520px !important;
  max-height: 150px !important;
  object-fit: contain !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.spl-tagline {
  display: block;
  margin-top: 2px;
  color: #d55a98;
  font-family: var(--spl-serif);
  font-style: italic;
  font-size: 27px;
  line-height: 1.15;
}

.spl-menu-toggle {
  display: none;
}

.spl-main-nav {
  margin: 10px 0 18px;
  border: 1px solid var(--spl-line);
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  padding: 7px;
}

.spl-main-menu {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 0;
  margin: 0;
}

.spl-main-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--spl-wine);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.spl-main-menu a:hover,
.spl-main-menu .current-menu-item > a {
  background: var(--spl-pink);
  color: #fff;
}

.spl-page {
  background: #fff;
  padding: 16px 0 28px;
}

.spl-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: stretch;
}

.spl-home-left {
  min-width: 0;
}

.spl-hero {
  min-height: 320px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.9fr);
  gap: 28px;
  align-items: center;
  background: linear-gradient(90deg, #fffafa 0%, #fff8fb 48%, #fff2f7 100%);
  border: 1px solid var(--spl-line-soft);
  border-radius: var(--spl-radius);
  box-shadow: var(--spl-shadow);
  overflow: hidden;
  padding: 34px;
}

.spl-kicker {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 20px;
  color: var(--spl-rose);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
}

.spl-kicker::after {
  content: "";
  display: block;
  width: 90px;
  height: 1px;
  background: #e89abd;
}

.spl-hero-title {
  max-width: 585px;
  margin: 0 0 18px;
  color: var(--spl-wine);
  font-size: clamp(36px, 3.15vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.spl-hero-text {
  max-width: 520px;
  margin: 0;
  color: var(--spl-muted);
  font-size: 16px;
  line-height: 1.5;
}

.spl-hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  row-gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.spl-btn,
.spl-newsletter button,
.spl-search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 182px;
  min-height: 48px;
  border-radius: 10px;
  padding: 13px 24px;
  border: 1px solid var(--spl-pink);
  background: var(--spl-pink);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.spl-btn-light {
  background: #fff !important;
  color: var(--spl-pink) !important;
  border: 2px solid var(--spl-pink);
}

.spl-hero-art {
  height: 100%;
  min-height: 260px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spl-hero-art img {
  width: 100%;
  height: 100%;
  max-height: 315px;
  object-fit: cover;
  object-position: center right;
  display: block;
  transform-origin: 55% 55%;
  animation: splHeroFloat 7s ease-in-out infinite;
  will-change: transform;
}

@keyframes splHeroFloat {
  0% { transform: translateY(0) scale(1); }
  25% { transform: translateY(-3px) scale(1.006); }
  50% { transform: translateY(0) scale(1.01); }
  75% { transform: translateY(2px) scale(1.004); }
  100% { transform: translateY(0) scale(1); }
}

.spl-sidebar {
  display: grid;
  gap: 16px;
}

.spl-side-card {
  position: relative;
  min-height: 122px;
  display: flex;
  align-items: center;
  background: #fffafa;
  border: 1px solid var(--spl-line-soft);
  border-radius: 14px;
  box-shadow: var(--spl-shadow);
  overflow: hidden;
  padding: 18px 20px;
}

.spl-quote-card { min-height: 150px; }

.spl-side-text {
  position: relative;
  z-index: 2;
  max-width: 62%;
}

.spl-side-card h3 {
  margin: 0 0 10px;
  color: var(--spl-wine);
  font-size: 25px;
  line-height: 1.08;
}

.spl-side-card p {
  margin: 0 0 10px;
  color: var(--spl-muted);
  font-size: 14px;
  line-height: 1.35;
}

.spl-side-card a {
  color: var(--spl-pink);
  font-family: var(--spl-serif);
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
}

.spl-quote-mark {
  color: var(--spl-pink);
  font-family: var(--spl-serif);
  font-size: 46px;
  line-height: 0.55;
  font-weight: 700;
}

.spl-quote {
  color: #4f4a50;
  font-family: var(--spl-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.34;
}

.spl-side-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  color: var(--spl-pink);
}

.spl-side-line span {
  width: 95px;
  height: 2px;
  background: #f39abf;
}

.spl-side-line b {
  font-size: 24px;
  font-weight: 400;
}

.spl-side-img {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 8px;
  width: 38%;
  max-width: 132px;
  height: auto;
  object-fit: contain;
  opacity: 0.95;
}

.spl-quote-img { max-width: 142px; right: 14px; bottom: 14px; }
.spl-test-img { max-width: 132px; right: 10px; bottom: 8px; }
.spl-dream-img { max-width: 150px; right: 4px; bottom: 4px; }

.spl-topics {
  margin-top: 16px;
}

.spl-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 12px;
  color: var(--spl-text);
  font-size: 24px;
  line-height: 1.15;
}

.spl-section-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f4bfd3;
  box-shadow: 0 0 0 6px rgba(244, 191, 211, 0.2);
}

.spl-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #d8d4d5, transparent);
}

.spl-topic-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.spl-topic-card {
  min-height: 88px;
  border: 1px solid var(--spl-line-soft);
  border-radius: 13px;
  background: #fffdfd;
  box-shadow: 0 8px 18px rgba(127, 41, 79, 0.035);
  text-decoration: none;
  color: var(--spl-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 10px 14px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.spl-topic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(190, 92, 136, .10);
  border-color: #efb8cc;
}

.spl-topic-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spl-topic-icon img {
  display: block;
  width: 42px;
  height: 42px;
  max-width: 42px;
  max-height: 42px;
  object-fit: contain;
  opacity: 1;
  visibility: visible;
  transition: transform .35s ease;
}

.spl-topic-title {
  font-size: 14px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--spl-text);
}

.spl-topic-card:nth-child(1):hover .spl-topic-icon img { animation: splSpinSoft 1.15s ease-in-out; }
.spl-topic-card:nth-child(2):hover .spl-topic-icon img { animation: splLidOpen .85s ease-in-out; transform-origin: 50% 35%; }
.spl-topic-card:nth-child(3):hover .spl-topic-icon img { animation: splBounceSoft .8s ease; }
.spl-topic-card:nth-child(4):hover .spl-topic-icon img { animation: splFloatMoon 1.4s ease-in-out infinite alternate; }
.spl-topic-card:nth-child(5):hover .spl-topic-icon img { animation: splHeartPulse .9s ease-in-out infinite; }
.spl-topic-card:nth-child(6):hover .spl-topic-icon img { animation: splMirrorTilt .9s ease-in-out; transform-origin: 50% 60%; }

@keyframes splSpinSoft { 0%{transform:rotate(0) scale(1)} 45%{transform:rotate(145deg) scale(1.04)} 100%{transform:rotate(360deg) scale(1)} }
@keyframes splLidOpen { 0%{transform:rotate(0) translateY(0)} 40%{transform:rotate(-12deg) translateY(-5px)} 70%{transform:rotate(-7deg) translateY(-3px)} 100%{transform:rotate(0) translateY(0)} }
@keyframes splBounceSoft { 0%{transform:translateY(0) scale(1)} 30%{transform:translateY(-5px) scale(1.03)} 55%{transform:translateY(0) scale(.98)} 100%{transform:translateY(0) scale(1)} }
@keyframes splFloatMoon { 0%{transform:translateY(0) rotate(-4deg)} 100%{transform:translateY(-5px) rotate(4deg)} }
@keyframes splHeartPulse { 0%{transform:scale(1)} 30%{transform:scale(1.08)} 55%{transform:scale(1.15)} 80%{transform:scale(1.06)} 100%{transform:scale(1)} }
@keyframes splMirrorTilt { 0%{transform:rotate(0) scale(1)} 30%{transform:rotate(-7deg) scale(1.04)} 60%{transform:rotate(6deg) scale(1.03)} 100%{transform:rotate(0) scale(1)} }

.spl-popular {
  margin-top: 16px;
}

.spl-post-grid,
.spl-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.spl-post-card {
  border: 1px solid var(--spl-line-soft);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(127, 41, 79, 0.04);
}

.spl-post-thumb {
  display: block;
  height: 170px;
  background: linear-gradient(135deg, #fff, #fff4f8);
}

.spl-post-thumb img {
  width: 100%;
  height: 170px;
  display: block;
  object-fit: cover;
}

.spl-post-body {
  padding: 17px;
}

.spl-post-cat,
.spl-article-cat {
  display: inline-flex;
  margin-bottom: 9px;
  color: var(--spl-pink);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
}

.spl-post-title {
  margin: 0 0 8px;
  color: var(--spl-text);
  font-size: 20px;
  line-height: 1.12;
}

.spl-post-title a {
  color: inherit;
  text-decoration: none;
}

.spl-post-excerpt {
  color: var(--spl-muted);
  font-size: 14px;
  line-height: 1.45;
}

.spl-post-date {
  color: #a48c97;
  font-size: 12px;
}

.spl-newsletter {
  margin: 24px 0 20px;
  border: 1px solid var(--spl-line-soft);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(253,244,247,.95), rgba(255,255,255,.98));
  box-shadow: 0 8px 18px rgba(127,41,79,.04);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 420px;
  gap: 22px;
  align-items: center;
}

.spl-newsletter h2 {
  margin: 0 0 7px;
  color: var(--spl-wine);
  font-size: 24px;
}

.spl-newsletter p {
  margin: 0;
  color: var(--spl-muted);
  font-size: 14px;
  line-height: 1.45;
}

.spl-newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.spl-newsletter input,
.spl-search-form input {
  height: 44px;
  border: 1px solid var(--spl-line);
  border-radius: 9px;
  padding: 0 14px;
  background: #fff;
  flex: 1;
}

.spl-newsletter small {
  width: 100%;
  color: var(--spl-muted);
  font-size: 12px;
}

.spl-footer {
  background: #fff7fa;
  border-top: 1px solid var(--spl-line-soft);
  padding: 34px 0;
  color: var(--spl-wine);
}

.spl-footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr 1fr;
  gap: 26px;
}

.spl-footer-logo {
  color: var(--spl-pink);
  font-family: var(--spl-serif);
  font-size: 38px;
}

.spl-footer h4 {
  margin: 0 0 10px;
  color: var(--spl-wine);
  font-size: 18px;
}

.spl-footer a {
  display: block;
  margin-bottom: 7px;
  color: var(--spl-wine);
  text-decoration: none;
  font-size: 13px;
}

.spl-breadcrumbs {
  margin: 18px 0;
  color: var(--spl-muted);
  font-size: 13px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.spl-breadcrumbs a {
  color: var(--spl-pink);
  text-decoration: none;
}

.spl-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 320px;
  gap: 38px;
  align-items: start;
}

.spl-article-main,
.spl-page-card,
.spl-archive-header,
.spl-404-card {
  background: #fff;
  border: 1px solid var(--spl-line-soft);
  border-radius: 22px;
  padding: 36px 40px;
  box-shadow: var(--spl-shadow);
}

.spl-article-title,
.spl-page-title,
.spl-archive-title {
  margin: 0 0 14px;
  color: var(--spl-wine);
  font-size: clamp(34px, 3vw, 52px);
  line-height: 1.05;
}

.spl-article-meta {
  color: var(--spl-muted);
  font-size: 13px;
  margin-bottom: 24px;
}

.spl-article-image img {
  border-radius: 18px;
  width: 100%;
}

.spl-article-content {
  color: var(--spl-text);
  font-size: 18px;
  line-height: 1.78;
}

.spl-article-content p {
  margin: 0 0 22px;
}

.spl-article-content h2 {
  color: var(--spl-wine);
  font-size: 31px;
  margin: 38px 0 16px;
}

.spl-archive-header {
  margin-bottom: 24px;
}

.spl-archive-description {
  color: var(--spl-muted);
  font-size: 16px;
  line-height: 1.55;
}

.spl-pagination {
  margin: 26px 0;
}

.spl-search-form {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.spl-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--spl-line);
  background: #fff;
  color: var(--spl-pink);
  border-radius: 50%;
  box-shadow: var(--spl-shadow);
  opacity: 0;
  visibility: hidden;
  transition: .2s;
  z-index: 20;
}

.spl-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1200px) {
  .spl-wrap {
    width: min(1080px, calc(100% - 32px));
  }

  .spl-home-grid,
  .spl-article-layout {
    grid-template-columns: 1fr;
  }

  .spl-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .spl-hero {
    grid-template-columns: minmax(0, .9fr) minmax(300px, 1fr);
  }

  .spl-post-grid,
  .spl-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .spl-wrap {
    width: calc(100% - 28px);
  }

  .spl-topbar {
    display: none;
  }

  .spl-brand {
    padding-top: 14px;
  }

  .spl-logo-link {
    width: min(100%, 360px);
    min-height: 72px;
  }

  .spl-logo {
    max-width: 340px !important;
    max-height: 100px !important;
  }

  .spl-tagline {
    font-size: 20px;
  }

  .spl-menu-toggle {
    display: inline-flex;
    margin: 0 auto 10px;
    border: 1px solid var(--spl-line);
    background: #fff;
    border-radius: 999px;
    padding: 8px 18px;
    color: var(--spl-wine);
    font-weight: 800;
  }

  .spl-main-nav {
    overflow-x: auto;
    border-radius: 14px;
  }

  .spl-main-menu {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .spl-main-menu a {
    font-size: 13px;
    padding: 8px 12px;
  }

  .spl-hero {
    display: block;
    padding: 24px 18px;
    min-height: auto;
  }

  .spl-hero-title {
    font-size: 34px;
  }

  .spl-hero-text {
    font-size: 15px;
  }

  .spl-hero-actions {
    flex-direction: column;
  }

  .spl-btn {
    width: 100%;
  }

  .spl-hero-art {
    min-height: 220px;
    margin-top: 16px;
  }

  .spl-hero-art img {
    max-height: 230px;
    object-position: center;
  }

  .spl-sidebar,
  .spl-post-grid,
  .spl-archive-grid,
  .spl-footer-grid {
    grid-template-columns: 1fr;
  }

  .spl-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spl-newsletter {
    grid-template-columns: 1fr;
  }

  .spl-article-main,
  .spl-page-card,
  .spl-archive-header {
    padding: 26px 18px;
  }

  .spl-article-content {
    font-size: 16.5px;
    line-height: 1.72;
  }
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .spl-hero-art img,
  .spl-topic-card:hover .spl-topic-icon img {
    animation: none !important;
    transform: none !important;
  }
}


/* =========================================================
   Spletnica v4.0.1 — Adaptive Width Control
   Меняй ширину всего сайта через --spl-site-width
========================================================= */

:root {
  --spl-site-width: 1320px;
  --spl-side-gap: 56px;
  --spl-content-width: 1180px;
}

/* Общая ширина всех основных контейнеров */
.spl-wrap {
  width: min(var(--spl-site-width), calc(100% - var(--spl-side-gap))) !important;
  max-width: var(--spl-site-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Главная может быть шире */
.spl-front .spl-wrap {
  width: min(var(--spl-site-width), calc(100% - var(--spl-side-gap))) !important;
  max-width: var(--spl-site-width) !important;
}

/* Статьи, страницы, архивы и поиск — читабельнее и уже */
.spl-single .spl-wrap,
.spl-page-basic .spl-wrap,
.spl-search .spl-wrap,
.spl-archive .spl-wrap {
  width: min(var(--spl-content-width), calc(100% - var(--spl-side-gap))) !important;
  max-width: var(--spl-content-width) !important;
}

/* Большие экраны — немного шире, но не full-width */
@media (min-width: 1600px) {
  :root {
    --spl-site-width: 1440px;
    --spl-side-gap: 72px;
    --spl-content-width: 1200px;
  }
}

/* Очень большие мониторы — сохраняем журнальную композицию */
@media (min-width: 1900px) {
  :root {
    --spl-site-width: 1480px;
    --spl-side-gap: 96px;
    --spl-content-width: 1220px;
  }
}

/* Но hero и правая колонка не должны расползаться */
@media (min-width: 1500px) {
  .spl-home-grid {
    grid-template-columns: minmax(0, 1fr) 350px !important;
    gap: 26px !important;
  }
}

/* Планшеты */
@media (max-width: 1200px) {
  :root {
    --spl-site-width: 1080px;
    --spl-side-gap: 32px;
    --spl-content-width: 1080px;
  }

  .spl-wrap {
    width: min(var(--spl-site-width), calc(100% - var(--spl-side-gap))) !important;
    max-width: var(--spl-site-width) !important;
  }
}

/* Телефоны */
@media (max-width: 768px) {
  :root {
    --spl-site-width: 100%;
    --spl-side-gap: 28px;
    --spl-content-width: 100%;
  }

  .spl-wrap,
  .spl-front .spl-wrap,
  .spl-single .spl-wrap,
  .spl-page-basic .spl-wrap,
  .spl-search .spl-wrap,
  .spl-archive .spl-wrap {
    width: calc(100% - var(--spl-side-gap)) !important;
    max-width: none !important;
  }
}

/* Маленькие телефоны */
@media (max-width: 420px) {
  :root {
    --spl-side-gap: 20px;
  }
}


/* =========================================================
   Spletnica v4.1 — SEO blocks polish
========================================================= */

.spl-archive-links,
.spl-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.spl-archive-links a,
.spl-related-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid var(--spl-line);
  border-radius: 999px;
  background: #fff;
  color: var(--spl-wine);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.spl-archive-links a:hover,
.spl-related-links a:hover {
  border-color: var(--spl-pink);
  color: var(--spl-pink);
}

.spl-post-card[itemtype="https://schema.org/Article"] {
  contain: layout paint;
}


/* =========================================================
   Spletnica v4.1.1 — Visual Polish
   Fixes: hero gap, image scale, topic icon visibility.
========================================================= */

/* Hero should feel like one organic editorial card */
body.home .spl-hero {
  grid-template-columns: minmax(0, 0.86fr) minmax(390px, 0.96fr) !important;
  gap: 18px !important;
  padding: 34px 36px !important;
}

body.home .spl-hero-content {
  position: relative !important;
  z-index: 2 !important;
  max-width: 100% !important;
}

/* Reduce the empty space between text and illustration */
body.home .spl-hero-title {
  max-width: 610px !important;
  font-size: clamp(38px, 3.05vw, 56px) !important;
  line-height: 1.08 !important;
}

body.home .spl-hero-text {
  max-width: 560px !important;
}

body.home .spl-hero-art {
  min-height: 300px !important;
  height: 100% !important;
  margin-left: -12px !important;
  border-radius: 13px !important;
}

body.home .spl-hero-art img {
  width: 100% !important;
  height: 100% !important;
  max-height: 340px !important;
  object-fit: cover !important;
  object-position: center right !important;
  border-radius: 13px !important;
}

/* Topic cards: icons should be real visual elements, not tiny marks */
body.home .spl-topic-card {
  min-height: 98px !important;
  padding: 14px 12px 15px !important;
  gap: 8px !important;
}

body.home .spl-topic-icon {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  margin-bottom: 2px !important;
  overflow: visible !important;
}

body.home .spl-topic-icon img {
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: translateZ(0);
}

/* Different icons have different source proportions, so normalize them */
body.home .spl-topic-card:nth-child(2) .spl-topic-icon img {
  width: 60px !important;
  max-width: 60px !important;
}

body.home .spl-topic-card:nth-child(3) .spl-topic-icon img {
  width: 54px !important;
  max-width: 54px !important;
}

body.home .spl-topic-card:nth-child(4) .spl-topic-icon img {
  width: 58px !important;
  max-width: 58px !important;
}

body.home .spl-topic-card:nth-child(5) .spl-topic-icon img {
  width: 54px !important;
  max-width: 54px !important;
}

body.home .spl-topic-card:nth-child(6) .spl-topic-icon img {
  width: 55px !important;
  max-width: 55px !important;
}

body.home .spl-topic-title {
  font-size: 14.5px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
}

/* Keep the section title close but not glued to hero */
body.home .spl-topics {
  margin-top: 18px !important;
}

body.home .spl-section-title {
  margin-top: 18px !important;
  margin-bottom: 13px !important;
}

/* Large desktop balance */
@media (min-width: 1500px) {
  body.home .spl-hero {
    grid-template-columns: minmax(0, 0.82fr) minmax(430px, 1fr) !important;
  }

  body.home .spl-hero-art img {
    max-height: 360px !important;
  }
}

/* Tablet */
@media (max-width: 1200px) {
  body.home .spl-hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr) !important;
    gap: 18px !important;
  }

  body.home .spl-hero-art {
    margin-left: 0 !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  body.home .spl-hero {
    display: block !important;
  }

  body.home .spl-hero-art {
    margin-left: 0 !important;
    min-height: 230px !important;
  }

  body.home .spl-topic-icon {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
  }

  body.home .spl-topic-icon img {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
  }
}


/* =========================================================
   Spletnica v4.2.2 — Header Logo + Living Blocks Visual Fix
========================================================= */

/* 1. Wider logo in header */
.spl-brand {
  padding-top: 10px !important;
  padding-bottom: 12px !important;
}

.spl-logo-link {
  width: min(100%, 760px) !important;
  min-height: 122px !important;
}

.spl-logo {
  width: min(100%, 720px) !important;
  max-width: 720px !important;
  max-height: 178px !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.spl-tagline {
  margin-top: 0 !important;
  font-size: 28px !important;
}

/* Header menu should remain elegant after bigger logo */
.spl-main-nav {
  margin-top: 8px !important;
}

/* 3. Better spacing after popular topics */
.spl-topics {
  margin-bottom: 22px !important;
}

.spl-topic-grid {
  margin-bottom: 6px !important;
}

.spl-living-strip {
  margin-top: 26px !important;
}

/* Smooth section rhythm */
.spl-popular,
.spl-newsletter,
.spl-daily-horoscope,
.spl-dream-search,
.spl-test-day {
  scroll-margin-top: 90px;
}

/* Mobile logo */
@media (max-width: 768px) {
  .spl-logo-link {
    width: min(100%, 410px) !important;
    min-height: 88px !important;
  }

  .spl-logo {
    width: min(100%, 390px) !important;
    max-width: 390px !important;
    max-height: 118px !important;
  }

  .spl-tagline {
    font-size: 21px !important;
  }
}

@media (max-width: 420px) {
  .spl-logo-link {
    width: min(100%, 330px) !important;
    min-height: 74px !important;
  }

  .spl-logo {
    width: min(100%, 320px) !important;
    max-width: 320px !important;
    max-height: 96px !important;
  }

  .spl-tagline {
    font-size: 19px !important;
  }
}
