/*
 * EuroSpeak — biblioteka komponentów treści podstron.
 *
 * Scope: wszystko żyje pod .es-content, żeby nic nie wyciekło do reszty
 * motywu (nagłówek, slider, stopka mają już swój styl i działają dobrze —
 * ten plik naprawia tylko to, co jest MIĘDZY nagłówkiem strony a stopką).
 *
 * Paleta i typografia PRZEJĘTE ze strony głównej (zmierzone w przeglądarce
 * przez getComputedStyle), nie wymyślone od nowa — dzięki temu podstrony
 * wyglądają jak część tej samej marki, a nie doklejony inny styl:
 *   - font nagłówków: Ubuntu 700 (--zilom-heading-font-family)
 *   - font tekstu: Catamaran (--zilom-font-sans-serif)
 *   - kolor akcentu/przycisków: #4D5FE3 (kolor przycisku w hero slajderze)
 *   - kolor nagłówków/tła ciemnego: #1C1E27 (ten sam co stopka i nagłówek)
 *   - jasne tło sekcji: #F1F2F6 (ten sam co sekcje na stronie głównej)
 */

.es-content {
	--es-primary: #4D5FE3;
	--es-primary-dark: #3A4BC7;
	--es-primary-soft: rgba(77, 95, 227, .1);
	--es-ink: #1C1E27;
	--es-ink-soft: #75778380;
	--es-text: #757783;
	--es-bg-soft: #F1F2F6;
	--es-gold: #F0A93B;
	--es-radius-lg: 20px;
	--es-radius-md: 14px;
	--es-radius-sm: 10px;
	--es-shadow: 0 10px 40px rgba(28, 30, 39, .08);
	--es-shadow-hover: 0 18px 50px rgba(77, 95, 227, .2);
	max-width: 1170px;
	margin: 0 auto;
	padding: 6px 20px 40px;
	position: relative;
}

@media (min-width: 1210px) { .es-content { padding-left: 0; padding-right: 0; } }

.es-content * { box-sizing: border-box; }

/* ===== Wprowadzenie ===== */
.es-lead {
	font-size: 20px;
	line-height: 1.6;
	color: var(--es-ink);
	max-width: 760px;
	margin: 10px 0 36px;
	font-weight: 500;
}

.es-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }

.es-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--es-bg-soft);
	color: var(--es-ink);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .3px;
	padding: 8px 16px;
	border-radius: 999px;
}
.es-badge i { color: var(--es-primary); font-size: 12px; }
.es-badge--primary { background: var(--es-primary); color: #fff; }
.es-badge--primary i { color: #fff; }

/* ===== Sekcje i nagłówki ===== */
.es-section { margin: 56px 0; }
.es-section:first-of-type { margin-top: 12px; }

.es-eyebrow {
	display: inline-block;
	font-family: var(--zilom-font-sans-serif, inherit);
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--es-primary);
	margin-bottom: 10px;
}

.es-content h2 {
	font-family: var(--zilom-heading-font-family, inherit);
	font-size: 32px;
	font-weight: 700;
	color: var(--es-ink);
	line-height: 1.25;
	margin: 0 0 14px;
}

.es-section-head { margin-bottom: 30px; }
.es-section-head p { color: var(--es-text); font-size: 16px; max-width: 640px; margin: 0; }

/* ===== Siatki i karty ===== */
.es-grid { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.es-grid--2 { grid-template-columns: repeat(2, 1fr); }
.es-grid--3 { grid-template-columns: repeat(3, 1fr); }
.es-grid--4 { grid-template-columns: repeat(4, 1fr); }
.es-grid--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .es-grid--3, .es-grid--4, .es-grid--5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .es-grid--2, .es-grid--3, .es-grid--4, .es-grid--5 { grid-template-columns: 1fr; } }

.es-card {
	background: #fff;
	border-radius: var(--es-radius-lg);
	box-shadow: var(--es-shadow);
	padding: 30px 26px;
	transition: transform .25s ease, box-shadow .25s ease;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
a.es-card { color: inherit; text-decoration: none; }
.es-card:hover { transform: translateY(-4px); box-shadow: var(--es-shadow-hover); }

.es-card-icon {
	width: 54px; height: 54px;
	border-radius: 16px;
	background: var(--es-primary-soft);
	color: var(--es-primary);
	display: flex; align-items: center; justify-content: center;
	font-size: 22px;
	margin-bottom: 6px;
}

.es-card h3 {
	font-family: var(--zilom-heading-font-family, inherit);
	font-size: 19px; font-weight: 700; color: var(--es-ink); margin: 0;
}
.es-card p { font-size: 15px; color: var(--es-text); margin: 0; line-height: 1.55; }

.es-card-link {
	margin-top: auto; padding-top: 8px;
	font-weight: 700; font-size: 14px; color: var(--es-primary);
	display: flex; align-items: center; gap: 6px;
}
.es-card:hover .es-card-link { color: var(--es-primary-dark); }
.es-card-link i { font-size: 11px; transition: transform .2s ease; }
.es-card:hover .es-card-link i { transform: translateX(3px); }

/* ===== Poziomy A1-C1 ===== */
.es-level {
	background: var(--es-bg-soft);
	border-radius: var(--es-radius-md);
	padding: 22px 18px;
	text-align: center;
}
.es-level__tag {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%;
	background: var(--es-primary); color: #fff;
	font-family: var(--zilom-heading-font-family, inherit);
	font-weight: 700; font-size: 16px;
	margin-bottom: 12px;
}
.es-level h3 { font-size: 15px; margin: 0 0 6px; color: var(--es-ink); font-weight: 700; }
.es-level p { font-size: 13px; color: var(--es-text); margin: 0; line-height: 1.5; }

/* ===== Kroki ===== */
.es-steps { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); counter-reset: es-step; margin: 0; padding: 0; list-style: none; }
@media (max-width: 900px) { .es-steps { grid-template-columns: 1fr; } }

.es-step { position: relative; padding-left: 60px; }
.es-step::before {
	counter-increment: es-step;
	content: counter(es-step);
	position: absolute; left: 0; top: 0;
	width: 42px; height: 42px; border-radius: 50%;
	background: var(--es-ink); color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--zilom-heading-font-family, inherit);
	font-weight: 700; font-size: 17px;
}
.es-step h3 { font-size: 17px; font-weight: 700; color: var(--es-ink); margin: 6px 0 6px; }
.es-step p { font-size: 14px; color: var(--es-text); margin: 0; line-height: 1.55; }

