/* boger hotfix 2026-07-03 */
body.modal-open.is-scroll-locked {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
  overscroll-behavior: none;
}

html.modal-open,
body.modal-open.is-scroll-locked {
  overscroll-behavior: none;
}

.master-modal[open],
.product-modal[open] {
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.master-modal-body,
.product-modal-body {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 760px) {
  .master-modal {
    width: min(100% - 20px, 520px);
    max-height: calc(100dvh - 20px);
    overflow: auto;
  }
}

.before-after,
.before-after * {
  -webkit-user-select: none;
  user-select: none;
}

.before-after {
  touch-action: none;
}

.before-after::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--before-after-position, 50%) - 32px);
  width: 64px;
  pointer-events: none;
}

@media (pointer: coarse) {
  .before-after::after {
    left: calc(var(--before-after-position, 50%) - 44px);
    width: 88px;
  }
}

@media (max-width: 760px) {
  section[id] {
    scroll-margin-top: 86px;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 90;
  }

  .services-section .tabs[data-service-tabs],
  .shop-section .tabs[data-product-tabs] {
    position: sticky;
    top: 76px;
    z-index: 35;
    margin-inline: -16px;
    padding: 8px 16px;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    border-block: 1px solid var(--line);
    backdrop-filter: blur(16px);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .services-section .tabs[data-service-tabs] {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .shop-section .tabs[data-product-tabs] {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .services-section .tabs[data-service-tabs]::-webkit-scrollbar,
  .shop-section .tabs[data-product-tabs]::-webkit-scrollbar {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
  }

  .product-card img {
    aspect-ratio: 1 / 1;
    height: auto;
  }

  .product-card-copy {
    padding: 14px;
  }

  .product-card-copy h3 {
    font-size: clamp(18px, 5vw, 22px);
    line-height: 1.02;
  }

  .product-card-copy p {
    display: none;
  }

  .product-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 12px;
  }

  .product-card-bottom .button {
    min-width: 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
  }

  .product-card-bottom .button::before {
    content: "+";
    font-size: 26px;
    line-height: 1;
  }

  .delivery-address-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    gap: 14px;
  }

  .footer-logo {
    order: -1;
    justify-self: center;
  }

  .footer-contact {
    justify-self: center;
    text-align: center;
  }
}

/* final mobile and portfolio fixes 2026-07-05 */
.portfolio-body {
  overflow-x: hidden;
}

.portfolio-hero {
  overflow: hidden;
}

.portfolio-filters {
  max-width: 100%;
}

.master-service-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px 12px;
}

.master-service-name {
  min-width: 0;
}

.master-service-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.master-service-price,
.service-price,
.product-price,
.order-total,
.cart-total {
  white-space: nowrap;
}

.reviews-section {
  display: grid;
  gap: 28px;
  padding-block: clamp(72px, 9vw, 132px);
}

.reviews-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
}

.reviews-rating-card {
  display: grid;
  min-width: 220px;
  gap: 4px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  box-shadow: var(--shadow-soft);
}

.reviews-rating-card span,
.review-source {
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.reviews-rating-card strong {
  color: var(--title);
  font-family: var(--font-title);
  font-size: clamp(42px, 5vw, 72px);
  line-height: .9;
}

.reviews-rating-card em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

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

.review-card {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: var(--shadow-soft);
}

.review-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.review-card h3 {
  margin: 6px 0 0;
  color: var(--title);
  font-family: var(--font-title);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1;
}

.review-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.review-stars {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 16px;
  letter-spacing: .06em;
  white-space: nowrap;
}

.review-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
}

