/* ============================================================
   Лендинг «Семейная ипотека с 1 октября 2026» (/semeinaya-ipoteka-2026/)
   Префикс классов: smi-
   ============================================================ */

.smi-page {
	--smi-blue: #1154af;
	--smi-blue-dark: #0d4490;
	--smi-olive: #6e8633;
	--smi-ink: #0a0a0a;
	--smi-grey: #5b6572;
	--smi-line: #e2ecf7;
	--smi-card: #ffffff;
	--smi-tint: #e8f1fc;

	background: linear-gradient(180deg, #f2f8fe 0%, #e9f2fc 45%, #e4eef9 100%);
	padding: 48px 0 40px;
	font-family: "Inter", Arial, sans-serif;
	color: var(--smi-ink);
}

.smi-container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 15px;
}

/* ---------- бейджи и счётчики ---------- */
.smi-badge {
	display: inline-block;
	background: var(--smi-olive);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	padding: 10px 22px;
	border-radius: 999px;
}

.smi-counter {
	font-size: 22px;
	font-weight: 800;
	color: var(--smi-blue);
	white-space: nowrap;
}

.smi-counter span {
	color: #9aa7b4;
	font-weight: 600;
}

/* ---------- герой ---------- */
.smi-hero {
	padding-top: 6px;
}

.smi-hero-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 26px;
}

.smi-title {
	margin: 0 0 14px;
	font-size: clamp(38px, 5.2vw, 62px);
	line-height: 1.02;
	font-weight: 900;
	letter-spacing: -0.02em;
	color: var(--smi-ink);
}

.smi-subtitle {
	margin: 0 0 12px;
	font-size: clamp(21px, 2.6vw, 31px);
	line-height: 1.2;
	font-weight: 800;
	color: var(--smi-blue);
}

.smi-descr {
	margin: 0;
	font-size: clamp(17px, 1.8vw, 22px);
	line-height: 1.4;
	color: #21262d;
}

.smi-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: center;
	gap: 30px;
}

.smi-hero-cta {
	margin-top: 26px;
}

.smi-hero-note {
	margin: 4px 0 0;
	padding-bottom: 8px;
	font-size: 15px;
	color: var(--smi-grey);
}

.smi-hero-media img {
	display: block;
	width: 100%;
	height: auto;
	-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%);
	mask-image: linear-gradient(180deg, transparent 0, #000 9%);
}

/* прозрачные PNG/WebP-объекты — без масок и рамок */
.smi-hero-media img[src$=".webp"] {
	-webkit-mask-image: none;
	mask-image: none;
}

/* ---------- кнопка ---------- */
.smi-btn {
	display: inline-block;
	background: #005aa3;
	color: #fff !important;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	padding: 19px 34px;
	border-radius: 14px;
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(0, 90, 163, 0.28);
	transition: background 0.2s ease, transform 0.2s ease;
}

.smi-btn:hover {
	background: #004a88;
	transform: translateY(-1px);
}

/* ---------- якорная навигация ---------- */
.smi-nav {
	position: sticky;
	top: 102px;
	z-index: 50;
	margin: 32px 0 8px;
	background: rgba(242, 248, 254, 0.92);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-radius: 999px;
	box-shadow: 0 6px 24px rgba(23, 74, 133, 0.1);
}

.smi-nav-list {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 8px;
	list-style: none;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.smi-nav-list::-webkit-scrollbar {
	display: none;
}

.smi-nav-list a {
	display: block;
	white-space: nowrap;
	font-size: 14.5px;
	font-weight: 600;
	color: #33404e;
	text-decoration: none;
	padding: 10px 16px;
	border-radius: 999px;
	transition: background 0.2s ease, color 0.2s ease;
}

.smi-nav-list a:hover,
.smi-nav-list a.smi-nav-active {
	background: var(--smi-blue);
	color: #fff;
}

/* ---------- секции-карточки ---------- */
.smi-section {
	padding: 62px 0 12px;
	scroll-margin-top: 175px;
}

.smi-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.smi-grid {
	display: grid;
	grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
	align-items: center;
	gap: 40px;
}

/* на десктопе иллюстрации крупнее колонки — частично в зазор к тексту */
@media (min-width: 1024px) {
	.smi-media img {
		width: 106%;
		max-width: none;
		margin-left: -6%;
	}
}

.smi-grid > .smi-body {
	max-width: 640px;
}

.smi-section .smi-title {
	font-size: clamp(30px, 3.8vw, 46px);
}

/* изображения в секциях: мягкое затухание с обрезанных краёв */
.smi-media {
	min-width: 0;
}

.smi-media img {
	display: block;
	width: 100%;
	height: auto;
}

.smi-media-fade-left img {
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%);
	mask-image: linear-gradient(90deg, transparent 0, #000 9%);
}

.smi-media-fade-top img {
	-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%);
	mask-image: linear-gradient(180deg, transparent 0, #000 8%);
}

.smi-media-fade-topleft {
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%);
	mask-image: linear-gradient(90deg, transparent 0, #000 10%);
}

.smi-media-fade-topleft img {
	-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%);
	mask-image: linear-gradient(180deg, transparent 0, #000 8%);
}

/* ---------- белые карточки ---------- */
.smi-card {
	background: var(--smi-card);
	border-radius: 20px;
	padding: 24px 28px;
	box-shadow: 0 12px 32px rgba(23, 74, 133, 0.08);
	margin: 0 0 18px;
}

.smi-card h3 {
	margin: 0 0 10px;
	font-size: 21px;
	line-height: 1.25;
	font-weight: 800;
	color: var(--smi-blue);
}

.smi-card p {
	margin: 0;
	font-size: 16.5px;
	line-height: 1.5;
	color: #22272e;
}

.smi-card-accent {
	background: var(--smi-tint);
	box-shadow: none;
}

.smi-card-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.smi-card-list li {
	position: relative;
	padding-left: 20px;
	font-size: 16.5px;
	line-height: 1.5;
	color: #22272e;
	margin-bottom: 8px;
}

.smi-card-list li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 9px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--smi-blue);
}

