/* ==========================================================================
   Altero — главная страница
   ========================================================================== */

/* ---- HERO — полноэкранное фото с наложенным контентом (своя структура, не сплит) ---- */
.hero--overlay { position: relative; overflow: hidden; background: var(--c-ink); }
.hero--overlay .hero__track { position: relative; }
.hero--overlay .hero__slide {
	display: none;
	position: relative;
	min-height: clamp(480px, 62vh, 760px);
}
.hero--overlay .hero__slide.is-active { display: block; }
.hero__bg {
	position: absolute; inset: 0;
	background-color: #e9e3db;
	background-size: cover; background-position: center; background-repeat: no-repeat;
}
/* Затемняющий градиент слева-снизу, чтобы читался светлый текст */
.hero__scrim {
	position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(18,17,16,.82) 0%, rgba(18,17,16,.55) 40%, rgba(18,17,16,.05) 75%);
}
.hero__inner {
	position: relative; z-index: 2;
	min-height: inherit;
	display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
	padding-top: clamp(80px, 12vh, 150px); padding-bottom: clamp(44px, 6vh, 80px);
	color: #fff; gap: 14px;
}
.hero__kicker {
	display: inline-block; font-family: var(--font-head); font-weight: 600;
	text-transform: uppercase; letter-spacing: .12em; font-size: .82rem;
	color: var(--c-accent-on-dark); padding: 6px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
}
.hero__title { color: #fff; margin: 0; max-width: 18ch; font-weight: 800; line-height: 1.05; font-size: var(--fs-hero); }
.hero__text { margin: 0; color: rgba(255,255,255,.82); font-size: var(--fs-lead); line-height: 1.4; max-width: 46ch; }
.hero__badge { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.hero__badge-1 {
	font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
	color: var(--c-accent-on-dark); font-size: 1.5rem; line-height: 1;
}
.hero__badge-2 { color: rgba(255,255,255,.85); font-size: 1.02rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }

.hero__dots {
	position: absolute; z-index: 4;
	left: 50%; transform: translateX(-50%); bottom: 18px;
	display: flex; gap: 9px;
}
.hero__dots button {
	position: relative;
	width: 11px; height: 11px; border-radius: 50%; border: none; padding: 0;
	background: rgba(255,255,255,.4); transition: background .2s ease, transform .2s ease;
}
/* Невидимая увеличенная зона нажатия — по точкам удобно попадать пальцем (вид не меняется) */
.hero__dots button::after { content: ""; position: absolute; inset: -14px -5px; }
.hero__dots button.is-active { background: #fff; transform: scale(1.15); }

/* ---- Быстрый вход по категориям — строка-лента под героем (у референса нет) ---- */
.hero-cats { background: var(--c-ink); border-top: 1px solid rgba(255,255,255,.08); }
.hero-cats__grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1px; background: rgba(255,255,255,.08);
}
.hero-cat {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 20px clamp(16px, 1.6vw, 26px); background: var(--c-ink); color: #fff;
	font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
	transition: background .2s ease, color .2s ease;
}
.hero-cat:hover { background: rgba(255,255,255,.09); color: #fff; }
.hero-cat__arrow { color: var(--c-accent-on-dark); transition: transform .2s ease, color .2s ease; }
.hero-cat:hover .hero-cat__arrow { color: #fff; transform: translateX(4px); }
.hero-cat--all { background: rgba(255,255,255,.06); }

@media (max-width: 1599px) {
	/* Карточки таймлайна уже — видно больше пунктов */
	.roadmap__track { grid-auto-columns: minmax(310px, 1fr); }
}

/* ---- Решения по комнатам ---- */
/* Бенто-мозаика «Решения для каждой комнаты» — плитки разной высоты, подпись поверх фото */
.bento {
	display: grid; grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 150px; gap: 16px;
}
.bento__cell {
	position: relative; overflow: hidden; border-radius: var(--radius);
	grid-row: span 2; display: block; background: var(--c-bg-soft);
}
.bento__cell--tall { grid-row: span 3; }
.bento__img {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; transition: transform .5s ease;
}
.bento__cell:hover .bento__img { transform: scale(1.05); }
.bento__label {
	position: absolute; inset: auto 0 0 0; z-index: 2;
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 16px 18px; color: #fff;
	background: linear-gradient(0deg, rgba(18,17,16,.78) 0%, rgba(18,17,16,0) 100%);
}
.bento__title { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.bento__arrow { color: var(--c-accent-on-dark); font-size: 1.2rem; transition: transform .2s ease; }
.bento__cell:hover .bento__arrow { transform: translateX(4px); }
@media (max-width: 900px) {
	.bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
}
@media (max-width: 480px) {
	.bento { grid-template-columns: 1fr; }
	.bento__cell, .bento__cell--tall { grid-row: auto; height: 220px; }
	.bento__img { position: static; height: 100%; }
}

/* ---- Стат-полоса (собственный блок: тёмная лента с оранжевыми цифрами) ---- */
.stats-band {
	background: var(--c-ink); color: #fff;
	padding-block: clamp(40px, 5vw, 72px);
}
.stats-band__grid {
	display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px;
}
.stat { position: relative; padding-left: 18px; }
.stat::before {
	content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
	width: 3px; border-radius: 999px; background: var(--c-accent-on-dark);
}
.stat__num {
	font-family: var(--font-head); font-weight: 800; color: var(--c-accent-on-dark);
	font-size: clamp(1.5rem, 2.2vw, 2.3rem); line-height: 1.05; margin-bottom: 6px;
}
.stat__text { color: rgba(255, 255, 255, .72); font-size: .95rem; line-height: 1.4; }
@media (max-width: 992px) { .stats-band__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (max-width: 560px) { .stats-band__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- О компании ---- */
.about__grid {
	display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px);
	align-items: center;
}
.about__media img { width: 100%; aspect-ratio: 16 / 11; border-radius: var(--radius); object-fit: cover; display: block; }
.about__text p { color: #333; margin-bottom: 1.1em; }
.about__text .btn { margin-top: 10px; }

/* ---- Преимущества ---- */
.advantages__grid {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.advantage {
	padding: 28px 26px; border: 1px solid var(--c-line); border-radius: var(--radius);
	background: #fff; transition: box-shadow .3s ease, transform .3s ease;
}
.advantage:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.advantage__num {
	font-family: var(--font-head); font-size: 2rem; font-weight: 700;
	color: var(--c-accent); margin-bottom: 8px;
}
.advantage__text { color: var(--c-muted); font-size: .96rem; }

/* ---- Отзывы (стили карточки отзыва — в main.css) ---- */
.reviews__carousel { grid-auto-columns: minmax(320px, 1fr); }

/* ---- Процесс ---- */
.process__grid {
	display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
.step { position: relative; padding-top: 8px; }
.step__num {
	width: 46px; height: 46px; border-radius: 50%;
	background: var(--c-ink); color: #fff; font-family: var(--font-head);
	font-weight: 700; font-size: 1.2rem; display: grid; place-items: center;
	margin-bottom: 16px;
}
.step__title { font-size: 1.05rem; margin-bottom: 8px; }
.step__text { color: var(--c-muted); font-size: .92rem; }

/* ---- FAQ (стили аккордеона — в main.css) ---- */
.faq__inner { max-width: 860px; }

/* ---- Партнёры ---- */
.partners__row {
	display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; align-items: center;
}
.partners__logo img { max-height: 46px; width: auto; margin: 0 auto; filter: grayscale(1); opacity: .7; transition: all .3s ease; }
.partners__logo:hover img { filter: grayscale(0); opacity: 1; }

/* ---- Новости: 5 карточек в ряд, подпись и дата появляются при наведении (как у референса) ---- */
.news__carousel { grid-auto-columns: calc((100% - 4 * 20px) / 5); }
.news__card {
	position: relative; display: block;
	border: none; border-radius: var(--radius); overflow: hidden;
	background: var(--c-bg-soft);
}
.news__card:hover { box-shadow: none; transform: none; }
.news__media { position: relative; aspect-ratio: 425 / 475; overflow: hidden; background: var(--c-bg-soft); }
.news__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news__card:hover .news__media img { transform: scale(1.05); }
/* Затемнение снизу — всегда, чтобы текст читался */
.news__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%);
}
/* Дата — оранжевая плашка (видна всегда) */
.news__date {
	position: absolute; left: 20px; top: 20px; z-index: 2;
	background: var(--c-accent); color: #fff; font-size: .85rem; font-weight: 400;
	padding: 5px 12px; border-radius: 10px;
}
/* Заголовок — всегда виден поверх затемнения */
.news__body {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px;
}
.news__title { font-size: var(--fs-news); font-weight: 700; margin: 0; line-height: 1.2; color: #fff; }
.news__title::after { content: " \2192"; color: var(--c-accent-on-dark); }
.news__more { display: none; }

/* ---- Заголовок секции в один ряд (заголовок слева, кнопка справа) ---- */
.section__head--row {
	display: flex; align-items: center; justify-content: space-between;
	gap: 20px; flex-wrap: wrap; margin-bottom: 32px;
}
.section__head--row .section__title { margin: 0; }

/* ---- Инфо-табы: серая скруглённая карточка внутри контейнера (как у референса) ---- */
.infotabs { background: #fff; }
.infotabs > .container {
	background: var(--c-bg-soft);
	border-radius: 24px;
	padding-top: 44px; padding-bottom: 56px;
}
.infotabs .about__media img { border-radius: 16px; }
.tabs__nav--pills { justify-content: center; margin-bottom: 40px; }
.infotabs__tabs .tabs__panel { animation: altero-fade .3s ease; }
.infotabs .about__grid,
.infotabs .advantages__grid,
.infotabs .reviews__carousel,
.infotabs .process__grid,
.infotabs .faq__inner,
.infotabs .partners__row { margin-inline: auto; }
.infotabs .faq__inner { max-width: 900px; }
@keyframes altero-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- Хронология ---- */
.roadmap__track {
	position: relative;
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(360px, 1fr);
	gap: 24px; overflow-x: auto; padding: 22px 0 12px;
	scroll-snap-type: x proximity;
	/* тонкий оранжевый скроллбар-прогресс (как у референса) */
	scrollbar-width: thin; scrollbar-color: var(--c-accent) transparent;
}
/* Линия-прогресс: пройденная часть оранжевая (как у референса) */
.roadmap__track::before {
	content: ""; position: absolute; left: 0; right: 0; top: 50%;
	height: 2px;
	background: linear-gradient(90deg, var(--c-accent) 0 22%, var(--c-divider) 22%);
}
.roadmap__track::-webkit-scrollbar { height: 5px; }
.roadmap__track::-webkit-scrollbar-track { background: transparent; }
.roadmap__track::-webkit-scrollbar-thumb { background: var(--c-accent); border-radius: 999px; }
.roadmap__item {
	position: relative; scroll-snap-align: start;
	display: grid; grid-template-rows: 1fr auto 1fr; align-items: center;
	min-height: 340px;
}
/* Светло-серые карточки с оранжевой рамкой, плашка года поверх кромки (как у референса) */
.roadmap__card {
	position: relative;
	background: var(--c-bg-soft); border: 1px solid var(--c-accent); border-radius: 16px;
	padding: 26px 20px 18px;
}
.roadmap__item--up .roadmap__card { grid-row: 1; align-self: end; margin-bottom: 20px; }
.roadmap__item--down .roadmap__card { grid-row: 3; align-self: start; margin-top: 20px; }
.roadmap__media { margin: -26px -20px 14px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 15px 15px 0 0; background: var(--c-bg-soft); }
.roadmap__media img { width: 100%; height: 100%; object-fit: cover; }
/* Год — оранжевая плашка, перекрывает верхнюю кромку карточки (как у референса) */
.roadmap__year {
	position: absolute; top: -17px; left: 18px;
	display: inline-block; color: #fff; background: var(--c-accent);
	font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
	padding: 5px 16px; border-radius: 8px;
	margin: 0;
}
.roadmap__text { color: #333; font-size: .95rem; margin: 0; line-height: 1.5; }
/* Точка на линии — оранжевый круг с белой галочкой (как у референса) */
.roadmap__dot {
	grid-row: 2; justify-self: center; z-index: 2;
	width: 26px; height: 26px; border-radius: 50%;
	background: var(--c-accent); border: none;
	box-shadow: 0 0 0 4px #fff;
	display: grid; place-items: center;
}
.roadmap__dot::after {
	content: "\2713"; color: #fff;
	font-size: .8rem; font-weight: 700; line-height: 1;
}

/* ---- Форма на фоне интерьера — врезка со скруглением внутри полей (как у референса) ---- */
.cta-form--bg {
	position: relative; background-size: cover; background-position: center;
	background-repeat: no-repeat; color: #fff;
	width: min(calc(100% - 2 * var(--altero-gutter)), calc(var(--altero-max-width) - 2 * var(--altero-gutter)));
	margin-inline: auto;
	border-radius: 20px; overflow: hidden;
}
.cta-form--bg::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(20,20,20,.72), rgba(20,20,20,.82));
}
.cta-form--bg > .container { position: relative; z-index: 1; }
.cta-form__head { text-align: center; max-width: 560px; margin: 0 auto 28px; }
.cta-form__head .section__title { color: #fff; }
.cta-form__head p { color: rgba(255,255,255,.82); margin: 0; }
.cta-form__card {
	background: var(--c-bg-soft); color: var(--c-ink);
	max-width: 640px; margin: 0 auto; padding: 32px;
	border-radius: var(--radius); box-shadow: var(--shadow-hover);
}
.cta-form__card .field input,
.cta-form__card .field textarea { background: #fff; }
.cta-form__card .form__note { color: var(--c-muted); }

/* ---- Адаптив ---- */
@media (max-width: 992px) {
	.advantages__grid { grid-template-columns: repeat(2, 1fr); }
	.process__grid { grid-template-columns: repeat(2, 1fr); }
	.partners__row { grid-template-columns: repeat(4, 1fr); }
	.about__grid { grid-template-columns: 1fr; }
	.about__media { order: -1; }
	.roadmap__track { grid-auto-columns: minmax(280px, 1fr); }
	.news__carousel { grid-auto-columns: minmax(280px, 1fr); }
}
@media (max-width: 860px) {
	/* Герой: усиливаем затемнение, чтобы контент читался на узком экране */
	.hero--overlay .hero__slide { min-height: clamp(440px, 78vh, 620px); }
	.hero__scrim { background: linear-gradient(0deg, rgba(18,17,16,.88) 0%, rgba(18,17,16,.5) 55%, rgba(18,17,16,.2) 100%); }
	/* Контент героя не должен вылезать за экран (flex-start + max-width в ch) */
	.hero__inner > * { max-width: 100%; }
	.hero__title, .hero__text { max-width: 100%; }
	.hero__cta { width: 100%; }
	.hero__cta .btn { flex: 1 1 auto; text-align: center; }
	/* Пилюли переносятся в ряды */
	.tabs__nav--pills { justify-content: flex-start; }
	/* Таймлайн остаётся горизонтальной лентой */
	.roadmap__item { min-height: 300px; }
}
@media (max-width: 560px) {
	.advantages__grid, .process__grid { grid-template-columns: 1fr; }
	.partners__row { grid-template-columns: repeat(3, 1fr); }
	.hero__badge-1 { font-size: 1.3rem; }
	.hero-cats__grid { grid-template-columns: 1fr 1fr; }
	/* «Лента новостей» — на всю ширину (как у референса) */
	.news .section__head--row { flex-direction: column; align-items: stretch; }
	.news .section__head--row .btn { width: 100%; }
}
