/* Hero symbol — наугольник и циркуль */
.gamayun-hero-symbol {
  display: flex;
  justify-content: center;
  margin: 0 auto 1.1rem;
  animation: gamayun-badge-in 0.9s ease both;
}

.gamayun-hero-symbol img,
.gamayun-hero-symbol svg {
  width: clamp(4.5rem, 10vw, 6.25rem);
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.22));
}

.gamayun-hero-badge {
  --gamayun-hero-badge-scale: 1.15;
  display: inline-block;
  font-family: var(--gamayun-font-sans);
  font-size: calc(0.8125rem * var(--gamayun-hero-badge-scale));
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--gamayun-gold);
  color: var(--gamayun-gold);
  padding: calc(0.35rem * var(--gamayun-hero-badge-scale)) calc(0.85rem * var(--gamayun-hero-badge-scale));
  margin: 0 auto 1rem;
  animation: gamayun-badge-in 0.8s ease both;
}

@keyframes gamayun-badge-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gamayun-hero-scroll {
  margin-top: 1.25rem !important;
}

.gamayun-hero-scroll .wp-block-button__link {
  color: var(--gamayun-cream) !important;
  border: 2px solid rgba(255, 253, 240, 0.75) !important;
  background: transparent !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.gamayun-hero-scroll .wp-block-button__link:hover {
  background: rgba(255, 253, 240, 0.12) !important;
  border-color: var(--gamayun-gold) !important;
  color: var(--gamayun-gold) !important;
}

/* Outline buttons on light surfaces (not hero) */
.nv-content-wrap .is-style-outline .wp-block-button__link:not(.gamayun-scroll-down) {
  border: 2px solid var(--gamayun-text-primary) !important;
  color: var(--gamayun-text-primary) !important;
  background: transparent !important;
  box-shadow: 0 1px 3px rgba(45, 27, 54, 0.08);
}

.nv-content-wrap .is-style-outline .wp-block-button__link:not(.gamayun-scroll-down):hover,
.nv-content-wrap .is-style-outline .wp-block-button__link:not(.gamayun-scroll-down):focus-visible {
  background: var(--gamayun-text-primary) !important;
  color: var(--gamayun-cream) !important;
  border-color: var(--gamayun-text-primary) !important;
  box-shadow: 0 4px 8px rgba(45, 27, 54, 0.22);
}

/* Secondary chat CTA — gold rim, dark label for WCAG text contrast */
.nv-content-wrap .is-style-outline .wp-block-button__link.gamayun-guide-open {
  border-color: var(--gamayun-gold) !important;
  color: var(--gamayun-text-primary) !important;
}

.nv-content-wrap .is-style-outline .wp-block-button__link.gamayun-guide-open:hover,
.nv-content-wrap .is-style-outline .wp-block-button__link.gamayun-guide-open:focus-visible {
  background: var(--gamayun-gold) !important;
  color: var(--gamayun-text-primary) !important;
  border-color: var(--gamayun-gold) !important;
  box-shadow: 0 4px 10px rgba(201, 168, 76, 0.35);
}

@media (max-width: 767px) {
  .gamayun-next-step .gamayun-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .gamayun-next-step .gamayun-cta-row .wp-block-button {
    width: 100%;
  }

  .gamayun-next-step .gamayun-cta-row .wp-block-button__link {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}

/* Cards variants + micro-interactions */
@media (min-width: 768px) {
  .gamayun-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gamayun-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gamayun-card {
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .gamayun-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(61, 42, 79, 0.08);
  }
}

.gamayun-card--featured {
  border-left: 3px solid var(--gamayun-gold);
}

.gamayun-card h3 a:hover {
  color: var(--gamayun-gold) !important;
}

/* Archive cards */
.nv-index-posts .layout-grid article {
  border: 1px solid var(--gamayun-border);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .nv-index-posts .layout-grid article:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(61, 42, 79, 0.08);
    border-color: var(--gamayun-purple-light);
  }
}

.nv-index-posts .blog-entry-title a {
  color: var(--gamayun-purple-primary);
  text-decoration: none;
  font-family: var(--gamayun-font-serif);
}

.nv-index-posts .blog-entry-title a:hover {
  color: var(--gamayun-gold);
}

/* Single full width */
.gamayun-single-full .nv-sidebar-wrap {
  display: none !important;
}

.gamayun-single-full .nv-single-post-wrap.col {
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

/* TOC */
.gamayun-content-with-toc {
  position: relative;
}

@media (min-width: 1100px) {
  .gamayun-toc-sidebar {
    position: sticky;
    top: 6rem;
    float: left;
    width: 14rem;
    margin: 0 2rem 1rem 0;
    padding: 1rem;
    background: var(--gamayun-surface);
    border: 1px solid var(--gamayun-border);
    font-size: 0.92rem;
  }

  .gamayun-toc-title {
    font-weight: 600;
    margin: 0 0 0.65rem;
    color: var(--gamayun-purple-primary);
    font-size: 0.95rem;
  }

  .gamayun-toc-list {
    margin: 0;
    padding-left: 1.1rem;
  }

  .gamayun-toc-list a {
    color: var(--gamayun-text-secondary);
    text-decoration: none;
  }

  .gamayun-toc-list a:hover {
    color: var(--gamayun-gold);
  }

  .gamayun-toc-h3 {
    list-style: circle;
    margin-left: 0.5rem;
  }

  .gamayun-toc-mobile {
    display: none;
  }
}

@media (max-width: 1099px) {
  .gamayun-toc-sidebar {
    display: none;
  }

  .gamayun-toc-mobile {
    margin-bottom: 1.25rem;
  }

  .gamayun-toc-toggle {
    width: 100%;
    text-align: left;
    padding: 0.65rem 0.85rem;
    background: var(--gamayun-surface);
    border: 1px solid var(--gamayun-border);
    font: inherit;
    font-weight: 600;
    color: var(--gamayun-purple-primary);
    cursor: pointer;
  }

  .gamayun-toc-mobile-panel {
    border: 1px solid var(--gamayun-border);
    border-top: 0;
    padding: 0.75rem 1rem;
    background: #fff;
  }

  .gamayun-toc-mobile-panel ol {
    margin: 0;
    padding-left: 1.1rem;
  }
}

/* Reading progress */
.gamayun-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100000;
  background: rgba(232, 220, 232, 0.5);
  pointer-events: none;
}

.gamayun-reading-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(to right, var(--gamayun-purple-primary), var(--gamayun-gold));
}

