.header__nav-link.is-current {
  color: var(--foreground);
}

.beautetech-page {
  position: relative;
  overflow: clip;
}

.beautetech-page::before,
.beautetech-page::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(72px);
  opacity: 0.65;
}

.beautetech-page::before {
  top: 10rem;
  right: -12rem;
  width: 26rem;
  height: 26rem;
  background: radial-gradient(circle, rgba(210, 196, 180, 0.45), transparent 68%);
}

.beautetech-page::after {
  bottom: 8rem;
  left: -8rem;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(160, 147, 128, 0.28), transparent 70%);
}

.section.section--tight {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.page-hero {
  padding-top: 3rem;
  padding-bottom: 1rem;
}

.page-hero__content {
  display: grid;
  gap: 1.5rem;
  align-items: end;
}

/* .page-hero__content--narrow {
  max-width: 52rem;
} */

.page-hero__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5vw, 4.1rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.page-hero__description {
  max-width: 48rem;
  margin: 1rem 0 0;
  color: var(--muted-foreground);
  font-size: 1.02rem;
  line-height: 1.75;
}

/* .page-hero__prose {
  max-width: 48rem;
} */

.page-breadcrumbs {
  margin-bottom: 1.4rem;
}

.page-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.page-breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.page-breadcrumbs__item:not(.is-current)::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(-45deg);
}

.page-breadcrumbs__item a {
  transition: color 0.2s ease;
}

.page-breadcrumbs__item a:hover {
  color: var(--foreground);
}

.service-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.service-card__cta {
  display: inline-flex;
  align-items: center;
  margin-top: 0.9rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: 2rem;
}

.page-filters__label {
  color: var(--foreground);
  font-weight: 700;
}

.page-filter,
.post-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(160, 147, 128, 0.22);
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted-foreground);
  font-size: 0.9rem;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.page-filter:hover,
.page-filter.is-active,
.post-chip:hover {
  color: var(--foreground);
  border-color: rgba(160, 147, 128, 0.42);
  background: #fff;
  transform: translateY(-1px);
}

.page-filter.is-active {
  background: linear-gradient(135deg, rgba(210, 196, 180, 0.5), rgba(160, 147, 128, 0.24));
}

.page-search-form,
.stacked-form,
.beautetech-cf7 .wpcf7-form {
  display: grid;
  gap: 0.9rem;
}

.beautetech-cf7 .wpcf7-form p,
.beautetech-cf7 .wpcf7-form label {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.beautetech-cf7 .wpcf7-form-control-wrap {
  display: block;
}

.page-search-form {
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 34rem;
}

.page-search-form input,
.stacked-form input,
.stacked-form textarea,
.beautetech-cf7 input:not([type="submit"]):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.beautetech-cf7 textarea,
.beautetech-cf7 select {
  width: 100%;
  border: 1px solid rgba(160, 147, 128, 0.24);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.86);
  color: var(--foreground);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.page-search-form input,
.stacked-form input,
.beautetech-cf7 input:not([type="submit"]):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.beautetech-cf7 select {
  min-height: 3.45rem;
  padding: 0 1.2rem;
}

.stacked-form textarea,
.beautetech-cf7 textarea {
  min-height: 10rem;
  padding: 1rem 1.2rem;
  resize: vertical;
}

.page-search-form input:focus,
.stacked-form input:focus,
.stacked-form textarea:focus,
.beautetech-cf7 input:not([type="submit"]):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.beautetech-cf7 textarea:focus,
.beautetech-cf7 select:focus {
  outline: none;
  border-color: rgba(160, 147, 128, 0.48);
  box-shadow: 0 0 0 4px rgba(160, 147, 128, 0.14);
  background: #fff;
}

.beautetech-cf7 input[type="submit"] {
  min-height: 3.45rem;
  padding: 0 1.35rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #7d5f4a, #b18a68);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.beautetech-cf7 input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(125, 95, 74, 0.18);
}

.beautetech-cf7 .wpcf7-response-output,
.beautetech-cf7 .wpcf7-not-valid-tip,
.beautetech-cf7__note {
  margin: 0;
}

.beautetech-cf7 .wpcf7-response-output {
  padding: 0.85rem 1rem;
  border-radius: 1rem;
}

.beautetech-cf7 .wpcf7-not-valid-tip {
  color: #99504d;
  font-size: 0.92rem;
}

.beautetech-cf7 .wpcf7-spinner {
  margin: 0;
}

.beautetech-cf7__note {
  color: var(--muted-foreground);
}

.plugin-placeholder {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.25rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(160, 147, 128, 0.18);
  background: rgba(255, 255, 255, 0.82);
}

.plugin-placeholder p {
  margin: 0;
  color: var(--muted-foreground);
}

.stacked-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.post-grid--compact .post-card {
  min-height: 100%;
}

.post-card {
  overflow: hidden;
  border-radius: calc(var(--radius-lg) + 0.2rem);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(160, 147, 128, 0.18);
  box-shadow: var(--shadow-card);
}

.post-card__media {
  display: block;
  overflow: hidden;
}

.post-card__media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.post-card:hover .post-card__media img {
  transform: scale(1.05);
}

.post-card__body {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
}

.post-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.post-card__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.55rem;
  line-height: 1.02;
}