.review-card-foot time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.review-card-foot .button {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

.reviews-actions {
  display: flex;
  justify-content: center;
}



@media (max-width: 780px) {
  :root {
    --header-height: 88px;
  }

  html {
    scroll-padding-top: calc(var(--header-height) + 12px);
  }

  body {
    padding-top: var(--header-height);
  }

  body.modal-open {
    overflow: hidden;
  }

  .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 90;
  }

  .header-inner {
    min-height: var(--header-height);
  }

  section[id],
  #top {
    scroll-margin-top: calc(var(--header-height) + 14px);
  }

  .mobile-menu {
    top: calc(var(--header-height) + 10px);
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    right: auto;
    width: min(360px, calc(100% - 22px));
    max-height: calc(100dvh - var(--header-height) - 20px);
    padding: 14px;
    border-radius: 24px;
    gap: 12px;
  }

  .mobile-menu-head {
    grid-template-columns: 1fr 38px;
    padding-bottom: 10px;
  }

  .mobile-menu-logo {
    width: 136px;
  }

  .mobile-menu-links {
    gap: 7px;
  }

  .mobile-menu-links a {
    min-height: 40px;
    padding-inline: 14px;
    font-size: 18px;
    line-height: 1.1;
  }

  .mobile-menu-contacts {
    padding: 12px;
  }

  .hero-full {
    background: var(--block-light-bg, var(--bg));
  }

  .hero-has-media .hero-video-bg {
    background: var(--bg);
  }

  .portfolio-page {
    padding-inline: 14px;
  }

  .reviews-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .reviews-rating-card {
    min-width: 0;
  }

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

  .review-card {
    min-height: auto;
    padding: 22px;
    border-radius: 24px;
  }

  .review-card-head,
  .review-card-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .portfolio-hero {
    padding: 22px;
    border-radius: 26px;
  }

  .portfolio-hero .section-head h1 {
    font-size: clamp(40px, 13vw, 64px);
    line-height: .95;
    overflow-wrap: anywhere;
  }

  .portfolio-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    max-width: none;
    margin-inline: -22px;
    padding: 0 22px 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .portfolio-filters::-webkit-scrollbar {
    display: none;
  }

  .portfolio-filters button {
    flex: 0 0 auto;
  }

  .team-slider {
    scroll-snap-type: x mandatory;
  }

  .team-slider .master-card {
    flex: 0 0 min(78vw, 330px);
    min-width: min(78vw, 330px);
    min-height: auto;
  }

  .master-card img,
  .master-photo-placeholder {
    height: clamp(230px, 58vw, 300px);
  }

  .master-card-body {
    min-height: auto;
    padding: 20px;
    gap: 12px;
  }

  .master-card-body > p:not(.kicker) {
    display: none;
  }

  .master-card ul {
    display: grid;
    gap: 8px;
    padding-left: 0;
    list-style: none;
    font-size: clamp(15px, 4.2vw, 18px);
    line-height: 1.3;
  }

  .master-service-line {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .master-service-meta {
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .master-booking {
    width: min(100%, 220px);
    margin-top: auto;
  }

  .before-after {
    touch-action: none;
  }

  .before-after input {
    pointer-events: auto;
    touch-action: none;
  }

  .work-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 26px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .45s ease;
}

.works-grid article:hover .work-media img {
  transform: scale(1.04);
}

@media (max-width: 780px) {
  .work-media {
    aspect-ratio: 4 / 5;
  }
}

  .footer {
    justify-items: center;
    text-align: center;
    padding-bottom: 104px;
  }

  .footer-logo {
    justify-self: center;
    margin-inline: auto;
  }

  .footer-logo img {
    margin-inline: auto;
  }

  .footer-dev {
    justify-self: center;
    margin-bottom: 72px;
    font-size: clamp(17px, 5vw, 22px);
    white-space: normal;
  }

  .floating-booking {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
  }
}

