/* Vitalogika Infostand — Уголок потребителя */

@font-face {
  font-family: "TT Norms Pro";
  src: url("../fonts/TT_Norms_Pro_Regular-u5oNSOTg.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Quaris";
  src: url("../fonts/TT_Quaris_Regular-B78Ogzln.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Quaris";
  src: url("../fonts/TT_Quaris_Medium-arHuLFcS.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #fff0a0;
  --primary-400: #fffbe7;
  --primary-500: #fff7d3;
  --brown: #4d3625;
  --brown-deep: #3b281a;
  --brown-ink: #241c16;
  --cream: #fbf8f0;
  --cream-soft: #f3f1ef;
  --stone: #ddded6;
  --muted: #796e66;
  --white: #ffffff;
  --shadow: 0 8px 28px rgba(36, 28, 22, 0.08);
  --shadow-card: 0 4px 20px rgba(36, 28, 22, 0.07);
  --radius: 20px;
  --radius-sm: 14px;
  --header-h: 72px;
  --nav-h: 88px;
  --touch: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--cream);
  color: var(--brown);
  font-family: "TT Norms Pro", Arial, Helvetica, sans-serif;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

button {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
}

/* —— Shell —— */

.kiosk {
  position: relative;
  width: 100dvw;
  height: 100dvh;
  display: grid;
  grid-template-rows: var(--header-h) 1fr var(--nav-h);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 240, 160, 0.35), transparent 55%),
    linear-gradient(180deg, #fdfaf3 0%, var(--cream) 40%, #f3efe6 100%);
}

.kiosk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--touch);
}

.brand img {
  height: 36px;
  width: auto;
}

.home-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--brown-deep);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease), background 0.2s;
  flex-shrink: 0;
}

.home-btn:active {
  transform: scale(0.94);
  background: #ffe56a;
}

.home-btn svg {
  width: 32px;
  height: 32px;
}

/* —— Stage / screens —— */

.stage {
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.track {
  display: flex;
  height: 100%;
  width: 400%;
  transition: transform 0.45s var(--ease);
  will-change: transform;
}

.screen {
  width: 25%;
  height: 100%;
  padding: 8px 48px 12px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}

.screen-head {
  text-align: center;
  flex-shrink: 0;
}

.screen-title {
  margin: 0;
  font-family: "TT Quaris", Georgia, "Palatino Linotype", serif;
  font-weight: 500;
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--brown-deep);
  text-transform: uppercase;
}

.screen-sub {
  margin: 10px auto 0;
  max-width: 820px;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.4;
  color: var(--muted);
}

/* —— Cards —— */

.grid {
  flex: 1;
  min-height: 0;
  display: grid;
  gap: 20px;
}

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Screen 1 — hero zone (2, dominant) + docs zone (4, proportional) */
.screen1-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: 2.6fr 1fr;
  gap: 14px;
}

.screen1-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  min-height: 0;
}

.screen1-docs {
  min-height: 0;
  align-content: stretch;
}

.hero-doc-card {
  padding: 20px 22px 72px;
  gap: 8px;
}

.hero-doc-top {
  flex-shrink: 0;
}

.hero-doc-card .card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.hero-doc-card .card-title {
  font-size: clamp(18px, 1.5vw, 24px);
  margin-bottom: 6px;
}

.hero-doc-card .card-desc {
  font-size: clamp(13px, 1vw, 15px);
}

.hero-doc-visual {
  flex: 1;
  min-height: 0;
  margin-top: 4px;
  align-items: center;
}

.doc-stack--hero {
  width: min(220px, 52%);
  max-height: 100%;
  aspect-ratio: 3 / 4;
}

.hero-doc-card .card-arrow {
  width: 48px;
  height: 48px;
  bottom: 14px;
  left: 18px;
}

/* Compact doc cards — height comes from fr zone, not px mins */
.screen1-docs .doc-card {
  min-height: 0;
  padding: 10px 12px 52px;
}

