:root {
    --gold: #daae8b;
    --dark-blue: #3d4e68;
    --primary-gradient: linear-gradient(135deg, #fdf9f2 0%, #f5f0e8 50%, #faf7f1 100%);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(218, 174, 139, 0.2);
    --shadow-light: 0 8px 32px rgba(61, 78, 104, 0.15);
    --shadow-hover: 0 20px 40px rgba(61, 78, 104, 0.25);
    --shadow-gold: 0 8px 32px rgba(218, 174, 139, 0.3);
    --text-primary: #2a2a2a;
    --text-secondary: var(--dark-blue);
    --accent: var(--gold);
    --bg-light: #fafafa;
}

body {
    font-family: 'Manrope', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    overflow-x: hidden;
    background: var(--primary-gradient);
}

/* Хедер */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(20px);
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-light);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold), #e8b783);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-blue);
    transition: all 0.3s ease;
}

.cta-btn {
    background: linear-gradient(135deg, var(--gold), #e8b783);
    color: #2a2a2a;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-gold);
    white-space: nowrap;
    display: inline-block;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(218, 174, 139, 0.4);
    color: #2a2a2a;
}

/* Hero секция */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--dark-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    color: var(--text-primary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image div {
    width: 100%;
    height: clamp(300px, 50vw, 500px);
    background: linear-gradient(135deg, rgba(218, 174, 139, 0.1), rgba(61, 78, 104, 0.05));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: clamp(2rem, 8vw, 4rem);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-light);
}

/* Общие секции */
.section {
    padding: clamp(4rem, 10vw, 8rem) 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 6vw, 4rem);
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--text-primary), var(--dark-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Табы для прайса */
.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 1.5rem;
    border: 2px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--gold), #e8b783);
    color: #2a2a2a;
    box-shadow: var(--shadow-gold);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.6s ease;
}

/* Таблицы */
.price-table-wrapper {
    overflow-x: auto;
    border-radius: 20px;
    -webkit-overflow-scrolling: touch;
}

.price-table {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--glass-border);
    min-width: 700px;
    width: 100%;
}

.price-table-electro,
.price-table-laser {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 0;
}

.price-table-sets {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
    gap: 0;
}

.price-header,
.price-row {
    display: contents;
}

.price-header > div,
.price-row > div {
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    min-height: 20px;
}

.price-header {
    background: linear-gradient(135deg, var(--dark-blue), var(--gold));
    color: white;
    font-weight: 600;
}

.price-row:nth-child(even) > div {
    background: rgba(218, 174, 139, 0.05);
}

.price-row:hover > div {
    background: rgba(218, 174, 139, 0.1);
}

.col-cat, .col-zone, .col-price, .col-name, .col-desc, .col-old {
    font-weight: 500;
}

.col-price {
    justify-content: flex-end;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--gold);
}

.col-old {
    justify-content: flex-end;
    color: #999;
    font-size: 0.9rem;
}

/* О студии */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Контакты */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

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

/* Футер */
.footer {
    background: linear-gradient(135deg, var(--dark-blue), #2a3b52);
    backdrop-filter: blur(20px);
    color: white;
    padding: clamp(3rem, 8vw, 4rem) 0 clamp(1rem, 3vw, 2rem);
    margin-top: 5rem;
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    will-change: auto;
    contain: layout style;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    grid-auto-flow: row;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--gold);
    min-width: 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    min-width: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    min-width: 0;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    min-width: 0;
}

.footer-section ul li a:hover {
    color: var(--gold);
    min-width: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* МОБИЛЬНЫЕ СТИЛИ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
        }

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
            .nav-container {
        padding: 1rem;
    }
    .container {
        padding: 0 1.5rem;
    }
    .section {
        padding: 4rem 0;
    }
    .hero {
        min-height: 100vh;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .pricing-tabs {
        flex-direction: column;
        align-items: center;
    }
    .tab-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    .price-table-wrapper {
        margin: 0 -1rem;
        border-radius: 16px;
    }
    .price-table {
        min-width: 650px;
    }
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .contact-card {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .price-table {
        min-width: 600px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .cta-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

/* Navbar base */
.navbar-custom {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 0;
}

.navbar-custom.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 32px rgba(61, 78, 104, 0.15);
}

/* Brand */
.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #daae8b, #e8b783);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav links */
.navbar-nav .nav-link {
    color: #2a2a2a !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #daae8b !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: #daae8b;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Toggler button */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(61, 78, 104, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Плавная анимация collapse */
.navbar-collapse {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 991px) {
    
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

html {
    scroll-behavior: smooth;
}

.col-cat {
    font-weight: bold;
    font-size: 1.1rem;
    color: #3d4e68;
}

.col-zone {
    color: #666;
    font-weight: bold;
    font-size: 1.1rem;
}

.col-name {
    font-weight: bold;
    color: #3d4e68;
    font-size: 1.1rem;
}

.col-desc {
    color: #666;
    font-size: 1.1rem;
    padding-right: 15px;
}

.col-price {
    color: #daae8b;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: right;
}

.col-old {
    color: #999;
    text-align: right;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .header, .footer, .price-table, .contact-card {
        backdrop-filter: none !important;
        box-shadow: none !important;
    }
    .price-table-wrapper {
        transform: translateZ(0); /* GPU-ускорение для горизонтального скролла */
        -webkit-overflow-scrolling: touch;
    }
    body {
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
    }
}

/* Контейнер с прокруткой */
.price-table-wrapper {
    overflow-x: auto;
    position: relative;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px; /* Место для скроллбара */
    margin: 0 -15px; /* Вынос за пределы container padding на мобильных */
    padding: 0 15px;
}

/* Скроллбар */
.price-table-wrapper::-webkit-scrollbar {
    height: 6px;
}
.price-table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.price-table-wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

/* Сама таблица — ОБЯЗАТЕЛЬНО шире контейнера */
.price-table {
    display: inline-block; /* Ключевое: не сжимается */
    min-width: 700px; /* Фиксированная ширина > ширины экрана телефона */
}

/* Ячейки */
.price-header,
.price-row {
    display: flex;
    align-items: center;
}

.price-header {
    font-weight: 600;
    background: #fafafa;
}

/* Колонки — фиксированные пропорции */
.col-cat, .col-zone, .col-name { flex: 2; min-width: 120px; }
.col-desc { flex: 3; min-width: 180px; }
.col-price, .col-old { flex: 1; min-width: 80px; text-align: right; }

/* Адаптив: на больших экранах можно вернуть блочную вёрстку */
@media (min-width: 768px) {
    .price-table-wrapper {
        margin: 0;
        padding: 0;
    }

}
