
: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;
  }
}


/* =========================================================
   Spletnica v4.2.4.1 — Illustrated Topic Icons + Adaptive Motion
========================================================= */

body.home .spl-topics {
  margin-top: 18px !important;
}

body.home .spl-topic-grid {
  gap: 16px !important;
}

body.home .spl-topic-card {
  min-height: 104px !important;
  padding: 14px 10px 15px !important;
  gap: 8px !important;
  border-radius: 16px !important;
}

body.home .spl-topic-icon {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  min-height: 58px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.home .spl-topic-icon img {
  width: 58px !important;
  height: 58px !important;
  max-width: 58px !important;
  max-height: 58px !important;
  object-fit: contain !important;
  filter: saturate(1.02) contrast(1.01) !important;
  transition: transform .28s ease, filter .28s ease !important;
}

body.home .spl-topic-title {
  font-size: 15px !important;
}

/* softer, adaptive motion */
body.home .spl-topic-card:nth-child(1):hover .spl-topic-icon img { animation: splSpinSoftAdaptive 1.2s ease-in-out; }
body.home .spl-topic-card:nth-child(2):hover .spl-topic-icon img { animation: splLidOpenAdaptive .95s ease-in-out; transform-origin: 50% 42%; }
body.home .spl-topic-card:nth-child(3):hover .spl-topic-icon img { animation: splChecklistBounce .85s ease; }
body.home .spl-topic-card:nth-child(4):hover .spl-topic-icon img { animation: splMoonFloatAdaptive 1.6s ease-in-out infinite alternate; }
body.home .spl-topic-card:nth-child(5):hover .spl-topic-icon img { animation: splHeartPulseAdaptive 1s ease-in-out infinite; }
body.home .spl-topic-card:nth-child(6):hover .spl-topic-icon img { animation: splMirrorTiltAdaptive 1s ease-in-out; transform-origin: 50% 62%; }

@keyframes splSpinSoftAdaptive { 0%{transform:rotate(0) scale(1)} 50%{transform:rotate(160deg) scale(1.04)} 100%{transform:rotate(360deg) scale(1)} }
@keyframes splLidOpenAdaptive { 0%{transform:rotate(0) translateY(0)} 40%{transform:rotate(-10deg) translateY(-4px)} 70%{transform:rotate(-5deg) translateY(-2px)} 100%{transform:rotate(0) translateY(0)} }
@keyframes splChecklistBounce { 0%{transform:translateY(0) scale(1)} 35%{transform:translateY(-4px) scale(1.03)} 65%{transform:translateY(0) scale(.99)} 100%{transform:translateY(0) scale(1)} }
@keyframes splMoonFloatAdaptive { 0%{transform:translateY(0) rotate(-2.5deg)} 100%{transform:translateY(-4px) rotate(2.5deg)} }
@keyframes splHeartPulseAdaptive { 0%{transform:scale(1)} 30%{transform:scale(1.06)} 60%{transform:scale(1.12)} 100%{transform:scale(1)} }
@keyframes splMirrorTiltAdaptive { 0%{transform:rotate(0) scale(1)} 35%{transform:rotate(-5deg) scale(1.03)} 70%{transform:rotate(4deg) scale(1.02)} 100%{transform:rotate(0) scale(1)} }

@media (max-width: 1200px) {
  body.home .spl-topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  body.home .spl-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.home .spl-topic-card {
    min-height: 100px !important;
    padding: 12px 8px 14px !important;
  }

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

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

  body.home .spl-topic-title {
    font-size: 14px !important;
  }
}

@media (max-width: 420px) {
  body.home .spl-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

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

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

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


/* =========================================================
   Spletnica v4.3 — Final Header: logo left, message right
========================================================= */

.spl-brand-row {
  display: grid !important;
  grid-template-columns: minmax(470px, 1.05fr) minmax(420px, .95fr) !important;
  align-items: center !important;
  gap: 44px !important;
  padding: 22px 0 18px !important;
}

.spl-brand-left,
.spl-brand {
  padding: 0 !important;
  text-align: left !important;
}

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

.spl-brand-left .spl-logo,
.spl-logo {
  width: min(100%, 610px) !important;
  max-width: 610px !important;
  max-height: 165px !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: left center !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.spl-brand-left .spl-tagline,
.spl-tagline {
  max-width: 610px !important;
  text-align: center !important;
  margin-top: 0 !important;
  font-size: 26px !important;
}

.spl-header-quote {
  position: relative;
  min-height: 180px;
  border: 1px solid #f2c7d6;
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 16%, rgba(236,59,133,.08), transparent 28%),
    linear-gradient(135deg, #fff9fb 0%, #fffdfd 56%, #fff4f8 100%);
  box-shadow: 0 10px 26px rgba(127, 41, 79, 0.055);
  overflow: hidden;
  padding: 22px 28px 18px;
  display: flex;
  align-items: center;
}

.spl-header-quote::before,
.spl-header-quote::after {
  content: "✦";
  position: absolute;
  color: #f0a3bf;
  opacity: .7;
  font-size: 22px;
}

.spl-header-quote::before {
  left: 30px;
  top: 24px;
}

.spl-header-quote::after {
  right: 150px;
  top: 32px;
}

.spl-header-quote__body {
  position: relative;
  z-index: 2;
  width: 64%;
}

.spl-header-quote h2 {
  margin: 0 0 10px;
  color: #ec3b85;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.15;
}

.spl-header-quote__mark {
  position: absolute;
  left: -6px;
  top: 42px;
  color: #ec3b85;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  line-height: 1;
  opacity: .85;
}

.spl-header-quote__text {
  margin: 0 0 16px 46px;
  color: #4f4a50;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-style: italic;
  line-height: 1.22;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .24s ease, transform .24s ease;
}

.spl-header-quote__text.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.spl-header-quote__line {
  width: 82%;
  height: 1px;
  background: #e9bdcb;
  margin: 6px 0 12px;
}

.spl-header-quote__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.spl-header-quote__actions button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #7f294f;
  font-size: 13px;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.spl-header-quote__actions button.is-copied span::after {
  content: " ✓";
  color: #ec3b85;
}

.spl-header-quote__heart {
  position: absolute;
  right: 22px;
  top: 18px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #ec3b85;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 4;
}

.spl-header-quote__heart.is-active {
  transform: scale(1.12);
  text-shadow: 0 0 12px rgba(236,59,133,.28);
}

.spl-header-quote__flower {
  position: absolute;
  right: 8px;
  bottom: -10px;
  width: 205px;
  height: auto;
  object-fit: contain;
  opacity: .9;
  z-index: 1;
}

.spl-header-quote__sparkle {
  position: absolute;
  right: 220px;
  top: 60px;
  color: #f1aac4;
  font-size: 20px;
  animation: splHeaderSparkle 2.4s ease-in-out infinite;
}

@keyframes splHeaderSparkle {
  0%,100% { opacity: .35; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* Social row: search + TikTok / Instagram / Facebook / Pinterest / Telegram */
.spl-top-right .spl-socials {
  gap: 8px !important;
}

.spl-share-socials .spl-social {
  text-transform: lowercase;
  font-family: Arial, Helvetica, sans-serif;
}

.spl-horoscope-img {
  max-width: 136px !important;
  right: 8px !important;
  bottom: 6px !important;
}

@media (max-width: 1100px) {
  .spl-brand-row {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    text-align: center !important;
  }

  .spl-brand-left,
  .spl-brand {
    text-align: center !important;
  }

  .spl-brand-left .spl-logo-link,
  .spl-logo-link {
    justify-content: center !important;
    margin: 0 auto !important;
  }

  .spl-brand-left .spl-logo,
  .spl-logo {
    object-position: center !important;
  }

  .spl-header-quote {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .spl-top-right {
    gap: 10px !important;
  }

  .spl-share-socials {
    gap: 6px !important;
  }

  .spl-brand-row {
    padding: 14px 0 12px !important;
  }

  .spl-brand-left .spl-logo,
  .spl-logo {
    width: min(100%, 360px) !important;
    max-width: 360px !important;
    max-height: 108px !important;
  }

  .spl-brand-left .spl-logo-link,
  .spl-logo-link {
    min-height: 80px !important;
  }

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

  .spl-header-quote {
    min-height: 154px;
    padding: 18px 18px 16px;
  }

  .spl-header-quote__body {
    width: 74%;
  }

  .spl-header-quote h2 {
    font-size: 20px;
  }

  .spl-header-quote__text {
    font-size: 21px;
    margin-left: 38px;
  }

  .spl-header-quote__flower {
    width: 150px;
    opacity: .75;
  }

  .spl-header-quote__actions {
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .spl-header-quote__body {
    width: 100%;
  }

  .spl-header-quote__flower {
    opacity: .22;
  }

  .spl-header-quote__line {
    width: 72%;
  }
}


/* =========================================================
   Spletnica v4.4 — Final homepage + Magic block polish
========================================================= */

/* Make menu MAGIA item special */
.spl-main-menu a[href*="magicheskiy-shar-predskazaniy"] {
  color: #8c3fb1 !important;
  letter-spacing: .12em;
  font-weight: 900 !important;
  position: relative;
}

.spl-main-menu a[href*="magicheskiy-shar-predskazaniy"]::before,
.spl-main-menu a[href*="magicheskiy-shar-predskazaniy"]::after {
  content: "✦";
  color: #a95ed0;
  font-size: 10px;
  margin: 0 6px;
  opacity: .85;
  animation: splMagicMenuTwinkle 2.4s ease-in-out infinite;
}

@keyframes splMagicMenuTwinkle {
  0%,100% { opacity: .35; transform: translateY(0) scale(.95); }
  50% { opacity: 1; transform: translateY(-1px) scale(1.08); }
}

/* Magic card in sidebar */
.spl-magic-card {
  background:
    radial-gradient(circle at 86% 50%, rgba(157, 78, 221, .18), transparent 42%),
    linear-gradient(135deg, #fffafd 0%, #fff5fb 50%, #f8edff 100%) !important;
  border-color: #e9c7f5 !important;
}

.spl-magic-card h3 {
  color: #7d2f8f !important;
}

.spl-magic-card a {
  color: #b23fd0 !important;
}

.spl-magic-img {
  max-width: 140px !important;
  right: 4px !important;
  bottom: -8px !important;
  width: 45% !important;
  z-index: 2 !important;
  animation: splMagicBallFloat 4.4s ease-in-out infinite;
}

.spl-magic-orbit {
  position: absolute;
  right: 20px;
  bottom: 24px;
  width: 116px;
  height: 116px;
  border-radius: 999px;
  border: 1px dashed rgba(177, 84, 212, .28);
  z-index: 1;
  animation: splMagicOrbit 8s linear infinite;
}

.spl-magic-orbit::before,
.spl-magic-orbit::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ca76e6;
  box-shadow: 0 0 12px rgba(202,118,230,.65);
}

.spl-magic-orbit::before {
  left: 10px;
  top: 18px;
}

.spl-magic-orbit::after {
  right: 12px;
  bottom: 16px;
}

@keyframes splMagicOrbit {
  to { transform: rotate(360deg); }
}

@keyframes splMagicBallFloat {
  0%,100% { transform: translateY(0) scale(1); filter: saturate(1); }
  50% { transform: translateY(-4px) scale(1.025); filter: saturate(1.08); }
}

/* Front page: exact approved flow */
.spl-front .spl-home-grid {
  margin-bottom: 16px;
}

.spl-front .spl-popular {
  margin-top: 18px;
}

.spl-front .spl-newsletter {
  margin-top: 22px;
}

/* Header balance for approved layout */
.spl-brand-row {
  grid-template-columns: minmax(480px, 1.03fr) minmax(430px, .97fr) !important;
}

.spl-header-quote {
  max-width: 620px;
  justify-self: end;
}

/* Keep quote flower soft and not overpowering */
.spl-header-quote__flower {
  width: 190px !important;
  opacity: .82 !important;
}

@media (max-width: 1100px) {
  .spl-header-quote {
    justify-self: center;
  }

  .spl-main-menu a[href*="magicheskiy-shar-predskazaniy"]::before,
  .spl-main-menu a[href*="magicheskiy-shar-predskazaniy"]::after {
    margin: 0 3px;
  }
}

@media (max-width: 768px) {
  .spl-magic-img {
    max-width: 120px !important;
    opacity: .82 !important;
  }

  .spl-magic-orbit {
    width: 92px;
    height: 92px;
    opacity: .65;
  }

  .spl-header-quote__flower {
    width: 145px !important;
  }
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .spl-magic-img,
  .spl-magic-orbit,
  .spl-main-menu a[href*="magicheskiy-shar-predskazaniy"]::before,
  .spl-main-menu a[href*="magicheskiy-shar-predskazaniy"]::after {
    animation: none !important;
  }
}


/* =========================================================
   Spletnica v4.5 — Approved Final Build Polish
========================================================= */

.spl-header {
  background: #fff8fb !important;
}

.spl-wrap {
  width: min(1320px, calc(100% - 56px)) !important;
  max-width: 1320px !important;
}

.spl-brand-row {
  display: grid !important;
  grid-template-columns: minmax(470px, 1fr) minmax(420px, .92fr) !important;
  gap: 48px !important;
  align-items: center !important;
  padding: 18px 0 16px !important;
}

.spl-brand-left {
  text-align: left !important;
}

.spl-brand-left .spl-logo-link {
  justify-content: flex-start !important;
  min-height: 112px !important;
}

.spl-brand-left .spl-logo {
  width: min(100%, 590px) !important;
  max-width: 590px !important;
  max-height: 150px !important;
  object-position: left center !important;
}

.spl-brand-left .spl-tagline {
  max-width: 590px !important;
  text-align: center !important;
  font-size: 25px !important;
  line-height: 1.15 !important;
}

.spl-header-quote {
  justify-self: end !important;
  width: min(100%, 590px) !important;
  min-height: 172px !important;
}

.spl-main-nav {
  margin-top: 6px !important;
  margin-bottom: 16px !important;
}

.spl-main-menu {
  justify-content: space-between !important;
}

.spl-main-menu a[href*="magicheskiy-shar-predskazaniy"] {
  color: #8f3fb4 !important;
  letter-spacing: .16em !important;
}

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

.spl-hero {
  min-height: 318px !important;
  grid-template-columns: minmax(0, .9fr) minmax(360px, .95fr) !important;
  gap: 22px !important;
  padding: 34px 34px !important;
}

.spl-hero-title {
  font-size: clamp(36px, 3vw, 52px) !important;
  line-height: 1.08 !important;
  max-width: 610px !important;
}

.spl-hero-text {
  max-width: 520px !important;
}

.spl-hero-art img {
  max-height: 320px !important;
  object-position: center right !important;
}

.spl-sidebar {
  gap: 12px !important;
}

.spl-side-card {
  min-height: 126px !important;
  border-radius: 14px !important;
}

.spl-magic-card {
  min-height: 130px !important;
}

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

.spl-topic-card {
  min-height: 92px !important;
  border-radius: 14px !important;
}

.spl-topic-icon,
.spl-topic-icon img {
  width: 58px !important;
  height: 58px !important;
  max-width: 58px !important;
  max-height: 58px !important;
}

.spl-popular {
  margin-top: 12px !important;
}

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

.spl-newsletter {
  margin-top: 20px !important;
}

/* Mobile 1:1 */
@media (max-width: 1100px) {
  .spl-wrap {
    width: min(100% - 36px, 960px) !important;
  }

  .spl-brand-row {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .spl-brand-left {
    text-align: center !important;
  }

  .spl-brand-left .spl-logo-link {
    justify-content: center !important;
    margin: 0 auto !important;
  }

  .spl-brand-left .spl-logo {
    object-position: center !important;
  }

  .spl-brand-left .spl-tagline {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .spl-header-quote {
    justify-self: center !important;
    width: min(100%, 640px) !important;
  }

  .spl-home-grid {
    grid-template-columns: 1fr !important;
  }

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

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

  .spl-topbar {
    gap: 8px !important;
  }

  .spl-top-left {
    display: none !important;
  }

  .spl-top-right {
    width: 100%;
    justify-content: center !important;
  }

  .spl-share-socials a {
    width: 26px !important;
    height: 26px !important;
    font-size: 11px !important;
  }

  .spl-brand-left .spl-logo {
    width: min(100%, 360px) !important;
    max-width: 360px !important;
    max-height: 104px !important;
  }

  .spl-brand-left .spl-logo-link {
    min-height: 82px !important;
  }

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

  .spl-header-quote {
    min-height: 150px !important;
    padding: 18px 16px !important;
  }

  .spl-header-quote__body {
    width: 100% !important;
  }

  .spl-header-quote__flower {
    opacity: .18 !important;
    width: 150px !important;
  }

  .spl-header-quote__text {
    font-size: 20px !important;
  }

  .spl-main-nav {
    overflow-x: auto !important;
    border-radius: 16px !important;
  }

  .spl-main-menu {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    min-width: max-content;
  }

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

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

  .spl-hero-title {
    font-size: 33px !important;
  }

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

  .spl-hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .spl-hero-art {
    margin-top: 18px !important;
    min-height: 210px !important;
  }

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

  .spl-sidebar {
    grid-template-columns: 1fr !important;
  }

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

  .spl-post-grid {
    grid-template-columns: 1fr !important;
  }

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

  .spl-footer-grid {
    grid-template-columns: 1fr !important;
  }
}


/* =========================================================
   Spletnica v4.5.1 — SEO landing routes + popular month
========================================================= */

.spl-seo-routes {
  margin: 20px 0 18px;
}

.spl-seo-routes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.spl-seo-route-card {
  min-height: 96px;
  padding: 16px 16px;
  border: 1px solid #f8dce7;
  border-radius: 16px;
  background:
    radial-gradient(circle at 95% 12%, rgba(236, 59, 133, .08), transparent 32%),
    linear-gradient(135deg, #fffdfd, #fff7fb);
  color: #3a2630;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(127, 41, 79, .035);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.spl-seo-route-card:hover {
  transform: translateY(-2px);
  border-color: #efb8cc;
  box-shadow: 0 12px 24px rgba(127, 41, 79, .075);
}

.spl-seo-route-card strong {
  display: block;
  margin-bottom: 7px;
  color: #7f294f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.15;
}

.spl-seo-route-card span {
  display: block;
  color: #6f6268;
  font-size: 13px;
  line-height: 1.38;
}

.spl-popular-month {
  margin: 20px 0 18px;
}

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

.spl-month-card {
  overflow: hidden;
  border: 1px solid #f8dce7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(127, 41, 79, .04);
  transition: transform .22s ease, box-shadow .22s ease;
}

.spl-month-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(127, 41, 79, .075);
}

.spl-month-thumb {
  display: block;
  height: 140px;
  background: linear-gradient(135deg, #fff, #fff4f8);
  overflow: hidden;
}

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

.spl-month-body {
  padding: 14px 15px 16px;
}

.spl-month-body h3 {
  margin: 0 0 9px;
  color: #3a2630;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.16;
}

.spl-month-body h3 a {
  color: inherit;
  text-decoration: none;
}

.spl-month-body time {
  color: #a48c97;
  font-size: 12px;
}

/* Mobile SEO blocks */
@media (max-width: 1100px) {
  .spl-seo-routes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 620px) {
  .spl-seo-routes-grid,
  .spl-month-grid {
    grid-template-columns: 1fr;
  }

  .spl-month-thumb,
  .spl-month-thumb img {
    height: 180px;
  }
}


/* =========================================================
   Spletnica v4.5.2 — Visual Fixes from live screenshot
   - remove accidental active menu pill on homepage
   - clean hero illustration placement
   - refine sidebar magic card and header proportions
========================================================= */

/* Menu: do not show a random active pink pill on homepage */
body.home .spl-main-menu .current-menu-item > a,
body.home .spl-main-menu .current_page_item > a,
body.home .spl-main-menu .current-menu-ancestor > a,
body.home .spl-main-menu .current_page_ancestor > a {
  background: transparent !important;
  color: #7f294f !important;
  box-shadow: none !important;
}

body.home .spl-main-menu a:hover {
  background: #ec3b85 !important;
  color: #ffffff !important;
}

/* Keep Magic special even if active reset is applied */
body.home .spl-main-menu a[href*="magicheskiy-shar-predskazaniy"] {
  color: #8f3fb4 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.home .spl-main-menu a[href*="magicheskiy-shar-predskazaniy"]:hover {
  background: rgba(143, 63, 180, .10) !important;
  color: #8f3fb4 !important;
}

/* Header: a little tighter and more like the approved mockup */
.spl-brand-row {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  gap: 40px !important;
}

.spl-brand-left .spl-logo-link,
.spl-logo-link {
  min-height: 104px !important;
}

.spl-brand-left .spl-logo,
.spl-logo {
  max-height: 138px !important;
}

.spl-header-quote {
  min-height: 160px !important;
}

/* Hero illustration: no artifact and better alignment */
.spl-hero-art {
  overflow: hidden !important;
}

.spl-hero-art img {
  max-height: 312px !important;
  object-fit: cover !important;
  object-position: center right !important;
  transform: translateX(0) !important;
}

/* Hero card height and right grid alignment */
.spl-hero {
  min-height: 315px !important;
  align-items: center !important;
}

.spl-home-grid {
  align-items: start !important;
}

/* Sidebar: cards closer to mockup and not visually cut */
.spl-side-card {
  min-height: 120px !important;
  padding: 18px 18px !important;
}

.spl-side-text {
  max-width: 62% !important;
}

.spl-side-card h3 {
  font-size: 22px !important;
  line-height: 1.08 !important;
}

.spl-side-card p {
  font-size: 13px !important;
  line-height: 1.38 !important;
}

/* Magic card: smaller ball, fully visible, more elegant */
.spl-magic-card {
  background:
    radial-gradient(circle at 88% 46%, rgba(157, 78, 221, .15), transparent 42%),
    linear-gradient(135deg, #fffafd 0%, #fff6fb 54%, #f9f0ff 100%) !important;
  border-color: #ead0f6 !important;
}

.spl-magic-img {
  max-width: 122px !important;
  width: 40% !important;
  right: 8px !important;
  bottom: 0 !important;
  opacity: .96 !important;
}

.spl-magic-orbit {
  width: 92px !important;
  height: 92px !important;
  right: 22px !important;
  bottom: 18px !important;
  opacity: .65 !important;
}

/* Popular month and SEO routes should not overload first screen */
.spl-seo-routes {
  margin-top: 18px !important;
}

.spl-popular-month {
  margin-top: 18px !important;
}

/* Responsive refinements */
@media (max-width: 1100px) {
  .spl-brand-row {
    gap: 16px !important;
  }

  .spl-header-quote {
    min-height: 148px !important;
  }

  .spl-hero-art img {
    object-position: center !important;
  }
}

@media (max-width: 768px) {
  .spl-brand-left .spl-logo,
  .spl-logo {
    max-height: 96px !important;
  }

  .spl-header-quote {
    min-height: 138px !important;
  }

  .spl-hero-art img {
    max-height: 230px !important;
  }

  .spl-side-card {
    min-height: 116px !important;
  }

  .spl-side-text {
    max-width: 66% !important;
  }

  .spl-magic-img {
    max-width: 110px !important;
  }

  .spl-magic-orbit {
    width: 78px !important;
    height: 78px !important;
  }
}


/* =========================================================
   Spletnica v4.5.3 — Header Alignment + Magic Polish
   Fixes:
   - header/menu/main/footer use one exact width system
   - menu has correct visual length and no accidental active pill
   - right sidebar cards are unified
   - Magic / Dreambook / Tests have delicate real animations
========================================================= */

/* 1) One width system for header / nav / main / footer */
:root {
  --spl-v453-width: 1320px;
  --spl-v453-gap: 56px;
  --spl-v453-card-radius: 16px;
}

.spl-wrap,
.spl-header > .spl-wrap,
.spl-front > .spl-wrap,
.spl-footer > .spl-wrap,
.spl-page > .spl-wrap {
  width: min(var(--spl-v453-width), calc(100% - var(--spl-v453-gap))) !important;
  max-width: var(--spl-v453-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* 2) Header row alignment */
.spl-brand-row {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(470px, 1fr) minmax(430px, .94fr) !important;
  align-items: center !important;
  gap: 42px !important;
  padding: 14px 0 14px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.spl-brand-left .spl-logo-link,
.spl-logo-link {
  min-height: 100px !important;
}

.spl-brand-left .spl-logo,
.spl-logo {
  max-height: 132px !important;
  width: min(100%, 590px) !important;
  object-position: left center !important;
}

.spl-brand-left .spl-tagline,
.spl-tagline {
  margin-top: 0 !important;
  font-size: 25px !important;
  line-height: 1.12 !important;
}

.spl-header-quote {
  width: 100% !important;
  max-width: 600px !important;
  justify-self: end !important;
  min-height: 158px !important;
  border-radius: 18px !important;
}

/* 3) Menu: same exact width as header, correct length, softer active/hover */
.spl-main-nav {
  width: 100% !important;
  max-width: 100% !important;
  margin: 8px 0 16px !important;
  padding: 7px !important;
  border-radius: 999px !important;
  box-sizing: border-box !important;
}

.spl-main-menu {
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 0 !important;
}

.spl-main-menu > li {
  flex: 1 1 auto !important;
  display: flex !important;
  justify-content: center !important;
}

.spl-main-menu a {
  display: inline-flex !important;
  min-height: 34px !important;
  padding: 7px 14px !important;
  border-radius: 999px !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
  font-size: 14px !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Prevent random current menu pill on homepage and category pages */
.spl-main-menu .current-menu-item > a,
.spl-main-menu .current_page_item > a,
.spl-main-menu .current-menu-ancestor > a,
.spl-main-menu .current_page_ancestor > a,
body.home .spl-main-menu .current-menu-item > a,
body.home .spl-main-menu .current_page_item > a,
body.home .spl-main-menu .current-menu-ancestor > a,
body.home .spl-main-menu .current_page_ancestor > a {
  background: transparent !important;
  color: #7f294f !important;
  box-shadow: none !important;
}

/* Hover only */
.spl-main-menu a:hover {
  background: rgba(236, 59, 133, .10) !important;
  color: #c73586 !important;
}

/* Magic menu item */
.spl-main-menu a[href*="magicheskiy-shar-predskazaniy"] {
  color: #8f3fb4 !important;
  font-weight: 900 !important;
  letter-spacing: .13em !important;
  background: transparent !important;
}

.spl-main-menu a[href*="magicheskiy-shar-predskazaniy"]::before,
.spl-main-menu a[href*="magicheskiy-shar-predskazaniy"]::after {
  content: "✦";
  color: #b95be0;
  font-size: 10px;
  margin: 0 5px;
  opacity: .72;
  animation: splV453Twinkle 2.6s ease-in-out infinite;
}

/* 4) Main grid alignment */
.spl-home-grid {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 330px !important;
  gap: 22px !important;
  align-items: start !important;
  margin-top: 0 !important;
}

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

.spl-hero {
  width: 100% !important;
  min-height: 314px !important;
  padding: 34px 34px !important;
  border-radius: var(--spl-v453-card-radius) !important;
  box-sizing: border-box !important;
}

.spl-hero-art {
  overflow: hidden !important;
}

.spl-hero-art img {
  max-height: 310px !important;
  object-position: center right !important;
}

/* 5) Right sidebar unified rhythm */
.spl-sidebar,
.spl-sidebar-polished {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  width: 100% !important;
  align-content: start !important;
}

.spl-side-card {
  position: relative !important;
  width: 100% !important;
  min-height: 124px !important;
  padding: 18px 18px !important;
  border-radius: var(--spl-v453-card-radius) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  box-shadow: 0 8px 18px rgba(127, 41, 79, .035) !important;
}

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

.spl-side-card h3 {
  font-size: 22px !important;
  line-height: 1.08 !important;
  margin-bottom: 9px !important;
}

.spl-side-card p {
  font-size: 13px !important;
  line-height: 1.36 !important;
  margin-bottom: 10px !important;
}

.spl-side-card a {
  font-size: 14px !important;
}

/* Unified cards with subtle color families */
.spl-card-tests {
  background:
    radial-gradient(circle at 85% 45%, rgba(236, 59, 133, .10), transparent 42%),
    linear-gradient(135deg, #fffafb, #fff6f9) !important;
  border-color: #f4c7d8 !important;
}

.spl-card-dream {
  background:
    radial-gradient(circle at 85% 45%, rgba(212, 117, 205, .10), transparent 42%),
    linear-gradient(135deg, #fffafb, #fff5fc) !important;
  border-color: #f2c8e2 !important;
}

.spl-card-magic,
.spl-magic-card {
  background:
    radial-gradient(circle at 86% 50%, rgba(158, 75, 214, .18), transparent 44%),
    linear-gradient(135deg, #fffafd 0%, #fff6fb 48%, #f9efff 100%) !important;
  border-color: #e7c9f5 !important;
}

.spl-card-magic h3,
.spl-magic-card h3 {
  color: #7d2f8f !important;
}

.spl-card-magic a,
.spl-magic-card a {
  color: #ae3ec9 !important;
}

.spl-test-img,
.spl-dream-img,
.spl-magic-img {
  position: absolute !important;
  z-index: 2 !important;
  object-fit: contain !important;
  height: auto !important;
  max-height: 112px !important;
  filter: saturate(1.03);
  transition: transform .35s ease, filter .35s ease, opacity .35s ease;
}

.spl-test-img {
  max-width: 124px !important;
  width: 40% !important;
  right: 8px !important;
  bottom: 0 !important;
}

.spl-dream-img {
  max-width: 136px !important;
  width: 43% !important;
  right: 3px !important;
  bottom: 2px !important;
}

.spl-magic-img {
  max-width: 122px !important;
  width: 40% !important;
  right: 7px !important;
  bottom: 0 !important;
  z-index: 3 !important;
}

/* 6) Real animations: tests, dreambook, magic */
.spl-animated-card:hover .spl-side-img {
  filter: saturate(1.08) brightness(1.02);
}

.spl-card-tests:hover .spl-test-img {
  animation: splV453ChecklistBounce 1s ease-in-out;
}

.spl-card-dream:hover .spl-dream-img {
  animation: splV453MoonFloat 1.8s ease-in-out infinite alternate;
}

.spl-card-magic .spl-magic-img,
.spl-magic-card .spl-magic-img {
  animation: splV453MagicBallFloat 4.2s ease-in-out infinite;
}

.spl-card-magic:hover .spl-magic-img,
.spl-magic-card:hover .spl-magic-img {
  animation: splV453MagicBallFloat 2.8s ease-in-out infinite;
}

.spl-magic-orbit {
  position: absolute !important;
  right: 18px !important;
  bottom: 17px !important;
  width: 92px !important;
  height: 92px !important;
  border-radius: 999px !important;
  border: 1px dashed rgba(177, 84, 212, .30) !important;
  z-index: 1 !important;
  animation: splV453MagicOrbit 7.8s linear infinite !important;
  opacity: .72 !important;
}

.spl-magic-glow {
  position: absolute;
  right: 30px;
  bottom: 26px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(205, 117, 229, .32), transparent 70%);
  z-index: 1;
  animation: splV453MagicGlow 2.8s ease-in-out infinite;
}

.spl-magic-orbit::before,
.spl-magic-orbit::after,
.spl-card-spark {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #c56be5;
  box-shadow: 0 0 14px rgba(197, 107, 229, .62);
  pointer-events: none;
}

.spl-magic-orbit::before {
  width: 7px;
  height: 7px;
  left: 9px;
  top: 18px;
}

.spl-magic-orbit::after {
  width: 5px;
  height: 5px;
  right: 12px;
  bottom: 18px;
}

.spl-card-spark {
  width: 5px;
  height: 5px;
  z-index: 5;
  opacity: .0;
}

.spl-card-spark-1 {
  right: 112px;
  top: 24px;
  animation: splV453Spark 2.4s ease-in-out infinite;
}

.spl-card-spark-2 {
  right: 66px;
  top: 48px;
  animation: splV453Spark 3s ease-in-out infinite .6s;
}

@keyframes splV453Twinkle {
  0%,100% { opacity: .32; transform: translateY(0) scale(.9); }
  50% { opacity: 1; transform: translateY(-1px) scale(1.08); }
}

@keyframes splV453ChecklistBounce {
  0%,100% { transform: translateY(0) rotate(0) scale(1); }
  35% { transform: translateY(-5px) rotate(-2deg) scale(1.03); }
  68% { transform: translateY(0) rotate(1deg) scale(1); }
}

@keyframes splV453MoonFloat {
  0% { transform: translateY(0) rotate(-2deg); }
  100% { transform: translateY(-5px) rotate(3deg); }
}

@keyframes splV453MagicBallFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.025); }
}

@keyframes splV453MagicOrbit {
  to { transform: rotate(360deg); }
}

@keyframes splV453MagicGlow {
  0%,100% { opacity: .38; transform: scale(.92); }
  50% { opacity: .88; transform: scale(1.12); }
}

@keyframes splV453Spark {
  0%,100% { opacity: 0; transform: translateY(5px) scale(.6); }
  45% { opacity: .9; transform: translateY(-2px) scale(1.05); }
}

/* 7) Mobile */
@media (max-width: 1100px) {
  :root {
    --spl-v453-width: 960px;
    --spl-v453-gap: 36px;
  }

  .spl-brand-row {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .spl-brand-left {
    text-align: center !important;
  }

  .spl-brand-left .spl-logo-link {
    justify-content: center !important;
    margin: 0 auto !important;
  }

  .spl-brand-left .spl-logo {
    object-position: center !important;
  }

  .spl-header-quote {
    justify-self: center !important;
    max-width: 640px !important;
  }

  .spl-home-grid {
    grid-template-columns: 1fr !important;
  }

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

  .spl-side-card {
    min-height: 132px !important;
  }

  .spl-side-text {
    width: 64% !important;
    max-width: 64% !important;
  }
}

@media (max-width: 768px) {
  :root {
    --spl-v453-width: 100%;
    --spl-v453-gap: 28px;
  }

  .spl-top-left {
    display: none !important;
  }

  .spl-top-right {
    width: 100% !important;
    justify-content: center !important;
  }

  .spl-brand-left .spl-logo {
    max-height: 94px !important;
    width: min(100%, 360px) !important;
  }

  .spl-header-quote {
    min-height: 142px !important;
    padding: 18px !important;
  }

  .spl-main-nav {
    overflow-x: auto !important;
  }

  .spl-main-menu {
    min-width: max-content !important;
    justify-content: flex-start !important;
  }

  .spl-main-menu > li {
    flex: 0 0 auto !important;
  }

  .spl-hero {
    display: block !important;
    padding: 24px 18px !important;
  }

  .spl-sidebar {
    grid-template-columns: 1fr !important;
  }

  .spl-side-card {
    min-height: 118px !important;
  }

  .spl-side-text {
    width: 66% !important;
    max-width: 66% !important;
  }

  .spl-test-img,
  .spl-dream-img,
  .spl-magic-img {
    max-height: 105px !important;
  }

  .spl-magic-orbit {
    width: 78px !important;
    height: 78px !important;
    right: 22px !important;
    bottom: 18px !important;
  }

  .spl-magic-glow {
    width: 58px !important;
    height: 58px !important;
    right: 32px !important;
    bottom: 28px !important;
  }
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .spl-test-img,
  .spl-dream-img,
  .spl-magic-img,
  .spl-magic-orbit,
  .spl-magic-glow,
  .spl-card-spark,
  .spl-main-menu a[href*="magicheskiy-shar-predskazaniy"]::before,
  .spl-main-menu a[href*="magicheskiy-shar-predskazaniy"]::after {
    animation: none !important;
  }
}


/* =========================================================
   Spletnica v4.6 — Header Quote Final
   Clean base fixed after approved layout.
========================================================= */

:root {
  --spl-v46-width: 1320px;
  --spl-v46-gap: 56px;
  --spl-v46-radius: 16px;
  --spl-v46-pink: #ec3b85;
  --spl-v46-wine: #7f294f;
  --spl-v46-line: #f4c7d8;
  --spl-v46-soft-line: #f8dce7;
  --spl-v46-lilac: #8f3fb4;
}

/* One shared width for header / menu / main / footer */
.spl-wrap,
.spl-header > .spl-wrap,
.spl-front > .spl-wrap,
.spl-footer > .spl-wrap,
.spl-page > .spl-wrap {
  width: min(var(--spl-v46-width), calc(100% - var(--spl-v46-gap))) !important;
  max-width: var(--spl-v46-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* Header: logo left / quote right */
.spl-brand-row {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(470px, 1fr) minmax(430px, .94fr) !important;
  align-items: center !important;
  gap: 42px !important;
  padding: 14px 0 14px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.spl-brand-left,
.spl-brand {
  text-align: left !important;
  padding: 0 !important;
}

.spl-brand-left .spl-logo-link,
.spl-logo-link {
  min-height: 100px !important;
  justify-content: flex-start !important;
  width: min(100%, 590px) !important;
}

.spl-brand-left .spl-logo,
.spl-logo {
  width: min(100%, 590px) !important;
  max-width: 590px !important;
  max-height: 132px !important;
  object-position: left center !important;
}

.spl-brand-left .spl-tagline,
.spl-tagline {
  max-width: 590px !important;
  text-align: center !important;
  margin-top: 0 !important;
  font-size: 25px !important;
  line-height: 1.12 !important;
}

/* Quote card */
.spl-header-quote {
  width: 100% !important;
  max-width: 600px !important;
  justify-self: end !important;
  min-height: 158px !important;
  border-radius: 18px !important;
  box-sizing: border-box !important;
}

/* Menu same width as header, no accidental active pill */
.spl-main-nav {
  width: 100% !important;
  max-width: 100% !important;
  margin: 8px 0 16px !important;
  padding: 7px !important;
  border-radius: 999px !important;
  box-sizing: border-box !important;
}

.spl-main-menu {
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 0 !important;
}

.spl-main-menu > li {
  flex: 1 1 auto !important;
  display: flex !important;
  justify-content: center !important;
}

.spl-main-menu a {
  display: inline-flex !important;
  min-height: 34px !important;
  padding: 7px 14px !important;
  border-radius: 999px !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
  font-size: 14px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--spl-v46-wine) !important;
}

/* Reset current menu everywhere, because user wants no random active highlight */
.spl-main-menu .current-menu-item > a,
.spl-main-menu .current_page_item > a,
.spl-main-menu .current-menu-ancestor > a,
.spl-main-menu .current_page_ancestor > a,
body.home .spl-main-menu .current-menu-item > a,
body.home .spl-main-menu .current_page_item > a,
body.home .spl-main-menu .current-menu-ancestor > a,
body.home .spl-main-menu .current_page_ancestor > a {
  background: transparent !important;
  color: var(--spl-v46-wine) !important;
  box-shadow: none !important;
}

/* Uniform hover */
.spl-main-menu a:hover {
  background: rgba(236, 59, 133, .10) !important;
  color: #c73586 !important;
}

/* Magic menu item is NOT a different button now — just a subtle color */
.spl-main-menu a[href*="magicheskiy-shar-predskazaniy"] {
  color: var(--spl-v46-lilac) !important;
  background: transparent !important;
  letter-spacing: .03em !important;
}

/* Main grid */
.spl-home-grid {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 330px !important;
  gap: 22px !important;
  align-items: start !important;
  margin-top: 0 !important;
}

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

.spl-hero {
  width: 100% !important;
  min-height: 314px !important;
  padding: 34px 34px !important;
  border-radius: var(--spl-v46-radius) !important;
  box-sizing: border-box !important;
  align-items: center !important;
}

.spl-hero-art {
  overflow: hidden !important;
}

.spl-hero-art img {
  max-height: 310px !important;
  object-position: center right !important;
}

/* Sidebar unified cards */
.spl-sidebar,
.spl-sidebar-polished {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  width: 100% !important;
  align-content: start !important;
}

.spl-side-card {
  position: relative !important;
  width: 100% !important;
  min-height: 124px !important;
  padding: 18px 18px !important;
  border-radius: var(--spl-v46-radius) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  box-shadow: 0 8px 18px rgba(127, 41, 79, .035) !important;
}

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

.spl-side-card h3 {
  font-size: 22px !important;
  line-height: 1.08 !important;
  margin-bottom: 9px !important;
}

.spl-side-card p {
  font-size: 13px !important;
  line-height: 1.36 !important;
  margin-bottom: 10px !important;
}

.spl-side-card a {
  font-size: 14px !important;
}

/* Cards now one family, with soft shades */
.spl-card-tests {
  background:
    radial-gradient(circle at 85% 45%, rgba(236, 59, 133, .10), transparent 42%),
    linear-gradient(135deg, #fffafb, #fff6f9) !important;
  border-color: #f4c7d8 !important;
}

.spl-card-dream {
  background:
    radial-gradient(circle at 85% 45%, rgba(212, 117, 205, .11), transparent 42%),
    linear-gradient(135deg, #fffafb, #fff5fc) !important;
  border-color: #f2c8e2 !important;
}

.spl-card-magic,
.spl-magic-card {
  background:
    radial-gradient(circle at 86% 50%, rgba(158, 75, 214, .16), transparent 44%),
    linear-gradient(135deg, #fffafd 0%, #fff6fb 48%, #f9efff 100%) !important;
  border-color: #e7c9f5 !important;
}

.spl-card-magic h3,
.spl-magic-card h3 {
  color: #7d2f8f !important;
}

.spl-card-magic a,
.spl-magic-card a {
  color: #ae3ec9 !important;
}

/* Icons */
.spl-test-img,
.spl-dream-img,
.spl-magic-img {
  position: absolute !important;
  z-index: 2 !important;
  object-fit: contain !important;
  height: auto !important;
  max-height: 112px !important;
  filter: saturate(1.03);
  transition: transform .35s ease, filter .35s ease, opacity .35s ease;
}

.spl-test-img {
  max-width: 124px !important;
  width: 40% !important;
  right: 8px !important;
  bottom: 0 !important;
}

.spl-dream-img {
  max-width: 136px !important;
  width: 43% !important;
  right: 3px !important;
  bottom: 2px !important;
}

.spl-magic-img {
  max-width: 122px !important;
  width: 40% !important;
  right: 7px !important;
  bottom: 0 !important;
  z-index: 3 !important;
}

/* Real animations: tests, dreambook, magic */
.spl-card-tests:hover .spl-test-img {
  animation: splV46ChecklistBounce 1s ease-in-out;
}

.spl-card-dream:hover .spl-dream-img {
  animation: splV46MoonFloat 1.8s ease-in-out infinite alternate;
}

.spl-card-magic .spl-magic-img,
.spl-magic-card .spl-magic-img {
  animation: splV46MagicBallFloat 4.2s ease-in-out infinite;
}

.spl-card-magic:hover .spl-magic-img,
.spl-magic-card:hover .spl-magic-img {
  animation: splV46MagicBallFloat 2.8s ease-in-out infinite;
}

.spl-magic-orbit {
  position: absolute !important;
  right: 18px !important;
  bottom: 17px !important;
  width: 92px !important;
  height: 92px !important;
  border-radius: 999px !important;
  border: 1px dashed rgba(177, 84, 212, .30) !important;
  z-index: 1 !important;
  animation: splV46MagicOrbit 7.8s linear infinite !important;
  opacity: .72 !important;
}

.spl-magic-glow {
  position: absolute;
  right: 30px;
  bottom: 26px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(205, 117, 229, .32), transparent 70%);
  z-index: 1;
  animation: splV46MagicGlow 2.8s ease-in-out infinite;
}

.spl-magic-orbit::before,
.spl-magic-orbit::after,
.spl-card-spark {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #c56be5;
  box-shadow: 0 0 14px rgba(197, 107, 229, .62);
  pointer-events: none;
}

.spl-magic-orbit::before {
  width: 7px;
  height: 7px;
  left: 9px;
  top: 18px;
}

.spl-magic-orbit::after {
  width: 5px;
  height: 5px;
  right: 12px;
  bottom: 18px;
}

.spl-card-spark {
  width: 5px;
  height: 5px;
  z-index: 5;
  opacity: 0;
}

.spl-card-spark-1 {
  right: 112px;
  top: 24px;
  animation: splV46Spark 2.4s ease-in-out infinite;
}

.spl-card-spark-2 {
  right: 66px;
  top: 48px;
  animation: splV46Spark 3s ease-in-out infinite .6s;
}

@keyframes splV46ChecklistBounce {
  0%,100% { transform: translateY(0) rotate(0) scale(1); }
  35% { transform: translateY(-5px) rotate(-2deg) scale(1.03); }
  68% { transform: translateY(0) rotate(1deg) scale(1); }
}

@keyframes splV46MoonFloat {
  0% { transform: translateY(0) rotate(-2deg); }
  100% { transform: translateY(-5px) rotate(3deg); }
}

@keyframes splV46MagicBallFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.025); }
}

@keyframes splV46MagicOrbit {
  to { transform: rotate(360deg); }
}

@keyframes splV46MagicGlow {
  0%,100% { opacity: .38; transform: scale(.92); }
  50% { opacity: .88; transform: scale(1.12); }
}

@keyframes splV46Spark {
  0%,100% { opacity: 0; transform: translateY(5px) scale(.6); }
  45% { opacity: .9; transform: translateY(-2px) scale(1.05); }
}

/* Mobile */
@media (max-width: 1100px) {
  :root {
    --spl-v46-width: 960px;
    --spl-v46-gap: 36px;
  }

  .spl-brand-row {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .spl-brand-left,
  .spl-brand {
    text-align: center !important;
  }

  .spl-brand-left .spl-logo-link,
  .spl-logo-link {
    justify-content: center !important;
    margin: 0 auto !important;
  }

  .spl-brand-left .spl-logo,
  .spl-logo {
    object-position: center !important;
  }

  .spl-brand-left .spl-tagline,
  .spl-tagline {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .spl-header-quote {
    justify-self: center !important;
    max-width: 640px !important;
  }

  .spl-home-grid {
    grid-template-columns: 1fr !important;
  }

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

  .spl-side-card {
    min-height: 132px !important;
  }

  .spl-side-text {
    width: 64% !important;
    max-width: 64% !important;
  }
}

@media (max-width: 768px) {
  :root {
    --spl-v46-width: 100%;
    --spl-v46-gap: 28px;
  }

  .spl-top-left {
    display: none !important;
  }

  .spl-top-right {
    width: 100% !important;
    justify-content: center !important;
  }

  .spl-brand-left .spl-logo,
  .spl-logo {
    max-height: 94px !important;
    width: min(100%, 360px) !important;
  }

  .spl-header-quote {
    min-height: 142px !important;
    padding: 18px !important;
  }

  .spl-main-nav {
    overflow-x: auto !important;
  }

  .spl-main-menu {
    min-width: max-content !important;
    justify-content: flex-start !important;
  }

  .spl-main-menu > li {
    flex: 0 0 auto !important;
  }

  .spl-hero {
    display: block !important;
    padding: 24px 18px !important;
  }

  .spl-sidebar {
    grid-template-columns: 1fr !important;
  }

  .spl-side-card {
    min-height: 118px !important;
  }

  .spl-side-text {
    width: 66% !important;
    max-width: 66% !important;
  }

  .spl-test-img,
  .spl-dream-img,
  .spl-magic-img {
    max-height: 105px !important;
  }

  .spl-magic-orbit {
    width: 78px !important;
    height: 78px !important;
    right: 22px !important;
    bottom: 18px !important;
  }

  .spl-magic-glow {
    width: 58px !important;
    height: 58px !important;
    right: 32px !important;
    bottom: 28px !important;
  }
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .spl-test-img,
  .spl-dream-img,
  .spl-magic-img,
  .spl-magic-orbit,
  .spl-magic-glow,
  .spl-card-spark {
    animation: none !important;
  }
}


/* =========================================================
   Spletnica v4.6.2 — Совет от Spletnica
========================================================= */

.spl-header-quote h2 {
  letter-spacing: 0 !important;
}

.spl-header-quote__author {
  margin: -8px 0 12px 46px;
  color: #9a2f62;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-style: italic;
  opacity: .82;
}

.spl-header-quote__text {
  transition: opacity .28s ease, transform .28s ease !important;
}

.spl-header-quote__actions .spl-quote-refresh span {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .spl-header-quote__author {
    margin-left: 38px;
    font-size: 13px;
  }
}


/* =========================================================
   Spletnica v4.7 — Clean Final Homepage
========================================================= */

:root {
  --spl-v47-width: 1320px;
  --spl-v47-gap: 56px;
  --spl-v47-pink: #ec3b85;
  --spl-v47-wine: #7f294f;
  --spl-v47-line: #f8dce7;
  --spl-v47-bg: #fff8fb;
  --spl-v47-lilac: #8f3fb4;
}

.spl-wrap,
.spl-header > .spl-wrap,
.spl-front > .spl-wrap,
.spl-footer > .spl-wrap,
.spl-page > .spl-wrap {
  width: min(var(--spl-v47-width), calc(100% - var(--spl-v47-gap))) !important;
  max-width: var(--spl-v47-width) !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
  box-sizing: border-box !important;
}

.spl-v47-front .spl-home-grid-final {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 330px !important;
  gap: 22px !important;
  align-items: start !important;
}

.spl-home-right {
  display: grid;
  gap: 16px;
  align-content: start;
}

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

/* Final header/menu alignment */
.spl-brand-row {
  grid-template-columns: minmax(470px, 1fr) minmax(430px, .94fr) !important;
  gap: 42px !important;
  padding: 14px 0 !important;
}

.spl-logo,
.spl-brand-left .spl-logo {
  filter: saturate(1.08) contrast(1.02) !important;
}

.spl-main-nav {
  width: 100% !important;
  margin: 8px 0 16px !important;
  padding: 7px !important;
  border-radius: 999px !important;
  box-sizing: border-box !important;
}

.spl-main-menu {
  width: 100% !important;
  justify-content: space-between !important;
}

.spl-main-menu > li {
  flex: 1 1 auto !important;
  display: flex !important;
  justify-content: center !important;
}

.spl-main-menu a {
  background: transparent !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

.spl-main-menu .current-menu-item > a,
.spl-main-menu .current_page_item > a,
body.home .spl-main-menu .current-menu-item > a,
body.home .spl-main-menu .current_page_item > a {
  background: transparent !important;
  color: var(--spl-v47-wine) !important;
  box-shadow: none !important;
}

/* Stories Spletni glass row */
.spl-stories-shell {
  margin: 18px 0 18px;
}

.spl-stories-head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.spl-stories-head h2,
.sst-stories-head h2 {
  margin: 0;
  color: var(--spl-v47-wine);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.1;
}

.spl-stories-head span {
  color: #b6849a;
  font-size: 12px;
}

.spl-stories-glass-row {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(248, 220, 231, .80);
  border-radius: 18px;
  background: rgba(255, 247, 251, .45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 10px 26px rgba(127,41,79,.035);
  backdrop-filter: blur(10px);
}

.spl-story-glass-card {
  position: relative;
  min-height: 106px;
  padding: 12px 8px 10px;
  border: 1px solid rgba(244, 199, 216, .78);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,241,248,.42));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.82),
    0 10px 18px rgba(127,41,79,.055);
  color: var(--spl-v47-wine);
  text-decoration: none;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.spl-story-glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 28% 18%, rgba(255,255,255,.92), transparent 32%);
  pointer-events: none;
}

.spl-story-glass-card:hover {
  transform: translateY(-3px);
  border-color: rgba(236,59,133,.36);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.88),
    0 16px 28px rgba(127,41,79,.095);
}

.spl-story-glass-icon {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--spl-v47-pink);
  background: rgba(255,255,255,.54);
  border: 1px solid rgba(248,220,231,.74);
  font-size: 24px;
}

.spl-story-glass-title {
  position: relative;
  z-index: 1;
  color: #4a2736;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.spl-story-glass-progress {
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(236,59,133,.42);
}

/* Override plugin Stories if installed */
.sst-stories-strip {
  margin: 0 !important;
  border: 1px solid rgba(248, 220, 231, .80) !important;
  border-radius: 18px !important;
  background: rgba(255, 247, 251, .45) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 10px 26px rgba(127,41,79,.035) !important;
  backdrop-filter: blur(10px);
}

.sst-story-bubble {
  flex-basis: 104px !important;
  min-height: 112px !important;
  padding: 10px 8px !important;
  border: 1px solid rgba(244,199,216,.78) !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,241,248,.42)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 10px 18px rgba(127,41,79,.055) !important;
}

.sst-story-ring {
  width: 58px !important;
  height: 58px !important;
  border-radius: 14px !important;
  padding: 0 !important;
  background: rgba(255,255,255,.55) !important;
  border: 1px solid rgba(248,220,231,.74) !important;
  box-shadow: none !important;
}

.sst-story-image {
  border-radius: 14px !important;
  border: 0 !important;
}

/* Popular topics final */
.spl-topic-grid-final,
.spl-topic-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.spl-topic-card {
  min-height: 96px !important;
}

/* Popular month in right column */
.spl-popular-month-sidebar {
  border: 1px solid var(--spl-v47-line);
  border-radius: 18px;
  background: rgba(255,255,255,.62);
  padding: 16px;
}

.spl-section-headline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.spl-section-headline a {
  color: var(--spl-v47-pink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.spl-month-list {
  display: grid;
  gap: 12px;
}

.spl-month-mini-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.spl-month-mini-thumb,
.spl-month-mini-thumb img {
  width: 96px;
  height: 62px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  overflow: hidden;
}

.spl-month-mini-body h3 {
  margin: 3px 0 5px;
  font-size: 14px;
  line-height: 1.18;
  color: #3a2630;
}

.spl-month-mini-body h3 a {
  color: inherit;
  text-decoration: none;
}

.spl-month-mini-body time {
  color: #a48c97;
  font-size: 11px;
}

/* Zodiac humor */
.spl-zodiac-humor {
  margin: 20px 0 20px;
  border: 1px solid var(--spl-v47-line);
  border-radius: 18px;
  background: rgba(255,255,255,.54);
  padding: 18px;
}

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

.spl-zodiac-humor-card {
  min-height: 82px;
  padding: 10px;
  border: 1px solid rgba(248,220,231,.85);
  border-radius: 14px;
  background: linear-gradient(135deg, #fffdfd, #fff7fb);
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: #3a2630;
  text-decoration: none;
}

.spl-zodiac-humor-card img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
}

.spl-zodiac-humor-card strong {
  display: block;
  color: var(--spl-v47-wine);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.1;
}

.spl-zodiac-humor-card small {
  display: block;
  color: #6f6268;
  font-size: 11px;
  line-height: 1.18;
}

/* Sidebar card polish */
.spl-card-tests {
  background:
    radial-gradient(circle at 86% 50%, rgba(126,63,148,.18), transparent 42%),
    linear-gradient(135deg, #fffafd, #f7edf8) !important;
  border-color: #e8c8eb !important;
}

.spl-card-tests h3 {
  color: #6f2b79 !important;
}

.spl-test-img {
  filter: saturate(1.06) hue-rotate(295deg) !important;
}

/* Responsive */
@media (max-width: 1100px) {
  .spl-v47-front .spl-home-grid-final {
    grid-template-columns: 1fr !important;
  }

  .spl-home-right {
    grid-template-columns: 1fr !important;
  }

  .spl-stories-glass-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .spl-topic-grid-final,
  .spl-topic-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

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

@media (max-width: 768px) {
  :root {
    --spl-v47-gap: 28px;
  }

  .spl-stories-glass-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .spl-story-glass-card {
    flex: 0 0 92px;
    min-height: 102px;
    scroll-snap-align: start;
  }

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

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

  .spl-month-mini-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .spl-month-mini-thumb,
  .spl-month-mini-thumb img {
    width: 82px;
    height: 58px;
  }
}

@media (max-width: 430px) {
  .spl-zodiac-humor-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Spletnica v4.8.1 — Hero Carousel Fix
   Restores real hero carousel on homepage.
========================================================= */

.spl-hero-carousel {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.95fr) !important;
  gap: 24px !important;
  align-items: center !important;
  overflow: hidden !important;
}

.spl-hero-carousel .spl-hero-content {
  position: relative;
  z-index: 5;
}

.spl-hero-slider {
  position: relative;
  min-height: 315px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.spl-hero-slides {
  position: relative;
  width: 100%;
  height: 315px;
  overflow: visible;
  border-radius: 18px;
}

.spl-hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transform: translateX(34px) scale(0.94);
  filter: blur(1px);
  transition: opacity .78s ease, transform .78s ease, filter .78s ease;
}

.spl-hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 315px;
  object-fit: contain;
  object-position: center;
  border-radius: 18px;
}

.spl-hero-slide.is-active {
  opacity: 1;
  z-index: 4;
  transform: translateX(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
}

.spl-hero-slide.is-prev {
  opacity: .12;
  z-index: 2;
  transform: translateX(-20%) scale(.84);
  filter: blur(.45px);
}

.spl-hero-slide.is-next {
  opacity: .18;
  z-index: 3;
  transform: translateX(34%) scale(.86);
  filter: blur(.35px);
}

.spl-hero-slide.is-after-next {
  opacity: .10;
  z-index: 1;
  transform: translateX(58%) scale(.78);
  filter: blur(.6px);
}

.spl-hero-slide.is-active img {
  animation: splHeroWomanFloat481 3s ease-in-out infinite;
}

@keyframes splHeroWomanFloat481 {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.01); }
}

.spl-hero-chanel-quote {
  position: absolute;
  left: 17%;
  bottom: 74px;
  z-index: 12;
  width: min(55%, 310px);
  text-align: left;
  pointer-events: none;
}

.spl-hero-chanel-text {
  margin: 0 0 6px;
  color: rgba(154,47,98,.78);
  font-family: "Segoe Script", "Brush Script MT", "Snell Roundhand", "Bradley Hand", cursive;
  font-size: clamp(17px, 1.6vw, 24px);
  line-height: 1.34;
  font-weight: 400;
  text-shadow: 0 1px 0 rgba(255,255,255,.78);
  opacity: 0;
  transform: translateY(8px);
}

.spl-hero-chanel-author {
  display: block;
  color: rgba(154,47,98,.76);
  font-family: "Segoe Script", "Brush Script MT", "Snell Roundhand", "Bradley Hand", cursive;
  font-size: clamp(15px, 1.3vw, 21px);
  opacity: 0;
  transform: translateY(6px);
}

.spl-hero-chanel-text.is-writing {
  animation: splChanelWrite481 2.15s ease both;
}

.spl-hero-chanel-author.is-writing {
  animation: splChanelWrite481 2.15s ease .22s both;
}

@keyframes splChanelWrite481 {
  0% {
    opacity: 0;
    transform: translateY(9px);
    filter: blur(1px);
    clip-path: inset(0 100% 0 0);
  }
  18% {
    opacity: 1;
    filter: blur(.35px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    clip-path: inset(0 0 0 0);
  }
}

.spl-hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 14;
  width: 42px;
  height: 42px;
  border: 1px solid #f4c7d8;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: #ec3b85;
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  box-shadow: 0 10px 22px rgba(127,41,79,.08);
  cursor: pointer;
  transition: transform .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease;
}

.spl-hero-arrow:hover {
  background: #ec3b85;
  color: #fff;
  box-shadow: 0 14px 28px rgba(236,59,133,.18);
}

.spl-hero-arrow-prev { left: -16px; }
.spl-hero-arrow-next { right: -16px; }

.spl-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 14;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

.spl-hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f3bfd2;
  cursor: pointer;
  opacity: .72;
  transition: width .22s ease, background .22s ease, opacity .22s ease;
}

.spl-hero-dots button.is-active {
  width: 18px;
  background: #ec3b85;
  opacity: 1;
}

@media (max-width: 1100px) {
  .spl-hero-carousel {
    grid-template-columns: 1fr !important;
  }

  .spl-hero-slider {
    margin-top: 18px;
    min-height: 300px;
  }

  .spl-hero-slides {
    height: 300px;
  }

  .spl-hero-slide img {
    max-height: 300px;
  }

  .spl-hero-chanel-quote {
    left: 50%;
    bottom: 36px;
    transform: translateX(-50%);
    width: min(86%, 340px);
    text-align: center;
  }
}

@media (max-width: 768px) {
  .spl-hero-slider {
    min-height: 260px;
  }

  .spl-hero-slides {
    height: 260px;
  }

  .spl-hero-slide img {
    max-height: 260px;
  }

  .spl-hero-chanel-quote {
    bottom: 30px;
    width: min(90%, 310px);
  }

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

  .spl-hero-chanel-author {
    font-size: 16px;
  }

  .spl-hero-arrow {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .spl-hero-arrow-prev { left: 4px; }
  .spl-hero-arrow-next { right: 4px; }
  .spl-hero-dots { bottom: 2px; }
}

@media (max-width: 480px) {
  .spl-hero-slider {
    min-height: 230px;
  }

  .spl-hero-slides {
    height: 230px;
  }

  .spl-hero-slide img {
    max-height: 230px;
  }

  .spl-hero-chanel-quote {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spl-hero-slide,
  .spl-hero-slide img,
  .spl-hero-arrow,
  .spl-hero-dots button,
  .spl-hero-chanel-text,
  .spl-hero-chanel-author {
    animation: none !important;
    transition: none !important;
  }
}
