/* =========================================================
   RabotaLive24 — styles.css (2026-01-10)
   Цель: современный, быстрый, читаемый дизайн + конверсия
   ========================================================= */

/* ===== База / Reset ===== */
:root{
  --bg: #eef1f5;
  --text: #111;
  --text-muted: #cfcfcf;
  --white: #fff;
  --brand: #d60000;
  --brand-dark: #b80000;
  --glass: rgba(0,0,0,0.55);
  --glass-soft: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.18);
  --shadow: 0 8px 24px rgba(0,0,0,0.40);
  --radius: 16px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: none; /* фон в .site-bg */
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
img{ max-width:100%; height:auto; display:block; }

/* Доступность: скрытый текст */
.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

/* ===== Фоновый слой ===== */
.site-bg{
  position: fixed;
  top:0; left:0;
  width:100%;
  height:100vh;
  z-index:-1;
  pointer-events:none;
  background: url("img/bg-full.png?v=2025-11-07") center 30% / cover no-repeat;
  background-color: var(--bg);
  transform: translateZ(0);
  will-change: transform;
}
@supports (height: 100svh){
  .site-bg{ height:100svh; }
}

/* ===== Секции ===== */
.section{
  padding: 100px 20px 60px;
  scroll-margin-top: 90px;
}

/* ===== Типографика ===== */
h1,h2,h3,h4,h5,h6{ margin:0 0 0.5em; font-weight:900; }
.hero-title{ margin: 8px 0 8px; }

p, li{
  margin: 0 0 12px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.muted{ color: var(--text-muted); font-size: .95rem; }
.hidden{ display:none; }

/* ===== Карточка (glass) ===== */
.glass-card{
  background: var(--glass);
  padding: 60px;
  border-radius: var(--radius);
  color: var(--white);
  text-align:center;
  max-width: 1200px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  margin: 40px auto;
}

/* Когда нужно левое выравнивание — задаём в разметке style или классом */

/* ===== Кнопки ===== */
.btn-primary{
  background: var(--brand);
  border:none;
  color:#fff;
  padding: 14px 22px;
  border-radius: 10px;
  cursor:pointer;
  font-size: 1rem;
  font-weight:800;
  text-decoration:none;
  display:inline-block;
}
.btn-primary:hover{ background: var(--brand-dark); }

.btn-secondary{
  background: transparent;
  color:#fff;
  border:1px solid rgba(255,255,255,0.35);
  padding: 12px 20px;
  border-radius: 10px;
  cursor:pointer;
  font-weight:800;
  text-decoration:none;
  display:inline-block;
  transition: background .2s ease, transform .15s ease, border-color .2s ease;
}
.btn-secondary:hover{
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.45);
}

/* ===== Навигация ===== */
.navbar{
  background: rgba(40, 40, 40, 0.65);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.40);
  border-radius: 0 0 16px 16px;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar ul{
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 16px;
  list-style:none;
  margin:0;
  padding: 14px 16px;
  flex-wrap:wrap;
}
.navbar ul li a{
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  color:#fff;
  font-weight:800;
  text-decoration:none;
  font-size: 1rem;
  padding: 10px 14px;
  border-radius: 10px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.navbar ul li a:hover{
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 14px rgba(0,0,0,0.45);
  filter: saturate(1.05);
}

/* Поднавигация */
.sub-nav{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap: 14px;
  padding: 12px 18px;
  margin: 0 auto 40px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  max-width: 1000px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.30);
}
.sub-nav a{
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  color:#fff;
  font-weight:800;
  font-size: .98rem;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration:none;
  box-shadow: 0 3px 8px rgba(0,0,0,0.35);
  transition: transform .15s ease, box-shadow .2s ease;
}
.sub-nav a:hover{
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 5px 12px rgba(0,0,0,0.45);
}

/* ===== HERO ===== */
.hero .hero-card{
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  padding-top: 56px;
  padding-bottom: 56px;
  background: rgba(0,0,0,0.58);
  backdrop-filter: blur(10px);
}

.hero-badges{
  display:flex;
  gap:10px;
  justify-content:center;
  margin-bottom:14px;
  flex-wrap:wrap;
}
.pill{
  display:inline-flex;
  align-items:center;
  padding:6px 12px;
  border-radius:999px;
  font-weight:900;
  font-size:.9rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color:#fff;
  text-shadow: 0 1px 1px rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
}

