/**
 * Яркий Город - Главные стили
 * 
 * Современный, чистый дизайн с фокусом на UX
 */

/* ===== Variables ===== */
:root {
    /* Colors */
    --primary-color: #F8D12C;
    --primary-dark: #E5BE1F;
    --secondary-color: #2C3E50;
    --text-color: #2C3E50;
    --text-light: #6C757D;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --black: #000000;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --font-size-large: 18px;
    --font-size-small: 14px;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-max-width: 1320px;
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:focus,
*:focus-visible {
    outline: none !important;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

/* Убираем все синие borders и outlines */
button:focus,
button:active,
button:focus-visible,
a:focus,
a:active,
a:focus-visible,
input:focus,
input:active,
input:focus-visible,
textarea:focus,
textarea:active,
textarea:focus-visible,
select:focus,
select:active,
select:focus-visible,
.form-control:focus,
.form-control:active,
.form-control:focus-visible {
    border-color: var(--black) !important;
    outline: none !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25) !important;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 102px; /* Отступ для фиксированной шапки */
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* ===== Buttons ===== */
.btn {
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 8px;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Убираем синий цвет при наведении от Bootstrap */
.btn:hover,
.btn:focus:hover,
.btn:active:hover,
.btn.btn-primary:hover,
.btn.btn-outline-primary:hover,
.btn.btn-secondary:hover,
.btn.btn-success:hover,
.btn.btn-danger:hover,
.btn.btn-warning:hover,
.btn.btn-info:hover,
.btn.btn-light:hover,
.btn.btn-dark:hover {
    --bs-btn-hover-border-color: transparent !important;
    border-color: transparent !important;
}

/* Переопределяем для конкретных типов кнопок */
.btn-primary:hover {
    --bs-btn-hover-bg: var(--primary-dark) !important;
    --bs-btn-hover-border-color: var(--primary-dark) !important;
    --bs-btn-hover-color: var(--black) !important;
    border-color: var(--primary-dark) !important;
}

.btn-outline-primary:hover {
    --bs-btn-hover-bg: var(--primary-dark) !important;
    --bs-btn-hover-border-color: var(--primary-dark) !important;
    --bs-btn-hover-color: var(--black) !important;
    border-color: var(--primary-dark) !important;
}

.btn:focus,
.btn:active,
.btn:focus-visible {
    background-color: var(--black) !important;
    color: var(--white) !important;
    border-color: var(--black) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25) !important;
    outline: none !important;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--black);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: var(--black) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:focus,
.btn-primary:active,
.btn-primary:focus-visible {
    background-color: var(--black) !important;
    color: var(--white) !important;
    border-color: var(--black) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25) !important;
}

.btn-outline-primary {
    background-color: var(--primary-color);
    color: var(--black);
    border: 2px solid var(--primary-color);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(248, 209, 44, 0.3);
}

.btn-outline-primary:hover {
    background-color: var(--primary-dark) !important;
    color: var(--black) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(248, 209, 44, 0.5);
}

.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary:focus-visible {
    background-color: var(--black) !important;
    color: var(--white) !important;
    border-color: var(--black) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25) !important;
}

/* Clear Filter Button */
.btn-clear-filter {
    background-color: var(--black) !important;
    color: var(--white) !important;
    border-color: var(--black) !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-clear-filter:hover {
    background-color: #333 !important;
    color: var(--white) !important;
    border-color: #333 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.btn-clear-filter:focus,
.btn-clear-filter:active,
.btn-clear-filter:focus-visible {
    background-color: var(--black) !important;
    color: var(--white) !important;
    border-color: var(--black) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.5) !important;
}

.btn-clear-filter i {
    color: var(--white);
    font-size: 1.1em;
    margin-right: 6px;
}

/* ===== Header ===== */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-base);
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    padding: 0;
}

.logo-image {
    height: 70px;
    width: auto;
    transition: var(--transition-base);
}

.logo-image:hover {
    opacity: 0.8;
}


.logo {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    letter-spacing: 2px;
}

