:root {
    --bg-main: #FAFAFA;
    --bg-surface: #FFFFFF;
    --bg-surface-light: #F0F0F0;
    --text-primary: #1A1A1A;
    --text-secondary: #6B6B6B;
    --accent-gold: #C5A059;
    --accent-gold-hover: #AB8847;
    --border-color: #EAEAEA;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

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

/* Base Buttons */
.btn-primary, .btn-primary-sm {
    display: inline-block;
    background-color: var(--accent-gold);
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 2px;
}

.btn-primary-sm {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 2px;
}

.btn-primary:hover, .btn-primary-sm:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 15px 32px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 2px;
    transition: 0.3s;
}

.btn-secondary:hover {
    background-color: rgba(197, 160, 89, 0.1);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
    padding: 20px 48px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}

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

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
    white-space: nowrap;
    color: var(--text-primary);
}

.logo span {
    color: var(--accent-gold);
}

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

.navbar nav a:not(.btn-primary-sm) {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.navbar nav a:not(.btn-primary-sm):hover {
    color: var(--accent-gold);
}

.nav-telegram {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Remove padding only in header */
.header-actions .nav-telegram,
.header-actions .nav-max,
.header-actions .nav-phone {
    padding: 0;
}

.nav-telegram-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-gold);
    padding: 7px;
    box-shadow: 0 4px 12px rgba(212,175,55,0.3);
    transition: all 0.3s ease;
}

.nav-telegram:hover .nav-telegram-icon {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212,175,55,0.4);
}

.nav-telegram svg {
    width: 100%;
    height: 100%;
    fill: #1a1a1a;
    transition: fill 0.3s ease;
}

.nav-telegram:hover svg {
    fill: var(--accent-gold);
}

.nav-telegram-text, .nav-max-text {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-gold);
    font-weight: 500;
}

.nav-max {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-max-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-gold);
    padding: 6px;
    box-shadow: 0 4px 12px rgba(212,175,55,0.3);
    transition: all 0.3s ease;
}

.nav-max:hover .nav-max-icon {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212,175,55,0.4);
}

.nav-max svg {
    width: 100%;
    height: 100%;
    fill: #1a1a1a;
    transition: fill 0.3s ease;
}

.nav-max:hover svg {
    fill: var(--accent-gold);
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 48px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/hero.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: zoom 20s infinite alternate;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(250, 250, 250, 0.95) 0%, rgba(250, 250, 250, 0.7) 40%, rgba(250, 250, 250, 0.2) 100%);
}

@keyframes zoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.hero-content {
    max-width: 650px;
    margin-top: 60px;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 40px;
    margin-bottom: 48px;
    text-align: center;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-surface);
    padding: 40px 32px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: 0.3s;
}

.service-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--accent-gold);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Catalog Teasers (Index page) */
.catalog-teaser-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.catalog-teaser-card {
    display: block;
    position: relative;
    height: 400px;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid var(--border-color);
}

.catalog-teaser-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s ease;
    z-index: 1;
}

.acrylic-teaser::before { background-image: url('assets/images/acrylic.png'); }
.quartz-teaser::before { background-image: url('assets/images/quartz.png'); }

.catalog-teaser-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(250,250,250,0.95) 0%, rgba(250,250,250,0.6) 50%, transparent 100%);
    z-index: 2;
}

.catalog-teaser-card:hover::before { transform: scale(1.05); }

.teaser-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    z-index: 3;
}

.teaser-content h3 {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.teaser-content p {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 24px;
}

/* Page Header (Inner pages) */
.page-header {
    padding: 160px 48px 60px;
    text-align: center;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--accent-gold);
}

.page-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Catalog Grid Inner */
.catalog-page-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 60px 0;
}

.material-card a {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
}

.material-card:hover a {
    transform: scale(1.02);
}

.material-img {
    width: 100%;
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.material-card h4 {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Product Detail Page */
.product-detail {
    padding: 120px 0 60px;
}

.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 80px;
}

.product-image-main {
    width: 100%;
    aspect-ratio: 3/2;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
    transition: background-image 0.3s ease;
    background-color: #f5f5f5;
}

.product-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.product-thumb {
    width: 100px;
    height: 75px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0;
}

.product-thumb:hover, .product-thumb.active {
    border-color: var(--accent-gold);
}

.product-info h1 {
    font-size: 48px;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.product-info .sku {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 32px;
    display: block;
}

.product-specs {
    margin-bottom: 40px;
    background: var(--bg-surface-light);
    padding: 32px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.product-specs h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.spec-list {
    list-style: none;
}

.spec-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.spec-list li:last-child {
    border-bottom: none;
}

.spec-list li::before {
    content: '✓';
    color: var(--accent-gold);
    margin-right: 12px;
    font-weight: bold;
}

.product-examples {
    margin-top: 60px;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.example-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 4px;
    text-align: center;
    transition: 0.3s;
}

.example-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
}

.example-card .icon {
    font-size: 40px;
    margin-bottom: 16px;
    display: block;
}

.example-card h4 {
    font-size: 18px;
    color: var(--text-primary);
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.benefit-item .icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.benefit-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--accent-gold);
}

.benefit-item p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--bg-surface);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-info h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.footer-info p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
    line-height: 1.6;
}

.phone {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-gold) !important;
}

.messenger-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.messenger-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.messenger-link:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(212,175,55,0.05);
}

.messenger-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 20px;
    align-items: flex-start; /* Force icons to align at the top */
}

.messenger-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    color: var(--text-primary);
    transition: 0.3s;
    text-align: center;
    width: 130px; /* Increased for better fit */
}

.messenger-links span {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 3em; /* Fixed space for text */
    line-height: 1.4;
    width: 100%;
}

.messenger-links a:hover {
    color: var(--accent-gold);
}

.messenger-links .nav-telegram-icon, 
.messenger-links .nav-max-icon {
    background: var(--accent-gold);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.messenger-links svg {
    width: 18px;
    height: 18px;
    fill: #FFFFFF;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input, .contact-form textarea {
    background: var(--bg-surface-light);
    border: 1px solid var(--border-color);
    padding: 16px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    border-radius: 2px;
    outline: none;
    transition: 0.3s;
    width: 100%;
}

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

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

/* Responsive */
@media (max-width: 992px) {
    .services-grid, .material-grid, .catalog-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 40px; }
    .hero-actions { flex-direction: column; }
    .services-grid, .material-grid, .footer-grid, .benefits-grid, .catalog-teaser-grid, .catalog-page-grid, .product-hero, .examples-grid {
        grid-template-columns: 1fr;
    }
    .navbar { padding: 16px 24px; }
    .navbar nav { display: none; }
}
