/* Главная страница (pages/main/index.html, с 04.10.2026).
   Телефон: градиент с приветствием, на его нижний край заходят карточки «Отметиться» и «Как начать» / «Перейти к заданиям».
   Компьютер: градиент во всю ширину — текст и белая кнопка «Отметиться» слева, карточка справа; ниже вопросы в две колонки (всегда открыты, без аккордеона). */

.home { color: #1f2933; font-weight: 400; }
.home-wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.home-intro { background: linear-gradient(rgba(12, 18, 60, .26), rgba(12, 18, 60, .26)), url(../img/backgrounds/ocean.jpg) 30% 0 / cover; }

.home-kicker { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.home-intro h1 { margin: 8px 0 8px; font-size: 30px; font-weight: 300; line-height: 1.2; color: #fff; }
.home-intro p { margin: 0; font-size: 15px; line-height: 1.5; opacity: .92; hyphens: none; }
.home-caption { display: block; margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6b737b; }

/* ---- Карточки действий ---- */
.home-checkin, .home-action { display: flex; align-items: center; gap: 16px; padding: 18px; background: #fff; border-radius: 12px; color: #1f2933; text-decoration: none; }
.home-checkin { box-shadow: 0 6px 24px rgba(20, 24, 60, .14); }
.home-action { border: 1px solid #e2e6ea; }
.home-checkin:hover, .home-checkin:focus, .home-action:hover, .home-action:focus { color: #1f2933; text-decoration: none; }
.home-icon { flex: none; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 12px; background: #1b5f8e; color: #fff; font-size: 28px; }
.home-icon-teal { background: #e7f4f3; color: #0b6f6c; }
.home-action-text { flex: 1; min-width: 0; }
.home-action-text b { display: block; font-size: 18px; font-weight: 500; line-height: 1.3; }
.home-action-text small { display: block; margin-top: 3px; font-size: 13.5px; color: #5f6b76; line-height: 1.4; }
.home-chevron { font-size: 20px; color: #8a9199; }

/* ---- «Как начать» ---- */
.home-start { padding: 22px 20px; background: #fff; border: 1px solid #e2e6ea; border-radius: 12px; }
.home-steps { list-style: none; counter-reset: step; margin: 6px 0 20px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.home-steps li { counter-increment: step; display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.45; color: #3b4650; }
.home-steps li::before { content: counter(step); flex: none; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #e8f0f6; color: #1b5f8e; font-size: 14px; font-weight: 700; }
.home-signup { display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border-radius: 10px; background: #1b5f8e; color: #fff; font-size: 16px; font-weight: 500; text-decoration: none; }
.home-signup:hover, .home-signup:focus { background: #154b72; color: #fff; text-decoration: none; }
.home-signup .ti { font-size: 21px; }
.home-signin { margin: 12px 0 0; text-align: center; font-size: 15px; color: #5f6b76; }

/* ---- Moodle и MAX (на телефоне; на компьютере они в шапке) ---- */
.home-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.home-links a { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 14px; background: #fff; border: 1px solid #e2e6ea; border-radius: 12px; color: #1f2933; font-size: 15px; text-decoration: none; }
.home-links a:hover, .home-links a:focus { color: #1f2933; text-decoration: none; border-color: #cfd5dc; }
.home-links .ti { font-size: 22px; color: #5f6b76; }

/* ---- Вопросы ---- */
.home-faq { margin-top: 28px; margin-bottom: 0; }
.home-faq-list { padding: 0 18px; background: #fff; border: 1px solid #e2e6ea; border-radius: 12px; }
.home-qa + .home-qa { border-top: 1px solid #eef0f2; }
.home-qa { padding: 16px 0; }
.home-qa h3 { margin: 0 0 6px; font-size: 16px; font-weight: 500; line-height: 1.35; color: #1f2933; }
.home-qa p { margin: 0; font-size: 15px; line-height: 1.55; color: #3b4650; }

/* ---- Телефон ---- */
@media (max-width: 767px) {
	.home-grid { display: flex; flex-direction: column; }
	.home-intro { margin: 0 -16px; padding: 28px 16px 84px; color: #fff; }
	.home-checkin { margin-top: -60px; }
	.home-side { margin-top: 12px; }
}

/* ---- Компьютер ---- */
@media (min-width: 768px) {
	.home-wrap { padding: 0 24px; }
	.home-top { padding: 64px 0; color: #fff; background: linear-gradient(rgba(12, 18, 60, .22), rgba(12, 18, 60, .22)), url(../img/backgrounds/ocean.jpg) 50% 0 / cover; }
	.home-intro { background: none; }
	.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 390px); grid-template-areas: "intro side" "checkin side"; column-gap: 48px; align-items: center; }
	.home-intro { grid-area: intro; align-self: end; }
	.home-kicker { font-size: 13px; }
	.home-intro h1 { margin: 12px 0 14px; font-size: 44px; line-height: 1.15; }
	.home-intro p { font-size: 18px; line-height: 1.55; max-width: 540px; }

	/* «Отметиться» — белая кнопка под текстом */
	.home-checkin { grid-area: checkin; align-self: start; justify-self: start; margin-top: 28px; gap: 10px; padding: 0 26px; height: 52px; box-shadow: none; color: #1b5f8e; }
	.home-checkin:hover, .home-checkin:focus { color: #1b5f8e; background: #e8f0f6; }
	.home-checkin .home-icon { width: auto; height: auto; background: none; color: inherit; font-size: 24px; }
	.home-checkin .home-action-text b { font-size: 17px; }
	.home-checkin small, .home-checkin .home-chevron { display: none; }

	.home-side { grid-area: side; }
	.home-start { padding: 24px 26px; border: 0; box-shadow: 0 10px 40px rgba(0, 0, 0, .2); }
	.home-action { padding: 22px; border: 0; box-shadow: 0 10px 40px rgba(0, 0, 0, .2); }

	.home-links { display: none; }

	.home-faq { margin-top: 40px; }
	.home-faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; padding: 8px 28px 12px; border-radius: 6px; }
	.home-qa + .home-qa { border-top: 0; }
	.home-qa { padding: 18px 0; border-bottom: 1px solid #eef0f2; }
	.home-qa:nth-last-child(-n+2) { border-bottom: 0; }
	.home-qa h3 { font-size: 17px; }
	.home-faq .home-caption { margin-bottom: 12px; }
}
