/* ==========================================================================
   Сайт за мебели по поръчка — стилове
   Без външни шрифтове и библиотеки (по-бързо и без проследяване).
   Заглавията са със серифен шрифт от системата (Palatino / Georgia).
   ========================================================================== */

:root {
    --ink: #2b1e16;
    --ink-2: #35271e;
    --ink-3: #47372d;
    --accent: #d4a373;
    --accent-2: #bb8f65;
    --accent-hover: #ddb68f;
    --accent-text: #92653a;
    --on-accent: #2b1e16;
    --accent-rgb: 212, 163, 115;
    --ink-rgb: 43, 30, 22;
    --bg: #f7f2ea;
    --bg-alt: #efe6d8;
    --card: #fffdf9;
    --text: #2b221b;
    --muted: #6d6056;
    --line: #e7dccc;
    --field: #d9ccb9;
    --soft: #eadccb;
    --soft-2: #cdbba8;
    --ok: #17724a;
    --ok-bg: #e7f6ee;
    --err: #b3261e;
    --err-bg: #fdeceb;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(var(--ink-rgb), .06), 0 10px 28px rgba(var(--ink-rgb), .08);
    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-head: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif", "DejaVu Serif", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; font-family: var(--font-head); font-weight: 700; letter-spacing: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.icon { flex: none; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }

/* ---------- Бутони ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 12px; border: 2px solid transparent;
    font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px rgba(var(--accent-rgb), .28); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }

/* ---------- Хедър ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(var(--ink-rgb), .96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
/* Лого и име на един ред, слоганът — под тях (може да е по-дълъг) */
.brand {
    display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; row-gap: 3px;
    padding-block: 8px; text-decoration: none; color: #fff; min-width: 0;
}
.brand-name { font-family: var(--font-head); font-size: 1.22rem; line-height: 1.1; letter-spacing: .01em; white-space: nowrap; }
.brand-sub { grid-column: 1 / -1; max-width: 300px; color: var(--soft-2); font-size: .78rem; line-height: 1.25; }
.site-nav li a { white-space: nowrap; }
/* Името е в самото лого: логото е по-голямо, слоганът остава под него */
.brand-logo-only { grid-template-columns: auto; }
.brand.brand-logo-only img { height: 38px; max-width: 220px; }
/* Слоганът до логото (Админ → Общи): логото е отляво на два реда, вдясно — името и слоганът */
.brand.brand-side { grid-template-columns: auto auto; column-gap: 12px; row-gap: 1px; }
.brand.brand-side img { grid-row: 1 / 3; height: 40px; }
.brand-side .brand-name { align-self: end; }
.brand-side .brand-sub { grid-column: 2; align-self: start; }
.brand-side.brand-logo-only .brand-sub { grid-row: 1 / 3; align-self: center; }

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav li a {
    display: block; padding: 8px 12px; border-radius: 10px;
    color: var(--soft); text-decoration: none; font-weight: 600; font-size: .98rem;
}
.site-nav li a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.site-nav li a[aria-current="page"] { color: var(--accent); }
.nav-call { padding: 9px 16px; }

.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; border-radius: 10px; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(var(--accent-rgb), .22), transparent 60%),
        radial-gradient(700px 400px at -10% 110%, rgba(150, 96, 56, .28), transparent 60%),
        linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
}
.hero::after {   /* фини вертикални „жилки“ като на дърво */
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
    background-image:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 9px, rgba(255, 255, 255, .018) 9px 10px, transparent 10px 23px);
    mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
}
.hero-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center;
    padding-block: 72px 110px;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
    color: var(--accent); margin-bottom: 16px;
}
.eyebrow-dark { color: var(--accent-text); margin-bottom: 8px; }
.hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); font-weight: 700; }
.lead { font-size: 1.15rem; color: #e2d4c3; margin-top: 18px; max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; color: var(--soft); font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .icon { color: var(--accent); }

.hl {
    color: var(--accent); font-style: italic;
    background: linear-gradient(transparent 84%, rgba(var(--accent-rgb), .3) 84%);
}

.hero-visual { position: relative; justify-self: center; width: min(100%, 520px); }
.hero-visual img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); animation: float 7s ease-in-out infinite; }
.badge {
    position: absolute; display: flex; align-items: center; gap: 12px;
    padding: 12px 16px 12px 12px; border-radius: 16px;
    background: rgba(255, 255, 255, .96); color: var(--ink);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
}
.badge small { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.badge strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.badge-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--on-accent); }
.badge-a { left: -6%; top: 14%; }
.badge-b { right: -4%; bottom: 10%; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Лента „спешен проблем“, застъпва края на hero */
.quickbar {
    position: relative; z-index: 2; margin-top: -40px;
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    padding: 20px 24px; border-radius: 18px;
    background: var(--accent); color: var(--on-accent);
    box-shadow: 0 18px 40px rgba(var(--ink-rgb), .18);
}
.quickbar-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: var(--accent); flex: none; }
.quickbar-text { flex: 1 1 280px; display: flex; flex-direction: column; }
.quickbar-text strong { font-size: 1.15rem; }
.quickbar-text span { font-size: .97rem; }

