:root {
  --paper: #e6e2da;
  --sheet: #f7f6f3;
  --ink: #1c1c1c;
  --body: #3e3b37;
  --muted: #5c5853;
  --line: #cfc8bc;
  --serif: "Oranienbaum", "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --wrap: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

::selection {
  background: var(--ink);
  color: var(--sheet);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

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

[hidden] {
  display: none !important;
}

p,
dd,
.standards,
.service-list {
  margin: 0;
  max-width: 68ch;
  text-wrap: pretty;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 6;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--sheet);
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 24px;
  padding: 14px 0 12px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header > .button {
  justify-self: end;
  align-self: center;
}

h1,
h2,
h3,
#booking,
#content {
  scroll-margin-top: 6.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  display: block;
}

.logo-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  line-height: 1;
  color: var(--ink);
}

.logo-lockup__title {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

.logo-lockup__tag {
  font-family: var(--sans);
  font-size: clamp(0.48rem, 1.15vw, 0.58rem);
  font-weight: 500;
  letter-spacing: 0.44em;
  text-indent: 0.44em;
  text-transform: uppercase;
  color: var(--ink);
}

.logo-lockup--header .logo-lockup__title {
  height: 34px;
  width: auto;
}

.logo-lockup--header .logo-lockup__tag {
  font-size: 0.5rem;
  letter-spacing: 0.38em;
  text-indent: 0.38em;
}

.brand .logo-lockup {
  align-items: flex-start;
}

.brand .logo-lockup__tag {
  align-self: center;
}

.logo-lockup--hero {
  align-items: center;
}

.logo-lockup--hero .logo-lockup__title {
  width: min(100%, 22.5rem);
  height: auto;
}

.logo-lockup--hero .logo-lockup__tag {
  margin-top: 2px;
}

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

.hero-wordmark {
  margin: 0;
  line-height: 0;
}

.brand-word {
  transform: translateY(0.05em);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  justify-content: flex-end;
  font-size: 0.95rem;
}

.nav a[aria-current="page"] {
  font-weight: 600;
  text-decoration-thickness: 2px;
}

.nav a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--sheet);
  font: 500 1rem/1 var(--sans);
  text-decoration: none;
}

button.button {
  cursor: pointer;
}

.button:hover {
  background: #000;
}

.hero,
.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px 40px;
  align-items: start;
}

.hero {
  padding: 32px 0 0;
  align-items: center;
}

.home-color .home-split {
  align-items: start;
}

.hero-photo,
.color-stage {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
}

.hero-photo {
  height: auto;
  object-fit: cover;
  object-position: 80% 40%;
}

.hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hero-note {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px 40px;
  align-items: start;
  max-width: none;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
}

.hero-note p {
  max-width: none;
}

.yandex-place {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 18px;
  align-items: center;
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px solid var(--ink);
  color: inherit;
  text-decoration: none;
}

.yandex-place-score {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.yandex-place-award {
  display: inline;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.1;
}

.yandex-place-year {
  display: inline;
  color: var(--muted);
  font-size: 1.05rem;
}

.yandex-place-year::before {
  content: " ";
}

.yandex-place-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.yandex-place:hover {
  background: var(--sheet);
}

.color-stage {
  background: var(--line);
  border: 1px solid rgba(28, 28, 28, 0.18);
}

.color-copy h3 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.color-copy .nails {
  margin: 4px 0 16px;
}

.color-copy .button {
  margin-top: 8px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 28px;
}

.section-head .section-title {
  margin-bottom: 0;
}

.home-news .section-title,
.home-visit .section-title {
  margin-bottom: 16px;
}

.home-news .more-links {
  margin-top: 16px;
}

.section-head .more-links {
  margin-top: 0;
}

.home-works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.home-works-grid a {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--line);
}

