*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

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


:root {
  
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 22px;
  --r-xl: 28px;

  
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 30px;

  
  --nav-h: 64px;
  --btn-h: 48px;
  --btn-h-compact: 40px;

  
  --fz-xs: 12px;
  --fz-sm: 13px;
  --fz-md: 15px;
  --fz-lg: 17px;
  --fz-xl: 20px;

  
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur-1: 140ms;
  --dur-2: 220ms;
  --dur-3: 380ms;

  
  --blur: 14px;

  
  --blue: #0A84FF; 
  --blue2: #2E6BFF;

  
  --bg: #0b0c10;
  --bg2: #0f1117;
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.62);
  --muted2: rgba(255,255,255,.42);

  --glass: rgba(255,255,255,.08);
  --glass2: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.14);
  --stroke2: rgba(255,255,255,.10);

  --shadow: 0 18px 60px rgba(0,0,0,.40);
  --shadow-soft: 0 10px 26px rgba(0,0,0,.26);

  --danger: #ff3b30;
  --success: #34c759;
  --warning: #ff9f0a;

  --focus: 0 0 0 3px rgba(10,132,255,.30);
}


html[data-theme="light"] {
  --bg: #f6f7fb;
  --bg2: #ffffff;
  --text: rgba(0,0,0,.92);
  --muted: rgba(0,0,0,.62);
  --muted2: rgba(0,0,0,.42);

  --glass: rgba(255,255,255,.72);
  --glass2: rgba(255,255,255,.62);
  --stroke: rgba(10,12,18,.12);
  --stroke2: rgba(10,12,18,.08);

  --shadow: 0 18px 60px rgba(10,12,18,.14);
  --shadow-soft: 0 10px 26px rgba(10,12,18,.10);
}


html, body {
  background: var(--bg);
}

.app-shell {
  min-height: 100%;
  background: radial-gradient(1200px 600px at 30% -10%, rgba(10,132,255,.22), transparent 55%),
              radial-gradient(900px 500px at 110% 10%, rgba(88,86,214,.18), transparent 55%),
              radial-gradient(700px 520px at 50% 120%, rgba(52,199,89,.10), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);

  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + var(--space-4));
}


.main {
  padding: var(--space-4);
  padding-top: var(--space-3);
  max-width: 980px;
  margin: 0 auto;
}


.main * {
  min-width: 0;
}


.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: calc(var(--space-3) + env(safe-area-inset-top)) var(--space-4) var(--space-3);
  background: rgba(10, 12, 18, .28);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--stroke2);
}

html[data-theme="light"] .topbar {
  background: rgba(255,255,255,.56);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;

  background: linear-gradient(135deg, rgba(10,132,255,.28), rgba(88,86,214,.18));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: var(--shadow-soft);
}

.brand-mark i {
  font-size: 18px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-size: clamp(15px, 2.6vw, 18px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.2px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(68vw, 560px);
}


.btn {
  height: var(--btn-h);
  border-radius: 16px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  font-weight: 700;
  letter-spacing: .2px;
  font-size: var(--fz-md);

  transition: transform var(--dur-2) var(--ease),
              filter var(--dur-2) var(--ease),
              background var(--dur-2) var(--ease),
              box-shadow var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease);
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn i {
  flex: 0 0 auto;
}

.btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn:active {
  transform: scale(.98);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.btn-primary {
  background: linear-gradient(180deg, rgba(10,132,255,.92), rgba(10,132,255,.70));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 14px 34px rgba(10,132,255,.22), var(--shadow-soft);
}

html[data-theme="light"] .btn-primary {
  border: 1px solid rgba(10,12,18,.10);
}

.btn-primary:hover {
  filter: brightness(1.06) saturate(1.05);
}

.btn-secondary {
  background: var(--glass);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
}

html[data-theme="light"] .btn-secondary {
  background: rgba(255,255,255,.66);
}

.btn-compact {
  height: var(--btn-h-compact);
  padding: 0 14px;
  border-radius: 14px;
  font-size: var(--fz-sm);
  flex-shrink: 0; 
  white-space: nowrap; 
}

.btn-wide {
  width: 100%;
}


.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;

  background: var(--glass);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur-2) var(--ease), filter var(--dur-2) var(--ease);
}

