 * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Inter', sans-serif;
      background: #7695df;
      color: #1f3b7a;
      padding: 43px 16px 80px;
    }

    .remove{
      cursor: pointer;
    }

    .show-toggle-item{
      display: none;
    }

    .show-toggle-item.active{
      display: block;
    }

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

    .preloader {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.7);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      flex-direction: column;
    }
    .preloader.active {
      display: flex;
    }
    .spinner {
      width: 50px;
      height: 50px;
      border: 4px solid #f3f3f3;
      border-top: 4px solid #1A46FF;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    .preloader-text {
      color: white;
      margin-top: 16px;
      font-family: 'Inter', sans-serif;
      font-size: 14px;
    }
    /* Валидация СНИЛС */
    .snils-input {
      position: relative;
    }
    .snils-input input {
      padding-right: 35px;
    }
    .snils-status {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 18px;
    }
    .input-error {
      border-color: #f44336 !important;
      background-color: #fff2f2 !important;
    }
    .error-message {
      color: #f44336;
      font-size: 12px;
      margin-top: 4px;
      display: none;
    }
    .error-message.show {
      display: block;
    }

    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 30px;
      gap: 10px;
    }

    .topbar a{
      font-size: 18px;
      color: #fff;
      text-decoration: none;
      font-weight: 600;
    }

    .back-btn {
      background: #fff;
      border: none;
      width: 136px;
      height: 54px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 11px;
      font-size: 16px;
      font-weight: 600;
      color: #1f3b7a;
      cursor: pointer;
    }

    .logo {
      width: 150px;
      height: 150px;
      border-radius: 50%;
      background: rgba(255,255,255,.2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      color: white;
    }

    .card {
      background: #fff;
      border-radius: 20px;
      padding: 30px;
      margin-bottom: 16px;
    }

    .main-card{
      border-top: 14px solid #397BFF;
    }

    .title {
      font-size: 26px;
      font-weight: 700;
      margin-bottom: 10px;
      color: #012773;
    }

    .subtitle {
      font-size: 20px;
      color: #012773;
    }

    .field {
      margin-bottom: 16px;
    }

    .field:last-child {
      margin-bottom: 0;
    }

    .label {
      display: block;
      font-size: 20px;
      font-weight: 600;
      margin-bottom: 18px;
      color: #012773;
    }

    .hint {
      font-size: 16px;
      color: #1A46FF;
      margin-bottom: 18px;
    }

    input,
    select,
    textarea {
      width: 100%;
      border: none;
      outline: none;
      border-radius: 10px;
      background: #D7E4FF;
      padding: 0px 24px;
      height: 54px;
      font-size: 16px;
      color: #000;
      transition: .2s;
    }

    input::placeholder,select::placeholder,textarea::placeholder{
      color: #7791c5;
    }

    select{
      width: calc(100% - 26px);
      position: relative;
      border-top-right-radius: 0px;
      border-bottom-right-radius: 0px
    }

    .select-wrapper{
      position: relative;
      width: 100%;
      display: flex;
    }

    .select-wrapper::after{
      width: 26px;
      height: 54px;
      display: block;
      background: #D7E4FF;
      border-top-right-radius: 10px;
      border-bottom-right-radius: 10px;
      content: "";
    }

    textarea {
      resize: vertical;
      min-height: 120px;
      padding: 24px;
    }

    .chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 10px;
    }

    .chip {
      background: #438EFF;
      color: white;
      padding: 9px 14px;
      border-radius: 999px;
      font-size: 14px;
      font-weight: 500;
      display: flex;
      gap: 10px;
    }

    .upload-row {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
      margin-top: 10px;
    }

    .upload-btn {
      background: #438EFF;
      color: white;
      border: none;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 11px;
      width: 220px;
      height: 54px;
      font-size: 16px;
      font-weight: normal;
      cursor: pointer;
    }

    .file-name {
      font-size: 13px;
      color: #4b5e8b;
    }

    .add-doc {
      margin-top: 30px;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: #1A46FF;
      font-size: 16px;
      font-weight: 600;
      text-decoration: none;
    }

    .submit-btn {
      width: 100%;
      border: none;
      border-radius: 10px;
      background: #1A46FF;
      color: white;
      height: 56px;
      font-size: 16px;
      cursor: pointer;
      transition: .2s;
    }

    .submit-btn:hover {
      background: #1c3770;
    }

    .add-kid {
      width: 300px;
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      border-radius: 10px;
      background: #fff;
      color: #1c3770;
      height: 56px;
      font-size: 16px;
      cursor: pointer;
      transition: .2s;
      margin: auto;
      margin-bottom: 18px;
    }

    .add-kid:hover {
      opacity: 0.7;
    }

    /* минимальные стили для динамических блоков — не ломают вашу вёрстку */
    .show-toggle-item { display: none; }
    .show-toggle-item.active { display: block; }
    .child-card {
      background: #fff;
      border-radius: 20px;
      padding: 24px 28px;
      margin-bottom: 20px;
      position: relative;
      border: 1px solid #e2edff;
    }
    .child-card .remove-child-btn {
      position: absolute;
      top: 20px;
      right: 24px;
      background: none;
      border: none;
      font-size: 22px;
      cursor: pointer;
      color: #8ba0c7;
    }
    .child-card .remove-child-btn:hover { color: #dc2626; }
    .doc-block {
      background: #f8faff;
      border-radius: 20px;
      padding: 20px;
      margin-bottom: 16px;
      border: 1px solid #dce5fc;
      position: relative;
    }
    .doc-block .remove-doc-btn {
      position: absolute;
      top: 16px;
      right: 20px;
      background: none;
      border: none;
      font-size: 20px;
      cursor: pointer;
      color: #7c8fb0;
    }
    .doc-block .remove-doc-btn:hover { color: #e53e3e; }
    .file-item {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: #eef3fe;
      padding: 6px 14px;
      border-radius: 40px;
      font-size: 14px;
      margin-top: 8px;
    }
    .file-item .remove-file {
      cursor: pointer;
      font-weight: bold;
      color: #5f7fbf;
    }
    .file-item .remove-file:hover { color: #c00; }
    .upload-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0 8px; }
    .add-doc-inline {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-top: 16px;
      color: #1A46FF;
      font-weight: 600;
      text-decoration: none;
      cursor: pointer;
    }
    /* Стили для согласий */
    .consent-block {
      margin: 24px 0 20px;
    }
    .consent-scrollbox {
      border: 1px solid #d7e4ff;
      border-radius: 16px;
      background: #f9fbfe;
      padding: 20px;
      height: 260px;
      overflow-y: auto;
      font-size: 13px;
      line-height: 1.5;
      color: #2c3e66;
      margin-bottom: 16px;
    }
    .consent-scrollbox p {
      margin-bottom: 12px;
    }
    .consent-checkbox-row {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-top: 12px;
    }
    .consent-checkbox-row input[type="checkbox"] {
      width: 24px;
      height: 24px;
      flex-shrink: 0;
      margin-top: 2px;
      cursor: pointer;
      accent-color: #1A46FF;
    }
    .consent-checkbox-row input:disabled {
      cursor: not-allowed;
      opacity: 0.5;
    }
    .consent-checkbox-row label {
      font-size: 16px;
      font-weight: 600;
      color: #012773;
      cursor: pointer;
    }
    .consent-checkbox-row input:disabled + label {
      cursor: not-allowed;
      opacity: 0.6;
    }

    .tabs {
      display: flex;
      gap: 0;
      margin-bottom: 0;
    }
    .tab-btn {
      flex: 1;
      height: 56px;
      background: #f8fafc;
      border: none;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      color: #000;
      transition: all 0.2s;
      border-radius: 20px;
    }
    .tab-btn.active {
      background: #1A46FF;
      color: #fff;
    }
    .tab-content {
      display: none;
    }
    .tab-content.active {
      display: block;
    }

    @media (max-width: 600px) {
      .topbar{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
      }
      .card{
        padding: 20px;
      }
    }