/* Corporate overlay. Shared birthday rules stay in den-rozhdenia/. */

.esc-den-rozhdenia.is-adult.esc-korporativ .hero-bgphoto {
	opacity: .5;
}

.esc-korporativ .eyebrow,
.esc-korporativ .incl-col h3,
.esc-korporativ .hero-kicker {
	color: var(--accent-text);
}

/* ----- Rhythm: sections that continue the previous thought sit closer,
   same set as the adult birthday page. #facts, #pricing, #gallery and
   #contacts keep their top padding — they open a new topic. ----- */
.esc-korporativ #games,
.esc-korporativ #included,
.esc-korporativ #how,
.esc-korporativ #hall,
.esc-korporativ #stories,
.esc-korporativ #reviews,
.esc-korporativ #faq,
.esc-korporativ #booking,
.esc-korporativ .seo-text {
	padding-top: 0;
}

/* Hero facts: plain text with dots, not pills — pills read as buttons. */
.esc-korporativ-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 22px 0 28px;
	padding: 0;
	list-style: none;
}

.esc-korporativ-chips li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--text);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.35;
}

.esc-korporativ-chips li::before {
	content: "";
	flex: 0 0 auto;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
}

/* Inline padding widens the tap area to 44px without moving the line. */
.esc-korporativ-chips a {
	padding-block: 12px;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-decoration-color: var(--border-strong);
	text-underline-offset: 4px;
}

.esc-korporativ-chips a:hover {
	color: #fff;
	text-decoration-color: var(--accent);
}

/* The landmark goes on its own line, quieter than the three facts. */
.esc-korporativ-chips li.esc-korporativ-chips-place {
	flex-basis: 100%;
	color: var(--muted);
	font-weight: 400;
}

.esc-korporativ-chips li.esc-korporativ-chips-place::before {
	background: var(--muted-2);
}

/* Compact two-column list under the marquee — not the adult .afacts cards. */
.esc-korporativ #facts {
	padding-block: clamp(28px, 3.5vw, 48px);
}