.icon-btn:hover { filter: brightness(1.06); }
.icon-btn:active { transform: scale(.98); }
.icon-btn:focus-visible { outline: none; box-shadow: var(--focus); }

.is-hidden { display: none !important; }


.glass-card {
  background: var(--glass);
  border: 1px solid var(--stroke2);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  overflow: hidden;
}

.form-card {
  padding: var(--space-4);
}


.section-head {
  margin: var(--space-4) 0 var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-title {
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.1;

   white-space: normal;
   overflow: visible;
   text-overflow: unset;
}

.section-note {
  color: var(--muted);
  font-size: var(--fz-sm);
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}


.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .bottom-nav .nav-item span {
    display: none;
  }

  .bottom-nav .nav-item {
    gap: 0;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group--full {
  grid-column: 1 / -1;
}

label {
  font-size: var(--fz-sm);
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: var(--glass2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  padding: 0 14px;
  min-height: var(--btn-h);
  outline: none;

  transition: border-color var(--dur-2) var(--ease),
              box-shadow var(--dur-2) var(--ease),
              filter var(--dur-2) var(--ease);
}

html[data-theme="light"] .form-input,
html[data-theme="light"] .form-select,
html[data-theme="light"] .form-textarea {
  background: rgba(255,255,255,.72);
}

.form-textarea {
  padding: 12px 14px;
  min-height: 120px;
  resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(10,132,255,.55);
  box-shadow: 0 0 0 3px rgba(10,132,255,.18);
}

.input-row {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: nowrap; 
}

.input-row > input {
  flex: 1; 
  min-width: 0; 
}

.input-row > .btn-compact {
  flex-shrink: 0; 
}

.form-hint {
  font-size: var(--fz-xs);
  color: var(--muted2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.meta {
  font-size: var(--fz-xs);
  color: var(--muted2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

@media (max-width: 720px) {
  .segmented {
    grid-template-columns: 1fr;
  }
}


.upload {
  position: relative;
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,.22);
  background: rgba(255,255,255,.05);
  overflow: hidden;
}

html[data-theme="light"] .upload {
  border: 1px dashed rgba(10,12,18,.18);
}

.upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-ui {
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.upload-ui i {
  font-size: 22px;
  opacity: .9;
}

.upload-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.upload-title {
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-sub {
  font-size: var(--fz-sm);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-3);
}

@media (max-width: 520px) {
  .media-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.media-preview .media-item {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--stroke2);
  background: rgba(255,255,255,.05);
}


.actions{
  margin-top: var(--space-2);  
  margin-bottom: var(--space-5);
  display:flex;
  gap: var(--space-2);
}

.stack {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}


.tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  padding: var(--space-3);
  border-bottom: 1px solid var(--stroke2);
  background: rgba(255,255,255,.04);
}

.tab {
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--stroke2);
  background: var(--glass2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  font-weight: 900;
  font-size: var(--fz-sm);
  letter-spacing: .3px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  transition: transform var(--dur-2) var(--ease),
              background var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease),
              filter var(--dur-2) var(--ease);
}

@media (max-width: 420px) {
  .tab { font-size: 12px; }
}

@media (max-width: 520px) {
  #wifi-section .tab[data-tab="new"] {
    font-size: 11px;
    letter-spacing: .2px;
  }
}

.tab:active { transform: scale(.98); }

.tab.is-active {
  background: linear-gradient(180deg, rgba(10,132,255,.92), rgba(10,132,255,.68));
  border-color: rgba(255,255,255,.20);
  box-shadow: 0 12px 28px rgba(10,132,255,.18);
}

.tab-content {
  display: none;
  padding: var(--space-4);
}

.tab-content.is-active {
  display: block;
}


.wifi-groups {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.wifi-type-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.wifi-type-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0 2px;
}

.wifi-type-title {
  font-weight: 900;
  font-size: var(--fz-md);
  letter-spacing: -0.2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wifi-type-title .emoji {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--card-bg-soft);
  border: 1px solid var(--stroke2);
  box-shadow: var(--shadow-soft);
}

.wifi-type-count {
  color: var(--muted);
  font-size: var(--fz-sm);
  font-weight: 800;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

@media (max-width: 720px) {
  .cards-grid { grid-template-columns: 1fr; }
}

.wifi-card {
  padding: var(--space-4);
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke2);
  background: var(--card-bg-soft);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.wifi-card-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.wifi-card-title {
  font-weight: 900;
  font-size: var(--fz-lg);
  line-height: 1.18;
  white-space: normal;
  word-break: break-word;
}

.wifi-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: var(--fz-sm);
}

.wifi-card-action {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--card-bg-soft);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
  flex: 0 0 auto;
}


.wifi-detail {
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.35;
}

.wifi-detail-row {
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--stroke2);
  background: var(--card-bg-soft);
}

.wifi-detail-row b {
  color: var(--muted);
}

.wifi-detail-row .val {
  display: inline;
  word-break: break-word;
}

.wifi-detail-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 6px;
}


.content-section {
  display: none;
}

.content-section.is-active {
  display: block;
  animation: sectionIn var(--dur-3) var(--ease) both;
}

@keyframes sectionIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  bottom: calc(env(safe-area-inset-bottom) + var(--space-2));
  z-index: 12;

  width: min(560px, calc(100% - 2 * var(--space-3)));
  height: var(--nav-h);

  padding: var(--space-1);
  border-radius: 20px;

  background: rgba(10, 12, 18, .36);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--stroke2);
  box-shadow: var(--shadow-soft);

  display: flex;
  gap: var(--space-2);
}

