/*
Theme Name: Growwweb
Theme URI: Адрес сайта, посвященного данной теме
Description: Описание темы 
Version: 1.0
Author: Growwweb
Author URI: https://growwweb.com
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
	font-weight: <weight>;
}
html {
	height: 100%;
	font-size: 16px; /* Базовый размер (1rem) */
}
body {
	font-family: "Montserrat", sans-serif;
	font-weight: normal;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	font-optical-sizing: auto;
	/* Для всей страницы */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}
h1 {
    font-size: clamp(2rem, 5vw, 3rem); /* Динамический рост */
}
h2 {
	font-size: clamp(1.3rem, 3vw, 1.8rem);
	font-weight: 500;
}
h3 {
	font-size: clamp(1.4rem, 3vw, 1.6rem);
	font-weight: 500;
	padding: 0 0 1em;
}
h4 {
	font-weight: 600;
	font-size: clamp(1rem, 2vw, 1.1rem);
	padding: 1em 0;
}
p {
	font-size: 1rem;
	line-height: 1.5em;
	padding: 1em 0;
}
a {
	color: #7452ac;
	transition: all 0.4s ease;
}
a:hover, a:focus, a:active {
	color: #6878e2;
	text-decoration: none;
}

b, strong {
	font-weight: 600;
}



/* Современный стиль скроллбара */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}





header, footer {
	flex: 0 0 auto;
}
main {
	flex: 1 0 auto;
}
.container {
	padding: 0;
	max-width: 1280px;
	width: 100%;
	margin: auto;
	height: 100%;
}

.flex_block {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100%;
}




/*ol {ounter-reset: num;}
ol li {	counter-increment: num;}
ol li::before {content: counter(num);}*/

article ul li {
	list-style: disc outside;
	margin: 0 20px 20px;
}
article ol li {
    list-style: decimal outside;
    margin: 0 20px 20px;
}



/* TOP */


.logo_block {
  display: flex;
}
.logo_block div {
  display: flex;
  flex-direction: column;
  line-height: 23px;
  position: relative;
  left: -15px;
}
.logo_block div strong {
  font-size: 25px;
  font-weight: 800;
}




/* МЕНЮ */

/* UL с меню */
.navbar-nav {
    gap: 20px;              /* пространство между пунктами меню */
}

/* Пункты меню */
.navbar-nav > li > a, .navbar-nav > .nav-link {
	font-size: 15px;
	font-weight: 600;
	color: #222;
	padding: 25px 0;
	text-decoration: none;
	text-transform: uppercase;
}

.navbar-nav > li > a::after {
	content: '|';
	padding-left: 20px;
}

.navbar-nav > li:last-child > a::after, .navbar-nav > .nav-link:last-child::after {
	display: none;
}

/* Активные и hover состояния */
.navbar-nav > li > a:hover,
.navbar-nav > .nav-link:hover,
.navbar-nav > .current-menu-item > a,
.navbar-nav > .current-menu-item > a:focus,
.navbar-nav > .current-menu-item > a:hover,
.navbar-nav > li.current-menu-ancestor > a,
.navbar-nav > li.current-menu-parent > a {
    background: transparent;
    color: #6878e2;
}

/* Убрать псевдоэлементы, если есть */
.navbar-nav::before,
.navbar-nav::after {
    display: none;
}




/* HEADER */

.phone_block {
	display: flex;
	align-items: center;
	gap: 1em;
}
.phone_block a {
	color: #222;
	font-size: 15px;
	font-weight: 600;
}
.bron a {
	background: #444ce7;
	color: #fff;
	padding: 10px 20px;
	border-radius: 5px;
	text-transform: uppercase;
}



.abouts .eb-image-wrapper {
	background: #d6ebfe;
	border-radius: 60px;
	display: block;
	max-width: min-content;
	padding: 10px;
}


.eb-ah-title {
	display: flex;
	flex-direction: column;
}






.eb-inline-feature-list {
	display: flex;
	justify-content: space-evenly;
}






.rooms .eb-column-inner h4 {
    padding: 20px;
}
.rooms .eb-column-inner ul {
    padding: 20px;
    margin: 10px 0;
    list-style: none;
}
.rooms .eb-column-inner ul li {
    padding-left: 22px;
    position: relative;
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.5;
}

.rooms .eb-column-inner ul li::before {
    content: "●";
    color: #444ce7;
    font-size: 14px;
    position: absolute;
    left: 0;
    top: 0;
}
.rooms .eb-column-inner p {
	padding: 0 20px;
}







.pluses .eb-img-style-circle {
	background: #d6ebfe;
	padding: 15px;
}








.places .eb-img-style-circle {
	background: #005BFF;
	padding: 15px;
}






/* CATEGORY */

