:root{--g:#16a34a;--gd:#087532;--o:#ff8a00;--bg:#f5f7f8;--t:#17201b;--m:#68736c;--b:#e0e7e2}*{box-sizing:border-box}body{margin:0;font-family:Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--t)}button,input,textarea,select{font:inherit}button{cursor:pointer}.wrap{width:min(1160px,92%);margin:auto}.nav{width:min(1160px,92%);height:74px;margin:auto;display:flex;align-items:center;gap:25px;background:#fff}.nav:before{content:"";position:fixed;left:0;right:0;top:0;height:74px;background:#fff;z-index:-1;border-bottom:1px solid var(--b)}header{position:sticky;top:0;z-index:1000;background:#fff;border-bottom:1px solid var(--b)}.brand{min-width:230px;cursor:pointer}.brand b{font-size:17px}.brand i{color:var(--o);font-style:normal}.brand small{display:block;color:var(--m);font-size:11px}nav{display:flex;justify-content:center;gap:5px;flex:1}nav button{border:0;background:transparent;padding:10px 13px;border-radius:10px;color:#59635d}nav button:hover{background:#eaf7ef;color:var(--gd)}.primary,.secondary{border:0;border-radius:11px;padding:11px 18px;font-weight:800}.primary{background:var(--g);color:white}.secondary{background:white;border:1px solid var(--b)}.big{padding:14px 23px}.page{display:none;min-height:calc(100vh - 140px);padding:45px 0 70px}.page.on{display:block}.hero{display:grid;grid-template-columns:1.1fr .9fr;gap:50px;align-items:center;padding-top:40px;padding-bottom:65px}.badge{background:#e8f7ed;color:var(--gd);padding:8px 12px;border-radius:20px;font-weight:700;font-size:13px}h1{font-size:clamp(38px,5vw,64px);line-height:1.02;margin:18px 0}h1 em{color:var(--g);font-style:normal}h2{font-size:30px;margin:0 0 22px}p{color:var(--m);line-height:1.55}.trust{display:flex;gap:35px;margin-top:25px}.trust b{font-size:20px}.trust small{display:block;color:var(--m);font-size:12px;font-weight:400}.map{height:370px;border-radius:24px;background:#e5edef;background-image:linear-gradient(25deg,transparent 48%,#cbd6d9 49%,#cbd6d9 51%,transparent 52%),linear-gradient(110deg,transparent 48%,#cbd6d9 49%,#cbd6d9 51%,transparent 52%);background-size:90px 90px;position:relative;box-shadow:0 15px 35px #17201b12;overflow:hidden}.map span{position:absolute;background:white;border-radius:50%;padding:14px;box-shadow:0 5px 15px #0002;font-size:20px}.map span:nth-child(1){left:18%;top:20%}.map span:nth-child(2){right:20%;top:15%}.map span:nth-child(3){left:43%;top:50%}.map span:nth-child(4){right:22%;bottom:17%}.map span:nth-child(5){left:15%;bottom:15%}.map div{position:absolute;bottom:0;left:0;right:0;background:white;padding:20px}.map small,.map b{display:block}.map small{color:var(--m);margin-top:4px}.grid{display:grid;gap:14px}.cats{grid-template-columns:repeat(5,1fr);margin-bottom:55px}.cats button{background:white;border:1px solid var(--b);border-radius:16px;padding:20px 8px;font-weight:700}.cats button:hover{transform:translateY(-3px);box-shadow:0 10px 25px #0000000d}.features{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.features article,.card,form{background:white;border:1px solid var(--b);border-radius:18px;padding:24px}.features article{font-size:28px}.features b{display:block;font-size:17px;margin-top:8px}.features p{font-size:14px}.narrow{max-width:720px}.back{border:0;background:transparent;color:var(--gd);font-weight:800;margin-bottom:20px}.head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.head h2{margin:0 0 5px}.head p{margin:0}form{display:grid;gap:17px;box-shadow:0 12px 30px #0000000a}label{font-weight:700;font-size:14px}input,textarea,select{display:block;width:100%;margin-top:7px;border:1px solid #d4ddd7;border-radius:10px;padding:13px;background:white;outline:none}textarea{min-height:130px;resize:vertical}#count{text-align:right;color:var(--m)}.masters{grid-template-columns:repeat(3,1fr)}.master{background:white;border:1px solid var(--b);border-radius:18px;padding:20px}.avatar{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#e0f2e6;color:var(--gd);font-weight:900;font-size:20px}.mtop{display:flex;gap:12px;align-items:center}.rating{color:#e19a00;margin:15px 0}.muted{color:var(--m);font-size:14px;line-height:1.7}.mbottom{border-top:1px solid var(--b);margin-top:15px;padding-top:14px;display:flex;justify-content:space-between;align-items:center}.status{padding:6px 10px;border-radius:20px;font-size:12px;font-weight:800}.new{background:#e9f2ff;color:#2367c9}.in_progress{background:#fff3d6;color:#a86d00}.completed{background:#e5f7ea;color:#147a38}.order{background:white;border:1px solid var(--b);border-radius:16px;padding:20px;margin-bottom:14px;display:flex;justify-content:space-between;gap:20px}.stats{grid-template-columns:repeat(4,1fr);margin-bottom:20px}.stat{background:white;border:1px solid var(--b);border-radius:16px;padding:20px}.stat small{color:var(--m)}.stat strong{display:block;font-size:27px;margin-top:7px}.admin{display:grid;grid-template-columns:1.5fr 1fr;gap:18px}footer{background:#101713;color:white;padding:25px 0}#toast{position:fixed;right:20px;bottom:20px;background:#17201b;color:white;padding:14px 18px;border-radius:12px;opacity:0;transition:.25s}#toast.show{opacity:1}@media(max-width:900px){nav{display:none}.hero{grid-template-columns:1fr}.cats{grid-template-columns:repeat(3,1fr)}.masters,.admin{grid-template-columns:1fr 1fr}.stats{grid-template-columns:1fr 1fr}}@media(max-width:600px){.hero{padding-top:25px}.cats,.masters,.features,.admin{grid-template-columns:1fr}.nav>.primary{display:none}.head,.order{align-items:flex-start;flex-direction:column}}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.stat {
  background: white;
  border: 1px solid var(--b);
  border-radius: 18px;
  padding: 24px;
}