.home-works-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wordmark {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.6vw, 5rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.wordmark span {
  display: block;
}

.slogan {
  margin-top: 28px;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.35;
}

.hero-wordmark + .slogan {
  margin-top: 22px;
}

.place {
  margin-top: 8px;
  color: var(--muted);
}

.hero-note p {
  margin-bottom: 12px;
  color: var(--ink);
}

.offer-title {
  margin-bottom: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.hero-note .button {
  margin-top: 0;
  justify-self: start;
}

.salon-kind {
  margin-top: 14px;
  color: var(--ink);
  font-size: 1.25rem;
}

.home-color,
.home-works,
.services,
.photos-tease,
.home-tail {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.home-news p,
.home-visit p {
  max-width: none;
}

.home-visit .button {
  margin-top: 16px;
}

.news-item {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.news-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.news-date {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.news-edit {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.page {
  padding: 36px 0 72px;
}

.page > h1 {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.95;
  text-wrap: balance;
}

.service-main a,
.service-rest a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.service-main p,
.service-rest p {
  max-width: none;
}

.service-main a h3,
.service-rest a h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.service-rest h3 {
  font-size: 1.7rem;
}

.more-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.more-links {
  margin-top: 28px;
}

.more-links a,
.footer-links a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  margin-top: 28px;
}

.page-actions a:not(.button) {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.button.quiet {
  background: transparent;
  color: var(--ink);
}

.button.quiet:hover {
  background: var(--ink);
  color: var(--sheet);
}

.button.small {
  min-height: 40px;
  padding: 0 12px;
  font-size: 0.95rem;
}

.gallery-grid,
.photo-strip {
  display: grid;
  gap: 4px;
}

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

.photo-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.gallery-grid button,
.photo-strip a {
  display: block;
  padding: 0;
  border: 0;
  background: var(--line);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: pointer;
}

.gallery-grid img,
.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-dialog {
  width: min(960px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 12px;
  border: 1px solid var(--ink);
  background: var(--sheet);
  color: var(--ink);
}

.photo-dialog::backdrop,
.request-dialog::backdrop {
  background: rgba(28, 28, 28, 0.72);
}

.request-dialog {
  width: min(440px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 20px 20px 24px;
  border: 1px solid var(--ink);
  background: var(--sheet);
  color: var(--ink);
}

.request-dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.request-dialog-bar h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.phone-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--ink);
  background: var(--sheet);
}

.phone-box:focus-within {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.phone-code {
  flex: none;
  padding: 12px 0 12px 14px;
  color: var(--ink);
  font: 1rem/1.4 var(--sans);
  font-variant-numeric: tabular-nums;
}

.phone-box input {
  border: 0;
  padding-left: 8px;
  background: transparent;
  font-variant-numeric: tabular-nums;
}

.phone-box input:focus,
.phone-box input:focus-visible {
  outline: none;
}

.photo-dialog-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.photo-dialog-bar p {
  margin: 0;
}

.photo-dialog img {
  width: auto;
  max-width: 100%;
  max-height: min(72vh, 780px);
  margin: 12px auto 0;
  object-fit: contain;
}

.admin-block {
  margin: 0;
  padding: 28px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.admin-block h2 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.admin-help,
.admin-block .hint {
  margin-bottom: 16px;
  color: var(--muted);
}

.admin-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  position: sticky;
  bottom: 0;
  z-index: 1;
  padding: 12px 0;
  background: var(--paper);
}

#login-form {
  max-width: 420px;
  padding: 12px 0 48px;
}

.price-edit {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px auto;
  gap: 8px;
  margin-bottom: 8px;
}

.photo-admin {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.photo-admin figure {
  margin: 0;
}

.photo-admin img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: var(--line);
}

.photo-admin label {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
  font-weight: 400;
}

.request {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.request p {
  margin-top: 4px;
}

.service-catalog-head {
  margin-bottom: 24px;
}

.service-catalog-title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}

.service-catalog-lead,
.service-catalog-tier {
  margin: 0;
  max-width: none;
}

.service-catalog-tier {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1rem;
}

.service-catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.service-filter {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 0.95rem/1 var(--sans);
  cursor: pointer;
}

.service-filter[aria-pressed="true"] {
  background: var(--ink);
  color: var(--sheet);
}

.service-catalog-group {
  margin: 0 0 14px;
}

.service-catalog-group summary.service-pill {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--sheet);
  color: var(--ink);
  font: 500 1rem/1 var(--sans);
  cursor: pointer;
  list-style: none;
}

.service-catalog-group summary.service-pill::-webkit-details-marker {
  display: none;
}

.service-catalog-group[open] > summary.service-pill {
  background: var(--ink);
  color: var(--sheet);
}

.service-catalog-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: none;
}

.service-price-rows {
  margin-top: 8px;
}

.service-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px 20px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.service-price-row:first-child {
  border-top: 0;
  padding-top: 14px;
}

.service-price-name {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

.service-price-value {
  margin: 0;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.service-price-book {
  min-height: 40px;
  padding: 0 14px;
  white-space: nowrap;
}

.service-catalog-more {
  margin: 12px 0 0;
}

.service-catalog-more a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.service-main,
.service-rest,
.facts {
  display: grid;
  gap: 28px 40px;
}

.service-main {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.service-rest {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
  align-items: stretch;
}

h2,
h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  text-wrap: balance;
}

.service-main h3 {
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.service-list {
  margin-top: 36px;
  padding: 0;
  list-style: none;
  max-width: none;
}

.service-list li {
  padding-top: 14px;
  max-width: 68ch;
}

.service-list strong {
  color: var(--ink);
  font-weight: 600;
}

.standards {
  margin-top: 28px;
  color: var(--muted);
}

.section-lead {
  margin-bottom: 28px;
}

.price h3,
.color h3,
.contacts h3 {
  margin-top: 28px;
  font-size: 1.7rem;
}

.price-group {
  border-top: 1px solid var(--line);
  padding: 14px 0 6px;
}

.price-group summary {
  cursor: pointer;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.2;
}

.price-note,
.price-source,
#rating-line,
#way-line,
#place-notes {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1rem;
}

.price-group table {
  margin-top: 8px;
}

.service-page table {
  width: 100%;
}

.service-page .price-group td {
  width: 1%;
  text-align: right;
  padding-right: 0;
}

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

.work-photos img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: var(--line);
}

.price-group td {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#rating-line a,
#site-link,
#wa-link,
#telegram-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.table-scroll {
  overflow-x: auto;
  margin: 8px 0 8px;
}

table {
  width: max-content;
  max-width: 100%;
  border-collapse: collapse;
}

table.wide {
  width: 100%;
  min-width: 640px;
}

th,
td {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}

th {
  color: var(--ink);
  font-weight: 600;
}

.price-open {
  color: var(--muted);
}

.consult p {
  margin-bottom: 22px;
}

.play {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
  align-items: start;
}

.color-kicker {
  margin-bottom: 6px;
  color: var(--muted);
}

.swatch {
  width: min(100%, 280px);
  height: 120px;
  margin: 8px 0 16px;
  border: 1px solid rgba(28, 28, 28, 0.18);
}

.nails {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.nails i {
  display: block;
  width: 26px;
  height: 46px;
  border-radius: 16px 16px 9px 9px;
}

.color article > p {
  margin-bottom: 16px;
}

.signs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.signs button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 500 0.95rem/1 var(--sans);
  cursor: pointer;
}

.signs button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--sheet);
}

.sign-result {
  margin-top: 18px;
}

.sign-swatch {
  width: 72px;
  height: 72px;
  margin-bottom: 12px;
  border: 1px solid rgba(28, 28, 28, 0.18);
}

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1.1fr);
  gap: 36px 56px;
  align-items: start;
}

.contacts-grid .button {
  margin-top: 16px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  background: var(--sheet);
  color: var(--ink);
  font: 1rem/1.4 var(--sans);
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.3rem;
  flex: none;
}

.consent label {
  font-weight: 400;
}

.consent a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.form-status {
  min-height: 1.4em;
  margin-top: 12px;
  max-width: 52ch;
}

.prose {
  padding: 28px 0 64px;
}

.prose h1 {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.1;
}

.prose h2 {
  margin-top: 28px;
  font-size: 1.55rem;
}

.prose p + p {
  margin-top: 10px;
}

.prose a,
.footer a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.section-title {
  margin-bottom: 28px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  text-wrap: balance;
}

.care-lead {
  margin-bottom: 36px;
}

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

dt {
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 600;
}

address {
  margin: 22px 0 8px;
  font-style: normal;
}

address p + p {
  margin-top: 4px;
}

#route-note {
  margin: 18px 0 22px;
  color: var(--muted);
  font-size: 1rem;
}

