:root {
  --bg: #0f1412;
  --bg-elevated: #161d1a;
  --surface: #1c2521;
  --text: #e8ebe9;
  --text-muted: #9aa7a0;
  --accent: #c4a574;
  --accent-hover: #d4b98a;
  --accent-soft: rgba(196, 165, 116, 0.15);
  --line: rgba(255, 255, 255, 0.08);
  --font-body: "Manrope", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --radius: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

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

a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  max-width: 100%;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  max-width: 100%;
  z-index: 400;
  pointer-events: none;
  background: var(--accent);
  /* Только вниз — горизонтальное свечение даёт полосу и скролл на узких экранах */
  box-shadow: 0 4px 14px rgba(196, 165, 116, 0.42);
  transform-origin: left center;
}

@keyframes scroll-progress-shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

html.has-scroll-fx .reveal-on-scroll:not(.is-inview) {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
}

html.has-scroll-fx .reveal-on-scroll.is-inview {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress {
    display: none;
    animation: none;
  }

  html.has-scroll-fx .reveal-on-scroll:not(.is-inview) {
    opacity: 1;
    transform: none;
  }

  html.has-scroll-fx .reveal-on-scroll.is-inview {
    transition: none;
  }

  .hero__bg {
    transform: none !important;
  }
}

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

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

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

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.top-bar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-bar__phone {
  color: var(--text);
  font-weight: 600;
}

.top-bar__reviews {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
}

.top-bar__reviews:hover {
  color: var(--accent-hover);
}

.header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(15, 20, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.header.is-scrolled {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  border-bottom-color: rgba(196, 165, 116, 0.12);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 16px 0;
  flex-wrap: nowrap;
}

.header__toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-shrink: 1;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
}

.nav--desktop {
  display: none;
  align-items: center;
  gap: 0.85rem 1.15rem;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

.nav--desktop a:not(.btn) {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-desktop__cta {
  flex-shrink: 0;
}

@media (max-width: 1200px) {
  .header__toolbar {
    flex-wrap: nowrap;
    gap: 0.65rem;
    flex: 1 1 auto;
    justify-content: flex-end;
  }
  
  .logo--header-wide {
    font-size: clamp(2.5rem, 5vw, 3.75rem); /* Размер заголовка Hero */
    flex: 0 1 auto;
    margin-right: auto;
    line-height: 1;
  }

  .nav-desktop__cta {
    display: none !important;
  }

  .nav--desktop {
    display: none !important;
  }

  .desktop-only {
    display: none !important;
  }

  .btn--header {
    min-width: 0; /* Сбрасываем жесткую ширину на мобильных, где кнопки скрыты или другие */
  }

  .burger {
    display: flex !important;
  }
}

@media (min-width: 1201px) {
  .nav--desktop {
    display: flex;
    gap: 0.85rem 1.5rem;
    margin-right: 1rem;
  }

  .burger {
    display: none !important;
  }

  .logo--header-wide {
    flex: 0 1 auto;
    font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  }
}

.btn--reviews-link {
  white-space: nowrap;
}

/* Privacy page: hide header buttons on mobile portrait so they don't overlap the logo.
   Keep them on desktop and tablet landscape. */
@media (max-width: 900px) and (orientation: portrait) {
  .page-privacy .header__toolbar .btn--header {
    display: none !important;
  }
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}

.logo--header-wide {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(1.55rem, 4.2vw, 2.15rem);
  letter-spacing: 0.06em;
}

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

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(0, 0, 0, 0.52);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

body.nav-open .mobile-nav-overlay {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 125;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: auto;
  max-width: min(92vw, 100%);
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(5.5rem + env(safe-area-inset-top, 0px)) 1.25rem 2rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  padding-left: 1.35rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elevated) 100%);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 48px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  box-sizing: border-box;
}

body.nav-open .mobile-nav-drawer {
  transform: translateX(0);
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: max-content;
  max-width: 100%;
}

.mobile-nav__link {
  display: block;
  padding: 1rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
  white-space: nowrap;
}

.mobile-nav__link:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--header {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  /* Задаем минимальную ширину, чтобы кнопки в шапке были одинаковыми */
  min-width: 154px;
}

.btn--header:hover {
  background: var(--accent-soft);
}

.btn--primary {
  background: var(--accent);
  color: #1a1510;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #1a1510;
}

