/* styles.css */

:root {
  --bg: #ffffff;
  --bg2: #f6f7f9;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #ffffff;
  --accent: #2563eb;
  --accent2: #3b82f6;
  --accent-hover: #1d4ed8;
  --blinkgray: #666;
  --shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
  --shadow2: 0 2px 5px rgba(37, 99, 235, 0.1);
  --radius: 16px;
  --max: 1560px;
  --footermax: 1240px;
  --topoffset: 64px;
  --sidew: 260px;
  --gap: 20px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-weight:400;
  letter-spacing:0;
  color:var(--text);
  background:var(--bg);
  font-size:14px;
  line-height:1.5;
}
a{color:inherit}
.wrap{max-width:var(--max); margin:0 auto; padding:0 18px;}
.footerwrap{max-width:var(--footermax); margin:0 auto; padding:0 18px;}

/* === TOP LINE === */
.topline {
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.topline__row{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  padding:4px 0;
  font-size:13px;
  color:var(--muted);
  flex-wrap:wrap;
}
.topline__left{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  min-width:0;
}
.topline__strong{
  color:var(--text);
  font-weight:600;
  white-space:nowrap;
}
.topline__meta{white-space:nowrap; opacity:.85}

.topline__right{
  display:flex;
  gap:16px;
  align-items:center;
  flex-wrap:wrap;
}

.top-tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 4px 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: transparent;
  border: 1px solid transparent;
}
.top-tool:hover {
  background: var(--bg2);
  color: var(--accent);
  border-color: var(--line);
}
.tool-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.top-tool:hover .tool-icon { opacity: 1; }


.top-tool:hover .tool-icon{
  filter: invert(28%) sepia(86%) saturate(2283%) hue-rotate(215deg) brightness(93%) contrast(98%);
}

.tool-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  margin-left: 4px;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0, 124, 195, 0.2);
}
.top-sep {
  width: 1px;
  height: 20px;
  background: var(--line);
  margin: 0 4px;
}

.badge, .toplinks { display: none !important; }


.positionnews{padding:10px 0 10px 0;}
.pozparamnews{border-bottom:2px dashed #ccc;padding:0 0 10px 0;}
.mainnewshead{font-weight:bold;font-size:1.1em;}
.mainnewsdate{font-size:0.8em;display:none;}
.tablenewsdesc{font-size:0.9em;color:var(--text);}
.bash2{font-weight:bold;font-size:0.9em;border-bottom:2px solid var(--text);margin:35px 0 15px 0;}
.datenewsdet{text-align:right;color:var(--blinkgray);}
.opejur{text-align:right;color:var(--blinkgray);}

/* === BUTTONS === */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding:10px 16px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  line-height:1;
  white-space:nowrap;
  transition:all .15s ease;
  cursor: pointer;
}
.btn:hover{background:var(--bg2); border-color:var(--accent); color:var(--accent);}

.btn--accent{
  border-color:transparent;
  background:var(--accent);
  color:#fff;
  box-shadow:0 2px 6px rgba(0, 124, 195, 0.25);
}
.btn--accent:hover{
  background:var(--accent-hover);
  box-shadow:0 4px 10px rgba(0, 124, 195, 0.3);
  color:#fff;
}
.btn--sm{padding:8px 12px; border-radius:8px; font-size:13px;}

.saveselect{}
.savetext,.saveselect{
  height: 32px; padding: 0 10px;
  background: #fff; color: #111;
  border:2px solid var(--accent); border-radius: 4px; font-weight: 600;
  font-size: 12px; letter-spacing: 0.5px;
}
.savebtn{
  height: 32px; padding: 0 20px;
  background: var(--accent); color: #fff;
  border: none; border-radius: 4px; font-weight: 600;
  cursor: pointer; text-transform: uppercase;
  font-size: 12px; letter-spacing: 0.5px;
}
.cw-cell-t input[type="text"]{
  width:100%; height: 32px; padding: 0 10px;
  background: #fff; color: #111;
  border:2px solid var(--accent); border-radius: 4px; font-weight: 600;
  font-size: 12px; letter-spacing: 0.5px;
}

/* === LAYOUT === */
.layout{
  display:grid;
  grid-template-columns: var(--sidew) 1fr;
  gap:var(--gap);
  align-items:start;
  padding:16px 0 40px;
}


/* === SIDEBAR === */
.sidebar__sticky{
  position: sticky;
  top: var(--topoffset);
  height: calc(100vh - var(--topoffset));
  display: flex;
  flex-direction: column;
}

.sidebar__logo{
  flex-shrink: 0;
  display:block;
  text-decoration:none;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  padding:10px;
  margin-bottom: 12px; 
}
.sidebar__logo img{
  width:100%;
  height:auto;
  display:block;
}

.sidebar__scroll {
  flex-grow: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0; 
  padding-bottom: 10px;
  margin-right: -8px; 
}
.sidebar__scroll::-webkit-scrollbar { width: 4px; }
.sidebar__scroll::-webkit-scrollbar-track { background: transparent; }
.sidebar__scroll::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }


/* === VERTICAL MENU === */
.vmenu{
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--card);
  overflow:hidden;
  box-shadow: var(--shadow2);
  width: var(--sidew);
}

.vmenu__parent{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:11px 14px;
  text-decoration:none;
  font-weight:600;
  font-size:13px;
  color:var(--text);
  background:#fff;
  border-bottom:1px solid var(--line);
  transition: background .15s, color .15s;
}
.vmenu__parent:hover{
  background:var(--bg2);
  color:var(--accent);
}

.vmenu__sub a {
  display: block;
  padding: 9px 14px 9px 34px; 
  background: rgba(0, 115, 192, 0.04); 
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  font-weight: 400;
  transition: all .15s;
  position: relative;
}

.vmenu__sub a::before {
  content: "\2022";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: inherit; 
  font-size: 14px; 
  line-height: 1;
  opacity: 0.8;
}

.vmenu__sub a:hover {
  background: rgba(0, 115, 192, 0.09);
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--accent); 
}

.vmenu__all{
  display:block;
  padding:12px 14px;
  background:#fff;
  color:var(--accent);
  font-weight:700;
  font-size:13px;
  text-decoration:none;
}
.vmenu__all:hover{background:var(--bg2);}

.sidebar__cta{
  margin-top:12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  box-shadow: var(--shadow2);
  padding:12px;
  width: var(--sidew);
}
.sidebar__cta .btn{width:100%}
.sidebar__contacts{margin-top:10px; display:flex; flex-direction:column; gap:4px}
.sidebar__contacts .phone{font-weight:700; text-decoration:none; color:var(--text); font-size:15px;}
.sidebar__contacts .mail{color:var(--muted); text-decoration:none; font-size:13px;}
.sidebar__contacts .mail:hover{color:var(--accent)}


/* === CONTENT AREA === */
.content{
  min-width:0;
}


