/* ==================== СТИЛИ САЙТА v-roste.ru ==================== */

:root {
    --bg: #fff9f5;
    --text: #2c2c2c;
    --accent: #ff5e7a;
    --accent2: #ffb347;
    --card: #ffffff;
    --shadow: 0 15px 35px rgba(0,0,0,0.06);
    --radius: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #fff0f3 0%, #fff5e6 50%, #fff9f5 100%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HERO ==================== */
.hero {
    text-align: center;
    padding: 60px 0 50px;
    background: linear-gradient(135deg, #fff0f3 0%, #fff5e6 100%);
    background-attachment: fixed;
}

.hero h1 {
    font-size: clamp(2.8rem, 8vw, 4rem);
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
    line-height: 1.1;
    color: #1a1a1a;
}

.hero .accent {
    color: var(--accent);
}

.hero p {
    font-size: 1.3rem;
    color: #555;
    margin: 20px 0 30px;
    font-weight: 500;
}

.hero-price {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #555;
}

.hero-price span {
    background: var(--accent);
    color: #fff;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 500;
    box-shadow: 0 8px 20px rgba(255,94,122,0.3);
    display: inline-block;
    animation: pricePulse 2s infinite;
}

.hero-price strong {
    font-weight: 700;
    font-size: 1.4rem;
}

@keyframes pricePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: 0.2s;
    box-shadow: 0 8px 20px rgba(255,94,122,0.3);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    background: #e84d6a;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px dashed var(--accent);
    cursor: pointer;
    transition: 0.2s;
    display: inline-block;
    /* убираем лишние для inline-block свойства */
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
}

/* Кнопка "Поделиться" — гарантированное центрирование */
.share-button-wrapper {
    text-align: center;
    margin-top: 30px;
    position: relative;
}
.btn-share-wide {
    padding: 14px 36px;
    white-space: nowrap;
    display: inline-block;
}
.copy-toast {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    margin-top: 10px;
    white-space: nowrap;
    background: var(--accent);
    color: #fff;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.copy-toast.show {
    opacity: 1;
}

/* ==================== СЕКЦИИ ==================== */
.section {
    padding: 30px 0;
}

.section h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent2);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ==================== АНИМАЦИЯ ПОЯВЛЕНИЯ ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== КАРТОЧКИ ГЕРОЕВ ==================== */
.heroes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px 20px;
    justify-items: center;
}

.hero-card {
    text-align: center;
    transition: transform 0.2s;
    background: none;
    box-shadow: none;
    padding: 0;
}

.hero-card:hover {
    transform: translateY(-5px);
}

.hero-card img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 12px;
    border: 4px solid #ffe0e0;
    background: linear-gradient(135deg, #ffe4c4, #ffd1dc);
}

.hero-card h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.hero-card .stat {
    color: #888;
    font-size: 0.85rem;
}

/* ==================== КАРУСЕЛЬ ==================== */
.carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.carousel-track img {
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
    height: auto;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #ffb6c1, #87ceeb);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    z-index: 2;
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

/* ==================== 4 ПРОСТЫХ ШАГА ==================== */
.steps-list {
    max-width: 650px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.step-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 50px;
    text-align: center;
}

.step-text strong {
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.step-text p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* ==================== ОТЗЫВЫ ==================== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.review {
    background: var(--card);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-style: italic;
}

.review .author {
    font-weight: 600;
    margin-top: 10px;
    font-style: normal;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.screenshot-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: center;
}

.screenshot-card img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.screenshot-card .caption {
    padding: 12px;
    font-size: 0.9rem;
    color: #666;
}

.review-links {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1rem;
}

.review-links-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.review-divider {
    color: #aaa;
    margin: 0 2px;
}

.review-links a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    margin: 0 8px;
    white-space: nowrap;
}

/* ==================== СОЦСЕТИ ==================== */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--card);
    box-shadow: var(--shadow);
    font-size: 2rem;
    text-decoration: none;
    transition: 0.3s;
}

.social-icon i {
    color: var(--text);
}

.social-icon.vk:hover {
    background: #0077FF;
}

.social-icon.tg:hover {
    background: #27A7E7;
}

.social-icon.avito:hover {
    background: #FF6B00;
}

.social-icon:hover i {
    color: #fff;
}

/* ==================== FOOTER ==================== */
footer {
    background: #2c2c2c;
    color: #eee;
    text-align: center;
    padding: 40px 20px 20px;
    margin-top: 0;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 5px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-info {
    max-width: 600px;
    margin: 0 auto;
    color: #aaa;
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-info p {
    margin-bottom: 5px;
}

.theme-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}
.theme-toggle-btn {
    background: none;
    border: 1px solid #aaa;
    color: #ccc;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.theme-toggle-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.theme-toggle-label {
    font-size: 0.8rem;
    color: #aaa;
    cursor: pointer;
}

/* ==================== КНОПКА НАВЕРХ ==================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(6px);
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    color: var(--text);
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 99;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

/* ==================== ПЛАШКА ПОДПИСКИ ==================== */
.subscribe-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    z-index: 999;
    max-width: 280px;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.4s;
    pointer-events: none;
}

