/* Изделия: картите на областите, избраната област под тях, голямата снимка */

/* картите */
.oblasti-mreja { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px) clamp(16px, 2vw, 28px); }
.ok { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 14px 12px; text-decoration: none; color: var(--mastilo); }
.ok-sn { grid-column: 1 / -1; position: relative; display: block; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; background: var(--hartiya-2); transition: box-shadow .3s; }
.ok-sn img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.ok:hover .ok-sn img { transform: scale(1.035); }
.ok-ime { font-weight: 500; font-size: clamp(17px, 1.45vw, 21px); letter-spacing: -0.02em; line-height: 1.2; transition: color .2s; }
.ok-broi { font-size: 12.5px; color: var(--mastilo-3); white-space: nowrap; }
.ok[aria-current="true"] .ok-sn { box-shadow: 0 0 0 3px var(--hartiya), 0 0 0 5.5px var(--oranzh); }
.ok[aria-current="true"] .ok-ime { color: var(--oranzh-tekst); }
.ok:focus-visible { outline: none; }
.ok:focus-visible .ok-sn { box-shadow: 0 0 0 3px var(--hartiya), 0 0 0 5.5px var(--mastilo); }

/* избраната област */
.katalog { padding: clamp(56px, 7vw, 104px) 0 var(--vazduh); }
.oblast { scroll-margin-top: calc(var(--glava-v) + 24px); padding-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--liniya); }
.oblast + .oblast { margin-top: clamp(56px, 7vw, 96px); }
.js .oblast:not(.akt) { display: none; }
.js .oblast + .oblast { margin-top: 0; }
.oblast-glava { display: grid; gap: 14px; }
.oblast-glava p { color: var(--mastilo-2); max-width: 58ch; }
.js .oblast.akt { animation: oblast-vlez .5s cubic-bezier(.2,.7,.2,1); }
@keyframes oblast-vlez { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.izd-karti { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); margin-top: clamp(32px, 4vw, 52px); }
.izd-sn { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--hartiya-2); cursor: zoom-in; }
.izd-sn img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.izd-contain { background: #fff; box-shadow: inset 0 0 0 1px var(--liniya-2); }
.izd-contain img { object-fit: contain; padding: 14px; }
.izd-sn:hover img { transform: scale(1.03); }
.izd-oshte { position: absolute; right: 10px; bottom: 10px; padding: 5px 9px; border-radius: 8px; background: rgba(22, 25, 27, .74); color: #fff; font-size: 12px; }
.izd-k h3 { margin-top: 16px; font-weight: 500; font-size: clamp(16.5px, 1.3vw, 19px); letter-spacing: -0.02em; line-height: 1.25; }
.izd-k p, .izd-redove p { margin-top: 8px; font-size: 13px; line-height: 1.55; color: var(--mastilo-2); }
.mera { white-space: nowrap; }

.izd-redove { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 72px); margin-top: clamp(40px, 5vw, 64px); }
.izd-redove li { padding: 20px 0 22px; border-top: 1px solid var(--liniya-2); }
.izd-redove h3 { font-weight: 500; font-size: clamp(16.5px, 1.3vw, 19px); letter-spacing: -0.02em; line-height: 1.25; }
.oblast-dolu { margin-top: clamp(40px, 5vw, 64px); }
.oblast-dolu svg { width: 16px; height: 16px; }

@media (max-width: 1100px) { .izd-karti { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .oblasti-mreja { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oblasti-mreja li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .oblasti-mreja li:last-child:nth-child(odd) .ok-sn { aspect-ratio: 2 / 1; }
  .ok { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ok-broi { margin-top: -4px; }
  .izd-karti { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .izd-redove { grid-template-columns: minmax(0, 1fr); }
  .mera { white-space: normal; }
}
@media (max-width: 380px) { .izd-contain img { padding: 8px; } }

/* запитването */
.chertezh-blok { background: var(--hartiya-2); }
.chertezh-blok .btn { margin-top: 34px; }

/* голямата снимка */
.svetlina { border: 0; padding: 0; background: transparent; max-width: min(1400px, 94vw); max-height: 92vh; overflow: visible; }
.svetlina::backdrop { background: rgba(22, 25, 27, .88); }
.svetlina img { max-width: min(1400px, 94vw); max-height: 84vh; width: auto; height: auto; border-radius: 10px; background: #fff; }
.svetlina-x { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--hartiya); font-size: 28px; line-height: 1; cursor: pointer; }
.svetlina-dolu { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 4px; border-radius: 999px; background: var(--hartiya); }
.svetlina-dolu[hidden] { display: none; }
.svetlina-str { width: 48px; height: 48px; border: 0; border-radius: 50%; background: transparent; font-size: 20px; cursor: pointer; }
.svetlina-str:hover { background: var(--hartiya-2); }
.svetlina-broi { font-size: 13px; min-width: 44px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .js .oblast.akt { animation: none; }
  .ok-sn img, .izd-sn img { transition: none; }
}

/* Снимка, която се вижда цялата, без рамката на чертежите (валовете, 1.11.2026) */
.izd-cyala img { object-fit: contain; }
