:root {
  --navy: #16427D;
  --navy-dark: #0F3262;
  --ink: #14161A;
  --gray: #5F6570;
  --line: #E1E4E9;
  --tint: #EDF1F7;
  --bg: #F3F4F6;
  --card: #FFFFFF;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }

.ic {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Телефон — основной вид */
.wrap { padding: max(28px, env(safe-area-inset-top)) 16px 8px; }
.card { max-width: 440px; margin: 0 auto; }

.head { text-align: center; margin-bottom: 22px; }
.photo {
  display: block; width: 128px; height: 128px; margin: 0 auto 16px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid #fff; box-shadow: 0 2px 12px rgba(20, 22, 26, .12);
}
h1 { margin: 0 0 14px; font-size: 28px; line-height: 1.15; font-weight: 650; letter-spacing: -.01em; }
.logo { display: block; width: 168px; height: auto; margin: 0 auto 8px; }
.org { margin: 0; font-size: 14px; color: var(--gray); letter-spacing: .02em; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 54px; padding: 0 18px;
  border-radius: 14px; font-size: 17px; font-weight: 600;
  transition: background-color .15s, border-color .15s;
}
.btn-main { background: var(--navy); color: #fff; margin-bottom: 14px; }
.btn-main:hover { background: var(--navy-dark); }

.list { display: grid; gap: 8px; }
.row {
  display: flex; align-items: center; gap: 14px;
  min-height: 66px; padding: 10px 14px 10px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .15s, background-color .15s;
}
.row:hover { border-color: #C9CED6; }
.row:active, .btn:active { transform: scale(.99); }
.ico {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--tint); color: var(--navy);
}
.txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.txt b { font-size: 16px; font-weight: 600; }
.txt small {
  font-size: 14px; color: var(--gray);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chev { width: 18px; height: 18px; color: #A3A9B3; }

a:focus-visible, button:focus-visible { outline: 3px solid rgba(22, 66, 125, .35); outline-offset: 2px; }

.side-qr { display: none; }

.foot {
  text-align: center; font-size: 13px; color: #8A909A;
  padding: 18px 16px max(22px, env(safe-area-inset-bottom));
}

/* ПК: карточка по центру, QR рядом */
@media (min-width: 760px) {
  body { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
  .wrap {
    display: flex; justify-content: center; align-items: flex-start; gap: 24px;
    padding: 48px 24px 8px;
  }
  .card {
    width: 440px; margin: 0; padding: 36px 32px 32px;
    background: var(--card); border-radius: 24px;
    box-shadow: 0 1px 2px rgba(20, 22, 26, .05), 0 10px 40px rgba(20, 22, 26, .08);
  }
  .row { background: #FAFBFC; }
  .row:hover { background: var(--card); }
  .side-qr {
    display: block; width: 232px; padding: 24px 24px 20px;
    position: sticky; top: 24px;
    background: var(--card); border-radius: 24px; text-align: center;
    box-shadow: 0 1px 2px rgba(20, 22, 26, .05), 0 10px 40px rgba(20, 22, 26, .08);
  }
  .side-qr img { display: block; width: 184px; height: 184px; margin: 0 auto 12px; }
  .side-qr p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--gray); }
  .side-qr b { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 600; color: var(--ink); }
}