.doc-card .card-visual {
  flex: 1;
  min-height: 0;
  margin-top: 0;
  margin-bottom: 6px;
  order: -1;
}

.doc-card .doc-stack {
  width: min(100px, 58%);
  aspect-ratio: 3 / 4;
}

.doc-card .card-title {
  font-size: clamp(13px, 1.05vw, 16px);
  margin-bottom: 2px;
  min-height: 0;
  display: flex;
  align-items: flex-start;
}

.doc-card .card-meta {
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
  color: #9a8f86;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.doc-card .card-arrow {
  width: 40px;
  height: 40px;
  bottom: 10px;
  left: 12px;
}

.grid-organs {
  grid-template-rows: 2.2fr 1fr;
  gap: 16px;
  min-height: 0;
}

.organs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  min-height: 0;
}

.feedback-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 16px;
  align-items: stretch;
  min-height: 0;
}

.card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
  text-align: left;
  width: 100%;
  height: 100%;
}

.card:active {
  transform: scale(0.985);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-500);
  color: var(--brown-deep);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card-title {
  margin: 0 0 8px;
  font-family: "TT Quaris", Georgia, serif;
  font-weight: 500;
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.2;
  color: var(--brown-deep);
}

.card-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
}

.card-meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--stone);
  color: #9a8f86;
}

.card-visual {
  flex: 1;
  min-height: 0;
  margin-top: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.doc-stack {
  position: relative;
  width: min(220px, 70%);
  aspect-ratio: 3 / 4;
}

.doc-stack img,
.doc-stack .doc-sheet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(36, 28, 22, 0.15);
  background: var(--cream-soft);
  border: 1px solid rgba(77, 54, 37, 0.08);
}

.doc-stack .sheet-2 {
  transform: translate(10px, -8px) rotate(3deg);
  z-index: 1;
  opacity: 0.85;
}

.doc-stack .sheet-1 {
  transform: translate(-8px, 4px) rotate(-2.5deg);
  z-index: 2;
  opacity: 0.9;
}

.doc-stack .sheet-0 {
  z-index: 3;
}

.card-arrow {
  position: absolute;
  left: 24px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  display: grid;
  place-items: center;
  color: var(--brown-deep);
  z-index: 5;
}

.card-arrow svg {
  width: 22px;
  height: 22px;
}

/* NPA cards */

.npa-card {
  padding: 22px 18px 18px;
  align-items: center;
  text-align: center;
  gap: 0;
}

.npa-card .card-title {
  font-size: clamp(15px, 1.2vw, 20px);
  margin: 0 0 8px;
  min-height: 2.5em;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.npa-cover {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 16px;
}

.npa-cover img {
  height: min(100%, 320px);
  width: auto;
  max-width: 78%;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(36, 28, 22, 0.2));
}

.npa-card .btn-yellow {
  margin-top: auto;
}

.btn-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  width: 100%;
  padding: 0 20px;
  border-radius: 14px;
  background: var(--primary);
  color: var(--brown-deep);
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 600;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s;
}

.btn-yellow:active {
  background: #ffe56a;
  transform: scale(0.98);
}

.btn-brown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: 100%;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--brown);
  color: var(--primary);
  font-size: 15px;
  font-weight: 600;
  margin-top: auto;
}

.btn-brown:active {
  background: var(--brown-deep);
}

/* Activity cards */

.activity-card .card-visual {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--cream-soft);
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.activity-card .card-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Specialists preview — 2×2 mini doctor cards */
.doctors-preview {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  min-height: 0;
}

.doctor-mini {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1.5px solid var(--stone);
  background: var(--white);
}

.doctor-mini img {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  max-height: 55%;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
  background: var(--cream-soft);
}

.doctor-mini__meta {
  flex: 1;
  min-height: 0;
  padding: 4px 6px 5px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #e8e6e2;
  overflow: hidden;
}

.doctor-mini__name,
.doctor-mini__exp,
.doctor-mini__role {
  margin: 0;
  text-align: left;
}

