@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ptserif-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ptserif-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: dark;
  --ink: #181816;
  --panel: #201d19;
  --field: #24201b;
  --line: #40382e;
  --text: #f6f0e6;
  --quiet: #cfc5b5;
  --gold: #d6b685;
  --action-gold: #ddbf91;
  --action-gold-hover: #ecd2ad;
  --action-gold-text: #261d13;
  --whatsapp: #344b42;
  --whatsapp-hover: #405c50;
  --photo: #d2cec6;
  --stone-backdrop: #fff;
  --stone-shadow: drop-shadow(0 3px 2px #211b1755) drop-shadow(5px 9px 7px #211b174d);
  --font-body: "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "PT Serif", Georgia, "Times New Roman", serif;
  font-family: var(--font-body);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--text); font-size: 1rem; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1480px, calc(100% - 112px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 5; top: .5rem; left: .5rem; padding: .7rem; background: var(--ink); }
.site-header { position: relative; border-bottom: 1px solid #5a4a38; background: linear-gradient(180deg, #2b241c, #1b1815 84%); }
.header-brand-row { padding-block: 9px 8px; }
.header-brand-row { padding-block: 9px 8px; }
.header-city-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; padding-block: 6px; border-top: 1px solid #3f342a; }
.header-nav-row { display: flex; align-items: center; justify-content: center; gap: 10px 18px; padding-block: 5px 7px; border-top: 1px solid #3f342a; }
.header-location { display: flex; align-items: center; gap: 8px; color: var(--quiet); font-size: .875rem; }
.header-location select { padding: 6px 9px; border: 1px solid #68513a; border-radius: 5px; background: #32281f; color: var(--text); font: inherit; min-height: 36px; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.header-call { min-height: 38px; padding: 6px 14px; border-radius: 8px; font-size: .9375rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.header-messengers { display: flex; gap: 8px; }
.header-messengers a { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ffffff4d; border-radius: 12px; color: #fff; box-shadow: inset 0 1px 1px #ffffff50, 0 3px 8px #0007; }
.header-messengers a::after { content: ""; position: absolute; inset: -4px; }
.header-messengers svg { display: block; width: 25px; height: 25px; fill: currentColor; }
#header-max, #help-max { background: linear-gradient(145deg, #276bff, #7831cf); }
#header-telegram, #help-telegram { background: linear-gradient(145deg, #37baf5, #127bab); }
#header-whatsapp, #help-whatsapp { background: linear-gradient(145deg, #29b668, #127741); }
.header-messengers a[href]:hover { filter: brightness(1.15); }
.header-messengers a[aria-disabled="true"] { opacity: .58; }
@media (max-width: 600px) {
  .header-location select { max-width: 118px; }
  .header-messengers { gap: 5px; }
}
.brand { display: flex; align-items: center; min-width: 0; max-width: 420px; }
.brand-logo { display: block; width: 100%; height: auto; }
.brand-name { color: #f6ead8; font: 400 clamp(1.45rem, 3.1vw, 2.15rem)/1.05 var(--font-heading); letter-spacing: .025em; }
.brand-mark { width: 25px; height: 34px; flex: 0 0 25px; display: inline-block; position: relative; border: 1px solid var(--gold); border-radius: 14px 14px 0 0; margin-inline: 3px; }
.brand-mark::before { position: absolute; content: ""; inset: 4px 4px 5px; border: 1px solid #927452; border-radius: 10px 10px 0 0; }
.brand-mark::after { position: absolute; content: ""; height: 1px; left: -5px; right: -5px; bottom: 3px; background: var(--gold); }
.header-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px clamp(10px, 1.6vw, 22px); color: #ecdfcc; font-size: 1.0625rem; }
.header-help { color: var(--gold); font-weight: 600; }
.header-help:hover { border-bottom-color: var(--gold); }
.portfolio { padding-block: clamp(40px, 6vw, 88px); background: #211d1a; }
.portfolio-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 14px; margin-block: 25px; }
.portfolio-photo { display: grid; place-items: center; padding: 0; aspect-ratio: 4 / 5; min-width: 0; overflow: hidden; cursor: zoom-in; background: #322b26; border: 1px solid #695847; border-radius: 8px; }
.portfolio-photo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.portfolio-wide { grid-column: span 2; aspect-ratio: auto; min-height: 180px; }
.portfolio-viewer { width: min(1000px, calc(100% - 24px)); }
.portfolio-viewer #portfolio-image { display: block; margin: 12px auto; max-height: 66vh; }
.portfolio-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
@media (max-width: 700px) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .portfolio-wide { aspect-ratio: 16 / 9; min-height: 0; }
}
.button { display: inline-flex; min-height: 54px; padding: 12px 22px; gap: 14px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 8px; font-size: 1rem; font-weight: 600; line-height: 1.3; text-align: center; transition: background-color .18s, border-color .18s, box-shadow .18s; }
.button-primary { color: var(--action-gold-text); background: var(--action-gold); border-color: var(--action-gold); }
.button-primary:hover { background: var(--action-gold-hover); border-color: var(--action-gold-hover); }
.button-outline { background: #352f29; color: var(--text); border-color: #8c7b66; }
.button-outline:hover { border-color: var(--gold); background: #443b32; }
.button-whatsapp { color: #f2faf5; background: var(--whatsapp); border-color: #78998a; }
.button-whatsapp:hover { background: var(--whatsapp-hover); border-color: #9db9a8; }
.button-max { color: #f4f2ff; background: linear-gradient(145deg, #5b57e0, #3f3aa8); border-color: #7a76c9; }
.button-max:hover { filter: brightness(1.1); border-color: #9b97e0; }
.detail-actions .detail-icons { display: flex; gap: 8px; }
.detail-actions .icon-link { display: none; place-items: center; width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--field); }
.detail-actions .icon-link:not([hidden]) { display: grid; }
.detail-actions .icon-max:not([hidden]) { display: none; }
.detail-actions .icon-link svg { display: block; width: 24px; height: 24px; fill: currentColor; }
.detail-actions .icon-link:hover { border-color: var(--gold); }
.detail-actions .icon-max { color: #a9a5ff; }
.detail-actions .icon-telegram { color: #5cb8e6; }
.detail-actions .icon-whatsapp { color: #4cc98a; }
.floating-max {
  position: fixed;
  z-index: 4;
  inset-inline-end: max(16px, env(safe-area-inset-right));
  inset-block-end: max(20px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid #a9bdff;
  background: linear-gradient(145deg, #2f6dff, #6f33c9);
  color: #fff;
  box-shadow: 0 4px 14px #0008;
}
.floating-max:hover { filter: brightness(1.12); }
.floating-max svg { width: 27px; height: 27px; }
.hero-credit { display: none; }
.hero { background: radial-gradient(ellipse at 70% 4%, #332b23 0%, #1b1a17 55%, #181816 100%); border-bottom: 1px solid #4e4334; }
@media (min-width: 731px) {
  .page-catalog .hero-credit {
    display: block;
    position: absolute;
    right: max(24px, env(safe-area-inset-right));
    bottom: 26px;
    margin: 0;
    z-index: 2;
    color: #d8cdbb;
    font-size: .8125rem;
    letter-spacing: .04em;
    text-shadow: 0 1px 5px #000000cc;
  }
}
@media (min-width: 731px) {
  .page-catalog .top-cover {
    position: relative;
    background-color: #1b1815;
    background-image:
      linear-gradient(100deg, #161412fb 0%, #161412ea 30%, #161412a6 56%, #161412c9 100%),
      url("assets/hero-studio.webp");
    background-repeat: no-repeat;
    background-position: 0 0, right top;
    background-size: auto, auto 760px;
  }
  .page-catalog .top-cover .site-header,
  .page-catalog .top-cover .hero { background: none; }
  .page-catalog .site-header { border-bottom-color: #ffffff2e; }
  .page-catalog .header-city-row, .page-catalog .header-nav-row { border-top-color: #ffffff24; }
  .page-catalog .header-nav, .page-catalog .header-location { text-shadow: 0 1px 4px #000000a6; }
  .page-catalog .brand-logo { filter: drop-shadow(0 2px 6px #000000b3); }
  .page-catalog .hero { border-bottom-color: transparent; }
  .page-catalog .top-cover::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 150px;
    background: linear-gradient(180deg, #1b181500, #1b1815 86%);
    pointer-events: none;
    z-index: 1;
  }
  .page-catalog .hero-layout { grid-template-columns: minmax(0, 1fr); }
  .page-catalog .hero-content { max-width: 660px; }
}
@media (min-width: 731px) and (max-width: 1180px) {
  .page-catalog .top-cover {
    background-size: auto, auto 620px;
    background-position: 0 0, right -50px top;
  }
  .page-catalog .hero-content { max-width: 540px; }
}
.hero-layout { display: grid; grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr); gap: clamp(28px, 4.3vw, 76px); align-items: center; padding-block: clamp(22px, 3vw, 42px); }
.hero-content { min-width: 0; padding-block: 20px; }
.region { margin: 0 0 14px; color: var(--gold); font-size: .875rem; letter-spacing: .045em; }
.region::before { content: ""; vertical-align: middle; display: inline-block; width: 26px; height: 1px; margin-right: 11px; background: #a58758; }
h1, h2 { font-family: var(--font-heading); font-weight: 400; letter-spacing: -.025em; margin: 0; }
h1 { font-size: clamp(2.1rem, 3.6vw, 3.9rem); line-height: 1.06; max-width: 760px; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3vw, 2.7rem); line-height: 1.1; }
.intro { max-width: 440px; margin: 16px 0 20px; color: var(--quiet); font-size: clamp(1rem, 1.2vw, 1.14rem); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .actions { align-items: center; column-gap: 22px; }
.hero-help.button { min-height: 44px; padding: 9px 18px; color: #f2d5ae; border-color: #af875b; font-weight: 650; font-size: .9375rem; }
figure { margin: 0; }
.hero-figure { min-width: 0; padding: 0; border: 1px solid #756047; border-radius: 12px; overflow: hidden; background: #211e19; box-shadow: 0 24px 70px #0b080580; }
.hero-figure picture { display: block; }
.hero-figure img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; background: #24201c; }
.hero-figure figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; padding: 13px 17px; border-top: 1px solid #756047; color: var(--quiet); font-size: .875rem; }
.hero-figure figcaption span:first-child { color: #eed8b9; }
.catalog {
  color-scheme: dark;
  --text: #fbf4ea;
  --quiet: #d5c9bc;
  --gold: #dfbb89;
  --line: #584e45;
  --field: #3d3630;
  background: #4b4540;
  color: var(--text);
  border-block: 1px solid var(--line);
  padding-block: clamp(30px, 3.6vw, 54px);
}
.section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px 24px; }
.section-heading p, .selection p { color: var(--quiet); margin: 0; }
.catalog-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .62fr); gap: 12px; margin-block: 16px 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #332d28; }
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1.25fr)) repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.service-intro {
  grid-column: 1 / -1;
  margin-block: 24px;
  padding: clamp(18px, 3vw, 30px);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.service-intro h3, .service-intro h4 { margin: 0 0 6px; }
.service-intro h3 { color: var(--gold); font: 600 clamp(1.25rem, 3vw, 1.8rem)/1.2 var(--font-heading); }
.service-intro p { max-width: 66ch; margin: 0 0 16px; }
.material-group { display: grid; grid-template-rows: auto 1fr; gap: 10px; min-width: 0; padding: 12px; border: 1px solid #60554a; border-radius: 12px; background: #332e29; }
.material-group h3 { margin: 0 0 0 4px; font: 400 1.32rem/1.15 var(--font-heading); }
.material-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.category-tile { display: grid; grid-template-rows: 1fr auto; align-items: stretch; width: 100%; min-width: 0; padding: 0; border: 1px solid #655950; border-radius: 10px; overflow: hidden; background: #3b342e; color: var(--text); text-align: left; transition: border-color .18s, background-color .18s, box-shadow .18s; }
.category-tile img { width: 100%; height: 100%; min-height: 82px; max-height: 116px; aspect-ratio: 1.6; object-fit: contain; background: var(--stone-backdrop); }
.category-tile.has-cutout img { padding: 10px; background: var(--stone-backdrop); }
.material-options img { max-height: 116px; }
.tile-caption { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 48px; padding: 9px 11px; font-weight: 600; font-size: 1rem; line-height: 1.3; }
.category-tile:hover { border-color: var(--gold); box-shadow: 0 5px 14px #100c093d; }
.category-tile[aria-pressed="true"] { border-color: var(--gold); color: #fff9ee; background: #66503b; box-shadow: 0 0 0 1px var(--gold); }
.search, .series { display: grid; gap: 5px; min-width: 0; font-size: .9375rem; color: var(--quiet); }
.search-wrap { position: relative; display: grid; min-width: 0; }
.search-hints { position: absolute; z-index: 6; top: calc(100% + 4px); left: 0; right: 0; display: grid; max-height: 260px; overflow: auto; padding: 4px; background: var(--field); border: 1px solid #817368; border-radius: 10px; box-shadow: 0 14px 34px #000000a6; }
.search-hint { display: grid; gap: 2px; padding: 9px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.search-hint:hover, .search-hint:focus-visible { background: #4a4036; }
.search-hint strong { color: var(--gold); font: 600 1rem/1.2 var(--font-body); }
.search-hint span { color: var(--quiet); font-size: .8125rem; }
.search input, .series select { min-width: 0; width: 100%; min-height: 44px; padding: 8px 14px; color: var(--text); font: inherit; font-size: 1rem; background: var(--field); border: 1px solid #817368; border-radius: 8px; }
.series select { appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
.search input::placeholder { color: var(--quiet); }
.catalog-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 10px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--quiet); font-size: .875rem; }
.catalog-summary h3 { margin: 0 0 2px; color: var(--text); font: 400 1.55rem/1.2 var(--font-heading); }
.catalog-summary p { margin: 0; scroll-margin-top: 3.25rem; }
.text-button { border: 0; padding: 7px 0; color: #e6cc9e; background: transparent; text-decoration: underline; }
.catalog .text-button { color: var(--gold); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 27px; }
#page-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; }
.page-button { min-width: 40px; min-height: 40px; padding: 6px 8px; border: 1px solid #817368; border-radius: 8px; background: #3d3630; color: var(--text); font: 600 .9375rem/1 var(--font-body); font-variant-numeric: lining-nums tabular-nums; }
.page-button:hover { border-color: var(--gold); background: #51463b; }
.page-button[aria-current="page"] { background: var(--action-gold); border-color: var(--action-gold); color: var(--action-gold-text); }
.page-arrow { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid #817368; border-radius: 8px; background: #3d3630; color: var(--text); font-size: 1.5rem; line-height: 1; }
.page-arrow:hover:not(:disabled) { border-color: var(--gold); background: #51463b; color: var(--gold); }
.page-arrow:disabled { opacity: .38; cursor: default; }
.page-gap { min-width: 18px; align-self: center; text-align: center; color: var(--quiet); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 26px); }
.card { min-width: 0; display: flex; flex-direction: column; width: 100%; border: 1px solid #6a5e53; border-radius: 12px; overflow: hidden; padding: 0; background: #3b342e; color: var(--text); text-align: left; box-shadow: 0 3px 5px #100c0938, 0 8px 16px #100c0929; transition: border-color .18s, box-shadow .18s; }
@media (hover: hover) {
  .card:hover { border-color: var(--gold); box-shadow: 0 4px 8px #100c094d, 0 10px 20px #100c0940; }
}
.card, #details { -webkit-tap-highlight-color: transparent; }
.card-photo { display: block; flex: none; position: relative; width: 100%; aspect-ratio: 1.29; overflow: hidden; background: var(--stone-backdrop); }
.card-photo img { position: absolute; top: 50%; left: 50%; width: 89%; height: 100%; object-fit: contain; transform: translate(-50%, -50%) scale(1); transition: transform .3s ease; }
@media (hover: hover) {
  .card:hover .card-photo.has-cutout img { transform: translate(-50%, -50%) scale(1.035); }
}
.card:active { border-color: var(--gold); }
.card[data-format="double"] img, .card[data-format="complex"] img { width: 100%; }
.card-photo.has-cutout img { width: 78%; height: 89%; filter: var(--stone-shadow); }
.card[data-format="double"] .has-cutout img, .card[data-format="complex"] .has-cutout img { width: 92%; }
.card-body { display: grid; align-self: stretch; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "num price" "section section"; align-items: baseline; gap: 3px 12px; padding: 13px 15px; border-top: 1px solid #65594e; }
.model { grid-area: num; color: var(--text); font: 600 1.25rem/1.15 var(--font-body); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.card-section { grid-area: section; display: none; color: var(--quiet); font-size: .9375rem; line-height: 1.35; }
.card[data-id^="service-"] .card-section { display: block; }
.card-price { grid-area: price; justify-self: end; text-align: right; white-space: nowrap; color: var(--gold); font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.empty { padding: 14px 0; color: var(--quiet); }
.contact-section { padding-block: 68px 76px; background: radial-gradient(ellipse at 14% 0%, #272016, var(--ink) 62%); }
.contacts-page { padding-block: clamp(26px, 4vw, 52px) clamp(44px, 6vw, 84px); }
.contacts-page h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: 22px; }
.contacts-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 16px; align-items: start; }
.contact-note { margin: 0; max-width: 46ch; color: var(--quiet); }
@media (max-width: 900px) {
  .contacts-grid { grid-template-columns: 1fr; }
}
main { min-height: 55vh; }
.contact-panel, .selection { display: grid; align-content: start; justify-items: start; gap: 13px; padding: clamp(18px, 3vw, 37px); border: 1px solid var(--line); border-radius: 12px; }
.selection { background: #292119; border-color: #8a6947; scroll-margin-top: 24px; }
.contact-panel { margin-top: 16px; background: #22211d; border-top-color: #94734c; }
.contact-panel h2, .selection h2 { margin: 0; color: var(--text); font: 400 clamp(1.4rem, 2.4vw, 2rem)/1.15 var(--font-heading); }
.contact-panel p, .selection p { margin: 0; max-width: 490px; color: var(--quiet); }
.selection-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.selection-messengers { gap: 8px; }
.selection-messengers a { width: 52px; height: 52px; border-radius: 13px; }
.selection-messengers svg { width: 29px; height: 29px; }
#selection-call { padding: 12px 20px; }
.contact-number { color: #ead1aa; font: 600 clamp(1.25rem, 3vw, 2.4rem)/1.25 var(--font-body); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.contact-number:hover { text-decoration: underline; }
.visit-details { width: 100%; margin: 4px 0 0; padding-top: 9px; border-top: 1px solid var(--line); }
.visit-details > div { margin: 5px 0 10px; }
.visit-details dt { color: var(--quiet); font-size: .9375rem; }
.visit-details dd { margin: 1px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.selection .button { margin-top: 4px; }
footer { border-top: 1px solid var(--line); color: var(--quiet); }
.footer-row { display: flex; justify-content: space-between; gap: 12px; padding-block: 19px; padding-inline-end: 65px; font-size: .875rem; }
.footer-details { display: flex; flex-wrap: wrap; align-items: start; gap: 8px 26px; padding-block: 14px 22px; border-top: 1px solid #3a322a; font-size: .8125rem; }
.footer-details .visit-details { display: flex; flex-wrap: wrap; gap: 6px 26px; width: auto; margin: 0; padding: 0; border: 0; }
.footer-details .visit-details > div { margin: 0; }
.footer-details dt { font-size: .75rem; color: #b9afa2; }
.footer-details dd { margin: 0; color: var(--quiet); }
.footer-details .route { margin-inline-start: auto; align-self: center; }
.footer-note { margin: 0; color: var(--quiet); font-size: .8125rem; }
.footer-legal { padding-block: 0 18px; padding-inline-end: 78px; color: #9d9488; font-size: .75rem; letter-spacing: .01em; }
dialog { width: min(640px, calc(100% - 28px)); max-height: calc(100% - 28px); padding: clamp(14px, 3vw, 28px); background: var(--panel); color: var(--text); border: 1px solid #75654f; border-radius: 14px; box-shadow: 0 20px 80px #0009; }
dialog::backdrop { background: #0b0d0bd9; }
@media (prefers-reduced-motion: no-preference) {
  #details[open] { animation: detail-enter .2s ease-out; }
  #details[open]::backdrop { animation: detail-backdrop .18s ease-out; }
  @keyframes detail-enter { from { opacity: 0; transform: translateY(8px) scale(.99); } }
  @keyframes detail-backdrop { from { opacity: 0; } }
}
dialog form { float: right; margin-bottom: 8px; }
.close { min-height: 44px; border: 1px solid #75654f; border-radius: 8px; background: transparent; color: var(--text); padding: 6px 12px; }
dialog h2 { font-size: 2rem; margin-block: 3px 15px; }
dialog img { width: 100%; max-height: 58vh; object-fit: contain; }
.detail-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.detail-nav { display: flex; align-items: center; gap: 6px; }
.detail-arrow { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid #75654f; border-radius: 8px; background: transparent; color: var(--text); font-size: 1.4rem; line-height: 1; }
.detail-arrow:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.detail-arrow:disabled { opacity: .38; cursor: default; }
@media (prefers-reduced-motion: no-preference) {
  #details.slide-next .detail-shell { animation: detail-next .22s ease-out; }
  #details.slide-prev .detail-shell { animation: detail-prev .22s ease-out; }
  @keyframes detail-next { from { opacity: .35; transform: translateX(26px); } }
  @keyframes detail-prev { from { opacity: .35; transform: translateX(-26px); } }
}
.detail-header form { float: none; margin: 0; }
.detail-header h2 { margin: 0; font-size: clamp(1.4rem, 5vw, 2rem); }
.detail-header h2:focus { outline: none; }
body:has(dialog[open]) .floating-max { visibility: hidden; }
#details p { margin: 6px 0 0; line-height: 1.4; }
#details #detail-section { margin-top: 10px; }
#details .detail-price { color: var(--gold); font-size: 1.375rem; font-weight: 600; line-height: 1.25; }
#detail-includes strong { color: var(--text); }
.detail-photo { display: grid; align-items: center; height: min(50vh, 490px); margin: 0; background: var(--stone-backdrop); }
.detail-progress { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.detail-counter { color: var(--quiet); font-size: .8125rem; white-space: nowrap; }
.detail-bar { flex: 1; height: 3px; border-radius: 3px; overflow: hidden; background: #3d3529; }
#detail-bar-fill { display: block; width: 0; height: 100%; background: var(--gold); transition: width .25s ease; }
.detail-hint { margin: 6px 0 0; color: var(--gold); font-size: .8125rem; }
@media (prefers-reduced-motion: no-preference) {
  .cards .card { animation: card-in .3s ease-out both; }
  @keyframes card-in { from { opacity: 0; transform: translateY(8px); } }
}
.detail-photo img { display: block; min-height: 0; height: 100%; max-height: 100%; }
.detail-photo.has-cutout { padding: clamp(13px, 3vw, 24px); }
.detail-photo.has-cutout img {
  background: transparent;
  filter: var(--stone-shadow);
}
dialog p { color: var(--quiet); }
.header-nav a { display: inline-flex; align-items: center; min-height: 40px; color: inherit; border-bottom: 1px solid transparent; }
.header-nav a:hover { color: var(--text); border-bottom-color: var(--gold); }
.hero-accent { display: block; color: #e0c29a; }
.button-primary .arrow { font-size: 1.15em; line-height: 1; }
.tile-caption::after, .card-body::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}
.card-body::after {
  content: none;
}
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.footer-row a { text-decoration: underline; text-underline-offset: 4px; }
.mobile-catalog-actions, .mobile-catalog-title, .mobile-price { display: none; }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 56px); }
  .hero-layout { padding-block: 44px 49px; }
  .hero-content { padding-block: 10px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 730px) {
  .wrap { width: calc(100% - 28px); }
  .pagination { gap: 4px; }
  .page-button { min-width: 36px; min-height: 36px; padding: 5px 6px; font-size: .875rem; }
  .page-arrow { width: 40px; height: 40px; font-size: 1.35rem; }
  .header-brand-row { padding-block: 9px 7px; }
  .brand-logo { max-width: 100%; }
  .brand-mark { display: none; }
  .brand-name { display: none; }
  .header-city-row { padding-block: 6px; gap: 8px 10px; }
  .header-nav-row { padding-block: 5px 7px; }
  .header-nav { gap: 0 14px; }
  .header-nav a { min-height: 36px; display: inline-flex; align-items: center; }
  .header-help { font-size: .875rem; }
  .header-nav-row .header-help { display: none; }
  .header-call { min-height: 34px; padding: 6px 11px; font-size: .875rem; }
  .header-actions { gap: 6px; }
  .header-messengers a { width: 38px; height: 38px; border-radius: 11px; }
  .header-messengers svg { width: 22px; height: 22px; }
  .header-location select { max-width: 118px; min-height: 34px; }
  .hero { position: static; width: auto; height: auto; overflow: visible; clip-path: none; border-bottom: 1px solid #3f342a; background: linear-gradient(180deg, #221d18, #1b1815); }
  .hero-layout { grid-template-columns: 1fr; padding-block: 14px 16px; gap: 10px; }
  .hero-content { padding: 0; }
  .hero-figure, .hero .intro { display: none; }
  .hero .region { display: none; }
  h1 { font-size: 1.35rem; line-height: 1.18; max-width: none; }
  .hero-accent { display: inline; }
  .hero .actions { display: flex; margin-top: 12px; }
  .hero .actions .button-primary { display: none; }
  .hero-help { min-height: 44px; width: 100%; }
  .catalog { padding-block: 12px 38px; }
  .mobile-catalog-title { display: block; font-size: clamp(1.25rem, 5vw, 1.65rem); }
  .mobile-catalog-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
  .mobile-catalog-actions .button { min-height: 46px; padding: 6px 8px; font-size: .875rem; }
  .mobile-catalog-actions [aria-expanded="true"] { border-color: var(--gold); }
  .catalog .section-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .catalog-controls { grid-template-columns: 1fr; margin: 9px 0 0; padding: 10px; }
  .catalog-controls:has(#number-search[hidden]) { display: none; }
  .catalog-summary { margin-block: 10px; padding: 0; border: 0; }
  .catalog-summary > div:not(.has-active-filters), .catalog-summary .has-active-filters p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .catalog-summary .has-active-filters h3 { display: inline-block; margin: 0; border: 1px solid #806c55; border-radius: 5px; padding: 6px 8px; font: 600 .875rem/1.3 var(--font-body); }
  #clear { min-height: 44px; }
  body:has(#details[open], #mobile-filters[open]) { overflow: hidden; }
  #mobile-filters { width: min(100%, 580px); max-height: 88vh; max-height: 88dvh; inset: auto 0 0; margin: 0 auto; padding-bottom: max(14px, env(safe-area-inset-bottom)); border-radius: 14px 14px 0 0; }
  #mobile-filters .filters { margin-block: 8px 12px; }
  #details .detail-header, #mobile-filters .detail-header { position: sticky; top: 0; z-index: 1; background: var(--panel); }
  #details #detail-title { font-size: 1.0625rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46%; }
  #details .detail-header { gap: 8px; }
  #details .detail-arrow { width: 38px; height: 38px; }
  #details .detail-header .close { min-height: 38px; padding: 5px 10px; }
  #details .detail-photo { height: 58vh; height: 58svh; }
  #details .detail-photo.has-cutout { padding: 10px; }
  #details .detail-actions .button { min-height: 44px; padding: 8px 12px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 19px; }
  .material-group { padding: 5px; }
  .material-options { gap: 4px; }
  .material-options img { min-height: 55px; max-height: 77px; }
  .tile-caption { min-height: 46px; padding: 6px; font-size: .875rem; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .card { border-radius: 12px; }
  .card-photo { aspect-ratio: 4 / 5; }
  .card-photo.has-cutout img { width: 91%; height: 91%; }
  .card[data-format="double"] .has-cutout img, .card[data-format="complex"] .has-cutout img { width: 94%; }
  .card-body { flex: 1; align-content: start; padding: 8px 10px; }
  .card-section, .full-price, .card-body::after { display: none; }
  .card[data-id^="service-"] .card-section { display: block; grid-area: section; }
  .mobile-price { display: inline; }
  .model { font-size: 1rem; }
  .card-price { font-size: .875rem; }
  .card-body.is-long { grid-template-columns: minmax(0, 1fr); grid-template-areas: "num" "price"; row-gap: 1px; }
  .card-body.is-long .card-price { justify-self: start; text-align: left; }
  .contact-section { padding-block: 42px; }
  .contact-layout { grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
}
@media (max-width: 410px) {
  .brand-mark { width: 20px; height: 28px; flex: 0 0 20px; }
  .header-nav { gap: 0 12px; font-size: 1rem; }
  .hero .actions .button { width: 100%; }
  .hero-help { min-height: 44px; }
  .catalog-controls { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .material-group { grid-column: 1 / -1; }
  .material-options img { max-height: 94px; }
}
@media (max-width: 430px) {
  .header-location > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .header-location select { max-width: 118px; min-height: 34px; font-size: .8125rem; }
  .header-messengers { gap: 6px; }
  .header-messengers a { width: 32px; height: 32px; border-radius: 9px; }
  .header-messengers a::after { inset: -4px; }
  .header-messengers svg { width: 19px; height: 19px; }
  .header-call { min-height: 34px; padding: 6px 9px; font-size: .8125rem; }
  .header-actions { gap: 5px; }
  .contact-panel, .selection { padding: 14px; }
  .selection-actions { gap: 8px; }
  .selection-messengers a { width: 48px; height: 48px; border-radius: 12px; }
  .selection-messengers svg { width: 27px; height: 27px; }
  #selection-call { min-height: 48px; padding: 10px 14px; font-size: .9375rem; }
  .detail-actions .button-max { display: none; }
  .detail-actions .icon-max:not([hidden]) { display: grid; }
}
@media (max-width: 360px) {
  .header-nav-row { gap: 6px 10px; }
  .header-location select { max-width: 106px; font-size: .75rem; }
  .header-messengers a { width: 30px; height: 30px; }
  .header-call { font-size: .75rem; padding: 6px 8px; }
  .selection-messengers { gap: 5px; }
  .selection-messengers a { width: 42px; height: 42px; }
  .selection-messengers svg { width: 24px; height: 24px; }
  #selection-call { padding: 10px 12px; font-size: .875rem; }
}
@media (max-width: 730px) {
  .page-catalog .top-cover { position: relative; overflow: hidden; background: #1b1815; }
  .page-catalog .top-cover .site-header,
  .page-catalog .top-cover .hero { background: none; }
  .page-catalog .top-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("assets/hero-studio-small.webp") center top / contain no-repeat;
    filter: brightness(1.5) saturate(1.05);
    opacity: .4;
    pointer-events: none;
  }
  .page-catalog .top-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #1614129c 0%, #1b1815c2 62%, #1b1815 100%);
    pointer-events: none;
  }
  .page-catalog .top-cover > * { position: relative; z-index: 1; }
}
@media (max-width: 730px) and (max-height: 740px) {
  .hero-layout { padding-block: 8px 10px; gap: 8px; }
  h1 { font-size: 1.16rem; }
  .hero .actions { margin-top: 8px; }
  .hero-help { min-height: 44px; }
  .catalog { padding-block: 8px 32px; }
  .mobile-catalog-title { font-size: 1.15rem; }
  .mobile-catalog-actions { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .category-tile, .card, .button { transition: none; }

}
