/*
Theme Name: Sweet Black Dreams
Description: Авторская тема-лукбук для бренда Sweet Black Dreams. Авангардная одежда, коллекции и контакты.
Version: 1.2.0
Requires at least: 5.9
Requires PHP: 7.4
Author: Sweet Black Dreams
Text Domain: sweet-black-dreams
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
:root{--bg:#101010;--ink:#f4f2ee;--muted:#a9a7a3;--accent:#d9ff43;--line:#353535;--display:'Arial Black','Helvetica Neue',Arial,sans-serif;--body:Arial,Helvetica,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:82px}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--body);-webkit-font-smoothing:antialiased}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:5px}img{display:block;width:100%}h1,h2,p{margin:0}h1,h2{font-family:var(--display);font-weight:900;letter-spacing:-.075em;line-height:.89}h1 em,h2 em{font-style:normal;color:var(--accent)}.shell{width:min(1440px,calc(100% - 104px));margin:auto}.micro{font-family:monospace;font-size:11px;letter-spacing:.065em;font-weight:500;line-height:1.5}.header{position:sticky;top:0;background:#101010f5;z-index:10;border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}.header-inner{height:72px;display:flex;justify-content:space-between;align-items:center;gap:24px}.wordmark{font-size:16px;line-height:.9;letter-spacing:-.07em;font-weight:900;position:relative}.wordmark span{font-size:13px;color:var(--accent);margin-left:4px}.header nav{display:flex;gap:36px;font-size:13px}.header nav a:hover,.text-link:hover{color:var(--accent)}.header-cta{font-size:11px;font-weight:bold;letter-spacing:.08em;border:1px solid #676767;padding:12px 15px}.header-cta span{color:var(--accent);margin-left:12px}.menu-toggle{display:none}.hero{padding-top:22px;min-height:calc(100svh - 72px);display:flex;flex-direction:column;justify-content:space-between}.hero-top,.hero-bottom,.section-index{display:flex;justify-content:space-between;gap:15px;color:var(--muted)}.hero-layout{display:grid;grid-template-columns:1fr 1.05fr;gap:0;align-items:center;min-height:620px;padding:35px 0}.hero-copy{position:relative;z-index:2;padding:35px 0}.eyebrow{display:flex;align-items:center;gap:9px;font:11px monospace;letter-spacing:.09em;color:var(--muted);margin-bottom:26px}.eyebrow i{width:7px;height:7px;background:var(--accent);display:inline-block}.hero h1{font-size:clamp(72px,9vw,150px);position:relative;width:max-content}.hero-copy p{font-size:16px;line-height:1.6;max-width:385px;color:#c5c3c0;margin:28px 0}.primary{background:var(--accent);color:#101010;display:inline-flex;align-items:center;justify-content:space-between;gap:40px;padding:17px 20px;font-size:14px;font-weight:700;transition:background .2s,transform .2s}.primary:hover{background:#fff;transform:translateY(-2px)}.primary span{font-size:20px;line-height:1}.hero-visual{position:relative;min-width:0;background:#aaa;align-self:stretch;overflow:hidden}.hero-visual img{height:100%;position:absolute;object-fit:cover;object-position:50% 50%}.photo-tag{position:absolute;bottom:0;left:0;right:0;padding:13px 15px;background:#101010d9;color:#fff;display:flex;justify-content:space-between;gap:8px}.hero-bottom{padding:10px 0 23px}.hero-bottom a:hover{color:var(--accent)}.ticker{overflow:hidden;background:var(--accent);color:#101010;padding:13px 0}.ticker div{font-size:14px;letter-spacing:.17em;font-weight:900;white-space:nowrap;width:max-content;animation:marquee 35s linear infinite}.ticker b{margin:0 28px}@keyframes marquee{to{transform:translateX(-50%)}}.section{padding-top:80px;padding-bottom:100px}.section-index{padding-bottom:18px;border-bottom:1px solid var(--line);margin-bottom:44px}.about-layout{display:grid;grid-template-columns:.75fr 1fr;gap:10%;align-items:center}.about-image{max-width:425px}.about-image img{aspect-ratio:3/4;object-fit:contain;background:#eeedee}.image-caption{display:flex;justify-content:space-between;color:var(--muted);padding:12px 0}.about-copy h2{font-size:clamp(44px,6.2vw,100px);margin-bottom:30px}.about-copy p{max-width:570px;font-size:16px;line-height:1.65;color:var(--muted);margin:0 0 16px}.about-copy .lead{font-size:24px;line-height:1.3;color:var(--ink)}.text-link{display:inline-flex;gap:25px;align-items:center;border-bottom:1px solid currentColor;padding:8px 0;margin-top:12px;font-size:14px;font-weight:bold}.text-link span{font-size:19px;color:var(--accent)}.collection{background:#eae8e3;color:#141414}.collection .section-index{border-color:#bdbbb5;color:#555}.collection-title{display:flex;align-items:flex-end;justify-content:space-between;gap:25px;margin-bottom:43px}.collection-title h2{font-size:clamp(62px,10vw,145px)}.collection-title h2 em{color:#141414;-webkit-text-stroke:1px #141414; color:transparent}.collection-title p{line-height:1.5;color:#4f4f4b;font-size:15px;padding-bottom:5px}.filter-row{display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid #bdbbb5;padding-bottom:16px;margin-bottom:25px}.filters{display:flex;flex-wrap:wrap;gap:8px}.filters button{border:1px solid #b9b7b2;background:transparent;color:#171717;padding:10px 15px;font-size:13px;transition:.2s}.filters button:hover,.filters button.active{background:#141414;color:#fff;border-color:#141414}.filters button:focus-visible{outline-color:#111}.product-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:38px 20px}.product{grid-column:span 4;min-width:0;border:0;text-align:left;background:none;padding:0;color:#141414}.product.layout-wide{grid-column:span 6}.product.layout-solo{grid-column:4 / span 6}.product-image{position:relative;overflow:hidden;background:#d7d6d3;aspect-ratio:1/1.05}.product.layout-wide .product-image,.product.layout-solo .product-image{aspect-ratio:1.15}.product-image img{height:100%;object-fit:contain;transition:transform .5s; background:#e2e1de}.product:hover img{transform:scale(1.035)}.product-arrow{position:absolute;bottom:12px;right:12px;background:#141414;color:#fff;width:38px;height:38px;display:grid;place-items:center;font-size:21px;transition:background .2s,color .2s}.product:hover .product-arrow{background:var(--accent);color:#111}.product-meta{display:flex;justify-content:space-between;gap:10px;margin:12px 0 6px;color:#646460}.product-name{font-weight:800;font-size:clamp(17px,2vw,24px);letter-spacing:-.035em}.product-subtitle{font-size:13px;color:#555;margin-top:5px;line-height:1.4}.manifesto h2{font-size:clamp(45px,9.3vw,135px);margin:65px 0 25px}.manifesto p{font-size:20px;color:var(--muted);margin-bottom:25px}.manifesto{padding-bottom:120px}footer{background:#171717;padding:55px 0 22px}.footer-main{display:grid;grid-template-columns:1.2fr 1fr;gap:40px;align-items:end;padding:10px 0 60px}.footer-main h2{font-size:clamp(55px,9vw,125px)}.footer-main p{line-height:1.6;color:var(--muted);max-width:340px}.footer-main .text-link{overflow-wrap:anywhere}.footer-bottom{border-top:1px solid var(--line);padding-top:20px;display:flex;justify-content:space-between;color:var(--muted);gap:15px}dialog{border:1px solid #555;padding:0;background:#151515;color:var(--ink);width:min(920px,94vw);max-height:92dvh;overflow:auto}dialog::backdrop{background:#000c;backdrop-filter:blur(7px)}.dialog-inner{display:grid;grid-template-columns:1fr 1fr;position:relative}.dialog-image{background:#dededb;display:grid;place-items:center;min-height:380px}.dialog-image img{height:100%;max-height:75dvh;object-fit:contain}.dialog-copy{padding:58px 35px 30px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:24px}.dialog-copy h2{font-size:clamp(32px,5vw,58px);letter-spacing:-.05em;line-height:.98}.dialog-copy p{color:var(--muted);line-height:1.6}.close{position:absolute;right:12px;top:12px;background:#101010;color:#fff;border:1px solid #555;width:40px;height:40px;font-size:28px;z-index:2}.dialog-nav{display:flex;align-items:center;gap:17px;margin-top:15px}.dialog-nav button{background:transparent;color:#fff;border:1px solid #777;width:40px;height:38px;font-size:21px}.dialog-nav button:hover{background:var(--accent);color:#111}body.modal-open{overflow:hidden}
@media(max-width:1050px){.shell{width:calc(100% - 64px)}.hero-layout{min-height:540px}.hero h1{font-size:clamp(65px,10vw,120px)}.about-layout{gap:6%}.hero-visual img{object-fit:cover}.product-grid{gap:28px 15px}}@media(max-width:700px){html{scroll-padding-top:70px}.shell{width:calc(100% - 36px)}.header-inner{height:62px}.header-cta{display:none}.menu-toggle{display:grid;gap:6px;border:1px solid #555;padding:12px;background:none}.menu-toggle span{width:22px;height:1px;background:var(--ink)}.header nav{display:none;position:absolute;top:62px;left:0;right:0;background:#161616;padding:24px 18px;flex-direction:column;gap:0;border-bottom:1px solid #555}.header nav.open{display:flex}.header nav a{padding:16px 0;border-bottom:1px solid #333}.hero{min-height:auto;padding-top:16px}.hero-top span:last-child,.hero-bottom span:last-child{display:none}.hero-layout{display:flex;flex-direction:column;align-items:stretch;min-height:0;padding:18px 0}.hero-copy{padding:20px 0 28px}.hero h1{font-size:clamp(55px,14.5vw,100px);width:auto}.hero-copy p{font-size:15px;margin:20px 0}.eyebrow{margin-bottom:20px}.hero-visual{height:380px;max-height:105vw}.photo-tag{font-size:9px}.section{padding:50px 0 65px}.section-index{margin-bottom:28px;font-size:10px}.about-layout{display:flex;flex-direction:column;gap:26px;align-items:stretch}.about-copy{order:-1}.about-copy h2{font-size:clamp(44px,11vw,70px)}.about-copy .lead{font-size:21px}.about-image{max-width:100%}.about-image img{max-height:440px}.collection-title{display:block;margin-bottom:24px}.collection-title h2{font-size:clamp(60px,15vw,100px);margin-bottom:20px}.filter-row{align-items:flex-start;flex-direction:column}.filters{gap:6px}.filters button{padding:8px 10px;font-size:12px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 10px}.product,.product.layout-wide,.product.layout-solo{grid-column:span 1}.product.layout-wide .product-image,.product.layout-solo .product-image{aspect-ratio:1/1.05}.product-name{font-size:17px}.product-meta{font-size:9px}.product-subtitle{font-size:12px}.product-arrow{width:29px;height:29px;bottom:7px;right:7px;font-size:16px}.manifesto h2{font-size:clamp(35px,8.5vw,64px);margin-top:42px}.footer-main{grid-template-columns:1fr;gap:25px;padding-bottom:35px}.footer-main h2{font-size:clamp(60px,15vw,100px)}.footer-bottom{font-size:10px}.dialog-inner{grid-template-columns:1fr}.dialog-image{min-height:0;height: min(45dvh,350px)}.dialog-image img{max-height:100%}.dialog-copy{padding:22px;gap:16px}.dialog-copy h2{font-size:36px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* WordPress integration */
body.admin-bar .header{top:32px}body.admin-bar{scroll-padding-top:114px}.sbd-page{padding:80px 0;min-height:60vh}.sbd-page h1{font-size:clamp(36px,6vw,80px);line-height:1.04;margin-bottom:32px;overflow-wrap:anywhere}.sbd-content{max-width:900px;line-height:1.7}.sbd-content p,.sbd-content ul,.sbd-content ol,.sbd-content h2,.sbd-content h3{margin:0 0 1.2em}.sbd-content h2{line-height:1.1}.sbd-content a{text-decoration:underline}.sbd-content img{width:auto;max-width:100%;height:auto}.sbd-content article{margin-bottom:40px}.sbd-socials{display:flex;flex-wrap:wrap;gap:12px 22px;margin-top:18px}.sbd-socials a{border-bottom:1px solid var(--muted);padding-bottom:4px}.sbd-socials a:hover{color:var(--accent)}
@media(max-width:782px){body.admin-bar .header{top:46px}}@media(max-width:600px){body.admin-bar .header{top:0}}

