/**
 * Local carrier theme — header and footer only.
 *
 * The landing page brings its own styles from the plugin.
 */

/* ---------------------------------------------------------------- 1. Tokens */

:root {
	--red: #e3000b;
	--red-dark: #b80009;
	--red-on-dark: #ff6b60;
	--dark: #3e3e3e;
	--white: #fff;
	--grey: #f2f2f2;
	--line: #e5e5e5;
	--line-input: #d9d9d9;
	--line-on-dark: rgba(255, 255, 255, 0.28);
	--ink: #1d1d1f;
	--text-dark: #3e3e3e;
	--text-muted: #6e6e73;
	--text-on-dark: #fff;
	--muted-on-dark: #c7c7c7;
	--placeholder: #767679;
	--star: #fabf0d;

	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 10px;
	--radius-pill: 100px;

	--container: 1280px;
	--reading: 880px;

	/* Fluid between 320px and 1440px. */
	--gutter: clamp(1rem, -0.1429rem + 5.7143vw, 5rem);
	--section-y: clamp(3.5rem, 2.7143rem + 3.9286vw, 6.25rem);
	--gap-card: clamp(0.875rem, 0.7679rem + 0.5357vw, 1.25rem);

	--fs-h1: clamp(1.625rem, 1.0893rem + 2.6786vw, 3.5rem);
	--fs-h2: clamp(1.5rem, 1.2143rem + 1.4286vw, 2.5rem);
	--fs-h2-sm: clamp(1.375rem, 1.1429rem + 1.1607vw, 2.1875rem);
	--fs-h3: clamp(1.25rem, 1.1786rem + 0.3571vw, 1.5rem);
	--fs-lead: clamp(1.125rem, 0.9107rem + 1.0714vw, 1.875rem);
	--fs-eyebrow: clamp(0.8125rem, 0.7768rem + 0.1786vw, 0.9375rem);
	--fs-body: clamp(0.9375rem, 0.8839rem + 0.2679vw, 1.125rem);
	--fs-small: clamp(0.8125rem, 0.7946rem + 0.0893vw, 0.875rem);
	--fs-tariff-badge: clamp(1.875rem, 1.625rem + 1.25vw, 2.75rem);
	--fs-tariff-name: clamp(2.125rem, 1.8036rem + 1.6071vw, 3.25rem);
	--fs-ask: clamp(1.375rem, 1.2679rem + 0.5357vw, 1.75rem);

	--font: "Myriad", "Myriad Pro", "Source Sans 3", -apple-system, "Segoe UI", sans-serif;
	--shadow-card: 0 8px 12px rgba(0, 0, 0, 0.06);
}


.fg-header *,
.fg-header *::before,
.fg-header *::after,
.fg-footer *,
.fg-footer *::before,
.fg-footer *::after {
	box-sizing: border-box;
}

.fg-header :focus-visible,
.fg-footer :focus-visible {
	outline: 2px solid var(--red);
	outline-offset: 2px;
	border-radius: 2px;
}

.fg-header .fg-icon,
.fg-footer .fg-icon {
	display: block;
	width: 100%;
	height: 100%;
}

.fg-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 12px 20px;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font);
}

.fg-skip-link:focus {
	left: 0;
}

/* ------------------------------------------------- 7. Header / footer carrier */

.fg-header {
	position: sticky;
	top: 0;
	z-index: 50;
	font-family: var(--font);
	background: var(--white);
}

.fg-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 1440px;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.fg-header__top {
	display: none;
	background: var(--white);
}

.fg-header__top .fg-header__inner {
	height: 70px;
}

@media (min-width: 1200px) {
	.fg-header__top {
		display: block;
	}
}

.fg-header__nav-secondary ul {
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fg-header__nav-secondary a {
	font-size: 0.9375rem;
	color: var(--text-dark);
	text-decoration: none;
}

.fg-header__nav-secondary a.is-active {
	color: var(--red);
}

.fg-header__utility {
	display: flex;
	align-items: center;
	gap: 22px;
}

.fg-header__meta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8125rem;
	color: var(--text-dark);
	text-decoration: none;
}

.fg-header__meta .fg-icon {
	width: 15px;
	height: 15px;
}

.fg-header__socials {
	display: inline-flex;
	gap: 7px;
}

.fg-header__socials a {
	display: block;
	color: var(--text-dark);
	width: 16px;
	height: 16px;
}

.fg-header__phone,
.fg-header__lang {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-dark);
	text-decoration: none;
}

.fg-header__main {
	background: var(--dark);
	color: var(--white);
}

.fg-header__main .fg-header__inner {
	min-height: 72px;
}

@media (min-width: 1200px) {
	.fg-header__main .fg-header__inner {
		min-height: 89px;
	}
}

.fg-header__logo {
	display: block;
	width: 140px;
	flex: none;
}

@media (min-width: 1200px) {
	.fg-header__logo {
		width: 180px;
	}
}

.fg-logo {
	display: block;
	width: 100%;
	height: auto;
}

