/* FirmaJet — Modern pages, hero v2/v3, popular companies, comments */

/* ── Popular companies ── */
.fj-popular {
	padding: clamp(1.5rem, 4vw, 2.5rem) 0;
	background: var(--fj-color-bg);
	border-bottom: 1px solid var(--fj-color-border-light);
}

.fj-popular__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
	flex-wrap: wrap;
}

.fj-popular__title { margin: 0.25rem 0 0; font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 800; }
.fj-popular__desc { margin: 0.25rem 0 0; color: var(--fj-color-text-muted); font-size: 0.9rem; }

.fj-popular__track {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 0.75rem;
}

.fj-popular-card {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.85rem 1rem;
	background: var(--fj-color-bg-alt);
	border: 1px solid var(--fj-color-border-light);
	border-radius: 14px;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
	color: inherit;
}
.fj-popular-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--fj-shadow-md);
	border-color: var(--fj-color-primary-light);
}

.fj-popular-card__rank {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: var(--fj-color-primary);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 800;
}

.fj-popular-card__logo {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 11px;
	overflow: hidden;
	background: var(--fj-color-primary-light);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--fj-color-primary);
}
.fj-popular-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.fj-popular-card__logo svg { width: 22px; height: 22px; }

.fj-popular-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.fj-popular-card__name { font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fj-popular-card__meta { font-size: 0.75rem; color: var(--fj-color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fj-popular-card__stats { display: flex; gap: 0.65rem; font-size: 0.72rem; color: var(--fj-color-text-light); }
.fj-popular-card__stats span { display: inline-flex; align-items: center; gap: 0.2rem; }
.fj-popular-card__stats svg { width: 12px; height: 12px; }
.fj-popular-card__arrow { flex: 0 0 auto; color: var(--fj-color-text-light); }
.fj-popular-card__arrow svg { width: 16px; height: 16px; }

/* ── Page hero (contact, packages) ── */
.fj-page-modern { background: var(--fj-color-bg-alt); }

.fj-page-hero {
	position: relative;
	padding: clamp(2.5rem, 5vw, 4rem) 0;
	overflow: hidden;
}
.fj-page-hero--contact { background: linear-gradient(135deg, #0f4c81 0%, #1a6bb5 100%); color: #fff; }
.fj-page-hero--packages { background: linear-gradient(135deg, #1e3a5f 0%, #4f46e5 100%); color: #fff; }

.fj-page-hero__pattern { opacity: 0.08; }
.fj-page-hero__eyebrow { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.9; }
.fj-page-hero__title { margin: 0.5rem 0 0; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; }
.fj-page-hero__desc { margin: 0.5rem 0 0; max-width: 540px; opacity: 0.9; font-size: 1.05rem; }

.fj-page-modern__body { padding: clamp(2rem, 4vw, 3rem) 0; }

/* ── Contact page ── */
.fj-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 2rem;
	align-items: start;
}

.fj-contact-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.fj-contact-card {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1.25rem;
	background: var(--fj-color-bg);
	border: 1px solid var(--fj-color-border-light);
	border-radius: 14px;
	color: inherit;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.fj-contact-card:hover { box-shadow: var(--fj-shadow-md); transform: translateY(-2px); }
.fj-contact-card--static { cursor: default; }
.fj-contact-card--static:hover { transform: none; }
.fj-contact-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--fj-color-primary-light);
	color: var(--fj-color-primary);
	margin-bottom: 0.25rem;
}
.fj-contact-card__icon svg { width: 20px; height: 20px; }
.fj-contact-card strong { font-size: 0.85rem; color: var(--fj-color-text-muted); }
.fj-contact-card span:last-child { font-weight: 600; color: var(--fj-color-text); }

.fj-contact-form-wrap {
	padding: 2rem;
	background: var(--fj-color-bg);
	border: 1px solid var(--fj-color-border-light);
	border-radius: 18px;
	box-shadow: var(--fj-shadow-sm);
}
.fj-contact-form-wrap h2 { margin: 0 0 1.25rem; font-size: 1.25rem; }

.fj-contact-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.fj-contact-form__field { display: flex; flex-direction: column; gap: 0.35rem; }
.fj-contact-form__field--full { grid-column: 1 / -1; }
.fj-contact-form__field label { font-weight: 600; font-size: 0.85rem; }
.fj-contact-form__field input,
.fj-contact-form__field textarea {
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--fj-color-border);
	border-radius: 10px;
	font-family: inherit;
}
.fj-contact-form__field input:focus,
.fj-contact-form__field textarea:focus {
	outline: none;
	border-color: var(--fj-color-primary);
	box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.12);
}

/* ── Packages page ── */
.fj-pricing-company {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 1rem;
	margin: 0 0 1.5rem;
	padding: 0.9rem 1.1rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
}

.fj-pricing-company label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--fj-color-text, #0f172a);
}

.fj-pricing-company select {
	min-width: min(100%, 280px);
	height: 42px;
	padding: 0 0.75rem;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	font: inherit;
}

.fj-pricing-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	margin-bottom: 2rem;
}

.fj-pricing-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 2rem 1.5rem;
	background: var(--fj-color-bg);
	border: 1px solid var(--fj-color-border-light);
	border-radius: 20px;
	box-shadow: var(--fj-shadow-sm);
}
.fj-pricing-card--featured {
	border-color: var(--fj-color-primary);
	box-shadow: 0 12px 40px rgba(15, 76, 129, 0.15);
	transform: scale(1.02);
}

