/* ========================================
   PETR — Керамогранит Чебоксары
   Main Stylesheet — Mobile First
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --accent: #c9a84c;
    --accent-hover: #d4b55a;
    --accent-dark: #b89535;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg: #ffffff;
    --bg-light: #f8f8f8;
    --bg-dark: #1a1a2e;
    --border: #e5e5e5;
    --border-light: #eeeeee;
    --success: #28a745;
    --error: #dc3545;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
    --shadow-xl: 0 16px 60px rgba(0,0,0,0.2);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: 0.3s ease;
    --header-height: 70px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

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

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

ul, ol { list-style: none; }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    -webkit-tap-highlight-color: transparent;
}

input, select, textarea {
    font-family: inherit;
    font-size: 16px; /* Prevent iOS zoom */
    border: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container { padding: 0 24px; }
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

.accent { color: var(--accent); }

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    white-space: nowrap;
    border: 2px solid transparent;
    min-height: 48px; /* Touch target */
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}

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

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

.btn-outline-light:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

.btn-sm { padding: 10px 20px; font-size: 13px; min-height: 40px; }
.btn-lg { padding: 18px 36px; font-size: 16px; min-height: 56px; }
.btn-block { width: 100%; }

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition);
    height: var(--header-height);
}

.header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.logo-icon { font-size: 22px; color: var(--accent); }
.logo-accent { color: var(--accent); }

/* Desktop Nav */
.nav {
    display: none;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { width: 100%; }

.header-contacts {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.phone {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    display: none;
}

.phone:hover { color: var(--accent); }

/* Burger */
.burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: all var(--transition);
    border-radius: 2px;
}

.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
    display: flex;
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: var(--bg);
    flex-direction: column;
    padding: calc(var(--header-height) + 20px) 30px 40px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    z-index: 999;
    overflow-y: auto;
}

.mobile-nav.open { right: 0; }

.mobile-nav .nav-link {
    font-size: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav .nav-link::after { display: none; }

.mobile-nav .callback-btn {
    margin-top: 20px;
    width: 100%;
}

/* Nav overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

.nav-overlay.open { display: block; }

@media (min-width: 1024px) {
    .nav { display: flex; }
    .burger { display: none; }
    .phone { display: block; font-size: 15px; }
    .header-contacts .callback-btn { display: inline-flex; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .phone { display: block; }
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #0f3460 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(201,168,76,0.15) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    color: #fff;
    padding: 40px 0;
}

.hero-title {
    color: #fff;
    font-size: clamp(1.8rem, 6vw, 3.5rem);
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: clamp(15px, 3vw, 18px);
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}

@media (min-width: 480px) {
    .hero-actions {
        flex-direction: row;
        gap: 16px;
    }
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
}

@media (min-width: 480px) {
    .hero-features {
        display: flex;
        flex-wrap: wrap;
        gap: 24px;
    }
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.hero-feature-icon { font-size: 18px; }

.hero-scroll {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: rgba(255,255,255,0.6);
    transition: all var(--transition);
    animation: bounce 2s infinite;
}

.scroll-down:hover { border-color: var(--accent); color: var(--accent); }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: 60px 0;
}

@media (min-width: 768px) {
    .section { padding: 100px 0; }
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

@media (min-width: 768px) {
    .section-header { margin: 0 auto 60px; }
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    margin-bottom: 12px;
}

.section-desc {
    font-size: clamp(14px, 3vw, 17px);
    color: var(--text-light);
    line-height: 1.7;
}

/* ========================================
   ABOUT
   ======================================== */
.about { background: var(--bg-light); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .about-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .about-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }
}

.about-card {
    background: var(--bg);
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--border-light);
}

@media (min-width: 768px) {
    .about-card { padding: 36px 28px; }
    .about-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        border-color: var(--accent);
    }
}

.about-icon { font-size: 32px; margin-bottom: 14px; }
.about-card h3 { font-size: 17px; margin-bottom: 10px; }
.about-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ========================================
   PRODUCTS
   ======================================== */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }
}

.product-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
    }
}

.product-image {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .product-image { height: 200px; }
}

.product-image-placeholder {
    color: rgba(255,255,255,0.25);
    width: 80px;
    height: 80px;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.product-body {
    padding: 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .product-body { padding: 28px; }
}

.product-body h3 { font-size: 17px; margin-bottom: 10px; }

.product-body > p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-specs { margin-bottom: 14px; }
.product-specs li { font-size: 13px; color: var(--text-muted); padding: 3px 0; }

.product-price {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
    margin-top: auto;
}

.product-price strong { font-size: 20px; color: var(--primary); }
.product-card .btn { margin-top: auto; }

/* ========================================
   PROCESS
   ======================================== */
.process { background: var(--bg-light); }

.process-timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

@media (min-width: 768px) {
    .process-timeline::before { left: 30px; }
}

.process-step {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    position: relative;
}

@media (min-width: 768px) {
    .process-step { gap: 30px; margin-bottom: 40px; }
}

.process-step:last-child { margin-bottom: 0; }

.process-number {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: var(--accent);
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .process-number { width: 60px; height: 60px; font-size: 18px; }
}

.process-content { padding-top: 8px; }
.process-content h3 { font-size: 16px; margin-bottom: 6px; }
.process-content p { color: var(--text-light); font-size: 14px; }

@media (min-width: 768px) {
    .process-content h3 { font-size: 18px; }
    .process-content p { font-size: 15px; }
}

/* ========================================
   CALCULATOR
   ======================================== */
.calculator {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
}

.calculator .section-tag { color: var(--accent); }
.calculator .section-title { color: #fff; }
.calculator .section-desc { color: rgba(255,255,255,0.7); }

.calc-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 1024px) {
    .calc-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: start;
    }
}

