/* ============================================================
   BOTinOK — Index / Landing (B+A: акцентные линии + матовые панели)
   ============================================================ */

/* ===== HERO ===== */
.hero {
    padding: 64px 0 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero h1 {
    font-size: var(--fs-3xl);
    font-weight: 800;
    line-height: var(--lh-tight);
    letter-spacing: -0.03em;
    max-width: 760px;
    color: var(--text-0);
}

.hero p {
    font-size: var(--fs-md);
    font-weight: 400;
    max-width: 580px;
    line-height: var(--lh-base);
    color: var(--text-1);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--r-md);
    border: 1px solid var(--accent);
    font-weight: 600;
    font-size: var(--fs-base);
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition:
        background var(--dur) var(--ease),
        border-color var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease),
        transform var(--dur) var(--ease);
}

.hero-cta:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 0 0 4px var(--accent-soft), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.hero-cta .arrow {
    display: inline-block;
    width: 15px;
    height: 2px;
    background: #fff;
    position: relative;
    transition: transform var(--dur) var(--ease);
}

.hero-cta:hover .arrow {
    transform: translateX(3px);
}

.hero-cta .arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
}

/* ===== STATS ===== */
.stats {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-value {
    font-size: var(--fs-xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--accent-hover);
}

.stat-label {
    font-size: var(--fs-sm);
    font-weight: 400;
    color: var(--text-2);
}

/* ===== ОБЩАЯ СЕКЦИЯ + АКЦЕНТ ПОД ЗАГОЛОВКОМ (B) ===== */
.features,
.visual-editor,
.pricing,
.reviews {
    padding: 64px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
}

.section-title {
    font-size: var(--fs-xl);
    font-weight: 700;
    letter-spacing: -0.01em;
    text-align: center;
    color: var(--text-0);
    position: relative;
    padding-bottom: 14px;
}

/* фиолетовая линия-акцент под заголовком секции */
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 36px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    opacity: 0.9;
}

.section-subtitle {
    font-size: var(--fs-sm);
    font-weight: 400;
    text-align: center;
    margin-top: -6px;
    color: var(--text-2);
}

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    margin-top: 24px;
}

.feature-card {
    position: relative;
    background: var(--bg-1);
    border: 1px solid var(--border-1);
    border-radius: var(--r-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 180px;
    box-shadow: var(--panel-solid);
    overflow: hidden;
    transition:
        border-color var(--dur) var(--ease),
        background var(--dur) var(--ease),
        transform var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease);
}

/* акцентная кромка сверху (B) */
.feature-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 14px;
    right: 14px;
    height: var(--accent-line);
    border-radius: 0 0 2px 2px;
    background: transparent;
    transition: background var(--dur) var(--ease);
}

.feature-card:hover {
    background: var(--bg-2);
    border-color: var(--border-2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), var(--panel-edge);
}

.feature-card:hover::before {
    background: var(--accent);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-soft-2);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 var(--edge-light);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent-hover);
    fill: none;
    stroke-width: 2;
}

.feature-title {
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--text-0);
}

.feature-desc {
    font-size: var(--fs-sm);
    font-weight: 400;
    line-height: var(--lh-base);
    color: var(--text-2);
}

/* ===== VISUAL EDITOR ===== */
.visual-editor-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.visual-editor-img {
    width: 100%;
    max-width: 900px;
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid var(--border-2);
    box-shadow: var(--shadow-lg), inset 0 1px 0 var(--edge-light);
}

.visual-editor-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== PRICING ===== */
.pricing-subtitle {
    font-size: var(--fs-md);
    font-weight: 400;
    text-align: center;
    margin-top: -6px;
    color: var(--text-2);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    margin-top: 28px;
}

.price-card {
    position: relative;
    background: var(--bg-1);
    border: 1px solid var(--border-1);
    border-radius: var(--r-lg);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--panel-solid);
    overflow: hidden;
    transition:
        border-color var(--dur) var(--ease),
        background var(--dur) var(--ease),
        transform var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease);
}

/* акцентная кромка (B) */
.price-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 14px;
    right: 14px;
    height: var(--accent-line);
    border-radius: 0 0 2px 2px;
    background: transparent;
    transition: background var(--dur) var(--ease);
}

.price-card:hover {
    background: var(--bg-2);
    border-color: var(--border-2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), var(--panel-edge);
}

.price-card:hover::before {
    background: var(--accent);
}

.price-card.popular {
    background: var(--bg-2);
    border-color: var(--accent-soft-2);
    box-shadow: 0 0 0 1px var(--accent-soft), var(--shadow-md), var(--panel-edge);
    transform: translateY(-6px);
}

.price-card.popular::before {
    background: var(--accent);
}

.price-card.popular:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.popular-badge {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 4px 14px;
    border-radius: var(--r-full);
    font-size: var(--fs-xs);
    font-weight: 600;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.price-name {
    font-size: var(--fs-lg);
    font-weight: 700;
    line-height: var(--lh-tight);
    color: var(--text-0);
}

.price-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.price-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-sm);
    font-weight: 400;
    line-height: var(--lh-snug);
    color: var(--text-1);
}

.check-icon {
    width: 18px;
    height: 18px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-soft-2);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-hover);
    font-size: 11px;
    font-weight: 700;
}

.btn-secondary {
    background: var(--bg-3);
    color: var(--text-0);
    border: 1px solid var(--border-1);
    border-radius: var(--r-md);
    padding: 10px;
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    transition:
        background var(--dur) var(--ease),
        border-color var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease);
    margin-top: auto;
    box-shadow: inset 0 1px 0 var(--edge-light);
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--border-2);
}

.btn-secondary:active {
    box-shadow: inset 0 2px 4px var(--edge-dark);
}

