/* =========================================================
   ASHEKITTA SHARED THEME
   Тут менять основные цвета, фон, шапку, кнопки
   ========================================================= */

:root{
  --bg:#FFD8F9;
  --bg2:#FFFFFF;
  --accent:#ff4fc3;
  --accent-dark:#da2ca1;
  --text:#2b2b2b;
  --muted:#8a8a95;
  --card:#FFC6D9;
  --soft-card:#FFC6D9;
  --border:#FFB5E6;

  --page-width:1100px;
  --header-height:68px;
  --header-height-mobile:64px;
  --side-padding:32px;
  --side-padding-mobile:16px;
}

*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  min-height:100%;
}

body{
  min-height:100vh;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.75), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255,79,195,.20), transparent 30%),
    linear-gradient(180deg,var(--bg) 0%,var(--bg2) 100%);
  background-attachment:fixed;
}

a{
  color:inherit;
}

/* =========================================================
   ЕДИНАЯ ШАПКА
   ========================================================= */

.site-header,
.site-header.auth-site-header{
  width:100% !important;
  height:var(--header-height) !important;
  min-height:var(--header-height) !important;
  max-height:var(--header-height) !important;
  padding:0 !important;
  margin:0 !important;
  box-sizing:border-box !important;
  display:block !important;
  background:rgba(255,216,249,.78) !important;
  backdrop-filter:blur(14px) !important;
  border-bottom:1px solid rgba(255,181,230,.7) !important;
  box-shadow:0 8px 24px rgba(0,0,0,.04) !important;
  position:sticky !important;
  top:0 !important;
  z-index:50 !important;
}

.site-header-inner{
  width:100% !important;
  max-width:none !important;
  height:var(--header-height) !important;
  min-height:var(--header-height) !important;
  max-height:var(--header-height) !important;
  margin:0 !important;
  padding:0 var(--side-padding) !important;
  box-sizing:border-box !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:20px !important;
}

.site-brand{
  height:46px !important;
  min-height:46px !important;
  display:inline-flex !important;
  align-items:center !important;
  gap:10px !important;
  margin:0 !important;
  padding:0 !important;
  color:var(--text) !important;
  text-decoration:none !important;
  font-size:22px !important;
  font-weight:800 !important;
  line-height:1 !important;
  white-space:nowrap !important;
}

.site-brand:hover{
  text-decoration:none !important;
}

.site-brand-dot{
  width:12px !important;
  height:12px !important;
  min-width:12px !important;
  min-height:12px !important;
  border-radius:50% !important;
  background:var(--accent) !important;
  box-shadow:0 0 0 6px rgba(255,79,195,.14) !important;
}

.auth-nav{
  height:46px !important;
  min-height:46px !important;
  max-height:46px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:12px !important;
  flex-wrap:nowrap !important;
  margin:0 0 0 auto !important;
  padding:0 !important;
}

.auth-btn,
.user-mini{
  height:46px !important;
  min-height:46px !important;
  max-height:46px !important;
  box-sizing:border-box !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 !important;
  border-radius:999px !important;
  border:2px solid var(--border) !important;
  background:rgba(255,255,255,.55) !important;
  color:var(--text) !important;
  text-decoration:none !important;
  font-size:14px !important;
  font-weight:700 !important;
  line-height:1 !important;
  white-space:nowrap !important;
  box-shadow:0 8px 20px rgba(0,0,0,.04) !important;
  transition:.2s !important;
}

.auth-btn{
  padding:0 18px !important;
}

.auth-btn.primary,
.control-btn{
  background:var(--accent) !important;
  border-color:var(--accent) !important;
  color:#fff !important;
}

.auth-btn:hover,
.user-mini:hover{
  transform:translateY(-2px) !important;
  border-color:var(--accent) !important;
  box-shadow:0 12px 24px rgba(0,0,0,.08) !important;
  text-decoration:none !important;
}

.site-header a,
.site-header a:hover,
.site-header a:focus,
.site-header a:active{
  text-decoration:none !important;
}

.user-mini{
  gap:10px !important;
  padding:6px 8px 6px 16px !important;
}

.user-mini-name{
  height:34px !important;
  min-height:34px !important;
  max-height:34px !important;
  max-width:180px !important;
  display:inline-flex !important;
  align-items:center !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
  line-height:1.25 !important;
  padding:0 !important;
  margin:0 !important;
}

.user-mini-avatar{
  width:34px !important;
  height:34px !important;
  min-width:34px !important;
  min-height:34px !important;
  max-width:34px !important;
  max-height:34px !important;
  border-radius:50% !important;
  overflow:hidden !important;
  border:2px solid var(--border) !important;
  background:rgba(255,255,255,.75) !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  color:var(--accent) !important;
  font-size:15px !important;
  font-weight:800 !important;
  flex:0 0 auto !important;
}

.user-mini-avatar img{
  width:34px !important;
  height:34px !important;
  display:block !important;
  object-fit:cover !important;
}

/* =========================================================
   ОБЩИЕ БЛОКИ
   ========================================================= */