.hero-title{
  font-size: clamp(1.9rem, 3.4vw + 1rem, 3.1rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: .2px;
  color:#fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.hero-sub{
  display:block;
  margin-top: 8px;
  font-weight: 800;
  font-size: clamp(1rem, 1.1vw + .7rem, 1.2rem);
  color:#e8e8e8;
}
.hero-lead{
  max-width: 880px;
  margin: 10px auto 18px;
  font-size: clamp(1rem, 1vw + .8rem, 1.15rem);
  line-height: 1.65;
  color:#e2e2e2;
}
.hero-cta{
  display:flex;
  gap:12px;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  margin-top: 6px;
  margin-bottom: 8px;
}
.hero-kpi{
  display:flex;
  gap: 16px;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  list-style:none;
  padding:0;
  margin: 10px 0 0;
  color:#dcdcdc;
  font-weight: 800;
  font-size: .98rem;
}
.hero-kpi li{ display:flex; gap:8px; align-items:center; }
.hero-kpi i{ filter: drop-shadow(0 1px 1px rgba(0,0,0,.45)); }

/* ===== Services ===== */
.services-card{ max-width:1100px; margin:auto; }
.services-title{
  font-size: 2rem;
  margin-bottom: 20px;
  color:#fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.services-list{
  list-style:none;
  padding:0;
  margin:0;
  text-align:left;
  font-size: 1.05rem;
  font-weight: 700;
  color:#e2e2e2;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px 20px;
}
.services-list li{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--glass-soft);
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow: inset 0 0 4px rgba(255,255,255,0.08);
  transition: background .2s ease, transform .15s ease, border-color .2s ease, box-shadow .2s ease;
}
.services-list li:hover{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
  box-shadow: inset 0 0 6px rgba(255,255,255,0.18), 0 2px 6px rgba(0,0,0,0.25);
  transform: translateY(-2px);
}
.services-list i{
  color: var(--brand);
  font-size: 1.25rem;
  width: 26px;
  text-align:center;
  flex-shrink:0;
}

/* ===== Service detail blocks ===== */
.service-detail{ max-width:1200px; margin:auto; text-align:left; }
.service-title{
  font-size: 2.1rem;
  font-weight: 900;
  margin-bottom: 18px;
  color:#fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.service-title .subtitle{
  display:block;
  margin-top: 6px;
  font-size: 1.15rem;
  font-weight: 800;
  color:#e2e2e2;
}
.service-features{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px 18px;
  color:#e4e4e4;
  font-size:1.02rem;
  line-height:1.55;
}
.service-features li{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--glass-soft);
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow: inset 0 0 4px rgba(255,255,255,0.08);
  transition: background .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.service-features li:hover{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
  box-shadow: inset 0 0 6px rgba(255,255,255,0.18), 0 2px 6px rgba(0,0,0,0.25);
  transform: translateY(-2px);
}
.service-features i{
  color: var(--brand);
  font-size: 1.2rem;
  width: 22px;
  flex-shrink:0;
  margin-top: 2px;
}

/* ===== Prices ===== */
.prices-card{ max-width:1100px; margin:auto; }