/* Mobile footer compact hotfix 2026-07-06 */
@media (max-width: 767px) {
  .site-footer,
  .footer,
  footer.site-footer {
    min-height: 0 !important;
    height: auto !important;
    padding-top: 24px !important;
    padding-bottom: calc(94px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .site-footer .container,
  .site-footer__inner,
  .footer-inner,
  .footer-content,
  .site-footer__content {
    min-height: 0 !important;
    gap: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
  }

  .site-footer img,
  .site-footer__logo img,
  .footer-logo img,
  .site-footer .brand-logo {
    max-width: 156px !important;
    width: min(42vw, 156px) !important;
    height: auto !important;
  }

  .site-footer address,
  .site-footer .footer-address,
  .site-footer .footer-contacts,
  .site-footer .footer-contact,
  .site-footer .footer-phone {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.28 !important;
  }

  .site-footer .social-links,
  .site-footer .footer-socials,
  .site-footer .social-list {
    margin-top: 4px !important;
    gap: 8px !important;
  }

  .site-footer .developer-link,
  .site-footer a[href*="m0r64n4"],
  .site-footer a[href*="m0r64n4.ru"],
  .site-footer .footer-developer,
  .site-footer .developer-credit {
    font-size: 13px !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    text-align: center !important;
  }

  .site-footer .footer-developer,
  .site-footer .developer-credit {
    margin-top: 8px !important;
  }

  .floating-booking {
    right: max(16px, env(safe-area-inset-right, 0px)) !important;
    bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;
    min-width: 0 !important;
    min-height: 50px !important;
    padding: 13px 24px !important;
    font-size: 16px !important;
    line-height: 1 !important;
  }
}

/* Mobile footer compact hard fix 2026-07-06 */
@media (max-width: 767px) {
  body footer,
  body .site-footer,
  body footer.site-footer {
    min-height: 0 !important;
    height: auto !important;
    padding: 18px 18px calc(118px + env(safe-area-inset-bottom, 0px)) !important;
    margin: 0 !important;
  }

  body footer *,
  body .site-footer * {
    box-sizing: border-box;
  }

  body footer > *,
  body .site-footer > *,
  body footer .container,
  body .site-footer .container,
  body footer [class*="inner"],
  body footer [class*="content"],
  body .site-footer [class*="inner"],
  body .site-footer [class*="content"] {
    min-height: 0 !important;
    height: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    gap: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
  }

  body footer img,
  body .site-footer img {
    max-width: 138px !important;
    width: min(38vw, 138px) !important;
    height: auto !important;
    margin: 0 auto 6px !important;
  }

  body footer address,
  body footer [class*="address"],
  body footer [class*="contact"],
  body footer [class*="phone"],
  body .site-footer address,
  body .site-footer [class*="address"],
  body .site-footer [class*="contact"],
  body .site-footer [class*="phone"] {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.22 !important;
  }

  body footer [class*="social"],
  body .site-footer [class*="social"] {
    margin: 6px 0 0 !important;
    gap: 8px !important;
  }

  body footer a[href*="m0r64n4"],
  body footer a[href*="m0r64n4.ru"],
  body footer .developer-link,
  body footer [class*="developer"],
  body .site-footer a[href*="m0r64n4"],
  body .site-footer a[href*="m0r64n4.ru"],
  body .site-footer .developer-link,
  body .site-footer [class*="developer"] {
    display: inline-block !important;
    max-width: calc(100vw - 44px) !important;
    margin: 8px auto 0 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  body .floating-booking {
    right: max(16px, env(safe-area-inset-right, 0px)) !important;
    bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;
    min-width: 0 !important;
    min-height: 48px !important;
    padding: 13px 24px !important;
    border-radius: 999px !important;
    font-size: 16px !important;
    line-height: 1 !important;
  }
}

/* CKEditor heading render fix 2026-07-06 */
.kicker p,
.section-kicker p,
.section-head p,
.section-title p,
.section-subtitle p,
.page-title p,
.hero-title p,
.hero-kicker p,
.hero-text p,
h1 p,
h2 p,
h3 p {
  display: inline;
  margin: 0;
}

.section-description p,
.block-description p {
  margin-top: 0;
}

.section-description p:last-child,
.block-description p:last-child,
.hero-text p:last-child {
  margin-bottom: 0;
}

/* PageBlock CKEditor render fix 2026-07-06 */
.kicker p,
.section-head h2 p,
.section-head .desktop-copy p,
.section-head .mobile-copy p,
.reviews-head h2 p,
.contacts-copy .kicker p,
.shop-section .kicker p,
.shop-section h2 p {
  display: inline;
  margin: 0;
}

.section-head .desktop-copy > p:only-child,
.section-head .mobile-copy > p:only-child,
.kicker > p:only-child {
  display: inline;
}

/* CKEditor font size and product plus fix 2026-07-06 */
/* CKEditor must be able to control font size inside editable headings/texts. */
.themed-block .section-head h1 span[style*="font-size"],
.themed-block .section-head h2 span[style*="font-size"],
.themed-block .section-head h3 span[style*="font-size"],
.themed-block .section-head p span[style*="font-size"],
.themed-block .kicker span[style*="font-size"],
.hero-copy span[style*="font-size"],
.hero-copy p span[style*="font-size"] {
  font-size: inherit;
}

.themed-block .text-tiny,
.hero-copy .text-tiny {
  font-size: .7em !important;
}

.themed-block .text-small,
.hero-copy .text-small {
  font-size: .85em !important;
}

.themed-block .text-big,
.hero-copy .text-big {
  font-size: 1.4em !important;
}

.themed-block .text-huge,
.hero-copy .text-huge {
  font-size: 1.8em !important;
}

.themed-block [class*="text-tiny"],
.hero-copy [class*="text-tiny"] {
  font-size: .7em !important;
}

.themed-block [class*="text-small"],
.hero-copy [class*="text-small"] {
  font-size: .85em !important;
}

.themed-block [class*="text-big"],
.hero-copy [class*="text-big"] {
  font-size: 1.4em !important;
}

.themed-block [class*="text-huge"],
.hero-copy [class*="text-huge"] {
  font-size: 1.8em !important;
}

/* Round product/cart controls: keep the symbol visually centered. */
.product-card-bottom .button,
.product-modal-buy .button,
.cart-qty button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
}

.product-card-bottom .button::before {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  height: 100%;
  line-height: 1 !important;
  transform: translateY(-1px);
}

.cart-qty button {
  padding: 0 !important;
  font-family: var(--font-sans) !important;
  font-size: 18px !important;
}

/* Mobile cart modal scroll fix 2026-07-06 */
.cart-drawer {
  z-index: 240;
}

.cart-drawer.open {
  pointer-events: auto;
}

.cart-body {
  min-height: 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
  .cart-drawer {
    top: auto;
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    left: max(10px, env(safe-area-inset-left, 0px));
    width: auto;
    max-width: none;
    height: auto;
    max-height: min(82dvh, calc(100dvh - 24px));
    border-radius: 26px;
    transform: translate3d(0, calc(100% + 24px), 0);
    overflow: hidden;
  }

  .cart-drawer.open {
    transform: translate3d(0, 0, 0);
  }

  .cart-head {
    flex: 0 0 auto;
    align-items: center;
    padding: 16px 18px 12px;
  }

  .cart-head h2 {
    font-size: clamp(30px, 9vw, 42px);
    line-height: .95;
  }

  .cart-body {
    flex: 1 1 auto;
    max-height: calc(min(82dvh, calc(100dvh - 24px)) - 78px);
    padding: 14px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    touch-action: pan-y;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-item-controls {
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: space-between;
    justify-items: stretch;
  }

  .cart-total {
    position: sticky;
    top: -14px;
    z-index: 2;
    background: var(--bg-soft);
  }
}


/* SEO service pages 2026-07-06 */
.service-page {
  background: var(--bg);
  color: var(--text);
}

.service-page .site-header {
  position: relative;
}

.service-seo {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 130px) 0;
}

.service-seo-hero,
.service-seo-content {
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  border-radius: 32px;
  background: color-mix(in srgb, var(--bg-soft) 92%, transparent);
  box-shadow: 0 28px 90px color-mix(in srgb, var(--text) 10%, transparent);
}

.service-seo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .75fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(28px, 5vw, 70px);
}

.service-seo-hero h1 {
  max-width: 850px;
  margin: 14px 0 20px;
  font-family: var(--serif);
  font-size: clamp(46px, 7vw, 112px);
  line-height: .9;
  letter-spacing: 0;
}

.service-seo-hero .lead {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.service-seo-hero img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 28px;
}

.service-seo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
}

