:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #10233b;
  background: #f3f6fa;
  font-synthesis: none;
  --navy: #082979;
  --blue: #174aa0;
  --bright-blue: #2375c9;
  --sky: #edf4fb;
  --red: #e52b3d;
  --line: #dde4ee;
  --muted: #68778b;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: #f5f7fa; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
.shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.topbar { height: 74px; color: white; background: linear-gradient(110deg, #082979 0%, #0b3f98 48%, #123b8b 100%); box-shadow: 0 2px 14px rgba(8, 41, 121, .2); }
.topbar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.service-name { display: flex; align-items: center; gap: 9px; color: #d8e7f5; font-size: 14px; }
.service-name__dot { width: 7px; height: 7px; border-radius: 50%; background: #55c98b; box-shadow: 0 0 0 4px rgba(85,201,139,.13); }
.header-logo { height: 47px; display: flex; align-items: center; text-decoration: none; }
.header-logo img { width: 103px; height: 47px; display: block; object-fit: contain; }

.main { padding-block: 36px 70px; }
.hero { position: relative; min-height: 224px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; border-radius: 18px; background: linear-gradient(100deg, #edf5fc 0%, #f7fbff 45%, #dbeaf7 100%); box-shadow: inset 0 0 0 1px rgba(8, 41, 121, .06); }
.hero > div:first-child { position: relative; z-index: 2; max-width: 610px; padding: 34px 0 34px 42px; }
.eyebrow { margin: 0 0 9px; color: var(--blue); font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 680px; margin-bottom: 12px; color: var(--navy); font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -.045em; }
.hero__text { max-width: 490px; margin-bottom: 0; color: var(--muted); font-size: 17px; }
.hero__visual { position: absolute; z-index: 1; inset: 0 0 0 39%; overflow: hidden; }
.hero__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #eef6fc 0%, rgba(238,246,252,.78) 12%, transparent 48%); pointer-events: none; }
.hero__visual img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 59% 45%; filter: saturate(.88) contrast(1.02); }

.tabs { display: flex; gap: 32px; margin-top: 27px; border-bottom: 1px solid var(--line); }
.tab { position: relative; display: flex; align-items: center; gap: 9px; padding: 16px 2px 17px; border: 0; color: #718196; background: transparent; font-weight: 650; }
.tab::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--red); transform: scaleX(0); transition: transform .2s ease; }
.tab:hover { color: var(--navy); }
.tab.is-active { color: var(--navy); }
.tab.is-active::after { transform: scaleX(1); }
.tab svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab__count { min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 11px; color: white; background: var(--red); font-size: 11px; }

.panel { padding-top: 28px; animation: reveal .24s ease; }
.panel:not(.is-active) { display: none; }
@keyframes reveal { from { opacity: 0; transform: translateY(6px); } }
.card { border: 1px solid #e2e8ef; border-radius: 18px; background: white; box-shadow: 0 8px 32px rgba(23, 47, 73, .07); }
.form-card { padding: clamp(24px, 4vw, 42px); }
.card__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 31px; padding-bottom: 25px; border-bottom: 1px solid #edf0f4; }
h2 { margin-bottom: 0; color: var(--navy); font-size: 28px; letter-spacing: -.025em; }
.secure-label { display: flex; align-items: center; gap: 7px; color: #718196; font-size: 12px; }
.secure-label svg { width: 17px; fill: none; stroke: #55a275; stroke-width: 1.8; }

.feedback-form { display: grid; grid-template-columns: 1fr 1fr; gap: 23px 20px; }
.field { position: relative; display: flex; flex-direction: column; gap: 9px; }
.field--wide { grid-column: 1 / -1; }
.field label { color: #344960; font-size: 13px; font-weight: 650; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #ccd7e2; border-radius: 9px; outline: none; color: #142c46; background: white; transition: border-color .16s, box-shadow .16s; }
.field input, .field select { height: 50px; padding: 0 15px; }
.field textarea { min-height: 130px; padding: 14px 15px 28px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #9aa7b5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--bright-blue); box-shadow: 0 0 0 3px rgba(20, 121, 210, .1); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-right: 42px; }
.select-wrap svg { position: absolute; top: 14px; right: 15px; width: 20px; fill: none; stroke: #6d7e90; stroke-width: 1.8; pointer-events: none; }
.character-count { position: absolute; right: 12px; bottom: 9px; color: #9aa8b7; font-size: 11px; }
.label-optional { margin-left: 5px; color: #929eac; font-size: 11px; font-weight: 400; }
.file-input { position: absolute; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0 !important; }
.file-dropzone { min-height: 88px; padding: 16px 19px; display: flex; align-items: center; gap: 14px; border: 1px dashed #b8c7d7; border-radius: 10px; color: #344960; background: #f8fafc; cursor: pointer; transition: border-color .16s, background .16s; }
.file-dropzone:hover, .file-dropzone.is-dragging { border-color: var(--bright-blue); background: var(--sky); }
.file-input:focus-visible + .file-dropzone { outline: 3px solid rgba(35,117,201,.18); outline-offset: 2px; }
.file-dropzone__icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: #e5f0fa; }
.file-dropzone__icon svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.file-dropzone strong, .file-dropzone small { display: block; }
.file-dropzone strong { margin-bottom: 5px; color: var(--blue); font-size: 13px; }
.file-dropzone small { color: #7d8b9b; font-size: 11px; font-weight: 400; line-height: 1.4; }
.file-error { margin: 0; color: #c42131; font-size: 12px; }
.file-list { display: grid; gap: 7px; }
.file-item { min-height: 43px; padding: 7px 9px 7px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #e0e7ee; border-radius: 8px; background: white; }
.file-item__info { min-width: 0; display: flex; align-items: center; gap: 9px; }
.file-item__info svg { width: 18px; flex: 0 0 auto; fill: none; stroke: var(--blue); stroke-width: 1.7; }
.file-item__name { max-width: 430px; overflow: hidden; color: #344960; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.file-item__size { color: #94a0ad; font-size: 10px; white-space: nowrap; }
.file-item__remove { width: 28px; height: 28px; flex: 0 0 auto; border: 0; border-radius: 50%; color: #778697; background: transparent; font-size: 20px; line-height: 1; }
.file-item__remove:hover { color: #c42131; background: #fff0f1; }
.file-dropzone--compact { min-height: 72px; padding-block: 12px; }
.file-dropzone--compact .file-dropzone__icon { width: 36px; height: 36px; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 4px; }
.form-footer p { max-width: 480px; margin-bottom: 0; color: #8593a2; font-size: 11px; line-height: 1.5; }
.primary-button, .secondary-button, .text-button { border: 0; font-weight: 680; }
.primary-button { min-height: 50px; padding: 0 22px; display: flex; align-items: center; justify-content: center; gap: 12px; border-radius: 9px; color: white; background: var(--red); box-shadow: 0 6px 16px rgba(227, 40, 52, .2); transition: background .15s, transform .15s; }
.primary-button:hover { background: #c91f2a; }
.primary-button:active { transform: translateY(1px); }
.primary-button:disabled { cursor: wait; opacity: .65; }
.primary-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.requests-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.requests-header h2 { margin-bottom: 8px; }
.requests-header p:last-child { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.secondary-button { height: 42px; padding: 0 15px; display: flex; align-items: center; gap: 8px; border: 1px solid #ccd8e4; border-radius: 8px; color: var(--blue); background: white; }
.secondary-button:hover { background: var(--sky); }
.secondary-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.secondary-button.is-loading svg { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.requests-list { display: grid; gap: 12px; }
.request-card { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 22px 24px; border: 1px solid #e0e7ee; border-left: 4px solid var(--bright-blue); border-radius: 12px; background: white; box-shadow: 0 4px 18px rgba(24, 49, 75, .045); animation: reveal .25s ease; }
.request-card__top { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.request-card .request-card__id { margin: -1px 0 9px; color: var(--blue); font-size: 12px; font-weight: 750; letter-spacing: .02em; }
.request-card__date { color: #95a2b0; font-size: 12px; }
.request-card h3 { margin-bottom: 7px; color: var(--navy); font-size: 17px; }
.request-card p { margin-bottom: 0; color: #6c7c8e; font-size: 13px; line-height: 1.45; }
.request-card .request-card__description { white-space: pre-wrap; }
.request-card .request-card__attachments { margin-top: 10px; color: var(--blue); font-size: 11px; font-weight: 650; }
.request-card__actions { display: flex; align-items: flex-end; flex-direction: column; gap: 11px; }
.request-card__buttons { display: flex; align-items: center; gap: 7px; }
.request-edit-button { min-height: 34px; padding: 0 11px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #ccd8e4; border-radius: 8px; color: var(--blue); background: white; font-size: 12px; font-weight: 680; transition: border-color .15s, background .15s, color .15s; }
.request-edit-button:hover { border-color: #9eb5ca; background: var(--sky); }
.request-edit-button:active { background: #e3f0fa; }
.request-edit-button:disabled { cursor: not-allowed; opacity: .48; }
.request-edit-button:focus-visible { outline: 3px solid rgba(31, 126, 188, .2); outline-offset: 2px; }
.request-edit-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.request-delete-button { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 1px solid #e4c9cc; border-radius: 8px; color: #b82735; background: white; transition: border-color .15s, background .15s, color .15s; }
.request-delete-button:hover { border-color: #dba4aa; background: #fff0f1; color: #9f1825; }
.request-delete-button:focus-visible { outline: 3px solid rgba(229, 43, 61, .16); outline-offset: 2px; }
.request-delete-button:disabled { cursor: not-allowed; opacity: .45; }
.request-delete-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.request-result { margin-top: 17px; padding: 14px 15px; border-radius: 9px; background: #f1f7f4; }
.request-result__label { display: block; margin-bottom: 7px; color: #187147; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.request-result p { color: #355c49; white-space: pre-wrap; }
.result-files { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.result-file { max-width: 100%; padding: 7px 10px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #cbe2d5; border-radius: 7px; overflow: hidden; color: #187147; background: white; font-size: 11px; font-weight: 650; text-decoration: none; }
.result-file:hover { border-color: #75b992; background: #f7fcf9; }
.result-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-file.is-unavailable { cursor: not-allowed; opacity: .55; }
.result-file:disabled { cursor: wait; opacity: .6; }
.status { align-self: start; padding: 6px 10px; border-radius: 14px; color: #8a5c09; background: #fff5d9; font-size: 11px; font-weight: 700; white-space: nowrap; }
.status--completed { color: #187147; background: #e9f7f0; }
.supplement-dialog { width: min(620px, calc(100% - 30px)); max-height: calc(100vh - 30px); padding: 0; overflow: auto; border: 0; border-radius: 16px; color: #10233b; background: white; box-shadow: 0 24px 80px rgba(0, 28, 57, .28); }
.supplement-dialog::backdrop { background: rgba(4, 24, 51, .55); backdrop-filter: blur(3px); }
.supplement-dialog[open] { animation: dialog-in .18s ease; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.supplement-form { padding: 28px; display: grid; gap: 22px; }
.supplement-dialog__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid #edf0f4; }
.supplement-dialog__header h2 { font-size: 23px; }
.dialog-close { width: 36px; height: 36px; flex: 0 0 auto; border: 0; border-radius: 50%; color: #68778b; background: #f1f4f7; font-size: 25px; line-height: 1; }
.dialog-close:hover { color: var(--navy); background: #e7edf3; }
.supplement-note { margin: -3px 0 0; color: #7d8b9b; font-size: 11px; line-height: 1.5; }
.supplement-dialog__footer { display: flex; justify-content: flex-end; gap: 10px; }
.supplement-dialog__footer .secondary-button { height: 50px; }
.empty-state { padding: 70px 24px; border: 1px dashed #cad6e1; border-radius: 16px; text-align: center; background: rgba(255,255,255,.55); }
.empty-state[hidden] { display: none; }
.empty-state__icon { width: 66px; height: 66px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: var(--sky); }
.empty-state__icon svg { width: 31px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.empty-state h3 { margin-bottom: 8px; color: var(--navy); font-size: 18px; }
.empty-state p { margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.text-button { padding: 4px; color: var(--blue); background: none; }
.text-button span { margin-left: 5px; }

.toast { position: fixed; z-index: 5; right: 24px; bottom: 24px; max-width: calc(100% - 48px); padding: 14px 18px; display: flex; align-items: center; gap: 11px; border-radius: 10px; color: white; background: var(--navy); box-shadow: 0 12px 30px rgba(0,28,57,.25); opacity: 0; transform: translateY(15px); pointer-events: none; transition: .25s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast__icon { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: #77d7a3; font-size: 13px; font-weight: 800; }
.footer { color: #8b9aab; background: white; border-top: 1px solid #e1e7ed; }
.footer__inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; }

@media (max-width: 760px) {
  .shell { width: min(100% - 30px, 1160px); }
  .topbar { height: 64px; }
  .service-name { font-size: 0; }
  .main { padding-block: 25px 45px; }
  .hero { min-height: 185px; }
  .hero > div:first-child { max-width: 78%; padding: 25px 0 25px 24px; }
  .hero__visual { left: 38%; opacity: .46; }
  .hero__visual::after { background: linear-gradient(90deg, #edf5fc 0%, rgba(237,245,252,.9) 34%, transparent 80%); }
  .hero__text { font-size: 15px; }
  .tabs { margin-top: 14px; gap: 20px; }
  .tab { flex: 1; justify-content: center; font-size: 12px; }
  .form-card { border-radius: 13px; }
  .card__heading { margin-bottom: 24px; }
  .secure-label { display: none; }
  .feedback-form { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .form-footer { align-items: stretch; flex-direction: column-reverse; }
  .requests-header { align-items: flex-start; }
  .request-card { grid-template-columns: 1fr; }
  .request-card__actions { grid-row: 1; align-items: center; flex-direction: row; justify-content: space-between; }
  .footer__inner span:last-child { display: none; }
}

@media (max-width: 420px) {
  h1 { font-size: 32px; }
  h2 { font-size: 23px; }
  .hero > div:first-child { max-width: 100%; padding: 24px 19px; }
  .hero__visual { inset: 0; opacity: .18; }
  .tab svg { display: none; }
  .tabs { gap: 5px; }
  .tab { padding-inline: 3px; font-size: 11px; }
  .tab__count { display: none; }
  .form-card { padding: 21px 17px; }
  .requests-header { display: block; }
  .secondary-button { margin-top: 16px; }
  .supplement-form { padding: 22px 18px; }
  .supplement-dialog__footer { align-items: stretch; flex-direction: column-reverse; }
  .supplement-dialog__footer .secondary-button { margin-top: 0; justify-content: center; }
  .toast { right: 15px; bottom: 15px; max-width: calc(100% - 30px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