.calc-form-wrap {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    padding: 24px 20px;
    backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
    .calc-form-wrap { padding: 36px; }
}

.calc-group { margin-bottom: 20px; }

.calc-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

.calc-product-select {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

@media (min-width: 480px) {
    .calc-product-select { grid-template-columns: repeat(3, 1fr); }
}

.calc-product-option {
    padding: 12px 10px;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .calc-product-option { font-size: 13px; padding: 12px 16px; }
}

.calc-product-option:hover { border-color: var(--accent); background: rgba(201,168,76,0.15); }
.calc-product-option.active { border-color: var(--accent); background: rgba(201,168,76,0.25); color: var(--accent); }

.calc-tier-select {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

@media (min-width: 480px) {
    .calc-tier-select { grid-template-columns: repeat(4, 1fr); }
}

.calc-tier-option {
    padding: 10px 6px;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    min-height: 44px;
}

.calc-tier-option:hover { border-color: var(--accent); }
.calc-tier-option.active { border-color: var(--accent); background: rgba(201,168,76,0.25); color: var(--accent); }

.calc-dimensions-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 480px) {
    .calc-dimensions-grid {
        flex-direction: row;
        align-items: flex-end;
        gap: 8px;
    }
}

.calc-input-group { flex: 1; }

.calc-input-hint {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 4px;
}

.calc-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 16px; /* Prevent iOS zoom */
    transition: all var(--transition);
    min-height: 48px;
}

.calc-input:focus { border-color: var(--accent); background: rgba(255,255,255,0.15); }
.calc-input::placeholder { color: rgba(255,255,255,0.3); }
.calc-input option { background: var(--primary); color: #fff; }

.calc-dim-sep {
    color: rgba(255,255,255,0.4);
    font-size: 18px;
    padding: 0 4px;
    text-align: center;
    display: none;
}

@media (min-width: 480px) {
    .calc-dim-sep { display: block; padding-bottom: 12px; }
}

.calc-quantity { display: flex; align-items: center; gap: 0; }

.calc-qty-btn {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.calc-qty-btn:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.calc-qty-btn:last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.calc-qty-btn:hover { background: rgba(201,168,76,0.2); border-color: var(--accent); }
.calc-qty-btn:active { background: rgba(201,168,76,0.3); }

.calc-qty-input {
    width: 60px;
    text-align: center;
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.calc-qty-input::-webkit-inner-spin-button,
.calc-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.calc-option-select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 14px;
    margin-bottom: 8px;
    cursor: pointer;
    min-height: 48px;
}

.calc-option-select:focus { border-color: var(--accent); }
.calc-option-select option { background: var(--primary); }

.calc-service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    min-height: 44px;
}

.calc-service-item:last-child { border-bottom: none; }

.calc-service-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    accent-color: var(--accent);
    cursor: pointer;
}

.calc-service-item label {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    flex: 1;
}

.calc-service-price {
    font-size: 13px;
    color: var(--accent);
    white-space: nowrap;
}

/* Calculator Result */
.calc-result-wrap { order: -1; }

@media (min-width: 1024px) {
    .calc-result-wrap {
        order: 0;
        position: sticky;
        top: calc(var(--header-height) + 20px);
    }
}

.calc-result {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-xl);
    padding: 24px 20px;
    backdrop-filter: blur(10px);
    min-height: 200px;
}

@media (min-width: 768px) {
    .calc-result { padding: 36px; min-height: 300px; }
}

.calc-result-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 160px;
    color: rgba(255,255,255,0.4);
    text-align: center;
    font-size: 14px;
}