.fj-pricing-card__badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	padding: 0.3rem 0.85rem;
	border-radius: 999px;
	background: var(--fj-color-primary);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
}

.fj-pricing-card__name { margin: 0; font-size: 1.15rem; font-weight: 800; text-align: center; }
.fj-pricing-card__price { text-align: center; margin: 1rem 0 1.5rem; }
.fj-pricing-card__amount { font-size: 2.25rem; font-weight: 800; color: var(--fj-color-primary); }
.fj-pricing-card__currency { font-size: 1rem; color: var(--fj-color-text-muted); }

.fj-pricing-card__features {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.fj-pricing-card__features li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.88rem;
}
.fj-pricing-card__features li svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--fj-color-success); }
.fj-pricing-card__features li.is-off { opacity: 0.45; }
.fj-pricing-card__features li.is-off svg { color: var(--fj-color-text-light); }
.fj-pricing-card__cta { width: 100%; justify-content: center; }
.fj-pricing-card__cta.is-disabled {
	opacity: 0.55;
	pointer-events: none;
	cursor: not-allowed;
}

/* ── Modern comments ── */
.fj-comments {
	margin-top: 2rem;
	padding: 2rem;
	background: var(--fj-color-bg);
	border: 1px solid var(--fj-color-border-light);
	border-radius: 18px;
}

.fj-comments__title {
	margin: 0 0 1.5rem;
	font-size: 1.25rem;
	font-weight: 800;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.fj-comments__list {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.fj-comment {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 1rem;
	padding: 1.25rem;
	background: var(--fj-color-bg-alt);
	border-radius: 14px;
	border: 1px solid var(--fj-color-border-light);
}

.fj-comment__avatar img { border-radius: 50%; }

.fj-comment__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.35rem;
	flex-wrap: wrap;
}

.fj-comment__author { font-weight: 700; font-style: normal; color: var(--fj-color-text); }
.fj-comment__date { font-size: 0.8rem; color: var(--fj-color-text-muted); }

.fj-comment__body { font-size: 0.92rem; line-height: 1.6; color: var(--fj-color-text); }
.fj-comment__body p { margin: 0 0 0.5rem; }

.fj-comments .comment-respond {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--fj-color-border-light);
}

.fj-comments .comment-reply-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 1rem; }

.fj-comments .comment-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.fj-comments .comment-form-comment,
.fj-comments .comment-form-cookies-consent,
.fj-comments .form-submit { grid-column: 1 / -1; }

.fj-comments .comment-form input[type="text"],
.fj-comments .comment-form input[type="email"],
.fj-comments .comment-form input[type="url"],
.fj-comments .comment-form textarea {
	width: 100%;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--fj-color-border);
	border-radius: 10px;
	font-family: inherit;
}

.fj-comments .comment-form label { font-weight: 600; font-size: 0.85rem; display: block; margin-bottom: 0.35rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
	.fj-contact-grid { grid-template-columns: 1fr; }
	.fj-pricing-grid { grid-template-columns: 1fr; }
	.fj-pricing-card--featured { transform: none; }
	.fj-hero__glass-card { display: none; }
}