.mobile-nav-drawer .mobile-nav__cta.btn.btn--primary {
  margin-top: 1.35rem;
  align-self: flex-start;
  padding: 0.42rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--light {
  background: var(--text);
  color: var(--bg);
}

.btn--light:hover {
  background: var(--accent-hover);
  color: #1a1510;
}

.btn--block {
  width: 100%;
}

.btn--small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  margin: -10px -10px -10px 0;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

body.nav-open .burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .burger span:nth-child(2) {
  opacity: 0;
}

body.nav-open .burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav-drawer,
  .mobile-nav-overlay {
    transition: none;
  }

  body.nav-open .burger span:nth-child(1),
  body.nav-open .burger span:nth-child(3) {
    transform: none;
  }

  body.nav-open .burger span:nth-child(2) {
    opacity: 1;
  }
}

.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  padding: 4rem 0 5rem;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 4rem 0 3.5rem;
  }
}

.hero__bg {
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(196, 165, 116, 0.22) 0%, rgba(196, 165, 116, 0.1) 40%, rgba(196, 165, 116, 0) 80%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(80, 120, 100, 0.12) 0%, rgba(80, 120, 100, 0.05) 40%, rgba(80, 120, 100, 0) 80%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
  pointer-events: none;
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.08);
  transform-origin: center 30%;
}

.hero__content {
  position: relative;
  max-width: 720px;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero__eyebrow-top,
.hero__eyebrow-bottom {
  display: inline;
}

@media (max-width: 430px) {
  .hero__eyebrow-top {
    white-space: nowrap;
  }

  .hero__eyebrow-bottom {
    display: block;
  }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__text {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__actions .btn--hero-promo {
  padding: 17px 36px;
  font-size: 1.05rem;
  min-height: 54px;
}

@media (max-width: 480px) {
  .hero__actions .btn--hero-promo {
    flex: 1 1 auto;
    min-width: min(100%, 240px);
    justify-content: center;
  }
}

.trust {
  border-block: 1px solid var(--line);
  background: var(--bg-elevated);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.trust__item {
  background: var(--bg-elevated);
  padding: 1.75rem 1.25rem;
  text-align: center;
  min-width: 0;
}

.trust__item:nth-child(1),
.trust__item:nth-child(3) {
  border-right: 1px solid var(--line);
}

.trust__item:nth-child(1),
.trust__item:nth-child(2) {
  border-bottom: 1px solid var(--line);
}

.trust__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.trust__item:first-child strong {
  font-size: clamp(2.05rem, 6.5vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
}

.trust__item span {
  font-size: 1rem;
  color: var(--text-muted);
}

/* На узких экранах сетка на всю ширину — иначе сбоку виден более тёмный фон body */
@media (max-width: 992px) {
  .trust > .container.trust__grid {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }
}

.section {
  padding: 5rem 0;
}

@media (max-width: 992px) {
  .section {
    padding: 12rem 0;
  }
}

section#about-me.section {
  padding-bottom: 2rem;
}

section#booking.section {
  padding-top: 2rem;
}

.section--alt {
  background: var(--bg-elevated);
}

.section__head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}

.section__lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section--services {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section--services__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(15, 20, 18, 0.92) 0%, rgba(15, 20, 18, 0.82) 42%, rgba(15, 20, 18, 0.94) 100%),
    linear-gradient(105deg, rgba(15, 20, 18, 0.55) 0%, rgba(15, 20, 18, 0) 42%, rgba(15, 20, 18, 0) 58%, rgba(15, 20, 18, 0.5) 100%),
    url("images/services-bg.jpg");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.section--services__content {
  position: relative;
  z-index: 1;
}

.section--services .section__lead {
  color: rgba(232, 235, 233, 0.88);
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35);
}

.section--services .section__title {
  text-shadow: 0 1px 32px rgba(0, 0, 0, 0.4);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.services-carousel {
  position: relative;
}

.services-carousel__track-wrap {
  position: relative;
}

.services-carousel__nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.1rem;
  padding: 0 2px;
}

.services-carousel__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}

.services-carousel__btn:hover:not(:disabled) {
  background: var(--accent-soft);
  border-color: rgba(196, 165, 116, 0.45);
  color: var(--accent-hover);
}