.calc-result-content h3 { color: #fff; margin-bottom: 16px; font-size: 18px; }

.calc-result-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

@media (min-width: 768px) {
    .calc-result-item { font-size: 14px; padding: 10px 0; }
}

.calc-result-value { color: #fff; font-weight: 500; text-align: right; }

.calc-result-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 16px 0;
    margin-top: 8px;
    border-top: 2px solid var(--accent);
}

.calc-result-total-label { font-size: 15px; font-weight: 600; color: #fff; }
.calc-result-total-value { font-size: clamp(22px, 5vw, 28px); font-weight: 700; color: var(--accent); }

.calc-result-note {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-top: 12px;
    line-height: 1.5;
}

.calc-result-actions { margin-top: 20px; }
.calc-result-actions .btn { color: var(--primary); }

/* ========================================
   GALLERY
   ======================================== */
.gallery { background: var(--bg-light); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all var(--transition);
}

.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    padding: 16px;
    text-align: center;
}

.gallery-placeholder span { font-size: 13px; font-weight: 600; margin-bottom: 4px; }

@media (min-width: 768px) {
    .gallery-placeholder span { font-size: 16px; }
}

.gallery-placeholder small { font-size: 10px; opacity: 0.6; }

@media (min-width: 768px) {
    .gallery-placeholder small { font-size: 12px; }
}

.gallery-note {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

/* ========================================
   REVIEWS
   ======================================== */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .reviews-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }
}

.review-card {
    background: var(--bg);
    padding: 24px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

@media (min-width: 768px) {
    .review-card { padding: 32px; }
}

.review-stars { color: var(--accent); font-size: 16px; margin-bottom: 14px; letter-spacing: 2px; }
.review-text { font-size: 14px; line-height: 1.7; color: var(--text); margin-bottom: 16px; font-style: italic; }

@media (min-width: 768px) {
    .review-text { font-size: 15px; }
}

.review-author strong { display: block; color: var(--primary); font-size: 14px; }
.review-author span { font-size: 12px; color: var(--text-muted); }

/* ========================================
   FAQ
   ======================================== */
.faq { background: var(--bg-light); }

.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
    background: var(--bg);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 18px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition);
    min-height: 56px;
    gap: 12px;
}

@media (min-width: 768px) {
    .faq-question { padding: 20px 24px; font-size: 16px; }
}

.faq-question:hover { color: var(--accent); }

.faq-toggle {
    font-size: 24px;
    color: var(--accent);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-toggle { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer { max-height: 300px; }

.faq-answer p {
    padding: 0 20px 18px;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .faq-answer p { padding: 0 24px 20px; font-size: 15px; }
}

/* ========================================
   CONTACT
   ======================================== */
.contact-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (min-width: 768px) {
    .contact-layout {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        gap: 60px;
        align-items: start;
    }
}

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

.contact-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

@media (min-width: 768px) {
    .contact-card { padding: 24px; }
}

.contact-card h3 { font-size: 15px; margin-bottom: 6px; }
.contact-card p, .contact-card a { font-size: 14px; color: var(--text-light); }
.contact-card a:hover { color: var(--accent); }

.contact-social {
    display: inline-block;
    margin-right: 12px;
    color: var(--accent) !important;
}

.contact-form-wrap {
    background: var(--bg);
    padding: 28px 20px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

@media (min-width: 768px) {
    .contact-form-wrap { padding: 40px; }
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-light);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 16px;
    color: var(--text);
    transition: all var(--transition);
    min-height: 48px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: var(--bg);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

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

.form-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    accent-color: var(--accent);
    margin-top: 2px;
}

.form-note {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 12px;
}

.form-success { text-align: center; padding: 32px 20px; }

.form-success-icon {
    width: 56px;
    height: 56px;
    background: var(--success);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
}

.form-success h3 { margin-bottom: 8px; font-size: 18px; }
.form-success p { color: var(--text-light); font-size: 14px; }

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    padding: 40px 0 24px;
}

@media (min-width: 768px) {
    .footer { padding: 60px 0 30px; }
}

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

@media (min-width: 480px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.footer-col p { font-size: 13px; line-height: 1.7; }

.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }

@media (min-width: 768px) {
    .footer-col h4 { font-size: 16px; margin-bottom: 16px; }
}

.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        font-size: 13px;
    }
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent); }

/* ========================================
   MODAL
   ======================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

@media (min-width: 768px) {
    .modal { align-items: center; }
}

.modal.active { display: flex; }

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 28px 24px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-xl);
    animation: modalSlideUp 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@media (min-width: 768px) {
    .modal-content {
        border-radius: var(--radius-xl);
        padding: 40px;
        animation: modalIn 0.3s ease;
    }
}

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

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-muted);
    border-radius: 50%;
    transition: all var(--transition);
    min-width: 44px;
    min-height: 44px;
}

.modal-close:hover { background: var(--bg-light); color: var(--text); }

.modal-content h3 { margin-bottom: 6px; font-size: 20px; }
.modal-content > p { color: var(--text-light); font-size: 14px; margin-bottom: 20px; }

.modal-form .form-group { margin-bottom: 14px; }

.modal-form .form-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-light);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: all var(--transition);
}

.modal-form .form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

/* ========================================
   UTILITIES
   ======================================== */
section[id] { scroll-margin-top: calc(var(--header-height) + 16px); }

/* Prevent body scroll when modal open */
body.modal-open { overflow: hidden; }

/* Touch optimization */
@media (hover: none) {
    .about-card:hover { transform: none; }
    .product-card:hover { transform: none; }
    .gallery-item:hover { transform: none; }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
    .header-inner { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
    .container { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
}