.post-card__excerpt {
  margin: 0;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted-foreground);
  font-size: 0.92rem;
}

.post-card__link {
  color: var(--foreground);
  font-weight: 700;
}

.page-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.8rem;
}

.empty-state,
.prose-card,
.comments-card,
.map-card {
  border-radius: calc(var(--radius-lg) + 0.45rem);
  border: 1px solid rgba(160, 147, 128, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 243, 238, 0.92));
  box-shadow: var(--shadow-soft);
}

.empty-state {
  padding: 3rem;
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-heading);
  font-size: 2rem;
}

.empty-state p {
  margin: 0;
  color: var(--muted-foreground);
}

.article-hero,
.service-detail,
.cabinet-layout,
.contact-layout {
  display: grid;
  gap: 1.5rem;
}

.article-hero,
.service-detail {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: stretch;
}

.article-hero__content,
.service-aside__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.3rem;
  margin-bottom: 1.3rem;
  color: var(--muted-foreground);
}

.article-hero__media,
.service-aside__card,
.gallery-card {
  overflow: hidden;
  border-radius: calc(var(--radius-lg) + 0.25rem);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(160, 147, 128, 0.18);
  box-shadow: var(--shadow-card);
}

.article-hero__media img,
.service-aside__card img,
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero__media img {
  aspect-ratio: 4 / 4.2;
}

/* .article-shell {
  max-width: 58rem;
} */

.article-shell--wide {
  max-width: none;
}

.prose-card {
  padding: 2.35rem;
}

.prose-card--subtle {
  background: rgba(255, 255, 255, 0.8);
}

.prose-card > :first-child,
.prose-card__content > :first-child {
  margin-top: 0;
}

.prose-card > :last-child,
.prose-card__content > :last-child {
  margin-bottom: 0;
}

.prose-card h2,
.prose-card h3,
.comments-card h2,
.comments-card h3 {
  margin-top: 2rem;
  margin-bottom: 0.9rem;
  font-family: var(--font-heading);
  line-height: 1.05;
}

.prose-card p,
.prose-card li,
.comments-card p,
.comments-card li {
  color: var(--foreground);
  line-height: 1.8;
}

.prose-card :where(p, li, blockquote, td, th) a:not(.button):not(.wp-block-button__link) {
  border-radius: 0.22rem;
  color: #6f573f;
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-color: rgba(125, 95, 74, 0.38);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
  text-decoration-skip-ink: auto;
  background-image: linear-gradient(180deg, transparent 58%, rgba(210, 196, 180, 0.42) 0);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease,
    background-color 0.2s ease,
    background-image 0.2s ease;
}

.prose-card :where(p, li, blockquote, td, th) a:not(.button):not(.wp-block-button__link):hover {
  color: var(--foreground);
  text-decoration-color: rgba(125, 95, 74, 0.68);
  background-image: linear-gradient(180deg, transparent 48%, rgba(210, 196, 180, 0.72) 0);
}

.prose-card :where(p, li, blockquote, td, th) a:not(.button):not(.wp-block-button__link):focus-visible {
  outline: 2px solid rgba(160, 147, 128, 0.52);
  outline-offset: 0.2rem;
}

.prose-card ul,
.prose-card ol {
  padding-left: 1.2rem;
}

.prose-card table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--primary);
  border-radius: 1.1rem;
}

.prose-card table td,
.prose-card table th {
  padding: 0.95rem 1rem;
  border-right: 1px solid var(--primary)!important;
  border-bottom: 1px solid var(--primary)!important;
  text-align: left;
}

.prose-card table tr > *:last-child {
  border-right: 0;
}

.prose-card table > :last-child > tr:last-child > * {
  border-bottom: 0;
}