.stat small {
  display: block;
  color: #64748b;
  margin-bottom: 10px;
}

.stat strong {
  display: block;
  font-size: 28px;
}
/* =========================
   ЧАТ
========================= */

.chat-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.chat-modal.show {
  display: flex;
}

.chat-window {
  width: min(520px, 100%);
  height: min(680px, 90vh);
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px #0005;
  display: flex;
  flex-direction: column;
}

.chat-header {
  background: var(--g);
  color: white;
  padding: 17px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header b {
  display: block;
  font-size: 17px;
}

.chat-header small {
  display: block;
  margin-top: 4px;
  opacity: 0.85;
}

.chat-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  background: #f5f7f8;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 15px;
  line-height: 1.4;
  word-break: break-word;
}

.chat-message.mine {
  align-self: flex-end;
  background: #dcfce7;
  border-bottom-right-radius: 4px;
}

.chat-message.theirs {
  align-self: flex-start;
  background: white;
  border: 1px solid var(--b);
  border-bottom-left-radius: 4px;
}

.chat-message-name {
  font-size: 11px;
  font-weight: 800;
  color: var(--gd);
  margin-bottom: 3px;
}

.chat-message-text {
  font-size: 14px;
}

.chat-message-time {
  font-size: 10px;
  color: var(--m);
  margin-top: 4px;
  text-align: right;
}

.chat-empty {
  margin: auto;
  text-align: center;
  color: var(--m);
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--b);
  background: white;
}