.logo-text-accent {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-item {
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-color);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-size: var(--font-size-small);
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

.contact-link:hover {
    color: var(--primary-color);
}

.btn-order {
    font-size: var(--font-size-small);
    padding: 8px 20px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-order:focus,
.btn-order:active,
.btn-order:focus-visible {
    background-color: var(--black) !important;
    color: var(--white) !important;
    border-color: var(--black) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25) !important;
}

/* ===== Hero Slider ===== */
.hero-slider {
    position: relative;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
    padding: 0;
}

.hero-slide {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero-overlay {
    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.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 700px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

/* Позиционирование кнопок навигации и пагинации для слайдера */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    position: absolute;
    top: auto;
    bottom: 60px;
    width: 44px;
    height: 44px;
    margin-top: 0;
    z-index: 10;
}

.hero-swiper .swiper-button-prev {
    left: 50%;
    transform: translateX(-50px);
}

.hero-swiper .swiper-button-next {
    right: 50%;
    transform: translateX(50px);
}

.hero-swiper .swiper-pagination {
    bottom: 20px;
}

/* ===== Sections ===== */
section {
    padding: var(--section-padding);
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--text-light);
    font-size: var(--font-size-large);
    margin-top: 1.5rem;
}

/* ===== Services Section ===== */
.services-section {
    background-color: var(--bg-light);
}

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    height: 100%;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.service-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

/* ===== About Section ===== */
.about-section {
    padding: 5rem 0;
}

.about-content {
    font-size: var(--font-size-large);
    color: var(--text-color);
    line-height: 1.8;
}

.about-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

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

/* ===== Portfolio Section ===== */
.portfolio-section {
    background-color: var(--white);
    padding: 0px 0;
}

/* Блок альбома портфолио */
.portfolio-album-block {
    margin-bottom: 80px;
}

.portfolio-album-block:last-child {
    margin-bottom: 0;
}

/* Левая колонка: Текст */
.portfolio-album-content {
    padding-right: 2rem;
}

.portfolio-album-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.portfolio-album-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Правая колонка: Сетка работ */
.portfolio-album-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 1rem;
    height: 100%;
    min-height: auto;
}

.portfolio-album-grid .portfolio-album-item {
    height: 100%;
    min-height: 250px;
}

.portfolio-album-grid .portfolio-album-item img {
    height: 100%;
    object-fit: cover;
}

/* Сетка для списка портфолио без фильтра (6 работ: 2x3) - фото поменьше */
.portfolio-list-grid {
    grid-template-rows: repeat(3, 250px);
    min-height: auto;
    gap: 0.75rem;
}

.portfolio-list-grid .portfolio-album-item {
    height: 100%;
    min-height: 250px;
}

.portfolio-list-grid .portfolio-album-item img {
    height: 100%;
    object-fit: cover;
}

.portfolio-album-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--bg-light);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-album-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
    z-index: 1;
}

.portfolio-album-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-album-placeholder-item {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    color: var(--text-muted);
    font-size: 2rem;
    padding: 1rem;
    text-align: center;
}

.portfolio-album-placeholder-item .placeholder-text {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.3;
}

.portfolio-album-placeholder-item i {
    font-size: 3rem;
    opacity: 0.3;
}

/* Адаптивность */
@media (max-width: 992px) {
    .portfolio-album-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .portfolio-album-title {
        font-size: 2rem;
    }
    
    .portfolio-album-grid {
        grid-template-rows: repeat(2, 200px);
        min-height: auto;
    }
    
    .portfolio-album-grid .portfolio-album-item {
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 90px; /* Меньший отступ для мобильных */
    }
    
    .header {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .logo-image {
        height: 60px; /* Меньший логотип на мобильных */
    }
    
    .portfolio-album-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 200px);
        gap: 0.75rem;
        min-height: auto;
    }
    
    .portfolio-album-grid .portfolio-album-item {
        min-height: 200px;
    }
    
    .portfolio-list-grid {
        grid-template-rows: repeat(3, 200px);
        min-height: auto;
        gap: 0.5rem;
    }
    
    .portfolio-list-grid .portfolio-album-item {
        min-height: 200px;
    }
    
    .portfolio-album-title {
        font-size: 1.75rem;
    }
    
    .portfolio-album-description {
        font-size: 1rem;
    }
}

.portfolio-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition-base);
}

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

.portfolio-info {
    color: var(--white);
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.portfolio-category {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin: 0;
}

.portfolio-footer {
    padding: 1rem 1.5rem;
}

.portfolio-client {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===== Contacts Section ===== */
.contacts-section {
    padding: 5rem 0;
}

/* Современный дизайн контактов с карточками */
.contacts-section-modern {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Contact Cards */
.contact-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #ffd700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--black);
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(248, 209, 44, 0.3);
}

.contact-card:hover .contact-card-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 25px rgba(248, 209, 44, 0.5);
}

.contact-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.contact-card-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
    font-size: 1rem;
}

.contact-card-link:hover {
    color: var(--primary-color);
    gap: 0.75rem;
}

.contact-card-link i {
    transition: transform 0.3s ease;
}

.contact-card-link:hover i {
    transform: translateX(5px);
}

/* Map Container */
.map-container-modern {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    position: relative;
}

.map-container-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid transparent;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-container-modern:hover::before {
    opacity: 1;
}

.map-container-modern iframe,
.map-container-modern #yandex-map {
    display: block;
    transition: transform 0.3s ease;
    border-radius: 24px;
}

.map-container-modern #yandex-map {
    width: 100%;
    height: 500px;
}

/* Старый дизайн контактов */
.contact-info-new {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item-new {
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--bg-light);
}

.contact-item-new:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-item-new h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item-new p {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
}

.contact-link {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition-base);
}

.contact-link:hover {
    color: var(--primary-color);
}

.map-container-new {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-container-new iframe {
    display: block;
}

/* Старый дизайн контактов */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition-base);
}

