/* Maximum Stock – oferta / informacyjne strony */
.ms-oferta {
	--ms-text: #131516;
	--ms-text-soft: #333333;
	--ms-accent: #131516;
	--ms-border: #e5e5e5;
	--ms-bg: #f7f7f7;
	margin: 0 0 2rem;
	color: var(--ms-text);
	line-height: 1.65;
	font-size: 16px;
}

.ms-oferta *,
.ms-oferta *::before,
.ms-oferta *::after {
	box-sizing: border-box;
}

/* —— Hero —— */
.ms-oferta-hero {
	position: relative;
	min-height: 300px;
	display: flex;
	align-items: flex-end;
	padding: 2.5rem 1.5rem;
	background-color: #1a1a1a;
	background-size: cover;
	background-position: center;
	margin: 0 calc(50% - 50vw) 2rem;
	width: 100vw;
	max-width: 100vw;
}

.ms-oferta-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.45) 0%,
		rgba(0, 0, 0, 0.78) 100%
	);
}

.ms-oferta-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;
}

/* Tema h1/h2 override – hero metni her zaman beyaz */
.ms-oferta .ms-oferta-hero h1,
.ms-oferta .ms-oferta-hero .ms-oferta-hero__title,
.ms-oferta .ms-oferta-hero .ms-oferta-hero__subtitle {
	color: #ffffff !important;
}

.ms-oferta-hero__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.ms-oferta-hero__subtitle {
	margin: 0;
	font-size: clamp(1rem, 2vw, 1.15rem);
	opacity: 1;
	max-width: 720px;
	font-weight: 400;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* —— Treść —— */
.ms-oferta-body {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem 2rem;
}

.ms-oferta-body > *:first-child {
	margin-top: 0;
}

.ms-oferta-body h2 {
	font-size: 1.5rem;
	font-weight: 600;
	margin: 2rem 0 1rem;
	letter-spacing: -0.01em;
	color: var(--ms-text) !important;
}

.ms-oferta-body h3 {
	font-size: 1.15rem;
	font-weight: 600;
	margin: 0 0 0.75rem;
	color: var(--ms-text) !important;
}

.ms-oferta-body p {
	margin: 0 0 1rem;
	color: var(--ms-text) !important;
}

.ms-oferta-body ul {
	margin: 0 0 1.25rem;
	padding-left: 1.25rem;
	color: var(--ms-text) !important;
}

.ms-oferta-body li {
	margin-bottom: 0.4rem;
	color: var(--ms-text) !important;
}

.ms-oferta-body a:not(.ms-oferta-card) {
	color: var(--ms-text);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ms-oferta-body a:not(.ms-oferta-card):hover {
	opacity: 0.75;
}

/* —— Karty A/B/C —— */
.ms-oferta-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	margin: 1.25rem 0 2rem;
}

@media (max-width: 767px) {
	.ms-oferta-cards {
		grid-template-columns: 1fr;
	}
}

.ms-oferta-card {
	display: flex;
	flex-direction: column;
	padding: 1.5rem;
	border: 1px solid var(--ms-border);
	border-radius: 10px;
	background: #fff;
	text-decoration: none !important;
	color: var(--ms-text) !important;
	transition: border-color 0.2s, box-shadow 0.2s;
	min-height: 100%;
}

.ms-oferta-card:hover {
	border-color: var(--ms-accent);
	box-shadow: 1px 8px 24px rgba(0, 0, 0, 0.08);
	color: var(--ms-text) !important;
}

.ms-oferta-card__grade {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	line-height: 1.2;
	color: var(--ms-text) !important;
}

.ms-oferta-card__desc {
	font-size: 0.95rem;
	color: var(--ms-text-soft) !important;
	flex: 1;
	margin-bottom: 1rem;
	line-height: 1.5;
}

.ms-oferta-card__link {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--ms-text) !important;
	text-decoration: none !important;
}

/* —— Blok kategorii (A/B/C detay) —— */
.ms-oferta-grade {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	margin: 1rem 0 1.5rem;
	padding: 1.75rem;
	background: #fff;
	border-radius: 12px;
	border: 1px solid var(--ms-border);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
	.ms-oferta-grade {
		grid-template-columns: 320px 1fr;
		gap: 2rem;
		align-items: center;
	}
}

.ms-oferta-grade__media {
	overflow: hidden;
	border-radius: 10px;
	background: var(--ms-bg);
	line-height: 0;
}

.ms-oferta-grade__media img,
.ms-oferta-grade > img {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	min-height: 240px;
	border-radius: 10px;
	display: block;
	object-fit: cover;
	aspect-ratio: 4 / 5;
}

.ms-oferta-grade__content p {
	color: var(--ms-text) !important;
}

.ms-oferta-grade__content p strong {
	color: var(--ms-text) !important;
}

.ms-oferta-grade__content a {
	display: inline-block;
	margin-top: 0.5rem;
	color: var(--ms-text) !important;
	font-weight: 600;
	text-decoration: none !important;
	border-bottom: 1px solid var(--ms-text);
}

.ms-oferta-grade__content a:hover {
	opacity: 0.7;
}

/* —— Feature grid —— */
.ms-oferta-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.25rem;
	margin: 1.5rem 0;
}

.ms-oferta-feature {
	padding: 1.25rem;
	background: #fff;
	border: 1px solid var(--ms-border);
	border-radius: 10px;
}

.ms-oferta-feature h3 {
	margin-top: 0;
	font-size: 1.05rem;
	color: var(--ms-text) !important;
}

.ms-oferta-feature p {
	margin-bottom: 0;
	font-size: 0.95rem;
	color: var(--ms-text-soft) !important;
}

/* —— CTA —— */
.ms-oferta-cta {
	margin: 2rem 0 0;
	padding: 1.75rem;
	background: var(--ms-accent);
	color: #fff;
	border-radius: 10px;
	text-align: center;
}

.ms-oferta-cta p {
	color: rgba(255, 255, 255, 0.9) !important;
	margin-bottom: 1rem;
}

.ms-oferta-cta a {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	background: #fff;
	color: var(--ms-accent) !important;
	text-decoration: none !important;
	font-weight: 600;
	border-radius: 6px;
}

.ms-oferta-cta a:hover {
	opacity: 0.92;
}

/* —— Formularz —— */
.ms-oferta-form-wrap {
	max-width: 720px;
	margin: 1.5rem auto 0;
	padding: 1.5rem;
	background: var(--ms-bg);
	border-radius: 10px;
	border: 1px solid var(--ms-border);
}
