/* apps/core/static/core/css/base.css */

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--color-bg-page);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

[x-cloak] {
  display: none !important;
}

h1,
h2,
h3,
h4,
p {
  margin-block: 0;
}

h1,
h2,
h3 {
  color: var(--color-text-primary);
  font-family: var(--font-display);
  line-height: 1.04;
}

h1 {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
}

h4 {
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
}

a {
  color: var(--color-accent-green);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-green-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(var(--color-accent-green-rgb), 0.18);
  outline-offset: 3px;
}

.container {
  width: min(100% - calc(var(--container-px) * 2), var(--container-max));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-py);
}

.section--muted {
  background: var(--color-bg-secondary);
}

.eyebrow {
  color: var(--color-accent-green);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 980px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
  cursor: pointer;
}

.btn-primary,
.button-primary {
  border: none;
  background-color: var(--color-accent-green);
  color: var(--color-text-on-green);
}

.btn-primary:hover,
.button-primary:hover {
  background-color: var(--color-accent-green-hover);
  color: var(--color-text-on-green);
  transform: scale(1.02);
}

.btn-secondary,
.button-secondary {
  border: 1.5px solid var(--color-accent-green);
  background-color: transparent;
  color: var(--color-accent-green);
}

.btn-secondary:hover,
.button-secondary:hover {
  background-color: var(--color-bg-green-subtle);
  color: var(--color-accent-green-hover);
}

.btn-blue {
  border: none;
  background-color: var(--color-accent-blue);
  color: var(--color-text-on-blue);
}

.btn-blue:hover {
  background-color: var(--color-accent-blue-hover);
  color: var(--color-text-on-blue);
}

