/* styles.css - добавляем стили для нового блока преимуществ */

:root {
    --primary: #d4202b;
    --primary-dark: #b0101a;
    --secondary: #1e1e2f;
    --secondary-light: #2d2d42;
    --gray-light: #f4f7fb;
    --gray: #e0e5ec;
    --text-muted: #5a5a70;
    --white: #ffffff;
    --shadow: 0 15px 30px -10px rgba(0,0,0,0.1);
    --border-radius: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
    color: var(--secondary);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 70px 0;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin-top: 8px;
    border-radius: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 60px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 8px 16px -6px rgba(212, 32, 43, 0.3);
    gap: 10px;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 20px -8px rgba(212, 32, 43, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--secondary);
    box-shadow: inset 0 0 0 2px var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: white;
}

/* Шапка */
.header {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.1;
}

.logo span {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
}

/* Бургер-меню */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    background: none;
    border: none;
    padding: 10px;
}

.burger span {
    width: 30px;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px;
    transition: 0.2s;
}

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

.nav-list {
    display: flex;
    list-style: none;
    gap: 24px;
    margin-right: 30px;
}

.nav-list a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    font-size: 1rem;
    transition: 0.2s;
}

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

.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-phone {
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
    font-size: 1.2rem;
}

.header-phone i {
    color: var(--primary);
    margin-right: 6px;
}

/* Hero секция */
.hero {
    background: linear-gradient(145deg, var(--gray-light) 0%, #ffffff 100%);
    padding: 50px 0 70px;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-content .accent {
    color: var(--primary);
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
}

.stat-desc {
    color: var(--text-muted);
}

.hero-form {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.hero-form p {
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-form input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--gray);
    border-radius: 50px;
    font-size: 1rem;
    margin-bottom: 15px;
}

.hero-form small {
    display: block;
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Преимущества (Advantes) */
.advantes-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: white;
}

.advantes-section h2 {
    color: white;
    margin-bottom: 3rem;
}

.advantes-section h2:after {
    background: var(--primary);
}

.advantes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.advante-card {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.advante-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.advante-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
    box-shadow: 0 10px 20px rgba(212, 32, 43, 0.3);
}

.advante-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: white;
}

.advante-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.advantes-cta {
    text-align: center;
    margin-top: 30px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
}

.advantes-cta p {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
}

.advantes-phone {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.advantes-phone i {
    color: var(--primary);
    font-size: 2.2rem;
}

.advantes-phone a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.advantes-phone a:hover {
    color: var(--primary);
}

/* Типы фундаментов */
.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.type-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.2s;
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}

.type-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
}

.type-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.type-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.type-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.type-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px;
}

.type-features {
    list-style: none;
    margin: 20px 0;
    flex: 1;
}

.type-features li {
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
}

.type-features i {
    color: var(--primary);
}

/* Смета */
.estimate-section {
    background: var(--secondary);
    color: white;
}

.estimate-section h2:after {
    background: var(--primary);
}

.table-responsive {
    overflow-x: auto;
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    color: var(--secondary);
    margin-top: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

th {
    background: var(--gray-light);
    padding: 15px;
    text-align: left;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--gray);
}

.total-row {
    font-weight: 800;
    background: var(--primary);
    color: white;
}

.total-row td {
    border-bottom: none;
}

/* Портфолио - Слайдер */
.portfolio-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

.portfolio-slider {
    flex: 1;
    overflow: hidden;
}

.portfolio-grid {
    display: flex;
    transition: transform 0.3s ease;
    gap: 30px;
}

.portfolio-item {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 280px;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.portfolio-content {
    padding: 25px;
}

.portfolio-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.price-tag {
    color: var(--primary);
    font-weight: 700;
    margin: 15px 0;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    box-shadow: var(--shadow);
}

.slider-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray);
    cursor: pointer;
    transition: 0.2s;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

/* Этапы с фото */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.step-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.step-number {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    border: 3px solid white;
}

.step-content {
    padding: 20px;
}

.step-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

/* Контакты */
#contacts {
    background: var(--gray-light);
}

/* Футер */
.footer {
    background: var(--secondary);
    color: white;
    padding: 50px 0 30px;
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-btn:hover {
    transform: scale(1.1);
    animation: none;
}

.floating-btn.whatsapp-btn {
    background: #25D366;
}

.floating-btn.phone-btn {
    background: var(--primary);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 32, 43, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(212, 32, 43, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 32, 43, 0);
    }
}