.contact-info-item:hover {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-details p {
    margin: 0;
    color: var(--text-light);
}

.contact-details a {
    color: var(--text-color);
}

.contact-details a:hover {
    color: var(--primary-color);
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.contact-form .form-control {
    padding: 12px 20px;
    border: 2px solid #E9ECEF;
    border-radius: 8px;
    font-size: var(--font-size-base);
    transition: var(--transition-base);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(248, 209, 44, 0.25);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

/* Выравнивание колонок по вертикали - все элементы на одной линии */
.footer .row {
    align-items: flex-start;
}

.footer .row > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Первая колонка с логотипом - выравнивание по верхнему краю */
.footer .row > div:first-child {
    padding-top: 0;
    margin-top: 0;
}

/* Логотип - без отступов сверху */
.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    margin-bottom: 0.5rem;
}

.footer-logo-image {
    height: 85px;
    width: auto;
    margin: 0;
    padding: 0;
    margin-bottom: 0.5rem;
    display: block;
}

/* Описание под логотипом */
.footer-description {
    margin: 0;
    padding: 0;
}

/* Навигация и контакты - выравнивание с логотипом */
.footer-nav-col,
.footer-contacts-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
}

.footer-nav-col .footer-title,
.footer-contacts-col .footer-title {
    margin: 0 !important;
    padding: 0 !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.2 !important;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Убираем все отступы у h5 в футере */
.footer h5 {
    margin: 0 !important;
    padding: 0 !important;
    margin-bottom: 1.5rem !important;
}

/* Сдвиг "Контакты" правее */
.footer-contacts-title {
    padding-left: 15px;
}

.footer .logo-text,
.footer .logo-text-accent {
    color: var(--white);
}

.footer .logo-text-accent {
    color: var(--primary-color);
}

.footer .logo-subtitle {
    color: rgba(255,255,255,0.7);
}

.footer-description {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-top: 0;
    padding-top: 0;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
    margin-bottom: 1.5rem;
    color: var(--white);
    line-height: 1.2;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.9rem;
}

.footer-menu a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition-base);
}

.footer-menu a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contacts li {
    display: flex;
    margin-bottom: 1.45rem;
    color: rgba(255,255,255,0.8);
}

.footer-contacts a {
    color: rgba(255,255,255,0.8);
}

.footer-contacts a:hover {
    color: var(--primary-color);
}

.footer-hours {
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 45px;
    height: 45px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), #ffd700);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link i,
.social-link svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-link:hover {
    color: var(--black);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(248,209,44,0.4);
}

.social-link:hover i,
.social-link:hover svg {
    transform: scale(1.1);
}

/* SVG для VK */
.social-icon-vk {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
}

/* Специфичные цвета для соцсетей при hover */
.social-telegram:hover::before {
    background: linear-gradient(135deg, #0088cc, #0088cc);
}

.social-instagram:hover::before {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-vk:hover::before {
    background: linear-gradient(135deg, #4680C2, #5181b8);
}

.social-whatsapp:hover::before {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.social-telegram:hover,
.social-instagram:hover,
.social-vk:hover,
.social-whatsapp:hover {
    color: var(--white);
}

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 2rem 0 1.5rem;
}

.footer-bottom {
    text-align: center;
}

.copyright {
    color: rgba(255,255,255,0.6);
    font-size: var(--font-size-small);
    margin: 0;
}

/* ===== Callback Modal ===== */
.callback-modal {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.callback-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    padding: 0;
}

.callback-modal-close i {
    font-size: 1.5rem;
    color: var(--white);
    line-height: 1;
}

.callback-modal-close::before {
    display: none;
}

.callback-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.callback-modal .modal-body {
    padding: 3rem 2.5rem;
}

.callback-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.callback-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #ffd700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--black);
    box-shadow: 0 8px 20px rgba(248,209,44,0.3);
    animation: pulse 2s ease-in-out infinite;
}

.callback-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.callback-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

.callback-form .form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
    z-index: 1;
}

.input-with-icon .form-control {
    padding-left: 3rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    height: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-with-icon textarea.form-control {
    height: auto;
    padding-top: 1rem;
    resize: none;
}

.input-with-icon .form-control:focus {
    border-color: var(--black) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25) !important;
}

.callback-form .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #dee2e6;
    cursor: pointer;
}

.callback-form .form-check-input:focus,
.callback-form .form-check-input:active,
.callback-form .form-check-input:focus-visible {
    border-color: var(--black) !important;
    outline: none !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25) !important;
}

.callback-form .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.callback-form .form-check-label {
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: pointer;
    margin-left: 0.5rem;
}

.callback-contact-preferences {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.callback-contact-preferences .form-check {
    margin-bottom: 0;
}

.callback-form .privacy-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.callback-form .privacy-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.callback-submit {
    background: linear-gradient(135deg, var(--primary-color), #ffd700);
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(248,209,44,0.3);
}

.callback-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(248,209,44,0.4);
}

.callback-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.callback-submit:focus:not(:disabled),
.callback-submit:active:not(:disabled),
.callback-submit:focus-visible:not(:disabled) {
    background: var(--black) !important;
    color: var(--white) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25) !important;
}