.services-carousel__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.services-carousel__btn-icon {
  display: block;
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.services-carousel__btn-icon--prev {
  transform: rotate(45deg);
  margin-left: 2px;
}

.services-carousel__btn-icon--next {
  transform: rotate(-135deg);
  margin-right: 2px;
}

.services-carousel__dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(100%, 220px);
}

.services-carousel__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.services-carousel__dot:hover {
  background: rgba(196, 165, 116, 0.55);
}

.services-carousel__dot.is-active {
  background: var(--accent);
  transform: scale(1.15);
}

@media (max-width: 992px) {
  .section--services__bg {
    background-image: none;
    background: var(--surface);
  }

  .cards {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
  }

  .cards::-webkit-scrollbar {
    display: none;
  }

  .cards .card {
    flex: 0 0 min(78vw, 300px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-shadow: none;
    background: var(--bg-elevated);
    border-color: rgba(196, 165, 116, 0.2);
  }

  .services-carousel__nav {
    display: flex;
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s;
}

.card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem 1.75rem 1.75rem;
  background-color: inherit;
  position: relative;
  z-index: 1;
  margin-top: -2px;
}

.card__media {
  position: relative;
  height: clamp(148px, 24vw, 210px);
  flex-shrink: 0;
  background-color: #1a221e;
  overflow: hidden;
}

.card__media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: translateZ(0); /* Исправление ряби/муара на некоторых экранах */
  backface-visibility: hidden;
  -webkit-user-drag: none;
}

.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--surface) 0%,
    rgba(28, 37, 33, 0.8) 15%,
    rgba(28, 37, 33, 0.45) 45%,
    rgba(28, 37, 33, 0.08) 80%,
    rgba(28, 37, 33, 0) 100%
  );
  pointer-events: none;
}

@media (max-width: 768px) {
  .cards .card__media::after {
    background: linear-gradient(
      to top,
      #161d1a 0%,
      rgba(22, 29, 26, 0.8) 15%,
      rgba(22, 29, 26, 0.45) 45%,
      rgba(22, 29, 26, 0.08) 80%,
      rgba(22, 29, 26, 0) 100%
    );
  }
}

.card:hover {
  border-color: rgba(196, 165, 116, 0.35);
  transform: translateY(-2px);
}

.card__icon {
  display: inline-block;
  width: 40px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.card__price {
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
}

.card__duration {
  color: var(--text-muted);
  font-weight: 500;
}

.card__text {
  flex: 1;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card__actions {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.service-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: min(88vh, 720px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface), var(--bg-elevated));
  color: var(--text);
  box-shadow: var(--shadow);
}

.service-dialog::-webkit-scrollbar {
  display: none;
}

.service-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.service-dialog::backdrop::-webkit-scrollbar {
  display: none;
}

dialog {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

dialog::-webkit-scrollbar {
  display: none !important;
}

.service-dialog__inner {
  display: flex;
  flex-direction: column;
  max-height: min(88vh, 720px);
}

.service-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.service-dialog__title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
  padding-right: 0.5rem;
}

.service-dialog__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin: -0.35rem -0.35rem 0 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.service-dialog__close:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.service-dialog__body {
  padding: 1.25rem 1.5rem 1.5rem;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-elevated);
}

.service-dialog__body::-webkit-scrollbar {
  width: 6px;
}

.service-dialog__body::-webkit-scrollbar-track {
  background: var(--bg-elevated);
}

.service-dialog__body::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.service-dialog__body p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.service-dialog__body p:last-child {
  margin-bottom: 0;
}

.service-dialog__subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 1.25rem 0 0.5rem;
}

.service-dialog__subtitle:first-child {
  margin-top: 0;
}

.service-dialog__note {
  font-size: 0.9rem !important;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  color: var(--text) !important;
}

.service-dialog__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

.service-dialog__foot .btn--primary {
  flex: 1;
  min-width: 140px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split__p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.checklist {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  color: var(--accent);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

.split__panel {
  background: linear-gradient(145deg, var(--surface), var(--bg));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem;
  min-height: 280px;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .split__panel {
    min-height: auto;
    padding: 1.75rem 1.5rem;
  }
}

.split__panel blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--accent);
}

.booking {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.booking__intro {
  text-align: center;
  max-width: 36rem;
  text-wrap: balance;
}

.booking__intro .section__lead {
  text-wrap: balance;
}

.booking__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.28rem, 2.8vw, 1.75rem);
  font-weight: 600;
  color: var(--text);
  text-wrap: balance;
}

