.reg-page {
    background: #f5f5f3;
    padding: 120px 20px 80px;
    min-height: 100vh;
}

.reg-container {
    max-width: 980px;
    margin: 0 auto;
}

.reg-card {
    background: #ffffff;
    border: 1px solid #e7e7e2;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.reg-card__header {
    margin-bottom: 36px;
}

.reg-title {
    margin: 0 0 10px;
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 700;
    color: #1f1f1f;
    letter-spacing: 0.02em;
}

.reg-lead {
    margin: 0;
    font-size: 0.98rem;
    color: #666;
    line-height: 1.8;
}

.reg-form {
    width: 100%;
}

.reg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
}

.reg-field {
    display: flex;
    flex-direction: column;
}

.reg-field--full {
    grid-column: span 2;
}

.reg-label {
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #222;
}

.reg-input,
.reg-select {
    width: 100%;
    min-height: 56px;
    padding: 0 16px;
    border: 1px solid #d8d8d2;
    border-radius: 14px;
    background: #fcfcfa;
    font-size: 1rem;
    color: #222;
    box-sizing: border-box;
    appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.reg-select {
    background-image:
        linear-gradient(45deg, transparent 50%, #666 50%),
        linear-gradient(135deg, #666 50%, transparent 50%);
    background-position:
        calc(100% - 22px) calc(50% - 2px),
        calc(100% - 16px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 48px;
}

.reg-input::placeholder {
    color: #9a9a94;
}

.reg-input:focus,
.reg-select:focus {
    outline: none;
    border-color: #222;
    box-shadow: 0 0 0 4px rgba(34, 34, 34, 0.08);
    background: #fff;
}

.reg-policy {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #ecece7;
}

.reg-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

.reg-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.reg-check__box {
    width: 22px;
    height: 22px;
    border: 1.5px solid #bdbdb6;
    border-radius: 6px;
    background: #fff;
    flex-shrink: 0;
    margin-top: 1px;
    position: relative;
    transition: all 0.2s ease;
}

.reg-check__text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333;
}

.reg-check__text a {
    color: #222;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.reg-check input:checked + .reg-check__box {
    background: #222;
    border-color: #222;
}

.reg-check input:checked + .reg-check__box::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.reg-error {
    margin-top: 8px;
    font-size: 0.86rem;
    line-height: 1.6;
    color: #c53d3d;
}

.reg-actions {
    margin-top: 32px;
}

.reg-actions--confirm {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.reg-inline-form {
    display: inline-block;
}

.reg-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    min-height: 56px;
    padding: 0 28px;
    border: none;
    border-radius: 999px;
    background: #222;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.reg-submit:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.reg-submit:active {
    transform: translateY(0);
}

.reg-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.reg-submit--ghost {
    background: #fff;
    color: #222;
    border: 1px solid #222;
}

.reg-confirm {
    display: grid;
    gap: 0;
    border-top: 1px solid #e8e8e2;
    border-bottom: 1px solid #e8e8e2;
    margin-top: 24px;
}

.reg-confirm__row {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    border-top: 1px solid #ecece7;
    padding: 18px 0;
}

.reg-confirm__row:first-child {
    border-top: none;
}

.reg-confirm__row dt,
.reg-confirm__row dd {
    margin: 0;
    color: #222;
}

.reg-confirm__row dt {
    font-weight: 700;
}

.reg-confirm__row dd {
    color: #444;
    word-break: break-word;
}

@media (max-width: 1024px) {
    .reg-page {
        padding: 110px 24px 72px;
    }

    .reg-card {
        padding: 40px 32px;
        border-radius: 22px;
    }
}

@media (max-width: 768px) {
    .reg-page {
        padding: 92px 16px 56px;
    }

    .reg-card {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .reg-title {
        font-size: 1.6rem;
    }

    .reg-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .reg-field--full {
        grid-column: span 1;
    }

    .reg-input,
    .reg-select {
        min-height: 52px;
        font-size: 16px;
    }

    .reg-submit {
        width: 100%;
        min-width: 0;
    }

    .reg-actions--confirm {
        flex-direction: column;
    }

    .reg-inline-form {
        width: 100%;
    }

    .reg-confirm__row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 14px 0;
    }
}
.reg-submit {
  transition: all 0.25s ease;
}

.reg-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.reg-submit:active {
  transform: translateY(0);
}