/*
Theme Name:     Pokatushkin 2022
Author: 		CTR99
Author URI: 	https://ctr99.ru/
Description:    Обновленная тема для Покатушкина с возможностью быстрого переключения зима/лето и удобного редактирования цен
Version:        1.0
*/

/* основные цвета сайта */

html {
	--main-red: #b4100e;
	--main-blue: #002645;
	--main-yellow: #edc619;
}

/* универсальные стили для body */
html body {
	font-family: 'Roboto',-apple-system,BlinkMacSystemFont,"Segoe UI",Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
	background-color: #f6f6f2;
}

/* выделение текста */
::selection {
	background: var(--main-yellow);
	color: var(--main-blue);
}

/* фирменные фоны  */

.navy-bg, table tr .navy-bg, table th .navy-bg, table td .navy-bg {
	background-color: var(--main-blue);
	color: #fff;
}

.red-bg, table tr .red-bg, table th .red-bg, table td .red-bg {
	background-color: var(--main-red);
	color: #fff;
}

/* сделаем нормальные переносы текста */
/*
h1, h2, h3, h4, h5, h6, body {
	hyphens: auto;
	word-break: unset;
	-webkit-hyphens: auto;
	word-wrap: break-word;
	overflow-wrap: break-word;
}
*/

/* Размеры заголовков */
main h1 { font-size: 24px; line-height: 28px; }
main h2 { font-size: 22px; line-height: 26px; }
main h3 { font-size: 20px; line-height: 24px; }
main h4 { font-size: 18px; line-height: 22px; }
main h5 { font-size: 16px; line-height: 20px; }
main h6 { font-size: 15px; line-height: 19px; }

/* Отступы заголовков */
main h1, main h2, main h3, main h4, main h5, main h6 {
	margin-top: 40px;
	margin-bottom: 25px;
}

/* ссылки на желтой новостной полосе */

#breaking-news a {
	color: var(--main-blue);
}

#breaking-news a:hover {
	color: var(--main-blue);
	text-decoration: none;
}

/* основной стиль для ссылок в области контента */

main a {
	color: var(--main-blue);
}

main a:hover {
	color: var(--main-red);
	text-decoration: none;
}

/* ограничение видимой области в 1650px */

.wrapper-1650 {
	max-width: 1650px;
	margin: 0;
}

/* верхняя полоса с контактами*/

.top-line {
	background: var(--main-red);
	color: #fff;
}

.top-line a {
	text-decoration: none;
	color: var(--main-white);
}

.top-line a:hover {
	text-decoration: underline;
	color: var(--main-white);
}

main {
	display: flex;
	background: #fff;
}

main #left-side {
	position: sticky;
	top: 32px;
	flex-basis: 30%;
	min-width: 350px;
	max-width: 480px;
	height: calc(100vh - 68px);
	background-color: var(--main-blue);
}

main #left-side.scrolled {
	height: calc(100vh - 32px);
}

main .right-side {
	flex: 1;
	display: flex;
	flex-direction: column;
	max-width: 100%;
}

@media (min-width: 992px) {
	main .content {
		border-right: 1px solid rgba(0, 0, 0, 0.05);
	}
}


main .right-side #map {
	background-color: #f6f6f2;
}

/* основное меню */

main .main-menu {
	position: relative;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.logo-and-video {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.video-icon {
	height: 58px;
	width: 58px;
	border-radius: 100%;
	background: #dd7375;
	border: 5px solid #f4d0d1;
	-webkit-animation: blink 10s infinite both;
	animation: blink 10s infinite both;
}

.video-icon:hover {
	cursor: pointer;
}

@-webkit-keyframes blink {
	0%,
	50%,
	100% {
		border-color: #f4d0d1;
	}
	25%,
	75% {
		border-color: #c7161a;
	}
}
@keyframes blink {
	0%,
	50%,
	100% {
		border-color: #f4d0d1;
	}
	25%,
	75% {
		border-color: #c7161a;
	}
}

.video-icon span {
	background: #c7161a;
	border-radius: 100%;
	height: 48px;
	width: 48px;
	text-align: center;
	color: #fff;
	font-size: 8px;
	text-transform: uppercase;
	line-height: 1.5;
	display: flex;
	align-items: center;
}

.main-menu nav {
	width: 100%;
	max-width: 300px;
	margin: 30px auto 0;
}

.main-menu nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
	position: relative;
}

.main-menu nav ul li a {
	display: block;
	position: relative;
	text-decoration: none;
	font-size: 15px;
	font-family: 'Roboto';
	text-transform: uppercase;
	height: 50px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	background-color: rgba(0, 0, 0, 0);
	color: #fff;
	line-height: 50px;
	font-weight: 600;
	text-align: left;
}

.main-menu nav ul li a:hover {
	color: var(--main-red);
}

.main-menu nav ul li a::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	margin-left: auto;
	margin-right: auto;
	height: 1px;
	width: 15px;
	background: rgba(255, 255, 255, 0.3);
	border: 0;
}