.chat-form input {
  margin: 0;
  flex: 1;
}

.chat-form button {
  width: 52px;
  padding: 10px;
}

@media(max-width:600px) {

  .chat-modal {
    padding: 0;
  }

  .chat-window {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .chat-message {
    max-width: 88%;
  }

}
/* =========================
   ОКНО ОЦЕНКИ МАСТЕРА
========================= */

.review-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.review-modal.show {
  display: flex;
}

.review-window {
  position: relative;
  width: min(500px, 100%);
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.review-window h2 {
  margin: 0 0 8px;
}

.review-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f1f3f4;
  font-size: 20px;
  cursor: pointer;
}

.review-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 22px 0;
}

.review-star {
  border: 0;
  background: transparent;
  font-size: 38px;
  color: #c7c7c7;
  cursor: pointer;
  padding: 2px;
}

.review-star.selected {
  color: #f5b400;
}

#reviewText {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  box-sizing: border-box;
  margin-bottom: 15px;
}

.review-submit {
  width: 100%;
}
/* =========================
   КРАСИВОЕ ОКНО ОТЗЫВОВ
========================= */

.reviews-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.reviews-modal.show {
  display: flex;
}

.reviews-box {
  width: min(560px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  animation: reviewsAppear 0.2s ease;
}

@keyframes reviewsAppear {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.reviews-title {
  font-size: 22px;
  font-weight: 800;
}

.reviews-subtitle {
  margin-top: 5px;
  color: var(--m);
  font-size: 14px;
}

.reviews-close {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f3f4;
  color: #17201b;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.reviews-close:hover {
  background: #e5e7eb;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-card {
  padding: 17px;
  border-radius: 18px;
  background: #f8faf9;
  border: 1px solid var(--b);
}

.review-card:hover {
  box-shadow: 0 8px 22px #0000000d;
}

.review-stars {
  font-size: 21px;
  letter-spacing: 2px;
  margin-bottom: 9px;
}

.review-text {
  color: var(--t);
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.review-client {
  font-weight: 800;
  font-size: 14px;
}

.review-date {
  margin-top: 4px;
  color: var(--m);
  font-size: 12px;
}

.reviews-close-btn {
  width: 100%;
  margin-top: 20px;
  padding: 13px;
  border: 0;
  border-radius: 14px;
  background: var(--g);
  color: white;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.reviews-close-btn:hover {
  background: var(--gd);
}

@media(max-width:600px) {

  .reviews-modal {
    padding: 10px;
  }

  .reviews-box {
    max-height: 92vh;
    border-radius: 20px;
    padding: 18px;
  }

  .reviews-title {
    font-size: 19px;
  }

  .review-text {
    font-size: 15px;
  }
}
/* =========================
   РЕЙТИНГ МАСТЕРА НА КАРТОЧКЕ
========================= */

.master-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 15px 0;
}

.master-rating-stars {
  font-size: 18px;
  letter-spacing: 1px;
}

.master-rating strong {
  font-size: 17px;
  color: var(--t);
}
/* =========================
   КНОПКА «ОТЗЫВЫ»
========================= */

.master-review-btn {
  transition: 0.2s ease;
}

.master-review-btn:hover {
  transform: translateY(-2px);
  background: #fff8df;
  border-color: #f2c94c;
  box-shadow: 0 6px 16px #00000012;
}

.master-review-btn:active {
  transform: translateY(0);
}
/* Переключатель статуса мастера */
#masterOnlineToggle {
  appearance: none;
  -webkit-appearance: none;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background:
    radial-gradient(
      circle at 14px 14px,
      #ffffff 0 9px,
      transparent 10px
    ),
    #d1d5db;
  cursor: pointer;
  transition: 0.25s;
  margin: 0;
}

#masterOnlineToggle:checked {
  background:
    radial-gradient(
      circle at 38px 14px,
      #ffffff 0 9px,
      transparent 10px
    ),
    #16a34a;
  border-color: #16a34a;
}
/* =========================================
   BUKHARA MASTER — МОБИЛЬНАЯ ВЕРСИЯ
   ========================================= */

@media (max-width: 600px) {

  body {
    overflow-x: hidden;
  }

  .wrap {
    width: calc(100% - 24px);
  }

  .page {
    min-height: calc(100vh - 80px);
    padding: 24px 0 45px;
  }

  /* ---------- ВЕРХНЕЕ МЕНЮ ---------- */

  header {
    position: sticky;
    top: 0;
  }

  .nav {
    width: 100%;
    height: 64px;
    padding: 0 12px;
    gap: 10px;
    justify-content: space-between;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .brand b {
    font-size: 15px;
    white-space: nowrap;
  }

  .brand small {
    font-size: 10px;
  }

  .nav > .primary {
    display: block;
    padding: 9px 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  #logoutBtn {
    padding: 9px 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  /* ---------- ГЛАВНАЯ ---------- */

  .hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
        background-image: url("images/home-background.png");
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% 240px;
    padding-top: 18px;
    padding-bottom: 35px;
    align-items: stretch;
  }

  .hero h1 {
    font-size: 38px;
    line-height: 1.05;
    margin: 14px 0;
  }

  .hero p {
    font-size: 15px;
  }

  .hero .primary.big,
  .hero .secondary.big {
    width: 100%;
    margin-top: 8px;
  }

  .trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 22px;
    text-align: center;
  }

  .trust b {
    font-size: 18px;
  }

  .trust small {
    font-size: 10px;
  }

  .map {
    height: 280px;
    border-radius: 20px;
  }

  .map span {
    padding: 10px;
    font-size: 17px;
  }

  .map div {
    padding: 15px;
  }

  /* ---------- КАТЕГОРИИ ---------- */

  .cats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 35px;
  }

  .cats button {
    min-height: 70px;
    padding: 14px 8px;
    border-radius: 14px;
    font-size: 14px;
  }

  /* ---------- БЛОКИ НА ГЛАВНОЙ ---------- */

  .features {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .features article {
    padding: 20px;
  }

  /* ---------- ЗАГОЛОВКИ ---------- */

  .head {
    gap: 14px;
    margin-bottom: 18px;
  }

  .head h2,
  h2 {
    font-size: 24px;
  }

  .head p {
    font-size: 14px;
  }

  /* ---------- ФОРМЫ ---------- */

  form {
    padding: 18px;
    border-radius: 16px;
  }

  input,
  textarea,
  select {
    font-size: 16px;
    padding: 13px;
  }

  textarea {
    min-height: 120px;
  }

  .big {
    width: 100%;
  }

  /* ---------- МАСТЕРА ---------- */

  .masters {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .master {
    padding: 17px;
    border-radius: 16px;
  }

  .mbottom {
    gap: 10px;
  }

  .mbottom button {
    flex: 1;
  }

  /* ---------- ЗАКАЗ ---------- */

  .order {
    padding: 17px;
    border-radius: 15px;
  }

  /* ---------- СТАТИСТИКА ---------- */

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat {
    padding: 17px;
    border-radius: 15px;
  }

  .stat strong {
    font-size: 24px;
  }

  /* ---------- КАБИНЕТ МАСТЕРА ---------- */

  #masterHome .card {
    padding: 18px;
  }

  #masterHome h1 {
    font-size: 30px;
  }

  #masterHome > .wrap > .card > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  #masterHome > .wrap > .card > div[style*="grid-template-columns"] .card {
    min-height: 120px !important;
  }

  /* ---------- ПРОФИЛЬ ---------- */

  #profile .card {
    padding: 17px;
  }

  #masterPhotoPreview {
    width: 120px !important;
    height: 120px !important;
  }

  /* ---------- АДМИНКА ---------- */

  .admin {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #admin .card {
    padding: 17px;
  }

  #addMasterBtn {
    width: 100%;
  }

  /* ---------- КНОПКИ ---------- */

  button {
    min-height: 44px;
  }

  .primary,
  .secondary {
    border-radius: 12px;
  }

  /* ---------- АВТОРИЗАЦИЯ ---------- */

  #auth .wrap {
    width: calc(100% - 20px);
  }

  #auth .wrap.narrow {
    padding-top: 25px !important;
  }

  #auth h1 {
    font-size: 32px;
  }

  #auth .card {
    padding: 18px;
  }

  #auth button {
    min-height: 46px;
  }

  /* ---------- УВЕЛИЧЕННОЕ ФОТО ---------- */

  #masterPhotoModal img {
    max-width: 94% !important;
    max-height: 80% !important;
  }

  #masterPhotoModal button {
    top: 12px !important;
    right: 14px !important;
  }

  /* ---------- ОТЗЫВЫ ---------- */

  .reviews-box {
    width: calc(100% - 10px);
    max-height: 92vh;
    padding: 17px;
  }

  .review-window {
    width: calc(100% - 10px);
    padding: 22px 17px;
  }

}
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 600px) {
  body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;

    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));

    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
  }

  .mobile-bottom-nav button {
    border: 0;
    background: transparent;
    color: #64748b;

    min-height: 58px;
    padding: 6px 2px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;

    font: inherit;
    cursor: pointer;
  }

  .mobile-bottom-nav button span {
    font-size: 21px;
    line-height: 1;
  }

  .mobile-bottom-nav button small {
    font-size: 11px;
    line-height: 1.1;
    font-weight: 600;
  }

  .mobile-bottom-nav button:active {
    transform: scale(0.96);
  }
}
@media (max-width: 600px) {
  .mobile-bottom-nav button.active {
    color: #16a34a;
    font-weight: 700;
  }

  .mobile-bottom-nav button.active span {
    transform: scale(1.12);
  }
}
@media (max-width: 600px) {

  /* Кабинет мастера */
  #masterHome .wrap > .card {
    padding: 16px !important;
  }

  /* Статус мастера */
  #masterHome .wrap > .card > .card {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  /* Новые заказы / В работе / Завершено */
  #masterHome .wrap > .card > div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  #masterHome .wrap > .card > div[style*="grid-template-columns:repeat(3,1fr)"] .card {
    padding: 16px !important;
  }

  /* Нижние блоки мастера */
  #masterHome .wrap > .card > div[style*="grid-template-columns:2fr 2fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  #masterHome .wrap > .card > div[style*="grid-template-columns:2fr 2fr 1fr"] > * {
    width: 100% !important;
    box-sizing: border-box;
  }

  #masterHome .wrap > .card > div[style*="grid-template-columns:2fr 2fr 1fr"] .card {
    min-height: 120px !important;
  }
}
@media (max-width: 600px) {

  /* Компактные карточки кабинета мастера */
  #masterHome .wrap > .card {
    padding: 14px !important;
  }

  /* Счётчики */
  #masterHome .wrap > .card > div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-top: 14px !important;
  }

  #masterHome .wrap > .card > div[style*="grid-template-columns:repeat(3,1fr)"] .card {
    padding: 10px 5px !important;
    min-height: 95px !important;
  }

  #masterHome .wrap > .card > div[style*="grid-template-columns:repeat(3,1fr)"] .card div:first-child {
    font-size: 22px !important;
  }

  #masterHome .wrap > .card > div[style*="grid-template-columns:repeat(3,1fr)"] .card div[id] {
    font-size: 24px !important;
  }

  #masterHome .wrap > .card > div[style*="grid-template-columns:repeat(3,1fr)"] .card p {
    font-size: 11px !important;
    margin: 4px 0 0 !important;
  }

  /* Нижние блоки */
  #masterHome .wrap > .card > div[style*="grid-template-columns:2fr 2fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-top: 14px !important;
  }

  #masterHome .wrap > .card > div[style*="grid-template-columns:2fr 2fr 1fr"] .card {
    min-height: 90px !important;
    padding: 14px !important;
  }

  /* Уменьшаем большую кнопку профиля */
  #masterHome .wrap > .card > div[style*="grid-template-columns:2fr 2fr 1fr"] button {
    display: none !important;
  }
}
@media (max-width: 600px) {

  /* Ещё компактнее статистика мастера */
  #masterHome .wrap > .card > div[style*="grid-template-columns:repeat(3,1fr)"] .card {
    min-height: 82px !important;
    padding: 8px 4px !important;
  }

  #masterHome .wrap > .card > div[style*="grid-template-columns:repeat(3,1fr)"] .card div:first-child {
    font-size: 19px !important;
  }

  #masterHome .wrap > .card > div[style*="grid-template-columns:repeat(3,1fr)"] .card div[id] {
    font-size: 22px !important;
  }

  #masterHome .wrap > .card > div[style*="grid-template-columns:repeat(3,1fr)"] .card b {
    font-size: 14px !important;
  }

  /* Заголовки нижних блоков */
  #masterHome h2 {
    font-size: 22px !important;
  }

  #masterHome .wrap > .card > div[style*="grid-template-columns:2fr 2fr 1fr"] .card {
    min-height: 80px !important;
  }
}
.message-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.messages-badge {
  display: none;
  position: absolute;
  top: -7px;
  right: -10px;

  min-width: 17px;
  height: 17px;
  padding: 0 4px;

  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;

  font-size: 10px;
  line-height: 17px;
  font-weight: 700;
  text-align: center;

  box-sizing: border-box;
}
/* =========================
   BUKHARA MASTER — HOME ФОН
   ========================= */