.doctor-mini__name {
  font-family: "TT Quaris", Georgia, serif;
  font-size: clamp(9px, 0.72vw, 11px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--brown-deep);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.doctor-mini__exp {
  font-size: clamp(8px, 0.65vw, 10px);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.doctor-mini__role {
  font-size: clamp(8px, 0.65vw, 10px);
  line-height: 1.25;
  color: var(--brown);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Directions preview — 2×3 tiles */
.directions-preview {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 5px;
  padding: 5px;
  min-height: 0;
}

.direction-mini {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-radius: 7px;
  border: 1.5px solid var(--stone);
  background: var(--white);
}

.direction-mini > img {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  background: var(--cream-soft);
}

.direction-mini__icon {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-items: center;
  background: var(--primary-500);
  padding: 6px;
}

.direction-mini__icon img {
  width: min(36px, 55%);
  height: auto;
  max-height: 70%;
  object-fit: contain;
}

.direction-mini__label {
  margin: 0;
  flex-shrink: 0;
  padding: 3px 4px 4px;
  font-size: clamp(8px, 0.65vw, 10px);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: var(--brown-deep);
  background: #e8e6e2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.care-segments {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  align-content: stretch;
  gap: 8px;
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 0;
  align-self: stretch;
  padding: 8px 8px 64px;
  background: transparent;
  box-sizing: border-box;
}

.care-segments span {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  min-height: 0;
  height: 100%;
  align-self: stretch;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.care-segments .seg-oms {
  background: #c5e4f5;
  color: #1e3a5f;
}

.care-segments .seg-dms {
  background: #b8e0d8;
  color: #1a4540;
}

.care-segments .seg-paid {
  background: #1a2a4a;
  color: #e8eef8;
}

.price-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--brown-deep);
  font-family: "TT Quaris", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  display: grid;
  place-items: center;
}

/* Organs / feedback */

.organ-card {
  padding: 20px 20px 16px;
  min-height: 0;
}

.organ-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--cream-soft);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--brown);
  border: 1px solid var(--stone);
  flex-shrink: 0;
  overflow: hidden;
  padding: 4px;
}

.organ-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.organ-card .card-title {
  font-size: 18px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.organ-meta {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.organ-card .btn-brown {
  flex-shrink: 0;
  margin-top: auto;
}

.feedback-card {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

.feedback-card .card-title {
  font-size: 17px;
}

.feedback-card .card-desc {
  font-size: 13px;
  line-height: 1.35;
}

.qr-block {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 150px;
  min-height: 0;
}

.qr-block img,
.qr-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  background: var(--cream-soft);
  flex-shrink: 0;
}

.qr-placeholder {
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding: 8px;
  border: 1px dashed var(--stone);
}

.qr-block span {
  font-size: 13px;
  text-align: center;
  color: var(--muted);
  max-width: 140px;
}

.contact-line {
  font-size: 18px;
  font-weight: 600;
  color: var(--brown-deep);
}

/* —— Bottom nav —— */

.kiosk-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 40px 12px;
  z-index: 20;
}

.nav-btn {
  width: var(--touch);
  height: var(--touch);
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-card);
  display: grid;
  place-items: center;
  color: var(--brown);
  transition: background 0.15s, transform 0.15s;
}

.nav-btn:active:not(:disabled) {
  transform: scale(0.94);
  background: var(--primary-500);
}

.nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.nav-btn svg {
  width: 28px;
  height: 28px;
}

.nav-btn--next {
  justify-self: end;
}

.dots {
  display: flex;
  gap: 12px;
  align-items: center;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--stone);
  transition: background 0.2s, transform 0.2s;
}

.dot.is-active {
  background: var(--primary);
  transform: scale(1.25);
  box-shadow: 0 0 0 4px rgba(255, 240, 160, 0.45);
}

/* —— Overlays —— */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  background: rgba(36, 28, 22, 0.45);
  backdrop-filter: blur(4px);
}

.overlay.is-open {
  display: flex;
}