.booking__lead-extra {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.55;
  text-wrap: balance;
}

.booking-gate__extra {
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  border-top: 1px solid var(--line);
  position: relative;
}

.booking-gate__extra::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 5px;
  height: 5px;
  border: 1px solid var(--accent);
  background-color: var(--bg);
}

.booking-gate__extra .booking__subtitle {
  margin: 0 0 0.6rem;
}

.booking-gate {
  width: 100%;
  max-width: 28rem;
}

.consent--booking {
  margin-bottom: 0.25rem;
  justify-content: center;
  text-align: center;
}

.booking-gate__btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.booking-gate__hint {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.45;
  text-wrap: balance;
}

.booking-gate__write {
  margin-top: 1.15rem;
  color: var(--accent);
  border-color: rgba(196, 165, 116, 0.48);
}

.booking-gate__write:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.consent input {
  margin-top: 0.25rem;
  accent-color: var(--accent);
}

.consent a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.cookie a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.legal-page {
  padding: 2.5rem 0 4rem;
}

.legal-page .container {
  width: min(720px, 100% - 40px);
}

.legal-page__back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.legal-page__back:hover {
  color: var(--accent-hover);
}

.legal-doc h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 600;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.legal-doc .legal-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.legal-doc h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.legal-doc p,
.legal-doc li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-doc p {
  margin: 0 0 1rem;
}

.legal-doc ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-doc .legal-note {
  padding: 1rem 1.15rem;
  margin: 2rem 0 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--accent-soft);
  font-size: 0.9rem;
  color: var(--text);
}

.form__note {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.form__note code {
  font-size: 0.85em;
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
}

.about-me__text {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  text-align: left;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.about-me__text p {
  margin: 0 0 1rem;
}

.about-me__text strong {
  color: var(--text);
}

.about-me__content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 1rem;
  align-items: stretch;
}

/* Subgrid: те же 4 дорожки, что у дипломов — нижний край фото совпадает с сеткой справа */
.about-me__photo-column {
  grid-column: 1;
  grid-row: 1 / span 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: subgrid;
  min-width: 0;
  min-height: 0;
}

.about-me__photo-column .about-me__photo--1 {
  grid-row: 1 / span 2;
}

.about-me__photo-column .about-me__photo--2 {
  grid-row: 3 / span 2;
}

.about-me__photo {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  min-height: 0;
  height: 100%;
  aspect-ratio: 297 / 436;
}

.about-me__photo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  display: block;
}

.about-me__photo--empty {
  min-height: 280px;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 1.5rem;
}

.about-me__photo--empty::before {
  content: "📷";
  font-size: 2.5rem;
  opacity: 0.5;
}

/* Один grid-элемент со subgrid (не display:contents) — в Chrome на широком экране иначе ломалось выравнивание строк с колонкой фото */
.about-me__diplomas {
  list-style: none;
  margin: 0;
  padding: 0;
  grid-column: 2 / 4;
  grid-row: 1 / span 4;
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: subgrid;
  min-width: 0;
  min-height: 0;
}

.about-me__diploma {
  margin: 0;
  padding: 0;
  min-height: 0;
}

.diploma-frame {
  margin: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  aspect-ratio: 297 / 210;
  display: flex;
  flex-direction: column;
}

button.diploma-frame.diploma-frame--thumb {
  appearance: none;
  width: 100%;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

button.diploma-frame.diploma-frame--thumb:hover {
  border-color: rgba(196, 165, 116, 0.45);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

button.diploma-frame.diploma-frame--thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.diploma-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex: 1;
  min-height: 0;
  /* Базовый фильтр для всех дипломов: сильное приглушение белого */
  filter: sepia(15%) contrast(0.85) brightness(0.85) saturate(0.9);
  transition: filter 0.3s ease;
}

/* 1-й и 5-й дипломы: оставляем ярче, так как они, видимо, уже темные или нормальные */
.about-me__diplomas li:nth-child(1) .diploma-frame img,
.about-me__diplomas li:nth-child(5) .diploma-frame img {
  filter: sepia(5%) contrast(0.98) brightness(0.98);
}

/* 8-й диплом: делаем еще светлее по просьбе пользователя */
.about-me__diplomas li:nth-child(8) .diploma-frame img {
  filter: sepia(0%) contrast(1.02) brightness(1.05);
}

button.diploma-frame.diploma-frame--thumb:hover img {
  filter: sepia(0%) contrast(1) brightness(1) saturate(1) !important;
}

.diploma-frame__cap {
  display: none;
}

.diploma-frame--empty img {
  display: none;
}

.diploma-frame--empty {
  min-height: 180px;
  align-items: center;
  justify-content: center;
}

.diploma-frame--empty .diploma-frame__cap {
  border-top: none;
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  padding: 1rem;
}

/* Закрытый <dialog> должен оставаться display:none — иначе перекрывает страницу */
.diploma-lightbox:not([open]) {
  display: none !important;
}

.diploma-lightbox[open] {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-sizing: border-box;
}

.diploma-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(5px);
}

