/* =========================================
   Rating Masters — Clean & Modern Styles
   - Dark green trustworthy theme
   - Cards, badges, stars hover micro animation
   - Skeleton loader
   - Rich profile panels + works gallery (1 hero + 6)
   - Sticky big lead button in profile
   - Floating FAB lead button
   - Dark modal (no "white glare")
   - Smooth scroll
========================================= */

.hidden {
  display: none !important;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

:root{
  --bg0: #061018;
  --bg1: #071a20;
  --glass: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.10);
  --stroke2: rgba(255,255,255,.08);
  --txt: rgba(255,255,255,.90);
  --muted: rgba(255,255,255,.62);
  --green: #22c55e;
  --green2: #16a34a;
  --shadow: 0 24px 70px rgba(0,0,0,.45);
}

body{
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--txt);
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(34,197,94,.18), transparent 60%),
    radial-gradient(1100px 650px at 85% 20%, rgba(16,185,129,.12), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
}

/* ===== Header ===== */
.header{
  padding: 26px 18px 10px;
  text-align: center;
}
.header h1{
  margin: 0;
  font-size: 26px;
  letter-spacing: .2px;
}
.header p{
  margin: 8px 0 0;
  color: var(--muted);
}

/* ===== Layout ===== */
.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px;
}

/* ===== Controls ===== */
.controls{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 18px;
}

#sortSelect{
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.18);
  color: var(--txt);
  padding: 10px 12px;
  outline: none;
}

.filters{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filters button{
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.18);
  color: var(--txt);
  padding: 9px 14px;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.filters button:hover{
  transform: translateY(-1px);
  border-color: rgba(34,197,94,.28);
  background: rgba(34,197,94,.10);
}

.filters button.active{
  border-color: rgba(34,197,94,.35);
  background: rgba(34,197,94,.14);
}

/* Также поддерживаем старый класс из JS: .is-active */
.filters button.is-active{
  border-color: rgba(34,197,94,.35);
  background: rgba(34,197,94,.14);
}

/* ===== ВОССТАНОВЛЕННАЯ ВЕРХУШКА (логотип + hero + поиск/фильтры) ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(6, 48, 42, 0.55);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background .22s ease, border-color .22s ease;
}

.header-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
  transition: padding .22s ease;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--txt);
  min-width: 260px;
}

/* Контейнер логотипа */
/* чтобы никакой родитель не обрезал */
.site-header, .header-row, .brand { overflow: visible !important; }

/* контейнер логотипа */
.logo-box{
  width: 72px;
  height: 72px;
  border-radius: 18px;

  /* контрастная подложка */
  background:
    linear-gradient(180deg, #0f3f36, #082c26);

  /* светлая обводка */
  border: 2px solid rgba(255,255,255,0.35);

  /* мягкая тень */
  box-shadow:
    0 8px 24px rgba(0,0,0,0.45),
    inset 0 0 0 1px rgba(0,0,0,0.35);

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: visible;
  flex-shrink: 0;
}
.logo-box img{
  filter:
    drop-shadow(0 0 2px rgba(255,255,255,0.9))
    drop-shadow(0 0 6px rgba(0,0,0,0.6));
}
.logo-box{
  /* бренд-свечение */
  filter: drop-shadow(0 0 10px rgba(60, 255, 200, 0.25));
}

.brand-title{
  font-weight: 800;
  line-height: 1.1;
}

.brand-subtitle{
  font-size: 12px;
  color: rgb(255, 255, 255);
  transition: opacity .22s ease, transform .22s ease, max-height .22s ease;
}

.hero{
  padding: 26px 0 18px;
  background: radial-gradient(1200px 420px at 50% 0%, rgba(24, 230, 180, 0.14), transparent 65%);
}

.hero-inner{ text-align: center; }

.hero-top{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-mark{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(34,197,94,.20);
  border: 1px solid rgba(34,197,94,.25);
}

.hero-title{
  margin: 8px 0 6px;
  font-size: clamp(28px, 3.2vw, 40px);
  color: #fff;
}

.hero-text{
  margin-top: 14px;
  margin: 0 auto 18px;
  max-width: 720px;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  letter-spacing: 0.2px;
}
.hero-text br{
  display: block;
  content: "";
  margin-top: 6px;
}

.search{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.10);
  min-width: 280px;
}

.search input{
  width: 320px;
  max-width: 60vw;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
}

.search__icon{
  border: 0;
  background: rgba(255,255,255,0.10);
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.controls__right{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 720px){
  .header-right{ display: none; }
  .search input{ width: 100%; max-width: unset; }
  .search{ width: 100%; }
  .controls__right{ width: 100%; justify-content: space-between; }
  #sortSelect{ width: 100%; }
}

/* ===== Cards grid ===== */
.cards{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
  align-items: stretch;
}

/* ===== Card ===== */
.card{
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display:flex;
  flex-direction: column;
  min-height: 380px;
}

.card:hover{
  transform: translateY(-2px);
  border-color: rgba(34,197,94,.22);
  box-shadow: 0 22px 60px rgba(0,0,0,.48);
}

.card__cover{
  position: relative;
  height: 210px;
  overflow: hidden;
}

.card__cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display:block;
  transform: scale(1.02);
}

.card__cover::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 35%,
    rgba(0,0,0,.25) 70%,
    rgba(0,0,0,.60) 100%
  );
  pointer-events:none;
}