.price-subtitle{
  color: #d7d7d7;
  margin: 10px 0 18px;
  font-size: 1rem;
  line-height: 1.5;
}
.price-subtitle .fa-circle-check{ color:#28d17c; margin-right:.5em; vertical-align:-2px; }

.price-table-wrap{
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.price-table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255,255,255,0.92);
  border-radius: 14px;
  overflow:hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  border: 1px solid rgba(0,0,0,0.08);
}
.price-table thead th{
  background: linear-gradient(180deg,#4ea8ff,#7c4dff);
  color:#fff;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 900;
  font-size: 1.02rem;
  padding: 16px 18px;
  text-align:center;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  border-right: 1px solid rgba(255,255,255,0.22);
}
.price-table thead th:last-child{ border-right:none; }

.price-table td{
  padding: 18px 20px;
  font-size: 1.02rem;
  color:#0f1220;
  text-align:center;
  background:#fff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  border-right: 1px solid rgba(0,0,0,0.06);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.price-table tbody tr td:last-child{ border-right:none; }
.price-table tbody tr:last-child td{ border-bottom:none; }

.price-table td:first-child{
  text-align:left;
  font-weight: 800;
  display:flex;
  align-items:center;
  gap:10px;
}
.price-table td:first-child i{ font-size:1.1em; width:28px; text-align:center; }

.price-table tbody tr:nth-child(even) td{ background:#f6f7fb; }
.price-table .row-demo td{ background:#fff4f4; }
.price-table .row-ground td{ background:#f4fff6; }
.price-table .row-loaders td{ background:#f4f8ff; }
.price-table .row-help td{ background:#fff8f2; }

@media (hover:hover){
  .price-table tbody tr:hover td{
    box-shadow: inset 0 0 0 9999px rgba(255,255,255,0.18);
    filter: saturate(1.06);
  }
}

.price-notes{ margin-top: 18px; text-align:left; }
.price-notes h3{ color:#ffd166; font-size:1.25rem; margin: 8px 0 10px; }
.price-factors{ padding-left: 18px; margin:0; color:#e9e9e9; line-height:1.6; }

/* ===== Simple 2-col grid (используется в портфолио/отзывах) ===== */
.grid2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
@media (max-width: 640px){ .grid2{ grid-template-columns: 1fr; } }

/* ===== Reviews (Public site) — unified look (VISIBLE) ===== */
/* Светлые карточки, тёмный текст — чтобы всё было читаемо на любом фоне */
body:not(.app) #reviews{
  scroll-margin-top: 90px;
}

body:not(.app) #reviews .track{
  display:flex;
  gap: 14px;
  overflow-x:auto;
  padding: 10px 6px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

body:not(.app) #reviews .track::-webkit-scrollbar{ height: 10px; }
body:not(.app) #reviews .track::-webkit-scrollbar-thumb{
  background: rgba(17,24,39,0.25);
  border-radius: 999px;
}
body:not(.app) #reviews .track::-webkit-scrollbar-track{
  background: rgba(17,24,39,0.08);
  border-radius: 999px;
}

body:not(.app) #reviews .rev{
  flex: 0 0 360px;
  max-width: 360px;
  scroll-snap-align: start;

  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  padding: 16px 16px 14px;

  color: #111827;
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}

@media (max-width: 520px){
  body:not(.app) #reviews .rev{
    flex-basis: 84vw;
    max-width: 84vw;
  }
}

body:not(.app) #reviews .rev .stars{
  font-weight: 900;
  letter-spacing: .10em;
  color: #f59e0b;
}

body:not(.app) #reviews .rev .who{
  font-weight: 900;
  margin: 6px 0 6px;
  color:#111827;
}

body:not(.app) #reviews .rev .txt{
  color: #111827;
  font-weight: 600;
  line-height: 1.55;
  font-size: 0.98rem;
  margin: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

body:not(.app) #reviews .rev .meta{
  margin-top: 10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}

body:not(.app) #reviews .rev .rimg{
  margin-top: 10px;

  width: auto !important;
  max-width: 180px !important;
  height: auto !important;
  max-height: 180px !important;

  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.02);

  box-shadow: 0 10px 18px rgba(0,0,0,0.12);
  display:block;
}



/* ===== Contacts ===== */
.contacts-card{
  max-width: 1100px;
  margin:auto;
  text-align:center;
  border: 1px solid var(--border);
  box-shadow: inset 0 0 4px rgba(255,255,255,0.08);
}
.contacts-title{
  font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem);
  margin-bottom: 16px;
  color:#fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}

.contacts-badges{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom: 14px;
}

.contact-links{ margin: 8px 0 6px; }
.contact-link{
  display:inline-block;
  font-weight: 900;
  font-size: clamp(1.05rem, 1vw + .9rem, 1.35rem);
  color:#fff;
  text-decoration:none;
  margin: 4px 10px;
  letter-spacing:.2px;
}
.contact-link:hover{ text-decoration: underline; }