.service-seo-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid color-mix(in srgb, var(--gold) 42%, transparent);
  border-radius: 999px;
  color: var(--gold-dark);
  background: color-mix(in srgb, var(--bg-soft) 72%, transparent);
  font-weight: 800;
}

.service-seo-content {
  margin-top: 24px;
  padding: clamp(24px, 4vw, 52px);
}

.service-seo-content h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 58px);
  line-height: .98;
}

.service-seo-content p,
.service-seo-content li {
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.service-seo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.service-seo-list article {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 58%, transparent);
}

.service-seo-list a,
.service-seo-list strong {
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.service-seo-list span {
  color: var(--muted);
}

@media (max-width: 760px) {
  .service-seo {
    width: min(100% - 28px, 460px);
    padding: 34px 0 72px;
  }

  .service-seo-hero {
    grid-template-columns: 1fr;
    padding: 24px;
    border-radius: 26px;
  }

  .service-seo-hero h1 {
    font-size: clamp(42px, 15vw, 68px);
  }

  .service-seo-hero img {
    order: -1;
    aspect-ratio: 1 / 1;
    border-radius: 22px;
  }

  .service-seo-content {
    border-radius: 24px;
  }
}

/* Legal pages and personal data consent modal 2026-07-07 */
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
}

.footer .footer-legal-links a {
  justify-self: center;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

.legal-body {
  min-height: 100vh;
}

.legal-page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) 0;
}

.legal-back {
  margin-bottom: 18px;
}

.legal-card {
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.legal-card h1 {
  margin-bottom: 22px;
  font-size: clamp(38px, 6vw, 72px);
}

.legal-card h2 {
  margin: 32px 0 12px;
  font-size: clamp(25px, 3.6vw, 38px);
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.pd-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(8px);
}

.pd-consent-modal[hidden] {
  display: none !important;
}

.pd-consent-card {
  width: min(640px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 30px;
  color: var(--text);
  background: var(--bg-soft);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .35);
}

.pd-consent-card h2 {
  font-size: clamp(30px, 5vw, 48px);
}

.pd-consent-card p {
  margin: 14px 0 0;
}

.pd-consent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.pd-consent-links a {
  color: var(--gold-dark);
  font-weight: 900;
}

.pd-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 780px) {
  .footer-legal-links {
    display: grid;
    gap: 6px;
    font-size: 13px;
  }

  .pd-consent-actions .button {
    width: 100%;
  }
}

