/* Мегапанель «Послуги» — ТІ САМІ правила й значення, що в першому прототипі (assets/nav2/nav2.css), корінь .nvp замість .nv.
   Рішення власника 28.10.2026: «под меню услуг оставь точно такое, как у тебя было». Лише компʼютер (≥1024). */
@font-face { font-family: "NV Roboto"; src: url("../sdh/fonts/roboto.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
.nvp { --brand: #3049a1; --brand-2: #3d6fbb; --orange: #f16e1f; --orange-d: #e2601a; --ink: #0f1a44; --muted: #5b6784; --mist: #f1f4fb; --line: rgba(15, 26, 68, .1);
	--bar-h: 60px; --gut: 16px; --r: 12px; --ease: cubic-bezier(.32, .72, 0, 1);
	font-family: "NV Roboto", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; }
.nvp, .nvp * { box-sizing: border-box; }
.nvp :where(a, a:link, a:visited, a:hover) { color: inherit; text-decoration: none; }
.nvp :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-transform: none; letter-spacing: normal; box-shadow: none; min-width: 0; width: auto; height: auto; line-height: inherit; border-radius: 0; }
.nvp :where(ul) { list-style: none; margin: 0; padding: 0; }
.nvp :where(li) { margin: 0; padding: 0; }
.nvp li::before, .nvp li::marker { content: none; }
.nvp :where(p) { margin: 0; }
.nvp[hidden] { display: none !important; }
.nvp .nv-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nvp .nv-i { width: 20px; height: 20px; flex: 0 0 auto; }
.nvp :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.nvp { position: fixed; left: 0; right: 0; top: var(--nvp-top, 84px); z-index: 1000; padding: 0 var(--gut); pointer-events: none; }
@media (max-width: 1023px) { .nvp { display: none !important; } }
.nvp .nv-col__h { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 22px; font-weight: 700; line-height: 1.2; }
.nvp .nv-col__list a { position: relative; display: flex; align-items: center; min-height: 50px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.3; }
.nvp .nv-col__all { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; min-height: 44px; color: var(--brand) !important; font-weight: 600; font-size: 16px; }
.nvp .nv-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px !important; border-radius: 20px !important; background: var(--mist) !important; color: var(--brand) !important; font-size: 15px; font-weight: 500; }
.nvp .nv-chip--ai { color: #fff !important; background: var(--brand) !important; }
.nvp .nv-fakeinput { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; margin: 10px 0 18px; padding: 0 16px; border-radius: 14px !important; background: var(--mist) !important; color: var(--muted); font-size: 16px; text-align: left; }
.nvp .nv-fakeinput .nv-i { color: var(--brand); }
.nvp .nv-gbtn__ic, .nvp .nv-col__ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; color: var(--brand); background: #fff; }
.nvp .nv-col--accent .nv-col__ic { color: #fff; background: var(--brand); }
@media (min-width: 1024px) {
	.nvp { --gut: clamp(24px, 3vw, 48px); }
	.nvp .nv-panel { pointer-events: auto; background: #fff; border-radius: 0 0 20px 20px; box-shadow: 0 24px 48px -24px rgba(15, 26, 68, .35), 0 0 0 1px var(--line); animation: nv-drop .22s var(--ease); }
	@keyframes nv-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
	.nvp .nv-panel--svc { max-width: 1320px; margin: 0 auto; padding: 24px 28px 18px; max-height: calc(100vh - var(--bar-h) - 12px); overflow-y: auto; }
	.nvp .nv-panel--svc .nv-col { display: block !important; animation: none !important; }
	.nvp .nv-cols { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1.7fr 1fr; grid-template-rows: auto auto; gap: 8px 22px; }
	.nvp .nv-col--accent { grid-row: span 2; margin: -10px 0 -6px -12px; padding: 12px 14px 14px; border-radius: 16px; background: linear-gradient(160deg, #f3f6fd, #e9eefa); }
	.nvp [data-nv-screen="gyn"], .nvp [data-nv-screen="fam"], .nvp [data-nv-screen="spec"] { grid-row: span 2; }
	.nvp .nv-col__h { gap: 10px; margin-bottom: 6px; font-size: 15px; font-weight: 700; color: var(--ink); }
	.nvp .nv-col__ic { width: 30px; height: 30px; border-radius: 9px; background: var(--mist); }
	.nvp .nv-col__ic .nv-i { width: 18px; height: 18px; }
	.nvp .nv-col--accent .nv-col__ic { background: var(--brand); }
	.nvp .nv-col__list a { min-height: 0; padding: 5px 0; border: 0; font-size: 14px; color: var(--muted); transition: color .15s; }
	.nvp .nv-col__list a:hover { color: var(--brand); }
	.nvp .nv-col--accent .nv-col__list a { color: var(--ink); }
	.nvp .nv-col--accent .nv-col__list a:hover { color: var(--brand); }
	.nvp .nv-col--wide .nv-col__list { columns: 2; column-gap: 18px; }
	.nvp .nv-col--wide .nv-col__list li { break-inside: avoid; }
	.nvp .nv-col__all { margin-top: 6px; min-height: 32px; font-size: 14px; }
	.nvp .nv-col__all .nv-i { width: 16px; height: 16px; }
	.nvp .nv-panel__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
	.nvp .nv-fakeinput { margin: 0; min-height: 40px; font-size: 14px; border-radius: 20px !important; }
	.nvp .nv-fakeinput--wide { width: auto; flex: 1 1 280px; max-width: 420px; }
	.nvp .nv-chip { min-height: 40px; font-size: 14px; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
	.nvp .nv-cols { grid-template-columns: 1.1fr 1fr 1fr 1.5fr; }
	.nvp [data-nv-screen="diag"], .nvp [data-nv-screen="surg"] { grid-row: auto; }
	.nvp [data-nv-screen="diag"] { grid-column: 2; } .nvp [data-nv-screen="surg"] { grid-column: 3; }
	.nvp [data-nv-screen="gyn"], .nvp [data-nv-screen="fam"] { grid-row: auto; }
	.nvp [data-nv-screen="spec"] { grid-row: span 2; }
}

/* --- 28.10.2026, слово власника: підсвітка переїжджає за мишкою; галочка біля «Послуги» --- */
@media (min-width: 1024px) {
	/* панель тепер висить під шапкою головної з проміжком — усі кути заокруглені */
	.nvp .nv-panel { border-radius: 20px; }
	.nvp .nv-cols { position: relative; }
	.nvp .nv-col { position: relative; z-index: 1; }
	/* колонка операцій більше не має свого тла: світло-блакитне тло — один шар, що їздить за мишкою */
	.nvp .nv-col--accent { margin: 0; padding: 0; background: none; border-radius: 0; }
	.nvp .nvp-hl { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 16px; background: linear-gradient(160deg, #f3f6fd, #e9eefa); pointer-events: none;
		transition: transform .38s var(--ease), width .38s var(--ease), height .38s var(--ease); }
	.nvp .nv-col .nv-col__ic { transition: background-color .25s, color .25s; }
	.nvp .nv-col:not(.is-hl) .nv-col__ic { color: var(--brand); background: var(--mist); }
	.nvp .nv-col.is-hl .nv-col__ic { color: #fff; background: var(--brand); }
	.nvp .nv-col:not(.is-hl) .nv-col__list a { color: var(--muted); }
	.nvp .nv-col.is-hl .nv-col__list a { color: var(--ink); }
	.nvp .nv-col .nv-col__list a:hover { color: var(--brand); }
}
/* галочка біля «Послуги» в шапці головної */
/* галочка — окрема ціль для кліку («відкрити список без переходу»): видно 14 px, а влучати можна в 26 px — поля компенсовані
   відʼємними відступами, тож пункт шапки не став ні ширшим, ні вищим */
.top__nav a .nvp-chev { box-sizing: content-box; display: inline-block; width: 14px; height: 14px; padding: 6px; margin: -6px -6px -6px -2px; vertical-align: -2px; opacity: .7; cursor: pointer; transition: transform .25s cubic-bezier(.32, .72, 0, 1), opacity .2s; }
.top__nav a .nvp-chev:hover { opacity: 1; }
.top__nav a[aria-expanded="true"] .nvp-chev { transform: rotate(180deg); opacity: 1; }
@media (max-width: 1023px) { .top__nav a .nvp-chev { display: none; } }

/* --- 28.10.2026, слова власника: 5 колонок без «зайвої» правої, по 8 пунктів; «Усі… →» на одному рівні --- */
@media (min-width: 1024px) {
	.nvp .nv-cols { grid-template-columns: 1.15fr 1fr 1fr 1.7fr 1fr; grid-template-rows: auto; align-items: stretch; }
	.nvp .nv-panel--svc .nv-col { grid-row: auto !important; grid-column: auto !important; display: flex !important; flex-direction: column; }
	.nvp .nv-col__h { min-height: 40px; }
	.nvp .nv-col__all { align-self: flex-start; margin-top: auto; padding-top: 10px; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
	.nvp .nv-cols { grid-template-columns: 1.1fr 1fr 1fr 1.6fr 1fr; gap: 8px 16px; }
}
@media (min-width: 1024px) {
	/* поле пошуку внизу панелі — в один рядок (RU-текст довший, а кнопок стало на одну більше) */
	.nvp .nv-fakeinput--wide { min-width: 220px; }
	.nvp .nv-fakeinput--wide span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* --- 28.10.2026: справжнє поле пошуку внизу панелі (вигляд — як попереднє «поле-кнопка») і «Бібліотека» ▾ --- */
@media (min-width: 1024px) {
	.nvp .nvp-search { position: relative; display: flex; align-items: center; gap: 10px; flex: 1 1 280px; max-width: 420px; min-width: 220px; min-height: 40px; margin: 0; padding: 0 16px; border-radius: 20px; background: var(--mist); color: var(--muted); }
	.nvp .nvp-search > .nv-i { color: var(--brand); }
	.nvp .nvp-search input[type="search"] { flex: 1; min-width: 0; height: 40px; margin: 0; padding: 0; border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important; font: inherit; font-size: 14px; color: var(--ink); -webkit-appearance: none; appearance: none; }
	.nvp .nvp-search input::placeholder { color: var(--muted); opacity: 1; }
	.nvp .nvp-search input::-webkit-search-cancel-button { display: none; }
	.nvp .nvp-search:focus-within { box-shadow: 0 0 0 2px var(--brand); background: #fff; }
	.nvp .nvp-sugg-host { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 5; width: min(460px, 70vw); }
	.nvp .nvp-sugg-host .sd-sugg { max-height: min(var(--nvp-room, 320px), 420px); overflow-y: auto; overscroll-behavior: contain; padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 24px 50px -24px rgba(15, 26, 68, .45), 0 0 0 1px rgba(15, 26, 68, .08); font-size: 15px; line-height: 1.3; color: var(--ink); text-align: left; }
	.nvp .nvp-sugg-host .sd-sugg[hidden] { display: none; }

	.nvp .nvp-lib { position: relative; }
	.nvp .nvp-lib__btn .nvp-chev { width: 14px; height: 14px; margin-left: 2px; transition: transform .25s var(--ease); }
	.nvp .nvp-lib__btn[aria-expanded="true"] .nvp-chev { transform: rotate(180deg); }
	.nvp .nvp-lib__pop { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 5; display: grid; min-width: 220px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 24px 50px -24px rgba(15, 26, 68, .45), 0 0 0 1px rgba(15, 26, 68, .08); }
	.nvp .nvp-lib__pop[hidden] { display: none; }
	.nvp .nvp-lib__pop a { display: block; padding: 9px 12px; border-radius: 10px; font-size: 15px; color: var(--ink); white-space: nowrap; }
	.nvp .nvp-lib__pop a:hover, .nvp .nvp-lib__pop a[aria-current="page"] { background: var(--mist); color: var(--brand); }
}

/* --- 28.10.2026, слова власника «Зроби такі ж випадаючі списки для цих кнопок, як ти робив в своєму варіанті»:
   малі списки під «Лікарі · Ціни · Акції · Контакти» — значення з першого прототипу (.nv-panel--sm у nav2.css) --- */
@media (min-width: 1024px) {
	.nvp .nv-panel[hidden] { display: none !important; }
	.nvp .nv-panel--sm { position: absolute; top: 0; left: var(--nvp-x, 16px); width: 300px; padding: 10px 18px 16px; }
	.nvp .nv-panel--sm .nv-col__list a { padding: 8px 0; font-size: 15px; color: var(--ink); }
	.nvp .nv-panel--sm .nv-col__list a:hover, .nvp .nv-panel--sm .nv-col__list a[aria-current="page"] { color: var(--brand); }
	.nvp .nv-panel--sm .nv-col__list li + li a { border-top: 1px solid var(--line); }
	.nvp .nv-panel--sm .nv-col__all { margin-top: 6px; padding-top: 0; }
}