.diploma-lightbox__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-out;
}

.diploma-lightbox__shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 32px));
  max-width: 100%;
  max-height: min(92vh, 92dvh);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 2.75rem 1rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--surface), var(--bg-elevated));
  box-shadow: var(--shadow);
  box-sizing: border-box;
}

.diploma-lightbox__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 42px;
  height: 42px;
  margin: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.diploma-lightbox__close:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.diploma-lightbox__stage {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
}

.diploma-lightbox__center {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diploma-lightbox__arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.diploma-lightbox__arrow:hover:not(:disabled) {
  background: var(--accent-soft);
  border-color: rgba(196, 165, 116, 0.45);
}

.diploma-lightbox__arrow:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.diploma-lightbox__arrow-icon {
  display: block;
  line-height: 1;
}

.diploma-lightbox__arrow--prev .diploma-lightbox__arrow-icon::before {
  content: "‹";
  font-size: 1.85rem;
  display: block;
  margin-top: -2px;
}

.diploma-lightbox__arrow--next .diploma-lightbox__arrow-icon::before {
  content: "›";
  font-size: 1.85rem;
  display: block;
  margin-top: -2px;
}

.diploma-lightbox__viewport--desktop {
  display: none;
  width: 100%;
  max-width: min(720px, 100%);
  max-height: min(68vh, 640px);
  overflow: hidden;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
}

.diploma-lightbox__viewport--mobile {
  display: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.diploma-lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(68vh, 640px);
  margin: 0 auto;
  object-fit: contain;
  /* При открытии диплома показываем его в оригинальном цвете */
  filter: none;
}

.diploma-lightbox__strip {
  height: 100%;
  max-height: min(68dvh, 520px);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.35rem 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-elevated);
}

.diploma-lightbox__strip::-webkit-scrollbar {
  width: 6px;
}

.diploma-lightbox__strip::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.diploma-lightbox__slide {
  scroll-snap-align: center;
  scroll-snap-stop: always;
  flex-shrink: 0;
  min-height: 26dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0;
}

.diploma-lightbox__slide img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(24dvh, 300px);
  height: auto;
  object-fit: contain;
  /* Аналогично для миниатюр в лайтбоксе (карусели) */
  filter: sepia(15%) contrast(0.85) brightness(0.85) saturate(0.9);
  transition: filter 0.3s ease;
}

.diploma-lightbox__slide:nth-child(1) img,
.diploma-lightbox__slide:nth-child(5) img {
  filter: sepia(5%) contrast(0.98) brightness(0.98);
}

.diploma-lightbox__slide:nth-child(8) img {
  filter: sepia(0%) contrast(1.02) brightness(1.05);
}

.diploma-lightbox__slide.is-active img,
.diploma-lightbox__slide:hover img {
  filter: sepia(0%) contrast(1) brightness(1) saturate(1) !important;
}

@media (min-width: 993px) {
  .diploma-lightbox__viewport--desktop {
    display: flex;
  }

  .diploma-lightbox__viewport--mobile {
    display: none !important;
  }

  .diploma-lightbox__stage {
    flex-direction: row;
    min-height: min(70vh, 660px);
  }
}