html[data-theme="light"] .bottom-nav {
  background: rgba(255,255,255,.64);
}

.nav-item {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);

  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;

  height: 100%;
  min-height: 48px;

  transition: transform var(--dur-2) var(--ease),
              filter var(--dur-2) var(--ease),
              background var(--dur-2) var(--ease);
}

.nav-item i {
  font-size: 18px;
  opacity: .95;
}

.nav-item span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--muted);

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.nav-item:active { transform: scale(.985); }

.nav-item.is-active {
  background: linear-gradient(180deg, rgba(10,132,255,.90), rgba(10,132,255,.64));
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 12px 28px rgba(10,132,255,.18);
}

.nav-item.is-active span {
  color: rgba(255,255,255,.92);
}


html.is-modal-open,
body.is-modal-open {
  overflow: hidden;
  touch-action: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
}

.modal[aria-hidden="false"] {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.modal-sheet {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100% - 2 * var(--space-3)));
  max-height: calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom) + 2 * var(--space-4)));
  border-radius: 26px;
  background: var(--glass);
  border: 1px solid var(--stroke2);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: sheetPop var(--dur-3) var(--ease) both;
}

html[data-theme="light"] .modal-sheet {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(10,12,18,.12);
}

@keyframes sheetIn {
  from { opacity: 0; transform: translateX(-50%) translateY(18px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.modal-sheet--map {
  
}


.modal-head {
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  border-bottom: 1px solid var(--stroke2);
}

.modal-title {
  font-weight: 900;
  font-size: var(--fz-lg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-body {
  padding: var(--space-4);
  color: var(--text);
  overflow: auto;
  flex: 1;
}

.modal-body--map {
  padding: 0;
  flex: 1;
  overflow: hidden;
}

.modal-actions {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--stroke2);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}


.yandex-map {
  width: 100%;

  
  height: min(62vh, 520px);
  min-height: 320px;
}

.placeholder {
  padding: var(--space-4);
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke2);
  background: var(--glass2);
  box-shadow: var(--shadow-soft);
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}


.location-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.location-btn {
  width: 100%;
}


.address-input-wrapper {
  margin-top: var(--space-2);
  margin-bottom: var(--space-5); 
}


html[data-theme="dark"] .nav-item i {
  color: rgba(255,255,255,.92);
}

html[data-theme="light"] .nav-item i {
  color: rgba(0,0,0,.85);
}


.location-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}


.form-group.has-address-input .location-actions {
  margin-bottom: 0;
}

.address-input-wrapper {
  margin-top: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-hint {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.main{
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + var(--space-6));
}

html, body{
  background: var(--bg);
}



[hidden]{display:none !important;}


.theme-dark .modal-sheet {
  background: rgba(18, 20, 28, .78);
  border-color: rgba(255,255,255,.14);
}

@keyframes sheetPop {
  from { opacity: 0; transform: translate(-50%, -48%) scale(.98); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.theme-dark { --card-bg-soft: rgba(255,255,255,.08); }


#contacts-section .placeholder{
  white-space: normal;        
  overflow: visible;
  text-overflow: clip;
  line-height: 1.35;
}

#contacts-section .placeholder + .placeholder{
  margin-top: 12px;           
}

#contacts-section .placeholder b{
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

#contacts-section .placeholder a{
  display: block;             
  margin: 6px 0;
  padding: 10px 12px;
  border-radius: 14px;

  background: var(--glass2);
  border: 1px solid var(--stroke2);

  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

#contacts-section .placeholder a:active{
  transform: scale(.99);
}


#contacts-section .placeholder {
  line-height: 1.35;
}

#contacts-section .placeholder a {
  color: var(--blue);
  font-weight: 800;
}

