/* ============================================
   tboty.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), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius-sm: 8px;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --transition: all 0.3s ease;
}

/* ---------- СБРОС ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* ---------- ТИПОГРАФИКА ---------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.25rem;
    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);
}

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

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

/* ---------- КНОПКИ ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
    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);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

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

.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;
}

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

/* ---------- ХЕДЕР ---------- */
.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;
    letter-spacing: -0.02em;
    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;
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
        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%);
    overflow: hidden;
}

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

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

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

/* Статистика */
.stats {
    display: flex;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: left;
}

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

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

/* Контакты в hero */
.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;
    color: var(--text-dark);
    transition: var(--transition);
}

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

.hero-contacts i {
    font-size: 1rem;
}

.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;
    margin: 0 auto;
}

.hero-illustration i {
    font-size: 12rem;
    color: var(--primary);
    opacity: 0.9;
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .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;
    }
    
    .hero-illustration i {
        font-size: 8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* ---------- СЕКЦИИ ---------- */
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;
    }
}

/* ---------- ПРЕИМУЩЕСТВА ---------- */
.benefits {
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 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;
}

.benefit-card h3 {
    margin-bottom: 12px;
}

.benefit-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ---------- ПОРТФОЛИО ---------- */
.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: 200px;
    background: linear-gradient(135deg, var(--primary-light), #fff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-img i {
    font-size: 5rem;
    color: var(--primary);
}

.portfolio-info {
    padding: 24px;
}

.portfolio-category {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.portfolio-info h3 {
    margin-bottom: 12px;
}

.portfolio-info p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.portfolio-features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.portfolio-features span {
    background: var(--bg-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-gray);
}

@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;
    align-items: stretch;
}

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

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

.pricing-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.02);
}

.pricing-card.popular:hover {
    transform: scale(1.02) translateY(-8px);
}

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

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

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

.price .currency {
    font-size: 1.2rem;
    font-weight: 400;
}

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

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

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

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-8px);
    }
}

/* ---------- ПРОЦЕСС РАБОТЫ ---------- */
.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: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h4 {
    margin-bottom: 10px;
}

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

@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 {
    background: var(--white);
}

.reviews-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0 30px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

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

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.review-stars {
    margin-bottom: 20px;
    color: #fbbf24;
}

.review-card p {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.review-author {
    font-weight: 700;
    color: var(--primary);
}

@media (max-width: 768px) {
    .review-card {
        min-width: 280px;
    }
}

/* ---------- КОНТАКТЫ ---------- */
.contact {
    background: linear-gradient(135deg, var(--bg-light), var(--white));
}

.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 {
    margin-bottom: 16px;
    color: var(--primary);
}

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

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-list li 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;
    flex-shrink: 0;
}

.contact-list li strong {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

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

.contact-list li 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;
    transition: var(--transition);
    font-family: inherit;
}

.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-group textarea {
    resize: vertical;
}

.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: var(--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: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #9ca3af;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.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%;
    transition: var(--transition);
}

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

.social-icons i {
    font-size: 1.2rem;
    color: var(--white);
}

.footer-legal a {
    color: #9ca3af;
    font-size: 0.85rem;
}

.footer-legal a:hover {
    color: var(--primary);
}

.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;
    }
    
    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .footer-links li {
        margin-bottom: 0;
    }
}

/* ---------- АНИМАЦИИ ---------- */
.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);
}

/* ---------- СТРАНИЦА 404 ---------- */
.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-light), var(--white));
    padding: 40px;
}

.error-page h1 {
    font-size: 8rem;
    color: var(--primary);
    margin-bottom: 0;
}

.error-page h2 {
    margin-bottom: 20px;
}

.error-page p {
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .error-page h1 {
        font-size: 5rem;
    }
}
/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ ИКОНКИ FONT AWESOME 6
   Добавьте этот блок в конец вашего style.css
   ============================================ */

/* Иконки для портфолио */
.fa-comment-dots:before { content: "\f4ad"; }
.fa-bus:before { content: "\f207"; }
.fa-brain:before { content: "\f5dc"; }
.fa-shopping-cart:before { content: "\f07a"; }
.fa-chart-line:before { content: "\f201"; }
.fa-graduation-cap:before { content: "\f19d"; }
.fa-check-double:before { content: "\f560"; }

/* Иконки для преимуществ */
.fa-rocket:before { content: "\f135"; }
.fa-headset:before { content: "\f590"; }
.fa-cubes:before { content: "\f1b3"; }
.fa-plug:before { content: "\f1e6"; }
.fa-tag:before { content: "\f02b"; }

/* Иконки для тарифов */
.fa-check:before { content: "\f00c"; }
.fa-clock:before { content: "\f017"; }

/* Иконки для контактов */
.fa-phone-alt:before { content: "\f879"; }
.fa-envelope:before { content: "\f0e0"; }
.fa-telegram:before { content: "\f2c6"; }
.fa-vk:before { content: "\f189"; }
.fa-odnoklassniki:before { content: "\f263"; }
.fa-whatsapp:before { content: "\f232"; }
.fa-phone:before { content: "\f095"; }

/* Иконки для звезд отзывов */
.fa-star:before { content: "\f005"; }

/* Иконка робота */
.fa-robot:before { content: "\f544"; }