.contact-icons{
  display:flex;
  justify-content:center;
  gap: 14px;
  margin-top: 16px;
}
.contact-icons a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.06);
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.contact-icons a:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.45);
}
.contact-icons i{ font-size: 1.3rem; color:#fff; }

.contact-cta{
  display:flex;
  justify-content:center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* ===== FAQ (оформление на основе details/summary) ===== */
#faq .glass-card{
  --faq-bg: #bdbdc2;
  --faq-bg-hover: #b0b0b5;
  --faq-bg-open: #a8a8ad;
  --faq-border: rgba(0,0,0,.12);
  --faq-shadow: 0 2px 6px rgba(0,0,0,.2);
  --faq-shadow-hover: 0 4px 12px rgba(0,0,0,.25);
}
#faq details{
  background: var(--faq-bg);
  border: 1px solid var(--faq-border);
  border-radius: 12px;
  box-shadow: var(--faq-shadow);
  overflow:hidden;
  margin-bottom: 12px;
  transition: box-shadow .2s ease, background .18s ease, transform .12s ease;
}
#faq details:hover{
  background: var(--faq-bg-hover);
  box-shadow: var(--faq-shadow-hover);
  transform: translateY(-1px);
}
#faq details[open]{
  background: var(--faq-bg-open);
  box-shadow: var(--faq-shadow-hover);
}
#faq summary{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 16px 18px;
  list-style:none;
  cursor:pointer;
  font-weight: 900;
  color:#000;
  font-size: 1.02rem;
  position:relative;
}
#faq summary::marker,
#faq summary::-webkit-details-marker{ display:none; }
#faq summary::after{
  content:"";
  margin-left:auto;
  width: 12px; height: 12px;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
#faq details[open] summary::after{ transform: rotate(225deg); }
#faq summary:focus-visible{
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 10px;
}
#faq .faq-content{
  max-height: 0;
  overflow:hidden;
  padding: 0 18px;
  transition: max-height .28s ease, padding .2s ease, opacity .2s ease;
  opacity: 0;
}
#faq details[open] .faq-content{
  max-height: 600px;
  padding: 0 18px 16px;
  opacity: 1;
}
#faq .faq-content p{ margin:0; color:#111; font-size:1rem; line-height:1.6; }

@media (prefers-reduced-motion: reduce){
  #faq details, #faq summary, #faq .faq-content{ transition:none !important; }
}

/* ===== Scroll-to-top ===== */
#scrollTopBtn{
  position: fixed;
  bottom: 40px;
  right: 30px;
  background-color: rgba(0,0,0,0.6);
  color:#fff;
  border:none;
  padding: 14px 18px;
  border-radius: 50%;
  font-size: 1.4em;
  cursor:pointer;
  z-index: 999;
  display:none;
  box-shadow: 0 0 12px rgba(0,0,0,0.5);
  transition: transform .2s ease, background .2s ease;
}
#scrollTopBtn:hover{
  transform: scale(1.12);
  background-color: var(--brand);
}

/* ===== Fixed WhatsApp button ===== */
.calc-fixed-btn{
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--brand);
  color:#fff;
  font-weight: 900;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  text-decoration:none;
  font-size: .86rem;
  z-index: 1200;
  transition: transform .15s ease, background .2s ease;
}
.calc-fixed-btn:hover{ background: var(--brand-dark); transform: scale(1.04); }

/* ===== Адаптив ===== */
@media (max-width: 768px){
  .glass-card{
    padding: 34px 18px;
    margin: 20px 12px;
  }
  .navbar ul{ gap: 10px; }
}

@media (max-width: 600px){
  .section{ padding: 36px 14px; }

  .navbar ul{
    flex-direction: column;
    gap: 10px;
  }
  .navbar ul li a{ font-size: 1rem; padding: 9px 14px; }

  .hero .hero-card{ padding-top: 34px; padding-bottom: 30px; }
  .pill{ font-size: .86rem; padding: 6px 10px; }
  .hero-kpi{ gap: 12px; font-size: .95rem; }

  .contact-icons a{ width: 50px; height: 50px; }

  .calc-fixed-btn{
    font-size: .82rem;
    padding: 9px 12px;
    bottom: 15px;
    left: 15px;
  }

  /* Таблица цен: мобильные карточки */
  .price-table thead{ display:none; }
  .price-table tbody tr{
    display:block;
    margin: 12px 12px 16px;
    border-radius: 12px;
    overflow:hidden;
    box-shadow: 0 8px 18px rgba(0,0,0,0.35);
    border: 1px solid rgba(0,0,0,0.12);
  }
  .price-table td{
    display:grid;
    grid-template-columns: 1fr auto;
    align-items:center;
    gap: 12px;
    text-align:right;
    padding: 12px 14px;
    border-right:none !important;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    font-size: 1rem;
  }
  .price-table td::before{
    content: attr(data-label);
    text-align:left;
    color:#5b6b7a;
    font-weight: 800;
  }
  .price-table td:first-child{
    display:block;
    text-align:left;
    font-weight: 900;
    font-size: 1.05rem;
    padding: 14px 14px 10px;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
  }
  .price-table td:first-child::before{ content:""; }
  .price-table tbody tr:last-child td:last-child{ border-bottom:none; }
}

