/* Единая стилистика MineHelper — все страницы */

.logo-suffix {
    font-size: 0.7rem;
    font-weight: 500;
    color: #79c0ff;
    margin-left: 0.35rem;
    opacity: 0.85;
    letter-spacing: 0.04em;
    text-transform: lowercase;
}

.site-page {
    background: #0a0c10;
    background-image: radial-gradient(ellipse 100% 70% at 50% -25%, rgba(56, 139, 253, 0.07), transparent);
}

.site-page .site-main {
    animation: pageFadeIn 0.5s ease;
}

@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Иконки */
.ui-icon {
    display: block;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.ui-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(121, 192, 255, 0.08);
    border: 1px solid #21262d;
    border-radius: 12px;
    transition: transform 0.35s, background 0.35s, border-color 0.35s;
}

.ui-icon-box--sm {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.ui-icon-box--sm .ui-icon {
    width: 22px;
    height: 22px;
}

/* Шапка страницы инструмента */
.page-hero {
    position: relative;
    text-align: center;
    padding: 2rem 1rem 2.5rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(56, 139, 253, 0.12), transparent);
    pointer-events: none;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
}

.page-hero .ui-icon-box {
    margin: 0 auto 1rem;
}

.page-hero h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    background: linear-gradient(135deg, #f0f6fc, #79c0ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.page-hero p {
    color: #8b949e;
    font-size: 0.95rem;
    max-width: 520px;
    margin: 0 auto;
}

/* Улучшенные секции */
.site-page .tool-section {
    border-radius: 16px;
    transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s;
    opacity: 0;
    transform: translateY(20px);
}

.site-page .tool-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.site-page .tool-section:hover {
    border-color: #388bfd50;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.site-page .section-header h2 {
    background: linear-gradient(135deg, #e6edf3, #79c0ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.site-page .feature-card,
.site-page .question-card {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s, box-shadow 0.35s;
}

.site-page .feature-card:hover,
.site-page .question-card:hover,
.site-page .store-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.3);
}

.site-page .store-page-header h1 {
    background: linear-gradient(135deg, #e6edf3, #79c0ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.site-page .question-container,
.site-page .profile-card {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-page .question-container.is-visible,
.site-page .profile-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.site-page .calc-btn,
.site-page .btn-submit,
.site-page .btn-answer,
.site-page .ask-btn {
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.site-page .calc-btn:hover,
.site-page .btn-submit:hover {
    transform: translateY(-1px);
}

/* Reveal при скролле */
.reveal,
.site-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible,
.site-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.site-header {
    transition: box-shadow 0.3s, border-color 0.3s;
}

.site-page .nav-link {
    transition: color 0.2s, border-color 0.2s;
}

/* Главная — иконки в карточках */
.page-home .feature-icon,
.page-home .why-card-icon {
    padding: 0;
    font-size: inherit;
    background: transparent;
    border: none;
    width: auto;
    height: auto;
}

.page-home .feature-card--home .ui-icon-box {
    margin-bottom: 1rem;
}

.page-home .why-card .ui-icon-box {
    margin: 0 auto 0.75rem;
    display: flex;
}

.page-home .about-block h3 .ui-icon-inline {
    vertical-align: -4px;
    margin-right: 4px;
}

.ui-icon-inline {
    display: inline-block;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.ui-icon-inline svg {
    width: 18px;
    height: 18px;
}

@media (prefers-reduced-motion: reduce) {
    .site-page .site-main,
    .reveal,
    .site-reveal,
    .site-page .tool-section {
        animation: none;
        opacity: 1;
        transform: none;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    .hero-home h1,
    .hero-bg,
    .hero-orb {
        animation: none;
    }
}
