/* =========================================================================
   METROPARK — главная (desktop), блоки 2026: «О Метропарке», «Активности», «Контакты».
   Резиновые: контейнер min(1240px, 100% − поля), сетки перестраиваются — ничего не выходит за края.
   Старое правило `* { font-size:10px; color:#444 }` — поэтому шрифт и цвет заданы явно.
   ========================================================================= */
.home-sec, .home-sec * { box-sizing: border-box; font-family: "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif; }
.home-sec { overflow: hidden; }
.home-wrap { width: min(1240px, 100% - clamp(32px, 5vw, 64px)); margin: 0 auto; }
.home-h {
	margin: 0 0 clamp(16px, 2vw, 24px); padding: 0;
	font-size: clamp(24px, 2.4vw, 32px) !important; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; line-height: 1.1;
}
.home-sec ul { list-style: none; margin: 0; padding: 0; }
.home-sec svg { display: block; }
/* старое `* { color:#444 }` красит и SVG — иконки берут цвет у своего контейнера */
.home-sec svg, .home-sec svg * { color: inherit !important; }

/* =================== О МЕТРОПАРКЕ =================== */
.home-about { padding: clamp(32px, 4vw, 52px) 0 clamp(36px, 4.5vw, 60px); background: #080626; }
.home-about .home-h { color: #fff; }
.about-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.about-card {
	position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 18px;
	background: #14113a; text-decoration: none; isolation: isolate;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
	transform: translateY(0); transition: transform .45s cubic-bezier(.22, .61, .36, 1), box-shadow .45s;
}
.about-card__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .8s cubic-bezier(.22, .61, .36, 1), filter .5s; }
.about-card__shade {
	position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(180deg, rgba(8, 6, 38, 0) 30%, rgba(8, 6, 38, .72) 56%, rgba(8, 6, 38, .96) 74%, #080626 100%);
	transition: background .45s;
}
.about-card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: clamp(16px, 1.8vw, 24px); }
.about-card__icon {
	display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px; border-radius: 14px;
	color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	transition: background .3s, transform .45s cubic-bezier(.22, .61, .36, 1);
}
.about-card__icon svg { width: 24px; height: 24px; }
.about-card__title { font-size: clamp(17px, 1.45vw, 21px) !important; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff !important; line-height: 1.15; }
.about-card__sub { font-size: 13.5px !important; color: rgba(255, 255, 255, .8) !important; line-height: 1.35; }
.about-card__more {
	display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
	font-size: 13px !important; font-weight: 700; color: #fff !important; letter-spacing: .03em;
	max-height: 0; opacity: 0; transform: translateY(6px); transition: max-height .4s, opacity .35s, transform .35s;
}
.about-card__more svg { width: 16px; height: 16px; color: #fff; }
.about-card:hover, .about-card:focus-visible { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(0, 0, 0, .5); outline: none; }
.about-card:focus-visible { box-shadow: 0 0 0 3px #fff, 0 22px 44px rgba(0, 0, 0, .5); }
.about-card:hover .about-card__img, .about-card:focus-visible .about-card__img { transform: scale(1.07); }
.about-card:hover .about-card__shade { background: linear-gradient(180deg, rgba(8, 6, 38, .05) 22%, rgba(8, 6, 38, .78) 52%, rgba(8, 6, 38, .97) 70%, #080626 100%); }
.about-card:hover .about-card__icon { background: #ec5870; border-color: #ec5870; transform: rotate(-6deg) scale(1.05); }
.about-card:hover .about-card__more, .about-card:focus-visible .about-card__more { max-height: 24px; opacity: 1; transform: none; }

/* =================== АКТИВНОСТИ =================== */
.home-acts { padding: clamp(30px, 3.6vw, 48px) 0 clamp(26px, 3vw, 40px); background: #ec5870; }
.home-acts .home-h { color: #fff; margin: 0; }
.acts-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: clamp(16px, 2vw, 24px); }
.acts-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .16); }
.acts-tab {
	height: 36px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer; background: transparent;
	font-size: 13px !important; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff !important;
	transition: background .2s, color .2s;
}
.acts-tab:hover { background: rgba(255, 255, 255, .18); }
.acts-tab.is-active { background: #fff; color: #d43d57 !important; box-shadow: 0 4px 12px rgba(120, 20, 40, .25); }
.acts-tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.acts-stage { position: relative; }
.acts-track {
	--gap: clamp(12px, 1.4vw, 20px); --per: 3;
	display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding: 6px 2px 14px; margin: -6px -2px 0; scrollbar-width: none; overscroll-behavior-x: contain;
}
.acts-track::-webkit-scrollbar { display: none; }
.acts-track:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 12px; }
.act-item { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); min-width: 0; scroll-snap-align: start; }
.act-item[hidden] { display: none; }
.act-card {
	display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 18px; background: #fff;
	text-decoration: none; box-shadow: 0 8px 24px rgba(120, 20, 40, .22);
	transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s;
}
a.act-card:hover, a.act-card:focus-visible { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(120, 20, 40, .35); outline: none; }
/* афиша целиком (contain), свободное место — размытый фон из той же картинки */
.act-card__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #2a2d34; isolation: isolate; }
.act-card__img::before {
	content: ""; position: absolute; inset: -20px; z-index: -1;
	background: var(--bg) center / cover no-repeat; filter: blur(18px) saturate(1.2) brightness(.8); transform: scale(1.1);
}
.act-card__img img { position: relative; width: 100%; height: 100%; max-width: none; object-fit: contain; display: block; transition: transform .6s cubic-bezier(.22, .61, .36, 1); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); }
a.act-card:hover .act-card__img img { transform: scale(1.03); }
.act-card__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.act-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.act-badge {
	display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 6px;
	font-size: 11px !important; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff !important; background: #6b7280;
}
.act-badge--activity { background: #7c3aed; }
.act-badge--news { background: #0f5ea8; }
.act-badge--discounts { background: #e21a20; }
.act-badge--collections { background: #0d9488; }
.act-badge--shares { background: #c026d3; }
.act-card__date { font-size: 12.5px !important; color: #6b7280 !important; }
.act-card__title {
	font-size: 16.5px !important; font-weight: 700; line-height: 1.3; color: #1f2937 !important;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.act-card__shop { margin-top: auto; font-size: 12px !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #c84927 !important; }

.acts-nav {
	position: absolute; top: calc(50% - 28px); z-index: 3; display: grid; place-items: center;
	width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
	background: #fff; color: #d43d57; box-shadow: 0 8px 22px rgba(120, 20, 40, .3);
	transition: transform .2s, opacity .2s, background .2s;
}
.acts-nav svg { width: 22px; height: 22px; }
.acts-nav--prev { left: -23px; }
.acts-nav--next { right: -23px; }
.acts-nav:hover { transform: scale(1.08); }
.acts-nav:disabled { opacity: 0; pointer-events: none; }
.acts-nav:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.acts-empty { margin: 20px 0; font-size: 16px !important; color: #fff !important; text-align: center; }

.acts-foot { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 8px; }
.acts-dots { display: flex; gap: 6px; }
.acts-dots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .45); transition: width .3s, background .3s; }
.acts-dots i.is-on { width: 24px; background: #fff; }
.acts-count, .acts-count * { font-size: 13px !important; font-weight: 700; color: #fff !important; font-variant-numeric: tabular-nums; }

/* =================== КОНТАКТЫ =================== */
.home-contacts { padding: clamp(36px, 4.4vw, 60px) 0 clamp(120px, 12vw, 190px); background-size: cover !important; background-position: center top !important; }
.home-contacts .home-h { color: #fff; text-shadow: 0 2px 12px rgba(10, 40, 80, .45); }
.cont-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.cont-card {
	display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0;
	padding: clamp(18px, 1.8vw, 24px); border-radius: 18px;
	background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .9);
	-webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
	box-shadow: 0 12px 34px rgba(15, 45, 80, .16);
	transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s;
}
.cont-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(15, 45, 80, .24); }
.cont-card__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; border-radius: 14px; background: linear-gradient(135deg, #0f5ea8, #2b8de0); color: #fff; fill: #fff; box-shadow: 0 6px 16px rgba(15, 94, 168, .35); }
.cont-card__icon svg { width: 24px; height: 24px; fill: currentColor; }
.cont-card__ttl { font-size: 12px !important; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #6b7480 !important; }
.cont-card__main, .cont-card__main * { font-size: clamp(16px, 1.3vw, 19px) !important; font-weight: 800; color: #1f2937 !important; line-height: 1.25; }
.cont-card__sub, .cont-card__sub > span:not(.mp-status) { font-size: 13.5px !important; color: #4b5563 !important; line-height: 1.4; }
a.cont-card__link { text-decoration: none; }
a.cont-card__link:hover, a.cont-card__link:hover * { color: #0f5ea8 !important; }
.cont-card__btn {
	display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px;
	font-size: 13.5px !important; font-weight: 700; color: #0f5ea8 !important; text-decoration: none;
}
.cont-card__btn svg { width: 16px; height: 16px; color: #0f5ea8; transition: transform .25s; }
.cont-card__btn:hover svg { transform: translateX(4px); }
.mp-status--card { height: 30px; margin-top: 2px; }

/* =================== АДАПТИВ =================== */
@media (max-width: 1100px) {
	.about-grid, .cont-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.about-card { aspect-ratio: 4 / 3; }
	.acts-track { --per: 2; }
	.acts-nav--prev { left: -12px; } .acts-nav--next { right: -12px; }
}
@media (max-width: 640px) {
	.about-grid, .cont-grid { grid-template-columns: minmax(0, 1fr); }
	.acts-track { --per: 1.15; }
	.acts-nav { display: none; }
	.acts-head { flex-direction: column; align-items: flex-start; }
	.acts-tabs { border-radius: 16px; }
	.about-card__more { max-height: 24px; opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.about-card, .about-card__img, .act-card, .act-card__img img, .cont-card, .acts-track { transition: none; scroll-behavior: auto; }
}
.cont-card__live { color: #15803d !important; font-weight: 700; font-size: inherit !important; }

/* Контакты: под карточками — остров с достопримечательностями Баку (Пламенные башни, Девичья башня, мечеть, флаг).
   cont_bg_big.jpg 1680×945: остров по высоте 39–61 %, под ним вода 38,6 %. Картинка прижата к низу блока
   (видно ~50px воды), высота картинки --h, отступ под карточками = место под остров. */
.home-contacts {
	--h: max(56.25vw, 1000px);
	background-color: #5aa4dc !important;
	background-image:
		linear-gradient(to bottom, #5aa4dc 0, rgba(90, 164, 220, 0) 100%),
		url(../images/main/cont_bg_big.jpg),
		linear-gradient(to bottom, #2a7cc4 0, #5aa4dc 100%) !important;
	background-repeat: no-repeat !important;
	background-size: 100% 140px, auto var(--h), 100% max(0px, calc(100% - (50px + 0.614 * var(--h)))) !important;
	background-position: center bottom calc(50px + 0.614 * var(--h) - 140px), center bottom calc(50px - 0.386 * var(--h)), center top !important;
	padding-bottom: calc(90px + 0.235 * var(--h)) !important;
}
@media (max-width: 1100px) { .home-contacts { --h: 1100px; } }
/* телефон: карточки в столбик — сверху небо, остров внизу; шов края картинки скрыт плавным переходом */
@media (max-width: 809px) { .home-contacts { --h: 640px; padding-bottom: calc(80px + 0.235 * var(--h)) !important; } }