/* ===== REVIEWS ===== */
.reviews-subtitle {
    font-size: var(--fs-md);
    font-weight: 400;
    text-align: center;
    margin-top: -6px;
    color: var(--text-2);
}

.reviews-carousel {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.reviews-track {
    flex: 1;
    overflow: hidden;
    border-radius: var(--r-xl);
}

.reviews-inner {
    display: flex;
    transition: transform .5s ease;
}

.review-card {
    flex: 0 0 100%;
    background: var(--bg-1);
    border: 1px solid var(--border-1);
    border-radius: var(--r-xl);
    padding: 28px 32px;
    display: flex;
    gap: 24px;
    align-items: stretch;
    min-height: 160px;
    box-shadow: var(--panel-solid);
}

/* Левая колонка: аватар + имя + звёзды */
.review-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 90px;
}

.review-avatar {
    width: 72px;
    height: 72px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-soft-2);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--accent-hover);
    box-shadow: inset 0 1px 0 var(--edge-light);
    overflow: hidden;
}

.review-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Правая колонка: текст + дата */
.review-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    background: var(--bg-2);
    border: 1px solid var(--border-1);
    border-radius: var(--r-lg);
    padding: 20px 24px;
    box-shadow: inset 0 1px 0 var(--edge-light);
}

.review-text {
    color: var(--text-0);
    font-size: var(--fs-md);
    font-weight: 500;
    line-height: var(--lh-base);
}

.review-date {
    font-size: var(--fs-xs);
    color: var(--text-2);
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: 0.01em;
    text-align: end;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    background: var(--bg-2);
    border: 1px solid var(--border-1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--panel-solid);
    transition:
        background var(--dur) var(--ease),
        border-color var(--dur) var(--ease),
        transform var(--dur) var(--ease);
}

.carousel-btn:hover {
    background: var(--bg-3);
    border-color: var(--border-2);
    transform: scale(1.05);
}

.carousel-btn:active {
    box-shadow: inset 0 2px 4px var(--edge-dark);
    transform: scale(0.98);
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-0);
    stroke-width: 2.5;
    fill: none;
}

/* ===== FEEDBACK FORM ===== */
.feedback-form-wrap {
    width: 90%;
    margin-top: 32px;
    background: var(--bg-1);
    border: 1px solid var(--border-1);
    border-radius: var(--r-xl);
    padding: 28px 32px;
    box-shadow: var(--panel-solid);
    position: relative;
}

/* Блюр-оверлей для неавторизованных */
.feedback-auth-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--r-xl);
    z-index: 10;
    align-items: center;
    justify-content: center;
}

.feedback-auth-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    padding: 20px;
}

.feedback-auth-overlay-content svg {
    stroke: var(--text-1);
}

.feedback-auth-overlay-content p {
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--text-0);
}

.feedback-auth-overlay-content .btn-secondary {
    padding: 10px 28px;
    text-decoration: none;
}

.feedback-form-title {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--text-0);
    margin-bottom: 18px;
    text-align: center;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Двухколоночный layout: слева аватар+имя+звёзды, справа текст */
.feedback-layout {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.feedback-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 100px;
}

.feedback-right {
    flex: 1;
    display: flex;
}

/* Аватар в форме отзыва */
.feedback-avatar-display {
    width: 72px;
    height: 72px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-soft-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--accent-hover);
    overflow: hidden;
    box-shadow: inset 0 1px 0 var(--edge-light);
}

.feedback-avatar-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Имя в форме отзыва */
.feedback-name-display {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-0);
    text-align: center;
    word-break: break-word;
    max-width: 110px;
    line-height: var(--lh-snug);
}

.feedback-form textarea {
    width: 100%;
    background: var(--bg-2);
    border: 1px solid var(--border-1);
    border-radius: var(--r-md);
    padding: 12px 14px;
    font-size: var(--fs-sm);
    color: var(--text-0);
    font-family: inherit;
    outline: none;
    resize: vertical;
    min-height: 100px;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.feedback-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Рейтинг — звёзды */
.feedback-rating {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

.rating-star {
    font-size: 20px;
    cursor: pointer;
    color: var(--border-2);
    transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
    user-select: none;
}

.rating-star.active {
    color: #f5a623;
}

.rating-star.hover {
    color: #f5c842;
    transform: scale(1.15);
}

/* Кнопка отправить — большая, на всю ширину */
.feedback-submit {
    width: 100%;
    padding: 14px 28px;
    font-size: var(--fs-base);
}

.feedback-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.feedback-message {
    font-size: var(--fs-sm);
    font-weight: 500;
    min-height: 20px;
}

.feedback-message.success {
    color: #34d399;
}

.feedback-message.error {
    color: #f87171;
}

/* Имя и звёзды в левой колонке карточки отзыва */
.review-author {
    font-size: var(--fs-sm);
    color: var(--text-0);
    font-weight: 600;
    text-align: center;
    word-break: break-word;
    max-width: 100px;
    line-height: var(--lh-snug);
}

.review-stars {
    font-size: var(--fs-sm);
    color: #f5a623;
    letter-spacing: 2px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp .8s var(--ease) both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero h1 { font-size: var(--fs-2xl); }
    .hero { padding: 40px 0 32px; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .stats { gap: 32px; }
    .review-card { flex-direction: column; align-items: center; }
    .review-left { flex-direction: row; gap: 12px; min-width: unset; }
    .review-right { width: 100%; }
    .carousel-btn { width: 40px; height: 40px; }
    .carousel-btn svg { width: 16px; height: 16px; }
    .section-title { font-size: var(--fs-lg); }

    /* Форма отзыва: вертикальный layout на мобильных */
    .feedback-layout {
        flex-direction: column;
        align-items: center;
    }
    .feedback-left {
        min-width: unset;
    }
    .feedback-right {
        width: 100%;
    }
}