.smi-card-list li:last-child {
	margin-bottom: 0;
}

.smi-card-important {
	font-weight: 800;
	color: var(--smi-blue);
}

.smi-card-small {
	margin-top: 10px !important;
	font-size: 14.5px !important;
	color: var(--smi-grey) !important;
}

/* ---------- таблицы ---------- */
.smi-table {
	width: 100%;
	border-collapse: collapse;
}

.smi-table th {
	background: #dcebfa;
	color: var(--smi-blue);
	font-size: 17px;
	font-weight: 800;
	text-align: left;
	padding: 14px 18px;
}

.smi-table th:first-child {
	border-radius: 12px 0 0 12px;
}

.smi-table th:last-child {
	border-radius: 0 12px 12px 0;
}

.smi-table td {
	font-size: 17.5px;
	padding: 13px 18px;
	border-bottom: 1px solid var(--smi-line);
	color: #16181c;
}

.smi-table tr:last-child td {
	border-bottom: 0;
}

.smi-rate {
	color: var(--smi-blue);
	font-size: 23px !important;
	font-weight: 900;
}

/* ---------- предупреждения и галочки ---------- */
.smi-note {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0 0 16px;
}

.smi-note-icon {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--smi-olive);
	color: #fff;
	font-size: 22px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}

.smi-note-icon svg {
	display: block;
}

.smi-note p {
	margin: 2px 0 0;
	font-size: 16.5px;
	line-height: 1.45;
	font-weight: 600;
	color: #16181c;
}

/* ---------- крупная цифра (271 день, 6%) ---------- */
.smi-card .smi-bignum,
.smi-bignum {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin: 0 0 10px;
	font-size: clamp(52px, 6vw, 78px);
	line-height: 1;
	font-weight: 900;
	color: var(--smi-blue);
	letter-spacing: -0.02em;
}

/* ---------- две карточки сумм ---------- */
.smi-sums {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 0 0 16px;
}

.smi-sums .smi-card {
	margin: 0;
	padding: 20px 22px;
}

.smi-sums h3 {
	font-size: 18px;
}

.smi-sum-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 16px;
	padding: 9px 0;
	border-bottom: 1px solid var(--smi-line);
}

.smi-sum-row:last-child {
	border-bottom: 0;
}

.smi-sum-row b {
	color: var(--smi-blue);
	font-weight: 800;
	white-space: nowrap;
}

.smi-text-block {
	margin: 0 0 16px;
	font-size: 17.5px;
	line-height: 1.5;
	font-weight: 600;
	color: #16181c;
}

.smi-text-block:last-child {
	margin-bottom: 0;
}

/* ---------- дисклеймеры ---------- */
.smi-disclaimer {
	margin: 14px 0 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--smi-grey);
}

/* ---------- подвал лендинга ---------- */
.smi-footer {
	margin-top: 64px;
	border-top: 2px solid #c9d9ea;
	padding-top: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	font-size: 15px;
	color: #21262d;
}

.smi-footer a {
	color: var(--smi-blue);
	font-weight: 700;
	text-decoration: none;
}

.smi-footer a:hover {
	text-decoration: underline;
}

/* ============================================================
   Адаптив
   ============================================================ */

@media (max-width: 1023px) {
	.smi-nav {
		top: 70px;
		border-radius: 24px;
	}

	.smi-section {
		scroll-margin-top: 140px;
	}

	.smi-hero-grid,
	.smi-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.smi-grid > .smi-body {
		max-width: none;
	}

	.smi-media {
		max-width: 640px;
	}

	/* на планшете и мобильном картинка после текста */
	.smi-grid .smi-media {
		order: 2;
	}

	.smi-grid .smi-body {
		order: 1;
	}
}

@media (max-width: 767px) {
	.smi-page {
		padding-top: 24px;
	}

	.smi-badge {
		font-size: 14px;
		padding: 8px 16px;
	}

	.smi-counter {
		font-size: 17px;
	}

	.smi-hero-top {
		margin-bottom: 18px;
	}

	.smi-hero-cta {
		margin-top: 20px;
	}

	.smi-hero-note {
		font-size: 13.5px;
	}

	.smi-nav {
		top: 62px;
		margin: 22px 0 6px;
	}

	.smi-nav-list a {
		font-size: 13.5px;
		padding: 9px 13px;
	}

	.smi-section {
		padding: 44px 0 8px;
		scroll-margin-top: 125px;
	}

	.smi-section-head {
		margin-bottom: 16px;
	}

	.smi-card {
		padding: 18px 18px;
		border-radius: 16px;
		margin-bottom: 14px;
	}

	.smi-card h3 {
		font-size: 18.5px;
	}

	.smi-card p,
	.smi-card-list li,
	.smi-note p {
		font-size: 15px;
	}

	.smi-table th {
		font-size: 14px;
		padding: 11px 12px;
	}

	.smi-table td {
		font-size: 15px;
		padding: 11px 12px;
	}

	.smi-rate {
		font-size: 19px !important;
	}

	.smi-sums {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.smi-card .smi-bignum,
	.smi-bignum {
		font-size: 46px;
	}

	.smi-btn {
		display: block;
		width: 100%;
		text-align: center;
		padding: 18px 24px;
		font-size: 16px;
	}

	.smi-footer {
		margin-top: 34px;
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
		font-size: 13.5px;
	}
}
