* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary-dark: #5a6fd8;
    --secondary: #764ba2;
    --accent: #f093fb;
    --text: #333;
    --text-light: #666;
    --background: #fff;
    --background-alt: #f8f9fa;
    --border: #e8e8e8;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 30px rgba(0,0,0,0.15);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ХЕДЕР ===== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    gap: 15px;
}

/* ЛОГОТИП */
.logo {
    display: flex;
    flex-direction: column;
    font-weight: 700;
    flex-shrink: 0;
    min-width: 120px;
}
.logo h2 {
    font-size: 20px;
    margin: 0;
    color: var(--primary);
    line-height: 1;
}
.logo span {
    font-size: 10px;
    color: var(--text-light);
    line-height: 1.2;
}

/* НАВИГАЦИЯ - КОМПАКТНАЯ */
.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    flex: 1;
    justify-content: center;
    min-width: 0;
}
.nav-links li a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.75rem;
    white-space: nowrap;
    padding: 6px 8px;
    border-radius: 4px;
    background: rgba(102, 126, 234, 0.05);
    display: block;
}
.nav-links li a:hover {
    color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* КОНТАКТЫ */
.header-contacts {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 200px;
    justify-content: flex-end;
}
.header-contacts .phone {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.8rem;
}
.callback-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 0.75rem;
}
.callback-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* БУРГЕР - скрываем на десктопе */
.burger {
    display: none;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1100px) {
    .header-container {
        gap: 10px;
        padding: 10px 15px;
    }
    .nav-links {
        gap: 6px;
    }
    .nav-links li a {
        font-size: 0.7rem;
        padding: 5px 6px;
    }
    .header-contacts {
        gap: 8px;
        min-width: 180px;
    }
    .header-contacts .phone {
        font-size: 0.75rem;
    }
    .callback-btn {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
    .logo {
        min-width: 100px;
    }
    .logo h2 {
        font-size: 18px;
    }
    .logo span {
        font-size: 9px;
    }
}

@media (max-width: 992px) {
    .header-container {
        padding: 10px 15px;
    }

    .nav-links {
        display: none;
    }

    .header-contacts {
        display: none;
    }

    .burger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        margin-left: auto;
    }

    .burger span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--text);
        margin: 2px 0;
        border-radius: 2px;
        transition: 0.3s;
    }

    /* Мобильное меню */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 0.5rem 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        gap: 0;
    }

    .nav-links.active li {
        width: 100%;
        text-align: center;
    }

    .nav-links.active a {
        display: block;
        padding: 0.8rem 1.5rem;
        border-bottom: 1px solid var(--border);
        font-size: 0.9rem;
        background: none;
    }

    .nav-links.active a:last-child {
        border-bottom: none;
    }

    /* Мобильные контакты */
    .header-contacts.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 200px);
        left: 20px;
        right: 20px;
        background: white;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        border-radius: 8px;
        gap: 0.8rem;
        align-items: center;
    }

    /* Анимация бургера */
    .burger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-4px, 5px);
    }
    
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-4px, -5px);
    }
}

@media (max-width: 768px) {
    .header-contacts.active {
        left: 15px;
        right: 15px;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 8px 12px;
    }
    
    .logo h2 {
        font-size: 16px;
    }
    
    .logo span {
        font-size: 8px;
    }
    
    .header-contacts.active .phone {
        font-size: 0.8rem;
    }
    
    .header-contacts.active .callback-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* Hero Section - ИЗМЕНЕНИЕ: Замена градиента на фото */
.hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%), 
                url('images/hero-bg.jpg') center/cover;
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.feature i {
    font-size: 1.5rem;
    color: var(--accent);
}