.badges{
  position:absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color: rgba(255,255,255,.88);
  font-size: 12px;
}

.badge__dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(34,197,94,.95);
  box-shadow: 0 0 0 6px rgba(34,197,94,.12);
}

.badge--verified{
  border-color: rgba(34,197,94,.30);
  background: rgba(34,197,94,.12);
}
.badge__check{
  width: 16px;
  height: 16px;
  display:grid;
  place-items:center;
  border-radius: 8px;
  background: rgba(34,197,94,.95);
  color: #061a12;
  font-weight: 900;
  font-size: 12px;
}
.badge--muted{
  color: rgba(255,255,255,.70);
}

.card__body{
  padding: 14px 14px 16px;
  display:flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

.card__top{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card__name{
  font-weight: 800;
  letter-spacing: .2px;
}
.card__meta{
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.card__rating{
  display:flex;
  align-items:center;
  gap: 8px;
  color: rgba(255,255,255,.90);
}

.stars{
  color: #f6c453;
  letter-spacing: 1px;
  font-size: 14px;
  display:inline-block;
}

/* micro animation on hover */
.card:hover .stars{
  animation: starPop .35s ease both;
}
@keyframes starPop{
  0%{ transform: translateY(0) scale(1); }
  50%{ transform: translateY(-1px) scale(1.06); }
  100%{ transform: translateY(0) scale(1); }
}

.rating-num{
  color: rgba(255,255,255,.70);
  font-size: 13px;
  font-weight: 600;
}

.card__desc{
  color: rgba(255,255,255,.74);
  font-size: 13px;
  line-height: 1.35;
  min-height: 42px;
}

/* card CTA */
.card__cta{
  margin-top: auto;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 800;
  color: #062012;
  background: linear-gradient(135deg, var(--green2), var(--green));
  box-shadow: 0 14px 35px rgba(34,197,94,.22);
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.card__cta:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 18px 45px rgba(34,197,94,.30);
}

/* ===== Empty state ===== */
.empty{
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  max-width: 560px;
}
.empty__title{
  font-weight: 900;
  margin-bottom: 8px;
}
.empty__text{
  color: rgba(255,255,255,.70);
  line-height: 1.35;
}

/* ===== Skeleton ===== */
.card--skeleton{
  cursor: default;
  transform: none !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.28) !important;
}
.skel{
  background: rgba(255,255,255,.08);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.skel::after{
  content:"";
  position:absolute;
  inset:-40% -60%;
  transform: rotate(12deg);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.18), rgba(255,255,255,0));
  animation: shimmer 1.05s linear infinite;
}
@keyframes shimmer{
  0%{ transform: translateX(-30%) rotate(12deg); }
  100%{ transform: translateX(30%) rotate(12deg); }
}
.skel-img{ height: 210px; border-radius: 0; }
.skel-line{ height: 14px; border-radius: 999px; margin: 12px 14px 0; }
.skel-line.sm{ width: 45%; }
.skel-line.md{ width: 72%; }
.skel-line.lg{ width: 88%; margin-bottom: 16px; }

/* ===== Profile ===== */
.profile.hidden{ display:none; }
#master-profile{ padding: 10px 0 0; }

.profilePage{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 90px; /* место под sticky bar */
}

.profileHead{
  display:flex;
  flex-direction: column;
  gap: 12px;
  margin: 6px 0 14px;
}

.backBtn{
  align-self: flex-start;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.18);
  color: var(--txt);
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
}

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