.callback-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 1rem;
    margin-bottom: 0;
}

.callback-success {
    text-align: center;
    padding: 2rem 1rem;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: var(--white);
    animation: successPop 0.5s ease-out;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.success-text {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ===== Cookie Consent Banner ===== */
.cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    padding: 2rem 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
}

.cookie-consent.show {
    bottom: 0;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-consent-text {
    color: var(--white);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.cookie-policy-link {
    color: var(--white);
    text-decoration: underline;
    font-weight: 600;
    transition: var(--transition-base);
}

.cookie-policy-link:hover {
    color: var(--primary-color);
}

.cookie-consent-btn {
    background-color: var(--primary-color);
    color: var(--black);
    border: none;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-consent-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 209, 44, 0.3);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 30px 0;
    }
    
    /* Уменьшаем отступы между рядами на мобильных */
    .g-5 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; }
    .g-4 { --bs-gutter-x: 1rem; --bs-gutter-y: 1rem; }
    
    .hero-slider {
        height: 60vh;
    }
    
    .hero-slide {
        height: 60vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Кнопки навигации слайдера внизу на мобильных */
    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        bottom: 50px;
        width: 40px;
        height: 40px;
    }
    
    .hero-swiper .swiper-button-prev {
        left: calc(50% - 50px);
        transform: translateX(0);
    }
    
    .hero-swiper .swiper-button-next {
        right: calc(50% - 50px);
        transform: translateX(0);
    }
    
    .hero-swiper .swiper-pagination {
        bottom: 15px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    /* Мобильная версия футера - центрирование */
    .footer .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .footer .row {
        margin: 0;
        max-width: 100%;
    }
    
    .footer .row > div {
        margin-bottom: 2rem;
        align-items: center !important;
        text-align: center !important;
    }
    
    .footer .row > div:last-child {
        margin-bottom: 0;
    }
    
    .footer-logo {
        margin: 0 !important;
        padding: 0 !important;
        margin-bottom: 1rem !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .footer-logo-image {
        margin: 0 auto !important;
        padding: 0 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .footer-description {
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
    }
    
    .footer-nav-col,
    .footer-contacts-col {
        margin: 0 !important;
        padding: 0 !important;
        align-items: center !important;
    }
    
    .footer-nav-col .footer-title,
    .footer-contacts-col .footer-title,
    .footer h5 {
        margin: 0 auto !important;
        padding: 0 !important;
        margin-bottom: 1.5rem !important;
        text-align: center !important;
    }
    
    .footer-menu {
        align-items: center !important;
        text-align: center !important;
    }
    
    .footer-menu li {
        text-align: center !important;
    }
    
    .footer-contacts {
        align-items: center !important;
    }
    
    .footer-contacts li {
        justify-content: center !important;
        text-align: center !important;
    }
    
    .social-links {
        justify-content: center !important;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        padding: 0 1rem;
    }
    
    .cookie-consent-text {
        font-size: 0.9rem;
    }
    
    .cookie-consent-btn {
        width: 100%;
        padding: 14px 24px;
    }
    
    /* Callback Modal Responsive */
    .callback-modal .modal-dialog {
        max-width: 95%;
        margin: 10px auto;
    }
    
    .callback-modal {
        border-radius: 16px;
    }
    
    .callback-modal .modal-body {
        padding: 1.5rem 1.25rem;
    }
    
    .callback-modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }
    
    .callback-modal-close i {
        font-size: 1.25rem;
    }
    
    .callback-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .callback-title {
        font-size: 1.35rem;
    }
    
    .callback-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .input-with-icon .form-control {
        height: 44px;
        font-size: 0.9rem;
    }
    
    .callback-submit {
        font-size: 0.95rem;
        padding: 12px 24px;
    }
    
    /* Portfolio Modal Responsive */
    .portfolio-modal .modal-dialog {
        max-width: 95%;
        height: 85vh;
        margin: 7.5vh auto;
    }
    
    .portfolio-modal-content {
        border-radius: 12px;
    }
    
    .portfolio-modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }
    
    .portfolio-modal-close i {
        font-size: 1.25rem;
    }
    
    .portfolio-modal-image-container {
        padding: 2rem 0.75rem 0.75rem;
    }
    
    .portfolio-modal-info {
        padding: 1rem;
    }
    
    .portfolio-modal-title {
        font-size: 1.25rem;
    }
    
    .portfolio-modal-service {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    .portfolio-modal-description {
        font-size: 0.9rem;
        margin-top: 0.75rem;
    }
    
    .portfolio-modal-client {
        font-size: 0.85rem;
        margin-top: 0.75rem;
    }
    
    .portfolio-modal-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    /* Contact Cards Responsive */
    .contacts-section-modern {
        padding: 60px 0;
    }
    
    .contact-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-card-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .contact-card-title {
        font-size: 1.25rem;
    }
    
    .map-container-modern iframe,
    .map-container-modern #yandex-map {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    /* Кнопки навигации слайдера внизу на очень маленьких экранах */
    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        bottom: 45px;
        width: 36px;
        height: 36px;
    }
    
    .hero-swiper .swiper-button-prev {
        left: calc(50% - 45px);
    }
    
    .hero-swiper .swiper-button-next {
        right: calc(50% - 45px);
    }
    
    .hero-swiper .swiper-pagination {
        bottom: 10px;
    }
    
    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    
    /* Футер для очень маленьких экранов - центрирование */
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer .row > div {
        margin-bottom: 2rem !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .footer-logo-image {
        height: 70px !important;
        margin: 0 auto 0.5rem !important;
    }
    
    .footer-nav-col .footer-title,
    .footer-contacts-col .footer-title,
    .footer h5 {
        font-size: 1.1rem !important;
        margin: 0 auto 1.25rem !important;
        text-align: center !important;
    }
    
    .footer-description {
        font-size: 0.9rem;
        line-height: 1.6;
        text-align: center !important;
    }
    
    .footer-menu {
        align-items: center !important;
        text-align: center !important;
    }
    
    .footer-menu li {
        text-align: center !important;
    }
    
    .footer-contacts li {
        justify-content: center !important;
        text-align: center !important;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    /* Contact Cards Mobile */
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .contact-card-title {
        font-size: 1.1rem;
    }
    
    .contact-card-text {
        font-size: 1rem;
    }
    
    .map-container-modern iframe,
    .map-container-modern #yandex-map {
        height: 350px;
    }
}

/* ===== CATALOG PAGE ===== */

/* Catalog Header */
.catalog-header {
    padding: 100px 0 50px;
    background-color: var(--bg-light);
}

.catalog-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}

/* Category Filters */
.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.filter-btn {
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: var(--black);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-base);
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(248, 209, 44, 0.3);
}

