:root {
  --bg-top: #dceaff;
  --bg-bottom: #bcd4ff;
  --panel: #eef5ff;
  --panel-2: #f8fbff;
  --line-dark: #7ea6e8;
  --line-mid: #a9c3f2;
  --text: #12305f;
  --muted: #4a6591;
  --primary-dark: #2b64d4;
  --button-face: linear-gradient(180deg, #ffffff 0%, #dcebff 100%);
  --button-blue: linear-gradient(180deg, #6ea2ff 0%, #3c79ef 100%);
  --shadow: 0 18px 40px rgba(38, 91, 176, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: Verdana, Tahoma, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.75), transparent 32%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

a,
button {
  color: inherit;
  font: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.window {
  width: 100%;
  max-width: 1020px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow);
}

.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  color: #ffffff;
  background: linear-gradient(180deg, #6aa2ff 0%, #2f6fe0 100%);
  border-bottom: 1px solid #2b5fc2;
}

.titlebar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.titlebar-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #9dff8f;
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  flex: 0 0 auto;
}

.titlebar-title {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.titlebar-controls {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.control {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 320px;
  gap: 20px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.35)),
    var(--panel);
}

.main-panel,
.side-panel {
  background: linear-gradient(180deg, var(--panel-2) 0%, #e7f1ff 100%);
  border: 1px solid var(--line-mid);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 8px 20px rgba(81, 121, 191, 0.08);
}

.main-panel {
  padding: 28px;
}

.side-panel {
  padding: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #dcebff 100%);
  border: 1px solid var(--line-mid);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.logo-wrap {
  position: relative;
  margin-bottom: 18px;
}

.logo {
  width: 180px;
  max-width: 62%;
  height: auto;
  display: block;
}

.online-indicator {
  border-radius: 50%;
  background: #63d85f;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 0 0 6px rgba(99, 216, 95, 0.16);
  animation: pulse 4.2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 0 0 0 rgba(99, 216, 95, 0.22);
  }

  50% {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 0 0 8px rgba(99, 216, 95, 0);
  }
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 1.8vw, 2.1rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #15407d;
}

.lead {
  margin: 0 0 24px;
  max-width: 42rem;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 4px 10px rgba(48, 93, 173, 0.12);
  transition: transform 0.15s ease, filter 0.15s ease;
  cursor: pointer;
  text-decoration: none;
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.button.primary {
  color: #ffffff;
  background: var(--button-blue);
  border-color: #2d63cb;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.button.secondary {
  color: #1c4c95;
  background: var(--button-face);
  border-color: var(--line-mid);
}

.download-box {
  margin-top: 18px;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line-mid);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.22s ease, padding 0.22s ease,
    margin-top 0.22s ease;
}

.download-box.open {
  max-height: 220px;
  opacity: 1;
  transform: translateY(0);
  padding: 16px;
}

.download-label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #1c4c95;
  background: var(--button-face);
  border: 1px solid var(--line-mid);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 0.15s ease, filter 0.15s ease;
  text-decoration: none;
}

.download-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.side-header {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-list {
  display: grid;
  gap: 10px;
}

.group-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: 12px;
  margin-bottom: 4px;
  padding-left: 2px;
  opacity: 0.85;
}

.contact {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(126, 166, 232, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.contact-icon {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex: 0 0 auto;
  position: relative;
}

/* ONLINE */
.contact-icon.online {
  background: #63d85f;
  animation: pulse-online 2.2s infinite ease-in-out;
}

@keyframes pulse-online {
  0% {
    box-shadow: 0 0 0 0 rgba(99, 216, 95, 0.6);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(99, 216, 95, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(99, 216, 95, 0);
  }
}

/* AWAY */
.contact-icon.away {
  background: #f2c94c;
  animation: pulse-away 3s infinite ease-in-out;
}

@keyframes pulse-away {
  0% {
    box-shadow: 0 0 0 0 rgba(242, 201, 76, 0.5);
  }

  70% {
    box-shadow: 0 0 0 5px rgba(242, 201, 76, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(242, 201, 76, 0);
  }
}

/* BUSY */
.contact-icon.busy {
  background: #e05a5a;
  box-shadow: 0 0 4px rgba(224, 90, 90, 0.5);
}

/* OFFLINE */
.contact-icon.offline {
  background: #9aa7bd;
}

.contact strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  color: #1d4e98;
}

.contact p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.footer {
  padding: 12px 18px;
  border-top: 1px solid var(--line-mid);
  background: linear-gradient(180deg, #f8fbff 0%, #e7f1ff 100%);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 900px) {
  .content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 12px;
  }

  .main-panel {
    padding: 22px;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .logo {
    width: 150px;
    max-width: 100%;
  }
}