/*
Theme Name: Гоголь
Description: Лёгкая тема ресторана «Гоголь»: боковая колонка слева, одна адаптивная версия для телефона и компьютера, без конструкторов страниц.
Version: 0.1.5
Author: Ресторан Гоголь
Text Domain: gogol
Requires PHP: 7.4
*/

:root{
	--gg-bg:#e5ecea;
	--gg-text:#1f2937;
	--gg-accent:#d9485b;
	--gg-side:clamp(280px,26vw,400px);
	--gg-gap:24px;
	--gg-fw-body:500;
	--gg-fw-head:500;
	--gg-fw-menu:500;
	--gg-fw-contacts:500;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:Montserrat,"Segoe UI",Roboto,Arial,sans-serif;font-size:var(--gg-fs-body,15px);font-weight:var(--gg-fw-body);line-height:1.65;color:var(--gg-text);background-color:var(--gg-bg);background-repeat:repeat;background-position:0 0;background-attachment:scroll}
a{color:inherit}
img{max-width:100%;height:auto}

/* ---------- каркас ---------- */
.gg-wrap{display:grid;grid-template-columns:var(--gg-side) minmax(0,1fr);min-height:100vh}

/* Левая колонка помещается в экран без прокрутки: размеры считаются от высоты окна (vh). */
.gg-side{position:sticky;top:0;align-self:start;height:100vh;overflow-y:auto;scrollbar-width:thin;
	padding:clamp(14px,3.4vh,34px) 24px clamp(10px,2.4vh,22px);
	display:flex;flex-direction:column;gap:clamp(8px,2.2vh,22px)}
.admin-bar .gg-side{top:32px;height:calc(100vh - 32px)}
.gg-logo{display:block;flex:0 0 auto;text-decoration:none}
.gg-logo-full{display:block;height:clamp(140px,29vh,330px);width:auto;max-width:100%}
.gg-logo-custom{display:block;height:clamp(140px,29vh,330px);width:auto;max-width:100%}
.gg-logo-word{display:none}
.gg-burger{display:none}

.gg-nav{flex:0 0 auto}
.gg-nav ul{list-style:none;margin:0;padding:0}
.gg-nav li{margin:0}
.gg-nav a{display:block;padding:clamp(2px,.5vh,6px) 0;font-size:var(--gg-fs-menu,clamp(13px,2.2vh,18px));font-weight:var(--gg-fw-menu);text-decoration:none;line-height:1.3}
.gg-nav a:hover{color:var(--gg-accent)}
.gg-nav .current-menu-item>a,.gg-nav .current_page_item>a,.gg-nav .current-menu-ancestor>a{color:var(--gg-accent);font-weight:600}

