/* nano-compare.css */

.return-nav { max-width: 1240px; margin: 2rem auto 0; padding: 0 1.5rem; }
.return-btn {
    display: inline-flex; align-items: center; color: var(--brand-dark); font-weight: 800; 
    text-decoration: none; font-size: 0.95rem; padding: 0.6rem 1.2rem; background: var(--white);
    border-radius: 2rem; border: 1px solid var(--border-dark); transition: 0.3s;
}
.return-btn:hover { background: var(--brand-dark); color: var(--white); border-color: var(--brand-dark); }

.compare-page { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem 6rem; }
.compare-hero { text-align: center; margin: 3rem 0 5rem; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-main); line-height: 1.6; max-width: 800px; margin: 0 auto; }

/* СЕТКА СРАВНЕНИЯ */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-bottom: 4rem; }

/* КАРТОЧКА (без overflow:hidden, чтобы тултип работал) */
.compare-card {
    background: var(--white); border: 1px solid var(--white); border-radius: 16px;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; transition: transform 0.3s ease;
    position: relative; z-index: 1;
}
.compare-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); z-index: 10; }
.compare-card.full-width { grid-column: 1 / -1; }

/* ВИЗУАЛЬНЫЙ БЛОК */
.c-card-visual {
    display: flex; height: 180px; background: var(--bg-light); border-bottom: 1px solid var(--white); 
    position: relative; border-radius: 16px 16px 0 0; overflow: hidden; /* Обрезает только SVG */
}
.horizontal-vis { height: 140px; padding: 2rem; align-items: center; justify-content: center; }

.svg-half { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; padding: 1.5rem; }
.sanger-side { background: var(--bg-light); }
.nano-side { background: var(--magenta-light-bg); }

.vis-label { position: absolute; top: 10px; left: 15px; font-size: 0.8rem; font-weight: 800; color: #aaa; text-transform: uppercase; letter-spacing: 1px; }
.nano-side .vis-label { color: var(--magenta); }

.vs-divider {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: var(--brand-dark); color: var(--white); font-size: 0.85rem; font-weight: 900;
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; z-index: 2; border: 3px solid var(--white);
}

.svg-half svg { width: 100%; max-width: 100px; height: auto; }
.coverage-svg { width: 100%; max-width: 400px; }

/* ТЕКСТОВЫЙ БЛОК */
.c-card-content { padding: 2.5rem; display: flex; flex-direction: column; flex-grow: 1; border-radius: 0 0 16px 16px; overflow: visible !important; }
.c-card-content h3 { font-size: 1.4rem; color: var(--brand-dark); margin: 0 0 1rem 0; font-weight: 800; }
.c-card-content p { font-size: 1.05rem; color: var(--text-main); line-height: 1.6; margin: 0 0 1rem 0; }
.c-card-content p:last-child { margin-bottom: 0; }

/* БЛОК МАТЕМАТИКИ */
.math-box { margin-top: auto; padding-top: 1.5rem; border-top: 1px dashed var(--border-dark); }
.math-box strong { display: block; margin-bottom: 0.8rem; color: var(--brand-dark); font-size: 1rem; }
.math-list { list-style: none; padding: 0; margin: 0; }
.math-list li { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.95rem; color: var(--text-main); }
.old-price { text-decoration: line-through; color: var(--text-muted); font-weight: 600; }
.new-price { color: var(--magenta); font-weight: 800; font-size: 1.1rem; }

/* ИНФО-ОБЛАКА (ИСПРАВЛЕНО) */
.info-trigger { position: relative; display: inline-flex; cursor: help; margin-left: 6px; align-items: center; vertical-align: middle; }
.info-icon { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; background: var(--magenta); color: var(--white); border-radius: 50%; font-size: 12px; font-weight: bold; }
.info-cloud { visibility: hidden; opacity: 0; position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%); width: 300px; background: var(--white); color: var(--brand-dark); padding: 1.2rem; border-radius: 8px; box-shadow: var(--shadow-md); border: 1px solid var(--white); z-index: 9999; transition: 0.2s; font-size: 0.9rem; font-weight: 400; line-height: 1.5; text-transform: none; text-align: left; }
.info-trigger:hover .info-cloud { visibility: visible; opacity: 1; bottom: 110%; }

/* ФУТЕР CTA */
.bottom-action-block { text-align: center; margin-top: 5rem; padding: 4rem 2rem; background: var(--white); border-radius: 16px; border: 1px solid var(--white); }
.bottom-action-block h2 { font-size: 2rem; color: var(--brand-dark); margin-bottom: 2rem; font-weight: 800; }

.return-massive-btn {
    display: inline-block; padding: 1.5rem 4rem; background: var(--magenta); color: var(--white); 
    border: none; border-radius: 8px; font-weight: 900; text-transform: uppercase; 
    text-decoration: none; font-size: 1.2rem; transition: 0.3s; box-shadow: 0 10px 30px var(--platinum);
}
.return-massive-btn:hover { transform: translateY(-3px); filter: brightness(1.1); box-shadow: var(--shadow-magenta-glow-strong); }

/* АДАПТИВНОСТЬ */
@media (max-width: 1024px) {
    .compare-grid { grid-template-columns: 1fr; }
    .compare-card.full-width { grid-column: 1; }
}
@media (max-width: 768px) {
    .page-title { font-size: 2rem; }
    .c-card-content { padding: 1.5rem; }
}