.subscribe-banner.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.subscribe-banner .close-banner {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

.subscribe-banner a {
    display: inline-block;
    margin-top: 12px;
    background: var(--accent);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
}

/* ==================== ПАРТНЁРЫ ==================== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    justify-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.partner-card {
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
    display: block;
}

.partner-card:hover {
    transform: translateY(-4px);
}

.partner-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px;
    filter: brightness(0.9) grayscale(15%);
    transition: filter 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.partner-card:hover .partner-avatar {
    filter: brightness(1.05) grayscale(0%);
    box-shadow: 0 8px 22px rgba(0,0,0,0.1);
}

.partner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.partner-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 2px;
    transition: color 0.3s;
}

.partner-card:hover .partner-name {
    color: var(--accent);
}

.partner-role {
    display: block;
    font-size: 0.8rem;
    color: #999;
}

/* ==================== МОБИЛЬНОЕ МЕНЮ ==================== */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
    z-index: 1000;
}

.mob-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #555;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 10px;
    transition: 0.2s;
}

.mob-btn i {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.mob-btn-vk {
    color: #0077FF;
}

/* цвет для кнопки Telegram */
.mob-btn-tg {
    color: #27A7E7;
}

.mob-btn-call {
    color: #2c2c2c;
}

.mob-btn-more {
    color: #888;
}

.mob-more-menu {
    position: fixed;
    bottom: 60px;
    right: 15px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    padding: 10px;
    z-index: 1001;
    transform: scale(0);
    opacity: 0;
    transform-origin: bottom right;
    transition: 0.2s;
    pointer-events: none;
}

.mob-more-menu.show {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.mob-more-menu a {
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 12px;
    white-space: nowrap;
}

.mob-more-menu a:hover {
    background: #f5f5f5;
}

.mob-more-menu i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

@media (min-width: 769px) {
    .mobile-bottom-bar,
    .mob-more-menu {
        display: none !important;
    }
}

/* ==================== ТЁМНАЯ ТЕМА (ручное переключение) ==================== */
body.dark-mode {
    --bg: #1a1a1a;
    --text: #eee;
    --card: #2a2a2a;
    --shadow: 0 15px 35px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #2a1a1a 0%, #1a1a1a 100%);
}
body.dark-mode .hero {
    background: linear-gradient(135deg, #2a1a1a 0%, #1a1a1a 100%);
}
body.dark-mode .hero h1 { color: #fff; }
body.dark-mode .hero p { color: #ccc; }
body.dark-mode .hero-card img { border-color: #444; }
body.dark-mode .btn-outline { border-color: var(--accent); }
body.dark-mode .step-text p { color: #aaa; }
body.dark-mode .review { background: var(--card); color: #ddd; }
body.dark-mode footer { background: #111; }
body.dark-mode .subscribe-banner { background: #2a2a2a; color: #eee; }
body.dark-mode .price-card { background: #2a2a2a; color: #ddd; }
body.dark-mode .price-card ul li { color: #bbb; }
body.dark-mode .screenshot-card { background: #2a2a2a; }
body.dark-mode .screenshot-card img { border-color: #444; }
body.dark-mode .faq-item { background: #2a2a2a; color: #ddd; }
body.dark-mode .faq-answer { color: #bbb; }
body.dark-mode .theme-toggle-label { color: #ccc; }
body.dark-mode .how-desc { background: #333; color: #ccc; }
body.dark-mode .footer-links a { color: #aaa; }
body.dark-mode .footer-info p { color: #888; }

/* ==================== КНОПКА ТЕМЫ (ЛЕВЫЙ НИЖНИЙ УГОЛ) ==================== */
.theme-float-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 46px;
    height: 46px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(6px);
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    color: var(--text);
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0.8;
    transition: 0.3s;
    z-index: 99;
}
.theme-float-btn:hover {
    opacity: 1;
    background: var(--accent);
    color: #fff;
}
body.dark-mode .theme-float-btn {
    background: rgba(0,0,0,0.6);
    color: #eee;
}

/* ==================== МОБИЛЬНЫЕ ОТСТУПЫ ДЛЯ ФИКСИРОВАННОЙ ПАНЕЛИ ==================== */
@media (max-width: 768px) {
    .scroll-top {
        bottom: 90px;
    }
    .theme-float-btn {
        bottom: 90px;
    }
    .subscribe-banner {
        bottom: 90px;
    }
}