/* static/css/main.css */

/* === GLOBAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* === HERO SECTION === */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* УДАЛЯЕМ ЭТОТ БЛОК - больше не затемняем баннер
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}
*/

/* === FORM STYLES === */
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #EC6608;
    box-shadow: 0 0 0 3px rgba(236, 102, 8, 0.1);
}

.form-control::placeholder {
    color: #9ca3af;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: #EC6608;
    color: white;
    border: 2px solid #EC6608;
}

.btn-primary:hover {
    background: #d55a07;
    border-color: #d55a07;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(236, 102, 8, 0.3);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Hero кнопки специальные стили */
.hero-btn-primary {
    background: #EC6608;
    color: white;
    border: 2px solid #EC6608;
    padding: 20px 40px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-width: 250px;
}

.hero-btn-primary:hover {
    background: #d55a07;
    border-color: #d55a07;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(236, 102, 8, 0.4);
}

.hero-btn-secondary {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 20px 40px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-width: 250px;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* === SERVICE CARDS === */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(236, 102, 8, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: #EC6608;
}

.service-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1f2937;
}

.service-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #EC6608;
    margin-bottom: 1rem;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in-up-delay-1 {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.fade-in-up-delay-2 {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.fade-in-up-delay-3 {
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

/* === SECTION SPACING === */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    color: #1f2937;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* === RESPONSIVE HELPERS === */
.text-responsive {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.title-responsive {
    font-size: clamp(2rem, 5vw, 3rem);
}

/* === CONTACT SECTION === */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #EC6608;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.25rem;
}

.contact-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.contact-content p {
    color: #d1d5db;
    margin: 0;
}

.contact-content a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-content a:hover {
    color: white;
}

/* === UTILITIES === */
.shadow-custom {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.shadow-custom-hover:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #EC6608 0%, #d55a07 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #EC6608 0%, #d55a07 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .contact-item {
        margin-bottom: 1.5rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon i {
        font-size: 1rem;
    }
}

/* === PERFORMANCE OPTIMIZATIONS === */
.lazy-load {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.lazy-load.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* === ACCESSIBILITY === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* === FOCUS STYLES === */
.btn:focus,
.form-control:focus {
    outline: 2px solid #EC6608;
    outline-offset: 2px;
}

/* === PRINT STYLES === */
@media print {
    .hero-section,
    .contact-section {
        display: none;
    }
    
    .service-card {
        break-inside: avoid;
    }
}

/* === HERO SECTION IMPROVEMENTS === */
.hero-section .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/baner.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-section .hero-content {
    position: relative;
    z-index: 2;
}

/* Бирюзовые акценты */
.accent-teal {
    color: #4db6ac;
}

.bg-accent-teal {
    background-color: #4db6ac;
}

.border-accent-teal {
    border-color: #4db6ac;
}

/* Декоративные элементы */
.hero-decoration {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-decoration::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    width: 120%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(236, 102, 8, 0.1) 25%, transparent 50%, rgba(75, 139, 132, 0.1) 75%, transparent 100%);
    transform: skewX(-15deg);
}

/* === RESPONSIVE HERO TITLE === */
@media (max-width: 640px) {
    .hero-section h1 {
        font-size: 2rem !important; /* 32px */
        line-height: 1.1 !important;
        margin-bottom: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.75rem !important; /* 28px */
    }
    
    .hero-section .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (max-width: 360px) {
    .hero-section h1 {
        font-size: 1.5rem !important; /* 24px */
    }
}