#contacts-section .placeholder b {
  display: inline-block;
  margin-bottom: 6px;
}


.modal,
.modal-sheet {
  color: var(--text);
}

.contact-item {
  padding: 16px;
  border-bottom: 1px solid var(--stroke2);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 14px;
}

.contact-row i {
  width: 18px;
  text-align: center;
  color: var(--blue);
}



.admin-v2 {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-v2__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-v2__title {
  font-weight: 900;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-v2__seg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 720px) {
  .admin-v2__seg {
    grid-template-columns: 1fr;
  }
}

.admin-v2__seg-btn {
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: var(--glass2);
  padding: 12px 12px;
  font-weight: 900;
  transition: filter var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}

.admin-v2__seg-btn:active { transform: scale(.99); }
.admin-v2__seg-btn:hover { filter: brightness(1.05); }
.admin-v2__seg-btn.is-active {
  border-color: rgba(10,132,255,.55);
  box-shadow: var(--focus);
}

.admin-v2__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

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

.admin-v2__search {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.admin-v2__search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .75;
}

.admin-v2__search input {
  padding-left: 36px;
}

.admin-v2__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 720px) {
  .admin-v2__list {
    grid-template-columns: 1fr;
  }
}

.admin-v2__card {
  background: var(--glass);
  border: 1px solid var(--stroke2);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform var(--dur-2) var(--ease), filter var(--dur-2) var(--ease);
}

.admin-v2__card:hover { filter: brightness(1.05); }
.admin-v2__card:active { transform: scale(.99); }

.admin-v2__card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.admin-v2__card-title-main {
  font-weight: 900;
  line-height: 1.2;
}

.admin-v2__card-title-sub {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-top: 3px;
}

.admin-v2__badge {
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  white-space: nowrap;
}

.admin-v2__badge.is-new {
  background: rgba(10,132,255,.18);
  border-color: rgba(10,132,255,.35);
}

.admin-v2__badge.is-work {
  background: rgba(255,159,10,.18);
  border-color: rgba(255,159,10,.35);
}

.admin-v2__badge.is-done {
  background: rgba(52,199,89,.18);
  border-color: rgba(52,199,89,.35);
}

.admin-v2__card-lines {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-v2__line {
  font-weight: 800;
  color: rgba(255,255,255,.92);
}

html[data-theme="light"] .admin-v2__line {
  color: rgba(10,10,10,.86);
}

.admin-v2__desc {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.35;
}

.admin-v2__detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-v2__detail-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

@media (max-width: 520px) {
  .admin-v2__detail-row {
    grid-template-columns: 1fr;
  }
}

.admin-v2__detail-k {
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
}

.admin-v2__detail-v {
  font-weight: 800;
}

.admin-v2__pre {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.35;
}

.admin-v2__hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-v2__hr {
  border: none;
  height: 1px;
  background: var(--stroke2);
  margin: 6px 0;
}


#security-section .section-note,
#wifi-section #wifiSectionSubtitle,
#graffiti-section .section-note,
#argus-section .section-note,
#appointment-section .section-note {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;

  
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;

  max-height: none !important;
}