.btn:active,
.button:active {
  transform: scale(0.98);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid currentColor;
  border-radius: 6px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.tag--green {
  background: var(--color-bg-green-subtle);
  color: var(--color-accent-green);
}

.tag--blue {
  background: var(--color-bg-blue-subtle);
  color: var(--color-accent-blue);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid var(--color-border-section);
  background: var(--color-bg-header);
  backdrop-filter: saturate(180%) blur(20px);
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.site-header.scrolled {
  background: var(--color-bg-header-scrolled);
  box-shadow: var(--shadow-header);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.site-logo {
  color: var(--color-accent-green);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-logo:hover {
  color: var(--color-accent-green-hover);
}

.site-nav,
.site-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a,
.site-user {
  color: var(--color-text-primary);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.site-nav a:hover {
  color: var(--color-accent-green);
}

.site-actions {
  gap: 10px;
}

.site-user {
  max-width: 180px;
  overflow: hidden;
  color: var(--color-text-tertiary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-form {
  margin: 0;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  cursor: pointer;
}

.mobile-menu-panel {
  display: none;
}

#content {
  min-height: 70vh;
  padding-top: 64px;
}

.messages {
  width: min(100% - calc(var(--container-px) * 2), var(--container-max));
  margin: 24px auto 0;
}

.message {
  border: 1px solid var(--color-border-default);
  border-radius: 14px;
  padding: 14px 18px;
  background: var(--color-bg-card);
  color: var(--color-text-secondary);
  font-size: 15px;
}

.message-success {
  border-color: rgba(var(--color-accent-green-rgb), 0.24);
  background: var(--color-bg-green-subtle);
  color: var(--color-accent-green);
}

.message-error {
  border-color: var(--color-status-busy-bg);
  background: var(--color-status-busy-bg);
  color: var(--color-status-busy);
}

.site-footer {
  border-top: 1px solid var(--color-border-section);
  background: var(--color-bg-secondary);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(160px, 0.4fr));
  gap: 32px;
  padding-block: 44px;
}

.site-footer__brand {
  display: grid;
  gap: 12px;
}

.site-footer__logo {
  color: var(--color-accent-green);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-footer__text,
.site-footer__copyright,
.site-footer__contacts {
  color: var(--color-text-tertiary);
  font-size: 14px;
  line-height: 1.6;
}

.site-footer__title {
  margin-bottom: 12px;
  color: var(--color-text-primary);
  font-size: 15px;
  font-weight: 600;
}

.site-footer__links,
.site-footer__contacts {
  display: grid;
  gap: 8px;
  font-style: normal;
}

.site-footer__links a {
  color: var(--color-text-secondary);
  font-size: 14px;
}

.site-footer__links a:hover {
  color: var(--color-accent-green);
}

.hero {
  position: relative;
  display: grid;
  align-content: center;
  min-height: calc(100vh - 64px);
  padding-block: clamp(96px, 12vw, 160px);
  overflow: hidden;
  background:
    linear-gradient(var(--color-bg-page), var(--color-bg-page)) padding-box,
    repeating-linear-gradient(
      90deg,
      rgba(var(--color-accent-green-rgb), 0.04) 0,
      rgba(var(--color-accent-green-rgb), 0.04) 1px,
      transparent 1px,
      transparent 48px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(var(--color-accent-green-rgb), 0.04) 0,
      rgba(var(--color-accent-green-rgb), 0.04) 1px,
      transparent 1px,
      transparent 48px
    );
}

.hero > * {
  position: relative;
  z-index: 1;
  width: min(100% - calc(var(--container-px) * 2), var(--container-max));
  margin-inline: auto;
}

.hero h1 {
  max-width: 700px;
  margin-top: 14px;
}

.hero p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 20px;
  color: var(--color-text-tertiary);
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.icon-green {
  color: var(--color-accent-green);
}

.icon-blue {
  color: var(--color-accent-blue);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.landing-hero {
  min-height: calc(100vh - 64px);
}

.landing-hero__content {
  position: relative;
  z-index: 2;
}

.hero-visual {
  position: absolute;
  inset: 50% max(var(--container-px), calc((100vw - var(--container-max)) / 2)) auto auto;
  z-index: 1;
  width: min(44vw, 520px);
  margin: 0;
  color: var(--color-accent-green);
  opacity: 0.15;
  pointer-events: none;
  transform: translateY(-50%);
}

.hero-visual__orbit {
  transform-origin: center;
  animation: molecule-rotate 42s linear infinite;
}

.hero-visual__pulse {
  transform-origin: center;
  animation: molecule-pulse 4.8s ease-in-out infinite;
}

.hero-visual__green,
.hero-visual__blue {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.hero-visual__blue {
  color: var(--color-accent-blue);
}

.hero-visual__node {
  stroke: var(--color-bg-page);
  stroke-width: 5;
}

.hero-visual__green-fill {
  fill: var(--color-accent-green);
}

.hero-visual__blue-fill {
  fill: var(--color-accent-blue);
}

.scroll-indicator {
  position: absolute;
  inset: auto 0 28px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-inline: auto;
  border: 1px solid var(--color-border-section);
  border-radius: 50%;
  background: var(--color-bg-card);
  color: var(--color-accent-green);
  animation: scroll-indicator 1.8s ease-in-out infinite;
}

.stats-grid,
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--card-gap);
}

.stat-card,
.benefit-card,
.workflow-step,
.employee-note,
.contact-card {
  border: 1px solid var(--color-border-default);
  border-radius: var(--card-radius);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-card);
}

.stat-card {
  padding: 28px;
}

.stat-card__value {
  color: var(--color-accent-green);
  font-family: var(--font-mono);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-card__label {
  margin-top: 10px;
  color: var(--color-text-tertiary);
  font-size: 15px;
  line-height: 1.5;
}

.about-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(40px, 7vw, 84px);
  align-items: start;
}

.about-section__content h2,
.section-heading h2 {
  margin-top: 14px;
}

.about-section__text {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  color: var(--color-text-secondary);
}

.benefits-list {
  display: grid;
  gap: 18px;
}

.benefit-card,
.workflow-step,
.contact-card {
  padding: 24px;
}

.benefit-card,
.contact-card {
  display: grid;
  gap: 12px;
}

.benefit-card i,
.workflow-step i,
.employee-note i,
.contact-card i {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}

.benefit-card p,
.workflow-step p,
.employee-note p,
.contact-card p,
.section-heading--split p {
  color: var(--color-text-tertiary);
  font-size: 15px;
  line-height: 1.65;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-heading--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  max-width: none;
}

.section-heading--split p:not(.eyebrow) {
  max-width: 420px;
}

.workflow-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
}

.workflow-steps::before {
  position: absolute;
  top: 44px;
  right: calc(16.66% + 12px);
  left: calc(16.66% + 12px);
  border-top: 1.5px dashed var(--color-accent-green);
  content: "";
  opacity: 0.35;
}

.workflow-step {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.workflow-step__number {
  width: fit-content;
  border-radius: 980px;
  padding: 6px 10px;
  background: var(--color-bg-green-subtle);
  color: var(--color-accent-green);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.employee-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding: 24px;
  background: var(--color-bg-page);
}

.instruments-grid,
.instrument-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--card-gap);
}

.instrument-card {
  min-height: 100%;
}

.instrument-card__link {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-card);
  color: var(--color-text-primary);
  transition:
    box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.instrument-card__link:hover {
  color: var(--color-text-primary);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.instrument-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-secondary);
}

.instrument-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instrument-card__placeholder {
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--color-accent-green);
}

.instrument-card__placeholder i {
  width: 58px;
  height: 58px;
  opacity: 0.8;
  stroke-width: 1.5;
}

.instrument-card__body {
  display: grid;
  grid-template-rows: auto minmax(64px, auto) auto minmax(44px, 1fr) auto;
  gap: 12px;
  padding: 20px;
}

.instrument-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
}