.avatar{
  width: 60px;
  height: 60px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  flex: 0 0 auto;
}
.avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.titleText h2{
  margin: 0;
  font-size: 20px;
}
.subLine{
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  display:flex;
  align-items:center;
  gap: 8px;
}
.dot{ opacity:.55; }

.profileBadges{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profileGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 980px){
  .profileGrid{ grid-template-columns: 1.35fr 1fr; }
}

.panel{
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panelHead{
  padding: 14px 14px 10px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--stroke2);
}

.panelHead h3{
  margin: 0;
  font-size: 14px;
  letter-spacing: .2px;
}

.panelActions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.panelBody{
  padding: 14px;
  color: rgba(255,255,255,.86);
}

/* KV */
.kv{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.kvItem{
  border: 1px solid var(--stroke2);
  background: rgba(0,0,0,.18);
  border-radius: 14px;
  padding: 10px 12px;
}
.kvK{
  color: rgba(255,255,255,.60);
  font-size: 12px;
}
.kvV{
  margin-top: 4px;
  color: rgba(255,255,255,.92);
  font-weight: 700;
  font-size: 13px;
}

.about{
  margin: 12px 0 0;
  line-height: 1.45;
  color: rgba(255,255,255,.82);
}

.block{ margin-top: 14px; }
.blockTitle{
  color: rgba(255,255,255,.70);
  font-size: 12px;
  margin-bottom: 10px;
}

.tags{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.86);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}
.tag--green{
  border-color: rgba(34,197,94,.30);
  background: rgba(34,197,94,.10);
}

/* Reviews */
.reviews{ display:flex; flex-direction: column; gap: 10px; }
.review{
  border: 1px solid var(--stroke2);
  background: rgba(0,0,0,.18);
  border-radius: 16px;
  padding: 12px;
}
.review__top{
  display:flex;
  justify-content: space-between;
  gap: 10px;
}
.review__name{ font-weight: 900; }
.review__date{ color: rgba(255,255,255,.55); font-size: 12px; }
.review__rating{ display:flex; align-items:center; gap: 8px; margin-top: 8px; }
.review__text{ margin-top: 8px; color: rgba(255,255,255,.82); line-height:1.35; }

.muted{ color: rgba(255,255,255,.62); font-size: 13px; }

/* Works: 1 hero + 6 grid */
.works{
  display:grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 980px){
  .works{ grid-template-columns: repeat(3, 1fr); }
}
.work{
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.18);
  border-radius: 18px;
  padding: 0;
  cursor: zoom-in;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.work img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  display:block;
  background: rgba(255,255,255,.04);
}
.work:first-child{
  grid-column: 1 / -1;
}
.work:first-child img{
  aspect-ratio: 16 / 9;
}
.work:hover{
  transform: translateY(-2px);
  border-color: rgba(34,197,94,.28);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}

/* ===== Sticky lead bar inside profile ===== */
.stickyLeadBar{
  position: sticky;
  bottom: 0;
  margin-top: 16px;
  padding: 12px 0 0;
  z-index: 20;
}