.filter-btn:hover {
    background-color: var(--primary-dark);
    color: var(--black);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(248, 209, 44, 0.5);
}

.filter-btn.active {
    background-color: var(--black);
    color: var(--primary-color);
    border-color: var(--black);
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Catalog Grid */
.catalog-grid {
    padding: 60px 0;
}

/* Ссылка для всей карточки */
.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    position: relative;
    z-index: 1;
}

.service-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.service-card-link:focus {
    outline: none !important;
    box-shadow: none !important;
}

.service-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    z-index: 0;
}

.service-card-link:hover .service-card {
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
}

.service-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition-base);
}

.service-card-link:hover .service-card-image img {
    transform: scale(1.05);
    opacity: 0.9;
}

.service-card-no-image {
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    padding: 2rem;
}

.service-icon-fallback img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.service-icon-fallback i {
    font-size: 4rem;
    color: var(--primary-color);
}

.no-image-placeholder {
    font-size: 3rem;
    color: var(--text-light);
}

.service-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.service-card-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Индикатор ссылки "Подробнее" */
.service-card-link-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: auto;
    padding-top: 1rem;
    transition: var(--transition-base);
}

.service-card-link:hover .service-card-link-text {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.service-card-link:hover .service-card-link-text i {
    transform: translateX(3px);
}

.service-card-link-text i {
    transition: var(--transition-base);
    font-size: 0.9rem;
}

.btn-service {
    background-color: var(--primary-color);
    color: var(--black);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition-base);
    margin-top: auto;
}

.btn-service:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-service:focus,
.btn-service:active,
.btn-service:focus-visible {
    background-color: var(--black) !important;
    color: var(--white) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25) !important;
}

/* No Services */
.no-services {
    text-align: center;
    padding: 4rem 0;
}

.no-services p {
    font-size: 1.25rem;
    color: var(--text-light);
}

/* Load More Button */
.catalog-load-more {
    text-align: center;
    margin-top: 3rem;
}

.btn-load-more {
    padding: 12px 48px;
    background-color: var(--white);
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-base);
    cursor: pointer;
}

.btn-load-more:hover {
    background-color: var(--primary-color);
    color: var(--black);
}

.btn-load-more:focus,
.btn-load-more:active,
.btn-load-more:focus-visible {
    background-color: var(--black) !important;
    color: var(--white) !important;
    border-color: var(--black) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25) !important;
}

/* Pagination */
.catalog-pagination {
    padding: 2rem 0 4rem;
}

.pagination {
    gap: 0.5rem;
}

.page-item .page-link {
    border: 2px solid var(--bg-light);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--black);
}

.page-item .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--black);
}

/* Catalog Responsive */
@media (max-width: 992px) {
    .catalog-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .catalog-header {
        padding: 80px 0 40px;
    }
    
    .catalog-title {
        font-size: 2rem;
    }
    
    .catalog-filters {
        gap: 0.75rem;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .service-card-image {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .catalog-title {
        font-size: 1.75rem;
    }
    
    .service-card-image {
        height: 160px;
    }
    
    .service-card-content {
        padding: 1rem;
    }
    
    .service-card-title {
        font-size: 1.1rem;
    }
}

/* ===== SERVICE DETAIL PAGE ===== */

/* Breadcrumbs */
.breadcrumbs {
    padding: 20px 0 20px;
    background-color: var(--bg-light);
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--text-light);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-color);
}