.instrument-card__body h3 {
  display: -webkit-box;
  min-height: 64px;
  overflow: hidden;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.instrument-card__name {
  min-height: 22px;
  color: var(--color-text-tertiary);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.instrument-card__description {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-text-placeholder);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.instrument-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
}

.instrument-card__price {
  color: var(--color-text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.instrument-card__more {
  color: var(--color-accent-green);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.section-actions {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.empty-state {
  grid-column: 1 / -1;
  color: var(--color-text-tertiary);
}

.contact-card {
  min-height: 210px;
}

.catalog-page {
  background: var(--color-bg-page);
}

.catalog-header {
  max-width: 760px;
  margin-bottom: 36px;
}

.catalog-header h1 {
  margin-top: 14px;
}

.catalog-header p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--color-text-tertiary);
  font-size: 19px;
  line-height: 1.6;
}

.catalog-controls {
  display: grid;
  gap: 20px;
  margin-bottom: 32px;
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-filter__item {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--color-border-default);
  border-radius: 980px;
  padding: 8px 16px;
  background: var(--color-bg-card);
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.tag-filter__item:hover,
.tag-filter__item.is-active {
  border-color: var(--color-accent-green);
  background: var(--color-accent-green);
  color: var(--color-text-on-green);
}

.catalog-search {
  position: relative;
  max-width: 620px;
}

.catalog-search i {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 20px;
  height: 20px;
  color: var(--color-text-placeholder);
  transform: translateY(-50%);
}

.catalog-search input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--color-border-input);
  border-radius: 18px;
  padding: 0 18px 0 50px;
  background: var(--color-bg-input);
  color: var(--color-text-primary);
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.catalog-search input::placeholder {
  color: var(--color-text-placeholder);
}

.catalog-search input:focus {
  border-color: var(--color-border-focus);
  background: var(--color-bg-page);
  box-shadow: 0 0 0 3px rgba(var(--color-accent-green-rgb), 0.15);
}

.catalog-empty {
  display: grid;
  justify-items: start;
  gap: 12px;
  border: 1px solid var(--color-border-default);
  border-radius: var(--card-radius);
  padding: 32px;
  background: var(--color-bg-card);
}

.catalog-empty i {
  width: 32px;
  height: 32px;
}

.catalog-empty h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.instrument-detail {
  background: var(--color-bg-page);
}

.instrument-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.42fr);
  gap: clamp(36px, 6vw, 64px);
  align-items: start;
}

.instrument-detail__main {
  min-width: 0;
}

.instrument-detail__aside {
  display: grid;
  gap: 20px;
  align-self: start;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--color-text-tertiary);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--color-text-secondary);
}

.breadcrumbs a:hover {
  color: var(--color-accent-green);
}

.instrument-detail__header {
  display: grid;
  gap: 18px;
  margin-bottom: 42px;
}

.instrument-detail__header h1 {
  max-width: 100%;
  font-size: clamp(40px, 5vw, 64px);
  overflow-wrap: anywhere;
  hyphens: auto;
}