@media (max-width: 430px){
  .price-table td{ padding: 14px 16px; }
  .price-table td:first-child{ font-size: 1.05rem; }
}

@media (max-width: 380px){
  .price-table td{ padding: 10px 12px; }
  .price-table td:first-child{ font-size: 1rem; }
}

/* ===== Admin UI (strict, clean) ===== */
body.app{
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: rgba(17,24,39,.10);
  --shadow: 0 10px 30px rgba(17,24,39,.06);
  --shadow2: 0 6px 18px rgba(17,24,39,.08);
  --radius: 16px;
  --radius-sm: 12px;
  --pad: 14px;
  --pad-lg: 18px;

  --btn: #111827;
  --btnText: #ffffff;
  --btnGhost: rgba(17,24,39,.06);
  --btnGhostText: #111827;

  --focus: rgba(17,24,39,.18);
}


body{
  background: var(--bg);
  color: var(--text);
}

/* containers */
.ui-wrap{
  max-width: 1200px;
  margin: 28px auto;
  padding: 16px;
}

.ui-title{
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.ui-sub{
  color: var(--muted);
  margin: 0;
}

/* cards */
.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--pad-lg);
}

.card-sm{
  padding: var(--pad);
  border-radius: var(--radius);
}

.card + .card{
  margin-top: 14px;
}

.hr{
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

/* tabs */
.tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 12px;
}