body {
  background:
    radial-gradient(
      circle at 78% 18%,
      rgba(212, 175, 55, 0.16),
      transparent 25%
    ),
    radial-gradient(
      circle at 20% 30%,
      rgba(34, 197, 94, 0.18),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #011f18 0%,
      #034c38 45%,
      #012c22 100%
    );

  background-attachment: fixed;
  color: #f8fafc;
}

/* Мягкое свечение сверху */
body::before {
  content: "";
  position: fixed;

  top: -120px;
  right: -100px;

  width: 420px;
  height: 420px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(255, 220, 120, 0.18) 0%,
      rgba(255, 220, 120, 0.06) 35%,
      transparent 70%
    );

  filter: blur(12px);

  pointer-events: none;
  z-index: -1;
}

/* Мягкое зелёное свечение снизу */
body::after {
  content: "";
  position: fixed;

  bottom: -180px;
  left: -120px;

  width: 460px;
  height: 360px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(16, 185, 129, 0.16) 0%,
      transparent 70%
    );

  filter: blur(18px);

  pointer-events: none;
  z-index: -1;
}
/* Текст под главным заголовком */
.hero > div:first-child > p {
  color: #ffffff !important;
  opacity: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
/* ---------- ФОН ГЛАВНОЙ СТРАНИЦЫ ---------- */

#home {
  position: relative;
  overflow: hidden;

  background-color: #004d3b;
  background-image: url("images/home-background.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
}

#home .hero {
  background: transparent !important;
}
#newOrderBtn {
  display: none !important;
}
.card,
.order,
.master,
.stat,
.features article,
form,
.reviews-box,
.chat-window {
  color: #17201b;
}@media (max-width: 600px) {
  #masterOrders {
    padding: 16px 0 90px;
  }

  #masterOrders .wrap {
    width: calc(100% - 20px);
  }

  #masterOrders .head h2 {
    font-size: 22px;
  }

  #masterOrders .head p {
    font-size: 12px;
  }

  #masterOrders .order {
    padding: 14px !important;
    margin-bottom: 10px;
    border-radius: 14px;
  }

  #masterOrders .order h3 {
    font-size: 22px;
    margin: 10px 0;
  }

  #masterOrders .order .muted {
    font-size: 13px;
    line-height: 1.45;
  }

  #masterOrders .order button {
    min-height: 40px;
    padding: 8px 11px;
    font-size: 13px;
  }
}
/* =========================
   МОБИЛЬНЫЙ ЭКРАН МАСТЕРА
   ========================= */