.instrument-detail__header h2 {
  color: var(--color-text-secondary);
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.instrument-detail__full-name {
  margin-top: -6px;
  color: var(--color-text-secondary);
  font-size: 18px;
  font-weight: 500;
}

.instrument-detail__header p {
  max-width: 760px;
  color: var(--color-text-tertiary);
  font-size: 19px;
  line-height: 1.65;
}

.instrument-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.instrument-content,
.instrument-gallery {
  margin-top: 40px;
}

.instrument-content h2,
.instrument-gallery h2,
.detail-card h2 {
  margin-bottom: 18px;
  font-size: clamp(24px, 3vw, 34px);
}

.markdown-content {
  display: grid;
  gap: 16px;
  color: var(--color-text-secondary);
}

.markdown-content p,
.markdown-content li {
  margin: 0;
  line-height: 1.75;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
  margin: 0;
  color: var(--color-text-primary);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.markdown-content h1 {
  margin-top: 8px;
  font-size: clamp(26px, 2.8vw, 32px);
  font-weight: 600;
}

.markdown-content h1:first-child {
  margin-top: 0;
}

.markdown-content h2 {
  margin-top: 8px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
}

.markdown-content h2:first-child {
  margin-top: 0;
}

.markdown-content h3 {
  margin-top: 4px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
}

.markdown-content h4 {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 600;
}

.markdown-content h5,
.markdown-content h6 {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 600;
}

.markdown-content hr {
  margin: 8px 0;
  border: 0;
  border-top: 1px solid var(--color-border-section);
}

.markdown-content strong,
.markdown-content b {
  font-weight: 600;
  color: var(--color-text-primary);
}

.markdown-content blockquote {
  margin: 0;
  padding: 12px 0 12px 16px;
  border-left: 3px solid var(--color-accent-green);
  color: var(--color-text-tertiary);
  font-style: italic;
}

.markdown-content :not(pre) > code {
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: var(--color-bg-secondary);
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.markdown-content pre {
  margin: 0;
  overflow-x: auto;
  border-radius: 12px;
  padding: 16px;
  background: var(--color-bg-secondary);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.55;
}

.markdown-content pre code {
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: inherit;
}

.markdown-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.markdown-content th,
.markdown-content td {
  border: 1px solid var(--color-border-section);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.markdown-content th {
  background: var(--color-bg-secondary);
  font-weight: 600;
}

.markdown-content ul,
.markdown-content ol {
  margin-block: 0;
  padding-left: 1.35em;
}

.markdown-content ul {
  list-style-type: disc;
}

.markdown-content ol {
  list-style-type: decimal;
}

.markdown-content ul ul {
  list-style-type: circle;
}

.markdown-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.markdown-content a {
  font-weight: 500;
}

.instrument-gallery__stage {
  height: clamp(320px, 46vw, 520px);
  overflow: hidden;
  border-radius: 24px;
  background: var(--color-bg-secondary);
}

.instrument-gallery__stage figure {
  position: relative;
  height: 100%;
  margin: 0;
}

.instrument-gallery__stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instrument-gallery__stage figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 12px 16px;
  background: var(--color-bg-card);
  color: var(--color-text-tertiary);
  font-size: 14px;
}

.instrument-gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.instrument-gallery__thumbs button {
  flex: 0 0 92px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.7;
  transition:
    border-color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.instrument-gallery__thumbs button:hover,
.instrument-gallery__thumbs button.is-active {
  border-color: var(--color-accent-green);
  opacity: 1;
  transform: translateY(-2px);
}

.instrument-gallery__thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instrument-gallery__placeholder,
.calendar-widget__placeholder {
  display: grid;
  gap: 12px;
  place-items: center;
  border: 1px solid var(--color-border-default);
  border-radius: var(--card-radius);
  padding: 36px;
  background: var(--color-bg-secondary);
  color: var(--color-text-tertiary);
  text-align: center;
}

.instrument-gallery__placeholder i,
.calendar-widget__placeholder i {
  width: 42px;
  height: 42px;
  stroke-width: 1.5;
}

.detail-card {
  padding: 24px;
}

.tariff-card-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.tariff-card {
  display: grid;
  gap: 4px;
  border: 1px solid var(--color-border-default);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--color-bg-green-subtle);
}

.tariff-card__label {
  color: var(--color-text-tertiary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tariff-card__value {
  color: var(--color-accent-green);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tariff-card__hint {
  color: var(--color-text-tertiary);
  font-size: 13px;
  line-height: 1.5;
}

.tariff-card__hint a {
  font-weight: 600;
}

.tariff-methodology {
  margin-bottom: 14px;
  border: 1px solid var(--color-border-section);
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--color-bg-secondary);
  font-size: 13px;
  color: var(--color-text-tertiary);
}

.tariff-methodology summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.tariff-methodology__body {
  margin-top: 8px;
  line-height: 1.55;
}

.tariff-methodology__link {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent-blue);
}

.booking-success__total {
  margin-top: 12px;
  color: var(--color-text-secondary);
  font-size: 15px;
}

.price-table-wrap {
  overflow-x: auto;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.price-table th,
.price-table td {
  border-bottom: 1px solid var(--color-border-section);
  padding: 13px 12px;
  text-align: left;
  vertical-align: top;
}

.price-table thead th {
  color: var(--color-text-tertiary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price-table tbody th {
  color: var(--color-text-primary);
  font-weight: 600;
}

.price-table tbody th span {
  display: block;
  margin-top: 4px;
  color: var(--color-text-tertiary);
  font-size: 12px;
  font-weight: 400;
}

.price-table td {
  color: var(--color-text-primary);
  font-family: var(--font-mono);
  font-weight: 600;
  white-space: nowrap;
}

.price-table__internal {
  background: var(--color-bg-internal-row);
  color: var(--color-accent-green);
}

.detail-card__empty {
  color: var(--color-text-tertiary);
}

.calendar-widget__placeholder {
  padding: 28px;
}

.calendar-widget__calendar {
  --fc-border-color: var(--color-border-section);
  --fc-button-bg-color: var(--color-accent-green);
  --fc-button-border-color: var(--color-accent-green);
  --fc-button-hover-bg-color: var(--color-accent-green-hover);
  --fc-button-hover-border-color: var(--color-accent-green-hover);
  --fc-today-bg-color: var(--color-bg-green-subtle);

  font-family: var(--font-sans);
}

.calendar-widget {
  overflow: hidden;
}

.calendar-widget__hint {
  margin-bottom: 16px;
  color: var(--color-text-tertiary);
  font-size: 14px;
  line-height: 1.5;
}

.calendar-widget__warning {
  margin-top: 12px;
  border: 1px solid var(--color-status-pending);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--color-status-pending-bg);
  color: var(--color-text-primary);
  font-size: 13px;
  line-height: 1.45;
}

.calendar-widget__calendar .fc {
  color: var(--color-text-primary);
  font-family: var(--font-sans);
}

.calendar-widget__calendar .fc-header-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 14px;
}

.calendar-widget__calendar .fc-toolbar-chunk {
  display: flex;
  align-items: center;
  min-width: 0;
}

.calendar-widget__calendar .fc-toolbar-chunk:first-child {
  flex: 1 1 auto;
}

.calendar-widget__calendar .fc-toolbar-chunk:last-child {
  flex: 0 0 auto;
  gap: 6px;
}

.calendar-widget__calendar .fc-toolbar-title {
  color: var(--color-text-primary);
  font-family: var(--font-display);
  font-size: clamp(17px, 1.7vw, 22px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  white-space: nowrap;
}

.calendar-widget__calendar .fc-button {
  display: inline-grid;
  min-width: 34px;
  min-height: 34px;
  place-items: center;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 13px;
  line-height: 1;
  box-shadow: none;
}

.calendar-widget__calendar .fc-button.is-hidden {
  display: none;
}

.calendar-widget__calendar .fc-today-button {
  min-width: auto;
  padding-inline: 10px;
}

.calendar-widget__calendar .fc-button-group {
  gap: 4px;
}

.calendar-widget__calendar .fc-button-group > .fc-button {
  border-radius: 8px;
}

.calendar-widget__calendar .fc-scrollgrid {
  border-radius: 14px;
  overflow: hidden;
}

.calendar-widget__calendar .fc-col-header-cell {
  padding-block: 4px;
  background: var(--color-bg-secondary);
  color: var(--color-accent-green);
  font-size: 11px;
  font-weight: 600;
}

.calendar-widget__calendar .fc-daygrid-day {
  cursor: pointer;
}

.calendar-widget__calendar .fc-daygrid-day-frame {
  display: grid;
  min-height: 36px;
  place-items: center;
  padding: 2px;
}

.calendar-widget__calendar .fc-daygrid-day-top {
  justify-content: center;
  width: 100%;
}

.calendar-widget__calendar .fc-daygrid-day-number {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  padding: 0;
  color: var(--color-accent-green);
  font-size: 12px;
  line-height: 1;
}

.calendar-widget__calendar .fc-day-other .fc-daygrid-day-number {
  color: var(--color-text-disabled);
}

.calendar-widget__calendar .fc-daygrid-day-events,
.calendar-widget__calendar .fc-daygrid-day-bg {
  display: none;
}

.calendar-widget__calendar .fc-day-today .fc-daygrid-day-number {
  background: var(--color-bg-green-subtle);
  color: var(--color-accent-green);
  font-weight: 700;
}

.calendar-widget__calendar .fc-daygrid-day.is-selected {
  background: var(--color-status-selected-bg);
  box-shadow: inset 0 0 0 2px var(--color-status-selected);
}

.calendar-widget__calendar .fc-daygrid-day.is-free {
  cursor: pointer;
}

.calendar-widget__calendar .fc-daygrid-day.is-free > .fc-daygrid-day-frame {
  background: var(--color-status-free-bg);
}

.calendar-widget__calendar .fc-daygrid-day.is-free:hover > .fc-daygrid-day-frame {
  background: rgba(var(--color-accent-green-rgb), 0.18);
}

.calendar-widget__calendar .fc-daygrid-day.is-busy {
  cursor: not-allowed;
}

.calendar-widget__calendar .fc-daygrid-day.is-busy > .fc-daygrid-day-frame {
  background: var(--color-status-busy-bg);
}

.calendar-widget__calendar .fc-daygrid-day.is-past > .fc-daygrid-day-frame {
  background: transparent;
  opacity: 0.45;
}

.calendar-widget__calendar .fc-daygrid-day.is-non-working {
  cursor: not-allowed;
}

.calendar-widget__calendar .fc-daygrid-day.is-non-working > .fc-daygrid-day-frame {
  background: var(--color-status-busy-bg);
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 6px,
    rgba(var(--color-status-busy-rgb), 0.12) 6px,
    rgba(var(--color-status-busy-rgb), 0.12) 8px
  );
}

.calendar-widget__calendar .fc-daygrid-day.is-maintenance {
  cursor: not-allowed;
}

.calendar-widget__calendar .fc-daygrid-day.is-maintenance > .fc-daygrid-day-frame {
  background: var(--color-status-blocked-bg);
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 6px,
    rgba(var(--color-status-blocked-rgb), 0.22) 6px,
    rgba(var(--color-status-blocked-rgb), 0.22) 8px
  );
}

.calendar-widget-shell {
  position: relative;
}

.calendar-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.calendar-widget__header h2 {
  margin: 0;
}

.calendar-widget__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--color-border-default);
  background: var(--color-bg-card);
  color: var(--color-text-primary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.calendar-widget__close:hover {
  background: var(--color-bg-page);
  border-color: var(--color-text-secondary);
}

.calendar-widget-shell.is-sheet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(360px, 42vw, 560px);
  z-index: 70;
  background: var(--color-bg-page);
  box-shadow: var(--shadow-calendar-sheet);
  overflow-y: auto;
  padding: 24px;
  animation: calendarSheetSlideIn 220ms ease-out;
}

@keyframes calendarSheetSlideIn {
  from {
    transform: translateX(24px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.calendar-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: var(--color-bg-sheet-overlay);
  z-index: 65;
  backdrop-filter: blur(2px);
}

body.calendar-sheet-open {
  overflow: hidden;
}

.calendar-floating-cta {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: none;
  background: var(--color-accent-green);
  color: var(--color-text-on-green);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--shadow-calendar-floating);
  z-index: 55;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.calendar-floating-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-calendar-floating-hover);
}

.calendar-floating-cta:focus-visible {
  outline: 3px solid rgba(var(--color-accent-green-rgb), 0.35);
  outline-offset: 2px;
}

.calendar-floating-cta__icon {
  font-size: 18px;
  line-height: 1;
}

.calendar-floating-cta__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--color-bg-on-accent-subtle);
  color: var(--color-text-on-green);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 560px) {
  .calendar-widget-shell.is-sheet {
    width: 100vw;
    padding: 20px;
  }

  .calendar-floating-cta__label {
    display: none;
  }

  .calendar-floating-cta {
    padding: 14px;
  }
}

.calendar-toast {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%) translateY(8px);
  background: var(--color-bg-toast);
  color: var(--color-text-on-dark);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.35;
  max-width: min(360px, calc(100% - 32px));
  text-align: center;
  box-shadow: var(--shadow-calendar-toast);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 30;
}

