
:root{--bg1:#eaf4f6;--bg2:#d7e9ee;--card:rgba(255,255,255,.84);--text:#2f465a;--muted:#6b7c85;--accent:#5f8f9b;--accent-dark:#34667a;--soft:#eef6f8;--sand:#f5ead9;--danger:#e97366;--shadow:0 18px 40px rgba(47,70,90,.12);--radius:28px}
*{box-sizing:border-box}
html{scroll-behavior:smooth;overflow-x:hidden}
body{margin:0;padding:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--text);background:linear-gradient(180deg,var(--bg1),var(--bg2))}
body::before,body::after{content:"";position:fixed;width:360px;height:360px;border-radius:50%;pointer-events:none;z-index:-1}
body::before{top:-70px;right:-70px;background:radial-gradient(circle,rgba(95,143,155,.24),transparent 70%)}
body::after{left:-120px;bottom:-120px;background:radial-gradient(circle,rgba(245,234,217,.45),transparent 70%)}
a{text-decoration:none;color:inherit}.container{width:min(1180px,calc(100% - 48px));margin:0 auto}
.site-header{position:sticky;top:0;z-index:20;background:rgba(234,244,246,.7);backdrop-filter:blur(12px);border-bottom:1px solid rgba(95,143,155,.12)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;padding:18px 0}
.brand{display:flex;gap:14px;align-items:center}.logo{width:48px;height:48px;border-radius:18px;background:linear-gradient(145deg,#7eb2bf,#4f7e8c);display:grid;place-items:center;color:#fff;font-size:22px;font-weight:700;box-shadow:var(--shadow)}
.brand-copy h1{font-size:20px;margin:0 0 4px}.brand-copy p{margin:0;color:var(--muted);font-size:13px}
.nav{display:flex;gap:12px;flex-wrap:wrap}.nav a{padding:12px 18px;border-radius:999px;background:rgba(255,255,255,.55);border:1px solid rgba(95,143,155,.16);font-weight:600;transition:.2s}
.nav a:hover,.nav a.active{transform:translateY(-2px);box-shadow:0 10px 24px rgba(95,143,155,.18);background:#fff}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:14px 22px;border-radius:999px;border:0;font-weight:700;transition:.2s}
.btn:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(47,70,90,.16)}.btn-primary{background:linear-gradient(135deg,var(--accent),var(--accent-dark));color:#fff}.btn-secondary{background:#fff;color:var(--text);border:1px solid rgba(95,143,155,.18)}.btn-soft{background:var(--soft);color:var(--accent-dark)}
.card,.panel,.hero-card{background:var(--card);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.75);border-radius:var(--radius);box-shadow:var(--shadow)}
.hero{padding:56px 0 34px}.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:26px;align-items:center}.hero-card{padding:38px}
.kicker{display:inline-flex;gap:8px;padding:10px 14px;border-radius:999px;background:#fff;color:var(--accent-dark);font-weight:700;font-size:14px;border:1px solid rgba(95,143,155,.16)}
.hero h2{font-size:60px;line-height:.98;letter-spacing:-1.4px;margin:16px 0}.lead{font-size:20px;line-height:1.5;color:var(--muted);margin:0 0 24px}
.hero-actions,.stack-actions{display:flex;gap:14px;flex-wrap:wrap}.bullet-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.pill{padding:10px 14px;border-radius:999px;background:#fff;border:1px solid rgba(95,143,155,.14);font-weight:600;font-size:14px;color:var(--muted)}
.hero-side{padding:26px;display:grid;grid-template-columns:1fr 1fr;gap:18px}.illustration{min-height:290px;border-radius:26px;background:linear-gradient(180deg,#f9fbfc,#eef6f8);position:relative;overflow:hidden;border:1px solid rgba(95,143,155,.12)}.blob{position:absolute;border-radius:50%}.one{width:150px;height:150px;background:#d8edf1;top:26px;left:16px}.two{width:120px;height:120px;background:#f2ead8;top:120px;right:20px}.three{width:88px;height:88px;background:#cfe5dd;bottom:28px;left:120px}.character{position:absolute;left:50%;top:50%;transform:translate(-50%,-42%);width:170px;height:170px;border-radius:36px;background:linear-gradient(180deg,#f5ead9,#f0ddbe);box-shadow:0 20px 30px rgba(47,70,90,.12);display:grid;place-items:center;font-size:70px}.quote{padding:22px;border-radius:24px;background:#fff;border:1px solid rgba(95,143,155,.12)}.quote h3{margin:0 0 10px;font-size:20px}.quote p{margin:0;color:var(--muted);line-height:1.5}
section{padding:18px 0 24px}.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px}.section-head h3{font-size:36px;letter-spacing:-.8px;margin:0}.section-head p{margin:0;color:var(--muted)}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.card{padding:24px}.card h4{margin:0 0 10px;font-size:24px}.card p{margin:0;color:var(--muted);line-height:1.55}.icon-circle{width:54px;height:54px;border-radius:18px;background:linear-gradient(145deg,#e9f5f8,#f9fbfc);display:grid;place-items:center;font-size:24px;margin-bottom:18px;border:1px solid rgba(95,143,155,.12)}
.steps{counter-reset:s}.step{position:relative;padding:24px 24px 24px 74px}.step::before{counter-increment:s;content:counter(s);position:absolute;left:22px;top:22px;width:36px;height:36px;border-radius:50%;background:linear-gradient(145deg,var(--accent),var(--accent-dark));color:#fff;display:grid;place-items:center;font-weight:800}
.notice{padding:26px 28px;background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(255,255,255,.72));border-left:6px solid var(--danger)}.notice ul{margin:10px 0 0;padding-left:18px;color:var(--muted);line-height:1.7}
.center-shell{
  padding:56px 0 20px;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}
.narrow{width:min(820px,calc(100% - 48px))}.form-card,.dashboard,.wide-card{padding:34px 34px 30px}.form-title{display:flex;flex-direction:column;align-items:center;text-align:center;margin-bottom:22px}.form-title .emoji{font-size:40px;margin-bottom:10px}.form-title h2{margin:0;font-size:42px;letter-spacing:-1px}.form-title p{margin:10px 0 0;color:var(--muted);font-size:18px}
.filters{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;margin:22px 0 8px}.filter-btn{padding:16px 24px;border-radius:999px;background:#fff;border:1px solid rgba(95,143,155,.14);font-weight:700;font-size:18px;transition:.2s}.filter-btn.active,.filter-btn:hover{background:linear-gradient(135deg,#6fa4b3,#4f7e8c);color:#fff;box-shadow:0 12px 24px rgba(95,143,155,.24);transform:translateY(-2px)}
.practice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:30px}.practice-card{padding:24px;display:flex;flex-direction:column;min-height:410px}.practice-card .meta{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 18px}.meta span{padding:7px 12px;border-radius:999px;background:#fff;border:1px solid rgba(95,143,155,.12);font-size:13px;font-weight:700;color:var(--muted)}.practice-card .spacer{flex:1}
.soft-box{padding:18px;border-radius:22px;background:rgba(255,255,255,.75);border:1px solid rgba(95,143,155,.12)}.input,textarea{width:100%;padding:16px 18px;border-radius:18px;border:1px solid rgba(95,143,155,.18);background:rgba(255,255,255,.82);font:inherit;color:var(--text);outline:none}.input:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 4px rgba(95,143,155,.12)}textarea{min-height:230px;resize:vertical}
.emoji-row{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin:18px 0 22px}.emoji-btn{width:52px;height:52px;border-radius:16px;border:1px solid rgba(95,143,155,.14);background:#fff;display:grid;place-items:center;font-size:24px}
.range-group{margin-bottom:24px}.range-label{display:flex;justify-content:space-between;gap:10px;margin-bottom:10px;font-weight:700}.range-help{display:flex;justify-content:space-between;color:var(--muted);font-size:13px;margin-top:8px}input[type=range]{width:100%;accent-color:var(--accent)}
.result-badge{display:inline-flex;padding:10px 16px;border-radius:999px;background:#fff;border:1px solid rgba(95,143,155,.14);font-weight:800;color:var(--accent-dark)}.reco-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:20px}
.support-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:18px}.list{display:grid;gap:12px;margin-top:16px}.list-item{padding:16px 18px;border-radius:20px;background:#fff;border:1px solid rgba(95,143,155,.12);display:flex;justify-content:space-between;gap:10px;align-items:center}.warning{color:#a94136;font-weight:800}
.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin:20px 0}.stat{padding:24px;border-radius:24px;background:linear-gradient(145deg,#f7fbfc,#ffffff);border:1px solid rgba(95,143,155,.12)}.chart{height:300px;border-radius:24px;padding:22px;background:#fff;border:1px solid rgba(95,143,155,.12);position:relative;overflow:hidden}.chart .line{position:absolute;left:24px;right:24px;bottom:42px;height:180px}.chart svg{width:100%;height:100%}.chart-labels{position:absolute;left:24px;right:24px;bottom:16px;display:flex;justify-content:space-between;color:var(--muted);font-size:13px}
/* Футер */
.footer {
  text-align: center;
  backdrop-filter: blur(8px);
  padding: 24px 20px;
  font-weight: 700;
  color: #1e5d7a;
  font-size: clamp(0.9rem, 3vw, 1rem);
  letter-spacing: 0.5px;
  width: 100%;
  margin-top: auto;
}
.footer .tag{display:inline-flex;padding:12px 18px;background:rgba(255,255,255,.74);border-radius:999px;border:1px solid rgba(95,143,155,.12);font-weight:700}
.help-float {
    position: fixed; 
    right: 18px; 
    bottom: 18px;
    padding: 14px 18px; 
    border-radius: 999px;
    background: linear-gradient(135deg, #ef6958, #d94d3e); 
    color: #fff;
    box-shadow: 0 18px 30px rgba(217, 77, 62, .28); 
    font-weight: 800; 
    z-index: 999; /* Поднимаем кнопку над ВСЕМИ элементами (кроме модалок) */
    pointer-events: auto; /* Принудительно разрешаем клики */
    cursor: pointer;
    
    animation: helpPulse 2.6s ease-in-out infinite;
    border: none; 
    font-family: inherit; 
    font-size: inherit;
    text-decoration: none; /* Если это тег <a> */
}
.muted{color:var(--muted)}.center{text-align:center}.small{font-size:14px}
.account-menu{position:relative}
.account-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid rgba(95, 143, 155, 0.2);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.account-btn:hover {
    border-color: var(--accent);
    background: var(--soft);
    transform: scale(1.05);
}

.dropdown-menu{display:none;position:absolute;background:#fff;border:1px solid rgba(95,143,155,.12);border-radius:12px;padding:12px;box-shadow:0 8px 24px rgba(47,70,90,.12);z-index:100;min-width:160px;flex-direction:column;gap:8px}
.account-dropdown{top:48px;right:0}
.dropdown-name { 
    padding: 12px 16px 8px;
    font-weight: 600; 
    font-size: 14px; 
    color: #333; 
    border-bottom: 1px solid #f0f0f0; 
    margin-bottom: 4px;
}
.dropdown-logout{padding:8px 12px;background:#fff;border:1px solid rgba(95,143,155,.18);border-radius:8px;cursor:pointer;font-size:13px}
.dropdown-logout:hover{background:var(--soft)}
@media (max-width:960px){.hero-grid,.support-grid,.practice-grid,.grid-3,.grid-4,.reco-grid{grid-template-columns:1fr}.hero-side{grid-template-columns:1fr}.hero h2{font-size:44px}.section-head{flex-direction:column;align-items:start}}

.dropdown-divider {
    height: 1px;
    background-color: #f0f0f0;
    margin: 1px 0;
}

/* Светло-красный фон при наведении */
.dropdown-danger:hover {
    background-color: #fdf0f0 !important;
}

.filter-link{display:inline-flex;align-items:center;justify-content:center}.practice-card.hidden{display:none}

.form-card textarea {
    padding: 0.75rem 1rem; 
    font-size: 0.95rem;
    line-height: 1.5; 
    color: #1f2937; 
    background: #f8fafc;
    border: 1.5px solid #e2e8f0; 
    border-radius: 10px;
    transition: all 0.2s ease; 
    box-sizing: border-box;
    width: 100%;
}

.form-card textarea:focus {
    outline: none; 
    border-color: #3b82f6; 
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-card textarea::placeholder {
    color: #94a3b8; 
    font-style: italic;
}

.form-card textarea { 
    resize: vertical; 
    min-height: 80px; 
}

.form-card .diary-hint {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: #64748b;
}

/* Enhanced visuals */
html{scroll-behavior:smooth}
body::before,body::after{animation:floatBlob 14s ease-in-out infinite alternate}
body::after{animation-duration:18s}
@keyframes floatBlob{0%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(18px,-10px,0) scale(1.06)}100%{transform:translate3d(-12px,18px,0) scale(.98)}}

.site-header{box-shadow:0 10px 30px rgba(47,70,90,.08)}
.logo{position:relative;overflow:hidden}
.logo::after,.btn::after,.card::after,.hero-card::after,.panel::after{content:"";position:absolute;inset:-120% auto auto -40%;width:45%;height:300%;transform:rotate(18deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.38),transparent);pointer-events:none;transition:transform .9s ease,opacity .9s ease;opacity:0}
.logo::after{opacity:.5;animation:shineSweep 7s linear infinite}
.btn,.card,.hero-card,.panel,.practice-card,.soft-box,.stat,.chart,.tag,.list-item,.filter-btn{position:relative;overflow:hidden}
.card,.hero-card,.panel,.practice-card,.stat,.chart,.wide-card,.form-card,.dashboard{box-shadow:0 20px 45px rgba(47,70,90,.10), inset 0 1px 0 rgba(255,255,255,.55)}
.card:hover,.hero-card:hover,.practice-card:hover,.stat:hover,.list-item:hover{transform:translateY(-6px);box-shadow:0 28px 55px rgba(47,70,90,.16), inset 0 1px 0 rgba(255,255,255,.65)}
.btn:hover::after,.card:hover::after,.hero-card:hover::after,.panel:hover::after,.practice-card:hover::after,.list-item:hover::after,.filter-btn:hover::after{opacity:1;transform:translateX(420%) rotate(18deg)}
@keyframes shineSweep{0%{transform:translateX(-180%) rotate(18deg)}100%{transform:translateX(500%) rotate(18deg)}}

.hero h2,.form-title h2,.section-head h3{text-shadow:0 8px 22px rgba(47,70,90,.08)}
.lead,.form-title p{max-width:900px;margin-left:auto;margin-right:auto}
.filters{margin-top:26px;margin-bottom:16px}
.filter-btn{backdrop-filter:blur(10px);box-shadow:0 8px 18px rgba(47,70,90,.06)}
.filter-btn.active{transform:translateY(-3px) scale(1.02)}

.soft-box{box-shadow:inset 0 1px 0 rgba(255,255,255,.8), 0 10px 24px rgba(47,70,90,.05)}
.input,textarea{transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease}
.input:focus,textarea:focus{transform:translateY(-1px)}

.practice-grid .practice-card{transition:transform .25s ease, box-shadow .25s ease}
.practice-visual{min-height:170px;display:grid;place-items:center;background:linear-gradient(145deg,#dff0f4,#f7fbfc);border-radius:24px;overflow:hidden;border:1px solid rgba(95,143,155,.10);box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}
.practice-visual img{width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.01);transition:transform .5s ease,filter .5s ease}
.practice-card:hover .practice-visual img{transform:scale(1.06);filter:saturate(1.05)}
.breath-square{width:118px;height:118px;margin:8px auto 14px;border-radius:28px;background:linear-gradient(145deg,#cfe5ec,#8ab1bd);box-shadow:inset 0 0 0 10px rgba(255,255,255,.5),0 14px 24px rgba(95,143,155,.18);animation:breathePulse 4.6s ease-in-out infinite}
@keyframes breathePulse{0%,100%{transform:scale(.88);border-radius:28px;box-shadow:inset 0 0 0 10px rgba(255,255,255,.52),0 14px 24px rgba(95,143,155,.18)}25%{transform:scale(1);border-radius:30px}50%{transform:scale(1.12);border-radius:34px;box-shadow:inset 0 0 0 12px rgba(255,255,255,.42),0 18px 30px rgba(95,143,155,.24)}75%{transform:scale(1);border-radius:30px}}
.reflective{background:linear-gradient(180deg,rgba(255,255,255,.25),rgba(255,255,255,.06));box-shadow:inset 0 1px 0 rgba(255,255,255,.8), 0 18px 40px rgba(47,70,90,.08)}
.glow-ring{box-shadow:0 0 0 1px rgba(95,143,155,.14), 0 12px 28px rgba(95,143,155,.16), inset 0 1px 0 rgba(255,255,255,.8)}
.help-float{animation:helpPulse 2.6s ease-in-out infinite}
@keyframes helpPulse{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-3px) scale(1.03)}}
.footer .tag{position:relative;overflow:hidden}
.footer .tag::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.45),transparent);transform:translateX(-140%);animation:shineTag 6s linear infinite}
@keyframes shineTag{100%{transform:translateX(140%)}}


.hero-visual-img{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:78%;height:78%;object-fit:cover;border-radius:28px;box-shadow:0 28px 45px rgba(47,70,90,.16);border:6px solid rgba(255,255,255,.7);z-index:2;transition:transform .35s ease, box-shadow .35s ease}
.illustration:hover .hero-visual-img{transform:translate(-50%,-52%) scale(1.02);box-shadow:0 34px 55px rgba(47,70,90,.2)}
.illustration::after{content:"";position:absolute;inset:14px;border-radius:30px;border:1px solid rgba(95,143,155,.14);box-shadow:inset 0 1px 0 rgba(255,255,255,.65);pointer-events:none}
.emoji-btn{cursor:pointer;transition:transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease}
.emoji-btn:hover{transform:translateY(-3px) scale(1.06);box-shadow:0 14px 26px rgba(47,70,90,.12);background:#fffefc}
.emoji-btn.active{background:linear-gradient(135deg,#fff,#eef6f8);border-color:rgba(95,143,155,.35);box-shadow:0 16px 30px rgba(95,143,155,.18), inset 0 1px 0 rgba(255,255,255,.92);transform:translateY(-2px) scale(1.08)}
.diary-hint{margin:8px 0 0;text-align:center;color:var(--muted);font-weight:600}
.practice-card .btn{transition:transform .25s ease, box-shadow .25s ease, filter .25s ease}
.practice-card .btn:active,.btn:active,.filter-btn:active,.emoji-btn:active{transform:translateY(0) scale(.98);box-shadow:0 0 0 6px rgba(95,143,155,.12)}
.photo-card img{width:100%;height:100%;object-fit:cover;display:block}
.relax-photo{min-height:180px}
.relax-photo img{filter:saturate(1.04) contrast(1.02)}
.soft-box.photo-card{padding:0;overflow:hidden}
.panel,.hero-card,.card,.practice-card{transition:transform .25s ease, box-shadow .25s ease}


/* Модальное окно чата */
.chat-modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    bottom: 80px; /* Над кнопкой */
    right: 20px;
    width: 360px;
    height: 500px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    z-index: 1000;
    flex-direction: column;
    overflow: hidden;
    animation: slideInUp 0.3s ease-out forwards;
}

.chat-modal.active { display: flex; }

/* Шапка чата */
.chat-header {
    background: linear-gradient(135deg, #ef6958, #d94d3e); 
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 { margin: 0; font-size: 1.1rem; }
.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.close-chat:hover { opacity: 1; }

/* Область сообщений */
.chat-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f9f9f9;
}

.message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.bot-msg {
    background: white;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.user-msg {
    background: #1e5d7a;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* Быстрые кнопки действий */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.action-btn {
    background: white;
    border: 2px solid #1e5d7a;
    color: #1e5d7a;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
}

.action-btn:hover {
    background: #1e5d7a;
    color: white;
    transform: translateY(-1px);
}

.action-btn.primary {
    background: #1e5d7a;
    color: white;
}
.action-btn.primary:hover {
    background: #0f445c;
}

/* Поле ввода */
.chat-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 16px;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
}

.chat-input:focus { border-color: #1e5d7a; }

.send-btn {
    background: #1e5d7a;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.send-btn:hover { transform: scale(1.05); background: #0f445c; }

/* Stronger calming visuals */
html,body{background-size:240% 240%}
body {
  background:
    radial-gradient(circle at 18% 18%, rgba(255,205,220,.45), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(210,238,244,.48), transparent 24%),
    radial-gradient(circle at 78% 78%, rgba(232,242,216,.34), transparent 24%),
    linear-gradient(135deg,#eef8fb 0%,#dceff2 30%,#f8e3ef 58%,#dbeef0 78%,#ecf7f3 100%);
  animation: calmGradient 18s ease-in-out infinite;
}
@keyframes calmGradient{
  0%{background-position:0% 35%, 100% 0%, 70% 100%, 0% 50%}
  50%{background-position:10% 20%, 88% 12%, 82% 88%, 100% 50%}
  100%{background-position:0% 35%, 100% 0%, 70% 100%, 0% 50%}
}
body::before{filter:blur(4px)}
body::after{filter:blur(8px)}

.site-header{background:rgba(239,247,249,.78);box-shadow:0 12px 34px rgba(47,70,90,.09)}
.card,.panel,.hero-card,.practice-card,.stat,.chart,.wide-card,.form-card,.dashboard,.quote{
  border:1px solid rgba(255,255,255,.88);
  box-shadow:
    0 24px 50px rgba(47,70,90,.12),
    0 8px 18px rgba(95,143,155,.08),
    inset 0 1px 0 rgba(255,255,255,.88);
}
.card:hover,.hero-card:hover,.practice-card:hover,.stat:hover,.list-item:hover,.quote:hover{
  transform:translateY(-8px) scale(1.01);
  box-shadow:
    0 34px 70px rgba(47,70,90,.16),
    0 12px 24px rgba(95,143,155,.10),
    inset 0 1px 0 rgba(255,255,255,.96);
}

.btn,.filter-btn,.emoji-btn,.nav a,.help-float{
  transition:transform .28s ease, box-shadow .28s ease, background .28s ease, border-color .28s ease, filter .28s ease;
}
.btn:hover,.filter-btn:hover,.emoji-btn:hover,.nav a:hover,.help-float:hover{filter:saturate(1.05)}
.btn:active,.filter-btn:active,.emoji-btn:active,.nav a:active,.help-float:active{
  box-shadow:0 0 0 8px rgba(95,143,155,.10), 0 14px 26px rgba(47,70,90,.16);
}
.nav a.active,.filter-btn.active,.btn-primary{
  box-shadow:0 14px 28px rgba(95,143,155,.24), inset 0 1px 0 rgba(255,255,255,.18);
}

.practice-visual{
  background:
    linear-gradient(160deg, rgba(255,255,255,.75), rgba(223,240,244,.9)),
    radial-gradient(circle at top right, rgba(255,220,235,.28), transparent 40%);
}
.practice-card:hover .practice-visual{box-shadow:0 18px 34px rgba(95,143,155,.16), inset 0 1px 0 rgba(255,255,255,.88)}
.relax-photo img,.scenic-photo img{filter:saturate(1.08) contrast(1.02) brightness(1.02)}
.scenic-photo::after{
  content:"";position:absolute;inset:auto 0 0 0;height:38%;
  background:linear-gradient(180deg,transparent,rgba(255,255,255,.16) 50%, rgba(255,255,255,.34));
  pointer-events:none;
}

/* calming click sparkles */
.sparkle{
  position:fixed;
  width:10px;height:10px;
  border-radius:50%;
  pointer-events:none;
  z-index:9999;
  background:radial-gradient(circle, rgba(255,255,255,.98) 0%, rgba(255,222,245,.95) 35%, rgba(132,193,206,.45) 75%, transparent 76%);
  box-shadow:0 0 14px rgba(255,255,255,.7),0 0 26px rgba(132,193,206,.35);
  animation:sparkleBurst .95s ease-out forwards;
}
.sparkle::before,.sparkle::after{
  content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  background:rgba(255,255,255,.9);border-radius:999px;
}
.sparkle::before{width:2px;height:16px;opacity:.9}
.sparkle::after{width:16px;height:2px;opacity:.9}
@keyframes sparkleBurst{
  0%{transform:translate3d(0,0,0) scale(.2);opacity:0}
  15%{opacity:1}
  100%{transform:translate3d(var(--tx),var(--ty),0) scale(1.4);opacity:0}
}


.result-details{margin-top:16px;display:grid;gap:12px}
.result-detail-item{padding:14px 16px;border:1px solid rgba(96,137,150,.15);border-radius:18px;background:rgba(255,255,255,.65);box-shadow:0 8px 18px rgba(80,107,120,.06)}
.result-detail-item strong{display:block;margin-bottom:6px;color:#2d4258}
.reco-grid .card{transition:transform .28s ease, box-shadow .28s ease, border-color .28s ease}
.reco-grid .card:hover{transform:translateY(-6px);box-shadow:0 16px 34px rgba(80,107,120,.12)}


/* Hover hints for checklist and balance calculator */
.hint-wrap{
  position:relative;
  display:inline-flex;
  align-items:center;
}
.hover-hint{
  position:absolute;
  top:50%;
  left:calc(100% + 14px);
  transform:translateY(-50%) translateX(-8px);
  width:280px;
  padding:14px 16px;
  border-radius:18px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(109,142,155,.20);
  box-shadow:0 18px 42px rgba(88,111,126,.16);
  color:#355062;
  display:flex;
  flex-direction:column;
  gap:6px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .28s ease, transform .28s ease, visibility .28s ease;
  backdrop-filter:blur(10px);
  z-index:30;
}
.hover-hint strong{
  font-size:18px;
  line-height:1.2;
  color:#274457;
}
.hover-hint span{
  font-size:14px;
  line-height:1.45;
  color:#5f7786;
}
.hover-hint::before{
  content:'';
  position:absolute;
  left:-10px;
  top:50%;
  transform:translateY(-50%);
  border-width:10px 10px 10px 0;
  border-style:solid;
  border-color:transparent rgba(255,255,255,.92) transparent transparent;
  filter:drop-shadow(-2px 0 1px rgba(88,111,126,.08));
}
.hint-wrap:hover .hover-hint,
.hint-wrap:focus-within .hover-hint,
.hint-wrap:focus .hover-hint{
  opacity:1;
  visibility:visible;
  transform:translateY(-50%) translateX(0);
}
@media (max-width: 980px){
  .hover-hint{
    top:calc(100% + 10px);
    left:50%;
    transform:translateX(-50%) translateY(-8px);
    width:min(280px, 85vw);
  }
  .hover-hint::before{
    left:50%;
    top:-8px;
    transform:translateX(-50%);
    border-width:0 8px 8px 8px;
    border-color:transparent transparent rgba(255,255,255,.92) transparent;
    filter:none;
  }
  .hint-wrap:hover .hover-hint,
  .hint-wrap:focus-within .hover-hint,
  .hint-wrap:focus .hover-hint{
    transform:translateX(-50%) translateY(0);
  }
}


/* tooltip visibility fix */
.center-shell,
.panel,
.form-card,
.card,
.container,
.stack-actions{
  overflow: visible !important;
}

.hint-wrap{
  position: relative;
  z-index: 60;
  display: inline-flex;
  align-items: center;
}

.hover-hint{
  left: auto !important;
  right: calc(100% + 14px) !important;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  width: min(320px, 38vw);
  z-index: 1000 !important;
}

.hover-hint::before{
  left: auto !important;
  right: -10px !important;
  top: 50%;
  transform: translateY(-50%) !important;
  border-width: 10px 0 10px 10px !important;
  border-style: solid;
  border-color: transparent transparent transparent rgba(255,255,255,.92) !important;
  filter: drop-shadow(2px 0 1px rgba(88,111,126,.08));
}

.hint-wrap:hover .hover-hint,
.hint-wrap:focus-within .hover-hint,
.hint-wrap:focus .hover-hint{
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 980px){
  .hover-hint{
    right: 50% !important;
    left: auto !important;
    top: calc(100% + 10px);
    transform: translateX(50%) translateY(-8px);
    width: min(280px, 85vw);
  }

  .hover-hint::before{
    right: 50% !important;
    left: auto !important;
    top: -8px !important;
    transform: translateX(50%) !important;
    border-width: 0 8px 8px 8px !important;
    border-color: transparent transparent rgba(255,255,255,.92) transparent !important;
    filter: none;
  }

  .hint-wrap:hover .hover-hint,
  .hint-wrap:focus-within .hover-hint,
  .hint-wrap:focus .hover-hint{
    transform: translateX(50%) translateY(0);
  }
}


/* force tooltip to appear on RIGHT side */
.hover-hint{
  left: calc(100% + 14px) !important;
  right: auto !important;
  transform: translateY(-50%) translateX(-8px);
}

.hover-hint::before{
  left: -10px !important;
  right: auto !important;
  border-width: 10px 10px 10px 0 !important;
  border-color: transparent rgba(255,255,255,.92) transparent transparent !important;
  filter: drop-shadow(-2px 0 1px rgba(88,111,126,.08));
}

.hint-wrap:hover .hover-hint,
.hint-wrap:focus-within .hover-hint,
.hint-wrap:focus .hover-hint{
  transform: translateY(-50%) translateX(0);
}


/* Page boundary fix */
html {
    min-height: 100%;
}
body {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    padding: 0;
}

body {
  margin: 0;
  background-attachment: fixed;
}

.site-shell,
.page-shell,
.main-shell,
main {
  position: relative;
}

main,
.page-content,
.page-wrap,
.content-wrap,
.content-shell {
  min-height: auto;
}

footer,
.footer,
.site-footer {
  position: relative;
  z-index: 5;
}

body::before,
body::after {
  pointer-events: none;
}

/* Prevent decorative gradients from creating visual overflow */
body,
main,
.page-shell,
.page-content {
  background-repeat: no-repeat;
  background-size: cover;
}

/* Keep last section and footer aligned without large empty overflow */
main > :last-child,
.page-content > :last-child,
.content-wrap > :last-child,
.content-shell > :last-child {
  margin-bottom: 0 !important;
}

footer,
.footer,
.site-footer {
  margin-bottom: 0 !important;
  padding-bottom: 24px;
}


html{scroll-behavior:smooth}
.notice{scroll-margin-top:120px}
.list-item{display:flex;justify-content:space-between;gap:16px;align-items:center}

  /* <!-- Стили формы (текст + ползунки в стиле теста) --> */
.form-card .form-group { 
    margin-bottom: 1.2rem;
    display: flex;              /* Включаем флекс */
    align-items: flex-start;    /* Выравнивание по верху */
    gap: 1rem;                  /* Отступ между лейблом и полем */
}

.form-card .form-group label {
    display: flex; 
    align-items: center; 
    gap: 0.4rem;
    font-weight: 500; 
    color: #2c3e50;
    flex-shrink: 0;             /* Лейбл не сжимается */
    width: 180px;               /* Фиксированная ширина для выравнивания */
    padding-top: 0.6rem;        /* Центрирование по вертикали */
    line-height: 1.3;
}

.form-card .form-group .required { 
    color: #e74c3c; 
    font-weight: 600; 
    margin-left: 2px;
}

.form-card .form-group label .icon { 
    flex-shrink: 0; 
    width: 1.15em; 
    height: 1.15em; 
}

/* Поля ввода — занимают оставшееся место */
.form-card .form-group input[type="text"],
.form-card .form-group textarea {
    flex: 1;                    /* Растягиваем на всю доступную ширину */
    min-width: 0;               /* Важно для работы flex с переполнением */
    padding: 0.75rem 1rem; 
    font-size: 0.95rem;
    line-height: 1.5; 
    color: #1f2937; 
    background: #f8fafc;
    border: 1.5px solid #e2e8f0; 
    border-radius: 10px;
    transition: all 0.2s ease; 
    box-sizing: border-box;
}

.form-card .form-group input[type="text"]:focus,
.form-card .form-group textarea:focus {
    outline: none; 
    border-color: #3b82f6; 
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-card .form-group input[type="text"]::placeholder,
.form-card .form-group textarea::placeholder {
    color: #94a3b8; 
    font-style: italic;
}

.form-card .form-group textarea { 
    resize: vertical; 
    min-height: 80px; 
}

.range-help span { 
    display: flex; 
    align-items: center; 
    gap: 0.3rem; 
}
.range-help .icon { 
    width: 1em; 
    height: 1em; 
    opacity: 0.9; 
}

/* Адаптив: на мобильных — возврат к вертикальному расположению */
@media (max-width: 640px) {
    .form-card .form-group {
        flex-direction: column;
        align-items: stretch;
    }
    .form-card .form-group label {
        width: auto;
        padding-top: 0;
        margin-bottom: 0.4rem;
    }
}

/* smooth icon hover */
.icon-circle,
.feature-icon,
.hero-emoji,
.card h4 span:first-child,
.list-item span:first-child {
  transition: transform .32s ease, box-shadow .32s ease, filter .32s ease;
  will-change: transform;
}

.icon-circle.nohover,
.feature-icon:hover,
.hero-emoji:hover,
.card h4 span:first-child:hover,
.list-item span:first-child:hover {
  transform: translateY(-6px) scale(1.06);
  filter: saturate(1.08);
}

.icon-circle {
  display: inline-flex;
}

.feature-icon,
.hero-emoji,
.card h4 span:first-child,
.list-item span:first-child {
  display: inline-block;
}


/* smooth movement for whole blocks (NOT icons) */
.list-item {
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.list-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.9);
}


/* Only move the platform, do not scale text */
.list-item {
  transform-origin: center center;
}

.list-item:hover {
  transform: translateY(-8px) !important;
}


/* centered icon squares */
.centered-icon{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center;
}
.centered-icon img,
.centered-icon svg{
  display:block;
  margin:auto;
}
.centered-icon,
.icon-circle{
  line-height:1;
}

/* breathing timer */
.breathing-timer-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:18px 0 16px;
}
.breathing-timer-label{
  font-size:14px;
  color:#6d7f8c;
  font-weight:700;
  letter-spacing:.02em;
}
.breathing-timer{
  min-width:120px;
  padding:12px 20px;
  border-radius:999px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(109,142,155,.22);
  box-shadow:0 12px 24px rgba(76,114,126,.10);
  text-align:center;
  font-size:30px;
  font-weight:800;
  color:#345164;
}
.breathing-timer.running{
  box-shadow:0 0 0 6px rgba(117,176,191,.14), 0 12px 24px rgba(76,114,126,.12);
}


/* multi timer controls */
.practice-timer-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:18px 0 16px;
}
.timer-controls{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}
.timer-mini-btn{
  border:none;
  border-radius:999px;
  padding:10px 16px;
  background:rgba(255,255,255,.82);
  color:#355062;
  font-weight:800;
  box-shadow:0 8px 18px rgba(76,114,126,.10);
  border:1px solid rgba(109,142,155,.20);
  cursor:pointer;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.timer-mini-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 24px rgba(76,114,126,.14);
}
.timer-mini-btn.is-active{
  background:#5d8b98;
  color:#fff;
}
.practice-timer-wrap .breathing-timer{
  min-width:140px;
}


/* Full 5-step grounding */
.grounding-list{
  display:grid;
  gap:14px;
}
.grounding-item{
  width:100%;
}



/* === Desktop 1440 layout === */
:root{
  --desktop-frame: 1440px;
}
.container{
  width: 1200px !important;
  max-width: 1200px !important;
  margin-left: auto;
  margin-right: auto;
}
.site-header .wrap{
  min-height: 88px;
}
.hero{
  padding: 64px 0 40px;
}
.hero-grid{
  grid-template-columns: 1.05fr .95fr !important;
  gap: 28px !important;
  align-items: stretch;
}
.hero-card,
.hero-side,
.card,
.panel{
  border-radius: 30px !important;
}
.hero-card{
  padding: 40px !important;
}
.hero-card h2{
  font-size: 56px !important;
  line-height: 1.05 !important;
  letter-spacing: -0.03em;
}
.lead{
  font-size: 20px !important;
  line-height: 1.6 !important;
}
.kicker{
  font-size: 15px !important;
}
.features-grid,
.cards-grid,
.grid-3,
.grid-4,
.reco-grid,
.practice-grid{
  gap: 24px !important;
}
.card,
.panel{
  padding: 28px !important;
}
.btn{
  min-height: 52px;
  padding: 15px 24px !important;
}
.nav a{
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
section{
  scroll-margin-top: 110px;
}
@media (max-width: 1439px){
  body{
    min-width: 0;
  }
  .container{
    width: min(1200px, calc(100% - 48px)) !important;
    max-width: none !important;
  }
}



/* viewport polish */
img{
  max-width:100%;
  height:auto;
}


/* --- form widths smaller --- */
.auth-form,
.login-form,
.register-form,
.form-card form,
.auth-card form {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.auth-form input,
.login-form input,
.register-form input,
.form-card input[type="text"],
.form-card input[type="password"],
.form-card input[type="email"],
.auth-card input[type="text"],
.auth-card input[type="password"],
.auth-card input[type="email"] {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.centered-icon,
.icon-circle{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  line-height:1 !important;
}

.centered-icon img,
.icon-circle img,
.centered-icon svg,
.icon-circle svg{
  margin:auto !important;
  display:block !important;
}

/* number circles move left so they don't overlap text */
.step-card,
.how-card,
.card-number-wrap{
  position: relative;
}

.step-badge,
.step-circle,
.number-circle,
.badge-number{
  position:absolute !important;
  left: 18px !important;
  top: 22px !important;
  z-index: 2;
}

.step-card h3,
.how-card h3{
  padding-left: 56px !important;
}

/* fallback for blue circles inside cards */
.step-card .icon-circle,
.how-card .icon-circle{
  margin-left: -6px;
}

/* HOW IT WORKS FIX — РАБОЧИЙ */

.step {
  position: relative;
  padding-left: 100px !important;
}

.step::before {
  left: 20px !important;
  top: 22px !important;
}

/* заголовок двигаем вправо */
.step h4,
.step h3 {
  margin-left: 0 !important;
}

/* одинаковая ширина полей регистрации */
.auth-card .input,
.auth-card input,
.form-card .input,
.form-card input {
  width: min(760px, 100%) !important;
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
}

/* === АДАПТИВНОСТЬ === */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
  .container {
    width: min(95%, calc(100% - 40px)) !important;
  }

  .hero h2 {
    font-size: 42px !important;
  }

  .grid-3,
  .grid-4,
  .reco-grid,
  .practice-grid,
  .stats {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Мобильные (до 768px) */
@media (max-width: 768px) {
  .hero-grid,
  .support-grid,
  .grid-3,
  .grid-4,
  .practice-grid,
  .reco-grid,
  .stats {
    grid-template-columns: 1fr !important;
  }

  .hero-card,
  .card,
  .panel,
  .form-card,
  .wide-card,
  .dashboard {
    padding: 24px 20px !important;
    border-radius: 22px !important;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .section-head h3 {
    font-size: 28px !important;
  }

  .step {
    padding-left: 70px !important;
  }

  .step::before {
    width: 32px !important;
    height: 32px !important;
    left: 16px !important;
    top: 20px !important;
    font-size: 14px !important;
  }

  .hero-actions,
  .stack-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .stack-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .illustration {
    min-height: 200px !important;
  }

  .nav {
    display: none !important;
  }

  /* Показываем бургер на мобильных */
  .burger-btn {
      display: flex !important;
  }

  /* Скрываем аккаунт-меню (оно теперь в мобильном меню) */
  .account-menu {
      display: none !important;
  }
}

/* Маленькие мобильные (до 480px) */
@media (max-width: 480px) {
  .container {
    width: calc(100% - 24px) !important;
  }

  .hero h2 {
    font-size: 28px !important;
    letter-spacing: -0.5px !important;
  }

  .form-title h2 {
    font-size: 26px !important;
  }

  .lead {
    font-size: 15px !important;
  }

  .input,
  textarea {
    padding: 14px 16px !important;
    font-size: 16px !important;
  }

  .hover-hint {
    display: none !important;
  }

  .single-stat-card {
    flex-direction: column !important;
    gap: 16px !important;
  }
}

/* Принудительно убираем лишнюю высоту */
body, html {
  min-height: auto !important;
  height: auto !important;
}

footer.footer {
  padding-bottom: 12px !important;
}

/* SVG icon sprite */
.icon {
    display: inline-block;
    vertical-align: middle;
}

.icon-color use {
  color:inherit
}

.account-btn .icon {
    width: 1.25em;
    height: 1.25em;
    color: var(--accent-dark);
}

.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 32px; height: 32px; }

.brand .icon {
    color: #2563eb;
}

.text-success { color: #28a745; }
.text-danger  { color: #dc3545; }
.text-primary { color: #0d6efd; }
.text-warning { color: #ffc107; }

.icon-spin {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========================================
   МОБИЛЬНОЕ МЕНЮ (БУРГЕР)
   ======================================== */

/* Кнопка бургера — скрыта на десктопе */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.burger-btn:hover {
    background: rgba(95, 143, 155, 0.1);
}

.burger-line {
    width: 100%;
    height: 3px;
    background: var(--accent-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Оверлей — скрыт по умолчанию */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Меню выезжает справа */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 1000;
}

.mobile-menu-overlay.active .mobile-menu {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(95, 143, 155, 0.12);
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--text);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    line-height: 1;
    transition: color 0.2s ease;
}

.mobile-menu-close:hover {
    color: var(--danger);
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 8px;
}

.mobile-menu-item {
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(95, 143, 155, 0.12);
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
}

.mobile-menu-item:hover,
.mobile-menu-item:active {
    background: var(--soft);
    transform: translateX(4px);
    border-color: var(--accent);
}

.mobile-menu-item.active {
    background: var(--soft);
    border-color: var(--accent);
    color: var(--accent);
}

.mobile-menu-logout {
    color: var(--danger);
    border-color: rgba(233, 115, 102, 0.2);
}

.mobile-menu-logout:hover {
    background: rgba(233, 115, 102, 0.08);
}

/* Мобильные устройства: показываем бургер, скрываем аккаунт-меню */
.mobile-menu-overlay {
    display: none !important;
}

/* На мобильных - показываем */
@media (max-width: 768px) {
    .mobile-menu-overlay {
        display: block !important;
    }
    
    .burger-btn {
        display: flex !important;
    }
    
    .account-menu {
        display: none !important;
    }
}

/* === МОБИЛЬНАЯ АВАТАРКА === */
.mobile-menu-user-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.mobile-account-wrapper {
    position: relative;
}

.mobile-account-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid rgba(95, 143, 155, 0.2);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-account-btn:hover {
    border-color: var(--accent);
    background: var(--soft);
    transform: scale(1.05);
}

.mobile-account-btn .icon {
    width: 1.5em;
    height: 1.5em;
    color: var(--accent-dark);
}

.mobile-account-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    padding: 8px;
    z-index: 1000;
    display: none;
}

.mobile-login-link {
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 20px;
    display: none;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .mobile-account-btn {
        width: 40px;
        height: 40px;
    }
    
    .mobile-account-btn .icon {
        width: 1.2em;
        height: 1.2em;
    }
}

/* Запрещаем проскролливать дальше футера (overscroll bounce) */
html,
body {
    overscroll-behavior-y: none;
}