@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap");

:root {
	--bg-color: #ffffff;
	--text-main: #000000;
	--card-min-width: 240px;
	--card-max-width: 280px;
}

.pricing-container {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	justify-content: center;
	max-width: 1400px;
}

/* --- БАЗОВАЯ КАРТОЧКА --- */
.card {
	--theme-color: #ccc;
	flex: 1 1 var(--card-min-width);
	max-width: var(--card-max-width);
	border-radius: 20px;
	background-color: #fff;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: transform 0.2s;

	/* 1. Свечение вокруг карточки в тон основного цвета */
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--theme-color) 30%, transparent),
		0 4px 12px color-mix(in srgb, var(--theme-color) 35%, transparent);
}

/* --- ЛЕНТА (RIBBON) --- */
.ribbon {
	width: 78px;
	height: 78px;
	overflow: hidden;
	position: absolute;
	z-index: 3;
}
.ribbon::before,
.ribbon::after {
	position: absolute;
	z-index: -1;
	content: "";
	display: block;
	border: 4px solid #c13331;
}
.ribbon span {
	position: absolute;
	display: block;
	width: 143px;
	padding: 3px 0;
	background-color: #de312f;
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
	color: #fff;
	font: 700 16px / 1 "Lato", sans-serif;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
	text-transform: uppercase;
	text-align: center;
}

/* top right*/
.ribbon-top-right {
	top: -10px;
	right: -10px;
}
.ribbon-top-right::before,
.ribbon-top-right::after {
	border-top-color: transparent;
	border-right-color: transparent;
}
.ribbon-top-right::before {
	top: 0;
	left: 0;
}
.ribbon-top-right::after {
	bottom: 0;
	right: 0;
}
.ribbon-top-right span {
	left: -25px;
	top: 20px;
	transform: rotate(45deg);
}

/* ВЕРХНЯЯ ЧАСТЬ (Заголовок) */
.card-header {
	position: relative;
	background-color: var(--theme-color);
	/* 2. Внутренний отступ, чтобы шапка не прилегала к краям */
	margin: 8px 8px 0 8px;
	padding: 20px 12px 22px;
	text-align: center;
	border-radius: 16px 16px 0 0;
	z-index: 1;
	/* Закругление снизу делаем через border-radius, но тень добавим псевдоэлементом */
	border-bottom-left-radius: 120px 15px;
	border-bottom-right-radius: 120px 15px;
	/* Тень под шапкой */
	box-shadow: 0 6px 12px -4px color-mix(in srgb, var(--theme-color) 70%, transparent);
}

.card-title {
	font-size: 20px;
	font-weight: 800;
	color: #000;
	margin: 0;
	letter-spacing: -0.5px;
}

/* СРЕДНЯЯ ЧАСТЬ (Цена и скорость) */
.card-price-block {
	/* 3. Цветной фон под закруглением шапки */
	background-color: color-mix(in srgb, var(--theme-color) 25%, white);
	padding: 28px 15px 20px;
	text-align: center;
	margin: -12px 8px 0 8px; /* подтягиваем вверх, чтобы перекрыть зазор */
	border-radius: 0 0 16px 16px;
	position: relative;
	z-index: 0;
}

.price {
	font-size: 32px;
	font-weight: 800;
	margin: 0 0 10px 0;
	display: flex;
	justify-content: center;
	align-items: baseline;
	gap: 4px;
}

.price small {
	font-size: 14px;
	font-weight: 600;
}

.speed-divider {
	height: 2px;
	background-color: rgba(0, 0, 0, 0.1);
	width: 80%;
	margin: 0 auto 10px;
}

.speed {
	font-size: 16px;
	font-weight: 800;
	margin: 0;
}

/* НИЖНЯЯ ЧАСТЬ (Иконки и описание) */
.card-body {
	padding: 15px 15px 25px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	flex-grow: 1;
	background-color: #fff;
	border-radius: 0 0 20px 20px;
}

.card-icons {
	height: 60px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-bottom: 15px;
	color: #000;
}

.card-icons svg {
	height: 40px;
	width: auto;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.card-desc {
	font-size: 13px;
	line-height: 1.4;
	font-weight: 500;
	color: #000;
	margin: 0;
}
