/* ============================================================
   Bazaltový lom Čamovce – Main Stylesheet
   ============================================================ */

:root {
    --stone-900: #1a1a1a;
    --stone-800: #2d2d2d;
    --stone-700: #3d3d3d;
    --stone-600: #5a5a5a;
    --stone-400: #9a9a9a;
    --stone-200: #e8e8e8;
    --stone-100: #f4f4f4;
    --stone-50:  #fafafa;

    --accent:      #4a4a4a;
    --accent-dark: #222222;
    --accent-light: #b0b0b0;

    --white: #ffffff;
    --black: #111111;

    --radius: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
    --shadow-md: 0 6px 24px rgba(0,0,0,.12);
    --shadow-lg: 0 16px 48px rgba(0,0,0,.18);

    --nav-h: 72px;
    --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* ── Inline text editing ── */
.te {
    display: inline;
    border-radius: 3px;
    outline: none;
    transition: background .2s, box-shadow .2s;
    cursor: text;
    position: relative;
}
.te:hover {
    background: rgba(0,0,0,.06);
    box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}
/* On dark backgrounds (hero, pricing) */
#hero .te:hover,
#pricing .te:hover {
    background: rgba(255,255,255,.12);
    box-shadow: 0 0 0 3px rgba(255,255,255,.12);
}
.te:focus {
    background: rgba(255,255,255,.92);
    box-shadow: 0 0 0 3px rgba(74,74,74,.25);
    color: #111;
}
#hero .te:focus,
#pricing .te:focus {
    background: rgba(255,255,255,.95);
    color: #111;
    box-shadow: 0 0 0 3px rgba(255,255,255,.5);
}
.te--saving { opacity: .5; }
.te--saved  { background: rgba(100,210,130,.25) !important; box-shadow: 0 0 0 3px rgba(100,210,130,.25) !important; }
.te--error  { background: rgba(220,60,60,.15)  !important; box-shadow: 0 0 0 3px rgba(220,60,60,.2)  !important; }

.edit-mode-badge {
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30,30,30,.88);
    color: rgba(255,255,255,.85);
    font-size: .75rem;
    font-weight: 500;
    padding: .4rem 1rem;
    border-radius: 100px;
    z-index: 800;
    pointer-events: none;
    letter-spacing: .03em;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    color: var(--stone-800);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.section-label {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .75rem;
}
.section-title {
    color: var(--stone-900);
    margin-bottom: 1rem;
}
.section-sub {
    color: var(--stone-600);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}
.text-center { text-align: center; }