.calendar-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.calendar-widget__calendar .fc-daygrid-day.is-status-pending {
  background: var(--color-status-pending-bg);
}

.calendar-widget__calendar .fc-daygrid-day.is-status-confirmed {
  background: var(--color-status-busy-bg);
}

.calendar-widget__calendar .fc-daygrid-day.is-status-blocked {
  background: var(--color-status-blocked-bg);
}

.calendar-widget__calendar .fc-daygrid-day.is-status-pending .fc-daygrid-day-number {
  background: var(--color-status-pending);
  color: var(--color-text-on-green);
}

.calendar-widget__calendar .fc-daygrid-day.is-status-confirmed .fc-daygrid-day-number {
  background: var(--color-status-busy);
  color: var(--color-text-on-green);
}

.calendar-widget__calendar .fc-daygrid-day.is-status-blocked .fc-daygrid-day-number {
  background: var(--color-status-blocked);
  color: var(--color-text-on-green);
}

.calendar-widget__calendar .fc-event {
  border: none;
  border-radius: 6px;
  padding: 2px 4px;
  font-size: 12px;
}

.calendar-widget__calendar .fc-timegrid-slot {
  height: 24px;
}

.calendar-widget__calendar .fc-timegrid-slot-label {
  font-size: 12px;
  color: var(--color-text-tertiary);
}

