:root {
  --brand-navy: #113f6f;
  --brand-navy-deep: #102f59;
  --brand-cyan: #27b0ff;
  --brand-teal: #10b39d;
  --brand-green: #27c158;
  --brand-green-deep: #18a94e;
  --text-main: #173f5c;
  --text-body: #567084;
  --text-soft: #8397a6;
  --line: #dfe7ef;
  --line-strong: #cfd9e3;
  --surface: rgba(255, 255, 255, 0.95);
  --surface-solid: #ffffff;
  --bg-page: #f3f7fb;
  --shadow-soft: 0 24px 60px rgba(16, 53, 88, 0.12);
  --shadow-card: 0 18px 32px rgba(17, 63, 92, 0.1);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-main);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #edf5fb 0%, #f8fbfe 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
}

.logo-bubble {
  width: 56px;
  height: 40px;
  border-radius: 12px 12px 12px 4px;
  background: linear-gradient(135deg, #60ea89 0%, #1ebce8 100%);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.08);
}

.logo-bubble::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.35), transparent 45%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.logo-text {
  font-size: clamp(2rem, 3vw, 3rem);
}

.logo-text span {
  color: #2db9ff;
}

.shell-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(208, 221, 232, 0.92);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.field {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text-body);
}

.field-icon {
  width: 24px;
  height: 24px;
  color: #557099;
  flex: 0 0 auto;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text-main);
  background: transparent;
}

.button-primary,
.button-secondary,
.button-ghost,
.button-warning,
.button-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.button-primary:hover,
.button-secondary:hover,
.button-ghost:hover,
.button-warning:hover,
.button-blue:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(180deg, #31ca5a 0%, #18ad49 100%);
  box-shadow: 0 16px 30px rgba(40, 193, 84, 0.22);
}

.button-secondary {
  color: var(--text-main);
  background: #f3f7fb;
  border-color: var(--line-strong);
}

.button-blue {
  color: #fff;
  background: linear-gradient(180deg, #2d71d4 0%, #1d58b8 100%);
}

.button-warning {
  color: #fff;
  background: linear-gradient(180deg, #ffbc1c 0%, #f0a400 100%);
}

.button-ghost {
  color: var(--brand-navy);
  background: #fff;
  border-color: var(--line-strong);
}

.muted {
  color: var(--text-soft);
}

.page-title {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  line-height: 1.2;
}

.mini-label {
  color: #158c8a;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.divider {
  height: 1px;
  background: var(--line);
}

.top-brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 0 18px 0 0;
  border-bottom: 1px solid rgba(210, 222, 233, 0.9);
  background: rgba(255, 255, 255, 0.98);
}

.nav-brand-block {
  display: inline-flex;
  align-items: center;
  min-height: 92px;
  padding: 0 34px 0 28px;
  min-width: 320px;
  color: #fff;
  background: linear-gradient(135deg, #113f6f 0%, #17375c 56%, #1d4c8b 100%);
  border-radius: 0 0 72px 0;
  box-shadow: inset 0 -8px 18px rgba(0, 0, 0, 0.08);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-main);
}

.avatar-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(180deg, #128a93 0%, #0d6b79 100%);
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 26px, 1240px);
  }

  .top-brand-bar {
    min-height: auto;
    gap: 14px;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-brand-block {
    min-width: auto;
    width: 100%;
    border-radius: 0 0 42px 0;
  }

  .top-actions {
    padding: 0 18px 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