/* ── Layout ── */
.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
section { padding: 6rem 0; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.8rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent);
    color: var(--white);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,.5);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn-dark {
    background: var(--stone-900);
    color: var(--white);
}
.btn-dark:hover { background: var(--stone-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ── NAV ── */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 1000;
    transition: background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
    background: rgba(26,26,26,.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.nav-logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    background: var(--white);
    border-radius: 8px;
    padding: 4px 8px;
    transition: opacity var(--transition);
}
.nav-logo-img:hover { opacity: .9; }

.nav-links {
    display: flex;
    align-items: center;
    gap: .25rem;
}
.nav-links a {
    color: rgba(255,255,255,.85);
    font-size: .9rem;
    font-weight: 500;
    padding: .4rem .75rem;
    border-radius: 6px;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.1); }

.nav-lang {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-left: .5rem;
}
.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    transition: var(--transition);
    border: 2px solid transparent;
}
.lang-btn.active {
    background: var(--accent);
    color: var(--white);
}
.lang-btn:not(.active) {
    color: rgba(255,255,255,.7);
    border-color: rgba(255,255,255,.25);
}
.lang-btn:not(.active):hover {
    color: var(--white);
    border-color: rgba(255,255,255,.6);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    border: none;
    background: none;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile menu */
.nav-mobile {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(20,20,20,.98);
    backdrop-filter: blur(16px);
    padding: 1.5rem;
    z-index: 999;
    flex-direction: column;
    gap: .25rem;
    border-top: 1px solid rgba(255,255,255,.08);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
    color: rgba(255,255,255,.85);
    font-size: 1rem;
    font-weight: 500;
    padding: .75rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
}
.nav-mobile a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav-mobile .mobile-lang {
    display: flex;
    gap: .5rem;
    padding: .75rem 1rem 0;
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: .5rem;
}

/* ── HERO ── */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,.4) 60%, rgba(0,0,0,.65) 100%),
        url('../assets/img/hero-bg.jpg') center/cover no-repeat;
}
.hero-bg-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #3d3d3d 40%, #2a2a2a 100%);
}
.hero-particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(180,180,180,.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(180,180,180,.08) 0%, transparent 50%);
}
.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
    padding: var(--nav-h) 1.5rem 2rem;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
    background: rgba(180,180,180,.12);
    border: 1px solid rgba(180,180,180,.25);
    padding: .4rem 1rem;
    border-radius: 100px;
}
.hero-content h1 {
    color: var(--white);
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,.85);
    margin-bottom: 2.5rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-change-bg {
    position: absolute;
    top: calc(var(--nav-h) + 1rem);
    right: 1.5rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(0,0,0,.45);
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.8);
    font-size: .78rem;
    font-weight: 500;
    padding: .4rem .85rem;
    border-radius: 6px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: var(--transition);
}
.hero-change-bg:hover {
    background: rgba(0,0,0,.65);
    border-color: rgba(255,255,255,.45);
    color: var(--white);
}
.hero-bg-status {
    position: absolute;
    top: calc(var(--nav-h) + 3.5rem);
    right: 1.5rem;
    z-index: 2;
    background: rgba(0,0,0,.6);
    color: rgba(255,255,255,.9);
    font-size: .78rem;
    padding: .35rem .85rem;
    border-radius: 6px;
    backdrop-filter: blur(6px);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    color: rgba(255,255,255,.5);
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}
.hero-scroll svg { width: 20px; height: 20px; }
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── ABOUT ── */
#about { background: var(--stone-50); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #2d2d2d 0%, #404040 100%);
}
.about-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-img-change {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(0,0,0,.5);
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.85);
    font-size: .78rem;
    font-weight: 500;
    padding: .4rem .85rem;
    border-radius: 6px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: var(--transition);
    z-index: 2;
}
.about-img-change:hover {
    background: rgba(0,0,0,.7);
    border-color: rgba(255,255,255,.45);
    color: var(--white);
}
.about-img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.5);
    gap: 1rem;
}
.about-img-placeholder svg { width: 60px; height: 60px; opacity: .4; }
.about-badge {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    background: var(--accent);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}
.about-badge strong { display: block; font-size: 1.8rem; line-height: 1; }
.about-badge span { font-size: .8rem; opacity: .9; }

.about-text p { color: var(--stone-600); margin-bottom: 1rem; }
.about-text p:last-of-type { margin-bottom: 2rem; }

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--stone-200);
}
.stat-card .num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.1;
}
.stat-card .lbl {
    font-size: .78rem;
    color: var(--stone-600);
    margin-top: .25rem;
    line-height: 1.3;
}

/* ── PRODUCTS ── */
#products { background: var(--white); }
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.product-card {
    background: var(--stone-50);
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--accent-light); }
.product-card:hover::before { transform: scaleX(1); }

.product-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--white);
}
.product-icon svg { width: 24px; height: 24px; }
.product-card h3 { color: var(--stone-900); margin-bottom: .5rem; font-size: 1.05rem; }
.product-card p { color: var(--stone-600); font-size: .9rem; line-height: 1.6; }

/* ── PRICING ── */
#pricing { background: var(--stone-900); }
#pricing .section-label { color: var(--accent-light); }
#pricing .section-title { color: var(--white); }
#pricing .section-sub { color: rgba(255,255,255,.6); }

