/* Custom CSS for РемонтПро website */
/* *{
    border: 1px solid red;
} */
/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation */
.nav-extended {
    background: var(--gradient, linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%));
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.brand-logo {
    font-weight: 500;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 5px;
    vertical-align: middle;
    display: inline-block;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('https://images.unsplash.com/photo-1586023492125-27b2c045efd7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    z-index: 2;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-buttons .btn {
    margin: 0 10px;
    padding: 0 2rem;
    height: 3.5rem;
    line-height: 3.5rem;
    font-size: 1.1rem;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.hero-buttons .btn.orange {
    background: var(--gradient, linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%));
}

.hero-buttons .btn.white {
    background: white;
    color: #dc2743;
    border: 2px solid #dc2743;
}

.hero-buttons .btn.white:hover {
    background: #dc2743;
    color: white;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Section Styles */
.section {
    padding: 2rem 0;
}

.section:first-of-type {
    padding-top: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #333;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

/* Service Cards */
.service-card {
    height: 100%;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-card .card-content {
    padding: 2rem;
}

.service-card i {
    margin-bottom: 1rem;
    background: var(--gradient, linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card h5 {
    font-weight: 500;
    margin-bottom: 1rem;
    color: #333;
}

/* Gallery Styles */
.gallery-filter {
    margin-bottom: 2rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-btn {
    margin: 5px;
    border-radius: 25px;
    background: #fff;
    color: #666;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    min-width: 120px;
    white-space: nowrap;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--gradient, linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%));
    color: white;
    border-color: transparent;
}

/* Gallery - оптимизация загрузки изображений */
.gallery-item img {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.gallery-item img.loaded {
    opacity: 1;
}

.image-container {
    background-color: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f5f5f5 0%, #e0e0e0 50%, #f5f5f5 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

.image-container img {
    position: relative;
    z-index: 2;
}

.image-container.loaded::before {
    display: none;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.gallery-grid {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.gallery-item-wrapper {
    flex: 0 0 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.gallery-item {
    margin-bottom: 1rem;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.gallery-item .image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 100%;
    height: 250px;
    position: relative;
}

.gallery-item img {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.gallery-item:hover .image-container {
    transform: scale(1.02);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-content {
    padding: 1rem;
    background: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gallery-item h6 {
    margin: 0;
    font-weight: 500;
    color: #333;
}

.gallery-item p {
    margin: 0.5rem 0 0 0;
    color: #666;
    font-size: 0.9rem;
}

/* About Section */
.stat-item h3 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 700;
    background: var(--gradient, linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    margin: 0.5rem 0 0 0;
    color: #666;
    font-weight: 500;
}

.collection-item {
    border: none;
    padding: 1rem 0;
}

.collection-item i {
    margin-right: 1rem;
    background: var(--gradient, linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Contact Section */
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.contact-item i {
    margin-right: 1rem;
    font-size: 1.5rem;
    background: var(--gradient, linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-item span {
    font-size: 1.1rem;
}

/* Form Styles */
.input-field {
    margin-bottom: 1.5rem;
}

.input-field input:focus + label,
.input-field textarea:focus + label {
    color: #dc2743;
}

.input-field input:focus,
.input-field textarea:focus {
    border-bottom: 1px solid #dc2743;
    box-shadow: 0 1px 0 0 #dc2743;
}

/* Modal Styles */
.modal {
    border-radius: 10px;
}

.modal-content {
    padding: 2rem;
}

.modal-content img {
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Gallery Item Styles */
.image-count {
    display: inline-block;
    background: var(--gradient, linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%));
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Contact Form Button */
.contact-submit-btn {
    background: var(--gradient, linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%)) !important;
    color: white !important;
    border: none;
}

.contact-submit-btn:hover {
    background: var(--gradient, linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%)) !important;
    opacity: 0.9;
}

/* Slider Styles */
.slider-container {
    position: relative;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
}

.slide {
    flex: 0 0 auto;
    height: 100%;
}

.slide-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.slide img {
    border-radius: 0;
    margin: 0;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.slider-btn {
    pointer-events: auto;
    background: var(--gradient, linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%));
    color: white;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--gradient, linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%));
    transform: scale(1.1);
    opacity: 0.9;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--gradient, linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%));
    transform: scale(1.2);
}

.dot:hover {
    background: var(--gradient, linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%));
}

/* Responsive Slider */
@media only screen and (max-width: 768px) {
    .slider-controls {
        padding: 0 0.5rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .slider-btn i {
        font-size: 1.2rem;
    }
}

/* Footer */
.page-footer {
    margin-top: 0;
    background: var(--gradient, linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%));
}

.page-footer h5 {
    font-weight: 500;
}

.page-footer ul li {
    display: inline-block;
    margin-right: 1rem;
}

.footer-copyright .row {
    margin-bottom: 0;
}

.footer-copyright a:hover {
    text-decoration: underline !important;
}

/* Hide Materialize auto-generated menu button */
.sidenav-trigger {
    display: block !important;
}

@media only screen and (min-width: 993px) {
    .sidenav-trigger {
        display: none !important;
    }
}

/* Mobile Navigation Styles */
.mobile-nav-header {
    background: var(--gradient, linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%));
    padding: 25px 20px;
    margin: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-logo-img {
    height: 45px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.mobile-logo-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.mobile-nav-link {
    display: flex !important;
    align-items: center;
    padding: 18px 25px !important;
    color: #333 !important;
    font-size: 1.15rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.mobile-nav-link:hover {
    background-color: #f8f9fa !important;
    color: var(--primary-color, #f09433) !important;
    transform: translateX(5px);
}

.mobile-nav-link:active {
    background-color: #e9ecef !important;
    transform: translateX(2px);
}

.mobile-nav-link .material-icons {
    margin-right: 18px;
    color: var(--primary-color, #f09433);
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover .material-icons {
    transform: scale(1.1);
}

.sidenav .divider {
    margin: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
}

/* Улучшенные стили для sidenav */
.sidenav {
    background-color: #fff !important;
    box-shadow: 2px 0 10px rgba(0,0,0,0.15) !important;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidenav.sidenav-fixed {
    transform: translateX(0);
}

.sidenav li {
    margin: 0 !important;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.4s ease forwards;
}

.sidenav li:nth-child(1) { animation-delay: 0.1s; }
.sidenav li:nth-child(2) { animation-delay: 0.15s; }
.sidenav li:nth-child(3) { animation-delay: 0.2s; }
.sidenav li:nth-child(4) { animation-delay: 0.25s; }
.sidenav li:nth-child(5) { animation-delay: 0.3s; }
.sidenav li:nth-child(6) { animation-delay: 0.35s; }
.sidenav li:nth-child(7) { animation-delay: 0.4s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidenav li:last-child .mobile-nav-link {
    border-bottom: none;
}

/* Анимация для мобильного логотипа */
.mobile-logo {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Buttons */
.btn-group {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
    flex-wrap: nowrap;
}

.btn-group .btn,
.btn-group .btn-small {
    flex: 0 0 auto;
    min-width: 35px;
    text-align: center;
    padding: 6px 8px;
    font-size: 0.8rem;
}

.btn-group form {
    display: inline-block;
    margin: 0;
}

.btn-group select {
    padding: 4px 6px;
    font-size: 0.8rem;
    margin: 0 2px;
    min-width: 80px;
}

@media only screen and (max-width: 768px) {
    .btn-group {
        flex-direction: row;
        gap: 3px;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    
    .btn-group .btn,
    .btn-group .btn-small {
        flex: 0 0 auto;
        min-width: 30px;
        padding: 4px 6px;
        font-size: 0.7rem;
    }
    
    .btn-group select {
        min-width: 70px;
        font-size: 0.7rem;
        padding: 3px 4px;
    }
}

@media only screen and (max-width: 480px) {
    .btn-group {
        flex-direction: row;
        gap: 2px;
        flex-wrap: nowrap;
    }
    
    .btn-group .btn,
    .btn-group .btn-small {
        padding: 3px 4px;
        font-size: 0.65rem;
        min-width: 25px;
    }
    
    .btn-group select {
        min-width: 60px;
        font-size: 0.65rem;
        padding: 2px 3px;
    }
}

/* Responsive Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 20px;
}

.table-responsive table {
    width: 100%;
    min-width: 600px; /* Минимальная ширина для горизонтального скролла */
    border-collapse: collapse;
}

.table-responsive th,
.table-responsive td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}

.table-responsive th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.table-responsive tr:hover {
    background-color: #f9f9f9;
}

/* Mobile Card Layout for Tables */
@media only screen and (max-width: 768px) {
    .table-responsive {
        overflow: visible !important;
        margin: 0 !important;
    }
    
    .table-responsive table {
        min-width: auto !important;
        width: 100% !important;
    }
    
    .table-responsive table,
    .table-responsive thead,
    .table-responsive tbody,
    .table-responsive th,
    .table-responsive td,
    .table-responsive tr {
        display: block !important;
    }
    
    .table-responsive thead tr {
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
    }
    
    .table-responsive tr {
        border: 1px solid #ddd !important;
        margin-bottom: 15px !important;
        padding: 15px !important;
        background: white !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
        position: relative !important;
        width: 100% !important;
    }
    
    .table-responsive td {
        border: none !important;
        position: relative !important;
        padding: 8px 0 8px 50% !important;
        white-space: normal !important;
        text-align: left !important;
        min-height: 40px !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    .table-responsive td:before {
        content: attr(data-label) !important;
        position: absolute !important;
        left: 6px !important;
        width: 45% !important;
        padding-right: 10px !important;
        white-space: nowrap !important;
        font-weight: 600 !important;
        color: #666 !important;
        font-size: 0.9rem !important;
    }
    
    /* Специальные стили для изображений */
    .table-responsive td[data-label="Изображение"] {
        padding-left: 15px !important;
    }
    
    .table-responsive td[data-label="Изображение"]:before {
        display: none !important;
    }
    
    /* Стили для кнопок действий */
    .table-responsive td[data-label="Действия"] {
        padding-left: 15px !important;
    }
    
    .table-responsive td[data-label="Действия"]:before {
        display: none !important;
    }
    
    .table-responsive .btn-group {
        display: flex !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
        width: 100% !important;
    }
    
    .table-responsive .btn {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
        min-width: auto !important;
        flex: 1 !important;
    }
}

@media only screen and (max-width: 480px) {
    .table-responsive tr {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .table-responsive td {
        padding: 6px 0 6px 50% !important;
        font-size: 0.85rem;
    }
    
    .table-responsive td:before {
        font-size: 0.8rem;
    }
    
    .table-responsive .btn {
        padding: 6px 8px;
        font-size: 0.75rem;
    }
    
    .table-responsive .btn-group {
        gap: 4px;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
    }
    
    .table-responsive .btn {
        padding: 4px 8px !important;
        font-size: 0.7rem !important;
        height: 28px !important;
        line-height: 20px !important;
        flex: none !important;
    }
    
    .table-responsive .btn i {
        font-size: 14px !important;
    }
    
    /* Общие стили для всех кнопок в мобильной версии */
    .btn, .btn-small, .btn-large {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
        height: 32px !important;
        line-height: 20px !important;
        margin: 2px !important;
    }
    
    .btn i {
        font-size: 16px !important;
    }
    
    /* Карточки */
    .card {
        margin-bottom: 15px !important;
    }
    
    .card .card-content {
        padding: 15px !important;
    }
    
    .card .card-title {
        font-size: 1.2rem !important;
        margin-bottom: 10px !important;
    }
    
    .card .card-action {
        padding: 10px 15px !important;
    }
    
    .card .card-action .btn {
        margin: 2px !important;
        padding: 4px 8px !important;
        font-size: 0.7rem !important;
    }
    
    /* Дашборд - статистические карточки */
    .stats-card {
        padding: 15px !important;
        margin-bottom: 10px !important;
    }
    
    .stats-card h3 {
        font-size: 2rem !important;
        margin: 0 !important;
    }
    
    .stats-card p {
        font-size: 0.9rem !important;
        margin: 5px 0 0 0 !important;
    }
    
    /* Коллекции в карточках */
    .collection {
        margin: 0 !important;
    }
    
    .collection-item {
        padding: 10px 15px !important;
        font-size: 0.9rem !important;
        min-height: auto !important;
    }
    
    .collection-item i {
        font-size: 18px !important;
        margin-right: 10px !important;
    }
    
    /* Строки на мобильных */
    .row {
        margin-left: -5px !important;
        margin-right: -5px !important;
    }
    
    .col {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    /* Кнопки удаления изображений */
    .btn-floating {
        position: relative !important;
        z-index: 999999 !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.3) !important;
    }
    
    .btn-floating:hover {
        transform: scale(1.1) !important;
        transition: transform 0.2s ease !important;
    }
    
    .card-image .card-title {
        background: rgba(0,0,0,0.5) !important;
        padding: 5px !important;
        border-radius: 4px !important;
    }
    
    .card-image .btn-floating {
        margin: 0 !important;
        width: 32px !important;
        height: 32px !important;
        line-height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .card-image .btn-floating i {
        font-size: 18px !important;
        line-height: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Общие стили для всех кнопок с иконками */
    .btn i, .btn-floating i, .btn-small i, .btn-large i {
        line-height: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        vertical-align: middle !important;
    }
    
    .btn, .btn-floating, .btn-small, .btn-large {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Button Groups */
.btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-group .btn {
    margin: 0;
    flex-shrink: 0;
}

.btn-group form {
    display: inline-block;
    margin: 0;
}

.btn-group select {
    margin: 0;
    height: 32px;
    padding: 0 8px;
    font-size: 0.8rem;
}

/* Responsive Design */
@media only screen and (max-width: 768px) {
    /* Навигация */
    .logo-img {
        height: 35px;
    }
    
    .brand-logo {
        font-size: 1.3rem;
        justify-content: center;
    }
    
    /* Мобильное меню */
    .mobile-nav-header {
        padding: 20px 15px;
    }
    
    .mobile-logo-img {
        height: 40px;
    }
    
    .mobile-logo-text {
        font-size: 1.3rem;
    }
    
    .mobile-nav-link {
        padding: 15px 20px !important;
        font-size: 1.1rem;
    }
    
    .mobile-nav-link .material-icons {
        font-size: 1.4rem;
        margin-right: 15px;
    }
    
    /* Hero секция */
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }
    
    .hero-buttons .btn {
        display: block;
        margin: 10px auto;
        width: 85%;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    /* Секции */
    .section-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    /* Галерея */
    .gallery-item-wrapper {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
        min-width: 200px;
        display: flex;
        justify-content: center;
    }
    
    .gallery-item .image-container {
        height: 180px;
    }
    
    .gallery-item-content h6 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .gallery-item-content p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .filter-btn {
        margin: 0;
        width: 90%;
        max-width: 250px;
        display: block;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    /* Карточки услуг */
    .service-card {
        margin-bottom: 20px;
    }
    
    .service-card .card-content {
        padding: 20px 15px;
    }
    
    .service-card h5 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .service-card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .service-card i {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    /* Контакты */
    .contact-item {
        margin-bottom: 15px;
        padding: 10px 0;
    }
    
    .contact-item .material-icons {
        font-size: 1.4rem;
        margin-right: 12px;
    }
    
    .contact-item span {
        font-size: 1rem;
    }
    
    /* Форма */
    .input-field {
        margin-bottom: 20px;
    }
    
    .input-field label {
        font-size: 1rem;
    }
    
    .input-field input,
    .input-field textarea {
        font-size: 1rem;
        padding: 12px 0;
    }
    
    .contact-submit-btn {
        width: 100%;
        padding: 15px;
        font-size: 1.1rem;
        margin-top: 10px;
    }
}

@media only screen and (max-width: 480px) {
    /* Навигация */
    .logo-img {
        height: 30px;
    }
    
    .brand-logo {
        font-size: 1.1rem;
    }
    
    /* Мобильное меню */
    .mobile-nav-header {
        padding: 15px 12px;
    }
    
    .mobile-logo-img {
        height: 35px;
    }
    
    .mobile-logo-text {
        font-size: 1.2rem;
    }
    
    .mobile-nav-link {
        padding: 12px 15px !important;
        font-size: 1rem;
    }
    
    .mobile-nav-link .material-icons {
        font-size: 1.3rem;
        margin-right: 12px;
    }
    
    /* Hero секция */
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .hero-buttons .btn {
        width: 90%;
        padding: 10px 15px;
        font-size: 0.95rem;
    }
    
    /* Секции */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    /* Галерея */
    .gallery-item-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
        min-width: 100%;
    }
    
    .gallery-item .image-container {
        height: 160px;
    }
    
    .filter-btn {
        width: 95%;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    /* Карточки услуг */
    .service-card .card-content {
        padding: 15px 12px;
    }
    
    .service-card h5 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .service-card i {
        font-size: 2.2rem;
    }
    
    /* Контакты */
    .contact-item {
        margin-bottom: 12px;
        padding: 8px 0;
    }
    
    .contact-item .material-icons {
        font-size: 1.3rem;
        margin-right: 10px;
    }
    
    .contact-item span {
        font-size: 0.95rem;
    }
    
    /* Форма */
    .input-field {
        margin-bottom: 15px;
    }
    
    .input-field label {
        font-size: 0.95rem;
    }
    
    .input-field input,
    .input-field textarea {
        font-size: 0.95rem;
        padding: 10px 0;
    }
    
    .contact-submit-btn {
        padding: 12px;
        font-size: 1rem;
    }
    
    .section {
        padding: 1.5rem 0;
    }
    
    .section:first-of-type {
        padding-top: 0.5rem;
    }
    
    .gallery-item-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
        min-width: 250px;
        display: flex;
        justify-content: center;
    }
    
    .gallery-item .image-container {
        height: 180px;
    }
    
    .service-card .card-content {
        padding: 1.5rem;
    }
    
    .footer-copyright .right-align {
        text-align: center !important;
        margin-top: 0.5rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff6f00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient, linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient, linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%));
    opacity: 0.8;
}