.gamayun-reading-progress.is-animated span {
  transition: width 0.1s ease;
}

/* Accordion (symbols page) */
.gamayun-accordion-item {
  border: 1px solid var(--gamayun-border);
  margin-bottom: 0.65rem;
  background: #fff;
}

.gamayun-accordion-item summary {
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-family: var(--gamayun-font-serif);
  font-weight: 600;
  color: var(--gamayun-purple-primary);
  list-style: none;
}

.gamayun-accordion-item summary::-webkit-details-marker {
  display: none;
}

.gamayun-accordion-item summary::before {
  content: "▸ ";
  color: var(--gamayun-gold);
}

.gamayun-accordion-item[open] summary::before {
  content: "▾ ";
}

.gamayun-accordion-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--gamayun-border);
}

/* Bottom nav */
.gamayun-bottom-nav {
  display: none;
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0));
  }

  .gamayun-bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99980;
    background: var(--gamayun-purple-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    justify-content: space-around;
    padding: 0.25rem 0 calc(0.25rem + env(safe-area-inset-bottom, 0));
  }

  .gamayun-bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.35rem 0.25rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.68rem;
    background: none;
    border: 0;
    font-family: inherit;
    cursor: pointer;
  }

  .gamayun-bottom-nav__item.is-active,
  .gamayun-bottom-nav__item:hover,
  .gamayun-bottom-nav__item:focus-visible {
    color: var(--gamayun-gold);
  }

  .gamayun-bottom-nav__icon {
    display: block;
    width: 1.35rem;
    height: 1.35rem;
    line-height: 1;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.9;
  }

  .gamayun-bottom-nav__item.is-active .gamayun-bottom-nav__icon,
  .gamayun-bottom-nav__item:hover .gamayun-bottom-nav__icon,
  .gamayun-bottom-nav__item:focus-visible .gamayun-bottom-nav__icon {
    opacity: 1;
  }

  /* Simple line icons (currentColor) */
  .gamayun-bottom-nav__icon--home {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1v-9.5z'/%3E%3C/svg%3E");
  }

  .gamayun-bottom-nav__icon--pub {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h10'/%3E%3C/svg%3E");
  }

  .gamayun-bottom-nav__icon--anketa {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4h8l3 3v13a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z'/%3E%3Cpath d='M8 12h8M8 16h5'/%3E%3C/svg%3E");
  }

  .gamayun-bottom-nav__icon--chat {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-1.9 5.4 8.5 8.5 0 0 1-6.6 3.1 8.4 8.4 0 0 1-3.9-1L3 21l1.9-5.5a8.4 8.4 0 0 1-1-3.9 8.5 8.5 0 0 1 3.1-6.6A8.4 8.4 0 0 1 12 3a8.5 8.5 0 0 1 6.6 3.1 8.4 8.4 0 0 1 1.9 5.4z'/%3E%3C/svg%3E");
  }

  .gamayun-bottom-nav__item.is-active .gamayun-bottom-nav__icon--home,
  .gamayun-bottom-nav__item:hover .gamayun-bottom-nav__icon--home,
  .gamayun-bottom-nav__item:focus-visible .gamayun-bottom-nav__icon--home {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a84c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1v-9.5z'/%3E%3C/svg%3E");
  }

  .gamayun-bottom-nav__item.is-active .gamayun-bottom-nav__icon--pub,
  .gamayun-bottom-nav__item:hover .gamayun-bottom-nav__icon--pub,
  .gamayun-bottom-nav__item:focus-visible .gamayun-bottom-nav__icon--pub {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a84c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h10'/%3E%3C/svg%3E");
  }

  .gamayun-bottom-nav__item.is-active .gamayun-bottom-nav__icon--anketa,
  .gamayun-bottom-nav__item:hover .gamayun-bottom-nav__icon--anketa,
  .gamayun-bottom-nav__item:focus-visible .gamayun-bottom-nav__icon--anketa {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a84c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4h8l3 3v13a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z'/%3E%3Cpath d='M8 12h8M8 16h5'/%3E%3C/svg%3E");
  }

  .gamayun-bottom-nav__item.is-active .gamayun-bottom-nav__icon--chat,
  .gamayun-bottom-nav__item:hover .gamayun-bottom-nav__icon--chat,
  .gamayun-bottom-nav__item:focus-visible .gamayun-bottom-nav__icon--chat,
  .gamayun-bottom-nav__item--chat.gamayun-bottom-nav__item:focus-visible .gamayun-bottom-nav__icon--chat {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a84c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-1.9 5.4 8.5 8.5 0 0 1-6.6 3.1 8.4 8.4 0 0 1-3.9-1L3 21l1.9-5.5a8.4 8.4 0 0 1-1-3.9 8.5 8.5 0 0 1 3.1-6.6A8.4 8.4 0 0 1 12 3a8.5 8.5 0 0 1 6.6 3.1 8.4 8.4 0 0 1 1.9 5.4z'/%3E%3C/svg%3E");
  }

  .gamayun-bottom-nav__label {
    font-size: 0.64rem;
    letter-spacing: 0.01em;
  }

  body.gg-guide-open {
    padding-bottom: 0;
  }

  body.gg-guide-open .gamayun-bottom-nav {
    display: none;
  }

  body.gg-guide-open .menu-mobile-toggle,
  body.gg-guide-open .builder-item--nav-icon,
  body.gg-guide-open .close-sidebar-panel {
    pointer-events: none;
  }
}

/* Skip link */
.gamayun-skip-link:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100001;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.65rem 1rem;
  background: var(--gamayun-purple-dark);
  color: #fff;
  text-decoration: none;
}

/* Focus visible */
a:focus-visible,
button:focus-visible,
.gamayun-card a:focus-visible {
  outline: 2px solid var(--gamayun-gold);
  outline-offset: 2px;
}

/* Header menu hover override */
.header-main .primary-menu-ul > li > .wrap > a:hover,
.header-main .primary-menu-ul .sub-menu a:hover {
  color: var(--gamayun-gold) !important;
}

footer .footer-bottom {
  background-color: var(--gamayun-purple-dark) !important;
  background: var(--gamayun-purple-dark) !important;
}