.stickyLeadBtn{
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 18px 18px;
  cursor: pointer;
  font-weight: 900;
  font-size: 16px;
  color: #062012;
  background: linear-gradient(135deg, var(--green2), var(--green));
  box-shadow: 0 20px 55px rgba(34,197,94,.28);
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

.stickyLeadBtn:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 26px 70px rgba(34,197,94,.34);
}

/* ===== Buttons ===== */
.btnrow{
  display:flex;
  gap: 10px;
  margin-top: 14px;
  justify-content: space-between;
}

.btn{
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.88);
  cursor: pointer;
}

.btn--primary{
  border: 0;
  background: linear-gradient(135deg, var(--green2), var(--green));
  color: #062012;
  font-weight: 900;
}

.btn--block{
  width: 100%;
  margin-top: 10px;
}

/* ===== Modal (dark, no glare) ===== */
.modal{
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
}

.modalCard{
  width: min(640px, 100%);
  border-radius: 18px;
  background: #0b1220;
  border: 1px solid var(--stroke);
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
  overflow: hidden;
}

.modalHead{
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  border-bottom: 1px solid var(--stroke2);
}

.modalTitle{
  font-weight: 900;
  color: rgba(255,255,255,.92);
}

.iconBtn{
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.85);
  cursor: pointer;
  font-size: 18px;
}

.modalBody{
  padding: 14px 16px 16px;
}

/* discount box */
.discount{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(34,197,94,.28);
  background: rgba(34,197,94,.10);
  margin-bottom: 12px;
}
.discountBadge{
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  font-weight: 900;
  background: rgba(34,197,94,.95);
  color: #062012;
}
.discountText{
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255,255,255,.86);
}

.form input, .form textarea{
  width: 100%;
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  font-family: inherit;
  outline: none;
}
.form input::placeholder, .form textarea::placeholder{
  color: rgba(255,255,255,.55);
}
.form textarea{
  min-height: 120px;
  resize: vertical;
}

.hint{
  margin-top: 10px;
  color: rgba(255,255,255,.60);
  font-size: 12px;
  line-height: 1.35;
}

.field-error{
  border-color: rgba(239, 68, 68, .55) !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, .10) !important;
}
.form-error{
  font-size: 12px;
  color: rgba(255, 160, 160, .92);
  margin-top: 8px;
}

/* ===== Rating stars (review modal) ===== */
.rate{ margin-top: 10px; }
.rateStars{ display:flex; gap: 8px; }
.rateStar{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.55);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 16px;
  transition: transform .16s ease, color .16s ease, border-color .16s ease, background .16s ease;
}
.rateStar:hover{ transform: translateY(-1px); }
.rateStar.is-active{
  color: #f6c453;
  border-color: rgba(246,196,83,.35);
  background: rgba(246,196,83,.10);
}
.rateHint{
  margin-top: 8px;
  color: rgba(255,255,255,.62);
  font-size: 12px;
}

/* ===== Zoom overlay ===== */
.zoom{
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(8px);
  display:grid;
  place-items:center;
  padding: 16px;
}
.zoomInner{
  width: min(1000px, 100%);
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.35);
  box-shadow: 0 30px 90px rgba(0,0,0,.65);
}
.zoomImg{
  width: 100%;
  height: auto;
  display:block;
}

/* ===== Floating FAB ===== */
.fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1300;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #062012;
  background: linear-gradient(135deg, var(--green2), var(--green));
  box-shadow: 0 18px 45px rgba(34,197,94,.28);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.fab:hover{
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 24px 60px rgba(34,197,94,.34);
}
.fabDot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 0 0 6px rgba(255,255,255,.18);
}
@media (max-width: 520px){
  .fab{
    left: 16px;
    right: 16px;
    bottom: 14px;
    justify-content: center;
  }
}
/* Ограничение фото в профиле */
.profilePage img,
.work img {
  max-height: 420px;
  object-fit: cover;
}
/* БАЗА */
* { box-sizing: border-box; }
body { margin: 0; }
.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