/* Mobile performance stabilization */
@media (max-width: 768px) {
  html {
    scroll-behavior: auto;
  }

  body {
    text-rendering: optimizeSpeed;
  }

  [data-reveal],
  .reveal,
  .is-revealed {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .page-section,
  .section,
  .portfolio-section,
  .products-section,
  .reviews-section,
  .contacts-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
  }

  .team-slider,
  .care-grid,
  .works-grid,
  .reels-grid {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  .team-card,
  .service-card,
  .care-card,
  .product-card,
  .gallery-card,
  .work-card {
    will-change: auto !important;
  }

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

/* Compact services and care modal */
.card-short-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 14px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  cursor: pointer;
}

.card-more-button:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.service-table article {
  cursor: pointer;
}

.service-card-kicker {
  margin-bottom: 6px;
}

.service-more-button {
  justify-self: end;
}

/* Service detail modal — stable layout */
.service-detail-modal {
  width: min(720px, calc(100% - 32px));
  max-height: min(860px, calc(100vh - 32px));
  padding: 0;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .34);
  overflow: hidden;
  overscroll-behavior: contain;
}

.service-detail-modal[open] {
  display: flex;
  flex-direction: column;
}

.service-detail-modal::backdrop {
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(6px);
}

.service-detail-modal-head {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 26px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-soft) 92%, transparent);
}

.service-detail-modal-head .kicker {
  margin-bottom: 10px;
}

.service-detail-modal-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: .92;
  letter-spacing: -0.055em;
}

.service-detail-modal-body {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  flex: 1 1 auto;
  min-height: 0;
  gap: 22px;
  padding: 26px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.service-detail-modal-body p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.75;
}

.service-detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.service-detail-meta span {
  color: var(--muted);
}

.service-detail-booking {
  width: 100%;
  min-height: 54px;
  height: auto;
  align-self: start;
  padding-top: 16px;
  padding-bottom: 16px;
}