body.app .btn, body.app button{
  appearance: none;
  border: 1px solid var(--line);
  background: var(--btnGhost);
  color: var(--btnGhostText);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .05s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

body.app .btn:hover, body.app button:hover{
  background: rgba(17,24,39,.09);
  border-color: rgba(17,24,39,.16);
}

body.app .btn:active, body.app button:active{
  transform: translateY(1px);
}


.btn-primary{
  background: var(--btn);
  color: var(--btnText);
  border-color: rgba(17,24,39,.35);
}

.btn-primary:hover{
  background: #0b1220;
}

.btn-danger{
  background: #991b1b;
  border-color: rgba(153,27,27,.35);
  color: #fff;
}
.btn-danger:hover{ background:#7f1d1d; }

/* inputs */
input, select, textarea{
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}

input:focus, select:focus, textarea:focus{
  box-shadow: 0 0 0 4px var(--focus);
  border-color: rgba(17,24,39,.25);
}

.help{
  color: var(--muted);
  font-size: 13px;
}

.grid{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

.col{
  flex:1;
  min-width: 420px;
}

.side{
  width:360px;
  flex:0 0 360px;
}

/* tables */
.table-wrap{
  overflow:auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  background: #fff;
}

table{
  width: 100%;
  border-collapse: collapse;
}

th{
  text-align:left;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(17,24,39,.02);
}

td{
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

tr:hover td{
  background: rgba(17,24,39,.02);
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17,24,39,.06);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 800;
  font-size: 12px;
}

/* order card */
.order{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow2);
  padding: var(--pad-lg);
}

.order-head{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  flex-wrap:wrap;
  align-items:flex-start;
}

.order-actions{
  margin-top: 12px;
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
  align-items:center;
}

.muted{ color: var(--muted); }

/* modal */
.modal{
  position: fixed;
  inset: 0;
  display:none;
  z-index: 9999;
  background: rgba(17,24,39,.55);
  align-items:center;
  justify-content:center;
  padding: 18px;
}

.modal-card{
  width: min(980px, 100%);
  max-height: 85vh;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  display:flex;
  flex-direction: column;
}

.modal-head{
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}

.modal-body{
  padding: 12px 14px;
  overflow:auto;
}

/* =========================================================
   CRM THEME (только для страниц /app/*)
   Единый строгий стиль, лёгкий, быстрый
   ========================================================= */

/* ВАЖНО: мы включаем тему через класс на <body>.
   Дальше я дам обновления для страниц /app: добавим <body class="app">.
   (Admin уже стилизован отдельно, но тоже переведём.)
*/

body.app{
  color: #111;
  background: #eef1f5;
}

body.app .site-bg{ display:none; } /* Внутри CRM фон не нужен, быстрее и чище */

/* Контейнеры */
body.app .app-wrap{
  max-width: 1100px;
  margin: 26px auto;
  padding: 16px;
}

/* Карточки */
body.app .card{
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(20, 40, 80, 0.08);
}

/* Заголовки */
body.app h1{
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 900;
  color: #111;
}
body.app h2{
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 900;
  color: #111;
}
body.app h3{
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 900;
  color: #111;
}
body.app .muted{
  color: #667085;
  font-size: 13px;
}

/* Кнопки (единые) */
body.app .btn{
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #d7dce5;
  background: #fff;
  color: #111;
  font-weight: 900;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
}
.btn-logo{
  width:22px;
  height:22px;
  border-radius:7px;
  object-fit:contain;
  background:#fff;
  border:1px solid rgba(255,255,255,.35);
}

body.app .btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(20, 40, 80, 0.10);
}
body.app .btn:active{ transform: translateY(0); }
body.app .btn:disabled{
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Primary */
body.app .btn-primary{
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
body.app .btn-primary:hover{
  box-shadow: 0 10px 22px rgba(214, 0, 0, 0.22);
}

/* Поля */
body.app .field,
body.app select,
body.app textarea,
body.app input{
  border-radius: 12px;
  border: 1px solid #d7dce5;
  padding: 10px 12px;
  outline: none;
}
body.app input:focus,
body.app textarea:focus,
body.app select:focus{
  border-color: rgba(214,0,0,0.45);
  box-shadow: 0 0 0 4px rgba(214,0,0,0.10);
}

/* Таблица */
body.app .tbl-wrap{ overflow:auto; }
body.app .tbl{
  width:100%;
  border-collapse: collapse;
  min-width: 740px;
}
body.app .tbl th{
  text-align:left;
  font-size: 12px;
  color: #667085;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 10px;
  border-bottom: 1px solid #e6e9ef;
  white-space: nowrap;
}
body.app .tbl td{
  padding: 10px;
  border-bottom: 1px solid #eef1f5;
  vertical-align: top;
}

/* Плашка статуса — читаемая, выпуклая */
body.app .pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;

  background: #ffffff;
  border: 1px solid #d7dce5;

  color: #374151;            /* тёмно-серый текст */
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .2px;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 1px 2px rgba(0,0,0,0.06);  /* лёгкая выпуклость */
}


/* Для маленьких экранов */
@media (max-width: 600px){
  body.app .app-wrap{ padding: 12px; margin: 18px auto; }
  body.app .btn{ width: auto; }
}

/* Числовые плашки: ID заявок, номера персонала */
body.app .pill.num,
body.app .pill.id,
body.app .pill.order-id,
body.app .pill.user-id {
  background: #ffffff;
  border: 1px solid #cfd6e0;

  color: #1f2937; /* насыщенный тёмно-серый */
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .4px;

  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    0 2px 4px rgba(0,0,0,0.08);
}

/* Авто-усиление pill с числами (когда нет спец.классов) */
body.app .pill:has(#),
body.app .pill:has(span),
body.app .pill:has(strong) {
  color: #1f2937;
}
/* ===== ЕДИНЫЙ СТИЛЬ ПЛАШЕК (все кабинеты) ===== */
body.app .pill{
  display:inline-flex;
  align-items:center;
  gap:8px;

  padding:6px 12px;
  border-radius:999px;

  background:#ffffff;
  border:1px solid #d1d7e0;

  color:#374151;              /* серый, читаемый */
  font-weight:800;
  font-size:12px;
  letter-spacing:.2px;
  line-height:1.2;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    0 1px 3px rgba(0,0,0,0.08);

  white-space:nowrap;
}

/* ID заявок, номера персонала, любые числовые плашки */
body.app .pill.order-id,
body.app .pill.user-id,
body.app .pill.num{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight:900;
  letter-spacing:.4px;

  color:#111827;
  border-color:#c5ccd8;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.98),
    0 2px 4px rgba(0,0,0,0.12);
}