/* ===== Cennik ===== */
.es-price-card {
	background: #fff; border-radius: var(--es-radius-lg); box-shadow: var(--es-shadow);
	padding: 34px 28px; display: flex; flex-direction: column; gap: 18px;
	border: 2px solid transparent;
}
.es-price-card--featured { border-color: var(--es-primary); }
.es-price-card__badge {
	align-self: flex-start; background: var(--es-primary); color: #fff;
	font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
	padding: 5px 12px; border-radius: 999px;
}
.es-price-card__icon {
	width: 50px; height: 50px; border-radius: 14px; background: var(--es-primary-soft);
	color: var(--es-primary); display: flex; align-items: center; justify-content: center; font-size: 21px;
}
.es-price-card h3 { font-family: var(--zilom-heading-font-family, inherit); font-size: 22px; font-weight: 700; color: var(--es-ink); margin: 0; }
.es-price-card__desc { font-size: 14px; color: var(--es-text); margin: -10px 0 0; line-height: 1.5; }
.es-price-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.es-price-card li { font-size: 14.5px; color: var(--es-ink); display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.es-price-card li i { color: var(--es-primary); font-size: 14px; margin-top: 3px; flex-shrink: 0; }

/* ===== Przyciski ===== */
.es-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--zilom-font-sans-serif, inherit);
	font-weight: 700; font-size: 15.5px;
	padding: 15px 30px; border-radius: var(--es-radius-sm);
	text-decoration: none; transition: background .2s ease, color .2s ease, transform .2s ease;
	border: 2px solid transparent; cursor: pointer;
}
.es-btn:hover { transform: translateY(-2px); }
.es-btn--primary { background: var(--es-primary); color: #fff; }
.es-btn--primary:hover { background: var(--es-primary-dark); color: #fff; }
.es-btn--light { background: #fff; color: var(--es-ink); }
.es-btn--light:hover { background: var(--es-bg-soft); color: var(--es-ink); }
.es-btn--outline { border-color: rgba(255,255,255,.5); color: #fff; }
.es-btn--outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.es-btn--block { width: 100%; }

/* ===== CTA banner ===== */
.es-cta {
	background: linear-gradient(135deg, var(--es-ink) 0%, #2b2e3d 100%);
	border-radius: var(--es-radius-lg);
	padding: 44px 48px;
	display: flex; align-items: center; justify-content: space-between; gap: 30px;
	flex-wrap: wrap;
	overflow: hidden;
	position: relative;
}
.es-cta::before {
	content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
	background: var(--es-primary); opacity: .25; filter: blur(10px);
	top: -120px; right: -60px;
}
.es-cta__text { position: relative; z-index: 1; max-width: 560px; }
.es-cta h2 { color: #fff; margin-bottom: 8px; font-size: 27px; }
.es-cta p { color: rgba(255,255,255,.75); margin: 0; font-size: 15.5px; }
.es-cta__actions { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Placeholder (jawnie oznaczony, uczciwy) ===== */
.es-todo {
	border: 2px dashed #d7d3c8;
	background: #FBF8F1;
	border-radius: var(--es-radius-md);
	padding: 18px 20px;
	font-size: 14px; color: #9a8b5f;
	display: flex; gap: 10px; align-items: flex-start;
}
.es-todo i { margin-top: 2px; }

/* ===== Cytat / miejsce na opinię ===== */
.es-quote {
	background: var(--es-bg-soft); border-radius: var(--es-radius-lg);
	padding: 28px; position: relative;
}
.es-quote--placeholder { background: transparent; border: 2px dashed #d8dae3; }
.es-quote i.es-quote__mark { color: var(--es-primary); font-size: 26px; opacity: .35; }
.es-quote p { font-style: italic; color: var(--es-ink); font-size: 15px; line-height: 1.6; margin: 10px 0 0; }
.es-quote--placeholder p { color: #9199ad; font-style: normal; }
.es-quote__author { margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--es-text); font-style: normal !important; }

/* ===== FAQ ===== */
.es-faq { display: flex; flex-direction: column; gap: 12px; }
.es-faq details {
	background: #fff; border-radius: var(--es-radius-md); box-shadow: var(--es-shadow);
	padding: 6px 22px;
}
.es-faq summary {
	font-family: var(--zilom-heading-font-family, inherit);
	font-weight: 700; font-size: 16px; color: var(--es-ink);
	padding: 16px 0; cursor: pointer; list-style: none;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.es-faq summary::-webkit-details-marker { display: none; }
.es-faq summary::after { content: "\f107"; font-family: "Font Awesome 5 Free"; font-weight: 900; color: var(--es-primary); transition: transform .2s ease; }
.es-faq details[open] summary::after { transform: rotate(180deg); }
.es-faq p { color: var(--es-text); font-size: 14.5px; line-height: 1.6; margin: 0 0 18px; }
