/* ═══════════════════════════════════════════════════════════
   Starlit — сторінка "Косметологічне обладнання" (новий дизайн).
   Підключається лише на template-equipment.php.
   Хедер/футер — у base.css.
════════════════════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--paper); color: var(--ink); line-height: 1.65; font-weight: 400; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
section { position: relative; }
h1, h2, h3 { font-weight: 300; line-height: 1.18; letter-spacing: .01em; color: var(--petrol); }
.reveal { opacity: 0; transform: translateY(34px); transition: all .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

.hero { background: var(--paper); padding: 170px 0 80px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -10%; left: 50%; transform: translateX(-50%); width: 900px; height: 560px;
    background: radial-gradient(ellipse at center, rgba(61,139,168,.1), transparent 62%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; max-width: 980px; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); text-transform: uppercase; letter-spacing: .03em; font-weight: 300;
    max-width: 22ch; margin: 0 auto 26px; opacity: 0; animation: rise .9s ease forwards .15s; }
.hero h1 b { font-weight: 600; color: var(--teal); }
.hero .lede { font-size: 1.12rem; max-width: 64ch; margin: 0 auto; color: var(--ink); font-weight: 300; opacity: 0; animation: rise .9s ease forwards .35s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.catnav { position: static; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.catnav .wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.catnav .lbl { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.catnav a { font-size: .84rem; font-weight: 500; letter-spacing: .04em; color: var(--petrol); text-decoration: none;
    padding: 9px 20px; border: 1px solid var(--line); border-radius: 30px; transition: all .3s ease; }
.catnav a:hover { background: var(--petrol); color: #fff; border-color: var(--petrol); }

.eq { padding: 90px 0; border-bottom: 1px solid var(--line); }
.eq:nth-child(even) { background: var(--warm); }
.eq-grid { display: grid; grid-template-columns: 1fr 1.04fr; gap: 56px; align-items: start; }
.eq-rev .eq-grid { direction: rtl; }
.eq-rev .eq-grid > * { direction: ltr; }
.eq-cat { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-bottom: 14px; }
.eq h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 10px; }
.eq h2 b { color: var(--teal); font-weight: 600; }
.eq h2 .tr { font-weight: 300; font-size: .62em; color: var(--teal); letter-spacing: .02em; white-space: nowrap; }
.eq-lead { font-size: 1.06rem; font-weight: 300; color: var(--ink); margin-bottom: 26px; max-width: 52ch; }
.eq-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.eq-meta .chip { background: var(--ice-soft); border: 1px solid var(--line); border-radius: 8px; padding: 14px 20px; flex: 1; min-width: 150px; }
.eq-meta .chip span { display: block; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-bottom: 5px; }
.eq-meta .chip b { font-size: .95rem; font-weight: 500; color: var(--petrol); }
.eq-sub { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--teal); margin-bottom: 14px; }
.eq-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; margin-bottom: 30px; }
.eq-list.one { grid-template-columns: 1fr; }
.eq-list li { position: relative; padding-left: 24px; font-size: .93rem; font-weight: 300; color: var(--ink); line-height: 1.45; }
.eq-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; background: var(--teal-light); border-radius: 50%; }
.eq-list li b { font-weight: 600; color: var(--petrol); }
.eq-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 16px 34px; border-radius: 46px;
    text-decoration: none; cursor: pointer; border: none; transition: all .3s ease; display: inline-block; font-family: var(--font); }
.btn-primary { background: var(--petrol); color: #fff; }
.btn-primary:hover { background: var(--petrol-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--petrol); border: 1px solid var(--petrol); }
.btn-ghost:hover { background: var(--petrol); color: #fff; }

.eq-media { position: sticky; top: 110px; }
.slider { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
    background: linear-gradient(160deg, #fff, var(--ice-soft)); aspect-ratio: 1/1; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 34px; opacity: 0; transition: opacity .5s ease; }
.slide.active { opacity: 1; }
.sl-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-top: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sl-caption .mname { font-size: 1.35rem; font-weight: 400; color: var(--petrol); text-transform: uppercase; letter-spacing: .05em; }
.sl-caption .mcount { font-size: .78rem; font-weight: 500; color: var(--teal); letter-spacing: .1em; }
.sl-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.sl-dots { display: flex; gap: 8px; }
.sl-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--line); cursor: pointer; transition: all .3s ease; padding: 0; }
.sl-dots button.on { background: var(--teal); transform: scale(1.25); }
.sl-arrows { display: flex; gap: 10px; }
.sl-arrows button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer;
    color: var(--petrol); font-size: 1.15rem; transition: all .3s ease; display: flex; align-items: center; justify-content: center; }
.sl-arrows button:hover { background: var(--petrol); color: #fff; border-color: var(--petrol); }

.trust { padding: 90px 0; background: linear-gradient(155deg, var(--petrol-deep), var(--petrol-mid)); color: #fff; text-align: center; position: relative; overflow: hidden; }
.trust::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 50% 30%, rgba(125,180,200,.18), transparent 62%); }
.trust .wrap { position: relative; z-index: 2; }
.trust h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); text-transform: uppercase; letter-spacing: .03em; font-weight: 300; margin-bottom: 14px; max-width: 26ch; margin-inline: auto; }
.trust h2 b { color: var(--teal-light); font-weight: 600; }
.trust p { color: rgba(255,255,255,.82); font-weight: 300; font-size: 1.05rem; max-width: 60ch; margin: 0 auto 36px; }
.trust .btn-primary { background: #fff; color: var(--petrol); }
.trust .btn-primary:hover { background: var(--ice); }

/* ─── DRAWER "Дізнатися ціну" ─── */
.ov { position: fixed; inset: 0; background: rgba(7,49,67,.45); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: all .35s ease; z-index: 2000; }
.ov.on { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 440px; max-width: 92vw; background: #fff; z-index: 2001;
    transform: translateX(100%); transition: transform .4s cubic-bezier(.2,.7,.2,1); padding: 42px 38px; overflow-y: auto; }