.main-menu nav ul li a:hover::after {
	height: 2px;
	width: 30px;
	background: var(--main-red);
}


.main-menu nav ul li a .with-caret, #mobile-menu nav ul li a .with-caret {
	display: flex;
	align-items: center;
	gap: 5px;
}

.main-menu nav ul li.dropdown ul a {
	color: var(--main-blue);
	border-bottom: 1px solid rgba(0, 38, 69, 0.12);
	padding: 0 1rem;
}

#mobile-menu nav ul li.dropdown ul a {
	font-size: 14px;
	white-space: normal;
	color: var(--main-blue);
}


.main-menu nav ul li.dropdown ul a:active, .main-menu nav ul li.dropdown ul a:focus, .main-menu nav ul li.dropdown ul a.active, #mobile-menu nav ul li.dropdown ul a:active, #mobile-menu nav ul li.dropdown ul a:focus, #mobile-menu nav ul li.dropdown ul a.active {
	background: var(--main-yellow);
}

.main-menu nav ul li.dropdown ul a::after {
	background: rgba(0, 38, 69, 0.3);
}

#mobile-menu a.dropdown-toggle::after {
	display: none; /*скроем штатную стрелочку выпадающего списка бутстрапа*/
}

.main-menu .menu-image {
	position: absolute;
	max-width: 100%;
	height: auto;
	bottom: 0;
	z-index: -1;
}

/* ссылки на соцсети в основном меню */

.social-links {
	display: flex;
	justify-content: space-between;
	width: 200px;
	margin: auto auto 15px auto;
}
.social-links a {
	width: 35px;
	color: white;
	text-decoration: none;
}
.social-links svg {
	fill: white;
	width: 100%;
	height: 35px;
}

/* мобильное меню */

#mobile-menu {
	background: #fafafa;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#mobile-menu #mobile-menu-after-scroll {
	flex-grow: 1;
	gap: 15px;
}

#mobile-menu .phones-on-mobile {
	display: flex;
    flex-direction: column;
    gap: 5px;
	flex-grow: 1;
	justify-content: space-evenly;
}

@media (min-width: 500px) {
	#mobile-menu .phones-on-mobile {
		flex-direction: row;
		justify-content: start;
		gap: 10px;
	}
}


#mobile-menu .phones-on-mobile a {
	text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 10px;
    line-height: 1.1;
    color: #6b6966;
}

#mobile-menu .phones-on-mobile a svg {
    height: 12px;
    width: 12px;
    margin-right: 5px;
	fill: var(--main-red);
}

@media (min-width: 500px) {
	#mobile-menu .phones-on-mobile a svg {
		height: 16px;
	    width: 16px;
	}
}

#mobile-menu .phones-on-mobile a:nth-of-type(even) svg {
	fill: var(--main-blue);
}


#mobile-menu .phones-on-mobile a .digits {
	color: #3c3831;
	font-weight: bold;
}

@media (min-width: 500px) {
	#mobile-menu .phones-on-mobile a .digits {
		font-size: 16px;
	}
}

#offcanvasRight {
	background: #222222;
	width: 300px;
}

#offcanvasRight ul {
	padding-left: 1rem;
}

#offcanvasRight li {
	list-style: none;
	padding: 0.2rem 0;
}

#offcanvasRight li a {
	color: #E2E2E2;
	text-decoration: none;
	text-transform: uppercase;
}

#offcanvasRight li a:hover {
	color: var(--main-yellow);
}

/*
цитата - пузырь
пример - https://pokatushkin.ru/katalog/189-gornolyzhnyj-kurort-igora 
*/

blockquote.bubble {
	border: solid 1rem var(--main-red);
	position: relative;
	border-radius: .4em;
	padding: 2rem;
	margin-left: 30px;
}

blockquote.bubble p {
	background-color: white;
	color: #012646;
	font-style: italic;
	margin: 0 0 10px 0;
}

blockquote.bubble cite {
	background-color: white;
	color: #012646;
}

blockquote.bubble cite:before {
	content:"— ";
}

blockquote.bubble:before {
	content: "";
	width: 0px;
	height: 0px;
	position: absolute;
	border-left: 20px solid transparent;
	border-right: 20px solid var(--main-red);
	border-top: 20px solid var(--main-red);
	border-bottom: 20px solid transparent;
	left: -45px;
	top: 1rem;
}

/*
Модальное окно для изображений
пример - 
*/

figure.with-modal, .image-gallery li.with-modal {
	display: inline-block;
	position: relative;
	cursor: zoom-in;
	box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0px 0 1px rgba(10, 10, 10, 0.02);
	margin: 0;
}

