/*
Theme Name: Carol&John
Description: Лёгкая тема Carol&John Concept Amenities (замена Enfold). Работает вместе с плагином Carol&John Core.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: carol
*/
:root{--bg:#fff;--text:#383838;--head:#222;--accent:#e0b13a;--hdr:#4a5155;--alt:#f8f8f8;--muted:#999;--socket:#b0b0b0;--line:#e1e1e1;--w:1210px}
*,*:before,*:after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:15px/1.65 'Lora',Georgia,serif}
a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}
img{max-width:100%;height:auto;vertical-align:middle}
h1,h2,h3,h4,h5,h6{font-family:'Lato',Helvetica,Arial,sans-serif;color:var(--head);font-weight:600;line-height:1.3;margin:0 0 .6em}
h1{font-size:34px}h2{font-size:28px}h3{font-size:20px}h4{font-size:18px}
p{margin:0 0 1em}
.cj-container{max-width:var(--w);margin:0 auto;padding:0 50px}
.cj-container:after{content:"";display:table;clear:both}
.screen-reader-text{position:absolute;left:-9999px}

/* шапка */
.cj-topbar{background:#262626;text-align:center}
.cj-menu{list-style:none;margin:0;padding:0;display:inline-flex;flex-wrap:wrap;justify-content:center}
.cj-menu li{border-left:1px solid #3a3a3a}.cj-menu li:last-child{border-right:1px solid #3a3a3a}
.cj-menu a{display:block;padding:0 22px;line-height:48px;color:#fff;font:600 13px 'Lato',sans-serif;letter-spacing:.3px}
.cj-menu a:hover,.cj-menu .current-menu-item>a{color:var(--accent);text-decoration:none}
.cj-menu-toggle{display:none;background:none;border:0;color:#fff;font:600 14px 'Lato',sans-serif;padding:14px;cursor:pointer;width:100%}
.cj-header{background-color:var(--hdr);background-image:radial-gradient(rgba(255,255,255,.07) 1px,transparent 1.4px);background-size:22px 22px;position:relative}
.cj-header .cj-container{height:140px;display:flex;align-items:center;justify-content:center}
.cj-logo img{max-height:110px;width:auto}
.cj-logo .cj-sitename{color:#fff;font:300 32px 'Lato',sans-serif}
.cj-social{position:absolute;right:50px;top:50%;transform:translateY(-50%);display:flex;gap:14px}
.cj-social a{color:#fff;font:13px 'Lato',sans-serif;opacity:.8}.cj-social a:hover{opacity:1;text-decoration:none}

/* секции и колонки */
#cj-main{min-height:40vh}
.cj-page{padding:50px 0}
.cj-page.cj-builder{padding:0}
.cj-page.cj-builder>.cj-container>.cj-col,.cj-page.cj-builder>.cj-container>div:not(.cj-slider){margin-top:0}
.cj-builder-flow{padding:50px 0}
.cj-section{padding:50px 0;background:var(--bg)}
.cj-section.cj-alternate_color{background-color:var(--alt);color:var(--muted)}
.cj-section.cj-pad-large{padding:80px 0}.cj-section.cj-pad-small{padding:20px 0}.cj-section.cj-pad-no-padding{padding:0}
.cj-section .cj-container{padding-top:0;padding-bottom:0}
.cj-col{float:left;margin-left:6%;min-height:1px}
.cj-col.first{clear:left;margin-left:0}
.cj-container>:not(.cj-col){clear:both}
.cj-one_full{width:100%;margin-left:0}.cj-one_half{width:47%}.cj-one_third{width:29.333%}.cj-two_third{width:64.667%}
.cj-one_fourth{width:20.5%}.cj-three_fourth{width:73.5%}.cj-one_fifth{width:15.2%}.cj-two_fifth{width:36.4%}.cj-three_fifth{width:57.6%}.cj-four_fifth{width:78.8%}
.cj-text{margin-bottom:1em}.cj-text:last-child{margin-bottom:0}

/* заголовки в стиле прежнего конструктора */
.cj-heading{margin:0 0 10px}
.cj-heading h1,.cj-heading h2,.cj-heading h3,.cj-heading h4{margin:0}
.cj-heading.cj-modern-quote h1,.cj-heading.cj-modern-quote h2,.cj-heading.cj-modern-quote h3,.cj-heading.cj-modern-quote h4{font-weight:300;text-transform:uppercase;letter-spacing:1px}
.cj-heading.cj-modern-centered,.cj-heading.cj-classic-quote{text-align:center}
.cj-heading.cj-modern-quote h3,.cj-heading.cj-modern-quote h4{text-transform:none;letter-spacing:0;font-weight:400}
.cj-heading.cj-classic-quote h1,.cj-heading.cj-classic-quote h2,.cj-heading.cj-classic-quote h3{font-family:'Lora',Georgia,serif;font-style:italic;font-weight:400;text-transform:uppercase}
.cj-heading:not(.cj-blockquote) h3,.cj-heading:not(.cj-blockquote) h4{display:flex;align-items:center;gap:14px;font-weight:400}
.cj-heading:not(.cj-blockquote) h3:after,.cj-heading:not(.cj-blockquote) h4:after{content:"";flex:1;border-top:1px solid var(--line)}
.cj-subheading{color:var(--muted);font-size:15px;margin-top:6px}
.cj-hr span{display:block;border-top:1px solid var(--line)}
.cj-hr-center span{margin:0 auto}.cj-hr-left span{margin-right:auto}.cj-hr-right span{margin-left:auto}

/* картинка */
.cj-image{margin-bottom:1em;overflow:hidden}.cj-align-center{text-align:center}.cj-align-right{text-align:right}
.cj-image img{transition:transform .5s}.cj-image:hover img{transform:scale(1.04)}

/* слайдер */
.cj-slider{position:relative;overflow:hidden;background:#111;aspect-ratio:1500/430;max-height:80vh}
.cj-slide{position:absolute;inset:0;opacity:0;transition:opacity 1s}.cj-slide.is-active{opacity:1}
.cj-slide img{width:100%;height:100%;object-fit:cover;display:block}
.cj-prev,.cj-next{position:absolute;top:50%;transform:translateY(-50%);border:0;background:rgba(0,0,0,.25);color:#fff;font-size:34px;line-height:1;padding:6px 14px;cursor:pointer;opacity:0;transition:opacity .3s}
.cj-slider:hover .cj-prev,.cj-slider:hover .cj-next{opacity:1}.cj-prev{left:0}.cj-next{right:0}

/* сетка продуктов и галерея */
.cj-masonry{display:grid;gap:6px;grid-template-columns:repeat(3,1fr);margin-top:20px}
.cj-masonry.cj-cols-2{grid-template-columns:repeat(2,1fr)}.cj-masonry.cj-cols-4{grid-template-columns:repeat(4,1fr)}
.cj-masonry-item{position:relative;display:block;overflow:hidden;background:#eee;aspect-ratio:4/3}
.cj-masonry-item img{width:100%;height:100%;object-fit:cover;transition:transform .6s}
.cj-masonry-item:hover img{transform:scale(1.06)}
.cj-masonry-title{position:absolute;left:0;right:0;bottom:0;padding:14px 18px;background:rgba(255,255,255,.88);color:var(--head);font:400 17px 'Lato',sans-serif;text-align:center}
.cj-masonry-item:hover{text-decoration:none}
.cj-gallery{display:grid;gap:6px;grid-template-columns:repeat(5,1fr)}
.cj-gallery.cj-cols-2{grid-template-columns:repeat(2,1fr)}.cj-gallery.cj-cols-3{grid-template-columns:repeat(3,1fr)}.cj-gallery.cj-cols-4{grid-template-columns:repeat(4,1fr)}.cj-gallery.cj-cols-6{grid-template-columns:repeat(6,1fr)}
.cj-gallery a{display:block;overflow:hidden;aspect-ratio:1}.cj-gallery img{width:100%;height:100%;object-fit:cover;transition:opacity .3s}.cj-gallery a:hover img{opacity:.8}

/* форма */
.cj-contact form{display:flex;flex-wrap:wrap;gap:0 4%}
.cj-field{width:100%;margin:0 0 14px}.cj-contact-title{font-weight:400;margin:10px 0 14px}
.cj-field label{display:block;font:600 13px 'Lato',sans-serif;color:var(--head);margin-bottom:4px}.cj-field abbr{color:var(--accent);text-decoration:none}
.cj-field input,.cj-field textarea{width:100%;border:1px solid var(--line);background:#fcfcfc;padding:10px 12px;font:15px 'Lora',serif;color:var(--text)}
.cj-field input:focus,.cj-field textarea:focus{outline:none;border-color:var(--accent);background:#fff}
.cj-button{background:var(--accent);color:#fff;border:0;padding:12px 28px;font:600 14px 'Lato',sans-serif;cursor:pointer}.cj-button:hover{filter:brightness(.92)}
.cj-hp{position:absolute;left:-9999px}
.cj-contact form>p:last-child{width:100%;margin:0}
.cj-note{width:100%;padding:12px 16px;margin-bottom:16px}.cj-ok{background:#e8f6e8;color:#2d6a2d}.cj-err{background:#fbeaea;color:#8a2a2a}

/* подвал */
.cj-socket{background:var(--alt);color:var(--socket);font-size:13px;border-top:1px solid #efefef}
.cj-socket .cj-container{display:flex;justify-content:space-between;align-items:center;min-height:56px;gap:20px}
.cj-socket a{color:var(--muted)}

/* лайтбокс */
.cj-lightbox{position:fixed;inset:0;background:rgba(0,0,0,.88);z-index:999;display:none;align-items:center;justify-content:center}
.cj-lightbox.is-open{display:flex}.cj-lightbox img{max-width:94vw;max-height:92vh}
.cj-lightbox button{position:absolute;background:none;border:0;color:#fff;font-size:42px;cursor:pointer;padding:12px}
.cj-lb-x{top:0;right:8px}.cj-lb-p{left:8px;top:45%}.cj-lb-n{right:8px;top:45%}

@media(max-width:989px){.cj-container{padding:0 25px}.cj-masonry{grid-template-columns:repeat(2,1fr)}.cj-gallery{grid-template-columns:repeat(4,1fr)}.cj-social{right:25px}}
@media(max-width:767px){
 .cj-col{width:100%!important;margin-left:0;float:none;margin-bottom:24px}
 .cj-menu-toggle{display:block}.cj-menu{display:none;flex-direction:column;width:100%}.cj-menu.is-open{display:flex}
 .cj-menu li{border:0;border-top:1px solid #3a3a3a}.cj-menu li:last-child{border-right:0}
 .cj-header .cj-container{height:110px}.cj-logo img{max-height:80px}.cj-social{display:none}
 .cj-masonry,.cj-gallery{grid-template-columns:repeat(2,1fr)}
 .cj-socket .cj-container{flex-direction:column;justify-content:center;padding:14px 25px;text-align:center}}