label[for="securityEmail"]::after,
label[for="wifiProblemEmail"]::after,
label[for="wifiNewEmail"]::after,
label[for="graffitiEmail"]::after,
label[for="argusEmail"]::after,
label[for="appointmentEmail"]::after {
  content: " *";
}


.dp {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dp__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dp__title {
  font-weight: 900;
  text-align: center;
  flex: 1;
}

.dp__dow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  font-size: 12px;
  opacity: .75;
  text-align: center;
}

.dp__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.dp__cell {
  border-radius: 14px;
  border: 1px solid var(--stroke2);
  background: var(--glass2);
  padding: 10px 0;
  font-weight: 800;
}

.dp__cell:active { transform: scale(.99); }

.dp__cell.is-selected {
  border-color: rgba(10,132,255,.55);
  box-shadow: var(--focus);
}

.dp__cell--empty {
  opacity: 0;
  pointer-events: none;
}


.form-hint {
  white-space: pre-wrap !important;   
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word !important;  
}




.dp__cell.is-today:not(.is-selected) {
  border-color: rgba(10,132,255,.45);
}



.dp {
  width: min(360px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dp__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dp__title {
  font-weight: 900;
  text-align: center;
  flex: 1;
  letter-spacing: -0.2px;
}

.dp__dow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  font-size: 12px;
  opacity: .75;
  text-align: center;
  user-select: none;
}

.dp__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  height: 312px; 
}

.dp__cell {
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--stroke2);
  background: var(--glass2);
  display: grid;
  place-items: center;

  font-weight: 800;
  letter-spacing: -0.1px;

  box-shadow: 0 10px 20px rgba(0,0,0,.12);
  transition: transform 140ms var(--ease), filter 140ms var(--ease), box-shadow 140ms var(--ease);
}

.dp__cell:active { transform: scale(.98); }

.dp__cell.is-selected {
  border-color: rgba(10,132,255,.65);
  background: linear-gradient(180deg, rgba(10,132,255,.35), rgba(10,132,255,.18));
  box-shadow: 0 14px 26px rgba(10,132,255,.22), 0 10px 20px rgba(0,0,0,.12);
}

.dp__cell.is-disabled,
.dp__cell:disabled {
  opacity: .35;
  filter: grayscale(.2);
  pointer-events: none;
  box-shadow: none;
}

.dp__cell--empty {
  opacity: 0;
  pointer-events: none;
  box-shadow: none;
  border-color: transparent;
  background: transparent;
}


#dpPrev.is-disabled,
#dpPrev:disabled {
  opacity: .35;
  filter: grayscale(.25);
  pointer-events: none;
}


@media (max-width: 420px) {
  .dp {
    width: 100% !important;
    max-width: 100% !important;
  }

  .dp__grid {
    height: 276px !important; 
    gap: 6px !important;
  }

  .dp__dow {
    gap: 6px !important;
  }

  .dp__cell {
    height: 40px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 16px rgba(0,0,0,.10) !important;
  }
}


.dp, .dp * {
  -webkit-tap-highlight-color: transparent;
}

.dp__grid {
  overscroll-behavior: contain;
  touch-action: manipulation; 
}


.dp__cell.is-outside:not(.is-disabled):not(:disabled) {
  opacity: .58;
}


.dp__nav {
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  width: 44px;
  height: 44px;
  line-height: 44px;
}

.dp__nav i {
  margin: 0 !important;
  display: block;
}

@media (max-width: 420px) {
  .dp__nav {
    width: 40px;
    height: 40px;
    line-height: 40px;
  }
}



#home-section .home-hero {
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  text-align: center;
}
.home-hero-title {
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 20px;
  margin-bottom: 6px;
}
.home-hero-sub {
  color: var(--muted);
  font-size: 13px;
}
.home-actions {
  display: grid;
  gap: var(--space-3);
}
.action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-align: left;
  border: 1px solid var(--stroke);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--r-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-soft);
  transform: translateX(22px);
  opacity: 0;
}
.action-btn i:first-child {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,132,255,.12);
  border: 1px solid var(--stroke2);
}
html[data-theme="light"] .action-btn i:first-child {
  background: rgba(10,132,255,.10);
}
.action-text { flex: 1; min-width: 0; }
.action-title {
  font-weight: 750;
  line-height: 1.2;
  font-size: 14px;
  margin-bottom: 4px;
}
.action-sub {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}
.action-arrow { opacity: .6; }
#home-section.is-active .action-btn {
  animation: actionIn .48s cubic-bezier(.2,.8,.2,1) forwards;
}
#home-section.is-active .action-btn:nth-child(1){ animation-delay: .02s; }
#home-section.is-active .action-btn:nth-child(2){ animation-delay: .08s; }
#home-section.is-active .action-btn:nth-child(3){ animation-delay: .14s; }
#home-section.is-active .action-btn:nth-child(4){ animation-delay: .20s; }
@keyframes actionIn {
  to { transform: translateX(0); opacity: 1; }
}