/* ---------- Секции ---------- */
.section { padding-block: 76px; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: var(--ink); }
.section-lead { color: var(--muted); margin-top: 10px; }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
    position: relative; overflow: hidden;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; display: flex; flex-direction: column; gap: 10px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--field); }
.card:hover::before { transform: scaleX(1); }
.card-no { position: absolute; top: 22px; right: 24px; font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; color: #ece2d3; }
.service .card-icon { margin-bottom: 6px; }
.card h3 { font-size: 1.15rem; color: var(--ink); }
.card p { color: var(--muted); font-size: .98rem; }
.card-icon {
    display: inline-grid; place-items: center; width: 52px; height: 52px; flex: none;
    border-radius: 14px; background: var(--ink); color: var(--accent);
}
.card-link {
    margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px;
    font-weight: 700; color: var(--ink); text-decoration: none; font-size: .95rem;
}
.card-link:hover { color: var(--accent-text); }

/* ---------- За нас ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.about-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: var(--ink); margin-bottom: 18px; }
.about-copy p:not(.eyebrow) { color: var(--muted); margin-top: 12px; max-width: 60ch; }
.about-stat {
    display: inline-flex; align-items: center; gap: 16px; margin-top: 26px;
    padding: 16px 22px 16px 16px; border-radius: var(--radius);
    background: var(--card); border: 1px solid var(--line);
}
.about-stat strong { display: block; font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.about-stat div span { color: var(--muted); font-size: .95rem; }

.about-projects {
    background: var(--ink); color: #fff; border-radius: 22px; padding: 30px;
    box-shadow: var(--shadow);
    background-image: radial-gradient(500px 220px at 100% 0%, rgba(var(--accent-rgb), .16), transparent 60%);
}
.about-projects h3 { font-size: 1.15rem; margin-bottom: 18px; }
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.projects li {
    display: flex; align-items: center; gap: 12px; padding: 14px;
    border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
    font-weight: 600; line-height: 1.3;
    transition: border-color .2s ease, background .2s ease;
}
.projects li:hover { border-color: rgba(var(--accent-rgb), .55); background: rgba(255, 255, 255, .08); }
.projects li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.project-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgba(var(--accent-rgb), .14); color: var(--accent); }
.about-projects .card-link { color: var(--accent); margin-top: 20px; }
.about-projects .card-link:hover { color: #fff; }

/* ---------- Цени ---------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.price-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; display: flex; flex-direction: column; gap: 8px;
}
.price-card h3 { font-size: 1.05rem; color: var(--ink); margin-top: 8px; }
.price { font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-text { color: var(--muted); font-size: .94rem; }
.price-note {
    margin-top: 24px; padding: 14px 18px; border-left: 4px solid var(--accent);
    background: var(--card); border-radius: 0 12px 12px 0; color: var(--muted); font-size: .95rem;
    display: flex; gap: 10px; align-items: flex-start;
}
.price-note .icon { color: var(--accent-text); margin-top: 3px; }

/* Тъмна секция (цени) */
.section-dark {
    color: #fff;
    background:
        radial-gradient(800px 360px at 100% 0%, rgba(var(--accent-rgb), .14), transparent 60%),
        linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
}
.section-dark .section-head h2 { color: #fff; }
.section-dark .section-lead { color: var(--soft-2); }
.section-dark .price-card {
    background: rgba(255, 255, 255, .045); border-color: rgba(255, 255, 255, .12);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.section-dark .price-card:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), .6); background: rgba(255, 255, 255, .07); }