/* === MASTHEAD === */
.masthead{
  margin-top:0;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  box-shadow: var(--shadow2);
  overflow:hidden;
}
.masthead__in{
  padding:14px 18px;
  display:grid;
  grid-template-columns: 1fr auto;
  gap:16px;
  align-items:center;
}
.masthead__left{ display:flex; flex-direction:column; gap:10px; }

.masthead__line{ font-size:13px; color:var(--muted); line-height:1.4; }
.masthead__line1{ font-weight:600; color:var(--text); }
.masthead__line2{ opacity:.8; }

.masthead__actions{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; }

.util-link{
  display:inline-flex; align-items:center; gap:6px;
  font-size:13px; font-weight:600; color:var(--accent);
  text-decoration:none; padding:6px 10px;
  border-radius:6px;
  background:rgba(0, 124, 195, 0.06);
  transition: background .15s;
}
.util-link:hover{background:rgba(0, 124, 195, 0.12);}
.util-icon{ width:16px; height:16px; opacity:.8; 
fill:currentColor;
  filter: invert(28%) sepia(86%) saturate(2283%) hue-rotate(215deg) brightness(93%) contrast(98%);
}

.masthead__right{
  display:flex; flex-direction:column; align-items:flex-end;
  justify-content:center; gap:4px;
  padding-left:16px; border-left:1px solid var(--line);
  min-width: 180px;
}
.masthead__contactrow{ display:flex; align-items:center; justify-content:flex-end; gap:10px; margin-bottom:4px; }
.masthead__contactrow .micon img{ display:block; opacity:.9; }
.masthead__contactrow .micon:first-child img { width: 28px; height: 28px; transform: scale(1.2); }
.masthead__contactrow .micon:nth-child(2) img{ width:24px; height:24px; }
.masthead__phone{ font-size:20px; line-height:1.1; font-weight:700; color:var(--text); text-decoration:none; }
.masthead__mail{ text-decoration:none; color:var(--muted); font-size:13px; font-weight:500; }
.masthead__mail:hover{color:var(--text)}


/* === HORIZONTAL NAV === */
.hnav{
  margin-top:12px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:10px;
  overflow:hidden;
  box-shadow: var(--shadow2);
  display:flex;
  flex-wrap:wrap;
}
.hnav a{
  padding:10px 14px;
  text-decoration:none;
  color:var(--muted);
  border-right:1px solid var(--line);
  font-size:13px;
  font-weight:600;
  transition:color .1s, background .1s;
}
.hnav a:hover{color:var(--accent); background:var(--bg2)}
.hnav a:last-child{border-right:none}


/* === HERO BANNER === */
.hero {
  margin-top: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: url('/imgx/hero_center.webp');
  background-position: center bottom;
  background-size: cover;
  min-height: 220px; 
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  box-shadow: var(--shadow);
/*  overflow: hidden; */
}

.hero__in {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: radial-gradient(
    farthest-side at left center, 
    rgba(255, 255, 255, 1) 20%,      
    rgba(255, 255, 255, 0.9) 50%,   
    rgba(255, 255, 255, 0) 100%     
  );
  padding: 15px 40px 20px 40px; 
}

.hero-search {
  display: flex; gap: 6px;
  background: #fff; border: 1px solid var(--accent);
  border-radius: 6px; padding: 2px;
  margin-bottom: 8px; 
  width: 100%; max-width: 500px; 
  box-shadow: 0 4px 10px rgba(0, 124, 195, 0.15); 
}

.hero-search input {
  flex: 1; height: 32px; border: none; background: transparent;
  padding: 0 12px; font-size: 14px; color: var(--text); outline: none;
}
.hero-search button {
  height: 32px; padding: 0 20px;
  background: var(--accent); color: #fff;
  border: none; border-radius: 4px; font-weight: 600;
  cursor: pointer; text-transform: uppercase;
  font-size: 12px; letter-spacing: 0.5px;
}
.hero-search button:hover { background: var(--accent-hover); }

.h1 {
  margin: 0 0 6px; 
  font-size: 26px; line-height: 1.2; font-weight: 800;
  color: #0f172a; text-shadow: 0 2px 10px rgba(255,255,255,1); 
}
.lead {
  margin: 0; 
  color: #334155; font-size: 14px; line-height: 1.4;
  font-weight: 600; max-width: 600px;
  text-shadow: 0 1px 5px rgba(255,255,255,1);
}

.chips {
  display: flex; gap: 8px; justify-content: flex-start; flex-wrap: wrap;
  margin-top: 30px; 
}
.chip {
  display: inline-flex; padding: 4px 12px;
  border-radius: 6px; border: 1px solid var(--accent);
  background: rgba(255,255,255,0.8); 
  color: var(--accent); font-size: 12px; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
}
.chip:hover { background: var(--accent); color: #fff; }

.hero__panel, .panel__title, .panel__hint, .panel__actions { display: none; }


/* === SECTIONS & CARDS === */
.section{margin-top:24px;}
.section__head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:14px; margin-bottom:12px;
  padding-bottom:8px; border-bottom:1px solid var(--line);
}
.section__head h2{margin:0; font-size:18px; letter-spacing:-.2px; font-weight:700;}
.section__head p{margin:0; color:var(--muted); font-size:13px;}
.cath_h2{margin:0; font-size:18px; letter-spacing:-.2px; font-weight:700;}