.floating-btn.whatsapp-btn {
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Адаптивность */
@media (max-width: 992px) {
    h2 { font-size: 1.8rem; }
    .hero .container { grid-template-columns: 1fr; }
    .footer .container { grid-template-columns: 1fr; gap: 30px; }
    .portfolio-item { flex: 0 0 calc(50% - 15px); }
    .advantes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .burger { display: flex; }
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        transition: 0.3s;
        padding: 40px 20px;
        z-index: 999;
    }
    .nav-menu.active { left: 0; }
    .nav-list {
        flex-direction: column;
        margin-right: 0;
        gap: 20px;
        font-size: 1.2rem;
        text-align: center;
    }
    .header-contacts {
        flex-direction: column;
        margin-top: 30px;
    }
    .burger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .burger.active span:nth-child(2) { opacity: 0; }
    .burger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
    .portfolio-item { flex: 0 0 100%; }
    .advantes-grid {
        grid-template-columns: 1fr;
    }
    .advantes-phone {
        font-size: 1.5rem;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    h2 { font-size: 1.5rem; }
    .hero-content h1 { font-size: 2rem; }
}

.prim {font-size: 1.3em;
    padding-bottom: 40px;}
	
	/* Стили для обновленного блока контактов */
/* Стили для обновленного блока контактов */
.contacts-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.contacts-info {
    background: white;
    padding: 40px;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.contacts-info h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--secondary);
    position: relative;
}

.contacts-info h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin-top: 10px;
    border-radius: 2px;
}

.contacts-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contacts-item i {
    width: 24px;
    height: 24px;
    color: var(--primary);
    font-size: 1.3rem;
    margin-top: 3px;
}

.contacts-item p, 
.contacts-item a {
    font-size: 1.1rem;
    color: var(--secondary);
    text-decoration: none;
    line-height: 1.5;
}

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

.contacts-legal {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 16px;
    margin: 30px 0;
    border-left: 4px solid var(--primary);
}

.legal-text {
    font-weight: 700;
    font-size: 1.2rem !important;
    color: var(--secondary) !important;
    margin-bottom: 10px;
}

.legal-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.legal-details span {
    font-size: 0.9rem;
    color: var(--text-muted);
    background: white;
    padding: 5px 12px;
    border-radius: 30px;
    border: 1px solid #e0e5ec;
}

.contacts-buttons {
    margin-top: 35px;
    flex-direction: column !important;
    gap: 15px !important;
}

.contact-btn {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: var(--primary);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(212, 32, 43, 0.3);
}

.response-note {
    font-size: 0.9rem !important;
    color: var(--text-muted) !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-align: center;
}

.contacts-map {
    height: 550px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Адаптивность */
@media (max-width: 992px) {
    .contacts-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contacts-map {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .contacts-info {
        padding: 30px;
    }
    
    .contacts-info h2 {
        font-size: 1.8rem;
    }
    
    .contacts-item p,
    .contacts-item a {
        font-size: 1rem;
    }
    
    .legal-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .legal-details span {
        display: inline-block;
        width: fit-content;
    }
    
    .contact-btn {
        padding: 14px;
        font-size: 0.9rem;
    }
    
    .contacts-map {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .contacts-info h2 {
        font-size: 1.5rem;
    }
    
    .contacts-item {
        gap: 10px;
    }
    
    .contacts-item i {
        font-size: 1.1rem;
    }
    
    .contacts-map {
        height: 280px;
    }
}
/* Добавить в CSS файл */
.type-phone-btn {
    background: #25D366 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    padding: 12px !important;
}

.type-phone-btn i {
    font-size: 1.2rem;
}

.type-phone-btn:hover {
    background: #128C7E !important;
    transform: translateY(-2px);
}

.hero-phone-btn {
    background: #25D366 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.3rem;
    padding: 18px !important;
    text-decoration: none;
    color: white !important;
    border: none !important;
    margin: 15px 0;
    transition: all 0.3s ease;
}

.hero-phone-btn:hover {
    background: #128C7E !important;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.hero-phone-btn i {
    font-size: 1.4rem;
}

/* Обновленные стили для сметы с улучшенной мобильной адаптацией */

/* Смета */
.estimate-section {
    background: var(--secondary);
    color: white;
}

.estimate-section h2:after {
    background: var(--primary);
}

.estimate-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.table-responsive {
    overflow-x: auto;
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    color: var(--secondary);
    margin-top: 30px;
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
    scrollbar-width: thin; /* Тонкий скроллбар для Firefox */
    scrollbar-color: var(--primary) #e0e5ec; /* Цвета скроллбара */
}

/* Стилизация скроллбара для Chrome/Safari/Edge */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #e0e5ec;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px; /* Оставляем минимальную ширину для десктопа */
    font-size: 0.95rem;
}

th {
    background: var(--gray-light);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap; /* Заголовки не переносятся */
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--gray);
    white-space: nowrap; /* Числовые значения не переносятся для лучшей читаемости */
}

.total-row {
    font-weight: 800;
    background: var(--primary);
    color: white;
}

.total-row td {
    border-bottom: none;
    white-space: nowrap;
}

/* Мобильная оптимизация */
@media (max-width: 768px) {
    .estimate-section {
        padding: 50px 0;
    }
    
    .estimate-section h2 {
        font-size: 1.5rem;
    }
    
    .estimate-section p {
        font-size: 0.9rem;
    }
    
    .table-responsive {
        padding: 12px;
        border-radius: 16px;
        margin-top: 20px;
        /* Добавляем подсказку о скролле */
        position: relative;
    }
    
    /* Визуальный индикатор прокрутки */
    .table-responsive::after {
        content: '← Проведите для просмотра полной сметы →';
        display: block;
        text-align: center;
        font-size: 0.8rem;
        color: var(--primary);
        margin-top: 10px;
        padding: 8px;
        background: rgba(212, 32, 43, 0.1);
        border-radius: 30px;
        font-weight: 500;
    }
    
    table {
        min-width: 700px; /* Немного уменьшаем для мобильных, но оставляем достаточную ширину */
        font-size: 0.85rem;
    }
    
    th, td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .estimate-section h2 {
        font-size: 1.3rem;
    }
    
    .table-responsive {
        padding: 10px;
    }
    
    .table-responsive::after {
        content: '← Проведите вправо →';
        font-size: 0.75rem;
        padding: 6px;
    }
    
    table {
        min-width: 650px; /* Минимальная ширина для самого маленького экрана */
        font-size: 0.8rem;
    }
    
    th, td {
        padding: 8px 10px;
    }
    

}

#portfolio {
    overflow: hidden;
    padding: 70px 0;
}