.media-choice { display: grid; gap: 10px; }
.media-q { color: var(--muted); font-size: 13px; }
.media-options { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--glass2);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  user-select: none;
}
.chip input { accent-color: var(--accent); }
.chip span { font-weight: 650; font-size: 13px; }


.loading-overlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.loading-overlay.is-active { display: block; }
.loading-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.38);
}
html[data-theme="light"] .loading-backdrop { background: rgba(10,12,18,.22); }
.loading-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  padding: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: min(320px, calc(100vw - 40px));
}
.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.28);
  border-top-color: rgba(255,255,255,.85);
  animation: spin 1s linear infinite;
}
html[data-theme="light"] .spinner {
  border-color: rgba(0,0,0,.16);
  border-top-color: rgba(0,0,0,.62);
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-weight: 650; }


#home-section .section-head {
  align-items: center;
  text-align: center;
}

#home-section .section-title,
#home-section .section-note {
  text-align: center;
}

/* Premium media uploader */
.media-uploader {
  border: 1px solid var(--stroke2);
  border-radius: 24px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  box-shadow: var(--shadow-soft);
}
.media-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.media-count {
  flex: 0 0 auto;
  min-width: 44px;
  height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--stroke2);
  background: rgba(255,255,255,.07);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.media-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.media-add {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
  cursor: pointer;
}
.media-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.media-card {
  position: relative;
  min-height: 112px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--stroke2);
  background: rgba(255,255,255,.055);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
.media-card img {
  width: 100%;
  height: 112px;
  display: block;
  object-fit: cover;
}
.media-video-card {
  height: 112px;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  color: var(--text);
  background: radial-gradient(circle at 50% 35%, rgba(10,132,255,.30), rgba(255,255,255,.04));
}
.media-video-card i {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  margin-bottom: 8px;
}
.media-video-card span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: var(--muted);
}
.media-meta {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(0,0,0,.48);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.media-remove {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 520px) {
  .media-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Мои обращения: минимальные стили в существующей визуальной системе */
.reports-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4, 16px);
}

.reports-controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 12px);
}

.reports-tabs {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.reports-tabs::-webkit-scrollbar { display: none; }

.reports-tabs .tab { flex: 0 0 auto; }

.reports-list,
.reports-detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 12px);
}

.report-item,
.report-detail-card,
.empty-state {
  border: 1px solid var(--stroke2);
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  padding: var(--space-4, 16px);
}

.report-item__head,
.report-detail__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3, 12px);
}

.report-item__no {
  font-weight: 800;
  letter-spacing: .01em;
}

.report-item__type,
.report-item__date,
.report-item__meta,
.report-block__date,
.empty-text,
.status-history small {
  color: var(--muted);
  font-size: 13px;
}

.report-item__desc {
  margin-top: 10px;
  white-space: normal;
  word-break: break-word;
}

.report-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.status-badge,
.reply-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid var(--stroke2);
  background: rgba(255,255,255,.07);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.report-fields,
.report-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.report-block {
  border-top: 1px solid var(--stroke2);
  padding-top: 14px;
}

.report-block__title {
  font-weight: 800;
}

.report-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.report-media-item {
  min-height: 104px;
  border: 1px solid var(--stroke2);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  color: inherit;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.report-media-item img {
  width: 100%;
  height: 124px;
  object-fit: cover;
  display: block;
}

.report-media-item--empty span {
  color: var(--muted);
  font-size: 12px;
}

.status-history {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-history__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--stroke2);
  border-radius: 12px;
  padding: 10px 12px;
}
