/* SSP SOFT · SSO Portal v1.0.1
   Общий стиль всех карточек: .resource-card
   Цвета и размеры можно менять в переменных ниже. */
:root {
  color-scheme: light;
  --blue: #0751ce;
  --blue-dark: #123a8b;
  --text: #193052;
  --muted: #536780;
  --line: #dce6f4;
  --panel-radius: 32px;
  --card-radius: 20px;
}

* { box-sizing: border-box; }
html { min-width: 280px; background: #edf4ff; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 56px 24px;
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  background:
    radial-gradient(ellipse at 90% 12%, #d7e8ff 0, transparent 54%),
    radial-gradient(ellipse at 0% 100%, #e0eaff 0, transparent 48%),
    linear-gradient(135deg, #f7faff, #edf4ff);
  isolation: isolate;
}

.decoration {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.brand-watermark {
  position: absolute;
  width: min(82vw, 1020px);
  height: auto;
  top: 50%;
  right: -17%;
  transform: translateY(-50%) rotate(-7deg);
  opacity: .08;
  mix-blend-mode: multiply;
}
.portal {
  width: 100%;
  max-width: 960px;
  padding: 46px 48px 32px;
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: var(--panel-radius);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 24px 80px rgba(29, 69, 135, .09), 0 2px 10px rgba(29, 69, 135, .025);
}
@supports (backdrop-filter: blur(16px)) {
  .portal { background: rgba(255, 255, 255, .78); backdrop-filter: blur(16px); }
}
.brand-logo { display: block; width: 234px; max-width: 80%; height: auto; margin: -5px 0 27px -12px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(28px, 3.5vw, 39px); font-weight: 650; letter-spacing: -.035em; line-height: 1.18; }
.intro { margin-top: 13px; color: var(--muted); font-size: 17px; line-height: 1.6; }

.resources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 34px; }
.resource-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 27px 28px 23px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  color: var(--text);
  background: rgba(255, 255, 255, .94);
  text-decoration: none;
  box-shadow: 0 5px 16px rgba(41, 77, 131, .035);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  overflow-wrap: anywhere;
}
.resource-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px; border-radius: 17px; background: #edf4ff; color: var(--blue); }
.resource-icon svg { width: 31px; height: 31px; }
.resource-card h2 { font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.025em; }
.resource-card p { margin: 10px 0 26px; max-width: 31ch; font-size: 15px; line-height: 1.65; color: var(--muted); }
.resource-action { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: auto; color: var(--blue); font-size: 14px; font-weight: 600; }
.resource-action svg { flex: 0 0 20px; width: 20px; height: 20px; margin-left: auto; transition: transform .18s ease; }
@media (hover: hover) {
  .resource-card:hover { transform: translateY(-3px); border-color: #91b6ee; box-shadow: 0 12px 25px rgba(22, 77, 164, .10); }
  .resource-card:hover .resource-action svg { transform: translateX(3px); }
  .support-link:hover { color: var(--blue-dark); background: #e9f1ff; }
}
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.resource-card:active { transform: translateY(0); border-color: var(--blue); }

.support { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 32px; padding-top: 25px; border-top: 1px solid var(--line); }
.support-heading { flex-shrink: 0; }
.support-heading h2 { font-size: 15px; font-weight: 600; }
.support-heading p { margin-top: 3px; font-size: 13px; color: var(--muted); }
.support-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 8px; }
.support-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 11px; border-radius: 11px; color: var(--blue); font-size: 14px; line-height: 1.4; text-decoration: none; transition: background-color .18s ease; }
.support-link svg { flex: 0 0 18px; width: 18px; height: 18px; }
/* Selecting a contact should select text instead of dragging the link. */
.support-link, .support-link span { -webkit-user-select: text; user-select: text; }
.support-link span { overflow-wrap: anywhere; cursor: text; }
.support-link svg { -webkit-user-select: none; user-select: none; pointer-events: none; }
.support-link span::selection { color: #193052; background: #c9ddff; }

@media (max-width: 700px) {
  body { padding: 28px 18px; }
  .portal { padding: 31px 26px 24px; border-radius: 26px; }
  .brand-logo { width: 216px; margin-bottom: 23px; }
  .intro { font-size: 16px; }
  .resources { gap: 15px; margin-top: 27px; }
  .resource-card { padding: 23px 21px 21px; }
  .resource-card h2 { font-size: 20px; }
  .support { align-items: flex-start; flex-direction: column; gap: 12px; }
  .support-links { justify-content: flex-start; margin-left: -11px; }
}
@media (max-width: 560px) {
  body { padding: 20px 14px; }
  .portal { padding: 28px 22px 20px; border-radius: 24px; }
  h1 { max-width: 14ch; font-size: 29px; }
  .resources { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .resource-card { padding: 23px; }
  .resource-icon { width: 49px; height: 49px; border-radius: 15px; margin-bottom: 17px; }
  .resource-icon svg { width: 28px; height: 28px; }
  .resource-card p { margin-bottom: 22px; }
  .support { margin-top: 26px; padding-top: 22px; }
  .brand-watermark { width: 720px; right: -500px; opacity: .055; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .resource-card:hover, .resource-card:hover .resource-action svg { transform: none; }
}
@media (forced-colors: active) {
  .resource-card, .support-link { border: 1px solid LinkText; }
  .decoration { display: none; }
}
