/* MDA дизајн систем — Direction A: крем позадина, темно мастило, црвен акцент */
:root {
  --bg: #fbfaf6;
  --panel: #f4f0e8;
  --ink: #322f2b;
  --ink-soft: #676b70;
  --muted: #9a9ea3;
  --line: #e7e1d6;
  --accent: #db4b3b;
  --accent-soft: #e8897c;
  --dark: #322f2b;
  --sans: 'IBM Plex Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --disp: 'Space Grotesk', sans-serif;
  --notice-h: 40px; /* висина на лентата за известување; JS ја ажурира */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }

/* ── Навигација ── */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center;
  justify-content: space-between; padding: 0 clamp(20px, 5vw, 64px); height: 64px;
  background: rgba(251, 250, 246, .88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.nav .brand .logo {
  width: 34px; height: 34px; background: var(--accent); color: #fff; display: grid;
  place-items: center; font-family: var(--disp); font-weight: 700; font-size: 15px; border-radius: 2px;
}
.nav .brand span { font-family: var(--disp); font-weight: 600; letter-spacing: .05em; font-size: 13px; }
.nav .links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); font-size: 13px; font-weight: 500; }
.nav .links a { color: var(--ink); }
.nav .cta { background: var(--dark); color: #fff; padding: 9px 18px; font-size: 13px; font-weight: 600; border-radius: 2px; }
.nav .cta:hover { background: var(--accent); color: #fff; }

/* ── Типографија ── */
.kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); display: flex; align-items: center; gap: 10px;
}
.kicker::before { content: ''; width: 26px; height: 1px; background: var(--accent); }
h1.display { font-family: var(--disp); font-weight: 700; font-size: clamp(32px, 4.5vw, 60px); line-height: 1; letter-spacing: -.02em; margin: 10px 0 8px; }
.sub { color: var(--ink-soft); font-size: 15px; max-width: 60ch; line-height: 1.55; }

