/* ==========================================================================
   prok61.ru - modern UI layer (added 23.10.2026)
   Works on top of style.css / bootstrap 4. No layout restructuring.
   ========================================================================== */

:root{
  --brand: #ee681f;
  --brand-dark: #d4550e;
  --brand-soft: rgba(238,104,31,.10);
  --navy: #0b3b63;
  --navy-dark: #082c4a;
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1d2733;
  --muted: #67707c;
  --line: #e6e9ee;
  --ok: #1e8e4f;
  --err: #c62828;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --shadow-1: 0 2px 8px rgba(16,24,40,.06);
  --shadow-2: 0 8px 28px rgba(16,24,40,.10);
  --shadow-3: 0 16px 44px rgba(16,24,40,.14);
}

html{ scroll-behavior: smooth; }

body{
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5{
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text);
}

h1{ font-size: 2rem; margin-bottom: .5em; }
h2{ font-size: 1.5rem; }
h3{ font-size: 1.2rem; }

p{ margin-bottom: .9em; }

a{ color: var(--navy); transition: color .18s ease; }
a:hover{ color: var(--brand); text-decoration: none; }

img{ max-width: 100%; height: auto; }

/* ---------- accessibility: keyboard focus ---------- */
:focus{ outline: none; }
:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
  outline: 3px solid rgba(238,104,31,.45) !important;
  outline-offset: 2px;
}

/* ---------- header ---------- */
.site-header{
  background: #fff !important;
  box-shadow: var(--shadow-1);
  position: relative;
  z-index: 30;
}
.site-header .site-logo img{
  transition: transform .25s ease;
}
.site-header .site-logo:hover img{ transform: scale(1.03); }

.site-phone{
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: .01em;
  white-space: nowrap;
}
.site-phone a{ color: inherit; }
.site-phone-block{ line-height: 1.35; }