.pricing-note {
    background: rgba(180,180,180,.1);
    border: 1px solid rgba(180,180,180,.25);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    color: rgba(255,255,255,.75);
    font-size: .9rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.pricing-table-wrap {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}
.pricing-table {
    width: 100%;
    border-collapse: collapse;
}
.pricing-table th {
    background: rgba(180,180,180,.15);
    color: var(--accent-light);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 1rem 1.5rem;
    text-align: left;
}
.pricing-table th:nth-child(2),
.pricing-table th:nth-child(3) { text-align: right; }
.pricing-table td {
    padding: .85rem 1.5rem;
    color: rgba(255,255,255,.85);
    font-size: .9rem;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.pricing-table td:nth-child(2) { text-align: right; font-weight: 600; color: rgba(255,255,255,.7); }
.pricing-table td:nth-child(3) { text-align: right; font-weight: 700; color: var(--accent-light); }
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table tr:hover td { background: rgba(255,255,255,.03); }

/* ── Admin table controls ── */
.price-actions {
    text-align: center;
    width: 44px;
    padding: .85rem .5rem !important;
}
.btn-delete-row {
    background: none;
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.3);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.btn-delete-row:hover {
    border-color: #fca5a5;
    color: #fca5a5;
    background: rgba(252,165,165,.08);
}

/* ── Drag & drop categories ── */
.pricing-group-header[draggable="true"] { cursor: grab; }
.pricing-group-header[draggable="true"]:active { cursor: grabbing; }

.drag-handle {
    display: inline-flex;
    align-items: center;
    margin-right: .6rem;
    opacity: .35;
    transition: opacity var(--transition);
    vertical-align: middle;
}
.pricing-group-header[draggable="true"]:hover .drag-handle { opacity: .75; }

.cat-dragging { opacity: .35; }

.pricing-group-header.drop-above td {
    box-shadow: inset 0 3px 0 0 rgba(255,255,255,.5);
}
.pricing-group-header.drop-below td {
    box-shadow: inset 0 -3px 0 0 rgba(255,255,255,.5);
}

.pricing-group-header.cat-empty td {
    opacity: .5;
    font-style: italic;
}
.cat-empty-badge {
    display: inline-block;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.45);
    padding: .15rem .55rem;
    border-radius: 4px;
    margin-left: .75rem;
    vertical-align: middle;
    font-style: normal;
}

.pricing-add-cat-row td {
    padding: .75rem 1.5rem !important;
    border-top: 1px dashed rgba(255,255,255,.1);
    border-bottom: none;
}
.btn-add-category {
    background: none;
    border: 1px dashed rgba(255,255,255,.25);
    color: rgba(255,255,255,.5);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    padding: .5rem 1.1rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
    transition: var(--transition);
}
.btn-add-category:hover {
    border-color: rgba(255,255,255,.6);
    color: rgba(255,255,255,.9);
    background: rgba(255,255,255,.06);
}

.pricing-add-row td {
    padding: .4rem 1.5rem !important;
    border-bottom: none;
}
.btn-add-product {
    background: none;
    border: 1px dashed rgba(255,255,255,.18);
    color: rgba(255,255,255,.4);
    font-size: .8rem;
    font-weight: 500;
    padding: .4rem .9rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
    transition: var(--transition);
}
.btn-add-product:hover {
    border-color: rgba(255,255,255,.5);
    color: rgba(255,255,255,.8);
    background: rgba(255,255,255,.05);
}

.req { color: #fca5a5; margin-left: 2px; }
.req-note { color: rgba(0,0,0,.35); font-size: .75rem; font-weight: 400; }

/* Inline editable price cells */
td.price-cell[contenteditable="true"] {
    cursor: text;
    border-radius: 4px;
    transition: background var(--transition), outline var(--transition);
    outline: 1px dashed rgba(255,255,255,.2);
}
td.price-cell[contenteditable="true"]:hover {
    background: rgba(255,255,255,.06);
    outline-color: rgba(255,255,255,.35);
}
td.price-cell[contenteditable="true"]:focus {
    background: rgba(255,255,255,.1);
    outline: 2px solid rgba(255,255,255,.5);
    outline-offset: 2px;
}
td.price-saving { opacity: .5; }
td.price-saved  { color: #6ee7a0 !important; }
td.price-error  { color: #fca5a5 !important; outline: 2px solid #fca5a5 !important; }

.pricing-group-header td {
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.5) !important;
    font-size: .75rem !important;
    font-weight: 700 !important;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .6rem 1.5rem !important;
}

.pricing-updated {
    text-align: center;
    color: rgba(255,255,255,.4);
    font-size: .82rem;
    margin-bottom: 1.75rem;
}
.pricing-updated strong { color: rgba(255,255,255,.65); font-weight: 600; }

.pricing-pdf {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.btn-pdf {
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.25);
    color: var(--white);
    font-size: .95rem;
    transition: var(--transition);
}
.btn-pdf:hover {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.5);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-pdf--disabled {
    opacity: .35;
    pointer-events: none;
}
.pdf-upload-wrap {
    display: flex;
    align-items: center;
    gap: .6rem;
}
.btn-upload-pdf {
    background: none;
    border: 1px dashed rgba(255,255,255,.25);
    color: rgba(255,255,255,.5);
    font-size: .8rem;
    font-weight: 500;
    padding: .45rem .9rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
    transition: var(--transition);
}
.btn-upload-pdf:hover {
    border-color: rgba(255,255,255,.5);
    color: rgba(255,255,255,.85);
}
#pdfStatus {
    font-size: .8rem;
    color: rgba(255,255,255,.55);
}

.pricing-cta { text-align: center; }
.pricing-cta p { color: rgba(255,255,255,.6); margin-bottom: 1rem; }

/* ── GALLERY ── */
#gallery { background: var(--stone-100); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 1rem;
}
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #2d2d2d, #404040);
    position: relative;
    cursor: pointer;
}
.gallery-item:first-child:not(.gallery-add-btn),
.gallery-item.gallery-first { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.3);
    gap: .5rem;
    font-size: .8rem;
}
.gallery-placeholder svg { width: 32px; height: 32px; opacity: .3; }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.4);
    opacity: 0;
    transition: opacity .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}