.site-container{
  width:min(var(--page-width), calc(100% - 40px));
  margin:0 auto;
}

.site-card{
  background:rgba(255,198,217,.72);
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow:0 12px 30px rgba(0,0,0,.05);
  backdrop-filter:blur(8px);
}

.site-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 22px;
  border-radius:999px;
  border:2px solid var(--accent);
  background:var(--accent);
  color:#fff;
  text-decoration:none;
  font-size:15px;
  font-weight:700;
  line-height:1;
  box-shadow:0 10px 22px rgba(255,79,195,.24);
  transition:.2s;
}

.site-button:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 28px rgba(255,79,195,.32);
  text-decoration:none;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width:520px){
  .site-header,
  .site-header.auth-site-header{
    height:var(--header-height-mobile) !important;
    min-height:var(--header-height-mobile) !important;
    max-height:var(--header-height-mobile) !important;
  }

  .site-header-inner{
    height:var(--header-height-mobile) !important;
    min-height:var(--header-height-mobile) !important;
    max-height:var(--header-height-mobile) !important;
    padding:0 var(--side-padding-mobile) !important;
  }

  .site-brand{
    font-size:19px !important;
  }

  .auth-nav{
    gap:8px !important;
  }

  .auth-btn,
  .user-mini{
    height:42px !important;
    min-height:42px !important;
    max-height:42px !important;
  }

  .auth-btn{
    padding:0 12px !important;
  }

  .user-mini-name{
    max-width:110px !important;
  }

  .user-mini-avatar,
  .user-mini-avatar img{
    width:32px !important;
    height:32px !important;
    min-width:32px !important;
    min-height:32px !important;
  }
}

/* =========================================================
   SHARED HEADER MOBILE DROPDOWN MENU
   ========================================================= */

.site-menu-toggle{
  display:none;
  width:46px;
  height:46px;
  min-width:46px;
  min-height:46px;
  margin:0 0 0 auto;
  padding:0;
  border-radius:999px;
  border:2px solid var(--border);
  background:rgba(255,255,255,.55);
  box-shadow:0 8px 20px rgba(0,0,0,.04);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  transition:.2s;
}

.site-menu-toggle:hover{
  transform:translateY(-2px);
  border-color:var(--accent);
  box-shadow:0 12px 24px rgba(0,0,0,.08);
}

.site-menu-line{
  width:18px;
  height:2px;
  border-radius:99px;
  background:var(--text);
  display:block;
  transition:.2s;
}

.site-header.menu-open .site-menu-line:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}

.site-header.menu-open .site-menu-line:nth-child(2){
  opacity:0;
}

.site-header.menu-open .site-menu-line:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}

/* При нехватке ширины кнопки уходят в выпадающую панель */
@media (max-width:860px){
  .site-header,
  .site-header.auth-site-header{
    overflow:visible !important;
  }

  .site-header-inner{
    position:relative !important;
    overflow:visible !important;
    gap:12px !important;
  }

  .site-brand{
    min-width:0 !important;
    max-width:calc(100vw - 92px) !important;
    overflow:hidden !important;
  }

  .site-brand span:last-child{
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }

  .site-menu-toggle{
    display:inline-flex !important;
  }

  .auth-nav{
    position:absolute !important;
    top:calc(var(--header-height) + 10px) !important;
    right:var(--side-padding) !important;
    width:min(320px, calc(100vw - 32px)) !important;
    height:auto !important;
    min-height:0 !important;
    max-height:calc(100vh - var(--header-height) - 24px) !important;
    margin:0 !important;
    padding:12px !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    justify-content:flex-start !important;
    gap:10px !important;
    overflow:auto !important;
    border-radius:22px !important;
    border:1px solid var(--border) !important;
    background:rgba(255,216,249,.96) !important;
    backdrop-filter:blur(16px) !important;
    box-shadow:0 18px 42px rgba(0,0,0,.12) !important;
    opacity:0 !important;
    pointer-events:none !important;
    transform:translateY(-8px) scale(.98) !important;
    transition:.18s ease !important;
    z-index:999 !important;
  }

  .site-header.menu-open .auth-nav{
    opacity:1 !important;
    pointer-events:auto !important;
    transform:translateY(0) scale(1) !important;
  }

  .auth-nav .auth-btn,
  .auth-nav .user-mini{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    height:44px !important;
    min-height:44px !important;
    max-height:44px !important;
    justify-content:center !important;
    box-shadow:none !important;
  }

  .auth-nav .user-mini{
    justify-content:space-between !important;
    padding:6px 8px 6px 16px !important;
  }

  .auth-nav .user-mini-name{
    max-width:220px !important;
  }
}

@media (max-width:520px){
  .auth-nav{
    top:calc(var(--header-height-mobile) + 10px) !important;
    right:var(--side-padding-mobile) !important;
    width:calc(100vw - 32px) !important;
    max-height:calc(100vh - var(--header-height-mobile) - 24px) !important;
  }

  .site-menu-toggle{
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    min-height:42px !important;
  }
}