.fg-header__nav-primary ul {
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fg-header__nav-primary a {
	font-size: 0.875rem;
	letter-spacing: 0.3px;
	color: var(--white);
	text-decoration: none;
}

.fg-header__actions {
	display: none;
	align-items: center;
	gap: 26px;
}

.fg-header__search {
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--white);
	cursor: pointer;
}

@media (min-width: 1200px) {
	.fg-header__actions {
		display: flex;
	}
}

/* Burger + off-canvas below 1200px */

.fg-burger {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0 10px;
	border: 0;
	background: none;
	cursor: pointer;
}

.fg-burger span {
	display: block;
	height: 2px;
	background: var(--white);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.fg-burger[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.fg-burger[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.fg-burger[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1200px) {
	.fg-burger {
		display: none;
	}
}

@media (max-width: 1199px) {
	.fg-header__nav-primary {
		position: fixed;
		inset: 0 0 0 30%;
		z-index: 60;
		padding: 80px 24px 24px;
		background: var(--dark);
		transform: translateX(100%);
		transition: transform 0.25s ease;
		overflow-y: auto;
	}

	.fg-header__nav-primary.is-open {
		transform: translateX(0);
	}

	.fg-header__nav-primary ul {
		flex-direction: column;
		gap: 4px;
	}

	.fg-header__nav-primary a {
		display: block;
		padding: 12px 0;
		font-size: 1rem;
	}
}

.fg-footer {
	font-family: var(--font);
	background: var(--white);
	color: var(--text-dark);
}

.fg-header a,
.fg-footer a {
	color: inherit;
	text-decoration: none;
}

.fg-footer__columns {
	display: grid;
	gap: 32px;
	max-width: 1440px;
	margin-inline: auto;
	padding: 70px var(--gutter) 60px;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.fg-footer__col-title {
	margin: 0 0 24px;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--red);
}

.fg-footer__col ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fg-footer__col a {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--text-dark);
	text-decoration: none;
}

.fg-footer__col a:hover {
	color: var(--red);
}

.fg-footer__bottom {
	display: grid;
	gap: 28px;
	padding: 32px var(--gutter);
	background: var(--dark);
	color: var(--white);
}

@media (min-width: 1200px) {
	.fg-footer__bottom {
		grid-template-columns: repeat(4, auto);
		justify-content: space-between;
		max-width: 1440px;
		margin-inline: auto;
	}
}

.fg-footer__label {
	display: block;
	margin-bottom: 12px;
	font-size: 0.8125rem;
	font-weight: 600;
}

.fg-footer__social-icons {
	display: flex;
	gap: 10px;
}

.fg-social {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
}

.fg-social .fg-icon {
	width: 17px;
	height: 17px;
	color: var(--white);
}

.fg-social--instagram { background: #c93387; }
.fg-social--viber { background: #7a4fb5; }
.fg-social--whatsapp { background: #26ad61; }
.fg-social--telegram { background: #298fd4; }

.fg-footer__phones,
.fg-footer__emails,
.fg-footer__address {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.fg-footer__phone {
	display: flex;
	align-items: center;
	gap: 10px;
}

.fg-footer__phone a {
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: none;
}

.fg-footer__phone span,
.fg-footer__mail {
	display: flex;
	flex-direction: column;
}

.fg-footer__phone strong,
.fg-footer__mail strong,
.fg-footer__address strong {
	font-size: 0.75rem;
	font-weight: 600;
}

.fg-footer__phone em,
.fg-footer__mail em,
.fg-footer__rating em {
	font-size: 0.6875rem;
	font-style: normal;
	color: var(--muted-on-dark);
}

.fg-footer__mail a {
	font-size: 0.875rem;
	text-decoration: none;
}

.fg-footer__address span {
	font-size: 0.8125rem;
}

.fg-footer__rating {
	display: flex;
	align-items: center;
	gap: 8px;
}

.fg-footer__rating .fg-icon {
	color: var(--star);
}


/* Buttons used by the carrier header. */

.fg-header .fg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 11px 28px;
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--red);
	color: var(--white);
	font-family: var(--font);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.fg-header .fg-btn:hover,
.fg-header .fg-btn:focus-visible {
	background: var(--red-dark);
}

.fg-header .fg-btn--outline {
	padding: 8px 18px;
	border: 1px solid var(--red);
	background: transparent;
	color: var(--red);
	font-weight: 400;
	text-transform: none;
}

.fg-header .fg-btn--outline:hover,
.fg-header .fg-btn--outline:focus-visible {
	background: var(--red);
	color: var(--white);
}

.fg-header .fg-btn--outline .fg-icon {
	width: 16px;
	height: 16px;
	flex: none;
}

/* Rating stars in the footer (the sizing rule lives in the plugin CSS). */

.fg-footer .fg-stars {
	display: inline-flex;
	gap: 2px;
}

.fg-footer .fg-stars .fg-icon {
	width: 14px;
	height: 14px;
	color: var(--star);
}