.gallery-overlay svg { width: 36px; height: 36px; }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ── Gallery admin controls ── */
.gallery-item.gallery-admin { cursor: grab; }
.gallery-item.gallery-admin:active { cursor: grabbing; }

.gallery-admin-bar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem .6rem;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
    opacity: 0;
    transition: opacity .25s;
}
.gallery-item.gallery-admin:hover .gallery-admin-bar { opacity: 1; }

.gallery-drag-handle {
    color: rgba(255,255,255,.7);
    cursor: grab;
    display: flex;
    align-items: center;
    margin-right: auto;
}
.gallery-drag-handle:active { cursor: grabbing; }

.gallery-preview-btn,
.gallery-delete-btn {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.2);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.gallery-preview-btn:hover { background: rgba(255,255,255,.3); }
.gallery-delete-btn:hover  { background: rgba(220,50,50,.6); border-color: transparent; }

.gallery-item.gallery-dragging { opacity: .35; transform: scale(.97); }
.gallery-item.gallery-drop-over { outline: 2px solid rgba(255,255,255,.6); outline-offset: -2px; }

/* Add photo button */
.gallery-add-btn {
    border: 2px dashed rgba(0,0,0,.2);
    background: rgba(0,0,0,.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    cursor: pointer;
    color: rgba(0,0,0,.35);
    font-size: .85rem;
    font-weight: 500;
    transition: var(--transition);
    aspect-ratio: 1;
}
.gallery-add-btn:hover {
    border-color: rgba(0,0,0,.4);
    color: rgba(0,0,0,.6);
    background: rgba(0,0,0,.06);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); }
.lightbox-close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: none; border: none;
    color: var(--white);
    cursor: pointer;
    opacity: .7;
    transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-close svg { width: 32px; height: 32px; }

/* ── CONTACT ── */
#contact { background: var(--white); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}
.contact-info h3 { color: var(--stone-900); margin-bottom: 2rem; }
.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.contact-item-icon {
    width: 44px;
    height: 44px;
    background: var(--stone-100);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}
.contact-item-icon svg { width: 22px; height: 22px; }
.contact-item-text label {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--stone-400);
    margin-bottom: .2rem;
}
.contact-item-text a,
.contact-item-text p {
    color: var(--stone-800);
    font-size: .95rem;
    font-weight: 500;
}
.contact-item-text a:hover { color: var(--accent); }

.contact-divider {
    border: none;
    border-top: 1px solid var(--stone-200);
    margin: 1.5rem 0;
}
.contact-company { font-size: .85rem; color: var(--stone-600); line-height: 1.8; }
.contact-company strong { color: var(--stone-800); }