@media (max-width: 600px) {

  #masterHome {
    padding: 14px 0 90px;
  }

  #masterHome > .wrap {
    width: calc(100% - 20px);
  }

  /* Основная карточка */
  #masterHome .wrap > .card {
    padding: 14px !important;
    border-radius: 18px;
  }

  /* Заголовок */
  #masterHome h1 {
    font-size: 24px !important;
    line-height: 1.15;
    margin: 10px 0 6px !important;
  }

  #masterHome > .wrap > .card > p {
    font-size: 13px;
    margin: 0;
  }

  /* Статус */
  #masterHome > .wrap > .card > .card {
    margin-top: 14px !important;
    padding: 12px !important;
    min-height: auto !important;
  }

  /* Три счётчика */
  #masterHome > .wrap > .card > div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-top: 12px !important;
  }

  #masterHome > .wrap > .card > div[style*="grid-template-columns:repeat(3,1fr)"] .card {
    padding: 9px 4px !important;
    min-height: 82px !important;
    border-radius: 14px;
  }

  #masterHome > .wrap > .card > div[style*="grid-template-columns:repeat(3,1fr)"] .card div:first-child {
    font-size: 20px !important;
  }

  #masterHome > .wrap > .card > div[style*="grid-template-columns:repeat(3,1fr)"] .card div[id] {
    font-size: 21px !important;
  }

  #masterHome > .wrap > .card > div[style*="grid-template-columns:repeat(3,1fr)"] .card b {
    font-size: 12px;
  }

  #masterHome > .wrap > .card > div[style*="grid-template-columns:repeat(3,1fr)"] .card p {
    font-size: 10px !important;
    margin: 3px 0 0 !important;
    line-height: 1.2;
  }

  /* Нижний блок */
  #masterHome > .wrap > .card > div[style*="grid-template-columns:2fr 2fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 12px !important;
  }

  #masterHome > .wrap > .card > div[style*="grid-template-columns:2fr 2fr 1fr"] .card {
    min-height: 90px !important;
    padding: 13px !important;
    border-radius: 14px;
  }

  #masterHome > .wrap > .card > div[style*="grid-template-columns:2fr 2fr 1fr"] h2 {
    font-size: 18px !important;
  }

  /* Большую кнопку профиля пока скрываем —
     профиль остаётся в нижнем меню */
  #masterHome > .wrap > .card > div[style*="grid-template-columns:2fr 2fr 1fr"] button {
    display: none !important;
  }
}
@media (max-width: 600px) {
  #masterHome .wrap > .card > .card {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 14px !important;
  }

  #masterHome .wrap > .card > .card p {
    margin: 4px 0 0 !important;
    font-size: 12px !important;
  }

  #masterHome .wrap > .card > .card label {
    white-space: nowrap;
    font-size: 13px;
  }
}
@media (max-width: 600px) {
  #masterHome .wrap > .card > .card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    min-height: 82px !important;
    padding: 12px 14px !important;
    box-sizing: border-box !important;
  }

  #masterHome .wrap > .card > .card > div {
    min-width: 0;
  }

  #masterHome .wrap > .card > .card label {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 13px !important;
  }
}
#mastersMap {
  width: 100%;
  height: 500px;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 25px;
  border: 1px solid #dce5df;
}
/* Лёгкая прозрачность карты */
#homeMastersMap .leaflet-tile-pane{
  opacity:0.82;
}