.grid{ display:grid; grid-template-columns: repeat(12, 1fr); gap:14px; }
.card{
  grid-column: span 4;
  border:1px solid var(--line); border-radius:10px;
  background:var(--card); overflow:hidden;
  text-decoration:none; box-shadow: var(--shadow2);
  display:flex; min-height:120px;
  transition: border-color .15s, transform .15s;
}
.card:hover{border-color:#b0b8c6; transform:translateY(-1px);}

.card__img {
  width: 130px; display: flex; align-items: center; justify-content: center;
  background: #fff; border-right: 1px solid var(--line);
  padding: 2px; flex-shrink: 0; 
}
.card__img img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.card__body{padding:12px; display:flex; flex-direction:column; gap:6px;}
.card__title{margin:0; font-size:14px; font-weight:700; color:var(--text);}
.card__desc{margin:0; color:var(--muted); font-size:12px; line-height:1.4;}
.card__meta{
  margin-top:auto; color:var(--accent); font-size:12px;
  font-weight:600; display:inline-flex; align-items:center; gap:6px;
}


/* === SEO BLOCK === */
.prose{
  border:1px solid var(--line); border-radius:10px;
  background:var(--card); box-shadow: var(--shadow2);
  overflow:hidden; position: relative; 
}
.prose__in{padding:20px;}
.prose h2{margin:0 0 12px; font-size:18px; font-weight:700; color:var(--text);}
.prose h3{margin:24px 0 10px; font-size:14px; text-transform:uppercase; letter-spacing:.5px; color:var(--text); font-weight:700; border-bottom:1px solid var(--line); padding-bottom:4px;}
.prose p{margin:0 0 14px; color:#334155; font-size:14px; line-height:1.6; font-weight:400;}
.prose strong{font-weight:700; color:var(--text);}

.seo-hidden { max-height: 640px; overflow: hidden; transition: max-height 0.5s ease; }
.seo-visible { max-height: 2000px; }
.seo-overlay {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 100px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 20px; pointer-events: none; 
}
.seo-overlay button {
  pointer-events: auto; background: #fff; border: 1px solid var(--line);
  padding: 8px 20px; border-radius: 20px; cursor: pointer;
  font-weight: 600; color: var(--accent); box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-size: 13px; transition: all 0.2s;
}
.seo-overlay button:hover { background: var(--bg2); transform: translateY(-2px); }


/* === INFO LISTS === */
.cols{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
.list{
  border:1px solid var(--line); border-radius:10px;
  background:#fff; overflow:hidden; box-shadow: var(--shadow2);
}
.list__head{
  padding:10px 16px; border-bottom:1px solid var(--line); background:var(--bg2);
  display:flex; justify-content:space-between; align-items:center;
}
.list__head h3{margin:0; font-size:12px; text-transform:uppercase; font-weight:700; color:var(--muted);}
.list__head a{font-size:12px; color:var(--accent); text-decoration:none; font-weight:600;}
.item{ padding:12px 16px; border-bottom:1px solid var(--line); }
.item:last-child{border-bottom:none}
.date{font-size:11px; color:var(--muted); margin-bottom:4px; font-family:monospace;}
.item a{display:block; text-decoration:none; font-weight:600; font-size:14px; line-height:1.3; color:var(--text);}
.item a:hover{color:var(--accent);}
.item p{margin:4px 0 0; color:var(--muted); font-size:13px; line-height:1.4;}


/* === FOOTER MAIN === */
.main-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 30px 0;
  margin-top: 0px;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.main-footer a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}
.main-footer a:hover {
  color: var(--accent);
}

.footer-logo img {
  display: block;
  margin-bottom: 15px;
}
.footer-copyright strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}
.footer-copyright span {
  display: block;
  color: var(--muted);
  margin-bottom: 15px;
}
.footer-meta a {
  display: block;
  text-decoration: underline;
  margin-bottom: 4px;
}

.footer-menu-row {
  display: flex;
  gap: 20px;
}
.footer-menu-col {
  flex: 1;
}
.footer-title {
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.main-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.main-footer li {
  margin-bottom: 6px;
}
.main-footer li a {
  color: var(--muted);
}

.footer-address-block {
  margin-bottom: 15px;
}
.footer-address-block strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}
.footer-address-block span {
  color: var(--muted);
}
.link-underline {
  text-decoration: underline !important;
  display: block;
  margin-top: 4px;
}

.footer-phone-block span,
.footer-messengers span,
.footer-email span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 2px;
}
.footer-messengers {
  margin-top: 24px !important;
}
.footer-phone {
  font-size: 16px;
  font-weight: 700;
  color: var(--text) !important;
  display: block;
  line-height: 1.2;
}
.work-time {
  margin-top: 4px;
}
.messenger-icons {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 15px;
}
.messenger-icons img {
  width: 32px;
  height: 32px;
  display: block;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.messenger-icons img:hover { opacity: 1; }

.footer-email a {
  font-weight: 700;
  font-size: 14px;
  color: var(--text) !important;
}
.footer-email a:hover {
  color: var(--accent) !important;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}


/* === MEDIA QUERIES === */
@media (max-width: 1100px){
  .hero__in{grid-template-columns: 1fr}
  .masthead__in{grid-template-columns: 1fr}
  .masthead__right{
    align-items:flex-start; border-left:none; padding-left:0;
    border-top:1px solid var(--line); padding-top:12px;
  }
}
@media (max-width: 980px){
  .wrap{padding:0 14px;}
  .footerwrap{padding:0 14px; max-width:var(--footermax); margin:0 auto;}
  .layout{grid-template-columns: 1fr; padding:14px 0 36px;}
  .sidebar__sticky{position: static; top:auto;}
  .hero__in{padding:18px}
  .card{grid-column: span 12}
  .cols{grid-template-columns: 1fr}
}


/* === DESKTOP FIXES === */
@media (min-width: 981px){
  html, body{ overflow-x: hidden; }

  .sidebar__sticky{
    position: fixed;
    top: var(--topoffset);
    width: var(--sidew);
    left: max(18px, calc((100vw - var(--max)) / 2 + 18px));
    padding-bottom: 20px;
    margin-top: -7px;
    overflow: visible; 
  }
  
  .sidebar__scroll::-webkit-scrollbar { width: 4px; }
  .sidebar__scroll::-webkit-scrollbar-track { background: transparent; }
  .sidebar__scroll::-webkit-scrollbar-thumb { 
    background: transparent; border-radius: 4px; transition: background 0.3s;
  }
  .sidebar__sticky:hover .sidebar__scroll::-webkit-scrollbar-thumb { background: #d1d5db; }

  .main-footer {
    border-top: none;
  }

  .footerwrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 18px;
    display: grid;
    grid-template-columns: var(--sidew) 1fr; 
    gap: var(--gap);
  }

  .footer-grid {
    grid-column: 2;
    border-top: 1px solid var(--line); 
    padding-top: 30px;
    display: grid;
    grid-template-columns: 1.1fr 1.6fr 1fr 1fr;
    gap: 20px;
    align-items: start;
  }
}


/* === ADAPTIVE FOOTER COLUMNS === */
@media (min-width: 981px) and (max-width: 1360px) {
  .footer-menu-col:first-child { display: none; }
}

@media (min-width: 981px) and (max-width: 1260px) {
  .footer-menu-row { display: none; }
  .footer-grid { grid-template-columns: 1.2fr 1.2fr 1fr; } 
}

@media (min-width: 981px) and (max-width: 1160px) {
  .footer-grid > div:nth-child(3) { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 981px) and (max-width: 1060px) {
  .footer-grid > div:nth-child(1) { display: none; } 
  .footer-grid { 
    grid-template-columns: 1fr; 
    text-align: right; 
  }
  .footer-contacts-block { text-align: right; }
  .footer-messengers, .messenger-icons { justify-content: flex-end; }
}


/* === MOBILE VERSION === */
.mob-menu-btn { display: none; }

@media (max-width: 980px) {

  .mob-menu-btn {
    display: flex; flex-direction: column; gap: 5px;
    background: transparent; border: none; padding: 0;
    cursor: pointer; margin-right: 15px;
  }
  .mob-menu-btn span {
    display: block; width: 24px; height: 2px;
    background: var(--text); border-radius: 2px;
  }
  
  .topline__strong, .topline__meta, .tool-label, .top-sep { display: none; }
  .topline__right { gap: 8px; }

  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 280px;
    background: #fff; z-index: 1000;
    transform: translateX(-110%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 15px rgba(0,0,0,0.2);
    overflow-y: auto; padding: 0;
  }
  
  .sidebar__sticky { 
    position: static; width: 100%; height: auto; 
    padding: 20px; display: block; overflow: visible; margin: 0;
  }

  body.menu-open .sidebar { transform: translateX(0); }
  body.menu-open { overflow: hidden; }
  body.menu-open::after {
    content: ""; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 900; backdrop-filter: blur(2px);
  }
  body.menu-open .search__in{
  z-index:0;opacity:0.9;
  }

  .layout { display: block; padding-top: 10px; }
  .grid { grid-template-columns: 1fr; gap: 10px; }
  .card { grid-column: span 1; }
  .cols { grid-template-columns: 1fr; }
  .hero, .masthead { border-radius: 0; border: none; }

  .search__in{
  z-index:0;opacity:0.9;
  }

  
  .hnav, .chips { display: none; }

  .hero__in {
    padding: 20px 14px;
    background: rgba(60, 80, 100, 0.4); 
  }
  .hero .h1, .hero .lead {
     color: #ffffff;
     text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  }
  .h1 { font-size: 22px; }

  .hero-search { max-width: 100%; }
  .hero-search input { min-width: 0; font-size: 13px; }
  .hero-search button { padding: 0 10px; font-size: 11px; width: auto; }

  /* === MOBILE FOOTER === */
  .footerwrap { padding: 0 14px; }
  .main-footer { padding: 20px 0 30px; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 0; display: block; }
  .footer-col { margin-bottom: 0; } 

  .footer-center-mob { text-align: center; margin-bottom: 10px; }
  .footer-logo img { margin: 0 auto 5px; width: 150px; }
  .footer-copyright { font-size: 12px; margin-bottom: 10px; }
  
  .desktop-only { display: none !important; }

  .footer-menu-row { display: block; }
  
  .acc-trigger {
    background: #f9fafb;
    padding: 10px 14px;
    margin: 0 -14px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-size: 14px;
    display: flex; justify-content: space-between; align-items: center;
    margin-top: -1px;
  }
  
  .acc-arrow { font-size: 10px; color: var(--accent); transition: transform 0.2s; }
  .acc-trigger.active .acc-arrow { transform: rotate(180deg); }
  .acc-trigger.active { background: #fff; color: var(--accent); }

  .footer-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
  }
  .footer-collapse ul { padding: 10px 0; margin: 0; }
  .footer-collapse li { margin-bottom: 8px; padding-left: 5px; }
  .footer-address-block { padding: 10px 5px; }

  .footer-phone-block { margin-top: 20px; text-align: center; }
  .footer-phone { font-size: 20px; margin-bottom: 4px; display: inline-block; }
  .footer-email { text-align: center; margin-bottom: 15px; }
  .footer-email a { font-size: 16px; }

  .footer-bottom-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
  }
  
  .messenger-icons { margin: 0; display: flex; gap: 10px; }
  .messenger-icons img { width: 40px; height: 40px; }
  
  .footer-rating-mob iframe { display: block; }
}


/* --- 1. COMPUTER (Screen wider than 981px) --- */
@media (min-width: 981px) {
  .ver-pc-final {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    min-height: 160px;
  }

  .ver-mob-final { display: none !important; }

  .acc-arrow { display: none !important; }
  .footer-title { pointer-events: none; cursor: default; }

  .spec-text-pc {
    margin-top: 15px;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.35;
  }

  .icons-row-pc {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
  }

  .icons-row-pc img {
    width: 32px !important;
    height: 32px !important;
    display: block;
  }

  .icons-row-pc a:first-child img {
    width: 38px !important;
    height: 38px !important;
  }
  
  .email-bottom-pc {
    margin-top: auto;
  }
  .email-bottom-pc span { display: block; color: var(--muted); font-size: 11px; }
  .email-bottom-pc a { font-weight: 700; font-size: 14px; text-decoration: none; color: var(--text); }
  .email-bottom-pc a:hover { color: #0073c0; }
}

/* --- 2. TELEPHONE (Screen under 980px) --- */
@media (max-width: 980px) {
  .ver-pc-final { display: none !important; }
  .ver-mob-final { display: block !important; margin-top: 20px; }

  .mob-phone-row { text-align: center; margin-bottom: 10px; }
  .footer-phone { font-size: 20px; font-weight: 700; color: var(--text); text-decoration: none; }

  .mob-email-row { text-align: center; margin-bottom: 20px; }
  .mob-email-row a { font-size: 16px; font-weight: 700; color: var(--text); text-decoration: none; }

  .mob-flex-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }
  .mob-icons { display: flex; gap: 10px; align-items: center; }

  /* Telegram (обычный размер) */
  .mob-icons img { width: 40px !important; height: 40px !important; }

  /* WhatsApp (увеличенный) */
  .mob-icons a:first-child img {
    width: 48px !important;
    height: 48px !important;
  }

  .mob-rating iframe { display: block; }
}

/* --- 3. NARROW PC FIXES (981px - 1060px) --- */
@media (min-width: 981px) and (max-width: 1060px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    text-align: center !important; 
  }

  .ver-pc-final {
    align-items: center !important; 
  }

  .footer-phone-block,
  .spec-text-pc,
  .email-bottom-pc {
    text-align: center !important;
    align-items: center !important;
  }

  .icons-row-pc {
    justify-content: center !important;
  }
}