.portfolio-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    width: 100%;
}

.portfolio-slider {
    flex: 1;
    overflow: hidden;
    width: 100%;
}

.portfolio-grid {
    display: flex;
    transition: transform 0.3s ease;
    gap: 30px;
    width: 100%;
}

.portfolio-item {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 280px;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

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

.portfolio-content {
    padding: 25px;
}

.portfolio-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

.portfolio-content p {
    color: var(--text-muted);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.portfolio-content p small {
    display: block;
    line-height: 1.6;
}

.price-tag {
    color: var(--primary);
    font-weight: 700;
    margin: 15px 0;
    font-size: 1.1rem;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    box-shadow: var(--shadow);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
    padding: 0 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray);
    cursor: pointer;
    transition: 0.2s;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

/* Адаптивность */
@media (max-width: 992px) {
    .portfolio-item {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    #portfolio {
        padding: 50px 0;
    }

    .portfolio-slider-container {
        gap: 10px;
        margin-top: 30px;
    }

    .portfolio-grid {
        gap: 15px;
    }

    .portfolio-item {
        flex: 0 0 calc(100% - 40px); /* Карточка занимает всю ширину с отступами */
        min-width: 280px;
        margin: 0 20px; /* Добавляем отступы по бокам */
    }

    .portfolio-item:first-child {
        margin-left: 20px;
    }

    .portfolio-item:last-child {
        margin-right: 20px;
    }

    .portfolio-item img {
        height: 200px;
    }

    .portfolio-content {
        padding: 20px;
    }

    .portfolio-content h3 {
        font-size: 1.1rem;
    }

    .portfolio-content p {
        font-size: 0.9rem;
    }

    .price-tag {
        font-size: 1rem;
        margin: 12px 0;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .slider-dots {
        margin-top: 25px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .portfolio-item {
        flex: 0 0 calc(100% - 30px); /* Еще меньше отступы на маленьких экранах */
        min-width: 250px;
        margin: 0 15px;
    }

    .portfolio-item:first-child {
        margin-left: 15px;
    }

    .portfolio-item:last-child {
        margin-right: 15px;
    }

    .portfolio-item img {
        height: 180px;
    }

    .portfolio-content {
        padding: 15px;
    }

    .portfolio-content h3 {
        font-size: 1rem;
    }

    .portfolio-content p {
        font-size: 0.85rem;
    }

    .price-tag {
        font-size: 0.95rem;
        margin: 10px 0;
    }

    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .slider-dots {
        margin-top: 20px;
        gap: 8px;
    }
}

/* Исправление для iOS и Safari */
.portfolio-slider {
    -webkit-overflow-scrolling: touch;
}

.portfolio-grid {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000;
}

/* Добавляем отступы для контейнера на мобильных */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .portfolio-slider-container {
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }

    .portfolio-slider {
        padding: 0 15px;
    }
}