/* Map */
.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 200px;
    margin-top: 1.5rem;
    background: var(--stone-200);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; }

/* Form */
.contact-form-wrap {
    background: var(--stone-50);
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}
.contact-form-wrap h3 { color: var(--stone-900); margin-bottom: 1.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--stone-600);
    margin-bottom: .5rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 1.5px solid var(--stone-200);
    border-radius: var(--radius);
    font-size: .95rem;
    font-family: inherit;
    color: var(--stone-800);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(180,180,180,.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; justify-content: center; font-size: 1rem; padding: .9rem; }

.form-msg {
    padding: .9rem 1rem;
    border-radius: var(--radius);
    font-size: .9rem;
    margin-bottom: 1rem;
    display: none;
}
.form-msg.success { background: #d4edda; color: #1a5c2a; border: 1px solid #a8d5b5; display: block; }
.form-msg.error   { background: #f8d7da; color: #721c24; border: 1px solid #f1aeb5; display: block; }

/* ── FOOTER ── */
footer {
    background: var(--stone-900);
    color: rgba(255,255,255,.6);
    padding: 2.5rem 0;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-logo { display: flex; align-items: center; }
.footer-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    background: var(--white);
    border-radius: 8px;
    padding: 4px 8px;
    opacity: .9;
}
.footer-copy { font-size: .82rem; text-align: center; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: .82rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }

/* ── Footer auth group ── */
.footer-auth-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: .45rem;
}

/* ── Footer lock ── */
.footer-lock {
    background: none;
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.35);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.footer-lock:hover {
    border-color: rgba(255,255,255,.4);
    color: rgba(255,255,255,.7);
}
.footer-lock.is-logged-in {
    border-color: rgba(100,200,120,.4);
    color: rgba(100,200,120,.7);
}
.footer-lock.is-logged-in:hover {
    border-color: rgba(100,200,120,.8);
    color: rgba(100,200,120,1);
}

/* ── Modals ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.open { display: flex; }

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem 2rem;
    width: 100%;
    max-width: 380px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalIn .2s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(.96) translateY(8px); }
    to   { opacity: 1; transform: scale(1)  translateY(0); }
}

.modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: none;
    border: none;
    color: var(--stone-400);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    transition: var(--transition);
}
.modal-close:hover { color: var(--stone-800); background: var(--stone-100); }

.modal-icon {
    width: 56px;
    height: 56px;
    background: var(--stone-100);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--stone-600);
}
.modal-icon--green {
    background: #e8f5ec;
    color: #2d8a4e;
}

.modal h3 {
    text-align: center;
    color: var(--stone-900);
    font-size: 1.25rem;
    margin-bottom: .25rem;
}
.modal-sub {
    text-align: center;
    color: var(--stone-400);
    font-size: .88rem;
    margin-bottom: 1.75rem;
}
.modal-sub strong { color: var(--stone-700); }

.modal-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: var(--radius);
    padding: .65rem 1rem;
    font-size: .85rem;
    margin-bottom: 1rem;
    text-align: center;
}
.modal-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    border-radius: var(--radius);
    padding: .65rem 1rem;
    font-size: .85rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* ── SEO Editor ── */
.nav-left {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-shrink: 0;
}
.seo-edit-btn {
    display: flex;
    align-items: center;
    gap: .35rem;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.22);
    color: rgba(255,255,255,.9);
    padding: .3rem .6rem;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.seo-edit-btn:hover { background: rgba(255,255,255,.24); color: var(--white); }

.seo-modal { max-width: 580px; }
.seo-modal .form-group textarea { min-height: 80px; }

.seo-lang-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--stone-100);
    margin-bottom: 1.25rem;
}
.seo-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: .45rem 1.1rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--stone-400);
    cursor: pointer;
    transition: color var(--transition);
}
.seo-tab:hover { color: var(--stone-700); }
.seo-tab.active { color: var(--accent-dark); border-bottom-color: var(--accent); }

.seo-panel[hidden] { display: none; }

