/* styles (truncated for brevity in this cell); the full version will be saved below again if needed */
:root {
	--brand: #0bb7a7;
	--brand-dark: #099b8e;
	--text: #1c2a3a;
	--muted: #6b7a90;
	--bg: #f6f9fc;
	--hero-grad-start: #2f80ed;
	--hero-grad-end: #56ccf2;
}

* {
	box-sizing: border-box;
}

html,body {
	margin: 0;
	padding: 0;
	font-family: Inter,system-ui,Segoe UI,Roboto,Arial,sans-serif;
	color: var(--text);
	background: var(--bg);
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 0;
	background: white;
	border-bottom: 1px solid #e9eef5;
	position: sticky;
	top: 0;
	z-index: 20;
}

.logo {
	display: flex;
	gap: 12px;
	align-items: center;
	font-weight: 700;
	color: var(--text);
	text-decoration: none;
}

.logo svg {
	width: 32px;
	height: 32px;
}

.nav a {
	margin: 0 14px;
	text-decoration: none;
	color: var(--muted);
}

.nav a:hover {
	color: var(--text);
}

.auth a {
	margin-left: 12px;
	text-decoration: none;
	color: var(--muted);
}

.btn {
  background-color: #2F6FAD;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.form .btn { margin-top: 10px; } /* отступ оставляем только в формах */

.btn:hover {
	background: var(--brand-dark);
}

.hero {
	    height: 300px;
    background-size: cover;
    background-position: center 0;
	background-image: url(../Content/f8a1b8e2-fc25-44b8-94d0-429237748120.jpg);
	color: white;
	padding: 72px 0;
}

.hero h1 {
	font-size: 42px;
	margin: 0 0 10px;
}

.hero p {
	margin: 0 0 22px;
	opacity: .95;
	font-size: 18px;
}

.hero .actions {
	display: flex;
	gap: 14px;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(4,minmax(0,1fr));
	gap: 28px;
	margin: 30px 0 60px;
}

.card {
	background: white;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(15,25,50,.06);
	padding: 22px;
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.card h4 {
	margin: 0 0 6px;
}

.card p {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

footer {
	padding: 40px 0;
	border-top: 1px solid #e9eef5;
	text-align: center;
	color: var(--muted);
}

.form {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 450px;
  margin: 20px auto;
  width: 100%;
  box-sizing: border-box;
}

.input input, .input select, .form .btn {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}

.form h2 {
	margin: 0 0 12px;
}

.input {
	display: flex;
	flex-direction: column;
	margin-bottom: 20px;
}

.input label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.input input, .input select, .input textarea {
	padding: 12px;
	border: 1px solid #e6ecf5;
	border-radius: 10px;
}

.input textarea {
    min-height: 140px;
    width: 200px;
    resize: vertical;
}

.error {
	background: #ffe2e2;
	color: #8a0000;
	padding: 10px;
	border-radius: 10px;
	margin-bottom: 12px;
}

.success {
	background: #e8fff3;
	color: #087f5b;
	padding: 10px;
	border-radius: 10px;
	margin-bottom: 12px;
}

.link {
	color: var(--brand);
	text-decoration: none;
}

.protected {
	max-width: 1000px;
	margin: 30px auto;
	background: white;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(15,25,50,.06);
	padding: 24px;
}

.news-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	grid-template-rows: auto auto;
	gap: 18px;
	height: 600px;
}

.news-big {
	grid-row: 1 / span 2;
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 10px 30px rgba(15,25,50,.06);
}

.news-mini {
	height: 50%;
	min-height: 150px;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 10px 30px rgba(15,25,50,.06);
}

.news-bottom {
	grid-column: 1 / span 2;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.news-card {
	position: relative;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	display: flex;
}

.news-card img {
	width: 50%;
	height: 100%;
	object-fit: cover;
}

.news-card .info {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.news-cover {
	position: relative;
	height: 100%;
}

.news-cover img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg,rgba(0,0,0,.0),rgba(0,0,0,.55));
}

.news-title {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 16px;
	color: #fff;
	font-weight: 700;
	font-size: 22px;
	text-shadow: 0 2px 10px rgba(0,0,0,.5);
}

.news-mini .news-title {
	font-size: 16px;
}

@media (max-width:900px) {
	.news-grid {
		grid-template-columns: 1fr;
		margin-left: -35px;
	}

	.news-big {
		grid-row: auto;
	}

	.news-bottom {
		grid-template-columns: 1fr;
	}

	.news-mini {
		height: 180px;
	}

	.news-card {
		flex-direction: column;
	}

	.news-card img {
		width: 100%;
		height: 200px;
	}
}

.badge {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 999px;
	background: #eef6f5;
	color: #0b6b68;
	font-weight: 600;
	font-size: 12px;
}

.table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
}

.table th,.table td {
	border-bottom: 1px solid #edf0f5;
	padding: 10px;
	text-align: left;
	font-size: 14px;
}

.table tr:hover {
	background: #f9fbff;
}

.row-actions a {
	margin-right: 10px;
}

.slot-btn {
	margin: 6px 6px 0 0;
	padding: 8px 12px;
	border: 1px solid #e6ecf5;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
}

.slot-btn[disabled] {
	opacity: .5;
	cursor: not-allowed;
}
/*! CSS Used from: https://gorzdrav.spb.ru/css/main.min.css */
*,*::before,*::after {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

header,nav {
	display: block;
}

ul {
	margin-top: 0;
	margin-bottom: 1rem;
}

a {
	color: #007bff;
	text-decoration: none;
	background-color: transparent;
	-webkit-text-decoration-skip: objects;
}

@media (hover: hover) and (pointer: fine) {
	a:hover {
		color: #0056b3;
		text-decoration: underline;
	}
}

a:not([href]):not([tabindex]) {
	color: inherit;
	text-decoration: none;
}

a:not([href]):not([tabindex]):hover,a:not([href]):not([tabindex]):focus {
	color: inherit;
	text-decoration: none;
}

a:not([href]):not([tabindex]):focus {
	outline: 0;
}

img {
	vertical-align: middle;
	border-style: none;
}

svg:not(:root) {
	overflow: visible!important;
}

button {
	-webkit-border-radius: 0;
	border-radius: 0;
}

button:focus {
	outline: 1px dotted;
	outline: 5px auto -webkit-focus-ring-color;
}

input,button {
	margin: 0;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}

button,input {
	overflow: visible;
}

button {
	text-transform: none;
}

button,html [type="button"],[type="submit"] {
	-webkit-appearance: button;
}

fieldset {
	min-width: 0;
	padding: 0;
	margin: 0;
	border: 0;
}

*,*::before,*::after {
	-webkit-box-sizing: inherit;
	box-sizing: inherit;
}

.container {
	width: 100%;
	padding-right: 22px;
	padding-left: 22px;
	margin-right: auto;
	margin-left: auto;
}

@media (min-width: 576px) {
	.container {
		max-width: 540px;
	}
}

@media (min-width: 768px) {
	.container {
		max-width: 720px;
	}
}

@media (min-width: 992px) {
	.container {
		max-width: 960px;
	}
}

@media (min-width: 1200px) {
	.container {
		max-width: 1140px;
	}
}

body input,body button {
	outline: none;
}

ul,li {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

a {
	color: inherit;
}

@media (hover: hover) and (pointer: fine) {
	a:hover {
		text-decoration: none;
		color: inherit;
	}
}

img {
	max-width: 100%;
	height: auto;
}

@media (min-width: 1200px) {
	.container {
		max-width: 1296px;
	}
}

.header-search {
	transform: translateY(100%);
	position: absolute;
	margin-right: 30px;
	margin-left: 30px;
	display: none;
	bottom: 0;
	right: 0;
	left: 0;
	top: 0;
}

@media (max-width: 992px) {
	.header-search {
		margin-right: 0;
		margin-left: 0;
	}
}

.header-search__wrap {
	box-shadow: 0px 8px 20px 0px #4f4f4f1a;
	background: #ffffff;
	padding: 20px;
}

.header-search__result {
	margin-top: 20px;
}

.search-form__fields {
	align-items: center;
	position: relative;
	flex-wrap: wrap;
	display: flex;
}

.search-form__field {
	padding: 12px 82px 12px 15px;
	border: 1px solid #00aa8a;
	border-radius: 6px;
	font-weight: 400;
	font-size: 16px;
	color: #111111;
	height: 46px;
	width: 100%;
}

.search-form__field::placeholder {
	color: #a9a9a9;
}

.search-form__button {
	background: transparent;
	position: absolute;
	display: none;
	height: 16px;
	width: auto;
	border: 0;
	right: 92px;
}

.search-form__button:hover {
	cursor: pointer;
}

.search-form__submit {
	background: #00aa8a;
	padding-right: 28px;
	padding-left: 28px;
	border-radius: 6px;
	position: absolute;
	width: auto;
	height: 46px;
	border: 0;
	right: 0;
}

.search-form__submit:hover {
	background: #009b7e;
	cursor: pointer;
}

.search-form__submit[disabled] {
	cursor: default;
	opacity: .6;
}

.search-form__button-icon,.search-form__submit-icon {
	height: 16px;
	width: 16px;
}

.search-result {
	display: none;
}

.search-result--preview {
	max-height: 460px;
	overflow-y: auto;
}

@media (max-width: 992px) {
	.search-result--preview {
		max-height: 320px;
	}
}

button:focus {
	outline: 0;
}

@media (min-width: 1300px) {
	.container--new {
		max-width: 1170px;
	}
}

@media (max-width: 1300px) {
	.container--new {
		max-width: 1070px;
	}
}

@media (max-width: 1200px) {
	.container--new {
		max-width: 970px;
	}
}

@media (max-width: 1100px) {
	.container--new {
		max-width: 870px;
	}
}

@media (max-width: 992px) {
	.header {
		background-color: #F1F3F6;
		border-bottom: none;
		padding-top: 18px;
		padding-bottom: 18px;
	}
}

.header__inner {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
}

@media (max-width: 992px) {
	.header__inner {
		padding-left: 15px;
		padding-right: 15px;
	}
}

.header__logo {
	margin-right: 51px;
	-ms-flex-negative: 0;
	flex-shrink: 0;
}

.header__logo:focus {
	outline: 0;
}

@media (max-width: 992px) {
	.header__logo {
		margin-left: auto;
		margin-right: auto;
	}
}

@media (max-width: 767px) {
	.header__logo svg {
		max-width: 140px;
	}
}

@media (max-width: 992px) {
	.header-nav {
		display: none;
	}
}

.header-nav__list {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
}

.header-nav__item {
	color: #6B7786;
	text-transform: uppercase;
	margin-right: 30px;
}

.header-nav__item:hover {
	color: #6B7786;
	text-decoration: underline;
}

.header-nav__item:last-child {
	margin-right: 0;
}

.header-nav__link:focus {
	outline: 0;
}

.header-togglers {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	margin-right: 60px;
	margin-left: auto;
}

@media (max-width: 992px) {
	.header-togglers {
		margin-left: 0;
		margin-right: 20px;
		display: none;
	}
}

.header-toggler {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	cursor: pointer;
	margin-right: 20px;
	opacity: 1;
	-webkit-transition: 0.3s opacity;
	transition: 0.3s opacity;
}

.header-toggler.is-hidden {
	opacity: 0;
}

.header-toggler:last-child {
	margin-right: 0;
}

.header-controls {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: start;
	-ms-flex-align: start;
	align-items: flex-start;
	position: relative;
}

.header-control {
	cursor: pointer;
	position: relative;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	margin-right: 22px;
}

@media (max-width: 992px) {
	.header-control {
		padding-top: 0;
	}
}

.header-control:last-child {
	margin-right: 0;
}

.header-control__icon-wrapper {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	height: 28px;
	cursor: pointer;
}

.header-control__icon-wrapper svg path {
	-webkit-transition: 0.3s fill;
	transition: 0.3s fill;
}

.header-control__icon-wrapper:hover svg path {
	fill: #00aa88;
}

@media (max-width: 992px) {
	.header-control__icon-wrapper {
		position: static;
		height: auto;
	}
}

.header-control__text {
	font-size: 12px;
	font-weight: 600;
	color: #6B7786;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	line-height: 1.2;
	-webkit-transition: 0.3s color;
	transition: 0.3s color;
}

@media (max-width: 992px) {
	.header-control__text {
		margin-top: 2px;
	}
}

.header-burger .burger {
	cursor: pointer;
}

@media (max-width: 992px) {
	.header-burger svg {
		width: 31px;
		height: 19px;
	}
}

@media (max-width: 992px) {
	.header-burger svg path {
		stroke: #AAB1BC;
	}
}

@media (max-width: 992px) {
	.header-blind-toggler {
		display: none;
	}
}

@media (max-width: 992px) {
	.header-enter {
		display: none;
	}
}

.header-enter-mobile {
	display: none;
}

@media (max-width: 992px) {
	.header-enter-mobile {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		-ms-flex-direction: column;
		flex-direction: column;
		-webkit-box-align: center;
		-ms-flex-align: center;
		align-items: center;
		cursor: pointer;
	}
}

.burger {
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.header {
	border-bottom: 2px solid #F1F3F6;
}

.header-blind-toggler svg path {
	-webkit-transition: 0.3s fill;
	transition: 0.3s fill;
}

.header-blind-toggler:hover svg path {
	fill: #00aa88;
}

.burger svg path {
	-webkit-transition: 0.3s stroke;
	transition: 0.3s stroke;
}

.burger:hover svg path {
	stroke: #00aa88;
}
/*! CSS Used from: https://gorzdrav.spb.ru/css/custom.min.css */
.header-togglers {
	margin-right: 20px;
}

/* === Fix: align Login / Register buttons in header === */
.header .auth {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header .auth a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  line-height: 1;
  text-decoration: none;
}
.header .auth a.btn {
  background: #0d6efd;
  color: #fff;
  border: 1px solid transparent;
}
.header .auth a.btn:hover { filter: brightness(0.95); }
.header .auth a:not(.btn) {
  border: 1px solid #0d6efd;
  color: #0d6efd;
  background: #fff;
  border-radius: 10px;
  padding: 0 14px;
}
.header .auth a:not(.btn):hover { background: #f2f6ff; }

/* Align hero action buttons too (if present) */
.hero .actions { display:flex; gap:12px; align-items:center; }
.hero .actions .btn { height:40px; display:inline-flex; align-items:center; justify-content:center; border-radius:10px; }


/* === Modal (doctor picker) === */
.modal { position: fixed; inset: 0; display: none; z-index: 1000; }
.modal.is-open { display: block; }
.modal__backdrop { position:absolute; inset:0; background: rgba(17,24,39,.45); }
.modal__dialog { position: relative; margin: 5vh auto; background:#fff; border-radius:16px; width: min(720px, 92vw); box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.modal__header { display:flex; align-items:center; justify-content:space-between; padding:16px 18px; border-bottom:1px solid #eef2f7; }
.modal__close { width:36px; height:36px; border-radius:8px; border:1px solid #e5e7eb; background:#fff; cursor:pointer; }
.modal__body { padding: 14px 18px 20px; max-height: 65vh; overflow:auto; }
.modal__list { display:grid; grid-template-columns: repeat(1, minmax(0,1fr)); gap:12px; }
@media (min-width:720px){ .modal__list { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.modal__item { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:14px; border:1px solid #eef2f7; border-radius:14px; background:#fff; box-shadow: 0 10px 30px rgba(0,0,0,.04); }
.modal__fio { font-weight:700; }
.modal__spec { color:#6b7a90; font-size: 13px; margin:2px 0 8px; }
.modal__item .btn { height:36px; padding:0 12px; border-radius:10px; }


/* === FullCalendar: клики по датам сквозь фоновые события === */
.fc .fc-bg-event, .fc .fc-highlight { pointer-events: none !important; }
.fc .fc-daygrid-day-frame { cursor: pointer; }


/* === Slot buttons selection === */
.slot-btn { height:36px; padding:0 12px; border-radius:10px; border:1px solid #e5e7eb; background:#fff; cursor:pointer; }
.slot-btn:hover { background:#f7faff; }
.slot-btn.is-selected { background:#e6f4ff; border-color:#60a5fa; color:#0f172a; font-weight:600; }

/* === Doctor cards nicer look & responsive actions === */
.doc-card { border:1px solid #eef2f7; border-radius:16px; padding:14px; margin:12px 0; box-shadow:0 8px 24px rgba(0,0,0,.04); }
.doc-header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.doc-actions { display:flex; gap:8px; flex-wrap:wrap; }
@media (max-width:640px){
  .doc-header { flex-direction:column; align-items:flex-start; }
  .doc-actions { width:100%; }
  .doc-actions .btn { width:100%; justify-content:center; }
}


/* === Header alignment & auth buttons === */
.header .container,.header__inner{ display:flex; align-items:center; }
.header .auth{ display:flex; align-items:center; gap:12px; margin-left:12px; }
.btn{ display:inline-flex; align-items:center; justify-content:center; line-height:1; }
.btn.btn-outline{ background:#fff; color:#0d6efd; border:1px solid #0d6efd; }
.header__notif .bell{ position:relative; width:36px; height:36px; display:inline-block; border:1px solid #e5e7eb; border-radius:10px; background:#fff; }
.header__notif .bell::before{ content:'\1F514'; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); }
.header__notif .bell[data-badge]:after{ content: attr(data-badge); position:absolute; top:-6px; right:-6px; min-width:18px; height:18px; font-size:12px; border-radius:9px; background:#ef4444; color:#fff; display:flex; align-items:center; justify-content:center; padding:0 4px; border:2px solid #fff; }

/* Center text on "Выбрать" etc */
.btn, .slot-btn{ vertical-align:middle; }


/* === Header alignment & buttons === */
.header .container,.header__inner{ display:flex; align-items:center; }
.header .auth{ display:flex; align-items:center; gap:12px; margin-left:auto; }
.btn{ display:inline-flex; align-items:center; justify-content:center; line-height:1; }
.btn.btn-outline{ background:#fff; color:#0d6efd; border:1px solid #0d6efd; }
/* === Slot selection look === */
.slot-btn { height:36px; padding:0 12px; border-radius:10px; border:1px solid #e5e7eb; background:#fff; cursor:pointer; }
.slot-btn:hover { background:#f7faff; }
.slot-btn.is-selected { background:#e6f4ff; border-color:#60a5fa; color:#0f172a; font-weight:600; }
/* FullCalendar clicks through background events */
.fc .fc-bg-event, .fc .fc-highlight { pointer-events: none !important; }
.fc .fc-daygrid-day-frame { cursor: pointer; }


/* Icon login button */
.icon-btn{ width:40px; height:40px; border-radius:10px; border:1px solid #e5e7eb; background:#fff; position:relative; }
.icon-btn::before{ content:'\1F511'; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); }
/* Modal base */
.modal { position: fixed; inset: 0; display: none; z-index: 1000; }
.modal.is-open { display: block; }
.modal__backdrop { position:absolute; inset:0; background: rgba(17,24,39,.45); }
.modal__dialog { position: relative; margin: 5vh auto; background:#fff; border-radius:16px; width: min(720px, 92vw); box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.modal__header { display:flex; align-items:center; justify-content:space-between; padding:16px 18px; border-bottom:1px solid #eef2f7; }
.modal__close { width:36px; height:36px; border-radius:8px; border:1px solid #e5e7eb; background:#fff; cursor:pointer; }
.modal__body { padding: 14px 18px 20px; max-height: 65vh; overflow:auto; }
/* Header alignment */
.header .container,.header__inner{ display:flex; align-items:center; }
.header .auth{ display:flex; align-items:center; gap:12px; margin-left:auto; }
.btn{ display:inline-flex; align-items:center; justify-content:center; line-height:1; }
.btn.btn-outline{ background:#fff; color:#0d6efd; border:1px solid #0d6efd; }


/* ===== Login icon in header (door with arrow) ===== */
.icon-btn{ display:inline-flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; width:48px; height:48px; border-radius:12px; border:1px solid #e5e7eb; background:#fff; cursor:pointer; }
.icon-btn small{ font-size:12px; color:#587082; line-height:1; }
.icon-btn--enter > span{ display:inline-block; width:22px; height:22px; position:relative; }
.icon-btn--enter > span::before{ content:''; position:absolute; left:2px; top:2px; width:16px; height:16px; border:2px solid #87a2b4; border-radius:3px; border-left:none; }
.icon-btn--enter > span::after{ content:''; position:absolute; width:0; height:0; border-top:5px solid transparent; border-bottom:5px solid transparent; border-left:7px solid #2f6fad; right:-2px; top:6px; }
/* ===== Modal new design ===== */
.modal { position: fixed; inset: 0; display: none; z-index: 1000; }
.modal.is-open { display: block; }
.modal__backdrop { position:absolute; inset:0; background: rgba(17,24,39,.45); }
.modal__dialog.modal--login { position: relative; margin: 8vh auto; background:#f3f8fb; border-radius:18px; width:min(520px,94vw); padding:22px 22px 24px; box-shadow:0 24px 64px rgba(15,23,42,.25); }
.modal__x{ position:absolute; right:14px; top:14px; width:36px; height:36px; border-radius:10px; border:1px solid #d7e0ea; background:#fff; cursor:pointer; font-size:20px; color:#4b5563; }
.modal__title{ margin:0 0 16px; font-size:28px; color:#1f3b57; }
.login-variants{ display:grid; gap:12px; }
.login-btn{ display:flex; align-items:center; gap:10px; height:48px; padding:0 16px; border-radius:12px; color:#fff; font-weight:600; text-decoration:none; }
.login-btn__icon{ width:26px; text-align:center; font-size:18px; }
.login-btn--patient{ background:#0b53a3; }
.login-btn--org{ background:#0ea78a; }
.login-btn--doctor{ background:#de4b50; }
.login-btn:hover{ filter:brightness(0.95); }


/* Header login icon identical to reference */
.login-icon{ display:inline-flex; align-items:center; gap:6px; background:transparent; border:none; cursor:pointer; padding:4px 6px; }
.login-icon__svg{ display:block; }
.login-icon__label{ font-size:14px; color:#5e798d; line-height:1; }

/* Modal design */
.modal { position: fixed; inset: 0; display: none; z-index: 1000; }
.modal.is-open { display: block; }
.modal__backdrop { position:absolute; inset:0; background: rgba(17,24,39,.45); }
.modal__dialog.modal--login { position: relative; margin: 8vh auto; background:#f3f8fb; border-radius:18px; width:min(520px,94vw); padding:22px 22px 24px; box-shadow:0 24px 64px rgba(15,23,42,.25); }
.modal__x{ position:absolute; right:14px; top:14px; width:36px; height:36px; border-radius:10px; border:1px solid #d7e0ea; background:#fff; cursor:pointer; font-size:20px; color:#4b5563; }
.modal__title{ margin:0 0 16px; font-size:28px; color:#1f3b57; }
.login-variants{ display:grid; gap:12px; }
.login-btn{ display:flex; align-items:center; gap:10px; height:48px; padding:0 16px; border-radius:12px; color:#fff; font-weight:600; text-decoration:none; }
.login-btn__icon{ width:26px; text-align:center; font-size:18px; }
.login-btn--patient{ background:#0b53a3; }
.login-btn--org{ background:#0ea78a; }
.login-btn--doctor{ background:#de4b50; }
.login-btn:hover{ filter:brightness(0.95); }

/* Keep header alignment */
.header .container,.header__inner{ display:flex; align-items:center; }
.header .auth{ display:flex; align-items:center; gap:12px; margin-left:auto; }
.btn{ display:inline-flex; align-items:center; justify-content:center; line-height:1; }
.btn.btn-outline{ background:#fff; color:#0d6efd; border:1px solid #0d6efd; }


.table{ width:100%; border-collapse:collapse; background:#fff; border-radius:12px; overflow:hidden; }
.table th,.table td{ padding:10px 12px; border-bottom:1px solid #eef2f7; text-align:left; }
.table thead th{ background:#f8fbfe; font-weight:600; color:#234; }


/* === Pixel-accurate login icon (door + arrow) === */
.login-icon{ display:inline-flex; align-items:center; gap:6px; background:transparent; border:none; cursor:pointer; padding:0; }
.login-icon__svg{ width:22px; height:22px; }
.login-icon__label{ font-size:14px; color:#5f7a8e; position:relative; top:2px; }

/* === Modal exact look === */
.modal { position: fixed; inset: 0; display: none; z-index: 1000; }
.modal.is-open { display: block; }
.modal__backdrop { position:absolute; inset:0; background: rgba(17,24,39,.45); }
.modal__dialog.modal--login { position: relative; margin: 6vh auto; background:#f3f8fb; border-radius:16px; width:min(460px,92vw); padding:18px 18px 22px; box-shadow:0 18px 60px rgba(15,23,42,.22); }
.modal__x{ position:absolute; right:12px; top:12px; width:34px; height:34px; border-radius:10px; border:1px solid #d8e2ec; background:#fff; cursor:pointer; font-size:20px; color:#4b5563; }
.modal__title{ margin:0 0 14px; font-size:32px; color:#1f3b57; font-weight:700; }

.login-variants{ display:grid; gap:12px; }
.login-btn{ display:flex; align-items:center; gap:12px; height:48px; padding:0 16px; border-radius:10px; color:#fff; font-weight:600; letter-spacing:.1px; text-decoration:none; }
.login-btn svg{ flex:0 0 auto; }
.login-btn--patient{ background:#0B53A3; }
.login-btn--org{ background:#0EA78A; }
.login-btn--doctor{ background:#DE4B50; }
.login-btn:hover{ filter:brightness(0.96); }

/* tables used in records pages */
.table{ width:100%; border-collapse:collapse; background:#fff; border-radius:12px; overflow:hidden; }
.table th,.table td{ padding:10px 12px; border-bottom:1px solid #eef2f7; text-align:left; }
.table thead th{ background:#f8fbfe; font-weight:600; color:#234; }

/* Header alignment stays crisp */
.header .container,.header__inner{ display:flex; align-items:center; }
.header .auth{ display:flex; align-items:center; gap:12px; margin-left:auto; }
.btn{ display:inline-flex; align-items:center; justify-content:center; line-height:1; }
.btn.btn-outline{ background:#fff; color:#0d6efd; border:1px solid #0d6efd; }
/*! CSS Used from: https://gorzdrav.spb.ru/css/main.min.css */
*,*::before,*::after {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

a {
	color: #007bff;
	text-decoration: none;
	background-color: transparent;
	-webkit-text-decoration-skip: objects;
}

@media (hover: hover) and (pointer: fine) {
	a:hover {
		color: #0056b3;
		text-decoration: underline;
	}
}

*,*::before,*::after {
	-webkit-box-sizing: inherit;
	box-sizing: inherit;
}

a {
	color: inherit;
}

@media (hover: hover) and (pointer: fine) {
	a:hover {
		text-decoration: none;
		color: inherit;
	}
}

.button {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: center;
	-webkit-justify-content: center;
	-ms-flex-pack: center;
	justify-content: center;
	-webkit-box-align: center;
	-webkit-align-items: center;
	-ms-flex-align: center;
	align-items: center;
	height: 46px;
	color: #fff;
	border: none;
	padding: 0;
	outline: 0;
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	-webkit-transition: 300ms;
	-moz-transition: 300ms;
	-ms-transition: 300ms;
	-o-transition: 300ms;
	transition: 300ms;
	-webkit-flex-shrink: 0;
	-ms-flex-negative: 0;
	flex-shrink: 0;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

@media (max-width: 992px) {
	.button {
		height: 50px;
	}
}

.button--1 {
	background-color: #00AA8A;
	padding-left: 25.5px;
	padding-right: 25.5px;
}

@media (hover: hover) and (pointer: fine) {
	.button--1:not([disabled]):hover {
		color: #fff;
		background-color: #009b7e;
	}
}

.button--8 {
	border: 1px solid #fff;
	background-color: transparent!important;
	color: #fff;
}

.index-hero__buttons {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
}

@media (max-width: 365px) {
	.index-hero__buttons {
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		-webkit-flex-direction: column;
		-ms-flex-direction: column;
		flex-direction: column;
	}
}

.index-hero__button {
	font-size: 15px;
	height: 49px;
	margin-right: 10px;
	padding-left: 28px;
	padding-right: 28px;
}

@media (max-width: 365px) {
	.index-hero__button {
		width: 100%;
		margin-right: 0;
		margin-bottom: 15px;
	}
}

.index-hero__button:last-child {
	margin-right: 0;
	margin-bottom: 0;
}

.index-hero__button--registration:hover {
	color: #fff;
	border-color: #005398;
	background-color: #005398!important;
}
/*! CSS Used from: https://gorzdrav.spb.ru/css/main.min.css */
*,*::before,*::after {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

*,*::before,*::after {
	-webkit-box-sizing: inherit;
	box-sizing: inherit;
}

.index-hero__title {
	font-size: 36px;
	font-weight: 600;
	margin-bottom: 30px;
	max-width: 90%;
	line-height: 1.2;
}

@media (max-width: 992px) {
	.index-hero__title {
		font-size: 28px;
		max-width: 100%;
		line-height: normal;
		margin-bottom: 21px;
	}
}

@media (max-width: 767px) {
	.index-hero__title {
		font-size: 24px;
	}
}
/*! CSS Used from: https://gorzdrav.spb.ru/css/v2/index.css */
.index-statistics__item-wrapper_popular {
	max-width: 20%!important;
	flex: 0 0 20%!important;
	height: 100px!important;
}

@media (max-width: 992px) {
	.index-statistics__item-wrapper_popular {
		height: 300px!important;
	}
}
/*! CSS Used from: https://gorzdrav.spb.ru/css/main.min.css */
*,*::before,*::after {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

[tabindex="-1"]:focus {
	outline: 0!important;
}

a {
	color: #007bff;
	text-decoration: none;
	background-color: transparent;
	-webkit-text-decoration-skip: objects;
}

@media (hover: hover) and (pointer: fine) {
	a:hover {
		color: #0056b3;
		text-decoration: underline;
	}
}

img {
	vertical-align: middle;
	border-style: none;
}

*,*::before,*::after {
	-webkit-box-sizing: inherit;
	box-sizing: inherit;
}

.container {
	width: 100%;
	padding-right: 22px;
	padding-left: 22px;
	margin-right: auto;
	margin-left: auto;
}

@media (min-width: 576px) {
	.container {
		max-width: 540px;
	}
}

@media (min-width: 768px) {
	.container {
		max-width: 720px;
	}
}

@media (min-width: 992px) {
	.container {
		max-width: 960px;
	}
}

@media (min-width: 1200px) {
	.container {
		max-width: 1140px;
	}
}

.row {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-flex-wrap: wrap;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	margin-right: -22px;
	margin-left: -22px;
}

.col-sm-2,.col-lg-12 {
	position: relative;
	width: 100%;
	min-height: 1px;
	padding-right: 22px;
	padding-left: 22px;
}

@media (min-width: 576px) {
	.col-sm-2 {
		-webkit-box-flex: 0;
		-webkit-flex: 0 0 16.66667%;
		-ms-flex: 0 0 16.66667%;
		flex: 0 0 16.66667%;
		max-width: 16.66667%;
	}
}

@media (min-width: 992px) {
	.col-lg-12 {
		-webkit-box-flex: 0;
		-webkit-flex: 0 0 100%;
		-ms-flex: 0 0 100%;
		flex: 0 0 100%;
		max-width: 100%;
	}
}

a {
	color: inherit;
}

@media (hover: hover) and (pointer: fine) {
	a:hover {
		text-decoration: none;
		color: inherit;
	}
}

img {
	max-width: 100%;
	height: auto;
}

@media (min-width: 1200px) {
	.container {
		max-width: 1296px;
	}
}

@media (min-width: 1300px) {
	.container--new {
		max-width: 1170px;
	}
}

@media (max-width: 1300px) {
	.container--new {
		max-width: 1070px;
	}
}

@media (max-width: 1200px) {
	.container--new {
		max-width: 970px;
	}
}

@media (max-width: 1100px) {
	.container--new {
		max-width: 870px;
	}
}

.slider-dots {
	display: none;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	position: relative;
	margin-top: 20px;
	margin-bottom: 20px;
	height: 9px;
}

@media (max-width: 992px) {
	.slider-dots {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
	}
}

.popular-services {
	-webkit-transform: translateY(-26px);
	transform: translateY(-26px);
	margin-bottom: 63px;
}

@media (max-width: 992px) {
	.popular-services {
		-webkit-transform: none;
		transform: none;
		margin-bottom: 0;
		background-color: #fff;
	}
}

.popular-services__container {
	position: relative;
	padding-left: 15px;
	padding-right: 15px;
	padding-top: 47px;
	padding-bottom: 72px;
}

@media (max-width: 992px) {
	.popular-services__container {
		padding-top: 32px;
		padding-bottom: 40px;
	}
}

.popular-services .row {
	margin-left: -15px;
	margin-right: -15px;
}

.popular-services [class^="col-"] {
	padding-left: 15px;
	padding-right: 15px;
}

.popular-services__bg-row {
	position: absolute;
	left: 15px;
	right: 15px;
	top: 0;
	bottom: 0;
	z-index: -1;
}

.popular-services__bg {
	height: 100%;
}

.popular-services__bg::before {
	content: '';
	display: block;
	position: absolute;
	left: -1000%;
	right: 0;
	top: 0;
	bottom: 0;
	background-color: #fff;
	border-radius: 10px;
}

@media (max-width: 992px) {
	.popular-services__bg::before {
		display: none;
	}
}

.popular-services__sub-title {
	text-transform: uppercase;
	color: #002D40;
}

@media (max-width: 992px) {
	.popular-services__sub-title {
		font-size: 24px;
		font-weight: 300;
	}
}

.popular-services__title {
	font-size: 40px;
	font-weight: 300;
	text-transform: uppercase;
	color: #002D40;
	margin-bottom: 65px;
}

@media (max-width: 992px) {
	.popular-services__title {
		font-size: 24px;
		margin-bottom: 25px;
	}
}

.popular-services__dots {
	margin-bottom: 0;
}

.popular-service {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
}

@media (max-width: 992px) {
	.popular-service {
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		-ms-flex-direction: column;
		flex-direction: column;
		-webkit-box-pack: center;
		-ms-flex-pack: center;
		justify-content: center;
		height: 271px;
		border: 1px solid #00AA8A;
		border-radius: 10px;
	}
}

.popular-service:hover .popular-service__text {
	color: #002D40;
	text-decoration: underline;
}

@media (max-width: 992px) {
	.popular-service:hover .popular-service__text {
		text-decoration: none;
	}
}

.popular-service__icon {
	margin-right: 15px;
	width: 68px;
	height: 68px;
}

@media (max-width: 992px) {
	.popular-service__icon {
		margin-right: 0;
		margin-bottom: 20px;
	}
}

.popular-service__text {
	font-size: 18px;
	color: #002D40;
	max-width: 150px;
}

@media (max-width: 992px) {
	.popular-service__text {
		width: 100%;
		max-width: 168px;
		text-align: center;
	}
}

.popular-services .js-mobile-slider {
	display: none;
}

@media (max-width: 992px) {
	.popular-services .js-desktop-slider {
		display: none;
	}

	.popular-services .js-mobile-slider {
		display: flex;
	}
}
/*! CSS Used from: https://gorzdrav.spb.ru/css/main.min.css */
*,*::before,*::after {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

a {
	color: #007bff;
	text-decoration: none;
	background-color: transparent;
	-webkit-text-decoration-skip: objects;
}

@media (hover: hover) and (pointer: fine) {
	a:hover {
		color: #0056b3;
		text-decoration: underline;
	}
}

*,*::before,*::after {
	-webkit-box-sizing: inherit;
	box-sizing: inherit;
}

.container {
	width: 100%;
	padding-right: 22px;
	padding-left: 22px;
	margin-right: auto;
	margin-left: auto;
}

@media (min-width: 576px) {
	.container {
		max-width: 540px;
	}
}

@media (min-width: 768px) {
	.container {
		max-width: 720px;
	}
}

@media (min-width: 992px) {
	.container {
		max-width: 960px;
	}
}

@media (min-width: 1200px) {
	.container {
		max-width: 1140px;
	}
}

a {
	color: inherit;
}

@media (hover: hover) and (pointer: fine) {
	a:hover {
		text-decoration: none;
		color: inherit;
	}
}

@media (min-width: 1200px) {
	.container {
		max-width: 1296px;
	}
}

@media (min-width: 1300px) {
	.container--new {
		max-width: 1170px;
	}
}

@media (max-width: 1300px) {
	.container--new {
		max-width: 1070px;
	}
}

@media (max-width: 1200px) {
	.container--new {
		max-width: 970px;
	}
}

@media (max-width: 1100px) {
	.container--new {
		max-width: 870px;
		display: inline-block;
        margin-left: -35px;
	}
}

.button {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: center;
	-webkit-justify-content: center;
	-ms-flex-pack: center;
	justify-content: center;
	-webkit-box-align: center;
	-webkit-align-items: center;
	-ms-flex-align: center;
	align-items: center;
	height: 46px;
	color: #fff;
	border: none;
	padding: 0;
	outline: 0;
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	-webkit-transition: 300ms;
	-moz-transition: 300ms;
	-ms-transition: 300ms;
	-o-transition: 300ms;
	transition: 300ms;
	-webkit-flex-shrink: 0;
	-ms-flex-negative: 0;
	flex-shrink: 0;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

@media (max-width: 992px) {
	.button {
		height: 50px;
	}
}

.button--1 {
	background-color: #00AA8A;
	padding-left: 25.5px;
	padding-right: 25.5px;
}

@media (hover: hover) and (pointer: fine) {
	.button--1:not([disabled]):hover {
		color: #fff;
		background-color: #009b7e;
	}
}

.index-block-title {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	margin-bottom: 40px;
}

@media (max-width: 992px) {
	.index-block-title {
		margin-bottom: 30px;
	}
}

.index-block-title__text {
	font-size: 40px;
	font-weight: 300;
	text-transform: uppercase;
	color: #002D40;
	-ms-flex-negative: 0;
	flex-shrink: 0;
	line-height: 1;
	border-bottom: 2px solid transparent;
}

.index-block-title__text:hover {
	border-color: #002D40;
}

@media (max-width: 992px) {
	.index-block-title__text {
		font-size: 24px;
		-webkit-flex-shrink: 1;
		-ms-flex-negative: 1;
		flex-shrink: 1;
		line-height: normal;
	}
}

.index-block-title__divider {
	width: 100%;
	height: 1px;
	background-color: #D5D5D5;
	margin-left: 25px;
	margin-right: 25px;
}

@media (max-width: 992px) {
	.index-block-title__divider {
		display: none;
	}
}

.index-block-title__button {
	font-size: 15px;
	height: 49px;
	-ms-flex-negative: 0;
	flex-shrink: 0;
	padding-left: 28px;
	padding-right: 28px;
}

@media (max-width: 992px) {
	.index-block-title__button {
		display: none;
	}
}

.index-news__container {
	padding-left: 15px;
	padding-right: 15px;
}
/*! CSS Used from: https://gorzdrav.spb.ru/css/main.min.css */
*,*::before,*::after {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

a {
	color: #007bff;
	text-decoration: none;
	background-color: transparent;
	-webkit-text-decoration-skip: objects;
}

@media (hover: hover) and (pointer: fine) {
	a:hover {
		color: #0056b3;
		text-decoration: underline;
	}
}

*,*::before,*::after {
	-webkit-box-sizing: inherit;
	box-sizing: inherit;
}

a {
	color: inherit;
}

@media (hover: hover) and (pointer: fine) {
	a:hover {
		text-decoration: none;
		color: inherit;
	}
}

.button {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: center;
	-webkit-justify-content: center;
	-ms-flex-pack: center;
	justify-content: center;
	-webkit-box-align: center;
	-webkit-align-items: center;
	-ms-flex-align: center;
	align-items: center;
	height: 46px;
	color: #fff;
	border: none;
	padding: 0;
	outline: 0;
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	-webkit-transition: 300ms;
	-moz-transition: 300ms;
	-ms-transition: 300ms;
	-o-transition: 300ms;
	transition: 300ms;
	-webkit-flex-shrink: 0;
	-ms-flex-negative: 0;
	flex-shrink: 0;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

@media (max-width: 992px) {
	.button {
		height: 50px;
	}
}

.button--8 {
	border: 1px solid #fff;
	background-color: transparent!important;
	color: #fff;
}

.index-hero__button {
	font-size: 15px;
	height: 49px;
	margin-right: 10px;
	padding-left: 28px;
	padding-right: 28px;
}

@media (max-width: 365px) {
	.index-hero__button {
		width: 100%;
		margin-right: 0;
		margin-bottom: 15px;
	}
}

.index-hero__button:last-child {
	margin-right: 0;
	margin-bottom: 0;
}

.index-hero__button--registration:hover {
	color: #fff;
	border-color: #005398;
	background-color: #005398!important;
}

/* auth center helper */
.form--center{max-width:520px;margin:48px auto}


/* ===== UI UPGRADE: Medical premium look ===== */
:root {
  --brand: #0bb7a7;
  --brand-600: #099b8e;
  --brand-700: #087f75;
  --bg: #f7fbfc;
  --card: #ffffff;
  --text: #12212d;
  --muted: #6a7a8a;
  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(18,33,45,.06);
  --shadow-md: 0 8px 24px rgba(18,33,45,.08);
}
html, body { background: var(--bg); color: var(--text); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid rgba(16,24,40,.06); }
.card.pad { padding: 20px; }
.card:hover { box-shadow: var(--shadow-md); }
.h1 { font-size: 28px; line-height: 1.2; font-weight: 700; margin: 0 0 14px; }
.subtle { color: var(--muted); font-size: 14px; }
.btn { display: inline-flex; align-items:center; gap:10px; padding:12px 16px; border-radius: 12px; border:1px solid transparent; background: #fff; color: var(--text); box-shadow: var(--shadow-sm); transition: .2s ease; cursor: pointer; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-md), 0 0 0 3px rgba(11,183,167,.22); }
.btn.primary { background: var(--brand); color:#fff; }
.btn.primary:hover { background: var(--brand-600); }
.btn.ghost { background: #fff; border-color: rgba(16,24,40,.08); }
.field { display:grid; gap:8px; }
.field label { font-size: 14px; color: var(--muted); }
.input, select.styled, .select-trigger { width:100%; background:#fff; border:1px solid rgba(16,24,40,.12); border-radius: 12px; padding: 12px 14px; font: inherit; color: var(--text); transition:.2s ease; }
.input:focus, select.styled:focus, .select-trigger:focus { outline:none; box-shadow: 0 0 0 3px rgba(11,183,167,.22); border-color: var(--brand); }
.select { position:relative; }
.select-trigger { display:flex; align-items:center; justify-content:space-between; gap:12px; cursor:pointer; }
.select-trigger .label { color: var(--muted); font-size: 13px; }
.chev { width: 18px; height: 18px; transition: .2s ease; }
.select[aria-expanded="true"] .chev { transform: rotate(180deg); }
.select-panel { position:absolute; inset-inline:0; top: calc(100% + 8px); background:#fff; border:1px solid rgba(16,24,40,.10); border-radius: 14px; box-shadow: var(--shadow-md); padding:6px; display:none; z-index: 40; }
.select[aria-expanded="true"] .select-panel { display:block; animation: pop .12s ease; }
.select-search { padding:6px; }
.select-search input { width:100%; border:1px solid rgba(16,24,40,.1); border-radius:10px; padding:10px 12px; }
.option { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:10px; cursor:pointer; }
.option:hover { background:#f2fbfa; }
.option .meta { font-size:12px; color: var(--muted); }
@keyframes pop { from{opacity:0; transform: translateY(-4px);} to{opacity:1; transform: translateY(0);} }
.stepper { display:flex; gap:18px; align-items:center; margin: 6px 0 18px; }
.step { display:flex; align-items:center; gap:10px; color: var(--muted); }
.step .dot { width:28px; height:28px; border-radius:999px; display:grid; place-items:center; background:#fff; border:1px solid rgba(16,24,40,.12); }
.step.active { color: var(--text); }
.step.active .dot { background: var(--brand); color:#fff; border-color: var(--brand); }
.doc-grid { display:grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap:16px; }
.doc { display:grid; grid-template-columns: 56px 1fr; gap:14px; padding:16px; border-radius:16px; border:1px solid rgba(16,24,40,.06); background:#fff; box-shadow: var(--shadow-sm); }
.doc .avatar { width:56px; height:56px; border-radius:999px; background: #e8f7f5; display:grid; place-items:center; font-weight:700; color: var(--brand-700); }
.doc h4 { margin:0; font-size:16px; }
.doc .spec { font-size:13px; color: var(--muted); }
.doc .tags { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0; }
.tag { font-size:12px; padding:6px 8px; border-radius:999px; background:#f0f9f8; border:1px solid rgba(11,183,167,.18); color: var(--brand-700); }
.doc .actions { display:flex; gap:8px; align-items:center; }
.doc .actions .btn { padding:10px 12px; }
/* ===== END UI UPGRADE ===== */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
.input, select.styled, .select-trigger {
    width: 100%;
    margin-left: -10px;
    background: #fff;
    border: 1px solid rgba(16, 24, 40, .12);
    border-radius: 12px;
    padding: 12px 9px;
    font: inherit;
    color: var(--text);
    transition: .2s ease;
}

/* --- Useful information (FAQ) page --- */
.info-page .info-hero{
  background: linear-gradient(135deg, var(--hero-grad-start), var(--hero-grad-end));
  color: #fff;
  padding: 42px 0 30px;
}
.info-page .info-hero__inner{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: stretch;
}
.info-page .info-hero__title{
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: .2px;
}
.info-page .info-hero__subtitle{
  margin: 0 0 16px;
  opacity: .95;
  max-width: 52ch;
}
.info-page .info-hero__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Кнопки на градиентном блоке — делаем белыми и воздушными */
.info-page .info-hero .btn{
  box-shadow: none;
  border: 1px solid rgba(255,255,255,.26);
}
.info-page .info-hero .btn.primary{
  background: rgba(255,255,255,.18);
  color: #fff;
}
.info-page .info-hero .btn.primary:hover{
  background: rgba(255,255,255,.24);
}
.info-page .info-hero .btn.ghost{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.20);
  color: #fff;
}
.info-page .info-hero .btn.ghost:hover{
  background: rgba(255,255,255,.16);
}

.info-page .info-hero__card{
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(6px);
}
.info-page .info-hero__card-title{ font-weight: 900; margin-bottom: 10px; }
.info-page .info-hero__links{ display: flex; flex-wrap: wrap; gap: 8px; }
.info-page .info-pill{
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.16);
  transition: .2s ease;
  font-weight: 700;
}
.info-page .info-pill:hover{ background: rgba(255,255,255,.18); transform: translateY(-1px); }

.info-page .info-search{
  margin-top: 16px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 14px;
  backdrop-filter: blur(6px);
}
.info-page .info-search__label{ display:block; font-weight: 900; margin-bottom: 8px; }
.info-page .info-search__input{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22);
  outline: none;
  background: rgba(255,255,255,.16);
  color: #fff;
}
.info-page .info-search__input::placeholder{ color: rgba(255,255,255,.78); }
.info-page .info-search__hint{ margin-top: 8px; opacity: .9; font-size: 13px; }

.info-page .section{ padding: 28px 0; }
.info-page .section-title{ margin: 0 0 14px; font-size: 26px; letter-spacing: .2px; }

.info-page .info-cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.info-page .info-card{
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.info-page .info-card__title{ font-weight: 900; margin-bottom: 10px; }
.info-page .info-card__value{ font-size: 34px; font-weight: 900; margin: 2px 0 6px; color: var(--brand-dark); }
.info-page .info-card__text{ color: var(--muted); line-height: 1.55; }
.info-page .info-card__link{ display:inline-flex; margin-top: 10px; font-weight: 900; text-decoration:none; color: var(--brand-dark); }
.info-page .info-card__link:hover{ text-decoration: underline; }

.info-page .faq-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.info-page .faq-item{
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.info-page .faq-item.is-hidden{ display:none; }
.info-page .faq-item--flash{ outline: 3px solid rgba(11,183,167,.30); }

.info-page .faq-item summary{
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.info-page .faq-item summary:focus-visible{ outline: none; box-shadow: 0 0 0 3px rgba(11,183,167,.22); }
.info-page .faq-item summary::-webkit-details-marker{ display:none; }

.info-page .faq-item summary::after{
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(0,0,0,.55);
  border-bottom: 2px solid rgba(0,0,0,.55);
  transform: rotate(45deg);
  transition: .2s ease;
  margin-left: 8px;
  flex: 0 0 auto;
}
.info-page .faq-item[open] summary::after{ transform: rotate(-135deg); }

.info-page .faq-answer{
  padding: 0 18px 16px;
  color: var(--muted);
  line-height: 1.6;
  animation: faqFade .18s ease;
}
.info-page .faq-answer ol, .info-page .faq-answer ul{ margin: 10px 0 0 18px; }
.info-page .faq-note{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(11,183,167,.08);
  color: #1f3b38;
}
.info-page .faq-inline-link{
  display:inline-flex;
  font-weight: 900;
  color: var(--brand-dark);
  text-decoration: none;
}
.info-page .faq-inline-link:hover{ text-decoration: underline; }

.info-page .faq-grid.faq-grid--empty::after{
  content: "Ничего не найдено. Попробуйте другой запрос.";
  grid-column: 1 / -1;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px dashed rgba(16,24,40,.18);
  color: var(--muted);
}

@keyframes faqFade{
  from{ opacity: .35; transform: translateY(-2px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 980px){
  .info-page .info-hero__inner{ grid-template-columns: 1fr; }
  .info-page .info-cards{ grid-template-columns: 1fr; }
  .info-page .faq-grid{ grid-template-columns: 1fr; }
  .info-page .info-hero__title{ font-size: 28px; }
}