.phone-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 22px 0 88px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.tg-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 5;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--sheet);
  text-decoration: none;
}

.tg-float:hover {
  background: #000;
}

.tg-float svg {
  display: block;
  transform: translate(1px, 1px);
}

@media (prefers-reduced-motion: no-preference) {
  .wordmark span {
    animation: rise 0.8s ease both;
  }

  .wordmark span:nth-child(2) {
    animation-delay: 0.12s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.35em);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .hero,
  .home-split,
  .hero-note,
  .service-main,
  .play,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .service-rest {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }

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

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

  .hero {
    align-items: start;
    padding-bottom: 0;
  }

  .hero-note {
    grid-column: auto;
    padding-bottom: 40px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 32px));
  }

  html {
    scroll-padding-top: 12rem;
  }

  h1,
  h2,
  h3,
  #booking,
  #content {
    scroll-margin-top: 12rem;
  }

  .header {
    grid-template-columns: 1fr auto;
  }

  .header .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .header > .button {
    grid-column: 2;
    grid-row: 1;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .logo-lockup--header .logo-lockup__title {
    height: 26px;
  }

  .logo-lockup--hero .logo-lockup__title {
    width: min(100%, 18rem);
  }

  .service-price-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .service-price-book {
    justify-self: start;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .home-color,
  .home-works,
  .services,
  .photos-tease,
  .home-tail,
  .page {
    padding: 40px 0;
  }

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

  .gallery-grid,
  .photo-admin,
  .work-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-row {
    grid-template-columns: 1fr;
  }

  .slogan {
    font-size: 1.15rem;
  }
}