/* ШАПКА */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(6, 48, 42, 0.55);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  min-width: 260px;
}
/* Контейнер логотипа */
.logo-box{
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: visible;      /* ВАЖНО: не режем */
  flex-shrink: 0;
}

/* Картинка логотипа */
.logo-box img{
  height: 54px;           /* регулируй размер логотипа */
  width: auto;            /* ВАЖНО: не растягиваем в квадрат */
  max-width: 140px;       /* на всякий, если лого очень широкое */
  object-fit: contain;    /* ВАЖНО: без обрезки */
  display: block;
}

.logo-text{
  font-weight: 800;
  font-size: 12px;
  opacity: .9;
}
.brand-title{
  font-weight: 800;
  line-height: 1.1;
}
.brand-subtitle{
  font-size: 12px;
  opacity: .75;
}

/* HERO */
.hero{
  padding: 26px 0 18px;
  background: radial-gradient(1200px 420px at 50% 0%, rgba(24, 230, 180, 0.14), transparent 65%);
}
.hero-inner{ text-align: center; }
.hero-title{
  margin: 8px 0 6px;
  font-size: clamp(28px, 3.2vw, 40px);
  color: #fff;
}
.hero-text{
  margin: 0 auto 18px;
  max-width: 720px;
  color: rgba(255,255,255,0.78);
  line-height: 1.35;
}

/* КОНТРОЛЫ */
.controls{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.search{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.10);
  min-width: 280px;
}
.search input{
  width: 320px;
  max-width: 60vw;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
}
.search button{
  border: 0;
  background: rgba(255,255,255,0.10);
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.filters{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.sort{
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.10);
  color: #fff;
  outline: 0;
}

.chips{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip{
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.14);
  color: rgba(255,255,255,0.86);
  cursor: pointer;
}
.chip.active{
  background: rgba(24, 230, 180, 0.18);
  border-color: rgba(24, 230, 180, 0.35);
  color: #fff;
}

/* МОБИЛКА */
@media (max-width: 720px){
  .header-right{ display: none; }
  .search input{ width: 100%; max-width: unset; }
  .search{ width: 100%; }
  .filters{ width: 100%; justify-content: space-between; }
  .sort{ width: 100%; }
}


/* Shrink header on scroll */
.site-header.is-scrolled .header-row{
  padding: 8px 0;
}

.site-header.is-scrolled .logo-box{
  height: 44px;
  min-width: 44px;
  padding: 4px 8px;
  border-radius: 14px;
}

.site-header.is-scrolled .brand-subtitle{
  opacity: 0;
  transform: translateY(-4px);
  max-height: 0;
  overflow: hidden;
}


/* ===== Card cover chips & corner verified badge (improved hierarchy) ===== */
.card__cover .badges{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 10px;
}

.card__cover .badges__left{
  display:flex;
  align-items:center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: calc(100% - 170px); /* leave room for "Проверенный" справа */
}

.card__cover .badges__right{
  display:flex;
  justify-content:flex-end;
}

.card__cover .chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(7,16,24,.72);
  color: rgba(255,255,255,.94);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

.card__cover .chip__dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(34,197,94,.98);
  box-shadow: 0 0 0 6px rgba(34,197,94,.16);
}

.card__cover .chip--type{
  background: rgba(34,197,94,0.20);
  border-color: rgba(34,197,94,0.38);
}

.card__cover .chip--reviews{
  background: rgba(0,0,0,0.55);
  border-color: rgba(255,255,255,0.14);
}

/* verified: corner accent on the right */
.badge--corner{
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
}

/* extra top veil for readability under chips */
.card__cover::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.55) 0%,
    rgba(0,0,0,.16) 45%,
    rgba(0,0,0,0) 68%
  );
  pointer-events:none;
  z-index: 1;
}
.card__cover img{ position: relative; z-index: 0; }
.card__cover .badges{ z-index: 2; }

@media (max-width: 520px){
  .card__cover .badges__left{ max-width: calc(100% - 140px); }
}
.hero-title{
  font-weight: 900;
  letter-spacing: .2px;
  text-shadow: 0 12px 34px rgba(0,0,0,.55);
  font-size: 40px;
}