/* Service Detail Section */
.service-detail {
    padding: 60px 0;
}

.service-detail-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.service-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
}

.service-description-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.service-description-content p {
    margin-bottom: 0.75rem;
}

/* Service Detail Sidebar */
.service-detail-sidebar {
    position: sticky;
    top: 100px;
    background-color: var(--bg-light);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.service-detail-header {
    margin-bottom: 2rem;
}

.service-detail-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.service-detail-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* Service Info */
.service-detail-info {
    margin-bottom: 2rem;
}

.info-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.service-features li {
    display: flex;
    align-items: start;
    margin-bottom: 0.75rem;
}

.service-features li i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.service-features li span {
    color: var(--text-color);
}

.service-materials,
.service-timeline,
.service-notes {
    padding: 1rem;
    background-color: var(--white);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.service-materials h4,
.service-timeline h4,
.service-notes h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-materials h4 i,
.service-timeline h4 i,
.service-notes h4 i {
    color: var(--primary-color);
}

.service-materials p,
.service-timeline p,
.service-notes p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.service-detail-action {
    margin-top: 2rem;
}

/* Service Portfolio Section */
.service-portfolio {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.portfolio-grid {
    margin-top: 3rem;
}

.portfolio-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    height: 100%;
}

.portfolio-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
}

.portfolio-card-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.portfolio-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

/* Убрали zoom эффект при наведении */
/* .portfolio-card:hover .portfolio-card-image img {
    transform: scale(1.1);
} */

.portfolio-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 1.5rem;
    color: var(--white);
}