@media (max-width: 640px) {
	.fj-contact-cards { grid-template-columns: 1fr; }
	.fj-contact-form__grid { grid-template-columns: 1fr; }
	.fj-popular__track { grid-template-columns: 1fr; }
	.fj-comments .comment-form { grid-template-columns: 1fr; }
}

/* Lead form */
.fj-lead-form__notice {
	padding: 0.85rem 1rem;
	border-radius: 8px;
	font-weight: 600;
	margin-bottom: 1rem;
}
.fj-lead-form__notice--success {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
}
.fj-lead-form__notice--error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}
.fj-lead-form__hp {
	position: absolute !important;
	left: -9999px !important;
	opacity: 0 !important;
	height: 0 !important;
	width: 0 !important;
}
.fj-lead-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.85rem;
	margin-bottom: 1rem;
}
.fj-lead-form__field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}
.fj-lead-form__field--full { grid-column: 1 / -1; }
.fj-lead-form__field label {
	font-size: 0.85rem;
	font-weight: 600;
}
.fj-lead-form__field label span { color: #dc2626; }
.fj-lead-form__field input,
.fj-lead-form__field textarea {
	width: 100%;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--fj-color-border, #e5e7eb);
	border-radius: 8px;
	font: inherit;
}
@media (max-width: 640px) {
	.fj-lead-form__grid { grid-template-columns: 1fr; }
}

/* ── Address map browse (no Leaflet) ── */
.fj-section--map-browse {
	background: var(--fj-color-bg, #f8fafc) !important;
	color: inherit !important;
}

.fj-section--map-browse::before,
.fj-section--map-browse::after {
	display: none !important;
}

.fj-section--map-browse .fj-section__title,
.fj-section--map-browse .fj-section__desc,
.fj-section--map-browse .fj-section__eyebrow {
	color: inherit !important;
}

.fj-map-browse-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.25rem;
}

.fj-map-browse-card {
	background: #fff;
	border: 1px solid var(--fj-color-border, #e5e7eb);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.fj-map-browse-card__map {
	aspect-ratio: 16 / 10;
	background: #eef2f7;
}

.fj-map-browse-card__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.fj-map-browse-card__body {
	padding: 1rem;
}

.fj-map-browse-card__title {
	margin: 0 0 0.35rem;
	font-size: 1rem;
}

.fj-map-browse-card__address {
	margin: 0 0 0.75rem;
	font-size: 0.85rem;
	color: var(--fj-color-text-muted, #6b7280);
	line-height: 1.45;
}

/* Contact / empty page polish */
.fj-contact-card--wa {
	border-color: #86efac;
	background: linear-gradient(180deg, #f0fdf4 0%, #fff 70%);
}

.fj-contact-card__hint {
	display: block;
	margin-top: 0.35rem;
	font-style: normal;
	font-size: 0.75rem;
	color: #64748b;
	font-weight: 500;
}

.fj-contact-form-lead {
	margin: 0 0 1.25rem;
	color: #64748b;
	font-size: 0.95rem;
	line-height: 1.6;
}

.fj-contact-form__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1rem;
}

.fj-page-content-pro {
	max-width: 860px;
	margin: 0 auto;
}

.fj-page-content-pro h2 {
	margin-top: 2rem;
	font-size: 1.35rem;
	letter-spacing: -0.02em;
}

.fj-page-content-pro .fj-pro-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin: 1.5rem 0;
}

@media (min-width: 768px) {
	.fj-page-content-pro .fj-pro-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.fj-page-content-pro .fj-pro-item {
	padding: 1.15rem 1.2rem;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
}

.fj-page-content-pro .fj-pro-item h3 {
	margin: 0 0 0.4rem;
	font-size: 1rem;
}

.fj-page-content-pro .fj-pro-item p {
	margin: 0;
	color: #64748b;
	font-size: 0.925rem;
	line-height: 1.55;
}

.fj-faq-list details {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 0.9rem 1rem;
	margin-bottom: 0.65rem;
	background: #fff;
}

.fj-faq-list summary {
	cursor: pointer;
	font-weight: 600;
	color: #0f172a;
}

.fj-faq-list details[open] summary {
	margin-bottom: 0.5rem;
	color: var(--fj-color-primary, #dc2626);
}

.fj-faq-list details p {
	margin: 0;
	color: #475569;
	line-height: 1.6;
}