.esc-korporativ-pros {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 48px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.esc-korporativ-pros li {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 0;
	border-bottom: 1px solid var(--border);
}

.esc-korporativ-pros b {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}

.esc-korporativ-pros span {
	color: var(--muted);
	font-size: 15px;
	line-height: 1.45;
}

@media (max-width: 760px) {
	.esc-korporativ-pros {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.esc-korporativ-pros li {
		padding: 14px 0;
	}
}

/* Half the accent of the birthday card: warmer than flat surface, still B2B. */
.esc-korporativ .cta-card {
	background: linear-gradient(135deg, rgba(255, 0, 4, .08), rgba(255, 0, 4, .015)), var(--surface);
}

.esc-korporativ-more {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	justify-content: center;
	margin-top: 44px;
}

.esc-korporativ-catalog {
	color: var(--muted);
	font-size: 15px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.esc-korporativ-catalog:hover {
	color: var(--text);
}

.esc-korporativ-faq-head {
	margin-inline: auto;
	text-align: center;
}

.esc-korporativ-faq-head .eyebrow {
	justify-content: center;
}

.esc-korporativ-reviews-badge {
	align-self: center;
}

.esc-korporativ-from {
	margin-top: 6px;
	color: var(--muted);
	font-size: 14px;
}

.esc-korporativ .badge-rating .star {
	display: inline-block;
	width: 12px;
	height: 12px;
	vertical-align: -1px;
}

.esc-korporativ .badge-rating .star svg {
	width: 12px;
	height: 12px;
	display: block;
}

@media (max-width: 760px) {
	.esc-korporativ-chips {
		gap: 6px 18px;
		margin: 18px 0 24px;
	}

	.esc-korporativ-chips li {
		font-size: 15px;
	}
}

/* ----- Price: quiet card, no birthday glow ----- */
.esc-korporativ .esc-korporativ-price {
	display: flex;
	justify-content: center;
}

.esc-korporativ .esc-korporativ-price .price {
	max-width: 560px;
	width: 100%;
}

.esc-korporativ .esc-korporativ-price-body {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.esc-korporativ .price.featured {
	border-color: transparent;
	background: linear-gradient(180deg, rgba(255, 0, 4, .14), rgba(255, 0, 4, .02)), var(--surface);
	box-shadow: var(--shadow-glow);
	animation: none;
}

/* No «Выбирают чаще всего» badge: there is only one rental format. */
.esc-korporativ .price.featured::before {
	display: none;
}

.esc-korporativ .price.featured .price-photo::after {
	background: linear-gradient(180deg, rgba(23, 23, 23, 0) 30%, rgba(46, 26, 27, .6) 72%, #2e1e1f 100%);
}

.esc-korporativ-hour-chip {
	display: inline-block;
	margin-left: 10px;
	padding: 3px 8px;
	border: 1px solid rgba(255, 0, 4, .4);
	border-radius: 999px;
	background: rgba(255, 0, 4, .12);
	color: var(--accent-text);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .02em;
	vertical-align: 2px;
	white-space: nowrap;
}

.esc-korporativ #pricing .fineprint {
	text-align: center;
	max-width: 720px;
	margin-inline: auto;
}

.esc-korporativ #pricing .fineprint p {
	margin: 0 0 8px;
}

.esc-korporativ #pricing .fineprint p:last-child {
	margin-bottom: 0;
}

@media (min-width: 761px) {
	.esc-korporativ .esc-korporativ-price .price {
		max-width: 920px;
		display: grid;
		grid-template-columns: minmax(280px, 380px) 1fr;
		align-items: stretch;
		padding: 0;
		overflow: hidden;
	}

	.esc-korporativ .esc-korporativ-price .price-photo {
		margin: 0;
		height: auto;
		min-height: 100%;
		border-radius: 0;
	}

	.esc-korporativ .esc-korporativ-price-body {
		padding: 36px 36px 36px 28px;
	}

	.esc-korporativ .esc-korporativ-price .price .desc {
		min-height: 0;
	}
}

@media (max-width: 760px) {
	.esc-korporativ .esc-korporativ-price .price {
		max-width: none;
	}

	.esc-korporativ .esc-korporativ-price .price-photo {
		height: 200px;
	}
}

/* ----- Hero on phone: text and buttons first, then a wide photo ----- */
@media (max-width: 760px) {
	.esc-den-rozhdenia.is-adult.esc-korporativ .hero {
		min-height: auto;
		padding-bottom: 36px;
	}

	.esc-den-rozhdenia.is-adult.esc-korporativ .hero-bgphoto {
		opacity: .3;
	}

	.esc-den-rozhdenia.is-adult.esc-korporativ .hero-grid {
		display: flex;
		flex-direction: column;
		gap: 20px;
	}

	.esc-den-rozhdenia.is-adult.esc-korporativ .hero-photo,
	.esc-den-rozhdenia.is-adult.esc-korporativ .hero-photo.loaded {
		max-width: 100%;
		margin-inline: auto;
		aspect-ratio: 16 / 10;
		object-position: center 30%;
		border-radius: 16px;
	}

	.esc-korporativ .hero h1 {
		font-size: clamp(28px, 8.4vw, 34px);
	}

	.esc-korporativ .hero p.lead {
		margin-top: 14px;
		font-size: 16px;
	}

	/* Scenario: one photo above the timeline, the second one stays hidden with
	   the duration switch. Without it the block is a bare list of rows. */
	.esc-korporativ .how-grid {
		display: flex;
		flex-direction: column;
		gap: 18px;
	}

	.esc-korporativ .how-photo {
		order: -1;
		min-height: 0;
		height: 200px;
		border-radius: var(--radius);
	}

	.esc-korporativ .how-photo.tl-hidden {
		display: none;
	}
}

/* ----- Invoice for companies (same idea as /podarok/ #kompaniyam) ----- */
.esc-korporativ-b2b {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 28px;
	align-items: center;
	margin-top: 56px;
	padding: clamp(24px, 4vw, 48px);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

.esc-korporativ-b2b h3 {
	margin: 12px 0 14px;
	font-size: clamp(22px, 2.4vw, 30px);
	font-weight: 700;
	line-height: 1.2;
}

.esc-korporativ-b2b p {
	max-width: 520px;
	color: var(--muted);
	font-size: 17px;
	line-height: 1.6;
	text-wrap: pretty;
}

.esc-korporativ-b2b-r {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.esc-korporativ-b2b-r .btn {
	width: 100%;
	max-width: 340px;
}

.esc-korporativ-b2b-r .btn svg {
	width: 18px;
	height: 18px;
}

.esc-korporativ .esc-korporativ-b2b-r .esc-korporativ-req-copy {
	display: inline-flex;
	width: 100%;
	height: auto;
	min-height: 52px;
	padding: 16px 28px;
	border: 1px solid var(--accent);
	border-radius: 6px;
	background: transparent;
	color: var(--text);
	font-size: 16px;
}

.esc-korporativ .esc-korporativ-b2b-r .esc-korporativ-req-copy:hover {
	border-color: var(--accent);
	color: #fff;
}

.esc-korporativ .esc-korporativ-b2b-r .esc-korporativ-req-copy::after {
	content: none;
}

.esc-korporativ-b2b-note {
	max-width: 340px;
	color: var(--muted-2);
	font-size: 14px;
	line-height: 1.5;
}

.esc-korporativ-invoice-wrap {
	position: relative;
	width: 100%;
	max-width: 340px;
	padding-bottom: 14px;
}

.esc-korporativ-invoice-back {
	position: absolute;
	top: 14px;
	right: -10px;
	bottom: 0;
	left: 18px;
	border-radius: 10px;
	background: #d9d9d9;
	transform: rotate(3deg);
}

.esc-korporativ-invoice {
	position: relative;
	padding: 20px 22px;
	border-radius: 10px;
	background: #f2f2f2;
	color: #1c1c1c;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
	transform: rotate(-2deg);
}

.esc-korporativ-invoice .top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(28, 28, 28, .16);
}

/* Legal name with the tax number is long: let it wrap instead of pushing
   the «безнал» pill out of the card on narrow phones. */
.esc-korporativ-invoice .top > span:first-child {
	min-width: 0;
}

.esc-korporativ-invoice .top b {
	display: block;
	font-size: 15px;
	font-weight: 700;
}

.esc-korporativ-invoice .top small {
	display: block;
	font-size: 11px;
	line-height: 1.35;
	color: #5a5a5a;
	overflow-wrap: anywhere;
}

.esc-korporativ-invoice .pill {
	padding: 3px 8px;
	border: 1px solid rgba(255, 0, 4, .35);
	border-radius: 999px;
	color: var(--accent);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.esc-korporativ-invoice .rows {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-block: 12px;
	font-size: 12px;
}

.esc-korporativ-invoice .rows > span {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.esc-korporativ-invoice .rows i {
	font-style: normal;
	color: #3a3a3a;
}

.esc-korporativ-invoice .rows b {
	font-weight: 700;
	white-space: nowrap;
}

.esc-korporativ-invoice .hr {
	display: block;
	height: 1px;
	background: rgba(28, 28, 28, .12);
}

.esc-korporativ-invoice .total {
	font-size: 14px;
}

.esc-korporativ-invoice .fin {
	display: block;
	padding-top: 10px;
	border-top: 1px solid rgba(28, 28, 28, .16);
	color: #5a5a5a;
	font-size: 11px;
}

@media (max-width: 760px) {
	.esc-korporativ-b2b {
		margin-top: 40px;
		padding: 24px 20px;
	}

	.esc-korporativ-b2b-r,
	.esc-korporativ-b2b-r .btn,
	.esc-korporativ-invoice-wrap {
		max-width: none;
		width: 100%;
	}
}

/* ----- Booking extras ----- */
.esc-korporativ-cta-extra {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
	position: relative;
	z-index: 2;
}

/* On the phone they used to be hidden: the invite link had nowhere else to go. */
@media (max-width: 760px) {
	.esc-korporativ-cta-extra {
		flex-direction: column;
		gap: 10px;
		margin-top: 22px;
	}

	.esc-korporativ-cta-extra .btn {
		width: 100%;
	}
}

/* ----- Form ----- */
.esc-korporativ #f-company,
.esc-korporativ #f-club {
	margin-top: 0;
}

.esc-korporativ .field input,
.esc-korporativ .field select,
.esc-korporativ .step-btn {
	min-height: 52px;
	height: 52px;
	font-size: 16px;
	border-radius: 10px;
}

.esc-korporativ .field input[type="date"] {
	color-scheme: dark;
}

.esc-korporativ-people-hint {
	color: var(--muted-2);
	font-size: 13px;
}

.esc-korporativ select[name="club_slug"] {
	width: 100%;
	appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
}

.esc-korporativ select[name="club_slug"]:focus {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* Date hint is advice, not an error: no red frame. */
.esc-korporativ .date-hint {
	background: rgba(255, 255, 255, .03);
	border-color: var(--border);
}

.esc-korporativ .date-hint svg {
	color: var(--muted-2);
}

.esc-korporativ .consent {
	align-items: center;
}

.esc-korporativ .consent input {
	width: 22px;
	height: 22px;
	margin: 0;
}

.esc-korporativ .consent label {
	display: block;
	min-height: 44px;
}

.esc-korporativ .field label .req,
.esc-korporativ .consent-err {
	color: var(--accent-text);
}

@media (max-width: 760px) {
	.esc-korporativ .form .row {
		grid-template-columns: 1fr;
	}
}

/* ----- Sticky bar: the price is the first thing asked on the phone ----- */
.esc-korporativ-sticky-price {
	grid-column: 1 / -1;
	padding: 0 2px 2px;
	color: var(--muted-2);
	font-size: 12.5px;
	line-height: 1.3;
	text-align: center;
}

.esc-korporativ-sticky-price b {
	color: var(--text);
	font-weight: 700;
}

/* The bar grew by one line — keep the page tail from hiding under it. */
@media (max-width: 760px) {
	.esc-korporativ {
		padding-bottom: calc(106px + env(safe-area-inset-bottom, 0px));
	}
}

/* ----- Contacts, hall, gallery, stories ----- */
.esc-korporativ .copy-btn,
.esc-korporativ .copy-ic {
	width: 44px;
	height: 44px;
}

.esc-korporativ .contact-row .lbl {
	text-transform: none;
	letter-spacing: 0;
	font-weight: 500;
}

.esc-korporativ .contact-row .sub a {
	color: inherit;
	font-weight: 500;
	font-size: inherit;
}

.esc-korporativ .contact-row .sub a:hover {
	color: var(--accent);
}

.esc-korporativ .g-showmore {
	border-radius: 6px;
}

.esc-korporativ .bday-arrow {
	width: 44px;
	height: 44px;
}

.esc-korporativ .bday-dots i,
.esc-korporativ .bday-dots button {
	width: 44px;
	height: 44px;
	border-radius: 0;
	background: transparent;
	position: relative;
}

.esc-korporativ .bday-dots i::after,
.esc-korporativ .bday-dots button::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .35);
	transform: translate(-50%, -50%);
}

.esc-korporativ .bday-dots i.on::after,
.esc-korporativ .bday-dots button.on::after {
	width: 20px;
	border-radius: 4px;
	background: var(--accent);
}

/* Twelve photos below the fold: the browser skips their layout until they are
   close. Not applied to #stories — the carousel measures card widths on load
   and skipped content reports the wrong ones. */
.esc-korporativ .gallery {
	content-visibility: auto;
	contain-intrinsic-size: auto 700px;
}

/* Gallery: adult.css already turns the masonry into a grid. Corporate photos
   are mixed — from 0.63 to 1.5 — so the frame is squarer than the 3/4 of the
   birthday page: less is cut off both from portraits and from landscapes.
   Needs .is-adult in the selector, otherwise adult.css wins. */
.esc-den-rozhdenia.is-adult.esc-korporativ .gallery .g-item {
	aspect-ratio: 4 / 5;
}

@media (hover: none) {
	.esc-korporativ .bday-arrow {
		opacity: 1;
		pointer-events: auto;
	}
}

@media (max-width: 760px) {
	.esc-korporativ .bday-arrow {
		opacity: 1;
		pointer-events: auto;
	}

	.esc-korporativ .map {
		min-height: 280px;
	}

	.esc-korporativ .stories-nav {
		display: flex;
		margin: 0 0 8px;
	}

	.esc-korporativ .st-arrow {
		width: 44px;
		height: 44px;
	}
}

/* Corporate first screen on phones (25.09.2026): badges → kicker → H1 → lead → facts line → photo → buttons.
   Same trick as den-rozhdenia: `.hero-inner{display:contents}` lifts its children into the flex column of `.hero-grid`,
   so the photo moves above the buttons with `order` while the DOM stays as it is for desktop. */
@media (max-width: 760px) {
	.esc-den-rozhdenia.is-adult.esc-korporativ .hero { padding-top: calc(var(--nav-h) + 12px); }
	.esc-den-rozhdenia.is-adult.esc-korporativ .hero-bgphoto { opacity: .22; object-position: center top; }
	.esc-den-rozhdenia.is-adult.esc-korporativ .hero-grid { gap: 0; align-items: stretch; }
	.esc-den-rozhdenia.is-adult.esc-korporativ .hero-inner { display: contents; }
	.esc-den-rozhdenia.is-adult.esc-korporativ .hero-badges { order: 1; margin-bottom: 14px; gap: 6px; }
	.esc-den-rozhdenia.is-adult.esc-korporativ .hero-badges .badge { padding: 5px 11px; font-size: 12px; gap: 7px; background: rgba(28,28,28,.6); }
	.esc-den-rozhdenia.is-adult.esc-korporativ .hero-kicker { order: 2; margin: 0 0 8px; font-size: 12px; letter-spacing: .16em; }
	.esc-den-rozhdenia.is-adult.esc-korporativ .hero h1 { order: 3; font-size: clamp(28px, 8vw, 32px); line-height: 1.08; }
	.esc-den-rozhdenia.is-adult.esc-korporativ .hero p.lead { order: 4; margin: 10px 0 0; font-size: 15px; line-height: 1.5; }
	.esc-den-rozhdenia.is-adult.esc-korporativ .esc-korporativ-chips { order: 5; margin: 14px 0 0; gap: 6px 16px; }
	.esc-den-rozhdenia.is-adult.esc-korporativ .esc-korporativ-chips li { font-size: 14.5px; }
	.esc-den-rozhdenia.is-adult.esc-korporativ .esc-korporativ-chips a { padding-block: 6px; }
	.esc-den-rozhdenia.is-adult.esc-korporativ .hero-media { order: 6; margin-top: 16px; justify-content: stretch; }
	.esc-den-rozhdenia.is-adult.esc-korporativ .hero-photo,
	.esc-den-rozhdenia.is-adult.esc-korporativ .hero-photo.loaded { width: 100%; max-width: none; aspect-ratio: 4 / 3; object-position: center 35%; border-radius: 18px; box-shadow: 0 22px 44px -20px rgba(0,0,0,.8); }
	.esc-den-rozhdenia.is-adult.esc-korporativ .hero-actions { order: 7; margin-top: 14px; gap: 10px; }
}
@media (max-width: 340px) {
	.esc-den-rozhdenia.is-adult.esc-korporativ .hero h1 { font-size: 26px; }
}