.portfolio-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.portfolio-card-price {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Responsive Detail Page */
@media (max-width: 992px) {
    .service-detail-sidebar {
        position: relative;
        top: 0;
        margin-top: 2rem;
    }
    
    .service-detail-image {
        /* height: 450px; убрали фиксированную высоту */
    }
    
    .service-detail-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .breadcrumbs {
        padding: 40px 0 12px;
    }
    
    .service-detail {
        padding: 40px 0;
    }
    
    .service-detail-image {
        height: 350px;
    }
    
    .service-detail-subtitle {
        font-size: 1.5rem;
    }
    
    .service-detail-title {
        font-size: 1.5rem;
    }
    
    .service-detail-price {
        font-size: 1.5rem;
    }
    
    .portfolio-card-image {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .service-detail-sidebar {
        padding: 1.5rem;
    }
    
    .service-detail-image {
        height: 280px;
    }
}

/* ===== ABOUT PAGE ===== */

/* Modern About Hero */
.about-hero-modern {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    overflow: hidden;
}

.about-content-modern {
    animation: fadeInUp 0.8s ease-out;
}

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

.about-label {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(248,209,44,0.1), rgba(255,215,0,0.1));
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.about-title-modern {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-tagline {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 500;
}

.about-text-modern {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.about-text-modern p {
    margin-bottom: 0.75rem;
}

.about-image-modern {
    position: relative;
    animation: fadeInRight 0.8s ease-out 0.3s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-image-modern img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.about-image-badge {
    position: absolute;
    bottom: 30px;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--primary-color), #ffd700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(248,209,44,0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.badge-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--black);
    width: 100%;
    padding: 0.4rem 0.25rem 0 0.25rem;
}

.badge-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    width: 100%;
    text-align: center;
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 5px;
    width: 100%;
    text-align: center;
}

/* Позиции бейджа */
.about-image-badge-center {
    left: 50%;
    margin-left: -70px; /* половина ширины 140px */
}
.about-image-badge-right {
    right: 30px;
}
.about-image-badge-left {
    left: 30px;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background: var(--text-color);
    color: var(--white);
}

.stat-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.stat-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Why Us Modern */
.why-us-modern {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.why-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.why-card:hover::before {
    transform: scaleX(1);
}

.why-card-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(248,209,44,0.1);
    line-height: 1;
}

.why-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), #ffd700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--black);
    font-size: 1.75rem;
    transition: all 0.4s ease;
}

.why-card:hover .why-card-icon {
    transform: scale(1.1) rotate(10deg);
}

.why-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.why-card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

/* Process Section */
.process-section {
    padding: 80px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 2rem 1rem;
}

.process-number {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(248,209,44,0.3);
}

.process-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(248,209,44,0.1), rgba(255,215,0,0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 50px auto 1.5rem;
    color: var(--secondary-color);
    font-size: 2.5rem;
    transition: all 0.4s ease;
}

.process-step:hover .process-icon {
    background: linear-gradient(135deg, var(--primary-color), #ffd700);
    color: var(--black);
    transform: scale(1.1);
}

.process-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.process-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

/* Testimonials Modern */
.testimonials-modern {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.testimonial-card-modern {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    height: 100%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}

.testimonial-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.testimonial-quote {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    color: rgba(248,209,44,0.15);
    line-height: 1;
}

.testimonial-rating-modern {
    color: #ffd700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.testimonial-text-modern {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar-modern {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.testimonial-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #ffd700);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.testimonial-name-modern {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.testimonial-position-modern {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Old Styles - Keep for backward compatibility */
.about-hero-new {
    padding: 80px 0;
    background-color: var(--white);
}

.about-main-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.about-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 400;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.about-description p {
    margin-bottom: 1.25rem;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
}

/* About Hero (старый стиль) */
.about-hero {
    padding: 60px 0 80px;
}

.about-page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 3rem;
    text-align: center;
}

.about-hero-image {
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
}

.about-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.about-hero-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.about-hero-text p {
    margin-bottom: 1rem;
}

/* Новый дизайн блока "Почему мы" */
.why-choose-us-new {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.feature-card-new {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    height: 100%;
}

.feature-card-new:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
}

.feature-icon-new {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--black);
    font-size: 2rem;
}

.feature-title-new {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.feature-text-new {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

/* Why Choose Us (старый стиль) */
.why-choose-us {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.feature-card {
    background-color: var(--primary-color);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    display: flex;
    align-items: start;
    gap: 1.5rem;
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: rgba(0,0,0,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.75rem;
}

.feature-text {
    font-size: 1rem;
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

/* Testimonials */
.testimonials-section {
    padding: 80px 0;
}

.testimonial-card {
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author {
    flex: 1;
}

.testimonial-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.testimonial-position {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.testimonial-rating i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-right: 0.25rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
}

/* About Page Responsive */
@media (max-width: 992px) {
    .about-title-modern {
        font-size: 3rem;
    }
    
    .about-tagline {
        font-size: 1.25rem;
    }
    
    .about-image-badge {
        width: 120px;
        height: 120px;
        bottom: 20px;
    }
    .about-image-badge-center { margin-left: -60px; }
    .about-image-badge-right { right: 20px; }
    .about-image-badge-left { left: 20px; }
    
    .badge-number {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    
    .about-main-title {
        font-size: 2.5rem;
    }
    
    .about-subtitle {
        font-size: 1.25rem;
    }
    
    .about-page-title {
        font-size: 2.5rem;
    }
    
    .about-hero-title {
        font-size: 1.75rem;
    }
    
    .about-hero-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 40px 0 60px;
    }
    
    .about-page-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .about-hero-title {
        font-size: 1.5rem;
    }
    
    .about-hero-image {
        height: 300px;
    }
    
    .about-hero-text {
        font-size: 1rem;
    }
    
    .why-choose-us {
        padding: 60px 0;
    }
    
    .testimonials-section {
        padding: 60px 0;
    }
    
    .feature-card {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin: 0 auto;
    }
    
    /* Modern About Page */
    .about-hero-modern {
        padding: 35px 0;
    }
    
    .about-title-modern {
        font-size: 2.5rem;
    }
    
    .about-tagline {
        font-size: 1.1rem;
    }
    
    .about-image-badge {
        width: 100px;
        height: 100px;
        bottom: 15px;
    }
    .about-image-badge-center { margin-left: -50px; }
    .about-image-badge-right { right: 15px; }
    .about-image-badge-left { left: 15px; }
    
    .badge-number {
        font-size: 1.75rem;
    }
    
    .badge-text {
        font-size: 0.75rem;
    }
    
    .stats-section {
        padding: 35px 0;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
    
    .why-us-modern,
    .process-section,
    .testimonials-modern {
        padding: 35px 0;
    }
    
    .why-card,
    .testimonial-card-modern {
        padding: 2rem 1.5rem;
    }
    
    .process-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        margin: 40px auto 1.5rem;
    }
    
    /* Уменьшение отступов секций на мобильных */
    .about-section,
    .contacts-section-modern {
        padding: 35px 0 !important;
    }
    .portfolio-album-block {
        margin-bottom: 40px;
    }
    .section-header.mb-5 { margin-bottom: 2rem !important; }
}

@media (max-width: 576px) {
    .about-hero-image {
        height: 250px;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* Modern About Page Mobile */
    .about-title-modern {
        font-size: 2rem;
    }
    
    .about-label {
        font-size: 0.8rem;
        padding: 6px 16px;
    }
    
    .about-image-badge {
        width: 80px;
        height: 80px;
    }
    .about-image-badge-center { margin-left: -40px; }
    .about-image-badge-right { right: 15px; }
    .about-image-badge-left { left: 15px; }
    
    .badge-number {
        font-size: 1.5rem;
    }
    
    .badge-text {
        font-size: 0.65rem;
    }
    
    .stat-card {
        padding: 2rem 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .why-card-number {
        font-size: 2rem;
        top: 15px;
        right: 15px;
    }
    
    .why-card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .process-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .process-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
        margin: 35px auto 1.25rem;
    }
    
    .testimonial-quote {
        font-size: 3rem;
    }
}

/* ===== PORTFOLIO PAGE ===== */

/* Portfolio Header */
.portfolio-page-header {
    padding: 60px 0 50px;
    background-color: var(--bg-light);
}

.portfolio-page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Service Filter Info */
.service-filter-info {
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.service-filter-info .alert {
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: none;
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--text-color);
}

.service-filter-info .alert i {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.service-filter-info .btn {
    white-space: nowrap;
}

/* Portfolio Grid */
.portfolio-grid-section {
    padding: 60px 0;
}

.portfolio-work-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-work-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
}

.portfolio-work-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.portfolio-work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-base);
}

.portfolio-work-card:hover .portfolio-work-image img {
    transform: scale(1.1);
}

.portfolio-work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.7));
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition-base);
}

.portfolio-work-card:hover .portfolio-work-overlay {
    opacity: 1;
}

.portfolio-work-info {
    width: 100%;
}

.portfolio-work-service {
    background-color: var(--primary-color);
    color: var(--black);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}

.portfolio-work-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-work-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.portfolio-work-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.portfolio-work-client {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: auto;
}

.portfolio-work-client i {
    color: var(--primary-color);
}

/* No Portfolio */
.no-portfolio {
    text-align: center;
    padding: 4rem 0;
}

.no-portfolio p {
    font-size: 1.25rem;
    color: var(--text-light);
}

/* Portfolio Pagination */
.portfolio-pagination {
    padding: 2rem 0 4rem;
}

/* Portfolio Responsive */
@media (max-width: 992px) {
    .portfolio-page-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .portfolio-page-header {
        padding: 80px 0 40px;
    }
    
    .portfolio-page-title {
        font-size: 2rem;
    }
    
    .portfolio-filters {
        gap: 0.75rem;
    }
    
    .portfolio-work-image {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .portfolio-page-title {
        font-size: 1.75rem;
    }
    
    .portfolio-work-image {
        height: 200px;
    }
    
    .portfolio-work-content {
        padding: 1rem;
    }
    
    .portfolio-work-title {
        font-size: 1.25rem;
    }
}

/* ===== PORTFOLIO MODAL ===== */
.portfolio-modal .modal-dialog {
    max-width: 90vw;
    height: 90vh;
    margin: 5vh auto;
}

.portfolio-modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-modal-content {
    height: 100%;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.portfolio-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1051;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 1.25rem;
}

.portfolio-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.portfolio-modal-close i {
    font-size: 1.5rem;
}

.portfolio-modal-body {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.portfolio-modal-image-container {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    overflow: hidden;
    padding: 3rem 1rem 1rem;
}

.portfolio-modal-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.portfolio-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    z-index: 10;
    font-size: 1.5rem;
}

.portfolio-modal-nav:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.portfolio-modal-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.portfolio-modal-nav-prev {
    left: 1.5rem;
}

.portfolio-modal-nav-next {
    right: 1.5rem;
}

.portfolio-modal-info {
    padding: 2rem;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    max-height: 40%;
    overflow-y: auto;
}

.portfolio-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.portfolio-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.portfolio-modal-service {
    background-color: var(--primary-color);
    color: var(--black);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.portfolio-modal-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.portfolio-modal-client {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.portfolio-modal-client i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Адаптивность модального окна */
@media (max-width: 992px) {
    .portfolio-modal .modal-dialog {
        max-width: 95vw;
        height: 95vh;
        margin: 2.5vh auto;
    }
    
    .portfolio-modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .portfolio-modal-nav-prev {
        left: 1rem;
    }
    
    .portfolio-modal-nav-next {
        right: 1rem;
    }
    
    .portfolio-modal-close {
        top: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
    }
    
    .portfolio-modal-image-container {
        padding: 2.5rem 1rem 1rem;
    }
    
    .portfolio-modal-info {
        padding: 1.5rem;
        max-height: 45%;
    }
    
    .portfolio-modal-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .portfolio-modal .modal-dialog {
        max-width: 95%;
        height: 85vh;
        margin: 7.5vh auto;
    }
    
    .portfolio-modal-content {
        border-radius: 12px;
    }
    
    .portfolio-modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }
    
    .portfolio-modal-close i {
        font-size: 1.25rem;
    }
    
    .portfolio-modal-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .portfolio-modal-nav-prev {
        left: 0.5rem;
    }
    
    .portfolio-modal-nav-next {
        right: 0.5rem;
    }
    
    .portfolio-modal-image-container {
        padding: 2rem 0.75rem 0.75rem;
    }
    
    .portfolio-modal-info {
        padding: 1rem;
        max-height: 50%;
    }
    
    .portfolio-modal-title {
        font-size: 1.15rem;
    }
    
    .portfolio-modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .portfolio-modal-service {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    .portfolio-modal-description {
        font-size: 0.9rem;
        margin-top: 0.75rem;
    }
    
    .portfolio-modal-client {
        font-size: 0.85rem;
        margin-top: 0.75rem;
    }
}