.inner-search-bar {
  margin-top: 16px;
  display: flex;
  gap: 4px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 3px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 115, 192, 0.1); 
}

.inner-search-input {
  flex-grow: 1;
  border: none;
  height: 34px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  background: transparent;
}

.inner-search-btn {
  height: 34px;
  padding: 0 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s;
}

.inner-search-btn:hover {
  background: var(--accent-hover);
}

.breadcrumbs {
  margin: 0px 0px 6px 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs span {
  margin: 0 6px;
  opacity: 0.5;
}

.breadcrumbs .current {
  color: var(--text);
  font-weight: 600;
  cursor: default;
}

.page-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px 40px;
  box-shadow: var(--shadow2);
}

.page-content h1 {
  margin: 0 0 24px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

.page-content h2 {
  margin: 15px 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.page-content h3 {
  margin: 24px 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.page-content p {
  margin-bottom: 16px;
  line-height: 1.6;
  color: #334155;
  font-size: 15px;
  max-width: 900px;
}

.page-content strong {
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 600px) {
  .inner-search-btn {
    padding: 0 14px;
    font-size: 11px;
  }
  .page-content {
    padding: 20px 16px;
  }
  .page-content h1 {
    font-size: 22px;
  }
}

.inner-search-input { height: 32px; }
.inner-search-btn { height: 32px; }

@media (min-width: 981px) {
  .inner-search-bar {
    position: sticky;
    top: 40px;
    z-index: 40;
    background: #fff;
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 2px;
    gap: 6px;
    margin-top: 10px;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 124, 195, 0.15), 0 -10px 0 0 #fff;
  }
}

/* === MODAL STYLES === */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.6); /* Темно-синее затемнение */
  backdrop-filter: blur(4px);
  z-index: 2000; /* Выше всего на свете */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  z-index:2001;
}

