/* Cross+Studio — styles reproduced from cross-studio.ru, plus block editor content. */

html, body { padding: 0; margin: 0; }
body {
	font-family: 'PT Sans', sans-serif;
	color: #231f20;
	font-size: 16px;
	line-height: 1.35;
	min-width: 320px;
	overflow-y: scroll;
	-webkit-text-size-adjust: none;
	text-size-adjust: none;
	background: #fff;
}
a { color: #231f20; cursor: pointer; }
img { border: 0; max-width: 100%; height: auto; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
button { font-family: inherit; }

.outer_wrapper { min-height: calc(100vh - 100px); }
.wrapper { padding: 40px; }

/* ---------- Desktop header ---------- */
.header { position: relative; }
.header .logo { float: left; display: block; outline: none; }
.header .logo img { display: block; width: 195px; height: auto; }

.lk_profile { font-size: 16px; font-weight: bold; display: block; text-decoration: none; position: absolute; left: 262px; top: 0; color: #231f20; }
.lk_profile .text { float: left; margin-top: 4px; max-width: 180px; overflow: hidden; white-space: nowrap; }
.lk_profile .balance { margin-top: 3px; font-weight: normal; }
.lk_profile .outer_avatar { width: 44px; height: 44px; padding: 2px; border: solid 1px #333; border-radius: 50%; float: left; margin-right: 13px; }
.lk_profile .avatar { width: 38px; height: 38px; display: block; border-radius: 50%; background: url(../img/no_avatar.png) center / contain no-repeat; }

.header .right_header { float: right; }
.header .right_header_left { float: left; }
.header .phones { float: right; clear: right; font-size: 18px; margin: 14px 0 0 0; }
.header .phones .item { display: block; text-decoration: none; color: #000; }
.header .phones .item.s-phone { display: none; }
.header .phones:hover .item.h-phone { display: none; }
.header .phones:hover .item.s-phone { display: block; }

.header .header_buttons { float: left; border-left: solid 2px #000; margin: 0 0 0 20px; padding: 0 0 0 20px; list-style: none; }
.header .header_buttons li { display: block; }
.header .header_buttons a { color: #231f20; margin: 6px 0; cursor: pointer; display: block; text-decoration: none; width: 203px; font-size: 16px; }
.header .header_buttons a span { border-bottom: solid 1px #231f20; }
.header .header_buttons a:hover { opacity: 0.8; }

.main_menu_wrap { float: left; margin: 63px 20px 0; }
.main_menu { list-style: none; margin: 0; padding: 0; }
.main_menu > li { display: inline-block; position: relative; cursor: default; }
.main_menu > li > a { text-decoration: none; font-size: 18px; color: #231f20; border-right: solid 1px #231f20; padding: 0 15px; }
.main_menu > li:first-child > a { padding-left: 0; }
.main_menu > li:last-child > a { border-right: none; padding-right: 0; }
.main_menu a:hover, .main_menu .current-menu-item > a, .main_menu .current-page-ancestor > a { text-decoration: underline; }
.main_menu .sub-menu { position: absolute; z-index: 200; display: none; background: rgba(255, 255, 255, 0.95); list-style: none; margin: 0; padding: 0; min-width: 240px; left: 0; top: 100%; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.main_menu > li:first-child .sub-menu { left: -20px; }
.main_menu li:hover > .sub-menu, .main_menu li:focus-within > .sub-menu { display: block; }
.main_menu .sub-menu a { padding: 10px 20px; display: block; border: none; font-size: 18px; text-decoration: none; color: #231f20; white-space: nowrap; }
.main_menu .sub-menu a:hover { text-decoration: underline; }

@media screen and (max-width: 1675px) {
	.main_menu_wrap { margin: 30px 0 0; clear: left; }
}
@media screen and (max-width: 1040px) {
	.main_menu > li > a { padding: 0 7.75px 0 3.3px; }
}
@media screen and (max-width: 1024px) {
	.wrapper { padding: 20px; }
	.lk_profile { left: 240px; }
	.lk_profile .text { max-width: 140px; }
}

/* ---------- Mobile header ---------- */
.mobile_header { display: none; background: #fff; height: 50px; border-bottom: solid 1px #999; position: fixed; z-index: 900; width: 100%; left: 0; top: 0; min-width: 320px; }
.mobile_header .logo { position: absolute; left: 50%; top: 2px; transform: translateX(-50%); width: 200px; height: 45px; display: flex; align-items: center; justify-content: center; }
.mobile_header .logo img { max-height: 40px; width: auto; }
.mobile_header .show_mobile_menu { float: left; height: 50px; width: 50px; padding: 15px 12px; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; }
.mobile_header .show_mobile_menu span { display: block; height: 3px; background: #231f20; border-radius: 2px; }
.phone_mob, .lk_mob { width: 30px; height: 30px; display: block; margin-top: 10px; margin-right: 10px; background: center / contain no-repeat; }
.lk_mob { float: right; background-image: url(../img/lk.svg); }
.phone_mob { float: left; background-image: url(../img/phone.svg); }

.mobile_menu { display: none; position: fixed; z-index: 10000; top: 0; left: 0; height: 100%; width: 340px; max-width: 90vw; background: #f5f5f5; overflow: auto; box-shadow: 0 0 10px #666; }
.mobile_menu .mobile_menu_inner { padding: 50px 0 40px; }
.mobile_menu .close_menu { height: 50px; width: 50px; line-height: 50px; position: absolute; top: 0; left: 0; border: 0; background: none; font-size: 34px; cursor: pointer; }
.mobile_menu ul { list-style: none; margin: 0; padding: 0; }
.mobile_menu .item a, .mobile_menu a.item { display: block; padding: 10px 40px; text-decoration: none; cursor: pointer; font-size: 20px; line-height: 22px; }
.mobile_menu .item a:hover, .mobile_menu a.item:hover { background: #f0f0f0; }
.mobile_menu .sub-menu { display: none; }
.mobile_menu li.open > .sub-menu { display: block; }
.mobile_menu .sub-menu a { font-size: 18px; padding-left: 55px; }
.mobile_menu .menu-item-has-children > a::after { content: ' ▾'; font-size: 14px; }
.mobile_menu .m-menu--extra { border-top: 1px solid #ddd; margin-top: 10px; padding-top: 10px; }
.overflow { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 9999; }
body.menu-open .mobile_menu, body.menu-open .overflow { display: block; }

@media screen and (max-width: 850px) {
	body .wrapper { padding: 70px 15px 20px; }
	body .header { display: none; }
	body .mobile_header { display: block; }
	body .main_content { padding-top: 0; }
}

/* ---------- Content ---------- */
.main_content { padding-top: 30px; }
.title_page, .entry-content h1.title_page { font-size: 22px; font-weight: bold; margin: 0 0 5px; }
.text_page { font-size: 16px; }
.text_page > * { max-width: 100%; }
.text_page p { margin: 0 0 1em; }
.text_page h2 { font-size: 20px; margin: 1.4em 0 .5em; }
.text_page h3 { font-size: 18px; margin: 1.2em 0 .5em; }
.text_page h4, .text_page h5, .text_page h6 { font-size: 16px; margin: 1em 0 .4em; }
.text_page ul, .text_page ol { padding-left: 1.4em; margin: 0 0 1em; }
.text_page li { margin: .2em 0; }
.text_page .wp-block-image { margin: 0 0 1em; }
.text_page .wp-block-image img { height: auto; }
.text_page table { border-collapse: collapse; }
.text_page .wp-block-table td, .text_page .wp-block-table th { border: 1px solid #cfcfcf; padding: 6px 10px; }
.text_page .wp-block-table thead th { background: #f2f2f2; text-align: left; }
.text_page .is-style-price table { width: 100%; }
.text_page .is-style-price td:last-child, .text_page .is-style-price th:last-child { text-align: right; white-space: nowrap; font-weight: bold; }
.text_page .is-style-price tbody tr:nth-child(even) td { background: #fafafa; }
.video-embed { position: relative; max-width: 853px; aspect-ratio: 16 / 9; margin: 0 0 1em; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.alignwide { margin-left: 0; margin-right: 0; }
.wp-block-separator { border: 0; border-top: 1px solid #ccc; margin: 1.5em 0; }

/* Buttons */
.form_button, .wp-block-button.is-style-cross .wp-block-button__link, .wp-block-button__link {
	display: inline-block; background: #231f20; color: #fff; border: 0; border-radius: 3px; padding: 10px 22px; font-size: 16px; font-family: inherit; text-decoration: none; cursor: pointer; line-height: 1.3;
}
.form_button:hover, .wp-block-button__link:hover { opacity: .8; }
.wp-block-button.is-style-outline .wp-block-button__link { background: none; color: #231f20; border: 1px solid #231f20; }

/* Cards */
.is-style-card { background: #f5f5f5; padding: 20px 22px; border-radius: 4px; margin: 0 0 1em; }
.is-style-card > :last-child { margin-bottom: 0; }
.cards-grid, .cards-grid > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cards-grid:has(> .wp-block-group__inner-container) { display: block; }
.cards-grid .is-style-card { margin: 0; }
.cards-grid h3 { margin-top: 0; }
.cards-grid h3 a { text-decoration: none; }
.cards-grid h3 a:hover { text-decoration: underline; }
.cross-section { margin: 0 0 2em; }

/* Equipment rent grid */
.equip-grid:has(> .wp-block-group__inner-container) { display: block !important; }
.equip-grid, .equip-grid > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-top: 20px; }
.equip-item > .wp-block-group__inner-container { display: flex; flex-direction: column; height: 100%; }
.equip-item { border: 1px solid #e3e3e3; padding: 12px; display: flex; flex-direction: column; }
.equip-item .wp-block-image { margin: 0 0 10px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: #fff; }
.equip-item .wp-block-image img { max-height: 100%; width: auto; object-fit: contain; }
.equip-item h3 { font-size: 16px; margin: 0 0 6px; }
.equip-item p { margin: 0; font-size: 14px; color: #555; }

/* Accordion (details block) — same look as the contacts accordion on the old site */
.wp-block-details { margin: 0 0 6px; }
.wp-block-details > summary { list-style: none; cursor: pointer; background: #eee; padding: 18px 18px 18px 48px; position: relative; transition: background .3s; line-height: 1.2; font-weight: normal; }
.wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary::before { content: '\27A4'; position: absolute; left: 22px; top: 50%; transform: translateY(-50%) rotate(0deg); color: #777; font-weight: bold; transition: transform .4s; }
.wp-block-details[open] > summary::before { transform: translateY(-50%) rotate(90deg); }
.wp-block-details > summary:hover, .wp-block-details[open] > summary { background: #ccc; }
.wp-block-details > :not(summary) { padding-left: 18px; padding-right: 18px; }
.wp-block-details > summary + * { margin-top: 14px; }
.wp-block-details[open] { border-bottom: 1px solid #999; padding-bottom: 6px; }

/* Desktop mosaic of halls (gallery block, style «Мозаика залов») */
.wp-block-gallery.is-style-mosaic { display: grid !important; grid-template-columns: repeat(7, 1fr); gap: 1px !important; margin: 25px 0 0 !important; }
.wp-block-gallery.is-style-mosaic > figure.wp-block-image { width: auto !important; margin: 0 !important; aspect-ratio: 5 / 3; position: relative; overflow: hidden; transition: opacity .6s linear; }
.wp-block-gallery.is-style-mosaic > figure img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
.wp-block-gallery.is-style-mosaic > figure figcaption { position: absolute !important; inset: 0; display: flex !important; align-items: center; justify-content: center; text-align: center; margin: 0 !important; padding: 8px !important; background: rgba(0,0,0,.7) !important; color: #fff; font-size: 18px; text-transform: uppercase; opacity: 0; transition: opacity .3s; pointer-events: none; max-height: none !important; }
.wp-block-gallery.is-style-mosaic > figure:hover figcaption { opacity: 1; }
.wp-block-gallery.is-style-mosaic > figure.is-hidden { display: none !important; }
.wp-block-gallery.is-style-mosaic > figure.fade { opacity: 0; }
.wp-block-gallery.is-style-mosaic:not(.is-rotating) > figure:nth-child(n+22) { display: none !important; }
@media (min-width: 2561px) { .wp-block-gallery.is-style-mosaic { grid-template-columns: repeat(11, 1fr); } }
@media (min-width: 1921px) and (max-width: 2560px) { .wp-block-gallery.is-style-mosaic { grid-template-columns: repeat(8, 1fr); } }
@media (max-width: 1480px) { .wp-block-gallery.is-style-mosaic { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 1280px) { .wp-block-gallery.is-style-mosaic { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1024px) { .wp-block-gallery.is-style-mosaic { grid-template-columns: repeat(4, 1fr); } }

/* Space between the mosaic and the page text */
.wp-block-gallery.is-style-mosaic + .wp-block-gallery + *, .wp-block-gallery.is-style-mosaic + * { margin-top: 30px; }

/* Mobile tiles (gallery block, style «Плитки для телефона») */
.wp-block-gallery.is-style-tiles { display: none !important; }
@media (max-width: 850px) {
	.wp-block-gallery.is-style-mosaic { display: none !important; }
	.wp-block-gallery.is-style-tiles { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 !important; margin: 0 0 15px !important; }
	.wp-block-gallery.is-style-tiles > figure.wp-block-image { width: auto !important; margin: 0 !important; position: relative; aspect-ratio: 1 / 1; border: 1px solid #fff; overflow: hidden; }
	.wp-block-gallery.is-style-tiles > figure img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
	.wp-block-gallery.is-style-tiles > figure figcaption { position: absolute !important; inset: 0; display: flex !important; align-items: center; justify-content: center; text-align: center; margin: 0 !important; padding: 0 10px !important; background: rgba(0,0,0,.25) !important; color: #fff; font-weight: 800; font-size: 20px; line-height: 1.1; max-height: none !important; text-shadow: 0 1px 3px rgba(0,0,0,.5); pointer-events: none; }
}
@media (max-width: 500px) {
	.wp-block-gallery.is-style-tiles > figure figcaption { font-size: 16px; }
}

/* ---------- Forms ---------- */
.cross-form { max-width: 460px; margin: 0 0 1em; }
.cross-form__title { font-size: 20px; font-weight: bold; margin: 0 0 12px; }
.cross-form__row { margin: 0 0 12px; }
.cross-form__row > label { display: block; font-size: 14px; margin: 0 0 4px; color: #555; }
.cross-form__row--checkbox label, .cross-form__privacy label { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: #231f20; }
.cross-form__privacy a { color: #231f20; }
.cross-form input[type=text], .cross-form input[type=tel], .cross-form input[type=email], .cross-form input[type=date], .cross-form input[type=number], .cross-form select, .cross-form textarea {
	width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #c4c4c4; border-radius: 3px; background: #fff; color: #231f20;
}
.cross-form .invalid { border-color: #d02a47 !important; outline: 1px solid #d02a47; }
.cross-form .req { color: #d02a47; }
.cross-form__error { color: #d02a47; margin: 0 0 10px; font-size: 14px; }
.cross-form__success { font-size: 18px; padding: 14px 0; }
.cross-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cross-form.loading button { opacity: .5; cursor: wait; }

/* Modal */
.cross-modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 10001; display: flex; align-items: center; justify-content: center; padding: 15px; }
.cross-modal__box { background: #fff; padding: 30px; max-width: 420px; width: 100%; position: relative; }
.cross-modal__box h2 { margin: 0 0 16px; font-size: 22px; }
.cross-modal__close { position: absolute; right: 8px; top: 4px; border: 0; background: none; font-size: 30px; cursor: pointer; color: #666; }

/* ---------- Footer ---------- */
.store-text { display: flex; justify-content: center; font-size: 12px; margin: 16px 0 8px; }
.container_logo { display: flex; justify-content: center; }
.container_logo div { margin: 0 12px; }
.container_logo a { display: block; height: 40px; background: center / contain no-repeat; }
.container_logo .ru-store a { width: 111px; background-image: url(../img/ru-store.svg); }
.container_logo .app-store a { width: 119px; background-image: url(../img/app-store.svg); }
.footer { text-align: center; padding: 30px 0; }
.footer_menu { list-style: none; margin: 0; padding: 0; }
.footer_menu li { display: inline; }
.footer_menu li + li::before { content: '|'; margin: 0 2px; }
.footer_menu a { margin: 0 5px; font-size: 12px; }
.footer-info { color: #808184; font-size: 12px; padding: 0 15px; }

/* Cookie notice (same look as the original) */
#cookie { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); width: calc(100% - 30px); max-width: 760px; background: rgba(35,31,32,.92); color: #fff; padding: 14px 18px; border-radius: 6px; z-index: 9000; display: flex; gap: 16px; align-items: center; font-size: 13px; }
#cookie p { margin: 0 0 4px; }
#cookie a { color: #fff; }
#cookie button { background: #fff; color: #231f20; border: 0; border-radius: 20px; padding: 8px 22px; cursor: pointer; font-size: 14px; white-space: nowrap; }
@media (max-width: 600px) { #cookie { flex-direction: column; align-items: stretch; } }

/* News list */
.post-item { margin: 0 0 24px; }
.post-item h2 { margin: 0; font-size: 20px; }
.post-date { color: #808184; font-size: 13px; margin: 4px 0 8px; }
