/* Запись на курс (с 04.10.2026): pages/signup (шаг 1 — вход), pages/signup-details (шаг 2 — карточка студента,
   -/js/signup.js), pages/tasks/signup (шаг 3 — готово). Стиль главной (-/css/home.css): градиентная полоса
   с названием и шагами, на её нижний край заходят белые карточки. */

.sf { color: #1f2933; font-weight: 400; }
.sf-wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }

/* ---- Полоса с шагами ---- */
.sf-top { padding: 28px 0 88px; color: #fff; background: linear-gradient(rgba(12, 18, 60, .26), rgba(12, 18, 60, .26)), url(../img/backgrounds/ocean.jpg) 30% 0 / cover; }
.sf-kicker { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.sf-top h1 { margin: 8px 0 18px; font-size: 30px; font-weight: 300; line-height: 1.2; color: #fff; }
.sf-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.sf-steps li { display: flex; align-items: center; gap: 8px; opacity: .75; }
.sf-steps li::before { content: attr(data-n); display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); font-size: 13px; font-weight: 700; }
.sf-steps li.is-done { opacity: .9; }
.sf-steps li.is-done::before { content: '✓'; background: rgba(255, 255, 255, .22); }
.sf-steps li.is-current { opacity: 1; font-weight: 500; }
.sf-steps li.is-current::before { background: #fff; border-color: #fff; color: #35208a; }

/* ---- Карточки ---- */
.sf-card { position: relative; margin-top: -60px; padding: 24px 20px; background: #fff; border-radius: 12px; box-shadow: 0 6px 24px rgba(20, 24, 60, .14); }
.sf-narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.sf-mid { max-width: 720px; margin-left: auto; margin-right: auto; }
.sf-caption { display: block; margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6b737b; }
.sf-card h2 { margin: 0 0 10px; font-size: 22px; font-weight: 500; line-height: 1.3; color: #1f2933; }
.sf-card p { font-size: 15px; line-height: 1.55; color: #3b4650; hyphens: none; }
.sf-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid #eef0f2; }
.sf-hint { font-size: 13.5px; line-height: 1.5; color: #5f6b76; margin: 8px 0 0; }
.sf-checks { margin: 0 0 14px; padding-left: 20px; font-size: 15px; line-height: 1.55; color: #3b4650; }
.sf-checks li { margin-bottom: 6px; }
.sf-card .ui-note { margin-bottom: 18px; font-size: 15px; }
.sf-muted-link { text-align: center; margin: 18px 0 0; font-size: 15px; color: #5f6b76; }

/* ---- Кнопки входа ---- */
.sf-card form { margin: 0; }
.sf-yandex { display: flex; justify-content: center; align-items: center; gap: 14px; width: 100%; height: 52px; border: 0; border-radius: 10px; background: #000; color: #fff; font-size: 17px; cursor: pointer; }
.sf-yandex:hover, .sf-yandex:focus { background: #222; }
.sf-yandex-logo { flex: none; width: 24px; height: 24px; border-radius: 50%; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg width='44' height='44' viewBox='0 0 44 44' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='44' height='44' fill='%23FC3F1D'/%3E%3Cpath d='M24.7407 33.9778H29.0889V9.04443H22.7592C16.3929 9.04443 13.0538 12.303 13.0538 17.1176C13.0538 21.2731 15.2187 23.6163 19.0532 26.1609L21.3832 27.6987L18.3927 25.1907L12.4667 33.9778H17.1818L23.5115 24.5317L21.3098 23.0671C18.6496 21.2731 17.3469 19.8818 17.3469 16.8613C17.3469 14.2068 19.2183 12.4128 22.7776 12.4128H24.7223V33.9778H24.7407Z' fill='white'/%3E%3C/svg%3E%0A"); }
.sf-herzen { display: flex; justify-content: center; align-items: center; gap: 12px; width: 100%; height: 52px; border: 1px solid #35208a; border-radius: 10px; background: #fff; color: #35208a; font-size: 17px; cursor: pointer; }
.sf-herzen:hover, .sf-herzen:focus { background: #f1effa; outline: 0; }
.sf-herzen .ti { font-size: 22px; }
.sf-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border: 1px solid #cfd5dc; border-radius: 10px; background: #fff; color: #1f2933; font-size: 15px; cursor: pointer; text-decoration: none; }
.sf-secondary:hover, .sf-secondary:focus { border-color: #9aa3ad; color: #1f2933; text-decoration: none; }
.sf-secondary .ti { font-size: 19px; }
.sf-danger { border-color: #a94442; background: #a94442; color: #fff; }
.sf-danger:hover, .sf-danger:focus { border-color: #843534; background: #843534; color: #fff; }
.sf-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 28px; border: 0; border-radius: 10px; background: #35208a; color: #fff; font-size: 17px; font-weight: 500; cursor: pointer; text-decoration: none; }
.sf-primary:hover, .sf-primary:focus { background: #2a1870; color: #fff; text-decoration: none; }
.sf-primary .ti { font-size: 21px; }

/* ---- Форма карточки студента ---- */
.sf-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.sf-field { margin: 0 0 16px; }
.sf-field > label, .sf-label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 500; color: #1f2933; }
.sf-field .form-control { height: 46px; border-color: #d5dae0; border-radius: 8px; box-shadow: none; font-size: 16px; color: #1f2933; }
.sf-field .form-control:focus { border-color: #35208a; box-shadow: 0 0 0 3px rgba(53, 32, 138, .12); }
.sf-names { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 14px; }
.sf-seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 10px; background: #e9edf1; }
.sf-seg label { margin: 0; cursor: pointer; }
.sf-seg input { position: absolute; opacity: 0; pointer-events: none; }
.sf-seg span { display: block; padding: 8px 20px; border-radius: 8px; font-size: 15px; color: #5b6570; }
.sf-seg input:checked + span { background: #fff; color: #1f2933; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.sf-seg input:focus-visible + span { box-shadow: 0 0 0 2px rgba(53, 32, 138, .35); }
.sf-agree { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 18px; font-size: 15px; font-weight: 400; line-height: 1.45; color: #3b4650; cursor: pointer; }
.sf-agree input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; }
.sf-code { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.sf-code .form-control { width: 9em; height: 42px; letter-spacing: 4px; font-size: 18px; }
.sf-card .alert { border: 0; }
.sf-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* ---- Справа: что дальше ---- */
.sf-aside { padding: 22px 20px; background: #fff; border: 1px solid #e2e6ea; border-radius: 12px; }
.sf-aside h3 { margin: 0 0 6px; font-size: 16px; font-weight: 500; color: #1f2933; }
.sf-aside p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.55; color: #3b4650; }
.sf-aside p:last-child { margin-bottom: 0; }
.sf-aside .sf-block + .sf-block { margin-top: 16px; padding-top: 16px; border-top: 1px solid #eef0f2; }

/* ---- Шаг 3: что дальше (нумерованный список) ---- */
.sf-list { list-style: none; counter-reset: sf; margin: 4px 0 22px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.sf-list li { counter-increment: sf; position: relative; padding-left: 42px; }
.sf-list li::before { content: counter(sf); position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #f1effa; color: #35208a; font-size: 14px; font-weight: 700; }
.sf-list strong { display: block; font-size: 16px; font-weight: 500; color: #1f2933; margin-bottom: 2px; }
.sf-list p { margin: 0; }
.sf-done { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.sf-done .ti { flex: none; font-size: 40px; line-height: 1; color: #2f7d4f; }
.sf-done h2 { margin-bottom: 4px; }
.sf-done p { margin: 0; }

.sf-bottom { height: 48px; }

@media (min-width: 768px) {
	.sf-wrap { padding: 0 24px; }
	.sf-top { padding: 44px 0 100px; }
	.sf-kicker { font-size: 13px; }
	.sf-top h1 { font-size: 40px; margin-bottom: 22px; }
	.sf-card { padding: 30px 32px; }
	.sf-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
	.sf-grid .sf-aside { margin-top: -60px; position: relative; box-shadow: 0 6px 24px rgba(20, 24, 60, .1); border: 0; }
	.sf-names { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.sf-submit > a, .sf-submit > button { width: 100%; padding: 0 16px; font-size: 16px; white-space: nowrap; }
}
