/* Косметика: «туалетный столик» — рутина ухода по шагам */
.vanity { --ink:var(--text-main); --muted:var(--text-muted); --line:var(--border-color); background:#ffffff; color:var(--ink); }
.vanity-hero { max-width:1200px; margin:0 auto; padding:64px 24px 40px; display:flex; align-items:flex-end; justify-content:space-between; gap:32px; }
.eyebrow { margin-bottom:12px; font-size:15px; font-weight:600; color:var(--primary-color); }
.vanity h1 { font-family:Georgia,"Times New Roman",serif; font-size:56px; font-weight:400; line-height:1.02; letter-spacing:-1.5px; margin-bottom:16px; color:var(--ink); }
.vanity h1 em { color:var(--primary-color); }
.vanity-note { max-width:520px; font-size:16px; line-height:1.65; color:var(--muted); }
.arches { display:flex; align-items:flex-end; gap:12px; flex:none; }
.arches i { display:block; width:78px; border-radius:60px 60px 10px 10px; }
.arches i:nth-child(1){ height:120px; background:#fde8ee; } .arches i:nth-child(2){ height:168px; background:#ffe9dc; } .arches i:nth-child(3){ height:96px; background:#e5f1e6; }
.vanity-body { max-width:1200px; margin:0 auto; padding:8px 24px 80px; display:grid; grid-template-columns:230px 1fr; gap:44px; align-items:start; }

.routine { position:sticky; top:20px; display:flex; flex-direction:column; gap:2px; padding-left:2px; }
.routine::before { content:""; position:absolute; left:19px; top:34px; bottom:30px; width:2px; background:var(--line); }
.step { position:relative; display:flex; align-items:center; gap:14px; padding:8px 10px 8px 0; border:0; background:none; font:inherit; font-size:16px; font-weight:600; text-align:left; color:var(--muted); cursor:pointer; }
.step b { position:relative; display:grid; place-items:center; width:38px; height:38px; flex:none; border-radius:50%; background:#fff; border:2px solid var(--line); font-size:14px; color:var(--muted); }
.step small { margin-left:auto; font-size:13px; font-weight:500; opacity:.7; }
.step:hover { color:var(--ink); } .step:hover b { border-color:var(--primary-color); }
.step.is-active { color:var(--ink); } .step.is-active b { background:var(--primary-color); border-color:var(--primary-color); color:#fff; }

.vtools { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-bottom:22px; }
.vtools p { font-family:Georgia,serif; font-size:22px; }
.vfind { width:240px; max-width:100%; padding:10px 16px; border:1px solid var(--line); border-radius:999px; font:inherit; font-size:15px; background:#fff; }
.vfind:focus { outline:none; border-color:var(--primary-color); box-shadow:0 0 0 3px rgba(0,181,239,.15); }
.vgrid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.piece { display:flex; flex-direction:column; }
.piece[hidden] { display:none; }
.arch { position:relative; display:flex; align-items:center; justify-content:center; height:290px; padding:0; border:0; border-radius:150px 150px 18px 18px; background:var(--tone); overflow:hidden; }
.arch::after { content:attr(data-no); position:absolute; left:50%; bottom:14px; transform:translateX(-50%); padding:3px 12px; border-radius:999px; background:#fff; font-size:12px; font-weight:700; color:var(--primary-color); }
.arch img { width:100%; height:100%; max-width:100%; max-height:100%; object-fit:cover; filter:none; }
.arch .glyph { font-size:72px; line-height:1; margin-bottom:14px; }
button.arch { cursor:zoom-in; width:100%; }
.pbody { padding:16px 6px 0; display:flex; flex-direction:column; flex:1; }
.pstep { margin-bottom:6px; font-size:14px; font-weight:600; color:var(--primary-color); }
.piece h3 { font-family:Georgia,serif; font-size:23px; font-weight:400; line-height:1.2; margin-bottom:8px; }
.piece p.short { flex:1; margin-bottom:16px; font-size:15px; line-height:1.55; color:var(--muted); }
.pmore { align-self:flex-start; padding:9px 20px; border:1.5px solid var(--primary-color); border-radius:999px; background:transparent; font:inherit; font-size:14px; font-weight:700; color:var(--primary-color); cursor:pointer; }
.pmore:hover, .pmore:focus-visible { background:var(--primary-color); color:#fff; }
.vnone { padding:48px 0; text-align:center; color:var(--muted); } .vnone[hidden]{ display:none; }

.t0{--tone:#fde8ee} .t1{--tone:#ffe9dc} .t2{--tone:#e5f1e6} .t3{--tone:#ece6f7} .t4{--tone:#f6ecd9} .t5{--tone:#e2f1f8}

.vsheet { display:grid; grid-template-columns:210px 1fr; gap:26px; align-items:start; }
.vsheet .arch { height:270px; border-radius:105px 105px 16px 16px; }
.vsheet h2 { font-family:Georgia,serif; font-weight:400; font-size:28px; padding-right:34px; margin-bottom:14px; }
.vfacts { display:grid; grid-template-columns:130px 1fr; gap:10px 14px; margin-bottom:16px; font-size:15px; line-height:1.55; }
.vfacts dt { font-weight:700; } .vfacts dd { margin:0; color:var(--muted); }
.vfine { padding:12px 14px; margin-bottom:14px; background:#f3f7fa; border-radius:12px; font-size:13px; color:var(--muted); }

@media (max-width:900px){ .vgrid{ grid-template-columns:repeat(2,1fr); } .arches{ display:none; } .vanity h1{ font-size:44px; } }
@media (max-width:700px){
  .vanity-hero{ padding:40px 16px 24px; } .vanity h1{ font-size:38px; }
  .vanity-body{ grid-template-columns:1fr; gap:22px; padding:0 16px 56px; }
  .routine{ position:static; flex-direction:row; overflow-x:auto; gap:6px; padding:0 0 6px; } .routine::before{ display:none; }
  .step{ flex:none; padding:6px 14px 6px 6px; border:1px solid var(--line); border-radius:999px; background:#fff; font-size:14px; white-space:nowrap; }
  .step b{ width:28px; height:28px; font-size:12px; } .step small{ display:none; }
  .vgrid{ grid-template-columns:1fr; } .arch{ height:300px; }
  .vsheet{ grid-template-columns:1fr; } .vfacts{ grid-template-columns:1fr; gap:2px; } .vfacts dd{ margin-bottom:10px; }
}

/* Карточка «в разработке» */
.piece.is-soon { border-style: dashed; background: #fafbfc; }
.piece.is-soon .arch { border: 1.5px dashed rgba(31,45,61,.18); }
.piece.is-soon .glyph { opacity: .55; }
.piece.is-soon h3 { color: var(--text-muted); }
.wip { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 7px 14px; border-radius: 999px; background: #fff4d6; color: #8a6100; font-size: 13px; font-weight: 700; }
.wip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #f0a020; }
.piece.is-soon .arch::after { content: "Скоро"; color: #8a6100; }

/* Окно «Подробнее»: шире, фото слева вертикальной лентой */
.article-modal-wrapper.wide { max-width: 1080px; }
.vsheet { grid-template-columns: auto 1fr; gap: 34px; }
.vmedia { display: flex; align-items: flex-start; gap: 14px; position: sticky; top: 30px; }
.vsheet .arch { flex: none; width: 230px; height: 290px; border-radius: 115px 115px 16px 16px; }
.vgal { display: flex; flex-direction: column; gap: 10px; flex: none; width: 92px; }
.vgal:empty { display: none; }
.vthumb { flex: none; width: 92px; height: 92px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #f3f7fa; cursor: zoom-in; }
.vthumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vfacts { grid-template-columns: 170px 1fr; }
.vsheet > *, .vmedia, .vgal { min-width: 0; }
.article-modal-close { z-index: 3; }
@media (max-width: 860px) {
  .vsheet { grid-template-columns: 1fr; gap: 20px; }
  .vmedia { position: static; flex-direction: column-reverse; width: 100%; }
  .vsheet .arch { width: 100%; height: 300px; }
  .vgal { flex-direction: row; width: 100%; overflow-x: auto; }
}
@media (max-width: 700px) { .vfacts { grid-template-columns: 1fr; } }