.seo-field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .4rem;
}
.form-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.seo-counter {
    font-size: .75rem;
    font-weight: 400;
    color: var(--stone-400);
    font-variant-numeric: tabular-nums;
    margin-left: auto;
}
.seo-counter.warn { color: #c97800; }
.seo-counter.over { color: #b91c1c; font-weight: 700; }
.seo-hint {
    font-size: .75rem;
    color: var(--stone-400);
    margin-top: .3rem;
    line-height: 1.4;
}
.seo-modal-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: .5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--stone-100);
}
.seo-status-ok  { font-size: .875rem; color: #2d8a4e; }
.seo-status-err { font-size: .875rem; color: #b91c1c; }

/* ── Manual modal ── */
.manual-overlay { padding: .75rem; }

.manual-modal {
    max-width: min(960px, 96vw);
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    max-height: 92vh;
}

.manual-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem 1.25rem 1.75rem;
    border-bottom: 1px solid var(--stone-100);
    flex-shrink: 0;
}
.man-header-icon {
    width: 48px;
    height: 48px;
    background: var(--stone-900);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}
.manual-header h3 {
    text-align: left;
    margin: 0 0 .1rem;
    font-size: 1.15rem;
}
.manual-header .modal-sub { text-align: left; margin: 0; }
.manual-modal > .modal-close { top: 1rem; right: 1rem; }

.manual-body {
    overflow-y: auto;
    padding: 1.25rem 1.5rem 1.75rem;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .875rem;
    align-items: start;
}
.manual-body::-webkit-scrollbar { width: 5px; }
.manual-body::-webkit-scrollbar-track { background: transparent; }
.manual-body::-webkit-scrollbar-thumb { background: var(--stone-200); border-radius: 3px; }

.man-section {
    background: #fafafa;
    border: 1px solid var(--stone-100);
    border-radius: 10px;
    padding: 1rem 1.1rem 1.1rem;
    border-top: 3px solid var(--mc, var(--accent));
}

.man-heading {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .88rem;
    font-weight: 700;
    color: var(--stone-800);
    margin: 0 0 .75rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid var(--stone-100);
}
.man-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: var(--mc, var(--accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.man-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.man-list li {
    font-size: .82rem;
    color: var(--stone-600);
    line-height: 1.55;
    padding-left: .9rem;
    position: relative;
}
.man-list li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--stone-300);
}
.man-list strong { color: var(--stone-800); font-weight: 600; }
.man-list kbd {
    display: inline-block;
    background: var(--white);
    border: 1px solid var(--stone-200);
    border-bottom-width: 2px;
    border-radius: 4px;
    padding: 0 .4rem;
    font-size: .75rem;
    font-family: ui-monospace, monospace;
    color: var(--stone-700);
    line-height: 1.7;
    white-space: nowrap;
}
.man-list code {
    background: var(--stone-100);
    border-radius: 3px;
    padding: .05rem .35rem;
    font-size: .78rem;
    font-family: ui-monospace, monospace;
    color: var(--stone-700);
}

@media (max-width: 640px) {
    .manual-body { grid-template-columns: 1fr; }
    .manual-header { padding: 1rem 1.25rem; }
}

/* ── Scroll to top ── */
#scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--transition), transform var(--transition);
    z-index: 900;
}
#scroll-top.visible { opacity: 1; transform: translateY(0); }
#scroll-top:hover { background: var(--accent-dark); }
#scroll-top svg { width: 20px; height: 20px; }

/* ── Animations ── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-item.gallery-first { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 768px) {
    :root { --nav-h: 64px; }
    section { padding: 4rem 0; }

    .nav-links, .nav-lang { display: none; }
    .nav-toggle { display: flex; }

    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-img-wrap { aspect-ratio: 16/9; }
    .about-badge { bottom: .5rem; right: .5rem; }
    .about-stats { grid-template-columns: repeat(3, 1fr); }

    .products-grid { grid-template-columns: 1fr; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item.gallery-first { grid-column: span 2; }

    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .form-row { grid-template-columns: 1fr; }

    .footer-inner { flex-direction: column; text-align: center; }

    .pricing-table th, .pricing-table td { padding: .75rem 1rem; }

    .hero-ctas { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .about-stats { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .gallery-item.gallery-first { grid-column: span 2; }
    .contact-form-wrap { padding: 1.5rem; }
}
