@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600&display=swap');
:root{--ink:#252421;--muted:#77756f;--paper:#f8f7f3;--line:#e6e3dc;--pink:#6c735d;--purple:#6c735d}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.6 'DM Sans',Arial,sans-serif}a{color:inherit;text-decoration:none}.site-header{min-height:62px;padding:10px 4.5%;background:#f0eee8;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:22px}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;color:#fff;background:var(--ink);font-family:'Playfair Display',serif}.site-header nav{display:flex;gap:26px;color:#62616b;font-weight:600}.site-header nav a:hover{color:var(--pink)}.container{width:min(1200px,92%);margin:0 auto}.section{padding:34px 0 58px}.hero{margin:28px 0 44px;display:grid;grid-template-columns:1fr 1fr;min-height:340px;border-radius:2px;overflow:hidden;background:#eeece5}.hero>div:first-child{padding:45px;align-self:center}.eyebrow{font-size:12px;letter-spacing:2px;color:#8b6a85;font-weight:700}.hero h1{font:600 clamp(34px,4vw,54px)/1.12 'Playfair Display',serif;margin:14px 0}.hero p{color:#68646a}.hero-photo{background:url('https://images.unsplash.com/photo-1539109136881-3be0616acf4b?auto=format&fit=crop&w=1200&q=85') center/cover}.button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:2px;padding:13px 21px;color:#fff;background:var(--ink);font-weight:700;cursor:pointer;font:inherit;font-weight:700}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.section-heading h2,h2{font:600 30px 'Playfair Display',serif;margin:0}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.product-card,.article-card{background:#fff;border:1px solid var(--line);border-radius:2px;overflow:hidden;transition:transform .18s}.product-card:hover,.article-card:hover{transform:translateY(-3px)}.product-card>img{display:block;width:100%;aspect-ratio:4/4.5;object-fit:cover;background:#eee}.product-card-body{padding:14px}.product-card h3{font-size:16px;line-height:1.35;margin:5px 0 9px}.muted{font-size:12px;color:var(--muted)}.product-price{font-size:18px}.ad-mini{display:none}.card-link,.read-more{display:block;margin-top:8px;font-weight:700;font-size:13px;color:#6c735d}.article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.article-card img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}.article-body{padding:18px}.article-body h3{font:600 21px/1.3 'Playfair Display',serif;margin:8px 0}.article-body p{color:var(--muted);margin:0}.image-placeholder{display:grid;place-items:center;aspect-ratio:4/4.5;background:linear-gradient(135deg,#ece4ed,#d9d1d8);font:600 24px 'Playfair Display',serif;color:#9a8c9b}.article-card .image-placeholder{aspect-ratio:16/10}.breadcrumbs{font-size:13px;color:var(--muted);margin:0 0 28px}.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start}.detail-image{position:relative;border-radius:2px;overflow:hidden;background:#eeece5}.detail-image img{display:block;width:100%;max-height:720px;aspect-ratio:4/5;object-fit:cover}.detail-image .image-placeholder{aspect-ratio:4/5}.image-category{position:absolute;left:16px;top:16px;background:#fffde8;border-radius:2px;padding:7px 14px;font-size:13px;font-weight:600}.detail-info h1{font-size:clamp(28px,3.2vw,40px);line-height:1.15;margin:0 0 14px}.price-row{display:flex;align-items:center;gap:14px}.price-row strong{font-size:29px}.stock{background:#dcf8e9;color:#218452;padding:4px 10px;border-radius:20px;font-size:12px}.description{font-size:17px;color:#64616a;line-height:1.75;margin:22px 0 34px}.shop-label{display:flex;align-items:center;gap:12px;margin-bottom:14px}.shop-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:#f4e5ff;color:#9c1ce0;font-size:20px}.shop-label small{display:block;color:var(--muted)}.shop-button{width:100%;font-size:16px;margin-bottom:22px}.ad-disclosure{border:1px solid #f0df78;background:#fffbea;border-radius:2px;padding:16px;color:#655c35;font-size:13px}.ad-disclosure strong{font-size:14px}.ad-disclosure p{margin:7px 0 0}.ad-disclosure .erid{font-family:monospace}.small-note{font-size:12px;color:var(--muted);margin-top:16px}.article-page{max-width:850px}.article-cover{width:100%;max-height:470px;object-fit:cover;border-radius:16px}.article-page h1{font:600 clamp(32px,4vw,46px)/1.2 'Playfair Display',serif}.lead{font-size:19px;color:var(--muted)}.article-content{font-size:17px;line-height:1.9}.filters{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0 26px}.filters a{padding:8px 14px;border:1px solid var(--line);border-radius:2px;background:#fff}.filters a.active{background:var(--ink);color:#fff}.site-footer{background:#222128;color:#fff;margin-top:30px}.footer-inner{width:min(1200px,92%);margin:auto;padding:28px 0;display:flex;align-items:center;gap:20px;flex-wrap:wrap}.footer-brand{font:600 25px 'Playfair Display',serif}.footer-inner>span,.footer-note{color:#c6c2ca;font-size:12px}.footer-note{margin-left:auto}.footer-inner small{color:#b4b0b9}
.admin-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.admin-top h1{margin:0}.admin-actions{margin:0 0 20px}.admin-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.admin-card{display:flex;flex-direction:column;gap:6px;padding:24px;background:#fff;border:1px solid var(--line);border-radius:14px}.admin-card strong{font-size:34px}.admin-card b{color:#9823c8;margin-top:10px}.notice{background:#fffbea;border:1px solid #f1e7a6;padding:14px;border-radius:10px}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:12px}table{border-collapse:collapse;width:100%;min-width:760px}th,td{text-align:left;padding:12px;border-bottom:1px solid var(--line);vertical-align:middle}th{background:#f4f2f6;font-size:12px;color:#68646a}td{font-size:13px}.thumb{width:54px;height:58px;object-fit:cover;border-radius:6px}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.actions a{color:#8e1ac4;font-weight:600}.actions form{display:inline}.actions button{border:0;background:#eee8f2;border-radius:6px;padding:6px 8px;cursor:pointer}.actions .danger{background:#fff0f0;color:#a22}.admin-form{background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px;max-width:900px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}.admin-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}.admin-form input:not([type=checkbox]),.admin-form textarea{width:100%;border:1px solid #dcd8e1;border-radius:8px;padding:11px;font:inherit;background:#fff}.admin-form input[type=file]{padding:8px}.admin-form .full{grid-column:1/-1}.admin-form .check-label{display:flex;flex-direction:row;align-items:center}.edit-preview{max-width:200px;max-height:200px;border-radius:8px;object-fit:cover}.cancel-link{margin-left:12px}.error{color:#b00020;background:#fff0f0;padding:10px;border-radius:8px}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:20px}.login-form{width:min(440px,100%);display:flex;flex-direction:column;gap:16px}.login-form h1{margin:0}.login-form label{font-size:14px}.login-form>a{font-size:13px;color:#8420b3}
@media(max-width:850px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-detail{grid-template-columns:1fr;gap:24px}.hero{grid-template-columns:1fr}.hero>div:first-child{padding:30px}.hero-photo{min-height:260px}.article-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-note{margin-left:0}}@media(max-width:520px){.site-header{padding:10px 4%;flex-wrap:wrap}.site-header nav{gap:14px;font-size:12px}.brand{font-size:19px}.product-grid,.article-grid,.admin-cards,.form-grid{grid-template-columns:1fr}.section-heading h2,h2{font-size:25px}.detail-info h1{font-size:29px}.description{font-size:15px}.footer-inner{gap:10px}.admin-form{padding:16px}}


/* FORMA editorial catalogue design */
:root{--ink:#262521;--muted:#77766f;--paper:#f8f7f3;--line:#e5e2db;--pink:#6d755f;--purple:#6d755f}
body{background:var(--paper);color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-size:15px}
.site-header{min-height:92px;padding:15px max(4%,calc((100% - 1314px)/2));background:#f0eee8;border-bottom:1px solid #e4e1da;display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;flex-direction:column;align-items:flex-start;gap:0;font-family:Georgia,'Times New Roman',serif;font-size:29px;letter-spacing:5px;font-weight:700;line-height:1.05}
.brand small{font:10px/1.8 Arial,sans-serif;letter-spacing:1.7px;color:#77766f}.brand-mark{display:none}
.site-header nav{display:flex;align-items:center;gap:10px;color:var(--ink);font-weight:400}.site-header nav a{padding:11px 16px;border:1px solid #c9c6bf;background:transparent}.site-header nav a:hover{background:#e8e5dd;color:var(--ink)}.site-header nav .nav-articles{display:none}
.container{width:min(1314px,calc(100% - 56px));margin:0 auto}.home-container{padding-top:0}
.hero{margin:0 0 44px;display:grid;grid-template-columns:1fr 1fr;gap:56px;min-height:420px;align-items:center;background:transparent;overflow:visible}.hero>div:first-child{padding:28px 0;align-self:center}
.eyebrow{font-size:11px;letter-spacing:3px;color:#737568;font-weight:700;margin:0 0 20px}.hero h1{font:500 clamp(42px,4.2vw,66px)/1.08 Georgia,'Times New Roman',serif;margin:0 0 20px;letter-spacing:-1px}
.hero-description,.hero-copy>p:not(.eyebrow){max-width:480px;color:#77766f;font-size:16px;line-height:1.55;margin:0 0 18px}
.hero-photo{min-height:330px;height:clamp(300px,26vw,390px);background-image:url('https://images.unsplash.com/photo-1539109136881-3be0616acf4b?auto=format&fit=crop&w=1400&q=85');background-position:center 35%;background-size:cover;border-radius:0}
.button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:1px;padding:13px 17px;color:#fff;background:#6d755f;font-weight:400;cursor:pointer;font:14px Arial,sans-serif}.button:hover{background:#555d49}
.catalog-tools{margin:0 0 24px}.home-filters{display:grid;grid-template-columns:minmax(240px,1fr) 230px 230px auto;gap:12px}.home-filters input,.home-filters select{min-width:0;width:100%;height:48px;padding:0 12px;border:1px solid #e0ddd6;border-radius:0;background:#fff;color:#252421;font:14px Arial,sans-serif}.filter-submit{height:48px;padding:0 18px;border:1px solid #d7d3ca;background:#f0eee8;color:#252421;cursor:pointer}
.section{padding:0 0 48px}.featured-section{padding-top:0}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.section-heading h2,h2{font:500 31px Georgia,'Times New Roman',serif;margin:0}
.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.product-card,.article-card{background:transparent;border:0;border-radius:0;overflow:hidden;transition:transform .18s}.product-card:hover,.article-card:hover{transform:translateY(-2px)}.product-card>img{display:block;width:100%;aspect-ratio:4/4.5;object-fit:cover;background:#e9e6df}.product-card-body{padding:12px 2px 14px}.product-card h3{font-size:15px;line-height:1.35;margin:5px 0 8px;font-weight:400}.product-price{font-size:16px;font-weight:600}.card-link,.read-more{display:block;margin-top:8px;font-weight:400;font-size:13px;color:#6d755f}
.image-placeholder{display:grid;place-items:center;aspect-ratio:4/4.5;background:#e9e6df;font:600 24px Georgia,serif;color:#a7a49a}.article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.article-card img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}.article-body{padding:15px 0}.article-body h3{font:500 21px/1.3 Georgia,serif;margin:8px 0}
.site-footer{background:#252421;color:#fff;margin-top:20px}.footer-inner{width:min(1314px,calc(100% - 56px));margin:auto;padding:28px 0;display:flex;align-items:center;gap:20px;flex-wrap:wrap}.footer-brand{font:700 25px Georgia,serif;letter-spacing:4px}.ad-mini{display:none!important}
@media(max-width:900px){.hero{gap:28px;min-height:350px}.hero h1{font-size:44px}.home-filters{grid-template-columns:1fr 1fr}.home-filters input{grid-column:1/-1}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.site-header{min-height:76px;padding:12px 5%}.brand{font-size:24px}.brand small{font-size:8px;letter-spacing:1px}.site-header nav .nav-catalog{padding:9px 12px}.container{width:90%}.hero{grid-template-columns:1fr;gap:16px;margin-bottom:28px}.hero>div:first-child{padding:28px 0 0}.hero h1{font-size:43px}.hero-photo{min-height:230px;height:230px;grid-row:1}.home-filters{grid-template-columns:1fr}.home-filters input{grid-column:auto}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.section-heading h2,h2{font-size:26px}.article-grid{grid-template-columns:1fr}.footer-inner{width:90%}}

.product-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.product-gallery img,.product-gallery video{display:block;width:100%;max-height:360px;aspect-ratio:4/5;object-fit:cover;background:#e9e6df}.media-preview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}.media-preview-grid img,.media-preview-grid video{width:100%;aspect-ratio:1;object-fit:cover;background:#e9e6df}.media-preview-grid small{display:block;color:#777;margin-top:4px}

/* Галерея товара: фотографии и видео аккуратно вписываются в макет */
.detail-image{overflow:hidden}
.detail-image .main-product-image{display:block;width:100%;height:auto;max-height:720px;aspect-ratio:4/5;object-fit:cover}
.product-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:8px;background:var(--paper)}
.product-gallery-item{min-width:0;overflow:hidden;background:#eeece5;aspect-ratio:4/5}
.product-gallery-item img,.product-gallery-item video{display:block;width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:cover}
.product-gallery-item video{background:#222;object-fit:contain}
.media-preview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:12px}
.media-preview-item{min-width:0;border:1px solid var(--line);border-radius:8px;padding:8px;background:#faf9f6;display:flex;flex-direction:column;gap:6px}
.media-preview-item img,.media-preview-item video{display:block;width:100%;height:140px;object-fit:contain;background:#eee}
.media-preview-item small{color:var(--muted)}
.media-delete{align-self:flex-start;border:0;border-radius:5px;padding:7px 10px;background:#fff0f0;color:#a22;cursor:pointer}
@media(max-width:650px){.product-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.media-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Интерактивная галерея: миниатюра меняет главное изображение */
.main-media-stage{width:100%;aspect-ratio:4/5;background:#eeece5;display:flex;align-items:center;justify-content:center;overflow:hidden}
.main-media-stage .main-product-image,.main-media-stage .main-product-video{display:block;width:100%;height:100%;max-height:780px;object-fit:contain;background:#eeece5}
.product-gallery-item{position:relative;display:block;width:100%;padding:0;border:2px solid transparent;cursor:pointer;background:#eeece5;aspect-ratio:4/5}
.product-gallery-item img,.product-gallery-item video{width:100%;height:100%;display:block;object-fit:cover}
.product-gallery-item.is-active{border-color:#6d755f;box-shadow:0 0 0 1px #6d755f}
.video-thumb{position:relative;display:block;width:100%;height:100%;overflow:hidden}
.video-thumb video{object-fit:cover}
.play-mark{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:rgba(30,30,30,.78);color:#fff;font-size:15px;padding-left:2px;pointer-events:none}
.product-gallery-item:focus-visible{outline:2px solid #6d755f;outline-offset:2px}
@media(max-width:650px){.product-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}}

/* Interactive product media gallery */
.product-detail .detail-image{overflow:hidden;min-width:0}
.main-media-stage{width:100%;background:#eeece5;display:flex;align-items:center;justify-content:center;min-height:240px;aspect-ratio:4/5;overflow:hidden}
.main-media-stage .main-product-image,.main-media-stage .main-product-video{display:block;width:100%;height:100%;max-height:720px;aspect-ratio:auto;object-fit:contain;background:#eeece5}
.main-media-stage .main-product-video{object-fit:contain}
.product-gallery{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:10px;background:var(--paper)}
.product-gallery-item{display:block;position:relative;min-width:0;padding:0;border:2px solid transparent;background:#eeece5;cursor:pointer;aspect-ratio:4/5;overflow:hidden}
.product-gallery-item img,.product-gallery-item video{display:block;width:100%;height:100%;object-fit:cover;aspect-ratio:auto;max-height:none}
.product-gallery-item.is-active{border-color:#6d755f}
.product-gallery-item:focus-visible{outline:2px solid #6d755f;outline-offset:2px}
.video-thumb{display:block;position:relative;width:100%;height:100%}.play-mark{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:rgba(0,0,0,.65);color:white;font-size:14px}
@media(max-width:850px){.main-media-stage{aspect-ratio:4/5}.product-gallery{grid-template-columns:repeat(5,minmax(0,1fr))}}

/* Rich-text editor and formatted article content */
.rich-editor { background:#fff; min-height:260px; color:#3e3028; }
.rich-editor .ql-editor { min-height:220px; font:inherit; line-height:1.75; }
.rich-editor .ql-toolbar.ql-snow, .rich-editor .ql-container.ql-snow { border-color:#ded3c8; }
.rich-content h1,.rich-content h2,.rich-content h3 { line-height:1.3; margin:1.4em 0 .65em; }
.rich-content h1 { font-size:2rem; }
.rich-content h2 { font-size:1.6rem; }
.rich-content h3 { font-size:1.25rem; }
.rich-content p { margin:0 0 1em; }
.rich-content ul,.rich-content ol { padding-left:1.5em; margin:0 0 1em; }
.rich-content blockquote { margin:1.2em 0; padding:.4em 1em; border-left:3px solid #9a735c; color:#715748; background:#f8f3ed; }
.rich-content a { color:#81563f; text-decoration:underline; }

/* Product gallery arrow navigation */
.main-media-stage{position:relative}
.gallery-arrow{position:absolute;z-index:3;top:50%;transform:translateY(-50%);width:42px;height:52px;border:0;border-radius:4px;background:rgba(255,255,255,.86);color:#332b26;font-size:34px;line-height:1;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.12)}
.gallery-arrow:hover{background:#fff}
.gallery-arrow-prev{left:10px}
.gallery-arrow-next{right:10px}
.gallery-arrow[hidden]{display:none}