.section-dark .price-card h3 { color: #fff; }
.section-dark .price { color: var(--accent); }
.section-dark .price small, .section-dark .price-text { color: var(--soft-2); }
.section-dark .card-icon { background: rgba(var(--accent-rgb), .14); color: var(--accent); }
.section-dark .price-note { background: rgba(255, 255, 255, .06); color: var(--soft); }
.section-dark .price-note .icon { color: var(--accent); }

/* ---------- Стъпки ---------- */
.steps { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 28px; }
.steps li { position: relative; padding: 4px 0 0 0; }
.steps li:not(:last-child)::after {
    content: ""; position: absolute; top: 26px; left: 60px; right: -14px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--field) 0 8px, transparent 8px 14px);
}
.step-no {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--accent); color: var(--on-accent); font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
}
.steps h3 { margin-top: 14px; font-size: 1.15rem; color: var(--ink); }
.steps p { margin-top: 6px; color: var(--muted); }

/* ---------- Галерия ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.g-item {
    --ease: cubic-bezier(.22, .61, .36, 1);
    position: relative; display: block; overflow: hidden; border-radius: 14px; isolation: isolate;
    aspect-ratio: 4 / 3; background: var(--ink-2); text-decoration: none;
}
/* Снимката: лек зум (6%) с плавен преход */
.g-item img {
    width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.001); backface-visibility: hidden;
    transition: transform .8s cubic-bezier(.25, .46, .45, .94), filter .8s ease;
}
/* Затъмняване отдолу — избледнява плавно */
.g-item::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(to top, rgba(var(--ink-rgb), .78) 0%, rgba(var(--ink-rgb), .2) 45%, rgba(var(--ink-rgb), 0) 70%);
    opacity: 0; transition: opacity .7s ease;
}
/* Иконка „преглед“ горе вдясно */
.g-item::before {
    content: ""; position: absolute; top: 14px; right: 14px; z-index: 2; pointer-events: none;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(var(--ink-rgb), .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4.5-4.5M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") center / 20px no-repeat;
    opacity: 0; transform: scale(.85);
    transition: opacity .6s ease, transform .8s var(--ease);
}
.g-cap {
    position: absolute; inset: auto 0 0 0; z-index: 2; padding: 28px 16px 14px;
    color: #fff; font-weight: 600; font-size: .95rem;
    opacity: 0; transform: translateY(10px);
    transition: opacity .6s ease .05s, transform .8s var(--ease) .05s;
}
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.06); filter: brightness(1.05); }
.g-item:hover::after, .g-item:focus-visible::after,
.g-item:hover::before, .g-item:focus-visible::before,
.g-item:hover .g-cap, .g-item:focus-visible .g-cap { opacity: 1; transform: none; }