.calendar-widget__calendar .fc-timegrid-col {
  background: var(--color-status-free-bg);
}

.calendar-widget__calendar .fc-timegrid-col.fc-day-today {
  background: var(--color-status-free-bg);
}

.calendar-widget__calendar .fc-timegrid-event:not(.fc-event-mirror) {
  cursor: not-allowed;
}

.calendar-widget__calendar .fc-bg-event {
  opacity: 1;
  border-left: 3px solid transparent;
}

.calendar-widget__calendar .fc-bg-event.is-status-pending {
  background: var(--color-status-pending-bg);
  border-left-color: var(--color-status-pending);
}

.calendar-widget__calendar .fc-bg-event.is-status-confirmed {
  background: var(--color-status-busy-bg);
  border-left-color: var(--color-status-busy);
}

.calendar-widget__calendar .fc-bg-event.is-status-non-working {
  background: var(--color-status-busy-bg);
  border-left-color: var(--color-status-busy);
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 6px,
    rgba(var(--color-status-busy-rgb), 0.16) 6px,
    rgba(var(--color-status-busy-rgb), 0.16) 8px
  );
}

.calendar-widget__calendar .fc-bg-event.is-status-blocked {
  background: var(--color-status-blocked-bg);
  border-left-color: var(--color-status-blocked);
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 6px,
    rgba(var(--color-status-blocked-rgb), 0.18) 6px,
    rgba(var(--color-status-blocked-rgb), 0.18) 8px
  );
}

.calendar-widget__calendar .fc-bg-event .fc-event-title {
  display: none;
}

.calendar-widget__calendar .fc-event-mirror {
  background: var(--color-status-selected-bg) !important;
  border: 1px solid var(--color-status-selected) !important;
  color: var(--color-status-selected) !important;
  opacity: 1;
}

.calendar-widget__calendar .fc-event.is-selection {
  cursor: grab;
  background: var(--color-status-selected-bg) !important;
  border: 2px solid var(--color-status-selected) !important;
  color: var(--color-status-selected) !important;
  font-weight: 600;
  box-shadow: var(--shadow-calendar-selection);
}

.calendar-widget__calendar .fc-event.is-selection:active {
  cursor: grabbing;
}

.calendar-widget__calendar .fc-event.is-selection .fc-event-title,
.calendar-widget__calendar .fc-event.is-selection .fc-event-time {
  color: var(--color-status-selected);
}

.calendar-widget__calendar .fc-event.is-selection .fc-event-resizer {
  display: block;
  height: 8px;
  background: var(--color-status-selected);
  opacity: 0.6;
  border-radius: 4px;
}

.calendar-widget__calendar .fc-event.is-selection .fc-event-resizer:hover {
  opacity: 1;
}

.calendar-widget__calendar .fc-event.is-selection .fc-event-resizer-start {
  top: -4px;
}

.calendar-widget__calendar .fc-event.is-selection .fc-event-resizer-end {
  bottom: -4px;
}

.calendar-widget__calendar .fc-highlight {
  background: var(--color-status-selected-bg);
}

.calendar-legend {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-tertiary);
  font-size: 13px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.legend-dot--free {
  background: var(--color-status-free);
}

.legend-dot--pending {
  background: var(--color-status-pending);
}

.legend-dot--busy {
  background: var(--color-status-busy);
}

.legend-dot--blocked {
  background: var(--color-status-blocked);
}

.calendar-widget__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.calendar-widget__booking-button,
.calendar-widget__clear-button {
  flex: 1 1 240px;
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.booking-modal__overlay {
  display: grid;
  min-height: 100%;
  align-items: start;
  justify-items: center;
  padding: var(--container-px);
  background: var(--color-bg-modal-overlay);
  backdrop-filter: blur(4px);
}

.booking-modal__dialog {
  position: relative;
  width: min(100%, 560px);
  margin-block: 24px;
  border-radius: 24px;
  padding: 40px;
  background: var(--color-bg-card);
  box-shadow: var(--shadow-modal);
}

.booking-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  cursor: pointer;
}

.booking-modal__close i {
  width: 20px;
  height: 20px;
}

.booking-modal__header {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.booking-modal__header h2 {
  padding-right: 36px;
  font-size: clamp(24px, 3vw, 32px);
}

.booking-modal__header p {
  color: var(--color-text-tertiary);
}

.booking-modal__cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--card-gap);
  margin-block: calc(var(--card-gap) / 4) 2px;
}

.booking-modal__cart-actions a.btn {
  text-decoration: none;
}

.booking-modal__cart-action {
  flex: 1 1 200px;
}

