﻿:root {
    /* Colors - Light Theme */
    --bg-color: #f8fafc;
    --bg-secondary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --primary-gradient-hover: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    
    /* Accents */
    --accent: #3b82f6;
    --accent-light: rgba(59, 130, 246, 0.1);
    
    /* Layout */
    --container-width: 1200px;
    --nav-height: 80px;
    
    /* Shadows & Glassmorphism */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    
    /* Typography */
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    /* Защита от выделения текста */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

img {
    /* Защита от перетаскивания картинок на рабочий стол */
    -webkit-user-drag: none;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Typography Utilities */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-secondary);
}

.grid {
    display: grid;
    gap: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-primary:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent-light);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    color: white;
    backdrop-filter: blur(4px);
}

.btn-outline-light:hover {
    background: white;
    color: var(--text-primary);
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 4px;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 6px 12px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: white;
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite alternate;
}

.shape-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: #3b82f6;
}

.shape-2 {
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #8b5cf6;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

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

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.price-tag {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Hero Mockup */
.mockup-card {
    padding: 20px;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.mockup-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.mockup-body {
    height: 300px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mockup-skeleton {
    width: 100%;
    height: 120px;
    background: #e2e8f0;
    border-radius: 8px;
}

.mockup-skeleton-text {
    width: 100%;
    height: 20px;
    background: #e2e8f0;
    border-radius: 4px;
}

.mockup-skeleton-text.short {
    width: 60%;
}

/* Sections */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Services */
.services-grid {
    grid-template-columns: repeat(3, 1fr);
}

.service-card {
    padding: 40px 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
}

/* Portfolio */
.portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.portfolio-item {
    border-radius: 24px;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    padding: 24px;
}

.portfolio-info h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.portfolio-info p {
    color: var(--text-secondary);
}

.portfolio-more {
    text-align: center;
    margin-top: 50px;
}

/* Advantages */
.advantages-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.adv-card {
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.adv-card .icon-wrapper {
    margin: 0 auto 24px;
    background: var(--primary-gradient);
    color: white;
}

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

/* Order Form */
.order-container {
    display: flex;
    justify-content: center;
}

.order-content {
    max-width: 600px;
    width: 100%;
    padding: 50px;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input {
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.8);
    font-size: 1rem;
    font-family: var(--font-main);
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
}

.form-message {
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}
.form-message.success { color: #10b981; }
.form-message.error { color: #ef4444; }

/* Contact */
.contact-container {
    display: flex;
    justify-content: center;
}

.contact-info {
    max-width: 800px;
    width: 100%;
    padding: 60px;
    text-align: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    /* Разрешаем выделение текста контактов (чтобы клиенты могли скопировать номер) */
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.contact-item svg {
    color: var(--accent);
    width: 32px;
    height: 32px;
}

.contact-item h4 {
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.contact-item a {
    color: var(--text-secondary);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--accent);
}

/* SEO Block */
.seo-block {
    padding: 60px 0 40px;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.seo-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
}
.seo-content h2 {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 600;
}
.seo-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    opacity: 0.8;
    line-height: 1.7;
}

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-question {
    padding: 20px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}
.faq-question span {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent);
}
.faq-question:hover {
    color: var(--accent);
}
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    color: var(--text-secondary);
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active {
    box-shadow: var(--shadow-md);
}
.faq-item.active .faq-question {
    color: var(--accent);
}
.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

/* Footer */
footer {
    background: white;
    padding: 40px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block !important;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        gap: 15px;
    }
    
    .nav-links.mobile-open {
        display: flex;
    }
    
    .nav-links a {
        padding: 10px 0;
        font-size: 1.1rem;
    }
    
    .nav-actions {
        gap: 10px;
    }
    
    .nav-actions .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .logo img {
        height: 35px !important;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .services-grid, .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-details {
        flex-direction: column;
        gap: 30px;
    }
    
    .contact-info {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 10px;
    }

    .nav-actions {
        gap: 6px;
    }
    
    .lang-switch {
        padding: 2px;
    }

    .lang-btn {
        padding: 4px 6px;
        font-size: 0.75rem;
    }
    
    .nav-actions .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .logo img {
        height: 25px !important;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Floating Action Buttons */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
}

.fab-btn.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.fab-btn:hover {
    transform: translateY(-5px) scale(1.05);
    color: white;
}

.fab-up {
    background: var(--primary-gradient);
}
.fab-up:hover {
    box-shadow: 0 15px 35px rgba(79, 172, 254, 0.4);
}

@media (max-width: 768px) {
    .fab-container {
        bottom: 20px;
        right: 20px;
    }
    .fab-btn {
        width: 48px;
        height: 48px;
    }
}