.regions{
  font-size: .85rem;
  color: var(--muted);
  background: #eef1f4;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}
.regions a{ color: var(--muted); }
.regions a:hover{ color: var(--brand); }

/* ---------- search ---------- */
.search-form{
  display: flex;
  align-items: stretch;
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.search-form:focus-within{
  border-color: rgba(238,104,31,.55);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.search-form input[type="text"],
.search-form input[name="search"]{
  width: 100% !important;
  border: 0 !important;
  padding: 12px 16px !important;
  font-size: 1rem;
  background: transparent;
  color: var(--text);
}
.search-form input[type="submit"]{
  border: 0 !important;
  background: var(--brand) !important;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 0 22px !important;
  cursor: pointer;
  transition: background .18s ease;
  white-space: nowrap;
}
.search-form input[type="submit"]:hover{ background: var(--brand-dark) !important; }

/* ---------- top menu ---------- */
.site-menu-top{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.site-menu-top li{ list-style: none; }
.site-menu-top a{
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.site-menu-top a:hover{ background: var(--brand-soft); color: var(--brand-dark); }
.site-menu-top a.active,
.site-menu-top a[style*="orange"]{ color: var(--brand-dark) !important; background: var(--brand-soft); }

@media(max-width: 991px){
  .site-menu-top{
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .site-menu-top::-webkit-scrollbar{ height: 4px; }
  .site-menu-top::-webkit-scrollbar-thumb{ background: #cfd6de; border-radius: 4px; }
}

/* ---------- buttons ---------- */
.btn{
  border-radius: var(--r-sm);
  font-weight: 600;
  padding: .55rem 1.1rem;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
  border-width: 0;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }

.btn-primary{
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 14px rgba(11,59,99,.18);
}
.btn-primary:hover, .btn-primary:focus{ background: var(--navy-dark); color: #fff; }

.btn-success{
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(238,104,31,.24);
}
.btn-success:hover, .btn-success:focus{ background: var(--brand-dark); color: #fff; }

.btn-warning{
  background: #f2b234;
  color: #3a2a05;
  box-shadow: 0 4px 14px rgba(242,178,52,.22);
}
.btn-warning:hover{ background: #e5a41f; color: #3a2a05; }

.btn-danger{ background: #d64545; color: #fff; }
.btn-danger:hover{ background: #bc3737; color: #fff; }

/* ---------- cards: categories ---------- */
.cat-item{ padding: 6px; }
.cat-item-sub{
  border: 1px solid var(--line) !important;
  background: var(--card) !important;
  border-radius: var(--r-md) !important;
  box-shadow: var(--shadow-1);
  padding: 6px 4px 12px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  height: 100%;
}
.cat-item-sub:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: rgba(238,104,31,.35) !important;
}
.cat-item-image{ margin: 14px 0 10px !important; }
.cat-item-image img{
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(16,24,40,.10));
  transition: transform .25s ease;
}
.cat-item-sub:hover .cat-item-image img{ transform: scale(1.05); }
.cat-item-name{
  font-weight: 600;
  color: var(--text);
  padding: 0 8px;
}
.cat-item-name a{ color: var(--text); }
.cat-item-info{ color: var(--muted) !important; font-size: .86rem; }

/* ---------- cards: items in category ---------- */
.cat-item-content{
  border-radius: var(--r-md);
  transition: transform .2s ease;
}
.cat-item-content > div{
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line);
  transition: box-shadow .22s ease, border-color .22s ease;
  background: #fff !important;
}
.cat-item-content:hover > div{
  box-shadow: var(--shadow-2);
  border-color: rgba(238,104,31,.30);
}
.cat-item-content .cat-item-image img{
  object-fit: contain;
  max-height: 125px;
}
.cat-item-content .btn{ margin-top: 6px; }

/* ---------- item page ---------- */
.blo-item{ padding: 0 10px; }

.item-gallery{ margin-bottom: 18px; }
.item-gallery-main{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  cursor: zoom-in;
  overflow: hidden;
}
.item-gallery-main img{
  max-height: 460px;
  width: auto;
  object-fit: contain;
  transition: transform .3s ease;
}
.item-gallery-main:hover img{ transform: scale(1.03); }

.item-gallery-thumbs{
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 2px 4px;
  -webkit-overflow-scrolling: touch;
}
.item-thumb{
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  padding: 4px;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.item-thumb img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.item-thumb:hover{ border-color: #cfd6de; transform: translateY(-2px); }
.item-thumb.active{
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

/* block with price / conditions inside item page */
.blo-item h2{
  font-size: 1.05rem !important;
  color: var(--brand-dark) !important;
  margin-bottom: .5em;
}
.blo-item > div[style*="padding:15px 0 15px 50px"]{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  padding: 18px 22px !important;
  margin-bottom: 14px;
}

/* ---------- category chips ---------- */
.cat_list22{ line-height: 1; }
.cat_list22 a{
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  padding: 8px 14px !important;
  margin: 0 8px 8px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .9rem;
  color: var(--text);
  transition: all .18s ease;
}
.cat_list22 a:hover{
  border-color: rgba(238,104,31,.5);
  color: var(--brand-dark);
  box-shadow: var(--shadow-1);
}
@media(max-width: 700px){
  .cat_list22 a{ width: auto !important; }
}

/* ---------- forms ---------- */
input[type="text"], input[type="tel"], input[type="email"], input[type="password"],
input[type="number"], input[type="search"], select, textarea{
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
  max-width: 100%;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(238,104,31,.6);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
input::placeholder, textarea::placeholder{ color: #9aa3ad; }

/* ---------- modal ---------- */
.modal-content{
  border: 0;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.modal-header{
  border-bottom: 1px solid var(--line);
  padding: 18px 22px;
}
.modal-title{ font-weight: 700; font-size: 1.15rem; }
.modal-body{ padding: 20px 22px; }
.modal-footer{ border-top: 1px solid var(--line); background: #fafbfc; padding: 14px 22px; }
.modal-backdrop.show{ opacity: .55; }
#formOrder input, #formOrder select{ width: 100%; margin-bottom: 8px; }
#formOrder input[type="button"]{
  width: 100%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  border: 0;
  border-radius: var(--r-sm);
  padding: 12px;
  cursor: pointer;
  margin-top: 8px;
  transition: background .18s ease;
}
#formOrder input[type="button"]:hover{ background: var(--brand-dark); }

/* order response messages */
.order-ok, .order-error{
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-weight: 500;
  margin: 0;
}
.order-ok{ background: #e8f6ee; color: #12693c; border: 1px solid #bfe6cf; }
.order-error{ background: #fdecec; color: var(--err); border: 1px solid #f5c6c6; }

/* ---------- footer ---------- */
.site-footer{
  background: #101820 !important;
  color: #c7ced6 !important;
  padding: 44px 0 28px !important;
  margin-top: 28px;
}
.site-footer a{ color: #fff; }
.site-footer a:hover{ color: var(--brand); }
.site-footer .site-phone{ color: #fff; }

/* ---------- misc ---------- */
.scroll-to-top-mobile{
  position: fixed;
  right: 16px;
  bottom: 84px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 40;
}
.scroll-to-top-mobile img{ width: 20px; }

/* mobile call / order bar */
.mobile-cta{
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: #fff;
  box-shadow: 0 -6px 24px rgba(16,24,40,.12);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  gap: 8px;
}
.mobile-cta a{
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  border-radius: var(--r-sm);
  font-weight: 700;
  text-decoration: none;
}
.mobile-cta-call{ background: var(--navy); color: #fff !important; }
.mobile-cta-order{ background: var(--brand); color: #fff !important; }

@media(max-width: 767px){
  .mobile-cta{ display: flex; }
  body{ padding-bottom: 68px; }
  .scroll-to-top-mobile{ bottom: 78px; }
  h1{ font-size: 1.5rem; }
  h2{ font-size: 1.25rem; }
  .cat-item-content{ text-align: left; }
}

/* ---------- tables (info pages, prices) ---------- */
.table{ background: #fff; border-radius: var(--r-md); overflow: hidden; }
.table thead th{ border-top: 0; background: #f7f9fb; color: var(--muted); font-weight: 600; }
.table td, .table th{ border-color: var(--line); }

/* ---------- smooth media ---------- */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- print ---------- */
@media print{
  .mobile-cta, .scroll-to-top-mobile, .site-header, .site-footer, .panel-left{ display: none !important; }
  body{ background: #fff; }
}

/* ---------- lity lightbox (photo viewer) ---------- */
.lity{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9990;white-space:nowrap;background:#0b0b0b;background:rgba(10,10,10,.92);opacity:0;transition:opacity .25s ease;outline:none;cursor:zoom-out}
.lity.lity-opened{opacity:1}
.lity.lity-closed{opacity:0}
.lity-wrap{position:absolute;top:0;right:0;bottom:0;left:0;text-align:center}
.lity-wrap:before{content:"";display:inline-block;height:100%;vertical-align:middle;margin-right:-.25em}
.lity-container{position:relative;display:inline-block;vertical-align:middle;text-align:left;white-space:normal;max-width:100%;max-height:100%}
.lity-content{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}
.lity-content img,.lity-image img{max-width:96vw;max-height:88vh;display:block;margin:0 auto;border:0;line-height:0;box-shadow:0 20px 60px rgba(0,0,0,.5);border-radius:6px}
.lity-close{position:fixed;top:0;right:0;margin:0;padding:0 6px;width:48px;height:48px;font-size:34px;line-height:1;color:#fff;background:none;border:0;cursor:pointer;z-index:9999}
.lity-close:hover{opacity:.75}
.lity-close::-moz-focus-inner{border:0;padding:0}
.lity-loader{position:absolute;left:50%;top:50%;margin:-16px 0 0 -16px;width:32px;height:32px;border:3px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:lity-spin .9s linear infinite;z-index:9991;opacity:0;transition:opacity .25s ease}
.lity-loading .lity-loader{opacity:1}
@keyframes lity-spin{to{transform:rotate(360deg)}}
.lity-hide{display:none}
.lity-hidden{visibility:hidden}
html.lity-active,html.lity-active body{overflow:hidden}
@media(max-width:767px){.lity-content img,.lity-image img{max-width:94vw;max-height:82vh}.lity-close{width:42px;height:42px;font-size:30px}}

.item-gallery-hint{
  margin: 8px 0 0;
  font-size: .85rem;
  color: var(--muted);
}
