:root {
  --brand: #0071ba;
  --brand-dark: #07578f;
  --ink: #18243b;
  --muted: #5e6a7e;
  --line: #dce5ef;
  --panel: #ffffff;
  --soft: #f4f7fb;
  --soft-blue: #e7f1fa;
  --shadow: 0 18px 44px rgba(19, 45, 75, 0.12);
  --page-max: 1680px;
  --page-pad: clamp(18px, 4vw, 72px);
  --page-gutter: clamp(36px, 8vw, 144px);
  --font-sans: "Roboto", Arial, sans-serif;
  --font-display: "Roboto Slab", "Roboto", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brand);
  overflow-wrap: anywhere;
  text-underline-offset: 0.18em;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

a:hover {
  color: var(--brand-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
}

a:focus-visible,
button:focus-visible,
label:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0, 113, 186, 0.28);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px var(--page-pad);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.osd-main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 12px 18px 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  background: linear-gradient(180deg, #1677b4 0%, #0b5f96 100%);
  box-shadow: 0 16px 34px rgba(8, 30, 54, 0.18);
}

.osd-main-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  min-width: 0;
}

.osd-main-nav__brand-logo,
.osd-main-nav__seal {
  height: 64px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(7, 87, 143, 0.08);
}

.osd-main-nav__brand-logo {
  width: 148px;
  padding: 10px 12px;
}

.osd-main-nav__seal {
  width: 64px;
  padding: 5px;
}

.osd-main-nav__brand-text {
  line-height: 1.1;
  white-space: nowrap;
}

.osd-main-nav__toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.osd-main-nav__burger {
  display: none;
}