.modal-window {
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  overflow: hidden;
  z-index:2002;
}

.modal-overlay.open .modal-window {
  transform: translateY(0);
}

/*.modal-overlay.open .search__in{z-index:0;display:none;}*/

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  z-index: 10;
  padding: 0;
}
.modal-close:hover { color: var(--accent); }

/* TABS */
.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
}
.tab-btn {
  flex: 1;
  padding: 16px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}
.tab-btn:hover { color: var(--text); background: rgba(0,0,0,0.02); }
.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: #fff;
}

/* CONTENT & FORMS (Строгий стиль) */
.modal-content { padding: 24px; }

.auth-form { display: none; flex-direction: column; gap: 14px; }
.auth-form.active { display: flex; }

.authform{flex-direction: column; gap: 14px; width:100%;max-width:300px;margin:auto;}

.footer_auth_links {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer_auth_links a{
  color: var(--muted);
  font-size:12px;
  margin:0 5px;
}

.form-group label {
  display: block;
  font-size: 11px; /* Уменьшили шрифт заголовка */
  font-weight: 700;
  text-transform: uppercase; /* Сделали капсом, как в чертежах */
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  color: var(--muted);
}
.form-group input {
  width: 100%;
  height: 34px; /* ВЫСОТА 34px (Стандарт) */
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px; /* Строгие углы */
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}
.form-group input:focus { border-color: var(--accent); }

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-top: 2px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  color: var(--text);
}
.forgot-link { text-decoration: none; color: var(--accent); font-weight: 600; }
.forgot-link:hover { text-decoration: underline; }

/* Кнопка на всю ширину (компактная и строгая) */
.btn--full { 
  width: 100%; 
  justify-content: center; 
  height: 34px; /* ВЫСОТА 34px */
  font-size: 13px; 
  text-transform: uppercase; 
  font-weight: 700; 
  letter-spacing: 0.5px;
  border-radius: 4px;
}

.form-note {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}
.form-note a { color: var(--text); text-decoration: underline; }

/* === СТИЛИ ОТДЕЛЬНОЙ СТРАНИЦЫ ВХОДА (LOGIN.HTML) === */
.auth-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 20px;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow2);
}

.auth-card h2 {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.auth-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* На мобильных ставим колонки друг под другом */
@media (max-width: 800px) {
  .auth-page-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* === РЕЖИМ АВТОРИЗОВАННОГО ПОЛЬЗОВАТЕЛЯ (РАБОЧИЙ СТОЛ) === */

/* 1. Переключатель "Панель / Сайт" в шапке */
.view-switch {
  display: inline-flex;
  background: #f1f5f9;
  padding: 2px;
  border-radius: 4px;
  margin-right: 15px;
  border: 1px solid #e2e8f0;
}
.vs-btn {
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  border-radius: 3px;
  transition: all 0.2s;
}
.vs-btn.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  cursor: default;
}
.vs-btn:hover:not(.active) { color: var(--accent); }


/* 2. Рабочая область (Сетка: Контент + Корзина) */
.workspace {
  display: grid;
  /* БЫЛО: 1fr 320px */
  /* СТАЛО: 1fr 400px (Расширили блок заказа) */
  grid-template-columns: 1fr 400px; 
  gap: 20px;
  align-items: start;
}

/* Левая часть (Контент) */
.ws-content {
  min-width: 0;
}
.ws-content .grid {
  gap: 14px;
}

/* --- НОВЫЙ ДИЗАЙН КАРТОЧЕК В ЦЕНТРЕ (ВЕРТИКАЛЬНЫЕ) --- */
/* Делаем их "столбиками", чтобы влезало 3 в ряд при широком правом блоке */
.workspace .card {
  flex-direction: column;
  height: 100%;
  align-items: stretch;
}
.workspace .card__img {
  width: 100%; height: 160px;
  border-right: none; border-bottom: 1px solid var(--line);
  padding: 10px;
}
.workspace .card__body {
  padding: 12px; flex-grow: 1;
  display: flex; flex-direction: column; justify-content: space-between;
}
.workspace .card__title {
  margin-bottom: 8px; font-size: 13px; line-height: 1.4;
}
.workspace .card__desc { display: none; } /* Скрываем описание */
.workspace .card__meta {
  margin-top: 10px; justify-content: flex-start;
}

/* Адаптив карточек: на ноутбуках 2 в ряд, на больших 3 в ряд */
@media (max-width: 1300px) {
  .workspace .card { grid-column: span 6; }
}
@media (min-width: 1301px) {
  .workspace .card { grid-column: span 4; }
}


/* 3. Правая часть (Липкий виджет корзины — ТАБЛИЧНЫЙ ВИД) */
.ws-sidebar {
  position: sticky; top: 80px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow2);
  z-index: 30; 
}

/* Шапка виджета */
.cart-widget-head {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  background: #f8fafc; 
}
.cart-widget-title {
  font-weight: 800; font-size: 13px; text-transform: uppercase; color: var(--text);
}
.cart-count-badge {
  background: #fff; border: 1px solid var(--line); color: var(--accent);
  padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 700;
}

/* СЕТКА ТАБЛИЦЫ (Сжатая под данные) */
/* Пропорции: Имя | Кол | Цена | Сумма | Del */
.cw-grid-row {
  display: grid;
  grid-template-columns: 1fr 34px 54px 68px 24px; 
  gap: 0; 
}
.cw-grid-row-main {
  display: grid;
  grid-template-columns: 120px 1fr 90px 60px 70px 30px; 
  gap: 0; 
}

.cw-grid-row-table {
  display: grid;
  grid-template-columns: 150px 1fr 150px; 
  gap: 0; 
}

.cw-grid-row-order {
  display: grid;
  grid-template-columns: 90px 120px 160px 1fr 100px ; 
  gap: 0; 
}

.cw-grid-row-t1 {
  display: grid;
  grid-template-columns: 1fr 90px 90px 90px 80px; 
  gap: 0; 
}


.cart-widget-list-table{
width:100%;max-width:600px;border-radius:3px;border:1px solid var(--line);
}

.cart-widget-list-order{
width:100%;border-radius:3px;border:1px solid var(--line);
}


