* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f2f2f7;
    color: #111;
    padding-bottom: 80px;
}

/* контейнер */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
    padding-top: 10px;
}

/* заголовки */
h1 {
    font-size: 26px;
    margin-bottom: 10px;
}

h2 {
    font-size: 20px;
    margin-top: 25px;
}

/* карточки */
.test-block {
    background: white;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* label */
label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
}

/* input */
input {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

/* select */
select {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-bottom: 12px;
}

/* focus */
select:focus,
input:focus {
    border-color: #111;
    outline: none;
}

/* кнопки */
button {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    border: none;
    border-radius: 12px;
    background: #111;
    color: white;
    margin-top: 20px;
}

/* sticky */
button.sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0;
}

/* списки */
ul {
    padding-left: 18px;
}

li {
    margin-bottom: 6px;
}

/* top bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    z-index: 1000;
    gap: 10px;
}

.top-bar button {
    width: auto;
    min-width: 90px;
    max-width: 30%;
    padding: 10px 14px;
    border-radius: 10px;
    background: #111;
    color: white;
    font-size: 14px;
}

#step-info {
    font-size: 14px;
    flex: 1;
}

/* home */
.home-screen {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.home-title {
    margin: 0 0 6px 0;
    font-size: 28px;
    line-height: 1.1;
}

.home-subtitle {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.hero-icon {
    font-size: 34px;
    color: #333;
}

/* form */
.home-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-group label {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

/* select wrap */
.select-wrap {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 14px;
    overflow: hidden;
}

.field-icon {
    padding-left: 12px;
    padding-right: 8px;
    font-size: 22px;
    color: #666;
}

.select-wrap select {
    width: 100%;
    border: none;
    background: transparent;
    padding: 15px 14px 15px 0;
    font-size: 16px;
    outline: none;
    appearance: none;
}

/* actions */
.home-actions {
    margin-top: 8px;
}

.secondary-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* cards */
.action-card {
    width: 100%;
    border: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.action-card .material-symbols-outlined {
    font-size: 28px;
}

.action-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.action-text strong {
    font-size: 16px;
}

.action-text small {
    font-size: 13px;
    opacity: 0.7;
}

.action-primary {
    background: #111;
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.action-secondary {
    background: white;
    color: #111;
}

.action-card:active {
    transform: scale(0.98);
}

/* responsive */
@media (min-width: 768px) {
    .secondary-actions {
        flex-direction: row;
    }

    .secondary-actions .action-card {
        flex: 1;
    }
}

/* test screen */
.test-screen {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.test-icon {
    font-size: 32px;
}

.test-sub {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.test-card {
    background: #ffffff;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.test-card.center {
    text-align: center;
}

.timer {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.timer-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.timer-buttons button {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    color: #111;
    font-size: 15px;
}

.next-btn {
    margin-top: 10px;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: #111;
    color: white;
    font-size: 15px;
}

.step-bar {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}
.top-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f3f4f6;
    text-decoration: none;
    color: #111;
}

.home-btn:hover {
    background: #e5e7eb;
}
.top-bar-ios {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 12px;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-title {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    text-align: center;
    flex: 1;
}

.nav-btn {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    color: #111;
    text-decoration: none;
}

.nav-btn.left {
    margin-right: auto;
}

.nav-btn.right {
    margin-left: auto;
}

.nav-btn:hover {
    background: rgba(0,0,0,0.05);
}
.bottom-bar-ios {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 12px;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    background: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-center {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.bottom-bar-ios .nav-btn {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    color: #111;
    text-decoration: none;
}

.bottom-bar-ios .nav-btn:hover {
    background: rgba(0,0,0,0.05);
}

/* чтобы контент не прятался за футером */
.container {
    padding-bottom: 70px;
}