/* Editable catalog */
.product-name,.product-subtitle,.product-meta{overflow-wrap:anywhere}.product-meta span:first-child{min-width:0}.product-meta span:last-child{flex-shrink:0}.product-image .sbd-no-photo{display:grid;place-items:center;height:100%;color:#555;font-size:12px}.sbd-empty{grid-column:1/-1;padding:35px 0;color:#555}.dialog-copy p{white-space:pre-line;overflow-wrap:anywhere}.dialog-copy h2{overflow-wrap:anywhere}.dialog-nav button:disabled{opacity:.35;cursor:default}
.product-meta span:first-child{text-transform:uppercase}.dialog-image img[hidden]{display:none}

/* Lead form */
button.primary{border:0;font:inherit;font-size:14px;font-weight:700;cursor:pointer;text-align:left}.sbd-general-lead{margin-top:20px;display:flex;width:fit-content}#sbd-lead-dialog{width:min(540px,94vw);max-height:92dvh;overflow:auto}#sbd-lead-dialog [hidden]{display:none!important}.sbd-lead-inner{position:relative;padding:38px 36px 34px}.sbd-lead-inner .eyebrow{margin-bottom:20px;padding-right:24px}.sbd-lead-inner h2{font-size:clamp(38px,7vw,58px);line-height:.96;letter-spacing:-.06em;margin-bottom:17px}.sbd-lead-intro,.sbd-lead-success p{color:var(--muted);font-size:15px;line-height:1.55;margin-bottom:20px}#sbd-lead-product{border-left:2px solid var(--accent);padding:10px 12px;background:#202020;font-size:14px;margin-bottom:18px;overflow-wrap:anywhere}#sbd-lead-form{display:grid;gap:14px}#sbd-lead-form>label{display:grid;gap:6px;color:var(--ink);font-size:13px;font-weight:600}#sbd-lead-form input:not([type=checkbox]),#sbd-lead-form textarea{width:100%;border:1px solid #494949;background:#202020;color:var(--ink);font:inherit;font-size:16px;padding:12px 13px;border-radius:0}#sbd-lead-form textarea{resize:vertical;min-height:74px}#sbd-lead-form input:focus,#sbd-lead-form textarea:focus{outline:1px solid var(--accent);border-color:var(--accent)}#sbd-lead-form .sbd-consent{display:flex;align-items:flex-start;gap:9px;color:var(--muted);font-size:12px;font-weight:400;line-height:1.5}.sbd-consent input{accent-color:var(--accent);flex:none;width:16px;height:16px;margin:2px 0 0}.sbd-consent a{text-decoration:underline}.sbd-optional{color:var(--muted);font-weight:400;display:inline}.sbd-lead-error{color:#ffb5a8;font-size:13px;line-height:1.4}.sbd-trap{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}#sbd-lead-form .primary{width:100%}#sbd-lead-form .primary:disabled{opacity:.6;cursor:wait;transform:none}.sbd-lead-success{padding:18px 0}.sbd-lead-success .primary{margin-top:12px}@media(max-width:700px){.sbd-lead-inner{padding:34px 20px 24px}#sbd-lead-form{gap:11px}#sbd-lead-dialog{max-height:94dvh}.sbd-lead-inner h2{font-size:40px}}