/* ЗАГОЛОВКИ ТАБЛИЦЫ */
.cw-table-header {
  border-bottom: 1px solid var(--text);
  background: #fff;
}
.cw-th {
  font-size: 10px; font-weight: 700; color: #000; text-transform: uppercase;
  padding: 8px 2px; /* Уменьшили отступы */
  border-right: 1px solid var(--line);
  display: flex; align-items: center;
}
.cw-th:last-child { border-right: none; }
.cw-th.center { justify-content: center; }
.cw-th.right { justify-content: flex-end; padding-right: 4px; }


.cw-th-o {
  font-size: 0.9em; font-weight: 700; color: #000; text-transform: uppercase;
  padding: 8px 2px;
  border-right: 1px solid var(--line);
  display: flex; align-items: center;
}
.cw-th-o.center { justify-content: center; }
.cw-th-o.right { justify-content: flex-end; padding-right: 4px; }
.cw-th-o:last-child { border-right: none; }

.cw-th-t1 {
  font-size: 0.9em; font-weight: 700; color: #000; text-transform: uppercase;
  padding: 8px 2px;
  border-right: 1px solid var(--line);
  display: flex; align-items: center;
}
.cw-th-t1.center { justify-content: center; }
.cw-th-t1.right { justify-content: flex-end; padding-right: 4px; }
.cw-th-t1:last-child { border-right: none; }