.overlay-panel {
  flex: 1;
  margin: 24px;
  margin-top: 20px;
  background: var(--cream);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: popIn 0.35s var(--ease);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.overlay-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--stone);
  flex-shrink: 0;
}

.overlay-title {
  margin: 0;
  font-family: "TT Quaris", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--brown-deep);
}

.overlay-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.overlay-actions .btn-yellow,
.overlay-actions .btn-brown {
  width: auto;
  min-width: 160px;
  min-height: 56px;
  padding: 0 24px;
}

.btn-close {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cream-soft);
  display: grid;
  place-items: center;
  color: var(--brown);
}

.btn-close:active {
  background: var(--stone);
}

.overlay-body {
  flex: 1;
  min-height: 0;
  background: #fff;
}

.overlay-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

/* Frame overlay keeps home chrome */

.frame-shell {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  grid-template-rows: var(--header-h) 1fr;
  background: var(--cream);
}

.frame-shell.is-open {
  display: grid;
}

.frame-shell .kiosk-header {
  background: var(--cream);
  border-bottom: 1px solid var(--stone);
}

.frame-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.frame-label {
  font-size: 15px;
  color: var(--muted);
  max-width: 50vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Portrait / narrower */

/* Portrait panel 1080×1920 and narrow */
@media (max-aspect-ratio: 3/4), (max-width: 900px) {
  :root {
    --header-h: 64px;
    --nav-h: 80px;
  }

  .screen {
    padding: 8px 20px 8px;
    gap: 12px;
  }

  .grid-2,
  .grid-4,
  .organs-row,
  .feedback-row {
    grid-template-columns: 1fr 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  /* Hero stays 2 columns; docs become 2×2 via .grid-4 above */
  .screen1-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 1.55fr 1fr;
    gap: 12px;
  }

  .screen1-hero {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .hero-doc-card {
    padding: 14px 14px 56px;
    flex-direction: column;
  }

  .hero-doc-card .card-title {
    font-size: clamp(15px, 2.4vw, 18px);
  }

  .doc-stack--hero {
    width: min(140px, 55%);
  }

  .screen1-docs .doc-card {
    min-height: 0;
    padding: 12px 12px 52px;
  }

  .doc-card .doc-stack {
    width: min(120px, 55%);
  }

  .doc-card .card-title {
    font-size: clamp(14px, 2vw, 17px);
  }

  .grid-organs {
    overflow-y: auto;
  }

  .feedback-row {
    grid-template-columns: 1fr 1fr;
  }

  .qr-block {
    grid-column: 1 / -1;
    flex-direction: row;
    min-width: 0;
  }

  .npa-cover img {
    height: min(100%, 200px);
  }

  .kiosk-header,
  .kiosk-nav {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Care segments: equal row heights + even gaps fill the visual */
  .care-segments {
    grid-template-rows: repeat(3, minmax(0, 1fr));
    align-content: stretch;
    gap: 12px;
    padding: 10px 8px 56px;
  }

  .care-segments span {
    font-size: 14px;
    padding: 12px;
    height: 100%;
    align-self: stretch;
  }
}

/* Tall portrait (typical kiosk 1080×1920) */
@media (orientation: portrait) and (min-height: 1400px) {
  .screen[data-screen="2"] .grid-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .npa-cover img {
    height: min(100%, 280px);
  }

  .screen1-layout {
    grid-template-rows: 1.55fr 1fr;
  }

  .doc-stack--hero {
    width: min(180px, 52%);
  }
}

@media (orientation: landscape) and (min-width: 1400px) {
  .screen-title {
    font-size: 44px;
  }

  .screen1-layout {
    gap: 18px;
  }

  .screen1-hero {
    gap: 24px;
  }

  .doc-stack--hero {
    width: min(220px, 46%);
  }

  .npa-cover img {
    height: min(100%, 360px);
  }

  /* Organs taller so «Перейти на сайт» fits; feedback shrinks */
  .grid-organs {
    grid-template-rows: 2.6fr 1fr;
  }

  .qr-placeholder,
  .qr-block img {
    width: 88px;
    height: 88px;
  }
}
