/* Photostena – публичен сайт. Бяло, сиво, черно. Системен шрифт (без външни файлове). */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --soft-line: #e8e8ed;
  --black: #1d1d1f;
  --focus: #0071e3;
  --error: #c9190b;
  --radius: 18px;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { letter-spacing: -.022em; line-height: 1.1; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(30px, 5vw, 44px); }
h2 { font-size: clamp(24px, 3.2vw, 32px); }
h3 { font-size: 21px; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.section { padding: 40px 0; --sec-bg: var(--bg); }
.section.alt { background: var(--bg-alt); --sec-bg: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 20px; }
.section-head h2 { margin-bottom: .25em; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Бутони */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 17px; font-weight: 500; text-decoration: none; cursor: pointer;
  border: 0; border-radius: 980px; padding: 12px 24px; background: var(--black); color: #fff;
  transition: opacity .15s;
}
.btn:hover { opacity: .85; }
.btn.light { background: var(--bg-alt); color: var(--text); }
.btn.outline { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .35; cursor: not-allowed; }
.link-more { text-decoration: none; font-weight: 500; }
.link-more::after { content: " ›"; }

/* Хедър */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--soft-line); }
.site-header .wrap { display: flex; align-items: center; height: 56px; gap: 16px; }
.logo { font-weight: 800; letter-spacing: .08em; text-decoration: none; font-size: 17px; flex: 0 0 auto; display: flex; align-items: center; }
.logo img { display: block; height: 40px; width: auto; }
.main-nav { display: flex; gap: 24px; align-items: center; font-size: 15px; margin-left: auto; }
.main-nav a { text-decoration: none; color: var(--text); opacity: .85; }
.main-nav a:hover { opacity: 1; }
.main-nav .phone { font-weight: 600; opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .cart-link { text-decoration: none; color: var(--text); font-size: 15px; }
.icon-btn, .cart-icon, .mobile-menu { display: none; }
@media (max-width: 1000px) { .main-nav { gap: 16px; font-size: 14px; } }

/* Карти на продукти */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--bg); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.section:not(.alt) .card { background: var(--bg-alt); }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.card .media { aspect-ratio: 4 / 3; background: var(--soft-line); }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .media.empty { display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: 6px; }
.card .desc { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.card .price { margin-top: auto; font-size: 15px; }
.card .price strong { font-size: 21px; }

/* Лого лента */
.logos { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; justify-content: center; }
.logos img { max-height: 44px; width: auto; filter: grayscale(1); opacity: .7; }

/* ЧЗВ и акордеони */
.faq details, .accordion details { border-bottom: 1px solid var(--soft-line); }
.faq summary, .accordion summary { cursor: pointer; list-style: none; padding: 15px 32px 15px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker, .accordion summary::-webkit-details-marker { display: none; }
.faq summary::after, .accordion summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 24px; font-weight: 300; color: var(--muted); }
.faq details[open] summary::after, .accordion details[open] summary::after { content: "−"; }
.faq .answer, .accordion .answer { padding: 0 0 16px; color: var(--muted); }

/* CTA */
.cta-band { text-align: center; }
.cta-band .phone-big { font-size: clamp(32px, 5vw, 48px); font-weight: 700; letter-spacing: -.02em; text-decoration: none; display: inline-block; margin: 8px 0 20px; }

/* Навигационна пътека */
.crumbs { font-size: 14px; color: var(--muted); padding: 18px 0 0; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs span { margin: 0 6px; }

/* Продуктова страница */
.product-top { display: grid; gap: 40px; grid-template-columns: 1.15fr 1fr; padding: 16px 0 36px; align-items: start; }
@media (max-width: 900px) { .product-top { grid-template-columns: 1fr; gap: 28px; } }
.gallery .main { border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); aspect-ratio: 4 / 3; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.gallery .thumbs button { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 10px; overflow: hidden; width: 76px; height: 57px; flex: 0 0 auto; opacity: .55; outline-offset: 2px; }
.gallery .thumbs button.active, .gallery .thumbs button:hover { opacity: 1; }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: clamp(30px, 4vw, 44px); }
.product-info .short { color: var(--muted); font-size: 19px; }

.calc { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; margin-top: 20px; scroll-margin-top: 72px; }
.field { margin-bottom: 18px; }
.field > label, .field > .label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.field input[type=number], .field input[type=text], .field select {
  width: 100%; font: inherit; font-size: 17px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus { outline: 2px solid var(--focus); outline-offset: -1px; border-color: transparent; }
.field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.segmented { display: flex; background: var(--soft-line); border-radius: 12px; padding: 3px; gap: 3px; }
.segmented label { flex: 1; text-align: center; padding: 9px 10px; border-radius: 10px; cursor: pointer; font-size: 15px; font-weight: 500; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { background: var(--bg); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--focus); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.qty button { border: 0; background: none; font-size: 22px; width: 44px; height: 44px; cursor: pointer; color: var(--text); }
.qty input { width: 52px; text-align: center; border: 0 !important; padding: 0 !important; font-size: 17px; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.price-box { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 18px; }
.price-box .placeholder { color: var(--muted); }
.price-box .amount { font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.price-box .amount small { font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-box .period { color: var(--muted); font-size: 15px; margin-top: 6px; }
.price-box .errors { color: var(--error); font-size: 15px; margin: 0; padding: 0; list-style: none; }
.price-box .btn { margin-top: 18px; }
.notes { font-size: 14px; color: var(--muted); margin-top: 16px; }
.notes p { margin: 0 0 6px; }

.packages { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.package { border: 1px solid var(--soft-line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; background: var(--bg); }
.package .label { font-weight: 600; margin-bottom: 4px; }
.package .spec { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.package .amount { font-size: 32px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px; }
.package .amount small { font-size: 15px; font-weight: 500; color: var(--muted); }
.package .btn { margin-top: auto; }

.content-block { max-width: 760px; }
.wrap.content-block { max-width: var(--wrap); }
.wrap.content-block > * { max-width: 760px; }
.content-block img { border-radius: 12px; }
.fabric-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.fabric-card { background: var(--bg); border-radius: var(--radius); padding: 24px; }
.fabric-card h3 { font-size: 19px; }
.fabric-card p { color: var(--muted); font-size: 15px; margin: 0; }
.notice { border-radius: var(--radius); padding: 20px 24px; background: var(--bg-alt); }

.usage-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.usage-grid figure { margin: 0; border-radius: 14px; overflow: hidden; position: relative; background: var(--soft-line); }
.usage-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.usage-grid figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(255,255,255,.92); border-radius: 8px; padding: 3px 10px; font-size: 13px; font-weight: 500; }
.downloads { list-style: none; padding: 0; margin: 12px 0 0; }
.downloads a { font-weight: 500; }

/* Футър */
.site-footer { background: var(--bg-alt); color: var(--muted); font-size: 14px; padding: 48px 0 32px; border-top: 1px solid var(--soft-line); }
.site-footer .cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 28px; }
.site-footer strong { color: var(--text); display: block; margin-bottom: 8px; font-size: 14px; }
.site-footer a { text-decoration: none; color: var(--muted); display: block; padding: 2px 0; }
.site-footer a:hover { color: var(--text); }
.site-footer .copy { border-top: 1px solid var(--soft-line); padding-top: 20px; }

/* Страница за грешка / празни състояния */
.empty-state { text-align: center; padding: 100px 20px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ===================== Етап 6: количка и поръчка ===================== */
.wrap.narrow { max-width: 760px; }
.page-title { font-size: clamp(28px, 4vw, 40px); margin: 8px 0 12px; }
.lead-muted { color: var(--muted); font-size: 18px; margin-bottom: 28px; }
.small { font-size: 14px; }

/* Количка в менюто */
.cart-link { position: relative; font-weight: 600; opacity: 1 !important; }
.cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 980px; background: var(--black); color: #fff; font-size: 12px; font-weight: 700; vertical-align: 1px; }
.cart-count[hidden] { display: none; }

/* Съобщения */
.flashes { padding-top: 16px; }
.flash { border-radius: 14px; padding: 14px 18px; margin-bottom: 14px; background: var(--bg-alt); font-size: 15px; }
.flash.success { background: #e8f5ec; color: #1a7f37; }
.flash.error { background: #fdecee; color: var(--error); }
.flash.warn { background: #fff4d6; color: #7a5200; }
.flash ul { margin: 0; padding-left: 18px; }
.added { margin-top: 12px; font-size: 15px; color: #1a7f37; }
.added a { font-weight: 600; }

/* Стъпки */
.steps-bar { list-style: none; display: flex; gap: 8px; padding: 28px 0 8px; margin: 0; counter-reset: s; }
.steps-bar li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--soft-line); }
.steps-bar li a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.steps-bar li.done, .steps-bar li.current { color: var(--text); border-top-color: var(--black); }
.steps-bar .dot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--soft-line); font-size: 12px; flex: 0 0 auto; }
.steps-bar .done .dot, .steps-bar .current .dot { background: var(--black); color: #fff; }
@media (max-width: 480px) { .steps-bar li { font-size: 12px; } }

/* Количка */
.cart-group { border-bottom: 1px solid var(--soft-line); padding: 20px 0; }
.cart-group-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.cart-group-head h2 { font-size: 19px; margin: 0; letter-spacing: -.01em; }
.cart-group-head h2 a { text-decoration: none; }
.cart-group-total { font-weight: 700; font-size: 19px; white-space: nowrap; }
.cart-line { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding-top: 10px; color: var(--muted); font-size: 15px; }
.cart-line-qty { display: flex; align-items: center; gap: 6px; }
.cart-line-qty input { width: 64px; font: inherit; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.link-btn { border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; padding: 0; }
.link-btn:hover { color: var(--text); }
@media (max-width: 520px) { .cart-line { grid-template-columns: 1fr auto; } .cart-line .link-btn { grid-column: 1 / -1; justify-self: start; } }

.summary { background: var(--bg-alt); border-radius: var(--radius); padding: 22px 24px; margin-top: 24px; }
.summary h2 { font-size: 21px; margin: 0 0 12px; }
.summary .row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 15px; }
.summary .row.sub { color: var(--muted); font-size: 14px; padding-top: 0; }
.summary .row.good { color: #1a7f37; }
.summary .row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-size: 21px; font-weight: 700; }
.summary .row[hidden] { display: none; }
.summary .btn { margin-top: 16px; }

/* Избор с карти */
.choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.choice-cards.stacked { grid-template-columns: 1fr; gap: 10px; }
@media (max-width: 560px) { .choice-cards { grid-template-columns: 1fr; } }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 16px; padding: 18px; cursor: pointer; background: var(--bg); }
.choice input { margin-top: 4px; accent-color: var(--black); width: 18px; height: 18px; flex: 0 0 auto; }
.choice strong { display: block; font-size: 17px; }
.choice small { color: var(--muted); font-size: 14px; }
.choice:has(input:checked) { border-color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }

.tabs { display: inline-flex; background: var(--soft-line); border-radius: 12px; padding: 3px; margin: 8px 0 20px; }
.tab { padding: 9px 16px; border-radius: 10px; cursor: pointer; font-size: 15px; font-weight: 500; }
.tab input { position: absolute; opacity: 0; pointer-events: none; }
.tab:has(input:checked) { background: var(--bg); box-shadow: 0 1px 4px rgba(0,0,0,.12); }

.info-box { border: 1px solid var(--soft-line); border-radius: 16px; padding: 4px 18px; margin-bottom: 16px; }
.info-box summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
.info-box .info-item { padding: 0 0 14px; font-size: 15px; color: var(--muted); }
.info-box .info-item strong { color: var(--text); }
.info-panel { background: var(--bg-alt); border-radius: 16px; padding: 20px; margin-bottom: 16px; }

/* Полета за качване */
.slot-group { margin: 8px 0 28px; }
.slot-group h3 { font-size: 19px; margin-bottom: 8px; }
.check-card { display: flex; gap: 12px; align-items: flex-start; background: #fff4d6; border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; cursor: pointer; font-size: 15px; }
.check-card input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--black); flex: 0 0 auto; }
.check-card small { color: var(--muted); }
.slot { margin-bottom: 14px; }
.slot-label { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.slot[hidden] { display: none; }
.drop { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; border: 2px dashed var(--line); border-radius: 16px; padding: 26px 16px; cursor: pointer; background: var(--bg); transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--black); background: var(--bg-alt); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-alt); font-size: 20px; }
.drop-title { font-weight: 600; }
.drop-hint { font-size: 13px; color: var(--muted); }
.slot-file { display: none; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: var(--bg); }
.slot.has-file .drop { display: none; }
.slot.has-file .slot-file { display: flex; }
.slot-check { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #1a7f37; color: #fff; font-size: 14px; flex: 0 0 auto; }
.slot-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.progress { height: 6px; border-radius: 6px; background: var(--soft-line); overflow: hidden; margin-top: 8px; }
.progress span { display: block; height: 100%; width: 0; background: var(--black); transition: width .2s; }
.slot-error { color: var(--error); font-size: 14px; margin-top: 6px; }
.slot-error:empty { display: none; }

/* Форма за данни */
.form-section { margin-bottom: 28px; }
.form-section h2 { font-size: 21px; margin-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 0 14px; }
@media (max-width: 560px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.field input[type=email], .field input[type=tel], .field input[type=url], .field input[type=date], .field input[type=datetime-local], .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: -1px; border-color: transparent; }
.hint { font-size: 14px; color: var(--muted); margin: -6px 0 16px; }
.company { margin-top: 4px; }
.company summary { cursor: pointer; font-weight: 600; padding: 8px 0 14px; }
.terms { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-top: 16px; cursor: pointer; }
.terms input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--black); flex: 0 0 auto; }
.step-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 28px 0 60px; }
.link-back { text-decoration: none; color: var(--muted); font-weight: 500; }
.link-back:hover { color: var(--text); }

/* Благодарим */
.done-hero { text-align: center; padding: 40px 0 8px; }
.done-check { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #1a7f37; color: #fff; font-size: 30px; margin-bottom: 16px; }

/* ===================== Етап 7: профили, страници, портфолио ===================== */
.field input[type=password], .field input:not([type]) {
  width: 100%; font: inherit; font-size: 17px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px;
}
.wrap.auth { max-width: 440px; padding-top: 48px; padding-bottom: 72px; }
.auth-links { text-align: center; margin-top: 20px; font-size: 15px; }
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 32px; }
.section-title { font-size: 24px; margin: 32px 0 14px; }
.order-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.order-row:last-child { border-bottom: 0; }
.order-row:hover strong { text-decoration: underline; }

/* Статични страници */
.page-content { max-width: 760px; padding: 32px 0 80px; }
.page-content h2 { font-size: 28px; margin-top: 1.6em; }
.page-content h3 { margin-top: 1.4em; }
.page-content ul, .page-content ol { padding-left: 22px; }
.page-content img { border-radius: 12px; margin: 16px 0; }
.page-content table { border-collapse: collapse; width: 100%; }
.page-content td, .page-content th { border-bottom: 1px solid var(--soft-line); padding: 8px 6px; text-align: left; }

/* Форма за контакт */
.contact-form { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; margin: 24px 0; }
.contact-form .hp { position: absolute; left: -9999px; }

/* Портфолио */
.portfolio-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.portfolio-grid figure { margin: 0; border-radius: 16px; overflow: hidden; background: var(--soft-line); position: relative; }
.portfolio-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.portfolio-grid figure:hover img { transform: scale(1.03); }
.portfolio-grid figcaption { padding: 12px 16px; background: var(--bg); font-size: 15px; }
.portfolio-grid figcaption strong { display: block; }
.portfolio-grid figcaption span { color: var(--muted); font-size: 14px; }
.account-link { opacity: .85; }

/* ============ Продуктова страница – раздели под калкулатора ============ */
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Ценови карти (готови решения) */
.price-cards { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.price-card { flex: 1 1 250px; max-width: 300px; background: #fff; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 10px 28px rgba(0,0,0,.06); }
.pc-head { background: #1d1d1f; color: #fff; text-align: center; padding: 22px 16px 18px; }
.price-card:nth-child(3n+2) .pc-head { background: #8e8e93; }
.price-card:nth-child(3n) .pc-head { background: #48484a; }
.pc-head h3 { font-size: 23px; margin: 0 0 4px; color: #fff; letter-spacing: -.01em; }
.pc-head span { font-size: 13px; opacity: .85; }
.pc-body { padding: 26px 24px 24px; text-align: center; display: flex; flex-direction: column; flex: 1; }
.pc-price { font-size: 58px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.pc-price .cur { font-size: 24px; font-weight: 600; vertical-align: top; position: relative; top: 5px; margin-left: 4px; letter-spacing: 0; }
.pc-vat { font-size: 13px; color: var(--muted); margin-top: 6px; }
.pc-size { font-size: 17px; font-weight: 600; margin: 10px 0 18px; }
.pc-list { list-style: none; margin: 0 0 22px; padding: 18px 4px 0; border-top: 1px solid var(--soft-line); text-align: left; display: grid; gap: 10px; }
.pc-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #424245; line-height: 1.4; }
.pc-list svg { width: 20px; height: 20px; flex: 0 0 20px; color: #1d1d1f; }
.pc-list li.all { font-weight: 600; color: var(--text); }
.pc-body .btn { margin-top: auto; }

/* Общи раздели */
.p-section { padding: 36px 0 4px; }
.p-section.last { padding-bottom: 56px; }
.p-wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }
.rule-title { display: flex; align-items: center; gap: 18px; font-size: 22px; font-weight: 500; color: #424245; letter-spacing: 0; text-align: center; margin: 0 0 22px; }
.rule-title::before, .rule-title::after { content: ""; flex: 1 1 24px; height: 1px; background: #1d1d1f; }
.rule-title span { flex: 0 1 auto; }
.p-text { font-size: 17px; line-height: 1.7; color: #424245; }
.p-text p { margin: 0 0 14px; }
.p-text h3 { font-size: 19px; color: var(--text); margin: 26px 0 8px; }
.p-text strong { color: var(--text); }

/* Препоръка / Внимание */
.p-note { display: grid; grid-template-columns: 68px 1fr; gap: 20px; align-items: center; border: 1.5px solid #1d1d1f; border-radius: 12px; padding: 16px 22px; margin: 22px 0 0; background: #fff; }
.p-note-icon { width: 64px; height: 64px; border: 2.5px solid #1d1d1f; border-radius: 50%; display: grid; place-items: center; color: #1d1d1f; }
.p-note-icon svg { width: 38px; height: 38px; }
.p-note-title { display: block; font-size: 17px; margin-bottom: 2px; color: var(--text); }
.p-note p { margin: 0; color: #424245; font-size: 16px; line-height: 1.6; }
.p-note p strong { color: var(--text); }

/* Видове печат */
.p-fabrics { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.p-fabric { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.14), 0 8px 22px rgba(0,0,0,.06); }
.p-fabric h3 { background: #000; color: #fff; text-align: center; font-size: 19px; padding: 14px 16px; margin: 0; letter-spacing: -.01em; }
.p-fabric p { padding: 18px 22px 22px; margin: 0; color: #424245; font-size: 15px; line-height: 1.65; }

/* Предимства */
.p-benefits { display: grid; gap: 36px 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); text-align: center; }
.p-benefit img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; display: block; background: var(--bg-alt); }
.p-benefit-icon { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--bg-alt); color: #1d1d1f; }
.p-benefit-icon svg { width: 40px; height: 40px; }
.p-benefit h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px; }
.p-benefit p { color: var(--muted); font-size: 15px; margin: 0 auto; max-width: 270px; line-height: 1.6; }

/* Приложения */
.p-usage { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.p-usage figure { margin: 0; position: relative; overflow: hidden; border-radius: 6px; background: var(--soft-line); }
.p-usage img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; transition: transform .5s ease; }
.p-usage figure:hover img { transform: scale(1.04); }
.p-usage figcaption { position: absolute; left: 0; bottom: 14px; background: rgba(232,232,237,.95); color: #1d1d1f; font-size: 14px; font-weight: 500; padding: 9px 14px; border-radius: 0 6px 6px 0; }

/* Полезна информация (акордеон) */
.p-acc details { background: #f2f2f4; border-radius: 6px; margin-bottom: 8px; }
.p-acc summary { list-style: none; cursor: pointer; padding: 15px 18px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #424245; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.p-acc summary::-webkit-details-marker { display: none; }
.p-acc summary:hover { color: var(--text); }
.p-acc summary svg { width: 20px; height: 20px; flex: 0 0 20px; color: #1d1d1f; transition: transform .2s; }
.p-acc details[open] summary svg { transform: rotate(180deg); }
.p-acc-body { padding: 2px 18px 18px; color: #424245; font-size: 15px; line-height: 1.65; }
.p-acc-body p { margin: 0 0 10px; }
.p-acc-body .downloads { margin: 6px 0 0; padding-left: 18px; }

@media (max-width: 760px) { .p-usage { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .p-section { padding-top: 28px; }
  .rule-title { gap: 12px; }
  .p-note { grid-template-columns: 46px 1fr; gap: 14px; padding: 16px; }
  .p-note-icon { width: 46px; height: 46px; border-width: 2px; }
  .p-note-icon svg { width: 28px; height: 28px; }
  .rule-title { font-size: 18px; }
  .p-benefit img { width: 150px; height: 150px; }
  .pc-price { font-size: 50px; }
}
@media (max-width: 480px) { .p-usage { gap: 10px; } .p-usage figcaption { font-size: 12px; padding: 6px 10px; bottom: 10px; } }

/* ============ Начална страница ============ */
/* Горна част: широка снимка с полупрозрачна лента */
.hero2 { padding: 16px 0 24px; }
.hero-banner { position: relative; height: 420px; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.hero-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-band { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 32px 22px; background: rgba(255,255,255,.84); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-band h1 { font-size: clamp(24px, 3vw, 36px); margin: 0 0 4px; }
.hero-band p { margin: 0; color: #424245; font-size: 17px; max-width: 760px; }
.hero-banner.no-image { height: auto; }
.hero-banner.no-image .hero-band { position: static; background: none; padding: 24px 0 0; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Калкулатор с избор на стена */
.quick-calc { background: var(--bg); border-radius: var(--radius); padding: 22px 24px; }
.qc-walls { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.qc-wall { font: inherit; font-size: 15px; font-weight: 600; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); border-radius: 980px; padding: 9px 18px; cursor: pointer; }
.qc-wall:hover { border-color: var(--text); }
.qc-wall.active { background: var(--black); border-color: var(--black); color: #fff; }
.qc-fields { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; min-height: 74px; }
.qc-field > label, .qc-field > .label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.qc-field input[type=text], .qc-field select {
  width: 100%; font: inherit; font-size: 17px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; height: 46px; appearance: none; -webkit-appearance: none;
}
.qc-field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.qc-field input:focus, .qc-field select:focus { outline: 2px solid var(--focus); outline-offset: -1px; border-color: transparent; }
.qc-field .segmented { height: 46px; }
.qc-field .segmented label { display: flex; align-items: center; justify-content: center; }
.qc-note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.qc-desc { margin: -4px 0 16px; font-size: 15px; color: #424245; line-height: 1.55; max-width: 900px; }
.qc-desc[hidden] { display: none; }
.qc-desc a { white-space: nowrap; font-weight: 600; color: var(--text); text-decoration: none; margin-left: 6px; }
.qc-desc a:hover { text-decoration: underline; }
.qc-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--soft-line); margin-top: 18px; padding-top: 16px; min-height: 64px; }
.qc-result .placeholder { margin: 0; color: var(--muted); }
.qc-result .amount { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.qc-result .amount small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.qc-result .period { color: var(--muted); font-size: 14px; margin-top: 4px; }
.qc-result .errors { color: var(--error); font-size: 15px; margin: 0; padding: 0; list-style: none; }
.qc-bottom .btn { flex: 0 0 auto; }

/* Числа под калкулатора – бели карти на сивия фон на калкулатора */
#calc.has-stats { padding-bottom: 16px; }
.stats-band { padding: 0 0 40px; background: var(--bg-alt); }
.hero2 + .stats-band { padding-top: 40px; }
.stats { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 16px; text-align: center; }
.stat { padding: 26px 16px 24px; background: var(--bg); border-radius: var(--radius); }
.stat svg { width: 28px; height: 28px; opacity: .85; margin: 0 auto 10px; }
.stat strong { display: block; font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat strong em { font-style: normal; color: var(--muted); }
.stat-label { display: block; margin-top: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* Как работи */
.steps2 { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); position: relative; }
.steps2::before { content: ""; position: absolute; top: 36px; left: calc(50% / var(--n, 4)); right: calc(50% / var(--n, 4)); border-top: 2px dashed var(--line); }
.steps2 li { text-align: center; position: relative; }
.step-icon { position: relative; display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 14px; border: 2px solid #1d1d1f; border-radius: 50%; background: var(--sec-bg, #fff); color: #1d1d1f; }
.step-icon svg { width: 34px; height: 34px; }
.step-icon b { position: absolute; top: -4px; right: -6px; width: 26px; height: 26px; border-radius: 50%; background: #1d1d1f; color: #fff; font-size: 13px; display: grid; place-items: center; }
.steps2 h3 { font-size: 18px; margin-bottom: 6px; }
.steps2 p { color: var(--muted); font-size: 15px; margin: 0 auto; max-width: 240px; }

/* За какви събития */
.events-intro { color: #424245; font-size: 17px; line-height: 1.65; max-width: 900px; margin: -6px 0 22px; }
.events { display: grid; gap: 22px 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.event img, .event-icon { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; margin-bottom: 12px; background: var(--soft-line); }
.event-icon { display: grid; place-items: center; color: #8e8e93; }
.event-icon svg { width: 40px; height: 40px; }
.event h3 { font-size: 18px; margin-bottom: 6px; }
.event p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }

/* ЧЗВ на цялата ширина */
.faq { max-width: none; }

/* Консултация */
.cta-band h2 { margin-bottom: .2em; }
.cta-band .phone-big { margin: 6px 0 4px; }

/* Готови решения най-долу на продукта */
.p-sub { text-align: center; color: var(--muted); margin: -10px 0 22px; }

@media (max-width: 900px) {
  .qc-fields { grid-template-columns: 1fr 1fr; }
  .events { grid-template-columns: 1fr 1fr; }
  .steps2 { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .steps2::before { display: none; }
}
@media (max-width: 720px) {
  .section { padding: 28px 0; }
  /* Горе: снимката отгоре, текстът под нея (не я закрива) */
  .hero-banner { height: auto; border-radius: 14px; }
  .hero-banner img { position: static; display: block; height: 200px; }
  .hero-band { position: static; padding: 12px 14px 14px; background: var(--bg-alt); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero-band h1 { font-size: 22px; }
  .hero-band p { font-size: 14px; }
  .hero2 { padding: 10px 0 16px; }
  .quick-calc { padding: 16px 14px; }
  .qc-walls { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-bottom: 14px; }
  .qc-wall { padding: 8px 4px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .qc-bottom { flex-direction: column; align-items: stretch; }
  .qc-bottom .btn { width: 100%; }
  .stats-band { padding: 0 0 28px; }
  .hero2 + .stats-band { padding-top: 28px; }
  .stats { gap: 8px; }
  .stat { padding: 16px 4px 14px; }
  .stat svg { width: 22px; height: 22px; margin-bottom: 6px; }
  .stat strong { font-size: 28px; }
  .stat-label { font-size: 10.5px; letter-spacing: .05em; line-height: 1.3; margin-top: 6px; }
  /* Карти на продукти: снимка вляво, текст вдясно – по-малко скролване */
  .cards { gap: 12px; }
  .card { flex-direction: row; }
  .card .media { flex: 0 0 38%; aspect-ratio: auto; min-height: 132px; }
  .card .media.empty { font-size: 12px; text-align: center; padding: 6px; }
  .card .body { padding: 12px 14px 14px; }
  .card h3 { font-size: 17px; margin-bottom: 4px; }
  .card .desc { font-size: 13px; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .card .price strong { font-size: 18px; }
  /* За какви събития: малка снимка вляво */
  .events { grid-template-columns: 1fr; gap: 16px; }
  .event { display: grid; grid-template-columns: 96px 1fr; gap: 0 14px; align-items: start; }
  .event img, .event-icon { grid-row: span 2; width: 96px; aspect-ratio: 1; margin: 0; border-radius: 10px; }
  .event-icon svg { width: 28px; height: 28px; }
  .event h3 { font-size: 16px; margin: 0 0 4px; }
  .event p { font-size: 14px; }
}
@media (max-width: 480px) {
  .steps2 h3 { font-size: 16px; }
  .steps2 p { font-size: 14px; }
}
.packages-bottom .p-wrap { max-width: 1040px; }


/* ============ Мобилно меню ============ */
.footer-logo { display: block; height: 24px; width: auto; margin-bottom: 10px; }
body.menu-open { overflow: hidden; }
.menu-backdrop { position: fixed; inset: 56px 0 0 0; background: rgba(0,0,0,.28); z-index: 40; }
.menu-backdrop[hidden] { display: none; }
@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; gap: 6px; }
  .logo img { height: 28px; }
  .icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--text); cursor: pointer; padding: 0; text-decoration: none; }
  .icon-btn svg { width: 22px; height: 22px; }
  .phone-icon { width: 36px; height: 36px; background: var(--black); color: #fff; }
  .phone-icon svg { width: 18px; height: 18px; }
  .cart-link { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; color: var(--text); text-decoration: none; }
  .cart-text { display: none; }
  .cart-icon { display: inline-grid; }
  .cart-icon svg { width: 24px; height: 24px; }
  .cart-link .cart-count { position: absolute; top: 1px; right: -3px; margin: 0; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; }
  .menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, background-color .2s; }
  .menu-toggle .bars { position: relative; }
  .menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle .bars::before { top: -6px; }
  .menu-toggle .bars::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
  .mobile-menu { display: block; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--soft-line);
    box-shadow: 0 18px 32px rgba(0,0,0,.10); padding: 4px 20px 20px; max-height: calc(100vh - 56px); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .mobile-menu.open { visibility: visible; opacity: 1; transform: none; }
  .mobile-menu nav a { display: block; padding: 14px 2px; font-size: 18px; font-weight: 600; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--soft-line); }
  .mobile-menu nav a:active { color: var(--muted); }
  .menu-call { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 8px; }
  .menu-call svg { width: 20px; height: 20px; }
}
@media (min-width: 861px) { .menu-backdrop { display: none !important; } }
/* Много малки телефони (под 360 px): логото малко по-малко, за да се събере лентата */
@media (max-width: 359px) { .logo img { height: 24px; } .header-actions { gap: 2px; } }
@media (max-width: 720px) { .qc-desc { font-size: 14px; margin: -2px 0 14px; } }

/* Качване: „Същата визия като …“ и списъкът с файлове при линк */
.check-card[hidden], [data-own-files][hidden] { display: none; }
.check-card[data-same-as-wrap] { background: #e9f5ec; }
.needed-files { margin: 14px 0 0; padding: 14px 16px; border-radius: 14px; background: #f5f5f7; font-size: 15px; }
.needed-files p { margin: 0 0 8px; }
.needed-files ol { margin: 0 0 8px; padding-left: 22px; }
.needed-files li { margin: 4px 0; }
.needed-files li span { color: var(--muted); }

/* Банер за бисквитки (Analytics и Pixel – само след „Приемам“) */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 16px 18px; background: var(--bg); border: 1px solid var(--soft-line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0,0,0,.14); font-size: 14px; line-height: 1.5; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; }
.cookie-banner a { color: inherit; }
.cookie-actions { display: flex; gap: 8px; flex: 0 0 auto; }
@media (max-width: 720px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 12px; left: 10px; right: 10px; bottom: 10px; padding: 14px; }
  .cookie-actions .btn { flex: 1; padding-left: 10px; padding-right: 10px; font-size: 15px; white-space: nowrap; }
}

/* Твърде голям файл за качване – съобщение и бутон към „Поставяне на линк“ */
.slot-error > span { display: block; }
.slot-error .too-big-btn { margin-top: 10px; padding: 9px 18px; font-size: 15px; }

/* Езици: превключвател BG | EN в горната лента (на телефон – и в менюто) */
.lang-switch { display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .04em; line-height: 1; color: var(--text); text-decoration: none; }
.lang-switch:hover { border-color: var(--text); }
@media (max-width: 400px) { .lang-switch { height: 26px; padding: 0 7px; font-size: 12px; } }
.preview-bar { background: #fff4ce; color: #5c4400; font-size: 13px; line-height: 1.4; text-align: center; padding: 6px 12px; }
.site-footer .cols span { display: block; padding: 2px 0; }
/* Английската версия: „We speak English“ над менюто (телефонът се обслужва на английски) */
.speak-bar { background: var(--bg-alt); color: var(--text); font-size: 13px; line-height: 1.45; text-align: center; padding: 7px 16px; border-bottom: 1px solid var(--soft-line); }
.speak-bar a { color: inherit; font-weight: 600; text-decoration: none; white-space: nowrap; }
.speak-bar a:hover { text-decoration: underline; }
@media (max-width: 560px) { .speak-bar .hours { display: none; } }