/* СТРОКА ТОВАРА */
.cw-item {
  border-bottom: 1px solid var(--line);
  transition: background 0.1s;
}
.cw-item:hover { background: #f0f7ff; }

/* ЯЧЕЙКИ */
.cw-cell {
  padding: 6px 4px; 
  font-size: 11px;
  color: var(--text);
  border-right: 1px solid var(--line);
  display: flex; 
  flex-direction: column; /* Текст друг под другом */
  justify-content: center; 
  line-height: 1.3;
}
.cw-cell:last-child { border-right: none; }

.cw-cell-t {
  padding: 10px 8px; 
  font-size: 1em;
  color: var(--text);
  border-right: 0px solid var(--line);
  display: flex; 
  flex-direction: column;
  justify-content: center; 
  line-height: 1.3;
}
.cw-cell-t:last-child { border-right: none; font-weight:bold;}


.cw-cell-t1 {
  padding: 10px 8px; 
  font-size: 1em;
  color: var(--text);
  border-right: 1px solid var(--line);
  display: flex; 
  flex-direction: column;
  justify-content: center; 
  line-height: 1.3;
}
.cw-cell-t1:last-child { border-right: none; font-weight:bold;}


.cw-cell-o {
  padding: 10px 8px; 
  font-size: 1.1em;
  color: var(--text);
  border-right: 0px solid var(--line);
  display: flex; 
  flex-direction: column;
  justify-content: center; 
  line-height: 1.3;
}
.cw-cell-o:last-child { border-right: none; font-weight:bold;}

.cart-widget-list-table{
  background:#f7f7f7;
}


/* Название (Ссылка) - Спокойный жирный */
.cw-name {
  font-weight: 600; 
  color: #0f172a; 
  text-decoration: none;
  word-wrap: break-word; 
  font-size: 11px;
  margin-bottom: 2px;
}
.cw-name:hover { color: var(--accent); text-decoration: underline; }

/* Технические данные (Еле заметные) */
.cw-specs {
  font-size: 10px; 
  color: #94a3b8; /* Светло-серый */
  font-weight: 400;
  line-height: 1.2;
  cursor: default;
}

/* Цифры */
.cw-cell.qty { align-items: center; font-weight: 600; background: #f8fafc; }
.cw-cell.price { align-items: flex-end; white-space: nowrap; color: #334155; }
.cw-cell.sum { align-items: flex-end; font-weight: 700; white-space: nowrap; color: #0f172a; }

/* Кнопка удаления */
.cw-del {
  width: 100%; height: 100%;
  border: none; background: none; color: #cbd5e1; 
  font-size: 18px; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.cw-del:hover { color: #ef4444; background: #fff5f5; }

/* ПОДВАЛ (ИТОГО) - Строгий светлый */
.cart-widget-footer {
  padding: 0; 
  background: #fff; 
  border-top: 1px solid var(--text); /* Строгая черная черта */
}


.cw-total-row {
  display: grid;
  grid-template-columns: 1fr 34px 54px 68px 24px; 
  color: var(--text); 
  font-weight: 700;
  font-size: 12px;
  background: #f1f5f9;
}

.cw-total-row-main {
  display: grid;                   
  grid-template-columns: 120px 1fr 90px 60px 70px 30px;
  color: var(--text); 
  font-weight: 700;
  font-size: 12px;
  background: #f1f5f9;
}

.cw-total-row-t1 {
  display: grid;
  grid-template-columns: 1fr 90px 90px 90px 80px; 
  color: var(--text); 
  font-weight: 700;
  font-size: 12px;
  background: #f1f5f9;
}



.cw-total-cell {
  padding: 8px 4px;
  display: flex; align-items: center;
  border-right: 1px solid var(--line); 
}
.cw-total-cell:last-child { border-right: none; }
.cw-total-cell.right { justify-content: flex-end; }
.cw-total-cell.center { justify-content: center; }


.cw-total-cell-t1 {
  padding: 8px 4px;
  display: flex; align-items: center;
  border-right: 1px solid var(--line); 
}
.cw-total-cell-t1:last-child { border-right: none; }
.cw-total-cell-t1.right { justify-content: flex-end; }
.cw-total-cell-t1.center { justify-content: center; }



.btn-area {
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 8px 8px;
}

/* Кнопка заказа - Аккуратная, 32px */
.btn-order, .order_button {
  display: flex; width: 100%; height: 32px; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; border: none; border-radius: 4px;
  font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px;
  cursor: pointer; text-decoration: none; transition: background 0.2s;
}
.btn-order:hover { background: var(--accent-hover); }
.order_button {max-width:200px;}

.form_button {
  width: 150px; height: 32px; background: #777; color: #fff; border: none; 
  border-radius: 4px; font-weight: 600; font-size: 12px; text-transform: uppercase; 
  letter-spacing: 0.5px; cursor: pointer; text-decoration: none; transition: background 0.2s;
}
.form_button_sel {
 background: var(--accent2);
}



/* === АДАПТИВНОСТЬ РАБОЧЕГО СТОЛА === */

/* Ноутбуки: Товары по 2 в ряд, т.к. корзина занимает место */
@media (min-width: 981px) and (max-width: 1440px) {
  .ws-content .card {
    grid-column: span 6; 
  }
}

/* === МОБИЛЬНАЯ АДАПТАЦИЯ (Корзина и Рабочий стол) === */

/* По умолчанию (на ПК) мобильная плашка скрыта */
.mob-order-bar, .mob-overlay { display: none; }

/* ПРАВИЛА ДЛЯ ЭКРАНОВ МЕНЬШЕ 1200px (Планшеты и Телефоны) */
@media (max-width: 1200px) {
  
  /* 1. Делаем контент на всю ширину (убираем колонку справа) */
  .workspace { grid-template-columns: 1fr; } 
  
  /* 2. Скрываем переключатель видов (Панель/Сайт) */
  .view-switch { display: none; }

  /* 3. Превращаем правый сайдбар в НИЖНЮЮ ШТОРКУ */
  .ws-sidebar {
    position: fixed;
    top: auto; 
    bottom: 0; 
    left: 0; 
    right: 0;
    width: 100%;
    z-index: 1000;
    
    /* Оформление шторки */
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
    border: none;
    border-top: 1px solid var(--accent);
    
    /* Анимация скрытия/появления */
    transform: translateY(110%); /* Спрятан внизу */
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    max-height: 80vh; /* Не больше 80% экрана */
    display: flex; flex-direction: column;
  }
  
  /* Класс .open добавляется через JS при клике на плашку */
  .ws-sidebar.open { transform: translateY(0); }


  /* 4. НИЖНЯЯ ПЛАШКА (Всегда видна) */
  .mob-order-bar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; z-index: 990;
    padding: 10px 14px;
    border-top: 1px solid var(--line);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    height: 52px;
  }

  .mob-bar-info { flex-grow: 1; cursor: pointer; }
  .mob-bar-row { display: flex; gap: 8px; font-size: 11px; color: var(--muted); }
  .mob-bar-sum { font-weight: 800; font-size: 16px; color: var(--text); line-height: 1.2; }
  
  .mob-bar-toggle {
    width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    color: var(--muted); cursor: pointer;
  }
  
  .mob-bar-btn {
    background: var(--accent); color: #fff; font-weight: 700; 
    font-size: 12px; text-transform: uppercase; padding: 0 16px;
    height: 32px; display: flex; align-items: center; border-radius: 4px;
    text-decoration: none;
  }

  /* 5. АДАПТАЦИЯ ТАБЛИЦЫ ВНУТРИ ШТОРКИ */
  
  /* Скрываем шапку таблицы, она не влезает */
  .cw-table-header { display: none; }

  /* Карточка товара */
  .cw-grid-row {
    display: block; /* С+_а_<_а_ Grid */
    position: relative;
    padding: 12px;
    border-bottom: 1px solid var(--line);
  }

 
  /* Название товара - сверху на всю ширину */
  .cw-cell:first-child {
    border: none; padding: 0 0 8px 0; width: 100%;
  }
  .cw-name { font-size: 13px; margin-bottom: 4px; }
  
  /* Цифры (Кол, Цена, Сумма) - в один ряд снизу */
  .cw-item .cw-cell.qty,
  .cw-item .cw-cell.price,
  .cw-item .cw-cell.sum {
    display: inline-block;
    border: none;
    padding: 0;
    margin-right: 15px;
    width: auto;
  }

  /* Добавляем подписи CSS-ом */
  .cw-cell.qty::before { content: "x "; color: var(--muted); font-size: 11px; }
  .cw-cell.price::after { content: " p."; color: var(--muted); font-size: 11px; }
  .cw-cell.sum { font-size: 13px; color: var(--text); }
  .cw-cell.sum::after { content: " p."; }

  /* Кнопка удаления - в правом нижнем углу */
  .cw-cell:last-child {
    position: absolute; right: 10px; bottom: 12px;
    width: 30px; height: 30px; border: none; padding: 0;
    justify-content: flex-end;
  }

  /* Подвал шторки */
  .cart-widget-footer { padding-bottom: 80px; /* Отступ, чтобы не перекрывалось плашкой */ }
  .btn-area { display: none; } /* Кнопка и так есть на плашке */
  .cw-total-row { display: flex; justify-content: space-between; padding: 15px; font-size: 14px; }
  .cw-total-cell { border: none; padding: 0; }

  /* 6. ЗАТЕМНЕНИЕ ФОНА */
  .mob-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6); z-index: 900;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
  }
  .mob-overlay.open { opacity: 1; pointer-events: auto; }
}

.search__in{
  z-index:0;
  background:green;
}











   /* ============================================================ */
   /* :   (COMPACT 2026 - FINAL)            */
   /* ============================================================ */

    .calc-list { display: flex; flex-direction: column; gap: 10px; } /*   */

    .calc-row {
      background: #fff; border: 1px solid var(--line); border-radius: 6px;
      box-shadow: var(--shadow2); transition: all 0.2s ease;
      display: flex; flex-direction: column; overflow: hidden;
    }
    .calc-row:hover { border-color: #94a3b8; box-shadow: 0 4px 15px rgba(0,0,0,0.08); z-index: 2; }

    .cr-main { display: flex; width: 100%; }

    /*   */
    .cr-visual {
      width: 360px; /*   */
      flex-shrink: 0; background: #fff; padding: 12px;
      border-right: 1px solid var(--line);
      display: flex; flex-direction: column;
      position: relative; /*   */
    }

    /*    (, ) */
    .cr-badges {
      position: absolute; top: 10px; left: 10px; z-index: 10;
      display: flex; gap: 4px;
    }
    .badge-item {
      font-size: 9px; font-weight: 700; text-transform: uppercase;
      padding: 3px 6px; border-radius: 3px; 
      background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1;
    }

    .cr-img {
      height: 220px; /*  130px ->  220px.    ! */
      display: flex; align-items: center; justify-content: center;
      margin-bottom: 10px; padding: 0; /*     */
    }
    .cr-img img { width: 100%; height: 100%; object-fit: contain; }

    /*   */
    .cr-desc-small {
      font-size: 11px; line-height: 1.3; color: #334155;
      margin-top: auto; padding-top: 8px; border-top: 1px solid #f1f5f9;
    }

    /*   */
    .cr-panel {
      flex-grow: 1; padding: 12px 16px;
      display: flex; flex-direction: column; background: #fff;
    }

    .cr-title {
      font-size: 16px; font-weight: 800; color: var(--text); line-height: 1.2;
      margin: 0 0 4px 0; text-decoration: none; display: block;
    }
    .cr-title:hover { color: var(--accent); }

    .cr-price-block {
      font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px;
      display: flex; align-items: baseline; gap: 6px;
    }
    .cr-price-val { font-size: 18px; font-weight: 800; }

    /*   () */
    .cr-inputs-area {
      background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 4px;
      padding: 10px; margin-bottom: 10px;
      display: grid; grid-template-columns: 1fr 1fr; gap: 6px 15px;
    }

    .cr-inputs-rem {
      background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 4px;
      padding: 10px; margin-bottom: 10px;display:inline-block;
      clear:both;
    }
    .cr-inputs-rem-text{
    padding:0 0 20px;
    }


    .cr-field { display: flex; flex-direction: column; gap: 2px; }
    .cr-field1 { display: flex; flex-direction: column; gap: 2px;}
    .cr-field-full { grid-column: span 2; }

    .cr-cursor{cursor:pointer;}
    .colors{font-size:0.7em;}
    .colors tr td{text-shadow: 1px 1px 0px rgba(174, 187, 187, 0.67);padding:2px;text-align:center;cursor:pointer;}
    .colta{border:1px solid #ccc;border-radius:5px;-webkit-box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);-moz-box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);}
    #clozbtn{
      gap:3px;
      padding:4px 8px;
      border-radius:5px;
      border:1px solid var(--line);
      background:#fff;
      color:var(--text);
      text-decoration:none;
      font-size:12px;
      line-height:1;
      white-space:nowrap;
      transition:all .15s ease;
      cursor: pointer;
      }

    .cr-label {
      font-size: 10px; font-weight: 700; color: #64748b;
      text-transform: uppercase; letter-spacing: 0.3px;
    }

    .cr-input {
      height: 30px;
      border: 1px solid #cbd5e1; border-radius: 3px;
      padding: 0 8px; font-size: 13px; color: var(--text);
      font-weight: 600; background: #fff; width: 100%;
    }

    .cr-input-rem{
      height: 30px;
      border: 1px solid #cbd5e1; border-radius: 3px;
      padding: 0 8px; font-size: 13px; color: var(--text);
      font-weight: 600; background: #fff; min-width: 250px;
    }


    .cr-input:focus { border-color: var(--accent); outline: none; }
    .cr-input[readonly] { background: #e2e8f0; color: #64748b; cursor: default; }

    .cr-bottom {
      margin-top: auto;
      display: flex; align-items: center; justify-content: space-between; gap: 10px;
    }
    
    .btn-buy {
      height: 32px; padding: 0 20px;
      background: var(--accent); color: #fff; border: none; border-radius: 4px;
      font-weight: 700; font-size: 12px; text-transform: uppercase;
      cursor: pointer; transition: background 0.2s; text-decoration: none;
      display: flex; align-items: center; justify-content: center;
      flex:0 0 35%;
    }
    .btn-buy:hover { background: var(--accent-hover); }

    .btn-upload {
      height: 32px; padding: 0 20px;
      background: var(--accent); color: #fff; border: none; border-radius: 4px;
      font-weight: 700; font-size: 12px; text-transform: uppercase;
      cursor: pointer; transition: background 0.2s; text-decoration: none;
      display: block; 
    }


    .cr-more-btn {
      font-size: 11px; color: var(--accent); font-weight: 700; cursor: pointer;
      background: none; border: none; padding: 0; display: inline-flex; align-items: center; gap: 4px;
    }
    .cr-more-btn svg { width: 10px; height: 10px; fill: currentColor; }

    /*   */
    .cr-hidden-text {
      display: none; padding: 15px; background: #fff; border-top: 1px solid #e2e8f0;
      font-size: 12px; line-height: 1.5; color: #334155;
    }
    .cr-hidden-text p { margin-bottom: 8px; }
    .cr-hidden-text.open { display: block; }

.order-confirm {
  z-index: 10; 
  display: none; 
  font-size: 10px;
  line-height: 1.1;
  padding-left: 10px; 
  border-left: 1px solid #f1f5f9; 
}

.order-confirm.active {

}

/*    */
.oc-line {

}

/*   */
.oc-green { color: #16a34a; font-weight: 700; }
.oc-text  { color: #0f172a; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }

/*   */
.oc-gray  { color: #64748b; font-size: 9px; letter-spacing: -0.2px; }
.oc-dark  { color: #0f172a; font-weight: 700; font-size: 9px; }
.oc-sep   { color: #cbd5e1; margin: 0 1px; }



    /*  " " */
    .prod-grid-title {
      font-size: 16px; font-weight: 800; text-transform: uppercase;
      margin: 60px 0 20px; color: var(--text); border-bottom: 2px solid var(--line); padding-bottom: 8px;
      display: flex; justify-content: space-between; align-items: flex-end;
    }
    .prod-list-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 30px; }
    .pl-card {
      border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 14px;
      display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text); transition: all 0.2s;
    }
    .pl-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow2); }
    .pl-img { height: 100px; display: flex; align-items: center; justify-content: center; margin-bottom: 5px; padding: 5px; }
    .pl-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
    .pl-title { font-size: 13px; font-weight: 700; line-height: 1.35; height: 36px; overflow: hidden; }
    .pl-meta { font-size: 11px; color: var(--muted); background: var(--bg2); padding: 2px 6px; border-radius: 4px; width: fit-content; }
    .pl-price { font-size: 16px; font-weight: 800; margin-top: auto; color: var(--text); }
    .pl-btn-sm { 
      width: 100%; height: 30px; margin-top: 8px; background: #fff; border: 1px solid var(--accent); 
      color: var(--accent); border-radius: 4px; font-weight: 600; cursor: pointer; text-transform: uppercase; font-size: 11px; 
    }
    .pl-btn-sm:hover { background: var(--accent); color: #fff; }

    /*   */
    .cat-header { margin-bottom: 24px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
    .cat-header h1 { margin: 0; font-size: 26px; font-weight: 800; color: var(--text); line-height: 1.2; }
    .pagination { display: flex; gap: 6px; margin-top: 30px; justify-content: center; }
    .pg-link {
      width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
      border: 1px solid var(--line); border-radius: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 13px; background: #fff;
    }
    .pg-link.active { background: var(--accent); color: #fff; border-color: var(--accent); }
    .recent-block { margin-top: 60px; padding-top: 30px; border-top: 1px solid var(--line); }
    .recent-block h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }

    /*  */
    @media (max-width: 1100px) {
      .cr-main { flex-direction: column; }
      .cr-visual { width: 100%; border-right: none; border-bottom: 1px solid var(--line); padding: 10px; flex-direction: row; gap: 15px; align-items: center; }
      .cr-img { width: 100px; height: 80px; margin-bottom: 0; flex-grow: 0; }
      .cr-desc-small { border-top: none; padding-top: 0; margin-top: 0; font-size: 11px; }
      .cr-badges { top: 5px; left: 5px; }
      .prod-list-grid { grid-template-columns: repeat(3, 1fr); }


    }
    @media (max-width: 768px) {
      .cr-visual { flex-direction: column; align-items: flex-start; }
      .cr-img { width: 100%; height: 140px; }
      .cr-inputs-area { grid-template-columns: 1fr; }
      .cr-field-full { grid-column: span 1; }
      .prod-list-grid { grid-template-columns: repeat(2, 1fr); }

    .btn-buy {
      height: 32px; padding: 0 20px;
      background: var(--accent); color: #fff; border: none; border-radius: 4px;
      font-weight: 700; font-size: 10px; text-transform: uppercase;
      cursor: pointer; transition: background 0.2s; text-decoration: none;
      display: flex; align-items: center; justify-content: center;
      flex:0 0 40%;
    }

    }