.selected-date-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.selected-date-pill {
  border-radius: 980px;
  padding: 5px 10px;
  background: var(--color-bg-green-subtle);
  color: var(--color-accent-green);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.booking-form {
  display: grid;
  gap: 14px;
}

.booking-items-summary {
  display: grid;
  gap: 12px;
  border: 1px solid var(--color-border-default);
  border-radius: 18px;
  padding: 16px;
  background: var(--color-bg-secondary);
}

.booking-items-summary__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.booking-items-summary__header h3 {
  font-size: 18px;
}

.booking-items-summary__empty {
  color: var(--color-text-tertiary);
  font-size: 14px;
}

.booking-item-card,
.booking-position-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--color-border-default);
  border-radius: 14px;
  padding: 14px;
  background: var(--color-bg-card);
}

.booking-item-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.booking-item-card h4,
.booking-position-card h4 {
  margin: 0 0 4px;
  color: var(--color-text-primary);
  font-size: 16px;
}

.booking-item-card p,
.booking-position-card p {
  margin: 0 0 10px;
  color: var(--color-text-tertiary);
  font-size: 13px;
}

.booking-item-card dl,
.booking-position-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.booking-item-card dl div,
.booking-position-card dl div {
  display: grid;
  gap: 2px;
}

.booking-item-card dt,
.booking-position-card dt {
  color: var(--color-text-tertiary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.booking-item-card dd,
.booking-position-card dd {
  margin: 0;
  color: var(--color-text-primary);
  font-size: 14px;
}

.booking-item-card__remove {
  border: 1px solid var(--color-status-busy);
  border-radius: 980px;
  padding: 7px 11px;
  background: var(--color-status-busy-bg);
  color: var(--color-status-busy);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.floating-field {
  position: relative;
}

.floating-field input,
.floating-field textarea {
  width: 100%;
  border: 1px solid var(--color-border-input);
  border-radius: 14px;
  padding: 20px 14px 9px;
  background: var(--color-bg-input);
  color: var(--color-text-primary);
  font-size: 15px;
  line-height: 1.35;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.floating-field textarea {
  min-height: 112px;
  resize: vertical;
}

.floating-field input::placeholder,
.floating-field textarea::placeholder {
  color: transparent;
}

.floating-field label {
  position: absolute;
  top: 16px;
  left: 14px;
  color: var(--color-text-placeholder);
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
  transition:
    color 0.2s ease,
    font-size 0.2s ease,
    transform 0.2s ease;
}

.floating-field:focus-within label,
.floating-field input:not(:placeholder-shown) + label,
.floating-field textarea:not(:placeholder-shown) + label {
  color: var(--color-accent-green);
  font-size: 11px;
  transform: translateY(-9px);
}

.floating-field:focus-within input,
.floating-field:focus-within textarea {
  border-color: var(--color-border-focus);
  background: var(--color-bg-page);
  box-shadow: 0 0 0 3px rgba(var(--color-accent-green-rgb), 0.15);
}

.checkbox-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--color-text-tertiary);
  font-size: 13px;
  line-height: 1.5;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent-green);
}

.booking-form__submit {
  width: 100%;
  margin-top: 6px;
}

.form-errors,
.errorlist {
  margin: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--color-status-busy-bg);
  color: var(--color-status-busy);
  font-size: 13px;
  line-height: 1.4;
  list-style: none;
}

.readonly-profile {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  border-radius: 18px;
  padding: 16px;
  background: var(--color-bg-secondary);
}

.readonly-profile div {
  display: grid;
  gap: 2px;
}

.readonly-profile span {
  color: var(--color-text-tertiary);
  font-size: 12px;
}

.readonly-profile strong {
  color: var(--color-text-primary);
  font-size: 15px;
  font-weight: 600;
}

.booking-success,
.booking-success-page {
  display: grid;
  justify-items: start;
  gap: 16px;
}

.booking-success {
  text-align: left;
}

.booking-success i {
  width: 44px;
  height: 44px;
}

.booking-success p {
  color: var(--color-text-tertiary);
  line-height: 1.65;
}

.booking-success__positions,
.booking-list__positions {
  display: grid;
  width: 100%;
  gap: 10px;
}

.booking-success__positions {
  margin-block: 4px;
}

.auth-page,
.profile-page {
  background: var(--color-bg-secondary);
}