.prose-card blockquote {
  margin: 1.75rem 0;
  padding: 1.2rem 1.5rem;
  border-left: 4px solid rgba(160, 147, 128, 0.48);
  background: rgba(210, 196, 180, 0.2);
  border-radius: 1rem;
}

.comments-card {
  padding: 2.2rem;
}

.comments-card .commentlist,
.comments-card .wp-block-comments-pagination {
  margin-top: 1.5rem;
}

.comments-card textarea,
.comments-card input {
  width: 100%;
  min-height: 3.15rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(160, 147, 128, 0.24);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
}

.comments-card textarea {
  min-height: 10rem;
}

.comments-card .form-submit input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0 1.5rem;
  border-radius: var(--radius-pill);
  border: 0;
  color: var(--primary-foreground);
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  box-shadow: 0 18px 36px rgba(160, 147, 128, 0.28);
  cursor: pointer;
}

.contact-layout {
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
}

.contact-card--left {
  margin: 0;
  text-align: left;
}

.contact-card--left h2 {
  margin-bottom: 0.9rem;
}

.contact-card--left p {
  margin-bottom: 1.5rem;
}

.location-stack {
  display: grid;
  gap: 1.5rem;
}

.city-card {
  padding: 2.1rem;
  border-radius: calc(var(--radius-lg) + 0.45rem);
  border: 1px solid rgba(160, 147, 128, 0.18);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
  position: relative;
}

.city-card__header h2,
.service-aside__content h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1;
}

.city-card__grid,
.cabinet-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: start;
}

.prose-card, .city-card {
  background-image: url(../images/part-top-v.svg);
  background-size: cover;
  background-repeat: no-repeat;
  background-color: white;
}

.prose-card {
  background-position-y: -250px;
  background-position-x: -250px;
}

.city-card {
  background-position-y:-50px;
  background-position-x:-100px;
}

.city-card__map,
.map-card {
  overflow: hidden;
  min-height: 19rem;
}

.city-card__map .beautetech-map,
.map-card .beautetech-map {
  width: 100%;
  min-height: 19rem;
}

.city-card__map .beautetech-map > div[id^="yamap"],
.map-card .beautetech-map > div[id^="yamap"] {
  width: 100%;
  min-height: 19rem;
}

.city-card__map iframe,
.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 19rem;
  border: 0;
}

.city-card__details {
  display: grid;
  gap: 0.5rem;
}

.city-card__details--has-subscribe {
  position: relative;
  /*padding-bottom: calc(3.7rem + 1.5rem);*/
}

.city-card__subscribe {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  max-width: 100%;
}

.wp-block-gutenberg-yandex-block-map {
  border-radius: 20px;
  overflow: hidden;
}
.city-card__block h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
}

.city-card__list,
.city-card__meta {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted-foreground);
}

.city-card__empty {
  margin: 0;
  color: var(--muted-foreground);
}
.city-card__details > * {
  margin: initial;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.gallery-card {
  min-height: 0;
}

.gallery-card img {
  aspect-ratio: 4 / 3;
}

.gallery-card.is-hidden {
  display: none;
}

.gallery-grid.is-expanded .gallery-card.is-hidden {
  display: block;
}

.service-aside {
  position: relative;
}

.service-aside__card {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  display: grid;
  background: rgba(255, 255, 255, 0.94);
}

.service-aside__card img {
  aspect-ratio: 4 / 3;
}

.service-aside__content {
  gap: 1rem;
  padding: 1.4rem;
}

.service-aside__subscribe {
  align-self: flex-start;
}

.pgcsimplygalleryblock-grid-main-wrap {
  border-radius: 30px!important;
}

@media (max-width: 1080px) {
  .article-hero,
  .service-detail,
  .contact-layout,
  .cabinet-layout,
  .city-card__grid {
    grid-template-columns: 1fr;
  }

  .service-aside__card {
    position: static;
  }

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

@media (max-width: 900px) {
  .post-grid {
    grid-template-columns: 1fr;
  }

  .page-search-form {
    grid-template-columns: 1fr;
  }

  .city-card__details--has-subscribe {
    padding-bottom: calc(3.7rem + 1.5rem);
  }

  .service-aside__subscribe,
  .city-card__subscribe{
    width: 100%;
  }
}

@media (max-width: 720px) {
  .page-hero {
    padding-top: 2rem;
  }

  .section.section--tight {
    padding-bottom: 3rem;
  }

  .prose-card,
  .comments-card,
  .city-card {
    padding: 1.45rem;
  }

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

  .stacked-form__row {
    grid-template-columns: 1fr;
  }
}