.osd-main-nav__list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.osd-main-nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  color: #f4f9ff;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.osd-main-nav__list a:hover,
.osd-main-nav__list a:focus-visible {
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  width: min(var(--page-max), calc(100% - var(--page-gutter)));
  min-height: min(860px, calc(100vh - 126px));
  margin: 0 auto;
  padding: clamp(46px, 6vw, 104px) 0 clamp(34px, 5vw, 64px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.98;
  text-wrap: balance;
}

.hero h1 {
  max-width: 1000px;
  font-size: clamp(3.35rem, 5.6vw, 7.1rem);
}

.hero h1 span {
  display: block;
}

.hero__lead {
  max-width: 780px;
  margin: 30px 0 0;
  color: var(--ink);
  font-size: clamp(1.18rem, 1.55vw, 1.7rem);
  font-weight: 700;
  line-height: 1.32;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.btn--primary {
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  box-shadow: 0 14px 28px rgba(0, 113, 186, 0.24);
}

.btn--secondary {
  color: var(--brand-dark);
  background: #ffffff;
  border: 1px solid #b9d5ea;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(0, 113, 186, 0.3);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  color: var(--brand-dark);
  border-color: #86badf;
  box-shadow: 0 12px 26px rgba(24, 36, 59, 0.08);
}

.hero__media {
  display: grid;
  gap: 18px;
  width: min(100%, 620px);
  justify-self: end;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid #d8dfeb;
  border-radius: 34px;
  background: linear-gradient(165deg, #edf2f8 0%, #e7edf5 100%);
  box-shadow: var(--shadow);
}

.hero__logo-placeholder {
  display: grid;
  place-items: center;
  min-height: clamp(220px, 22vw, 320px);
  padding: clamp(30px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
}

.hero__logo-placeholder img {
  width: min(100%, 430px);
  height: auto;
  object-fit: contain;
}

.location-card {
  display: grid;
  gap: 8px;
  padding: 26px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.location-card__label,
.quick-info span:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.location-card strong {
  font-size: clamp(1.7rem, 2.25vw, 2.55rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: min(var(--page-max), calc(100% - var(--page-gutter)));
  margin: 0 auto 38px;
}

.quick-info article {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 132px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--soft);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.quick-info strong {
  font-size: 1.25rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.quick-info article:hover {
  transform: translateY(-3px);
  border-color: #c4d7e8;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(24, 36, 59, 0.08);
}

.section {
  width: min(var(--page-max), calc(100% - var(--page-gutter)));
  margin: 0 auto;
  padding: clamp(54px, 7vw, 92px) 0;
}

.section__header {
  max-width: 900px;
  margin-bottom: 30px;
}

.section h2 {
  font-size: clamp(2.2rem, 3.3vw, 4.2rem);
}

.section__header p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 78ch;
  text-wrap: pretty;
}

#termine .section__header {
  max-width: 1180px;
  margin-inline: auto;
}

.appointments {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 1180px;
  margin: 2px auto 0;
}

.appointments__filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--soft);
}

.appointments__filter {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.appointments__filter label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.appointments__filter input,
.appointments__filter select {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #cbd8e6;
  border-radius: 12px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-weight: 700;
}

.appointments__filter input:hover,
.appointments__filter select:hover {
  border-color: #9ebdd6;
}

.appointments__filter-reset {
  min-height: 48px;
  padding: 10px 17px;
  border: 1px solid #b9d5ea;
  border-radius: 12px;
  color: var(--brand-dark);
  background: #ffffff;
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.appointments__filter-reset:hover:not(:disabled),
.appointments__filter-reset:focus-visible:not(:disabled) {
  border-color: #86badf;
  box-shadow: 0 8px 20px rgba(24, 36, 59, 0.08);
}

.appointments__filter-reset:disabled {
  color: #8d98a8;
  background: #edf1f5;
  border-color: #dce3eb;
  cursor: default;
}

.appointments__status {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.appointments__empty {
  display: grid;
  gap: 5px;
  justify-items: center;
  padding: 42px 24px;
  border: 1px dashed #b9ccde;
  border-radius: 20px;
  color: var(--muted);
  background: var(--soft);
  text-align: center;
}

.appointments__empty strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.appointments__empty p {
  margin: 0;
}

.appointments__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.appointments__card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 224px;
  gap: clamp(24px, 3vw, 42px);
  align-items: stretch;
  min-height: 216px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(24, 36, 59, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.appointments__summary,
.appointments__content,
.appointments__booking {
  min-width: 0;
}

.appointments__summary {
  display: grid;
  gap: 18px;
  align-content: space-between;
  padding-right: clamp(24px, 3vw, 40px);
  border-right: 1px solid var(--line);
}

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

.appointments__date {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 82px;
  padding: 13px 16px;
  border-radius: 16px;
  background: var(--soft);
  text-align: left;
}

.appointments__date strong {
  color: var(--brand-dark);
  font-size: 2.55rem;
  line-height: 0.9;
}

.appointments__date span {
  display: grid;
  gap: 1px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.15;
}

.appointments__date b {
  color: var(--ink);
  font-size: 0.9rem;
}

.appointments__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.appointments__eyebrow {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.appointments__type {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.appointments__type--paper {
  color: #07578f;
  background: #e7f1fa;
}

.appointments__type--digital {
  color: #10672c;
  background: #dff5e6;
}

.appointments__title {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.08;
}

.appointments__body {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.appointments__body p {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  font-size: 0.91rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.appointments__body p > span {
  color: var(--muted);
  font-weight: 700;
}

.appointments__body p > strong {
  color: var(--ink);
  font-weight: 700;
}

.appointments__booking {
  display: grid;
  align-content: center;
  gap: 22px;
  padding-left: clamp(24px, 3vw, 40px);
  border-left: 1px solid var(--line);
}

.appointments__actions {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.appointments__level-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.appointments__price {
  display: grid;
  justify-items: start;
  color: var(--muted);
  text-align: left;
}

.appointments__price span {
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.appointments__price strong {
  color: var(--brand-dark);
  font-size: 2rem;
  line-height: 1.1;
}

.appointments__price small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.appointments__details,
.appointments__register,
.appointments__fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 18px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand);
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  border: 0;
  font: inherit;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.appointments__fallback {
  justify-self: start;
}

.appointments__card:hover {
  transform: translateY(-3px);
  border-color: #c4d7e8;
  box-shadow: 0 18px 36px rgba(24, 36, 59, 0.09);
}

.appointments__details:hover,
.appointments__details:focus-visible,
.appointments__register:hover,
.appointments__register:focus-visible,
.appointments__fallback:hover,
.appointments__fallback:focus-visible {
  color: #ffffff;
  background: var(--brand-dark);
  box-shadow: 0 12px 24px rgba(0, 113, 186, 0.22);
  transform: translateY(-1px);
}

.appointments__register:disabled {
  color: var(--muted);
  background: #e7ebf0;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.appointments__details--quiet {
  min-height: auto;
  padding: 4px;
  color: var(--brand-dark);
  background: transparent;
  font-size: 0.86rem;
}

.appointments__details--quiet:hover,
.appointments__details--quiet:focus-visible {
  color: var(--brand-dark);
  background: transparent;
  box-shadow: none;
}

.registration-section {
  width: 100%;
  max-width: none;
  padding-inline: max(calc((100% - var(--page-max)) / 2), calc(var(--page-gutter) / 2));
  background: var(--soft);
}

.registration-section > * {
  max-width: var(--page-max);
  margin-inline: auto;
}

.registration-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 42px);
  align-items: start;
}

.registration-info {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 5px 16px;
  position: sticky;
  top: 124px;
  padding: 28px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(155deg, var(--brand) 0%, #064b7a 100%);
  box-shadow: 0 18px 40px rgba(7, 87, 143, 0.2);
}

.registration-info__step {
  grid-row: span 2;
  display: grid;
  place-items: center;
  align-self: start;
  width: 42px;
  height: 42px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 900;
}

.registration-info h3 {
  margin: 0;
  font-size: 1.1rem;
}

.registration-info p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}

.registration-info p:last-child {
  margin-bottom: 0;
}

.registration-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: clamp(24px, 3.2vw, 48px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.form-field {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.form-field--wide {
  grid-column: 1 / -1;
}

.form-field label,
.consent-field {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
}

.form-field label span,
.consent-field span span {
  color: #b32222;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #c9d5e2;
  border-radius: 12px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field textarea {
  min-height: 92px;
  resize: vertical;
}

.form-field input[type="file"] {
  padding: 9px;
}

.form-field input::file-selector-button {
  margin-right: 12px;
  padding: 9px 13px;
  border: 0;
  border-radius: 8px;
  color: var(--brand-dark);
  background: var(--soft-blue);
  font-weight: 800;
  cursor: pointer;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: #8eb8d7;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 113, 186, 0.12);
}

.form-field small {
  color: var(--muted);
  font-size: 0.78rem;
}

.module-selection {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid #c9d5e2;
  border-radius: 12px;
}

.module-selection legend {
  padding: 0 6px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
}

.module-selection legend span {
  color: #b32222;
}

.module-selection__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.module-selection__options label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--soft);
  font-weight: 800;
  cursor: pointer;
}

.module-selection__options input {
  flex: 0 0 auto;
  width: 19px;
  min-height: 19px;
  height: 19px;
  margin: 0;
  padding: 0;
  accent-color: var(--brand);
}

.consent-field {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 11px;
  align-items: start;
  padding: 16px;
  border-radius: 12px;
  background: var(--soft);
  cursor: pointer;
}

.consent-field input {
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  accent-color: var(--brand);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.registration-submit {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.registration-submit:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.form-status {
  flex: 1 1 300px;
  margin: 0;
  padding: 0;
  font-weight: 750;
}

.form-status:empty {
  display: none;
}

.form-status[data-state="success"] {
  padding: 13px 15px;
  border-radius: 10px;
  color: #126b31;
  background: #e2f6e8;
}

.form-status[data-state="error"] {
  padding: 13px 15px;
  border-radius: 10px;
  color: #9a2424;
  background: #fae8e8;
}

.doc-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.doc-link {
  display: grid;
  gap: 9px;
  min-height: 172px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: #ffffff;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.doc-link span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #ffffff;
  background: var(--brand);
  font-weight: 900;
}

.doc-link small {
  color: var(--muted);
}

.doc-link:hover,
.doc-link:focus-visible {
  color: var(--ink);
  transform: translateY(-3px);
  border-color: #c4d7e8;
  box-shadow: 0 18px 36px rgba(24, 36, 59, 0.09);
}

.contact-section {
  padding-bottom: 96px;
}

.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-grid > * {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 210px;
  margin: 0;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--soft);
  font-style: normal;
  overflow-wrap: anywhere;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.contact-grid strong {
  font-size: 1.25rem;
  line-height: 1.18;
}

.contact-grid a {
  font-weight: 750;
}

.contact-grid > *:hover {
  transform: translateY(-3px);
  border-color: #c4d7e8;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(24, 36, 59, 0.08);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 32px clamp(18px, 4vw, 52px);
  color: #ffffff;
  background: #0a4f82;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.78);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  color: #ffffff;
  font-weight: 750;
  text-decoration: none;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 1681px) {
  .hero {
    min-height: 820px;
  }
}

@media (max-width: 1280px) {
  :root {
    --page-pad: clamp(18px, 3vw, 40px);
    --page-gutter: clamp(36px, 6vw, 80px);
  }

  .osd-main-nav {
    gap: 14px;
  }

  .osd-main-nav__brand-logo,
  .osd-main-nav__seal {
    height: 58px;
  }

  .osd-main-nav__brand-logo {
    width: 136px;
  }

  .osd-main-nav__seal {
    width: 58px;
  }

  .osd-main-nav__brand-text {
    max-width: none;
  }

  .osd-main-nav__list {
    gap: 4px;
  }

  .osd-main-nav__list a {
    padding-inline: 10px;
    font-size: 14px;
  }

}

@media (max-width: 1060px) {
  html {
    scroll-padding-top: 96px;
  }

  .osd-main-nav {
    align-items: flex-start;
    position: relative;
  }

  .osd-main-nav__burger {
    display: inline-grid;
    gap: 5px;
    place-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
  }

  .osd-main-nav__burger span {
    width: 24px;
    height: 2px;
    background: #ffffff;
  }

  .osd-main-nav__list {
    display: none;
    position: absolute;
    inset: calc(100% + 10px) 0 auto 0;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .osd-main-nav__list a {
    width: 100%;
    color: var(--brand-dark);
    white-space: normal;
  }

  .osd-main-nav__toggle:checked ~ .osd-main-nav__list {
    display: grid;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__media {
    justify-self: stretch;
    width: 100%;
  }

  .quick-info,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .quick-info article,
  .contact-grid > * {
    min-height: auto;
  }

  .doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .appointments__card {
    grid-template-columns: 168px minmax(0, 1fr) 194px;
    gap: 22px;
    padding: 22px;
  }

  .appointments__summary {
    padding-right: 22px;
  }

  .appointments__booking {
    padding-left: 22px;
  }

  .registration-layout {
    grid-template-columns: 1fr;
  }

  .registration-info {
    position: static;
    grid-template-columns: 46px 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --page-pad: 18px;
    --page-gutter: 36px;
  }

  .section {
    padding: 46px 0;
  }

  .section__header {
    margin-bottom: 24px;
  }

  .hero h1 {
    font-size: clamp(3rem, 12vw, 5.6rem);
  }

  .hero__lead {
    font-size: clamp(1.1rem, 3.4vw, 1.35rem);
  }

  .quick-info {
    grid-template-columns: 1fr;
  }

  .appointments__card {
    grid-template-columns: 156px minmax(0, 1fr);
    min-height: 0;
  }

  .appointments__filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .appointments__filter-reset {
    width: 100%;
  }

  .appointments__summary {
    grid-row: span 2;
  }

  .appointments__booking {
    grid-template-columns: minmax(130px, auto) minmax(180px, 1fr);
    align-items: center;
    gap: 18px;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 8px;
  }

  .osd-main-nav__brand-logo,
  .osd-main-nav__seal {
    height: 52px;
  }

  .osd-main-nav__brand-logo {
    width: 118px;
    padding: 9px 10px;
  }

  .osd-main-nav__seal {
    width: 52px;
    padding: 4px;
    border-radius: 15px;
  }

  .osd-main-nav__brand-text {
    max-width: none;
    font-size: 0.95rem;
  }

  .hero {
    min-height: auto;
    width: min(100% - 28px, var(--page-max));
    padding-top: 34px;
    padding-bottom: 28px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 14vw, 4rem);
    line-height: 1;
  }

  .hero__actions .btn {
    width: 100%;
  }

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

  .quick-info,
  .section {
    width: min(100% - 28px, var(--page-max));
  }

  .registration-section {
    width: 100%;
    padding-inline: 14px;
  }

  .quick-info {
    gap: 12px;
    margin-bottom: 24px;
  }

  .quick-info article,
  .doc-link,
  .contact-grid > * {
    padding: 20px;
  }

  .appointments__card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px;
    border-radius: 20px;
  }

  .appointments__summary {
    grid-row: auto;
    grid-template-columns: auto minmax(150px, 1fr);
    align-items: center;
    gap: 14px;
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .appointments__date {
    justify-self: end;
    width: auto;
    min-width: 150px;
    min-height: 68px;
    padding: 10px 14px;
  }

  .appointments__date strong {
    font-size: 2rem;
  }

  .appointments__body {
    margin-top: 18px;
  }

  .appointments__booking {
    grid-template-columns: minmax(118px, auto) minmax(160px, 1fr);
    padding-top: 18px;
  }

  .registration-form {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 20px;
    border-radius: 18px;
  }

  .form-field--wide {
    grid-column: auto;
  }

  .module-selection__options {
    grid-template-columns: 1fr;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .form-status {
    flex-basis: auto;
  }
}

@media (max-width: 520px) {
  .osd-main-nav {
    border-radius: 20px;
    padding: 10px;
  }

  .osd-main-nav__brand {
    gap: 10px;
  }

  .osd-main-nav__brand-text {
    max-width: 122px;
    font-size: 0.88rem;
  }

  .hero__media,
  .hero__logo-placeholder,
  .location-card,
  .quick-info article,
  .contact-grid > * {
    border-radius: 16px;
  }

  .hero__media {
    padding: 16px;
  }

  .location-card {
    padding: 20px;
  }

  .section h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .appointments__card {
    gap: 18px;
  }

  .appointments__filters {
    grid-template-columns: 1fr;
    padding: 14px;
    border-radius: 16px;
  }

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

  .appointments__date {
    justify-self: stretch;
    width: 100%;
  }

  .appointments__body p {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .appointments__booking {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 540px) {
  .osd-main-nav__brand-text {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 13vw, 3rem);
  }

}