.auth-page.section,
.profile-page.section {
  padding-block: clamp(48px, 6vw, 80px);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(340px, 0.48fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.auth-intro {
  display: grid;
  gap: 12px;
}

.auth-intro h1 {
  max-width: 620px;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.profile-header h1 {
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.auth-intro p:not(.eyebrow),
.profile-header p {
  max-width: 620px;
  color: var(--color-text-tertiary);
  font-size: 16px;
  line-height: 1.55;
}

.auth-card,
.profile-card {
  border: 1px solid var(--color-border-default);
  border-radius: 22px;
  background: var(--color-bg-card);
  box-shadow: var(--shadow-card);
}

.auth-card {
  padding: clamp(20px, 3vw, 28px);
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form__submit {
  width: 100%;
  margin-top: 4px;
}

.auth-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-section);
  color: var(--color-text-tertiary);
  font-size: 14px;
}

.auth-card__footer p {
  margin: 0;
}

.auth-card__footer a {
  font-weight: 600;
}

.profile-layout {
  display: grid;
  gap: 26px;
}

.profile-header {
  display: grid;
  gap: 8px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 0.42fr);
  gap: var(--card-gap);
  align-items: start;
}

.profile-card {
  padding: clamp(20px, 3vw, 28px);
}

.profile-card h2 {
  margin-bottom: 16px;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.02em;
}

.booking-list {
  display: grid;
  gap: 12px;
}

.booking-list__item {
  display: grid;
  gap: 8px;
  border: 1px solid var(--color-border-default);
  border-radius: 16px;
  padding: 16px;
  background: var(--color-bg-secondary);
}

.booking-list__item h3 {
  font-size: 18px;
}

.booking-list__item p {
  color: var(--color-text-tertiary);
  font-size: 14px;
}

.status-pending,
.status-confirmed,
.status-completed,
.status-rejected,
.status-cancelled,
.status-clarification {
  width: fit-content;
  border-radius: 980px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
}

.status-pending {
  background: var(--color-status-pending-bg);
  color: var(--color-status-pending);
}

.status-confirmed {
  background: var(--color-status-free-bg);
  color: var(--color-status-free);
}

.status-completed {
  background: var(--color-accent-green);
  color: #FFFFFF;
}

.status-rejected {
  background: var(--color-status-busy-bg);
  color: var(--color-status-busy);
}

.status-cancelled {
  background: var(--color-status-blocked-bg);
  color: var(--color-status-blocked);
}

.status-clarification {
  background: var(--color-bg-blue-subtle);
  color: var(--color-accent-blue);
}

.profile-empty {
  display: grid;
  justify-items: start;
  gap: 14px;
  color: var(--color-text-tertiary);
}

.profile-empty i {
  width: 34px;
  height: 34px;
}

.staff-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: center;
}

.staff-panel h2 {
  margin: 8px 0 10px;
}

.staff-panel p:not(.eyebrow) {
  color: var(--color-text-tertiary);
  font-size: 15px;
  line-height: 1.55;
}

.staff-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.access-denied-page {
  background: var(--color-bg-secondary);
}

.access-denied-card {
  display: grid;
  max-width: 760px;
  gap: 18px;
  border: 1px solid var(--color-border-default);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 48px);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-card);
}

.access-denied-card h1 {
  font-size: clamp(34px, 4vw, 52px);
}

.access-denied-card p:not(.eyebrow) {
  color: var(--color-text-tertiary);
  font-size: 16px;
  line-height: 1.65;
}

.access-denied-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 900px) {
  .site-nav,
  .site-actions {
    display: none;
  }

  .mobile-menu-toggle,
  .mobile-menu-panel {
    display: flex;
  }

  .mobile-menu-panel {
    position: fixed;
    inset: 64px 0 auto;
    z-index: 99;
    flex-direction: column;
    gap: 18px;
    border-bottom: 1px solid var(--color-border-section);
    padding: 24px var(--container-px) 28px;
    background: var(--color-bg-page);
    box-shadow: var(--shadow-mobile-menu);
  }

  .mobile-menu-panel a,
  .mobile-menu-panel .btn,
  .mobile-menu-panel .site-user,
  .mobile-menu-panel .logout-form {
    width: 100%;
  }

  .mobile-menu-panel .btn {
    justify-content: center;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    inset: auto -120px 40px auto;
    width: 360px;
    opacity: 0.08;
    transform: none;
  }

  .stats-grid,
  .contacts-grid,
  .workflow-steps,
  .about-section__grid,
  .instrument-detail__grid {
    grid-template-columns: 1fr;
  }

  .instrument-detail__aside {
    position: static;
  }

  .workflow-steps::before {
    display: none;
  }

  .employee-note,
  .section-heading--split {
    grid-template-columns: 1fr;
  }

  .auth-layout,
  .profile-grid,
  .staff-panel {
    grid-template-columns: 1fr;
  }

  .staff-panel__actions {
    justify-content: flex-start;
  }

  .section-heading--split {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .stats-grid,
  .contacts-grid {
    gap: 14px;
  }

  .employee-note {
    align-items: start;
  }

  .hero-actions {
    width: 100%;
  }

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

  .booking-modal__dialog {
    padding: 28px 20px;
  }
}

@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;
  }
}

/* Методики и связанные приборы */
.instrument-detail__methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.instrument-detail__methods .btn {
  width: fit-content;
}

.method-detail .instrument-detail__header {
  margin-bottom: 32px;
}

.method-instruments-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-instruments-list__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--color-border-default);
  border-radius: var(--card-radius);
  padding: 16px 20px;
  background: var(--color-bg-card);
  box-shadow: var(--shadow-card);
}

.method-instruments-list__info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.method-instruments-list__title {
  color: var(--color-text-primary);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.method-instruments-list__title:hover {
  color: var(--color-accent-green);
}

.method-instruments-list__description {
  margin: 0;
  color: var(--color-text-tertiary);
  font-size: 14px;
  line-height: 1.5;
}

.method-instruments-list__cta {
  white-space: nowrap;
}

.method-card__link {
  grid-template-rows: 1fr;
}

.method-card__body {
  grid-template-rows: auto minmax(56px, auto) minmax(0, 1fr) auto;
}

.booking-item-card__select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--color-border-input);
  border-radius: 10px;
  padding: 6px 10px;
  background: var(--color-bg-page);
  color: var(--color-text-primary);
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.booking-item-card__select:focus-visible {
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 3px rgba(var(--color-accent-green-rgb), 0.15);
}

@media (max-width: 640px) {
  .method-instruments-list__item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .method-instruments-list__cta {
    width: 100%;
  }
}