.gg-contacts{margin-top:auto;font-size:var(--gg-fs-contacts,clamp(11.5px,1.8vh,15px));font-weight:var(--gg-fw-contacts);line-height:1.45}
.gg-contacts p{margin:0 0 clamp(4px,1vh,8px)}
.gg-phone{font-weight:600;text-decoration:none;white-space:nowrap}
.gg-soc{display:flex;gap:10px;margin:clamp(6px,1.4vh,12px) 0}
.gg-ico{display:inline-flex;align-items:center;justify-content:center;width:clamp(28px,4.4vh,36px);height:clamp(28px,4.4vh,36px);border:1.5px solid currentColor;border-radius:50%;font-size:clamp(10px,1.5vh,13px);font-weight:600;text-decoration:none;line-height:1}
.gg-ico:hover{color:var(--gg-accent)}
.gg-book{display:inline-block;margin:4px 0 10px;padding:10px 18px;background:var(--gg-accent);color:#fff;border-radius:4px;text-decoration:none;font-weight:500}
.gg-copy{opacity:.7;font-size:.9em}

.gg-main{min-width:0;padding:0 0 48px}
.gg-article{max-width:none;padding:0 20px 0 8px}
.gg-article>.gg-pagetitle{font-size:calc(var(--gg-fs-head,28px) + 2px);font-weight:var(--gg-fw-head);line-height:1.25;margin:0;padding:28px 0 18px}

/* ---------- содержимое страниц ---------- */
.gg-content h1,.gg-content h2,.gg-content h3,.gg-content h4{font-weight:var(--gg-fw-head);line-height:1.25;margin:1.1em 0 .5em}
.gg-content h1{font-size:calc(var(--gg-fs-head,28px) + 4px)}
.gg-content h2{font-size:var(--gg-fs-head,28px)}
.gg-content h3{font-size:calc(var(--gg-fs-head,28px) * .8)}
.gg-content h4{font-size:calc(var(--gg-fs-head,28px) * .65)}
.gg-content>:first-child{margin-top:0}
.gg-content p{margin:0 0 1em}
.gg-content p,.gg-content ul,.gg-content ol,.gg-content details{max-width:1100px}
.gg-content ul,.gg-content ol{margin:0 0 1em;padding-left:1.3em}
.gg-content img{display:block}
/* картинки, вставленные в редакторе WordPress («Полный размер», «Большой», блок «Изображение»), занимают всю ширину страницы */
.gg-content img.size-full,.gg-content img.size-large,.gg-content .wp-block-image img{width:100%;height:auto}
.gg-content .wp-caption{width:auto!important;max-width:100%}
.gg-content .alignleft{float:left;margin:0 16px 8px 0}
.gg-content .alignright{float:right;margin:0 0 8px 16px}
.gg-content .aligncenter{margin-left:auto;margin-right:auto}
.gg-content figure{margin:0 0 16px}
.gg-content table{width:100%;border-collapse:collapse;display:block;overflow-x:auto}
.gg-content td,.gg-content th{padding:6px 10px;border:1px solid rgba(0,0,0,.15)}
.gg-content iframe{max-width:100%;border:0}
.gg-content details{margin:0 0 10px;padding:10px 14px;border:1px solid rgba(0,0,0,.15);border-radius:6px}
.gg-content summary{cursor:pointer;font-weight:500}
.gg-content hr{border:0;border-top:1px solid rgba(0,0,0,.2);margin:24px 0}

/* строки и колонки (бывшие секции Elementor): колонки сами переносятся на узких экранах */
.gg-row{display:flex;flex-wrap:wrap;gap:var(--gg-gap);margin:0 0 var(--gg-gap)}
.gg-col{flex:1 1 calc(var(--w,100) * 1% - var(--gg-gap));min-width:min(100%,260px)}
.gg-box{display:flex;flex-direction:column;margin:0 0 var(--gg-gap)}
.gg-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin:0 0 var(--gg-gap)}
.gg-gallery img{width:100%;height:auto}
.gg-btn,.gg-content .wp-block-button__link{display:inline-block;padding:11px 22px;background:var(--gg-accent);color:#fff;border-radius:4px;text-decoration:none;font-weight:500}

/* ---------- телефон и планшет: логотип слева, три полоски справа ---------- */
@media (max-width:900px){
	.gg-wrap{grid-template-columns:1fr}
	.gg-side,.admin-bar .gg-side{position:relative;top:0;height:auto;overflow:visible;padding:12px 16px;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
	.gg-logo-full{display:none}
	.gg-logo-word{display:block;width:150px;height:auto}
	.gg-logo-custom{height:auto;width:150px}
	.gg-burger{display:block;width:46px;height:46px;padding:0;background:transparent;border:0;color:inherit;cursor:pointer}
	.gg-burger span{display:block;width:30px;height:2px;margin:7px auto;background:currentColor;border-radius:1px}
	.gg-nav,.gg-contacts{display:none;flex:0 0 100%;margin:0}
	.gg-nav a{font-size:var(--gg-fs-menu,18px);padding:8px 0}
	.gg-contacts{font-size:var(--gg-fs-contacts,15px)}
	.gg-side.is-open .gg-nav,.gg-side.is-open .gg-contacts{display:block}
	.gg-side.is-open .gg-contacts{padding-top:10px}
	.gg-article{padding:0 14px}
	.gg-article>.gg-pagetitle{font-size:var(--gg-fs-head,24px);padding:18px 0 12px}
	.gg-content h1{font-size:calc(var(--gg-fs-head,24px) + 2px)}
	.gg-content h2{font-size:var(--gg-fs-head,24px)}
}
