/* ============================================
   mboty.ru - Основные стили
   Цветовая схема: #ef4444
   Адаптивный дизайн (mobile-first)
   ============================================ */

:root {
    --primary: #ef4444;
    --primary-dark: #d33131;
    --primary-light: #fecaca;
    --text-dark: #1f2937;
    --text-gray: #4b5563;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-gray: #f3f4f6;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Roboto', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.5;
}

/* ---------- ТИПОГРАФИКА ---------- */
h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 2rem; letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
p { color: var(--text-gray); margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
.text-primary { color: var(--primary); }

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.3rem; }
}

/* ---------- КОНТЕЙНЕР ---------- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
}

/* ---------- КНОПКИ ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    background: transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-large { padding: 14px 36px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn-order-header { background-color: var(--primary); color: var(--white); padding: 8px 24px; }

/* ---------- ХЕДЕР ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
}

.logo span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-list {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-link:hover { color: var(--primary); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after { width: 100%; }

.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger span {
    width: 28px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .burger { display: flex; }
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 40px 20px;
        transition: left 0.3s ease;
        gap: 30px;
    }
    .nav-menu.active { left: 0; }
    .nav-list { flex-direction: column; align-items: center; gap: 24px; }
    .burger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .burger.active span:nth-child(2) { opacity: 0; }
    .burger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
}

/* ---------- HERO ---------- */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #fff5f5 0%, var(--white) 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.stats {
    display: flex;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.hero-contacts {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.hero-contacts a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 40px;
    font-weight: 500;
}

.hero-contacts a:hover {
    background: var(--primary);
    color: var(--white);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-illustration {
    background: linear-gradient(135deg, var(--primary-light), #fff);
    border-radius: 50%;
    width: 100%;
    max-width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10rem;
    color: var(--primary);
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-title { font-size: 2.5rem; }
    .stats { justify-content: center; }
    .hero-contacts { justify-content: center; }
    .hero-buttons { justify-content: center; }
    .hero-illustration { max-width: 300px; height: 300px; font-size: 7rem; }
}

/* ---------- СЕКЦИИ ---------- */
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 3rem; font-size: 2.5rem; }

@media (max-width: 768px) {
    section { padding: 60px 0; }
    .section-title { font-size: 2rem; }
}

/* ---------- ПРЕИМУЩЕСТВА (6 блоков в 2 ряда по 3) ---------- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.benefit-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- ПОРТФОЛИО ---------- */
.portfolio {
    background: var(--bg-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.portfolio-img {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-light), #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
}

.portfolio-info { padding: 24px; }
.portfolio-category { font-size: 0.8rem; color: var(--primary); text-transform: uppercase; margin-bottom: 8px; }
.portfolio-features { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 15px; }
.portfolio-features span { background: var(--bg-light); padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; }

@media (max-width: 768px) {
    .portfolio-grid { grid-template-columns: 1fr; }
}

/* ---------- ТАРИФЫ ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid #e5e7eb;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.pricing-card.popular { border: 2px solid var(--primary); transform: scale(1.02); }

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 20px;
    border-radius: 40px;
    font-size: 0.8rem;
}

.price { font-size: 3rem; font-weight: 800; color: var(--primary); margin: 20px 0; }

.pricing-features {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features i { color: var(--primary); width: 20px; }

/* ---------- ПРОЦЕСС ---------- */
.process { background: var(--bg-light); }

.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

.step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -30px;
    top: 35px;
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.5;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

@media (max-width: 768px) {
    .process-steps { flex-direction: column; align-items: center; }
    .step:not(:last-child)::after {
        content: '↓';
        right: auto;
        bottom: -30px;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    .step { width: 100%; max-width: 280px; }
}

/* ---------- ОТЗЫВЫ ---------- */
.reviews-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0 30px;
    scroll-snap-type: x mandatory;
}

.review-card {
    min-width: 320px;
    flex-shrink: 0;
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    scroll-snap-align: start;
}

.review-stars { margin-bottom: 15px; color: #fbbf24; }
.review-author { font-weight: 700; color: var(--primary); margin-top: 15px; }

/* ---------- КОНТАКТЫ ---------- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.contact-info h3 { color: var(--primary); margin-bottom: 15px; }

.contact-list {
    list-style: none;
    margin-top: 30px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-list i {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-list a { color: var(--text-dark); font-weight: 500; }
.contact-list a:hover { color: var(--primary); }

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.form-group { margin-bottom: 20px; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-note { font-size: 0.75rem; color: var(--text-light); text-align: center; margin-top: 16px; }

@media (max-width: 768px) {
    .contact-wrapper { grid-template-columns: 1fr; gap: 30px; }
    .contact-info, .contact-form { padding: 30px; }
}

/* ---------- ПОДВАЛ ---------- */
.footer {
    background: #111827;
    color: #9ca3af;
    padding: 60px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info .logo { color: white; margin-bottom: 20px; display: inline-block; }
.footer-info p { color: #9ca3af; margin-bottom: 12px; }
.footer-info a { color: #9ca3af; }
.footer-info a:hover { color: var(--primary); }

.footer-links h4, .footer-social h4 { color: white; margin-bottom: 20px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #9ca3af; }
.footer-links a:hover { color: var(--primary); }

.social-icons {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-4px);
}

.footer-other-sites {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-other-sites p { margin-bottom: 10px; font-size: 0.85rem; }
.footer-other-sites a { color: var(--primary); }
.footer-other-sites a:hover { text-decoration: underline; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p { color: #6b7280; font-size: 0.85rem; margin: 0; }

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .social-icons {
        justify-content: center;
    }
}

/* ---------- АНИМАЦИИ ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.benefit-card, .portfolio-card, .pricing-card, .step, .review-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.benefit-card.visible, .portfolio-card.visible, .pricing-card.visible, .step.visible, .review-card.visible {
    opacity: 1;
    transform: translateY(0);
}