#header button,#mobile-menu button{padding:0}

#header,#mobile-menu,.header-background {
  --muted-2:rgba(255,255,255,.62);
  --pill:rgba(255,255,255,.13);
  --pill-hover:rgba(255,255,255,.22);
  --accent-grad:linear-gradient(90deg,#F6D6DE 0%,#E3A9BA 100%);
  --accent-grad-hi:linear-gradient(90deg,#FAE0E6 0%,#E9B5C4 100%);
  --accent-hi:#E3A9BA;
  --accent-ink:#2A171D;
  --online:#22C55E;

  --pad-x:clamp(16px, 2.4vw, 40px);
  --maxw:1720px;

  --f-head:'Tenor Sans', 'Futura', 'Century Gothic', sans-serif;
  --f-body:'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif
}
@media (max-width:720px) {
  #header,#mobile-menu,.header-background {--pad-x:18px
  }
}
#header,#mobile-menu,.header-background {
  --l-paper:#FAF6F4;
  --l-ink:#1B1418;
  --l-ink-2:#4A4046;
  --l-ink-3:#8A7F86;
  --l-line:#E7DDE1;
  --l-rose-soft:#E3A9BA
}
#header,#mobile-menu,.header-background {--ui-radius:12px
}

#header,#mobile-menu{
  font-family:var(--f-body); font-size:16px; line-height:1.5;
  letter-spacing:-.022em; -webkit-font-smoothing:antialiased; color:#fff;
}
@media (min-width:901px){
  #header,#mobile-menu{font-size:17px}
}
:where(#header,#mobile-menu) *,
:where(#header,#mobile-menu) *::before,
:where(#header,#mobile-menu) *::after{box-sizing:border-box}
:where(#header,#mobile-menu) a{color:inherit; text-decoration:none}
:where(#header,#mobile-menu) ul{margin:0; padding:0; list-style:none}
:where(#header,#mobile-menu) :is(img,svg){display:block; max-width:100%}
:where(#header,#mobile-menu) button{font:inherit; color:inherit; background:none; border:0; cursor:pointer}
:where(#header,#mobile-menu) :focus-visible{outline:2px solid var(--accent-hi); outline-offset:3px}

header#header{display:block; width:auto; background-color:transparent}

body:not(.home){padding-top:0}
.header-background{height:88px}
@media (max-width:900px){
  .header-background{height:76px}
}
@media (max-width:720px){
  .header-background{height:64px}
}

@keyframes slideDown{from{transform:translateY(-100%)}to{transform:none}}
@keyframes ping{0%{transform:scale(1); opacity:.75} 70%,100%{transform:scale(3); opacity:0}}

#header{
  position:absolute; inset:0 0 auto 0; z-index:60;
  padding:0 var(--pad-x);
  transition:background .3s ease, backdrop-filter .3s ease;
}
.header__inner{
  width:100%; max-width:var(--maxw); margin:0 auto;
  display:flex; align-items:center; gap:clamp(10px,1.6vw,24px);
  min-height:88px;
  border-bottom:1px solid rgba(255,255,255,.22);
}
#header.is-stuck{
  position:fixed;
  background:rgba(11,11,12,.82);
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
}
#header.header--common {
    background: rgba(250, 246, 244, .94);
}
@media (min-width:901px){
.header.is-stuck{animation:slideDown .35s ease both}
}
@media (max-width:900px){
.header.is-stuck{
    background:rgba(11,11,12,.95);
    backdrop-filter:none; -webkit-backdrop-filter:none;
    will-change:transform; contain:layout paint;
  }
}
.header.is-stuck .header__inner{min-height:70px; border-bottom-color:transparent}
.brand{display:flex; align-items:center; gap:clamp(12px,1.2vw,20px); flex:0 0 auto}
.brand__logo{width:auto; height:34px; flex:0 0 auto}
.brand__div{width:1px; height:38px; background:rgba(255,255,255,.28); flex:0 0 auto}
.brand__descr{
  font-size:14px; line-height:1.32; color:#fff; font-weight:400;
  white-space:nowrap;
}
.nav{margin-left:auto}
.nav__list{display:flex; align-items:center; gap:8px}
.nav__link{
  display:inline-flex; align-items:center; gap:8px;
  height:44px; padding:0 18px; border-radius:0;
  font-size:14.5px; font-weight:400; color:#fff; white-space:nowrap;
  background:var(--pill);
  transition:background .25s ease, color .25s ease;
}
.nav__link i{
  width:5px; height:5px; border-radius:50%; background:rgba(255,255,255,.55);
  flex:0 0 auto; transition:background .25s ease;
}
.nav__link:hover{background:var(--pill-hover)}
.nav__link:hover i{background:var(--accent-hi)}
.header__actions{display:flex; align-items:center; gap:8px; flex:0 0 auto}
.icon-btn{
  width:46px; height:46px; display:grid; place-items:center; border-radius:0;
  background:var(--pill);
  transition:background .25s ease;
}
.icon-btn svg,.icon-btn img{width:21px; height:21px; object-fit:contain}
.icon-btn img{filter:brightness(0)}
.icon-btn:hover{background:var(--pill-hover)}
.phone{
  display:inline-flex; align-items:center; gap:9px;
  height:44px; padding:0 18px; border-radius:0;
  background:var(--pill);
  transition:background .25s ease;
}
.phone:hover{background:var(--pill-hover)}
.phone__num{font-size:14.5px; font-weight:600; white-space:nowrap; letter-spacing:-.02em}
.phone__label{display:none; font-size:13.5px; font-weight:600; white-space:nowrap}
.phone__dot{
  position:relative; width:8px; height:8px; border-radius:50%;
  background:var(--online); flex:0 0 auto;
}
.phone__dot::after{
  content:''; position:absolute; inset:0; border-radius:50%;
  background:var(--online); animation:ping 2s cubic-bezier(0,0,.2,1) infinite;
}
.burger{
  display:none; width:44px; height:44px; border-radius:0;
  background:var(--pill); position:relative;
}
.burger span{
  position:absolute; left:50%; width:18px; height:1.6px; background:#fff; border-radius:2px;
  transform:translateX(-50%); transition:transform .3s ease, opacity .2s ease, top .3s ease;
}
.burger span:nth-child(1){top:16px}
.burger span:nth-child(2){top:21.2px}
.burger span:nth-child(3){top:26.4px}
.burger.is-open span:nth-child(1){top:21.2px; transform:translateX(-50%) rotate(45deg)}
.burger.is-open span:nth-child(2){opacity:0}
.burger.is-open span:nth-child(3){top:21.2px; transform:translateX(-50%) rotate(-45deg)}
.header:not(.is-stuck){background:transparent}
.header:not(.is-stuck) .header__inner{border-bottom-color:transparent}
.header:not(.is-stuck) .brand__logo{content:url('../img/icons/logo-darsy-dark.png')}
.header:not(.is-stuck) .brand__descr{color:#2f282c}
.header:not(.is-stuck) .brand__div{background:rgba(27,20,24,.20)}
.header:not(.is-stuck) .nav__link,
.header:not(.is-stuck) .icon-btn,
.header:not(.is-stuck) .phone,
.header:not(.is-stuck) .burger{
  background:rgba(255,255,255,.32);
  color:#1b1418;
  box-shadow:none;
  backdrop-filter:blur(20px) saturate(1.08);
  -webkit-backdrop-filter:blur(20px) saturate(1.08);
}
.header:not(.is-stuck) .nav__link:hover,
.header:not(.is-stuck) .icon-btn:hover,
.header:not(.is-stuck) .phone:hover{background:rgba(255,255,255,.44)}
.header:not(.is-stuck) .nav__link i{background:#d99ab0}
.header:not(.is-stuck) .phone__num{color:#1b1418}
.header:not(.is-stuck) .burger span{background:#1b1418}
.header.is-stuck .icon-btn img{filter:brightness(0) invert(1)}
.mmenu{
  position:fixed; inset:0; z-index:55;
  background:rgba(8,8,9,.95);
  backdrop-filter:blur(22px); -webkit-backdrop-filter:blur(22px);
  display:flex; align-items:flex-end; opacity:0; transition:opacity .3s ease;
}
.mmenu[hidden]{display:none}
.mmenu.is-open{opacity:1}
.mmenu__panel{position:relative;
  width:100%; padding:96px var(--pad-x) calc(24px + env(safe-area-inset-bottom));
  display:flex; flex-direction:column; height:100%; justify-content:space-between;
  overflow-y:auto; -webkit-overflow-scrolling:touch;
}
body.menu-open .header{opacity:0; pointer-events:none; transition:opacity .2s ease}
.mmenu__close{
  position:absolute; top:16px; right:calc(var(--pad-x) - 4px); z-index:3;
  width:46px; height:46px; display:grid; place-items:center;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14);
  color:#fff; cursor:pointer;
  transition:background .25s ease, transform .25s ease;
}
.mmenu__close:hover{background:rgba(255,255,255,.16); transform:rotate(90deg)}
.mmenu__close svg{width:15px; height:15px; fill:currentColor}
.mmenu__list{display:flex; flex-direction:column; gap:2px}
.mmenu__list a{
  display:flex; align-items:baseline; gap:14px;
  font-family:var(--f-head); font-size:clamp(22px,6.2vw,30px); line-height:1.35;
  padding:9px 0; border-bottom:1px solid rgba(255,255,255,.08);
  transform:translateY(14px); opacity:0;
}
.mmenu.is-open .mmenu__list a{
  transform:none; opacity:1;
  transition:transform .45s cubic-bezier(.2,.7,.3,1), opacity .45s ease;
}
.mmenu.is-open li:nth-child(1) a{transition-delay:.05s}
.mmenu.is-open li:nth-child(2) a{transition-delay:.09s}
.mmenu.is-open li:nth-child(3) a{transition-delay:.13s}
.mmenu.is-open li:nth-child(4) a{transition-delay:.17s}
.mmenu.is-open li:nth-child(5) a{transition-delay:.21s}
.mmenu.is-open li:nth-child(6) a{transition-delay:.25s}
.mmenu.is-open li:nth-child(7) a{transition-delay:.29s}
.mmenu.is-open li:nth-child(8) a{transition-delay:.33s}
.mmenu__list span{
  font-family:var(--f-body); font-size:11px; color:var(--accent-hi);
  letter-spacing:.1em; flex:0 0 auto;
}
.mmenu__foot{display:flex; flex-direction:column; gap:10px; padding-top:22px}
.mmenu__note{margin:4px 0 0; font-size:12px; color:var(--muted-2); text-align:center}
.mmenu .btn{
  display:inline-flex; align-items:center; justify-content:center; gap:12px;
  height:clamp(50px,3.4vw,60px); padding:0 clamp(24px,2vw,34px); border-radius:0;
  font-family:var(--f-body); font-size:15px; font-weight:400; letter-spacing:-.03em;
  white-space:nowrap; border:0;
  transition:background .25s ease, color .25s ease, transform .2s ease;
}
.mmenu .btn__ico{width:18px; height:18px; fill:currentColor; flex:0 0 auto}
.mmenu .btn--primary{background:var(--accent-grad); color:var(--accent-ink)}
.mmenu .btn--primary:hover{background:var(--accent-grad-hi)}
.mmenu .btn--light{background:#fff; color:#101012}
.mmenu .btn--light:hover{background:rgba(255,255,255,.88)}
.mmenu .btn--ghost{background:rgba(255,255,255,.08); color:#fff}
.mmenu .btn--ghost:hover{background:rgba(255,255,255,.15)}
.mmenu .btn--block{width:100%; height:54px; border-radius:0}
@media (max-width:1700px){
.nav__list{gap:6px}
.nav__link{padding:0 13px; font-size:13.5px; gap:7px}
.header__actions{gap:6px}
.phone{padding:0 14px}
.phone__num{font-size:13.5px}
.brand__descr{font-size:13px}
}
@media (max-width:1440px){
.brand{gap:12px}
.brand__descr{font-size:13.5px; line-height:1.28}
.nav__list{gap:4px}
.nav__link{height:40px; padding:0 10px; font-size:14px; gap:6px}
.nav__link i{width:4px; height:4px}
.icon-btn{width:40px; height:40px}
.phone{height:40px; padding:0 12px}
.phone__num{font-size:14px}
}
@media (max-width:1560px){
.nav{display:none}
.burger{display:block}
.header__actions{margin-left:auto}
.brand__descr,.brand__div{display:block}
}
@media (max-width:900px){
.header__inner{min-height:76px}
}
@media (max-width:720px){
.header__inner{min-height:64px; gap:10px}
.brand{padding:8px 0}
.brand__logo{height:28px}
.brand__descr,.brand__div{display:none}
.icon-btn{display:none}
.phone{padding:0 14px; height:44px}
.phone__num{display:none}
.phone__label{display:inline}
}

/* --- anim.css --- */
.nav__link,.icon-btn,.phone{transition:background .25s ease, color .25s ease, transform .25s ease}
.nav__link:hover,.icon-btn:hover,.phone:hover{transform:translateY(-1px)}
.mmenu .btn{will-change:transform}
@media (prefers-reduced-motion:reduce){
.nav__link:hover,.icon-btn:hover,.phone:hover{transform:none}
}

/* --- light.css --- */
#header.is-stuck{
  background:rgba(250,246,244,.94);
  backdrop-filter:none; -webkit-backdrop-filter:none;
  box-shadow:0 1px 0 var(--l-line), 0 18px 40px -34px rgba(70,35,48,.5);
}
.header.is-stuck .header__inner{border-bottom-color:transparent}
.header.is-stuck .brand__logo{content:url('../img/icons/logo-darsy-dark.png')}
.header.is-stuck .brand__descr{color:var(--l-ink-2)}
.header.is-stuck .brand__div{background:var(--l-line)}
.header.is-stuck .nav__link{
  background:rgba(255,255,255,.58); color:var(--l-ink); box-shadow:none;
  backdrop-filter:blur(20px) saturate(1.08); -webkit-backdrop-filter:blur(20px) saturate(1.08);
}
.header.is-stuck .nav__link i{background:var(--l-rose-soft)}
.header.is-stuck .nav__link:hover{background:rgba(255,255,255,.78); box-shadow:none}
.header.is-stuck .icon-btn,
.header.is-stuck .phone,
.header.is-stuck .burger{
  background:rgba(255,255,255,.58); color:var(--l-ink); box-shadow:none;
  backdrop-filter:blur(20px) saturate(1.08); -webkit-backdrop-filter:blur(20px) saturate(1.08);
}
.header.is-stuck .icon-btn img{filter:brightness(0)}
.header.is-stuck .phone__num{color:var(--l-ink)}
.header.is-stuck .burger span{background:var(--l-ink)}
.mmenu{background:rgba(250,246,244,.6)}
.mmenu__panel{background:var(--l-paper); backdrop-filter:none; -webkit-backdrop-filter:none}
.mmenu__list a{color:var(--l-ink); border-bottom-color:var(--l-line)}
.mmenu__list span{color:var(--l-ink-3)}
.mmenu__note{color:var(--l-ink-3)}
.mmenu__close{background:#FFF; border-color:var(--l-line); color:var(--l-ink)}
.mmenu__close:hover{background:#FCF6F7}
.mmenu .btn--ghost{background:#FFF; color:var(--l-ink); box-shadow:inset 0 0 0 1px var(--l-line)}
.mmenu .btn--light{background:var(--l-ink); color:#FFF}

/* --- rounding.css --- */
.header .icon-btn img.messenger-logo{filter:none}
.header .icon-btn[href*="t.me"]{color:#229ED9}
.nav__link,
.icon-btn,
.phone,
.burger,
.mmenu__close,
.mmenu .btn{
  border-radius:var(--ui-radius);
}

/* --- navigation-blog.css --- */
.header,.header.is-stuck{overflow:visible; contain:none}
.brand__logo-link{display:flex; flex:none}
.brand__text{display:flex; flex-direction:column; gap:3px}
.city-select{position:relative; color:#44363e; font-size:13px}
@media (min-width:1800px){
.brand__text{flex-direction:row; align-items:center; gap:24px}
.city-select--header{flex:none}
}
.city-select summary,.header-drop summary,.nav-nested summary,.mobile-drop summary{list-style:none; cursor:pointer}
.city-select summary::-webkit-details-marker,.header-drop summary::-webkit-details-marker,.nav-nested summary::-webkit-details-marker,.mobile-drop summary::-webkit-details-marker{display:none}
.city-select>summary{display:flex; align-items:center; gap:5px; width:max-content; min-height:22px}
.city-select svg,.header-drop svg,.mobile-drop svg{width:14px; height:14px; flex:none}
.city-select__panel{position:absolute; top:100%; left:0; z-index:10; min-width:190px; padding:10px; border:1px solid #e5d9de; border-radius:10px; background:#fff; box-shadow:0 10px 30px #2d14231a}
.city-select__panel a{display:block; padding:8px; white-space:nowrap}
.city-select__panel a:hover{color:#a15e74}
.header-drop{position:relative}
.header-drop[open]>summary{background:#f7e5ec!important}
.header-drop>.drop-panel{position:absolute; top:calc(100% + 8px); left:0; width:290px; z-index:10; padding:10px; border:1px solid #e5d9de; border-radius:12px; background:#fff; color:#34282f; box-shadow:0 16px 45px #2d14232b}
.drop-list{list-style:none; padding:0; margin:0}
.drop-list a,.drop-all,.nav-nested>summary{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; border-radius:7px; font:inherit; font-size:14px; line-height:1.45; text-decoration:none}
.drop-list a:hover,.drop-all:hover,.nav-nested>summary:hover{background:#faf0f4; color:#a15e74}
.drop-all{border-bottom:1px solid #eadde3; border-radius:0; margin-bottom:4px; font-weight:600}
.nav-nested>.drop-list{margin:4px 0 8px 12px; padding-left:6px; border-left:1px solid #e5cbd5}
.header-drop .nav-nested{position:relative}
.header-drop .nav-nested>.drop-list{position:absolute; top:-10px; left:100%; width:270px; max-height:calc(100vh - 170px); overflow-y:auto; margin:0; padding:10px; border:1px solid #e5d9de; border-radius:12px; background:#fff; box-shadow:0 16px 45px #2d14232b}
.nav-nested[open]>summary svg,.header-drop[open]>summary svg,.city-select[open]>summary svg{transform:rotate(180deg)}
.header-drop summary:focus-visible,.city-select summary:focus-visible,.mobile-drop summary:focus-visible,.drop-list a:focus-visible{outline:2px solid #ad667d; outline-offset:2px}
.mobile-drop__summary{display:flex; align-items:center; gap:14px; padding:9px 0; font-family:var(--f-head); font-size:clamp(22px,6.2vw,30px); border-bottom:1px solid #e5d9de; color:#34282f}
.mobile-drop__summary>svg{margin-left:auto; width:18px; height:18px}
.mmenu .drop-panel{padding:8px 0 12px 20px}
.mmenu{background:#FAF6F4}
.mmenu .drop-panel a,.mmenu .nav-nested>summary{opacity:1; transform:none; font-family:var(--f-body); font-size:15px; padding:10px; border:0; color:#51424a; transition:none}
.mmenu .nav-nested>summary svg{width:14px; height:14px}
.city-select--mobile{align-self:flex-start; flex:none; margin-bottom:20px; font-size:17px}
.city-select--mobile .city-select__panel{position:static; margin-top:6px; box-shadow:none}
.mmenu__panel>nav{flex:none}
@media (max-width:720px){
.brand{flex-direction:column; align-items:flex-start; gap:0; padding:5px 0}
.brand__logo{height:24px}
.brand__text{gap:0}
.city-select--header{font-size:11px}
.city-select--header>summary{min-height:18px}
.header__inner{gap:8px}
.header__actions{gap:6px}
.phone{padding-inline:10px}
.mmenu__panel{padding-top:76px; justify-content:flex-start}
}