/* Телефони и таблети (без мишка): заглавието се вижда винаги */
@media (hover: none) {
    .g-item::before { display: none; }
    .g-cap { opacity: 1; transform: none; }
    .g-item:has(.g-cap)::after { opacity: 1; }
}
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(20, 14, 10, .93); }
.lb.open { display: flex; }
.lb figure { margin: 0; max-width: min(1100px, 92vw); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb img { max-width: 100%; max-height: 80vh; border-radius: 10px; background: #fff; }
.lb figcaption { color: #eee3d6; text-align: center; min-height: 1.4em; }
.lb button {
    position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; cursor: pointer;
    width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; line-height: 1;
}
.lb button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 24px; left: 20px; color: #eee3d6; font-size: .95rem; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
body.lb-open { overflow: hidden; }

/* ---------- CTA ---------- */
.cta {
    color: var(--on-accent); padding-block: 56px;
    background:
        radial-gradient(600px 240px at 0% 100%, rgba(255, 255, 255, .35), transparent 60%),
        linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.cta p { color: inherit; opacity: .85; margin-top: 6px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Вътрешни страници ---------- */
.page-hero {
    color: #fff; padding-block: 48px 52px;
    background:
        radial-gradient(700px 300px at 90% -20%, rgba(var(--accent-rgb), .2), transparent 60%),
        linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
}
.page-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3rem); margin-top: 10px; }
.breadcrumbs { font-size: .9rem; color: var(--soft-2); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin-inline: 4px; }

/* ---------- Контакти ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-card {
    display: flex; align-items: center; gap: 16px; padding: 18px 20px; text-decoration: none;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .2s ease, box-shadow .2s ease;
}
a.contact-card:hover { border-color: var(--accent-2); box-shadow: var(--shadow); }
.contact-card small { display: block; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.contact-card strong { display: block; font-size: 1.15rem; color: var(--ink); word-break: break-word; }
.contact-card em { display: block; font-style: normal; color: var(--muted); font-size: .95rem; }

.price-mini { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px 24px; margin-top: 6px; }
.price-mini h2 { font-size: 1.05rem; color: var(--accent); margin-bottom: 10px; }
.price-mini li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.price-mini li:last-child { border-bottom: 0; }
.price-mini strong { white-space: nowrap; }

.form-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.form-wrap h2 { font-size: 1.5rem; color: var(--ink); margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field > span:first-child { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; color: var(--text); background: #fffefb;
    padding: 12px 14px; border: 1.5px solid var(--field); border-radius: 12px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input, .field select { height: 50px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .3);
}
.field-error { display: block; color: var(--err); font-size: .88rem; margin-top: 6px; }
.form-note { margin-top: 14px; color: var(--muted); font-size: .88rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; margin-bottom: 20px; }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-err { background: var(--err-bg); color: var(--err); }

/* ---------- Футър ---------- */
.site-footer { background: var(--ink); color: #d8c9b8; padding-top: 52px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-head); font-size: 1.25rem; }
.footer-text { margin-top: 12px; font-size: .95rem; max-width: 36ch; }
.footer-title { font-family: var(--font); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 12px; }
.footer-list { display: flex; flex-direction: column; gap: 8px; font-size: .96rem; }
.footer-list a, .footer-list span { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.footer-list a:hover { color: #fff; text-decoration: underline; }
.footer-list .footer-ask { color: var(--accent); font-weight: 600; }
.footer-bottom {
    margin-top: 40px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; color: #a8957f;
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.to-top { text-decoration: none; }
.to-top:hover { color: #fff; }

/* Плавно появяване при скролване (само ако браузърът поддържа IntersectionObserver) */
.io .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.io .reveal.in { opacity: 1; transform: none; }

/* Плаващ бутон за обаждане (само на телефон) */
.fab-call {
    display: none; position: fixed; right: 16px; bottom: 16px; z-index: 60;
    width: 56px; height: 56px; border-radius: 50%; place-items: center;
    background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
}

/* ---------- Адаптивност ---------- */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; padding-block: 56px 96px; gap: 24px; }
    .hero-visual { width: min(100%, 420px); }
    .badge-a { left: 0; }
    .badge-b { right: 0; }
    .steps li::after { display: none; }
    .cards, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .price-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid, .about-grid { grid-template-columns: 1fr; }
    .about-grid { gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 1150px) {   /* менюто става „бургер“, когато връзките не се събират */
    .nav-toggle { display: inline-flex; }
    .js .site-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 14px;
        background: var(--ink); padding: 14px 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, .08);
    }
    .js .site-nav.open { display: flex; }
    .js .site-nav { max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain; }
    .site-nav ul { flex-direction: column; }
    .site-nav li a { padding: 12px; }
    .nav-call { justify-content: center; }
    .site-header { position: sticky; }
    .no-js .nav-toggle { display: none; }
    html:not(.js) .site-nav { flex-wrap: wrap; }
    html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 10px; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .section { padding-block: 56px; }
    .cards, .gallery-grid, .steps, .field-row { grid-template-columns: 1fr; }
    .price-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .price-card { padding: 20px 18px; }
    .about-projects { padding: 22px 18px; }
    .projects li { padding: 12px; font-size: .95rem; }
    .project-icon { width: 38px; height: 38px; }
    .price { font-size: 1.8rem; }
    .form-wrap { padding: 22px 18px; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-actions .btn, .cta-actions .btn { width: 100%; }
    .fab-call { display: grid; }
    .site-footer { padding-bottom: 72px; }
    /*.brand-text small { display: none; }*/
    .hero-visual { width: min(100%, 340px); }
    .badge { padding: 8px 12px 8px 8px; gap: 8px; }
    .badge-icon { width: 32px; height: 32px; border-radius: 10px; }
    .badge strong { font-size: .92rem; }
    .quickbar { padding: 18px; }
    .quickbar .btn { width: 100%; }
}

/* Ако в системата анимациите са изключени (напр. Windows → „Показвай анимации“):
   без движение и увеличение, но плавните избледнявания остават */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; }
    .io .reveal { opacity: 1; transform: none; transition: none; }
    .btn:hover, .card:hover, .section-dark .price-card:hover { transform: none; }
    .g-cap, .g-item::before { transform: none; }
    /* Зумът в галерията остава и при намалени анимации — по желание на собственика */
}
/* „N години на пазара“ като линк към регистъра */
a.about-stat { text-decoration: none; color: inherit; transition: border-color .2s ease, box-shadow .2s ease; }
a.about-stat:hover { border-color: var(--accent-2); box-shadow: var(--shadow); }
.about-stat .about-stat-link { display: block; margin-top: 2px; font-size: .85rem; font-weight: 600; color: var(--accent-text); }
/* Поправка: на тесни телефони (360px) секцията „За нас“ излизаше извън екрана */
.about-grid > * { min-width: 0; }
@media (max-width: 400px) {
    .projects { grid-template-columns: 1fr; }
}

/* ---------- Лого ---------- */
.brand img, .footer-brand img { width: auto; max-width: 180px; object-fit: contain; }
.brand img { height: 32px; }
.footer-brand img { height: 36px; }

/* ---------- Отзиви ---------- */
.reviews-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.reviews-head .section-head { margin-bottom: 0; }
.rating-summary { display: flex; align-items: center; gap: 12px; }
.rating-summary strong { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--ink); line-height: 1; }
.rating-summary small { display: block; color: var(--muted); font-size: .9rem; }
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars .icon { fill: currentColor; }
.stars .off { color: var(--field); }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
    display: flex; flex-direction: column; gap: 12px; margin: 0;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.review blockquote { margin: 0; color: var(--text); font-size: .98rem; flex: 1; }
.review-quote { color: rgba(var(--accent-rgb), .55); }
.review figcaption { display: flex; justify-content: space-between; gap: 10px; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 12px; }
.review figcaption strong { display: block; color: var(--ink); }
.review figcaption span { display: block; color: var(--muted); font-size: .88rem; }
.review-source { flex: none; font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--bg); border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.reviews-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.reviews-note { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Често задавани въпроси ---------- */
.faq { max-width: 820px; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s ease, box-shadow .2s ease; }
.faq details[open] { border-color: rgba(var(--accent-rgb), .7); box-shadow: var(--shadow); }
.faq summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 18px 20px; font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { flex: none; color: var(--accent-text); transition: transform .25s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq-answer { padding: 0 20px 18px; color: var(--muted); }

/* Няколко телефона в картите за контакт */
.contact-card .phone-line { display: block; }
.contact-card .phone-line small { display: inline; text-transform: none; letter-spacing: 0; margin-left: 6px; }

@media (max-width: 960px) {
    .reviews { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .reviews { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .brand img { height: 30px; max-width: 110px; }
    .brand.brand-logo-only img { height: 34px; max-width: 170px; }
    .brand.brand-side img { height: 36px; }
    .brand-name { font-size: 1.1rem; }
    .brand-sub { font-size: .74rem; }
}

/* ---------- „Powered by PROXIMO“ ---------- */
.footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.footer-bottom > :last-child { justify-self: end; }
.powered { justify-self: center; color: #a8957f; text-decoration: none; font-size: .85rem; letter-spacing: .02em; padding: 4px 10px; border-radius: 99px; transition: color .2s ease, background .2s ease; }
.powered strong { color: var(--soft); letter-spacing: .08em; }
.powered:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.powered:hover strong { color: var(--accent); }

.px-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 22px; background: var(--card); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.px-dialog::backdrop { background: rgba(var(--ink-rgb), .72); backdrop-filter: blur(3px); }
.px-dialog[open] { animation: px-in .25s ease; }
@keyframes px-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.px-box { position: relative; padding: 28px 28px 24px; }
.px-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--bg); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.px-close:hover { background: var(--line); }
.px-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.px-logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--accent); font-weight: 800; font-size: 1.3rem; }
.px-brand strong { display: block; color: var(--ink); letter-spacing: .08em; }
.px-brand small { color: var(--muted); font-size: .85rem; }
.px-dialog h2 { font-size: 1.5rem; color: var(--ink); margin-bottom: 8px; }
.px-lead { color: var(--muted); }
.px-points { margin: 14px 0 18px; display: flex; flex-direction: column; gap: 6px; font-size: .95rem; }
.px-points li { display: flex; gap: 8px; align-items: flex-start; }
.px-points .icon { color: var(--accent-text); margin-top: 3px; }
.px-form .field { margin-bottom: 12px; }
.px-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.px-status { margin: 12px 0 0; font-size: .92rem; min-height: 1.2em; }
.px-status.ok { color: var(--ok); font-weight: 600; }
.px-status.err { color: var(--err); }

@media (max-width: 640px) {
    .footer-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 8px; }
    .footer-bottom > :last-child { justify-self: center; }
    .px-box { padding: 22px 18px 18px; }
    .px-actions .btn { width: 100%; }
}

/* Сянка под закаченото меню */
.site-header { box-shadow: 0 2px 12px rgba(var(--ink-rgb), .25); }

/* ==========================================================================
   Мебели — допълнения
   ========================================================================== */

/* Качена снимка горе вместо илюстрацията */
.hero-visual img.hero-photo {
    width: 100%; height: auto; aspect-ratio: 14 / 13; object-fit: cover;
    border-radius: 26px; animation: none; filter: none;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .42), 0 0 0 1px rgba(255, 255, 255, .08);
}

/* Категории в галерията */
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.cat-nav a {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 99px;
    border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
    font-weight: 600; font-size: .95rem; text-decoration: none;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.cat-nav a:hover { border-color: var(--accent-2); }
.cat-nav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-nav small { font-size: .8rem; color: var(--muted); font-weight: 600; }
.cat-nav a[aria-current="page"] small { color: var(--accent); }
.section-alt .cat-nav a:not([aria-current]) { background: var(--bg); }

/* Facebook / Instagram във футъра */
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.social a {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, .16); color: var(--soft); text-decoration: none; font-size: .92rem;
    transition: border-color .2s ease, color .2s ease;
}
.social a:hover { border-color: var(--accent); color: #fff; }
.social .icon { color: var(--accent); }

/* Цени: „от“ по-малко; дълги думи („Безплатно“) не разширяват колоната */
.price-pre { font-size: .55em; font-weight: 600; color: var(--soft-2); margin-right: 2px; }
.price-card { min-width: 0; }
.price { overflow-wrap: break-word; }

@media (max-width: 960px) {
    .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .price { font-size: 1.5rem; }
    .steps { grid-template-columns: 1fr; }
    .cat-nav { gap: 6px; }
    .cat-nav a { padding: 7px 13px; font-size: .9rem; }
}
@media (max-width: 420px) {
    .price-grid { grid-template-columns: 1fr; }
}