@media (max-width: 768px) {
  .service-table {
    border-radius: 24px;
  }

  .service-table article {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .service-table article > span,
  .service-table article > strong,
  .service-more-button {
    justify-self: start;
    text-align: left;
  }

  .care-grid article {
    cursor: pointer;
  }

  .service-detail-modal {
    width: calc(100% - 12px);
    height: auto;
    max-height: calc(100svh - 12px);
    margin: auto;
    border-radius: 24px;
  }

  .service-detail-modal::backdrop {
    backdrop-filter: none;
  }

  .service-detail-modal-head {
    padding: 18px 16px;
  }

  .service-detail-modal-head h2 {
    font-size: 32px;
  }

  .service-detail-modal-body {
    gap: 18px;
    padding: 20px 16px calc(28px + env(safe-area-inset-bottom, 0px));
    touch-action: pan-y;
  }

  .service-detail-meta {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 16px;
  }
}

/* Final services and care polish */
.service-table {
  overflow: hidden;
}

.service-table article {
  position: relative;
  align-items: center;
  gap: 18px;
}

.service-table article h3,
.care-card-copy h3 {
  letter-spacing: -0.03em;
}

.service-table article .card-short-text,
.care-card-copy .card-short-text {
  max-width: 680px;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.card-more-button {
  min-width: 128px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition:
    transform .2s ease,
    border-color .2s ease,
    color .2s ease,
    background .2s ease;
}

.card-more-button::after {
  content: "→";
  margin-left: 8px;
  font-size: 15px;
  line-height: 1;
}

.card-more-button:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
}

.service-table article > strong {
  white-space: nowrap;
  font-size: clamp(18px, 2vw, 24px);
}

.service-table article > span {
  white-space: nowrap;
  color: var(--muted);
}

.care-card {
  height: 100%;
}

.care-card-media {
  overflow: hidden;
}

.care-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.care-card-copy {
  min-height: 230px;
}

.care-card-bottom {
  margin-top: auto;
}


@media (max-width: 768px) {
  .service-table article {
    gap: 12px;
  }

  .service-table article h3 {
    font-size: 22px;
    line-height: 1.05;
  }

  .service-table article .card-short-text,
  .care-card-copy .card-short-text {
    -webkit-line-clamp: 2;
    font-size: 14px;
  }

  .service-table article > span {
    font-size: 13px;
  }

  .service-table article > strong {
    font-size: 20px;
  }

  .card-more-button {
    min-height: 36px;
    min-width: 0;
    padding: 0 14px;
    font-size: 11px;
  }

  .care-card-copy {
    min-height: 210px;
  }

}

/* Mobile repair: horizontal sliders and compact cards */
@media (max-width: 768px) {
  .features-section,
  .care-section,
  .reels-section {
    overflow: hidden;
  }

  .features-grid,
  .care-grid,
  .reels-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 14px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 18px 14px 18px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-left: 18px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .features-grid::-webkit-scrollbar,
  .care-grid::-webkit-scrollbar,
  .reels-grid::-webkit-scrollbar {
    display: none !important;
  }

  .features-grid .feature-card {
    flex: 0 0 min(82vw, 350px) !important;
    min-width: min(82vw, 350px) !important;
    min-height: 250px !important;
    scroll-snap-align: start !important;
  }

  .features-grid .feature-card > span,
  .feature-media span {
    display: none !important;
  }

  .feature-card {
    padding: 24px !important;
  }

  .feature-card h3 {
    font-size: 34px;
    line-height: .95;
  }

  .feature-card p {
    font-size: 17px;
    line-height: 1.6;
  }

  .care-grid article {
    flex: 0 0 min(84vw, 360px) !important;
    min-width: min(84vw, 360px) !important;
    max-width: min(84vw, 360px) !important;
    min-height: 430px !important;
    scroll-snap-align: start !important;
  }

  .care-card-media {
    display: grid !important;
    height: 150px !important;
    background:
      radial-gradient(circle at 50% 48%, rgba(224, 180, 98, .24), transparent 34%),
      linear-gradient(135deg, rgba(255, 250, 241, .86), rgba(226, 215, 198, .54)) !important;
  }

  .care-card-media span {
    display: none !important;
  }

  .care-card-copy {
    min-height: 260px !important;
    padding: 22px !important;
  }

  .care-card-copy > .kicker,
  .service-card-kicker {
    display: none !important;
  }

  .care-card-copy h3 {
    font-size: 31px !important;
    line-height: .95 !important;
    margin: 0 0 12px !important;
  }

  .care-card-copy .card-short-text {
    -webkit-line-clamp: 3 !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
    margin-bottom: 18px !important;
  }

  .care-card-bottom {
    margin-top: auto !important;
  }

  .care-card-bottom strong {
    font-size: 24px !important;
  }

  .care-grid .card-more-button {
    width: 100% !important;
    margin-top: 16px !important;
  }

  .service-table article h3 {
    margin-top: 0 !important;
  }

  .reels-grid .reel-card {
    flex: 0 0 min(72vw, 310px) !important;
    min-width: min(72vw, 310px) !important;
    max-width: min(72vw, 310px) !important;
    scroll-snap-align: start !important;
  }

  .reel-frame {
    aspect-ratio: 9 / 16 !important;
    min-height: 0 !important;
  }

  .reel-frame iframe,
  .reel-frame video,
  .reel-frame img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border: 0 !important;
    object-fit: cover !important;
  }

  .reel-load-button {
    display: none !important;
  }

  .reel-card h3 {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .features-grid,
  .care-grid,
  .reels-grid {
    padding-left: 16px !important;
    padding-right: 16px !important;
    scroll-padding-left: 16px !important;
  }

  .features-grid .feature-card,
  .care-grid article {
    flex-basis: min(84vw, 350px) !important;
    min-width: min(84vw, 350px) !important;
  }

  .reels-grid .reel-card {
    flex-basis: min(74vw, 300px) !important;
    min-width: min(74vw, 300px) !important;
  }
}

/* Master booking click fix */
.master-card-actions,
.master-booking {
  position: relative;
  z-index: 20;
  pointer-events: auto;
}

.master-card.is-dragging .master-booking,
.team-slider.is-dragging .master-booking {
  pointer-events: auto;
}

/* Mobile master slider performance */
@media (max-width: 768px) {
  .team-slider {
    cursor: auto !important;
    user-select: auto !important;
    touch-action: pan-x pan-y !important;
    will-change: auto !important;
    scroll-snap-type: x proximity !important;
    scroll-behavior: auto !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .team-slider.is-dragging {
    cursor: auto !important;
    scroll-snap-type: x proximity !important;
  }

  .master-card {
    transition: none !important;
    transform: none !important;
    box-shadow: 0 14px 42px rgba(73, 49, 26, .12) !important;
  }

  .master-card:hover {
    transform: none !important;
    box-shadow: 0 14px 42px rgba(73, 49, 26, .12) !important;
  }

  .master-card,
  .master-card img,
  .master-photo-placeholder {
    will-change: auto !important;
  }

  .master-card,
  .master-modal,
  .product-modal,
  .service-detail-modal {
    backdrop-filter: none !important;
  }

  .team-slider .master-card {
    flex: 0 0 min(82vw, 340px) !important;
    min-width: min(82vw, 340px) !important;
    max-width: min(82vw, 340px) !important;
  }

  .slider-arrow {
    display: none !important;
  }
}

/* Hero logo image */
.hero-brand {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: clamp(16px, 2.2vw, 28px) auto clamp(18px, 2.6vw, 34px);
  line-height: 0;
}

.hero .hero-brand-mark,
.hero-brand-mark {
  display: block;
  width: clamp(220px, 28vw, 390px) !important;
  max-width: 72vw !important;
  max-height: 220px !important;
  height: auto !important;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .35));
}