.cta-button {
    background: white;
    color: var(--primary);
    border: none;
    padding: 18px 35px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: var(--shadow);
    display: block;
    margin: 0 auto;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Consultation Form */
.consultation {
    background: var(--background-alt);
    padding: 80px 0;
}

.consultation-form {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.consultation-form h2 {
    color: var(--text);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.consultation-form-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Для строки с одним селектом (Нужны ли материалы) */
.form-row.single {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
}

.form-row.single select {
    text-align: center;
}

.form-row input,
.form-row select {
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--background);
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 18px;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    margin-top: 1rem;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.form-note {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Sections Common */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text);
    font-weight: 600;
}

/* Services */
.services {
    background: var(--background);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    color: var(--text);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.service-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Advantages */
.advantages {
    background: var(--background-alt);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.advantage-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.advantage-icon i {
    font-size: 1.8rem;
    color: white;
}

.advantage-card h3 {
    color: var(--text);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.advantage-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Portfolio */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid var(--border);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.portfolio-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.portfolio-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.portfolio-category {
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Квадратные миниатюры на изображениях */
.portfolio-gallery {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
    max-width: 150px;
}

.gallery-thumb {
    width: 35px;
    height: 35px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    border: 2px solid white;
    cursor: pointer;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.gallery-thumb:hover {
    transform: scale(1.1);
}

.gallery-count {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 5px;
}

.view-gallery-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-top: 10px;
    width: 100%;
}

.view-gallery-btn:hover {
    background: var(--primary);
    color: white;
}

/* Process */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.process-step {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    opacity: 0.2;
}

.process-step h3 {
    color: var(--text);
    margin-bottom: 1rem;
    font-weight: 600;
}

.process-step p {
    color: var(--text-light);
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    color: var(--text);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 0.2rem;
}

.contact-item h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item a,
.contact-item p {
    color: var(--text-light);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-form h2 {
    color: var(--text);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.message-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.message-form input,
.message-form textarea {
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--background);
}

.message-form input:focus,
.message-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.message-form button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 18px;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    width: 100%;
}

.message-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
    color: white;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-contacts p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #bdc3c7;
}

/* Consultation Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: var(--shadow-hover);
}

.consultation-modal {
    max-width: 500px;
}

.consultation-modal h2 {
    text-align: center;
    color: var(--text);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: var(--text);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modal-form .form-row.single {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
}

.modal-form .form-row.single select {
    text-align: center;
}

.modal-form input,
.modal-form select {
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--background);
    width: 100%;
}

.modal-form input:focus,
.modal-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-form .submit-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 18px;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    width: 100%;
    margin-top: 1rem;
}

.modal-form .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.modal-form .form-note {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 1rem;
    text-align: center;
}

/* Модальное окно галереи */
.gallery-modal {
    max-width: 900px;
    padding: 0;
    background: #1a1a1a;
}

.gallery-container {
    display: grid;
    grid-template-rows: 1fr auto auto;
    height: 80vh;
}

.gallery-main {
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#galleryMainImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.gallery-nav:hover {
    background: rgba(255,255,255,0.4);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #2a2a2a;
    overflow-x: auto;
}

.gallery-thumbs .gallery-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border: 2px solid transparent;
    cursor: pointer;
    border-radius: 4px;
}

.gallery-thumbs .gallery-thumb.active {
    border-color: var(--primary);
}

.gallery-info {
    padding: 20px;
    background: #2a2a2a;
    color: white;
}

.gallery-info h3 {
    margin-bottom: 10px;
    color: white;
}

.gallery-info p {
    color: #ccc;
    margin: 0;
}

/* Стили для заметки в портфолио */
.portfolio-note {
    margin: 10px 0;
    padding: 8px 12px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    text-align: center;
}

.portfolio-note p {
    margin: 0;
    color: #856404;
    font-style: italic;
}

.portfolio-note small {
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .header-container {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
        min-height: 500px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-features {
        gap: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .consultation-form {
        padding: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .advantages-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 2rem;
    }
    
    .consultation-modal {
        max-width: 90%;
    }
    
    .modal-form .form-row {
        grid-template-columns: 1fr;
    }

    /* Адаптивность для миниатюр */
    .portfolio-gallery {
        max-width: 120px;
    }
    
    .gallery-thumb {
        width: 30px;
        height: 30px;
    }

    /* Адаптивность для галереи */
    .gallery-modal {
        width: 95%;
        height: 90vh;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .gallery-thumbs .gallery-thumb {
        width: 60px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        min-height: 400px;
    }

    .hero-content h1 {
        font-size: 1.7rem;
    }

    .consultation-form {
        padding: 1.5rem;
    }

    .service-card,
    .advantage-card {
        padding: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 1.5rem;
    }
    
    .consultation-modal h2 {
        font-size: 1.3rem;
    }
    
    .close {
        right: 1rem;
        top: 1rem;
    }
    
    body {
        padding-top: 70px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Стили для кнопки закрытия галереи */
.gallery-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: white;
    background: rgba(0,0,0,0.5);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: all 0.3s ease;
}

.gallery-close:hover {
    background: rgba(0,0,0,0.8);
    transform: scale(1.1);
}

/* Адаптивность для кнопки закрытия */
@media (max-width: 768px) {
    .gallery-close {
        right: 15px;
        top: 15px;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}

/* About Section Styles */
.about {
    background: var(--background-alt);
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    color: var(--text);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-features {
    margin: 2rem 0;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.about-feature i {
    color: var(--primary);
    font-size: 1.1rem;
}

.about-feature span {
    color: var(--text);
    font-weight: 500;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-text {
    color: var(--text-light);
    font-weight: 500;
}

/* Адаптивность для About Section */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }
}