@supports (-webkit-background-clip: text){
  .hero-title{
    background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,.72) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.hero-slogan{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.22);
  color: rgba(255,255,255,.92);
  font-weight: 700;
  box-shadow: 0 14px 35px rgba(0,0,0,.35);
  font-size: 21px;
}

.hero-slogan::before{
  content: "✓";
  width: 35px;
  height: 35px;
  border-radius: 100%;
  display: grid;
  place-items: center;
  background: rgba(34,197,94,.95);
  color: #061a12;
  font-weight: 1200;
  box-shadow: 0 12px 25px rgba(34,197,94,.22);
}
.hero-stats{
  margin: 10px auto 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stat{
  min-width: 190px;
  padding: 16px 18px;
  border-radius: 20px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.10),
      rgba(255,255,255,0.04)
    );

  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    0 18px 45px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.25);

  transition: transform .25s ease, box-shadow .25s ease;
}
.stat:hover{
  transform: translateY(-2px);
  box-shadow:
    0 24px 60px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.3);
}


.stat-num{
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.stat-text{
  margin-top: 6px;
  font-size: 12.5px;
  color: rgba(255,255,255,.7);
  
}

.hero{
  position: relative;
  overflow: hidden;
}

.hero::after{
  content:"";
  position:absolute;
  inset:-40px -60px auto -60px;
  height: 260px;
  background:
    radial-gradient(closest-side, rgba(34,197,94,.20), transparent 70%),
    radial-gradient(closest-side, rgba(16,185,129,.14), transparent 70%);
  filter: blur(6px);
  opacity: .9;
  pointer-events:none;
}
/* Делает текст в hero более "воздушным" */
.hero-title{
  margin-bottom: 14px; /* отодвигаем заголовок от текста */
}

.hero-text{
  margin-top: 10px;
  line-height: 1.8;     /* расстояние между строками */
  letter-spacing: 0.3px;
}

/* расстояние между строками внутри текста */
.hero-text br{
  display: block;
  margin-top: 10px;
}
html, body { font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }


/* === PATCH: avatar square + phone pill restore (do not remove) === */

/* Square avatar in master profile header */
.profileTitle .avatar{
  width: 96px;
  height: 96px;
  border-radius: 16px !important;
  overflow: hidden;
  flex: 0 0 96px;
}
.profileTitle .avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px !important;
  display: block;
}

/* Phone pill in profile header ("О мастере") — styles any tel-link there */
.panelHead a[href^="tel:"],
.panelHead .panelPhone{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 8px 14px;
  border-radius: 999px;

  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;

  color: #eafff7 !important;
  text-decoration: none !important;

  background: linear-gradient(135deg,
    rgba(47, 196, 156, 0.38),
    rgba(26, 120, 96, 0.34)
  );

  border: 1px solid rgba(120, 255, 220, 0.38);

  box-shadow:
    0 0 0 1px rgba(255,255,255,0.10) inset,
    0 6px 18px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(79, 224, 182, 0.28);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  transition: box-shadow 0.25s ease, transform 0.2s ease, background 0.25s ease;
}

.panelHead a[href^="tel:"]:hover,
.panelHead .panelPhone:hover{
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.16) inset,
    0 8px 22px rgba(0, 0, 0, 0.45),
    0 0 26px rgba(79, 224, 182, 0.45);
  transform: translateY(-1px);
}

/* Ensure "Оставить заявку" sits under phone when both are in panelActions */
.panelHead .panelActions{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* Light white edge glow for primary CTA */
.panelHead .panelActions .btn--primary{
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.22),
    0 6px 18px rgba(0,0,0,0.25);
  transition: box-shadow .25s ease, transform .2s ease;
}
.panelHead .panelActions .btn--primary:hover{
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.40),
    0 8px 22px rgba(0,0,0,0.35);
  transform: translateY(-1px);
}