@media (max-width: 760px) {
  .hero-brand {
    margin: 16px auto 22px;
  }

  .hero .hero-brand-mark,
  .hero-brand-mark {
    width: clamp(190px, 68vw, 290px) !important;
    max-height: 145px !important;
  }
}


/* Hero logo hard size fix */
.hero-full .hero-content .hero-brand,
.hero-full .hero-content .hero-title {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.hero-full .hero-content .hero-brand img,
.hero-full .hero-content .hero-brand-mark,
.hero-full .hero-content .hero-title img,
.hero-full .hero-content .hero-title figure,
.hero-full .hero-content .hero-title .image {
  width: min(340px, 30vw) !important;
  max-width: min(340px, 70vw) !important;
  height: auto !important;
  max-height: 210px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  object-fit: contain !important;
}

.hero-full .hero-content .hero-title figure img,
.hero-full .hero-content .hero-title .image img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

.hero-actions {
  margin-top: 24px;
}

@media (max-width: 760px) {
  .hero-full .hero-content .hero-brand img,
  .hero-full .hero-content .hero-brand-mark,
  .hero-full .hero-content .hero-title img,
  .hero-full .hero-content .hero-title figure,
  .hero-full .hero-content .hero-title .image {
    width: min(250px, 68vw) !important;
    max-width: min(250px, 68vw) !important;
    max-height: 145px !important;
  }

  .hero-actions {
    margin-top: 20px;
  }
}

.services-more-wrap {
  display: flex;
  justify-content: center;
  padding: 24px 18px 4px;
}

.services-show-more {
  min-width: 210px;
}

.services-show-more[hidden] {
  display: none !important;
}

/* Mobile master modal stable layout */
@media (max-width: 768px) {
  .master-modal[open] {
    display: flex !important;
    flex-direction: column !important;
  }

  .master-modal {
    width: calc(100% - 12px) !important;
    height: calc(100svh - 12px) !important;
    max-height: calc(100svh - 12px) !important;
    margin: 6px auto 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 24px 24px 0 0 !important;
  }

  .master-modal-head {
    flex: 0 0 auto !important;
    padding: 18px 16px !important;
    background: var(--bg-soft) !important;
    border-bottom: 1px solid var(--line) !important;
    backdrop-filter: none !important;
  }

  .master-modal-head h2 {
    font-size: clamp(38px, 10vw, 56px) !important;
    line-height: .92 !important;
  }

  .master-modal-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;

    display: block !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;

    padding: 0 16px calc(96px + env(safe-area-inset-bottom, 0px)) !important;

    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
  }

  .master-modal-gallery {
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    margin: 0 0 20px !important;
    padding: 0 0 14px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .master-modal-gallery figure {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    background: #0f0d0b !important;
    scroll-snap-align: start !important;
  }

  .master-modal-gallery img {
    width: 100% !important;
    height: auto !important;
    max-height: 42svh !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #0f0d0b !important;
  }

  .master-modal-copy {
    display: block !important;
    padding-bottom: 0 !important;
  }

  .master-modal-copy p {
    margin: 0 0 18px !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  .master-modal-copy h3 {
    margin: 22px 0 14px !important;
    font-size: 34px !important;
    line-height: .95 !important;
  }

  .master-modal-copy ul {
    display: grid !important;
    gap: 10px !important;
    margin: 0 0 22px !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .master-modal-copy li {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 12px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid var(--line) !important;
  }

  .master-modal-booking {
    position: static !important;
    display: flex !important;
    width: 100% !important;
    min-height: 54px !important;
    margin: 22px 0 0 !important;
    z-index: auto !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18) !important;
  }
}

/* Reels deferred iframe loading */
.reel-lazy-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fffaf1;
  background:
    radial-gradient(circle at 50% 38%, rgba(185, 133, 45, .2), transparent 36%),
    #17120f;
}

.reel-lazy-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-lazy-placeholder span {
  padding: 22px;
  font-weight: 700;
  text-align: center;
}

.reel-frame [data-reel-iframe] {
  position: relative;
  z-index: 2;
  display: block;
}

.reel-frame [data-reel-iframe][hidden] {
  display: none;
}

/* Mobile menu scroll containment */
html.modal-open,
body.modal-open.is-scroll-locked,
body.menu-open {
  overscroll-behavior: none;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

.mobile-menu {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.page-shade.open {
  touch-action: none;
  overscroll-behavior: none;
}

/* Mobile menu isolated scrolling */
body.menu-open.is-scroll-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

.mobile-menu.open {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
  touch-action: none;
  -webkit-overflow-scrolling: auto;
}

.page-shade.open {
  overscroll-behavior: none;
  touch-action: none;
}


/* FINAL HERO VIDEO + CAPITAL TOP FIX 2026-07-31 */

/*
 * Hero video:
 * native autoplay only, no deferred opacity logic.
 */
@media (min-width: 769px) {
  .hero-video-bg video {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;

    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
    object-position: center !important;
  }
}

/*
 * Mobile keeps video hidden if that behavior already existed.
 */
@media (max-width: 768px) {
  .hero-video-bg video {
    display: none !important;
  }
}

/*
 * Capitals must start exactly from the top edge of the site.
 *
 * IMPORTANT:
 * Only top position of the capitals is changed.
 * Shaft geometry, footer connection, width and horizontal position
 * remain untouched.
 */
@media (min-width: 1121px) {
  .site-header::before,
  .site-header::after {
    top: 0 !important;
    margin-top: 0 !important;
  }
}


/* FINAL COLUMN STACK + CAP CROP FIX 2026-07-31 */

/*
 * Шахты колонн — декоративный фон.
 *
 * В базовом CSS:
 *   main = z-index: 3
 *   shafts = z-index: 7
 *
 * Поэтому колонны перекрывали текст, фото, рилсы и карту.
 * Опускаем только шахты ниже main.
 *
 * Footer и его собственные основания колонн НЕ трогаем.
 */
@media (min-width: 1121px) {
  .site-column-shafts {
    z-index: 2 !important;
    pointer-events: none !important;
  }
}


/*
 * Капитель уже имела top: 0.
 * Видимый зазор создаёт прозрачный верх самого PNG.
 *
 * Поэтому не двигаем всю колонну и не меняем её нижний стык.
 *
 * Поднимаем контейнер капители на 24px,
 * одновременно увеличивая его высоту на те же 24px.
 *
 * Итог:
 * - прозрачный верх PNG уходит за пределы viewport;
 * - видимая часть капители начинается от верхнего края;
 * - нижняя точка капители остаётся на прежнем месте;
 * - соединение с шахтой не меняется.
 */
@media (min-width: 1121px) {
  .site-header::before,
  .site-header::after {
    top: -24px !important;
    height: calc(var(--header-height) + 24px) !important;
    margin: 0 !important;
  }

  /*
   * Не допускаем старых translateY после предыдущих патчей.
   */
  .site-header::before {
    transform: none !important;
  }

  .site-header::after {
    transform: scaleX(-1) !important;
  }
}


/* CAPITAL EXACT TOP ALIGNMENT 2026-07-31 */

@media (min-width: 1121px) {
  /*
   * Капитель занимает всю высоту header:
   * верх изображения = верх сайта,
   * низ изображения = прежний стык с шахтой.
   */
  .site-header::before,
  .site-header::after {
    top: 0 !important;
    height: var(--header-height) !important;
    margin: 0 !important;

    background-position: center top !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
  }

  .site-header::before {
    transform: none !important;
  }

  .site-header::after {
    transform: scaleX(-1) !important;
  }

  /*
   * Колонны остаются декоративным слоем,
   * а не перекрывают содержимое сайта.
   */
  .site-column-shafts {
    z-index: 2 !important;
    pointer-events: none !important;
  }
}


/* WHY BOGER MOBILE CARD PEEK 2026-07-31 */
@media (max-width: 768px) {
  #about .feature-card {
    flex: 0 0 84% !important;
    width: 84% !important;
    min-width: 84% !important;
    max-width: 84% !important;
  }
}
