/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    /* Фон: изображение из static/image/image.png, покрывает весь body */
    background-image: url('/static/image/image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

/* Полупрозрачный оверлей */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    background: white;
    margin: 100px 0;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #FF6B35;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #FF6B35, #FFA726);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Hero */
.hero {
    background: transparent;
    color: white;
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero .container {
    background: rgba(255, 107, 53, 0.1);
    padding: 40px;
    border-radius: 15px;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* About */
.about-text {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px;
    opacity: 0.9;
}

.about-list {
    text-align: left;
    max-width: 800px;
    margin: 20px auto;
    padding-left: 20px;
    list-style-type: disc;
}

.about-list li {
    margin-bottom: 10px;
    font-size: 1rem;
    opacity: 0.9;
}

/* Services & Portfolio */
.services-grid, .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #FF6B35;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
}

.card.fade-in {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: cardAppear 0.6s ease-out forwards;
}

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    50% {
        opacity: 0.7;
        transform: translateY(25px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
}

.card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: #FF6B35;
    margin-bottom: 15px;
}

.card p {
    color: #666;
    line-height: 1.5;
}

.portfolio-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    margin-top: 15px;
    transition: transform 0.3s ease;
}

.card:hover .portfolio-img {
    transform: scale(1.05);
}

/* Contact */
#contact .container > p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    text-align: center;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #FF6B35;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.privacy-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.privacy-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
}

.contact-info {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1rem;
}

.contact-info a {
    color: #FF6B35;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #FFA726;
}

/* Contacts */
#contacts .contact-details {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.contact-item {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-item h3 {
    color: #FF6B35;
    margin-bottom: 10px;
}

.contact-item p, .contact-item a {
    color: #666;
    text-decoration: none;
}

.contact-item a:hover {
    color: #FF6B35;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: white;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero { padding: 80px 0; }
    .section { padding: 50px 0; margin: 20px 0; }
    .section-title { font-size: 2rem; }
    .services-grid, .portfolio-grid { gap: 20px; }
    .card { padding: 20px; }
    #contacts .contact-details { flex-direction: column; }
}