.drawer.on { transform: none; }
.drawer .x { position: absolute; top: 22px; right: 24px; background: none; border: none; font-size: 1.6rem; color: var(--petrol); cursor: pointer; line-height: 1; }
.drawer .eyebrow { font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 600; color: var(--teal); margin-bottom: 14px; }
.drawer h3 { font-size: 1.5rem; font-weight: 400; margin-bottom: 10px; }
.drawer .dsub { font-size: .95rem; font-weight: 300; color: var(--ink); opacity: .75; margin-bottom: 26px; }
.drawer label { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin: 18px 0 7px; }
.drawer input, .drawer select, .drawer textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px;
    font-family: var(--font); font-size: .95rem; color: var(--ink); background: var(--ice-soft); transition: border-color .3s ease; }
.drawer input:focus, .drawer select:focus, .drawer textarea:focus { outline: none; border-color: var(--teal); }
.drawer .btn { width: 100%; text-align: center; margin-top: 28px; }
.drawer .btn[disabled] { opacity: .6; cursor: wait; }
.drawer .form-error { font-size: .85rem; color: #c0392b; margin-top: 12px; display: none; }
.drawer .invalid { border-color: #c0392b; }
.drawer .field-msg {
    display: block; font-size: .78rem; font-weight: 400; letter-spacing: .02em;
    text-transform: none; color: #c0392b; margin-top: 6px;
}
.drawer .ok { display: none; text-align: center; padding: 30px 0; }
.drawer .ok .c { width: 64px; height: 64px; border-radius: 50%; background: var(--ice-soft); border: 2px solid var(--teal);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: var(--teal); font-size: 1.8rem; }

@media (max-width: 880px) {
    .wrap { padding: 0 22px; }
    .hero { padding: 130px 0 56px; }
    .eq-grid { grid-template-columns: 1fr; gap: 30px; }
    .eq-rev .eq-grid { direction: ltr; }
    .eq-list { grid-template-columns: 1fr; }
    .eq-media { position: static; }
    section.eq { padding: 60px 0; }
}