@media (max-width: 992px) {
  .diploma-lightbox__shell {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    padding: 3rem 0.75rem 1rem;
    border-left: none;
    border-right: none;
  }

  .diploma-lightbox__stage {
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 0.5rem;
  }

  .diploma-lightbox__center {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
  }

  .diploma-lightbox__viewport--desktop {
    display: none !important;
  }

  .diploma-lightbox__viewport--mobile {
    display: block;
    max-height: none;
  }

  .diploma-lightbox__strip {
    max-height: calc(100dvh - 10.5rem);
  }

  .diploma-lightbox__arrow--prev .diploma-lightbox__arrow-icon::before {
    content: "▲";
    font-size: 0.75rem;
    margin-top: 0;
  }

  .diploma-lightbox__arrow--next .diploma-lightbox__arrow-icon::before {
    content: "▼";
    font-size: 0.75rem;
    margin-top: 0;
  }

  .diploma-lightbox__close {
    top: 0.35rem;
    right: 0.35rem;
  }
}

.reviews-block {
  max-width: 560px;
  margin: 0 auto;
}

.yandex-reviews {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.yandex-reviews__iframe {
  display: block;
  width: 100%;
  min-height: clamp(640px, 78vh, 880px);
  border: 0;
  background: var(--bg);
}

.yandex-reviews__fallback {
  margin: 0;
  padding: 1.25rem 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.yandex-reviews__fallback code {
  font-size: 0.85em;
  word-break: break-all;
}

.contacts {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.contacts__list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.contacts__list li {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contacts__list strong {
  color: var(--text);
}

.contacts__link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
}

.contacts__link:hover {
  color: var(--accent);
}

.contacts__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

@media (max-width: 768px) {
  .contacts {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.social {
  flex: 1 1 0;
  min-width: 100px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--text);
  text-align: center;
}

.social:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.contacts__map {
  min-width: 0;
}

.contacts__map-iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 260px;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
}

.map-placeholder {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: var(--surface);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  background: var(--bg-elevated);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__logo:hover {
  color: var(--accent);
}

.footer__nav {
  display: flex;
  gap: 1.5rem;
}

.footer__nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer__copy {
  width: 100%;
  text-align: center;
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }

  .footer__logo {
    width: 100%;
  }

  .footer__nav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    width: 100%;
  }

  .footer__nav a {
    white-space: nowrap;
    line-height: 1.45;
    text-align: center;
  }

  .footer__nav a.desktop-only {
    display: none;
  }
}

.cookie {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: min(480px, calc(100% - 32px));
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.cookie.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie p {
  margin: 0;
  flex: 1;
  min-width: 200px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cookie__actions {
  display: flex;
  gap: 0.5rem;
}

@media (max-width: 900px) {
  html {
    font-size: 16px;
  }

  .container {
    max-width: 95%;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .container {
    max-width: 92%;
  }

  .section {
    padding: 2rem 0;
  }

  .header__inner {
    gap: 0.5rem;
    padding: 12px 0;
  }

  .btn--header {
    font-size: 0.8rem;
    padding: 0.55rem 1.15rem;
    flex: 0 0 auto;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .container {
    width: 100%;
  }

  .section {
    padding: 1.75rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .container {
    width: 100%;
  }

  .section {
    padding: 1.5rem 0;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container {
    max-width: 90%;
  }

  .section {
    padding: 1.5rem 0;
  }

  .header__inner {
    gap: 0.35rem;
    padding: 14px 0;
  }

  .header__toolbar {
    gap: 0.5rem;
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  .logo--header-wide {
    font-size: clamp(2.5rem, 5vw, 3.75rem); /* Размер заголовка Hero */
    flex: 0 1 auto;
    margin-right: auto;
  }

  .btn--header {
    font-size: 0.8rem;
    padding: 0.5rem 0.95rem;
    flex: 0 0 auto;
    text-align: center;
    white-space: nowrap;
  }

  .burger span {
    width: 24px;
    height: 2px;
  }

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

  .split__panel {
    order: 2;
    margin-top: 2rem;
  }
}

@media (max-width: 420px) {
  .header__inner {
    gap: 0.2rem;
  }
  
  .header__toolbar {
    gap: 0.2rem;
  }
  
  .logo--header-wide {
    font-size: clamp(2rem, 8vw, 2.5rem); /* Чуть меньше для самых узких экранов, чтобы влезло слово */
  }
  
  .btn--header {
    font-size: 0.6rem;
    padding: 0.35rem 0.4rem;
  }
  
  .burger {
    padding: 5px;
    margin: -5px -5px -5px 0;
  }
  
  .burger span {
    width: 20px;
  }
}