/* === PATCH: Hero title whiter + stronger subtitle highlight === */
.hero-title{
  /* override gradient/transparent text */
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 14px 40px rgba(0,0,0,.55);
  background: none !important;
  -webkit-text-fill-color: #ffffff !important;
}

.hero-desc{
  display: inline-block;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 800;
  line-height: 1.35;
  color: rgba(255,255,255,.94);
  background: rgba(34,197,94,.10);
  border: 1px solid rgba(34,197,94,.22);
  box-shadow: 0 14px 35px rgba(0,0,0,.32);
}

.hero-text{
  color: rgba(255,255,255,.82);
}
/* ===== Телефон в профиле мастера ===== */
.panelActions--phone{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.profilePhone{
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.25);
  color: #fff;
  font-weight: 900;
  letter-spacing: .3px;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 10px 30px rgba(0,0,0,.35);
  transition: transform .18s ease, box-shadow .18s ease;
}

.profilePhone:hover{
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.18),
    0 14px 40px rgba(0,0,0,.45);
}

/* ===== Заголовок отзывов с кнопкой ===== */
.reviewsHeader{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn--mini{
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
}

/* ===============================
   PATCH: Header jitter / scroll-lock fix
   - Do NOT change sticky header height on scroll
   - Ensure only ONE border line
   =============================== */

/* Kill any real borders on header (prevents "two lines") */
.site-header{
  border-bottom: none !important;
  border: none !important;
  position: sticky; /* keep */
  top: 0;
}

/* Draw a single border line using pseudo-element */
.site-header::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

/* Keep header dimensions stable on scroll (no padding/height changes) */
.site-header.is-scrolled .header-row{
  padding: 14px 0 !important;
}

/* Prevent size changes; only visual shrink via transform */
.site-header.is-scrolled .logo-box{
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  padding: 0 !important;
  border-radius: 16px !important;
  transform: scale(0.78);
  transform-origin: left center;
  transition: transform .22s ease;
}

/* Smoothly hide subtitle without affecting layout height */
.brand-subtitle{
  transition: opacity .22s ease, transform .22s ease;
}
.site-header.is-scrolled .brand-subtitle{
  opacity: 0;
  transform: translateY(-6px);
}

/* Optional: make the header feel tighter without layout reflow */
.site-header{
  transition: background .22s ease;
}
.footer_inner {
  display: flex;
  justify-content: space-between; /* Распределяем пространство между элементами */
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 0 20px;
  box-sizing: border-box;
  width: 100%; /* Занимает всю ширину */
}

.footer_left {
  flex: 0 0 auto;
  /* Если нужно логотип слева - оставить как есть */
}

.footer_right_content {
  display: flex;
  gap: 40px; /* Увеличиваем расстояние между блоками */
  flex: 1; /* Занимает оставшееся пространство */
  justify-content: flex-end; /* Прижимаем к правому краю */
  max-width: none; /* Убираем ограничение */
  box-sizing: border-box;
  margin-left: auto; /* Прижимаем вправо */
}

.footer_right, .address_num {
  flex: 0 0 auto; /* Не растягиваем, фиксированная ширина */
  min-width: 280px; /* Увеличиваем минимальную ширину */
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Десктоп версия (оставить как есть) */
@media (min-width: 769px) {
  .footer_right_content {
    justify-content: space-between; /* Равномерно распределяем блоки */
    width: 70%; /* Занимает 70% ширины */
    gap: 50px; /* Еще больше расстояние */
  }
  
  .footer_right {
    flex: 0 0 45%; /* Занимает 45% */
  }
  
  .address_num {
    flex: 0 0 45%; /* Занимает 45% */
  }
}

/* Мобильная версия (оставляем текущую) */
@media (max-width: 768px) {
  .footer_inner {
    flex-direction: column;
    padding: 0 20px;
  }
  
  .footer_left {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
  }
  
  .footer_right_content {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    margin-top: 0;
  }
  
  .footer_right, .address_num {
    max-width: 100%;
    min-width: unset;
    width: 100%;
  }
}