/* Плавные переходы для карточек */
.post-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12) !important;
}

/* Эффект увеличения картинки при наведении */
.post-thumb-wrapper .post-thumb-img {
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumb-img {
    transform: scale(1.05);
}

/* Цвет заголовка при ховере */
.post-card:hover .post-title {
    color: var(--bs-primary) !important;
}

/* Перекрытие слоев для кликабельности тегов поверх stretched-link */
.z-index-2 {
    z-index: 2;
}










/* INSIDE */

.articles {
	display: flex;
	flex-flow: wrap;
}

.articles > article h2 {
    font-size: 18px;
    line-height: 24px;
    height: 60px;
    padding: 0 0 10px;
    font-weight: 600;
    align-items: flex-end;
    display: flex;
}
.articles > article .post_img {
	width: 100%;
	height: 250px;
	display: block;
}
.articles > article .post_img .thumb_img {
	width: 100%;
	height: 100%;
	display: block;
	overflow: hidden;
}
.articles > article .post_img img {
	object-fit: cover;
	width: 100%;
	height: 100%;
	object-position: 50% 30%;
}

article h1, .category h1 {
	padding: 0 0 30px;
	font-weight: 600;
}
article h3 {
	font-size: 25px;
	padding: 20px 0;
	font-weight: 600;
}
article h4 {
	font-size: 22px;
	padding: 20px 0;
	font-weight: 600;
}
article p {
	padding: 10px 0 15px;
	font-size: 16px;
}
article ul li {
	list-style: disc inside none;
	margin: 5px 10px 15px;
}
article ol li {
	list-style: decimal inside none;
	margin: 5px 10px 15px;
}

.type-post .post_image {
	float: left;
	margin: 0 50px 50px 0;
	width: 30%;
}
.type-post .post_image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.type-page .post_image {
	float: right;
	margin: 0 50px 50px 0;
	width: 30%;
}
.type-page .post_image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}







/* Оформление текста записи */
.entry-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
}

.entry-content p {
    margin-bottom: 1.25rem;
}

/* Автоматическое выравнивание галерей WordPress (блочных и классических) */
.entry-content .gallery,
.entry-content .wp-block-gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    gap: 12px !important;
    margin: 2rem 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Приведение всех фото галереи к единой высоте и пропорциям */
.entry-content .gallery-item img,
.entry-content .wp-block-gallery .wp-block-image img,
.entry-content .wp-block-gallery img {
    width: 100% !important;
    height: 160px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Эффект при наведении на фото в галерее */
.entry-content .gallery-item img:hover,
.entry-content .wp-block-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Адаптив для мобильных устройств */
@media (max-width: 576px) {
    .entry-content .gallery,
    .entry-content .wp-block-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .entry-content .gallery-item img,
    .entry-content .wp-block-gallery img {
        height: 130px !important;
    }
}




/* 404 */
.error-404 {text-align: center;	display: flex;}









/* FOOTER */

footer {
	background: #001c3f;
	padding: 30px 0;
	color: #fff;
}
footer * {
	color: #97a4b5;
	font-size: 14px;
}


.footer {
	display: flex;
	justify-content: space-between;
}
footer h4 {
	font-size: 18px;
	font-weight: 500;
	color: #fff;
}



footer p {
	padding: 0 0 15px;
}


.foot_contacts p {
	padding-left: 35px;
}
.foot_contacts p:nth-of-type(1) {
	background: url(img/pin.png) no-repeat 0 0 / 22px;
}
.foot_contacts p:nth-of-type(2) {
	background: url(img/phone.png) no-repeat 0 0 / 22px;
}
.foot_contacts p:nth-of-type(3) {
	background: url(img/mail.png) no-repeat 0 0 / 22px;
}
.foot_timework p {
	padding-left: 40px;
	
}
.foot_timework p:nth-of-type(1) {
	background: url(img/clock.png) no-repeat 0 0 / 22px;
}


.col-md-12.foot_line {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.footer_content {
	display: flex;
	justify-content: space-between;
	clear: both;
	padding: 15px;
	font-size: 13px;
	font-weight: 300;
}
.footer_content a {
	color: #fff;
}




.up {
	position: absolute;
	right: 0;
	bottom: 92px;
	background: #ffffff7a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='48px' viewBox='0 -960 960 960' width='48px' fill='%23ffffff'%3E%3Cpath d='M480-554L283-357l-43-43 240-240 240 240-43 43-197-197Z'/%3E%3C/svg%3E") no-repeat center;
	height: 36px;
	width: 36px;
	cursor: pointer;
	font-size: 0;
	border-radius: 0;
	opacity: 0.4;
	float: right;
	transition: 0.5s;
}
.up:hover {
	opacity: 0.8;
}