figure.with-modal::after, .image-gallery li.with-modal::after {
	content: '';
	position: absolute;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' x='0px' y='0px' viewBox='0 0 299.998 299.998' style='enable-background:new 0 0 299.998 299.998;' xml:space='preserve'%3E%3Cg%3E%3Cg%3E%3Cg%3E%3Cpath d='M139.414,96.193c-22.673,0-41.056,18.389-41.056,41.062c0,22.678,18.383,41.062,41.056,41.062 c22.678,0,41.059-18.383,41.059-41.062C180.474,114.582,162.094,96.193,139.414,96.193z M159.255,146.971h-12.06v12.06 c0,4.298-3.483,7.781-7.781,7.781c-4.298,0-7.781-3.483-7.781-7.781v-12.06h-12.06c-4.298,0-7.781-3.483-7.781-7.781 c0-4.298,3.483-7.781,7.781-7.781h12.06v-12.063c0-4.298,3.483-7.781,7.781-7.781c4.298,0,7.781,3.483,7.781,7.781v12.063h12.06 c4.298,0,7.781,3.483,7.781,7.781C167.036,143.488,163.555,146.971,159.255,146.971z'/%3E%3Cpath d='M149.997,0C67.157,0,0.001,67.158,0.001,149.995s67.156,150.003,149.995,150.003s150-67.163,150-150.003 S232.836,0,149.997,0z M225.438,221.254c-2.371,2.376-5.48,3.561-8.59,3.561s-6.217-1.185-8.593-3.561l-34.145-34.147 c-9.837,6.863-21.794,10.896-34.697,10.896c-33.548,0-60.742-27.196-60.742-60.744c0-33.548,27.194-60.742,60.742-60.742 c33.548,0,60.744,27.194,60.744,60.739c0,11.855-3.408,22.909-9.28,32.256l34.56,34.562 C230.185,208.817,230.185,216.512,225.438,221.254z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); 
	opacity: 0.6;
	bottom: 0.5rem;
	right: 0.5rem;
	width: 3rem;
	height: 3rem;
	pointer-events: none;
}

.modal, .modal-background {
	bottom: 0;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.modal {
	align-items: center;
	display: none;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	position: fixed;
	z-index: 40;
}
.modal.is-active {
	display: flex; }

.modal-background {
	background-color: rgba(10, 10, 10, 0.86);
	cursor: zoom-out;
}

div.image {
	display: block;
	position: relative;
}

div.image img {
	display: block;
	height: auto;
	width: 100%;
}

.modal-content {
	margin: 0 20px;
	max-height: calc(100vh - 160px);
	overflow: auto;
	position: relative;
	width: 100%; 
}

@media screen and (min-width: 769px), print {
	.modal-content {
		margin: 0 auto;
		max-height: calc(100vh - 40px);
		width: 100%;
		max-width: 1000px; 
	}
}

.modal-close {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.modal-close::before, .modal-close::after {
	background-color: white;
	content: "";
	display: block;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translateX(-50%) translateY(-50%) rotate(45deg);
	transform-origin: center center;
}

.modal-close::after {
	background-color: white;
	content: "";
	display: block;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translateX(-50%) translateY(-50%) rotate(45deg);
	transform-origin: center center;
}

.modal-close::before {
	height: 2px;
	width: 50%;
}

.modal-close::after {
	height: 50%;
	width: 2px;
}

.modal-close {
	-moz-appearance: none;
	-webkit-appearance: none;
	background-color: rgba(10, 10, 10, 0.2);
	border: none;
	border-radius: 290486px;
	cursor: pointer;
	pointer-events: auto;
	display: inline-block;
	flex-grow: 0;
	flex-shrink: 0;
	font-size: 0;
	height: 20px;
	max-height: 20px;
	max-width: 20px;
	min-height: 20px;
	min-width: 20px;
	outline: none;
	position: relative;
	vertical-align: top;
	width: 20px;
}

.is-large.modal-close {
	height: 32px;
	max-height: 32px;
	max-width: 32px;
	min-height: 32px;
	min-width: 32px;
	width: 32px;
}

.modal-close:hover, .modal-close:focus {
	background-color: rgba(10, 10, 10, 0.3);
}

.modal-close {
	background: none;
	height: 40px;
	position: fixed;
	right: 20px;
	top: 20px;
	width: 40px;
}

/* дополнительные помощники, которых нет в бутстрапе 5 */

/* первая буква маленькая - для ссылок, например */

.first-letter-lowercase {
	display: inline-block;
}

.first-letter-lowercase::first-letter {
	text-transform: lowercase;
}

/* Блоки "Важно!" и "Кстати/Совет" */
.important, .also {
	border-radius: 15px;
	position: relative;
	padding: 1.2rem;
	margin: 3rem 0 3rem;
}

.important {
	border: solid 0.3rem var(--main-red);
}

.also {
	border: solid 0.3rem var(--main-blue);
}

.important .bt, .also .bt {
	font-size: 18px;
	font-weight: bold;
}

.important .bt {
	color: var(--main-red);
}

.also .bt {
	color: var(--main-blue);
}

/* основная кнопка заказа услуги */

.btn-main {
  color: var(--main-blue);
  border-color: var(--main-blue);
}

.btn-main:hover {
  color: #fff;
  background-color: var(--main-blue);
}

/* якоря для оглавления */
.content-anchor {
	position: absolute;
	margin-top: -80px;
}