/* ── Форми ── */
.field label { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 5px; }
.field input[type=number], .field input[type=text], .field input[type=password], .field select, .field textarea {
  width: 100%; padding: 9px 10px; font-family: var(--mono); font-size: 14px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 2px; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field .unit { font-size: 10.5px; color: var(--muted); margin-left: 4px; text-transform: none; letter-spacing: 0; }

/* Прекинувач (toggle) */
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; background: #fff; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; user-select: none; }
.toggle .t-label { font-size: 13px; font-weight: 500; }
.toggle .knob { flex: none; width: 38px; height: 21px; border-radius: 21px; background: var(--line); position: relative; transition: background .15s; }
.toggle .knob::after { content: ''; position: absolute; top: 2.5px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .15s; }
.toggle.on .knob { background: var(--accent); }
.toggle.on .knob::after { left: 19px; }

/* ── Копчиња ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; font-family: var(--sans); font-size: 13px; font-weight: 600; border: 1px solid var(--dark); background: var(--dark); color: #fff; border-radius: 2px; cursor: pointer; }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--dark); color: #fff; }
.btn.accent { background: var(--accent); border-color: var(--accent); }
.btn.accent:hover { background: var(--dark); border-color: var(--dark); }
.btn.small { padding: 6px 12px; font-size: 12px; }
.btn.danger { border-color: #c33; background: transparent; color: #c33; }
.btn.danger:hover { background: #c33; color: #fff; }
.btn:disabled { opacity: .45; cursor: default; }

/* ── Панели/картички ── */
.card { background: #fff; border: 1px solid var(--line); border-radius: 3px; }
.card .card-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card .card-head h3 { margin: 0; font-family: var(--disp); font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.card .card-body { padding: 18px; }

/* ── Табели ── */
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { text-align: left; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:hover td { background: var(--panel); }
table.data td.num, table.data th.num { text-align: right; font-family: var(--mono); white-space: nowrap; }
table.data .cat-row td { background: var(--panel); font-family: var(--disp); font-weight: 600; font-size: 12.5px; letter-spacing: .03em; }

/* ── Разно ── */
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.tag { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; padding: 2px 7px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink-soft); background: var(--panel); }
.tag.ok { color: #2e7d32; border-color: #a5d6a7; background: #eef7ee; }
.tag.off { color: var(--muted); }
.bar { height: 5px; background: var(--panel); border-radius: 3px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.error-note { background: #fdf0ee; border: 1px solid var(--accent-soft); color: #a13527; font-size: 12.5px; padding: 9px 12px; border-radius: 2px; }

/* ── Модал ── */
.modal-back { position: fixed; inset: 0; background: rgba(50,47,43,.45); display: none; align-items: flex-start; justify-content: center; z-index: 100; padding: 5vh 16px; overflow: auto; }
.modal-back.open { display: flex; }
.modal { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; width: 100%; max-width: 640px; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.modal .modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal .modal-head h3 { margin: 0; font-family: var(--disp); font-size: 17px; }
.modal .modal-body { padding: 20px; display: grid; gap: 14px; }
.modal .modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.x-close { background: none; border: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
.x-close:hover { color: var(--accent); }

@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
}
#offerPrint { display: none; }
@media print {
  #offerPrint { display: block; padding: 24px; }
  #offerPrint h1 { font-family: var(--disp); font-size: 26px; margin: 0; }
}

/* ═══════════ ЛЕНДИНГ СТРАНИЦА ═══════════ */
.section-pad { padding: clamp(64px, 9vw, 130px) clamp(20px, 5vw, 64px); }
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
[data-reveal].revealed { opacity: 1; transform: none; }
/* Пристапност: без анимации не смее содржината да остане скриена */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Херо */
/* Херо на цела висина; навигацијата се прелева над него */
.hero-land { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--notice-h) + 96px) clamp(20px, 5vw, 64px) clamp(70px, 12vh, 130px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg .img-ph { height: 100%; }
/* Крем преод за читливост на текстот врз позадината (и врз идна фотографија) */
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, var(--bg) 0%, rgba(251,250,246,.85) 34%, rgba(251,250,246,.4) 68%, rgba(251,250,246,.12) 100%); }
.hero-inner { position: relative; z-index: 2; max-width: 920px; }
.hero-meta { display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--ink-soft); margin-bottom: clamp(20px, 3vw, 34px); }
.hero-meta .d { color: var(--accent); }
.hero-title { font-family: var(--disp); font-weight: 700; font-size: clamp(46px, 8vw, 118px); line-height: .94; letter-spacing: -.02em; margin: 0; }
.hero-title .acc { color: var(--accent); }
.hero-lead { font-size: clamp(15px, 1.2vw, 18px); line-height: 1.65; color: #40444a; margin: clamp(20px,3vw,30px) 0 28px; max-width: 52ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero { display: inline-block; padding: 15px 26px; font-weight: 600; font-size: 14px; border-radius: 2px; }
.btn-hero.solid { background: var(--accent); color: #fff; }
.btn-hero.solid:hover { background: var(--dark); color: #fff; }
.btn-hero.line { border: 1px solid var(--ink); color: var(--ink); background: rgba(251,250,246,.6); }
.btn-hero.line:hover { background: var(--ink); color: #fff; }
.hero-badge { position: absolute; left: clamp(20px, 5vw, 64px); bottom: clamp(24px, 4vh, 46px); z-index: 2; background: #fff; padding: 18px 24px; border-top: 3px solid var(--accent); max-width: 320px; box-shadow: 0 16px 36px -16px rgba(50,47,43,.35); }
.hero-badge .k { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--ink-soft); margin-bottom: 6px; }
.hero-badge .v { font-family: var(--disp); font-weight: 600; font-size: 16px; line-height: 1.3; }
.hero-scroll { position: absolute; right: clamp(20px, 5vw, 64px); bottom: clamp(24px, 4vh, 46px); z-index: 2; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; color: var(--ink); font-size: 18px; background: rgba(251,250,246,.6); animation: heroBounce 1.8s ease-in-out infinite; }
.hero-scroll:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
@keyframes heroBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (max-width: 720px) { .hero-badge, .hero-scroll { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-scroll { animation: none; } }

/* Плејсхолдер за фотографии */
.img-ph { width: 100%; height: 100%; min-height: 100%; display: grid; place-items: center; background: repeating-linear-gradient(-45deg, #ede6d7 0 14px, #e7e1d6 14px 28px); color: var(--ink-soft); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }

/* Маркиза */
@keyframes mdaMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: #ede6d7; }
.marquee .track { display: flex; gap: 60px; white-space: nowrap; padding: 16px 0; animation: mdaMarquee 26s linear infinite; font-family: var(--disp); font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.marquee .track > span { display: flex; gap: 60px; }
.marquee .d { color: var(--accent); }

/* Секциски наслови */
.sec-kick { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--accent); margin-bottom: 18px; }
.sec-title { font-family: var(--disp); font-weight: 700; font-size: clamp(30px, 4vw, 58px); line-height: 1.02; letter-spacing: -.015em; margin: 0; }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 80px); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid p { font-size: clamp(15px, 1.25vw, 19px); line-height: 1.7; color: #40444a; margin: 0 0 22px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); margin-top: clamp(48px, 6vw, 90px); border: 1px solid var(--line); }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stats-grid .stat { background: #fff; padding: clamp(24px, 3vw, 40px); }
.stats-grid .num { font-family: var(--disp); font-weight: 700; font-size: clamp(34px, 4vw, 60px); letter-spacing: -.02em; line-height: 1; }
.stats-grid .lbl { font-size: 13px; color: var(--ink-soft); margin-top: 10px; line-height: 1.4; }

/* Модели */
.models-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: clamp(28px, 3.5vw, 48px); }
.models-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.5vw, 22px); }
@media (max-width: 1020px) { .models-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .models-grid { grid-template-columns: 1fr; } }
.model-card { cursor: pointer; border: 1px solid var(--line); background: #fff; transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s ease; }
.model-card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px -24px rgba(50,47,43,.35); }
.model-card .photo { position: relative; height: clamp(160px, 14vw, 220px); overflow: hidden; }
.model-card .m-tag { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--ink); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; padding: 5px 9px; z-index: 2; }
.model-card .body { padding: 20px; }
.model-card h3 { font-family: var(--disp); font-weight: 700; font-size: 20px; margin: 0; letter-spacing: -.01em; }
.model-card .area { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
.model-card .desc { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); margin: 10px 0 18px; min-height: 42px; }
.model-card .price-row { border-top: 1px solid var(--line); padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.model-card .from-price { font-family: var(--disp); font-weight: 700; font-size: 20px; color: var(--accent); }

/* ═══ Темна секција — калкулатор визард ═══ */
.calc-dark { background: #322f2b; color: #fff; scroll-margin-top: calc(var(--notice-h, 0px) + 70px); }
.calc-dark .sec-kick { color: var(--accent-soft); }
.calc-dark .sub { color: #b9b3aa; }
.calc-grid { display: grid; grid-template-columns: 1.4fr .85fr; gap: clamp(24px, 3vw, 48px); align-items: start; }
@media (max-width: 980px) { .calc-grid { grid-template-columns: 1fr; } }

.progress-pills { display: flex; gap: 10px; margin: clamp(28px, 3.5vw, 44px) 0; flex-wrap: wrap; }
.progress-pills button { display: flex; align-items: center; gap: 10px; padding: 10px 15px; border-radius: 40px; cursor: pointer; transition: all .2s ease; font-family: inherit; border: 1px solid #4a453e; background: transparent; color: #fff; font-size: 13px; font-weight: 600; }
.progress-pills button .n { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-family: var(--disp); font-weight: 700; font-size: 12px; flex: none; background: #4a453e; color: #fff; }
.progress-pills button.active { border-color: var(--accent); background: var(--accent); }
.progress-pills button.active .n { background: #fff; color: var(--accent); }
.progress-pills button.done .n { background: var(--accent); }

.wiz-label { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.wiz-block { margin-bottom: 32px; }
.wiz-value { font-family: var(--disp); font-weight: 700; font-size: 26px; }
.wiz-value small { font-size: 15px; color: var(--muted); font-weight: 400; }
.range-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.range-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: #7d776d; margin-top: 8px; }
.mda-range { -webkit-appearance: none; appearance: none; width: 100%; height: 3px; background: #4a453e; border-radius: 3px; outline: none; }
.mda-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(219,75,59,.4); transition: transform .15s ease; }
.mda-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.mda-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 3px solid #fff; }

.opt-grid { display: grid; gap: 10px; }
.opt-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.opt-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.opt-grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) { .opt-grid.c3, .opt-grid.c4 { grid-template-columns: repeat(2, 1fr); } }
.opt-btn { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; text-align: left; padding: 15px 14px; border-radius: 2px; cursor: pointer; transition: all .18s ease; font-family: inherit; border: 1px solid #4a453e; background: transparent; color: #fff; }
.opt-btn .t { font-family: var(--disp); font-weight: 700; font-size: 15px; }
.opt-btn .s { font-family: var(--mono); font-size: 11px; opacity: .72; }
.opt-btn.active { border-color: var(--accent); background: var(--accent); }

.stepper { display: inline-flex; align-items: center; gap: 20px; border: 1px solid #4a453e; border-radius: 2px; padding: 8px 14px; }
.stepper button { width: 40px; height: 40px; border: none; background: #3c372f; color: #fff; font-size: 22px; cursor: pointer; border-radius: 2px; }
.stepper button.plus { background: var(--accent); }
.stepper .val { font-family: var(--disp); font-weight: 700; font-size: 28px; min-width: 26px; text-align: center; }

.wiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; border-top: 1px solid #4a453e; padding-top: 24px; }
.wiz-nav .back { background: transparent; border: 1px solid #4a453e; color: #fff; padding: 14px 24px; font-weight: 600; font-size: 14px; border-radius: 2px; cursor: pointer; font-family: inherit; }
.wiz-nav .next { background: var(--accent); border: none; color: #fff; padding: 14px 28px; font-weight: 600; font-size: 14px; border-radius: 2px; cursor: pointer; font-family: inherit; }
.wiz-nav .next:hover { background: #c23e2f; }

/* Прецизни мерки (напредно) */
.adv-details { border: 1px dashed #4a453e; border-radius: 3px; padding: 4px 16px 0; }
.adv-details summary { cursor: pointer; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--muted); padding: 10px 0 14px; }
.adv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding-bottom: 16px; }
.adv-grid label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.adv-grid input { width: 100%; padding: 8px 9px; font-family: var(--mono); font-size: 13px; color: #fff; background: #3c372f; border: 1px solid #4a453e; border-radius: 2px; outline: none; }
.adv-grid input:focus { border-color: var(--accent); }
.adv-grid input.overridden { border-color: var(--accent-soft); }

/* Резиме панел (секогаш видлив) */
.sum-panel { position: sticky; top: 84px; background: #fff; color: var(--ink); padding: clamp(24px, 2.5vw, 34px); border-radius: 4px; }
.sum-panel .k { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 6px; }
.sum-panel .big { font-family: var(--disp); font-weight: 700; font-size: clamp(38px, 4.2vw, 56px); line-height: 1; letter-spacing: -.02em; color: var(--accent); }
.sum-panel .mkd { font-family: var(--mono); font-size: 14px; color: var(--ink-soft); margin-top: 8px; }
.sum-tiles { display: flex; gap: 12px; margin-top: 18px; }
.sum-tiles .tile { flex: 1; background: var(--panel); border-radius: 3px; padding: 12px 14px; }
.sum-tiles .tk { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--ink-soft); }
.sum-tiles .tv { font-family: var(--disp); font-weight: 700; font-size: 18px; margin-top: 4px; }
.sum-lines { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); margin-top: 22px; padding-top: 22px; }
.sum-lines .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sum-lines .row span:first-child { font-size: 12.5px; color: var(--ink-soft); line-height: 1.35; }
.sum-lines .row span:last-child { font-family: var(--disp); font-weight: 600; font-size: 14px; white-space: nowrap; }
.sum-cta { display: block; text-align: center; background: var(--dark); color: #fff; padding: 15px; font-weight: 600; font-size: 14px; border-radius: 2px; margin-top: 22px; border: none; width: 100%; cursor: pointer; font-family: inherit; }
.sum-cta:hover { background: var(--accent); color: #fff; }

/* Чекор 4 — резиме */
.recap-line { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; border-bottom: 1px dashed #4a453e; padding-bottom: 11px; margin-bottom: 11px; }
.recap-line span:first-child { font-size: 13.5px; color: #cfc9bf; line-height: 1.4; }
.recap-line span:last-child { font-family: var(--disp); font-weight: 600; font-size: 14px; white-space: nowrap; }
.recap-total { background: #3c372f; border-radius: 4px; padding: 20px 22px; margin-top: 24px; }
.recap-total .row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.recap-total .row:last-child { margin-bottom: 0; }
.dark-input { width: 100%; padding: 11px 12px; font-family: var(--sans); font-size: 14px; color: #fff; background: #3c372f; border: 1px solid #4a453e; border-radius: 2px; outline: none; }
.dark-input:focus { border-color: var(--accent); }

/* Дограма уредувач во визардот */
.win-editor { background: #fff; color: var(--ink); border-radius: 3px; padding: 12px; margin-top: 14px; }
.win-editor input[type=text] { width: 100%; }
.win-editor input { font-family: var(--mono); font-size: 12.5px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 2px; }

/* Детална табела во чекор 4 */
.detail-details { margin-top: 24px; }
.detail-details summary { cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--accent-soft); padding: 8px 0; }
.detail-wrap { background: #fff; color: var(--ink); border-radius: 3px; overflow-x: auto; margin-top: 10px; }

/* Контакт / футер */
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; padding-bottom: clamp(48px, 6vw, 90px); border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h2 { font-family: var(--disp); font-weight: 700; font-size: clamp(34px, 5.5vw, 82px); line-height: .98; letter-spacing: -.02em; margin: 0; }
.contact-links { display: flex; flex-direction: column; gap: 18px; }
.contact-links a { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--ink); padding: 18px 22px; color: var(--ink); font-weight: 600; }
.contact-links a.soft { border-color: var(--line); font-weight: 500; }
.contact-links a:hover { background: var(--ink); color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 26px; font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }

/* ═══════════ СТРАНИЦА СО МОДЕЛИ (models.html) ═══════════ */
.nav .links a.active-link { color: var(--accent); }
.models-hero { padding: clamp(28px,4vw,52px) clamp(20px,5vw,64px) clamp(18px,2.5vw,28px); }
.models-h1 { font-family: var(--disp); font-weight: 700; font-size: clamp(32px,5vw,64px); line-height: 1; letter-spacing: -.02em; margin: 12px 0 0; }
.models-sub { font-size: clamp(14px,1.1vw,16px); line-height: 1.6; color: var(--ink-soft); max-width: 68ch; margin: 16px 0 0; }
.models-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: clamp(20px,2.5vw,32px); padding-top: 20px; border-top: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { font-family: var(--sans); font-size: 12.5px; font-weight: 500; padding: 7px 14px; border: 1px solid var(--line); background: #fff; border-radius: 40px; cursor: pointer; color: var(--ink-soft); transition: all .15s ease; }
.fchip:hover { border-color: var(--ink); color: var(--ink); }
.fchip.active { background: var(--dark); border-color: var(--dark); color: #fff; }
.sortwrap { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-soft); }
.sortwrap select { padding: 7px 10px; font-family: var(--mono); font-size: 12.5px; border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--ink); cursor: pointer; }
.models-count { color: var(--muted); font-size: 12px; margin-top: 12px; }

.models-page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px,1.6vw,22px); padding: clamp(10px,1.5vw,18px) clamp(20px,5vw,64px) clamp(48px,7vw,90px); }
@media (max-width: 900px) { .models-page-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .models-page-grid { grid-template-columns: 1fr; } }
.mp-card { border: 1px solid var(--line); background: #fff; cursor: pointer; overflow: hidden; transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease; }
.mp-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(50,47,43,.4); }
.mp-photo { position: relative; height: clamp(190px,17vw,240px); overflow: hidden; background: repeating-linear-gradient(-45deg, #ede6d7 0 14px, #e7e1d6 14px 28px); }
.mp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.mp-card:hover .mp-photo img { transform: scale(1.05); }
.mp-photo.noimg::after { content: '// фото'; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; color: var(--ink-soft); }
.mp-promo { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; padding: 4px 9px; border-radius: 2px; z-index: 2; }
.mp-area { position: absolute; bottom: 12px; right: 12px; background: rgba(50,47,43,.86); color: #fff; font-family: var(--disp); font-weight: 600; font-size: 13px; padding: 5px 10px; border-radius: 2px; z-index: 2; }
.mp-body { padding: 16px 18px 18px; }
.mp-body h3 { font-family: var(--disp); font-weight: 700; font-size: 19px; letter-spacing: -.01em; margin: 0 0 10px; }
.mp-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.mp-specs.big { gap: 8px; margin: 14px 0 4px; }
.spec-chip { font-family: var(--mono); font-size: 10.5px; letter-spacing: .03em; color: var(--ink-soft); background: var(--panel); border: 1px solid var(--line); border-radius: 2px; padding: 3px 8px; }
.mp-pricerow { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.mp-from { font-size: 11px; color: var(--ink-soft); }
.mp-price { font-family: var(--disp); font-weight: 700; font-size: 18px; color: var(--accent); }

.models-cta { background: var(--dark); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: clamp(40px,6vw,72px) clamp(20px,5vw,64px); }

/* Модал за детали на модел */
.model-modal-back { position: fixed; inset: 0; background: rgba(30,28,25,.72); backdrop-filter: blur(4px); display: none; align-items: flex-start; justify-content: center; z-index: 200; padding: clamp(12px,4vh,48px) 16px; overflow: auto; }
.model-modal-back.open { display: flex; }
.model-modal { position: relative; background: var(--bg); border-radius: 5px; width: 100%; max-width: 1000px; box-shadow: 0 30px 80px rgba(0,0,0,.4); overflow: hidden; }
.model-modal-x { position: absolute; top: 12px; right: 14px; z-index: 5; width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(50,47,43,.8); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.model-modal-x:hover { background: var(--accent); }
.model-modal-body { display: grid; grid-template-columns: 1.1fr 1fr; }
@media (max-width: 800px) { .model-modal-body { grid-template-columns: 1fr; } }
.mp-gallery { background: #000; }
.mp-gallery-main { aspect-ratio: 3/2; overflow: hidden; }
.mp-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; background: var(--dark); }
.mp-thumb { width: 64px; height: 46px; object-fit: cover; border-radius: 2px; cursor: pointer; opacity: .55; border: 2px solid transparent; flex: none; transition: opacity .15s ease; }
.mp-thumb:hover { opacity: .85; }
.mp-thumb.active { opacity: 1; border-color: var(--accent); }
.mp-detail { padding: clamp(22px,2.6vw,34px); }
.mp-detail-title { font-family: var(--disp); font-weight: 700; font-size: clamp(24px,2.6vw,34px); letter-spacing: -.02em; margin: 8px 0 0; }
.mp-prices { border: 1px solid var(--line); border-radius: 3px; margin: 20px 0 0; overflow: hidden; }
.mp-prices-head { background: var(--panel); font-size: 10.5px; letter-spacing: .08em; color: var(--ink-soft); padding: 9px 14px; border-bottom: 1px solid var(--line); }
.mp-detail-price { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.mp-detail-price:last-child { border-bottom: none; }
.pl-label { font-weight: 600; font-size: 14px; }
.pl-hint { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.pl-val { font-family: var(--disp); font-weight: 700; font-size: 17px; color: var(--accent); white-space: nowrap; }
.mp-times { display: flex; flex-wrap: wrap; gap: 16px; font-size: 11.5px; color: var(--ink-soft); margin: 16px 0 0; }
.mp-detail-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 0; }
.mp-disclaimer { font-size: 11px; line-height: 1.5; color: var(--muted); margin: 16px 0 0; }

/* ═══════════ ДОПОЛНИТЕЛНИ СЕКЦИИ (реплика на живиот сајт) ═══════════ */

/* Известување */
.notice-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center; gap: 12px; justify-content: center; background: var(--accent); color: #fff; font-size: 12.5px; padding: 9px clamp(16px,4vw,48px); text-align: center; line-height: 1.4; }

/* Херо-навигација: проѕирна над херо-то, стана цврста при скрол */
.nav-hero { position: fixed; top: var(--notice-h); left: 0; right: 0; background: transparent; backdrop-filter: none; border-bottom: 1px solid transparent; transition: background .28s ease, backdrop-filter .28s ease, border-color .28s ease; }
.nav-hero.scrolled { background: rgba(251, 250, 246, .9); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
body.notice-closed .nav-hero { top: 0; }
.notice-bar strong { font-weight: 600; }
.notice-bar .notice-dot { font-size: 8px; opacity: .8; }
.notice-bar.hidden { display: none; }
.notice-x { background: none; border: none; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; opacity: .8; }
.notice-x:hover { opacity: 1; }

/* Лого во навигација */
.nav .brand .nav-logo { height: 38px; width: auto; display: block; }
.nav-right { display: flex; align-items: center; gap: clamp(10px,1.5vw,18px); }
.lang-switch { display: flex; gap: 2px; }
.lang-switch a { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-soft); padding: 4px 7px; border: 1px solid transparent; border-radius: 2px; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.active { color: var(--accent); border-color: var(--line); background: var(--panel); }
.nav-burger { display: none; background: none; border: none; font-size: 22px; color: var(--ink); cursor: pointer; }

/* Перформанси */
.perf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(36px,4vw,56px); }
@media (max-width: 900px) { .perf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .perf-grid { grid-template-columns: 1fr; } }
.perf-card { background: var(--bg); padding: clamp(22px,2.4vw,32px); }
.perf-card .perf-n { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--accent); margin-bottom: 14px; }
.perf-card h3 { font-family: var(--disp); font-weight: 700; font-size: 18px; margin: 0 0 8px; letter-spacing: -.01em; }
.perf-card p { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); margin: 0; }

/* Услуги */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px,1.6vw,22px); margin-top: clamp(28px,3.5vw,44px); }
@media (max-width: 800px) { .services-grid { grid-template-columns: 1fr; } }
.service-card { border: 1px solid var(--line); background: #fff; padding: clamp(24px,2.6vw,36px); transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(50,47,43,.35); }
.service-card .svc-num { font-family: var(--disp); font-weight: 700; font-size: 34px; color: var(--line); line-height: 1; }
.service-card h3 { font-family: var(--disp); font-weight: 700; font-size: 21px; margin: 16px 0 10px; letter-spacing: -.01em; }
.service-card p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

/* Промо ознака + лента модели */
.promo-badge { display: inline-block; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; padding: 6px 12px; border-radius: 2px; }
.model-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: clamp(24px,3vw,40px); }
.model-strip .strip-label { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--ink-soft); margin-right: 6px; }

/* Наша изработка — галерија */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(180px,17vw,240px); gap: clamp(10px,1.2vw,16px); margin-top: clamp(28px,3.5vw,44px); }
@media (max-width: 800px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; }
.gallery-item.wide { grid-column: span 2; }
@media (max-width: 480px) { .gallery-item.wide { grid-column: span 1; } }
.gallery-item .cap { position: absolute; left: 12px; bottom: 12px; background: rgba(50,47,43,.82); color: #fff; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; padding: 5px 9px; border-radius: 2px; z-index: 2; }

/* Едукација */
.edu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px,1.4vw,18px); margin-top: clamp(32px,4vw,52px); }
@media (max-width: 900px) { .edu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .edu-grid { grid-template-columns: 1fr; } }
.edu-card { border: 1px solid #4a453e; border-radius: 3px; padding: 20px 18px; }
.edu-card h3 { font-family: var(--disp); font-weight: 700; font-size: 16px; margin: 0 0 8px; color: #fff; }
.edu-card p { font-size: 13px; line-height: 1.55; color: #b9b3aa; margin: 0; }

/* FAQ акордеон */
.faq-list { max-width: 900px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; background: none; border: none; cursor: pointer; padding: 20px 4px; font-family: var(--disp); font-weight: 600; font-size: clamp(15px,1.5vw,19px); color: var(--ink); letter-spacing: -.01em; }
.faq-q:hover { color: var(--accent); }
.faq-ic { flex: none; font-family: var(--sans); font-weight: 400; font-size: 24px; color: var(--accent); transition: transform .2s ease; }
.faq-item.open .faq-ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { margin: 0 4px 20px; font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); max-width: 74ch; }

/* Куќа по мој план — форма */
.custom-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px,4vw,64px); align-items: start; }
@media (max-width: 900px) { .custom-grid { grid-template-columns: 1fr; } }
.custom-form { background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 4px; }
@media (max-width: 540px) { .check-grid { grid-template-columns: 1fr; } }
.chk { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink); cursor: pointer; }
.chk input { width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.custom-form textarea { resize: vertical; }
.custom-form select { cursor: pointer; }

/* Мобилно мени */
@media (max-width: 920px) {
  .nav .links { position: fixed; top: calc(var(--notice-h, 0px) + 64px); left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px clamp(20px,5vw,64px); max-height: 0; overflow: hidden; transition: max-height .28s ease; }
  body.notice-closed .nav .links { top: 64px; }
  .nav-hero.scrolled .links { background: rgba(251, 250, 246, .96); backdrop-filter: blur(14px); }
  .nav .links.open { max-height: 420px; }
  .nav .links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); font-size: 14px; }
  .nav-burger { display: block; }
  .lang-switch { display: none; }
}
