: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: 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 { border-bottom: 1px solid #5c4834; background: linear-gradient(112deg, #2c231b, #1b1916 64%); }
.header-top { background: #201a15; border-bottom: 1px solid #594533; }
.header-top-row { display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap; padding-block: 8px; }
.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-messengers { display: flex; gap: 8px; margin-inline-start: auto; }
.header-messengers a { 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 svg { display: block; width: 25px; height: 25px; fill: currentColor; }
#header-max { background: linear-gradient(145deg, #276bff, #7831cf); }
#header-telegram { background: linear-gradient(145deg, #37baf5, #127bab); }
#header-whatsapp { background: linear-gradient(145deg, #29b668, #127741); }
.header-messengers a[href]:hover { filter: brightness(1.15); }
@media (max-width: 600px) {
  .header-top-row { gap: 8px 10px; }
  .header-location select { max-width: 118px; }
  .header-messengers { gap: 5px; }
}
@media (max-width: 360px) {
  .header-location > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
.header-row { min-height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 15px; font: 400 1.35rem/.95 var(--font-heading); }
.brand small { display: block; margin-top: 7px; font: 400 .875rem/1.2 var(--font-body); color: var(--quiet); }
.brand-mark { width: 25px; height: 34px; 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-row nav { display: flex; gap: 2rem; color: var(--quiet); }
.header-row nav a:hover { color: var(--text); 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; }
}
@media (max-width: 420px) {
  .header-row nav a[href="#portfolio"] { font-size: .8rem; }
}
.button { display: inline-flex; min-height: 54px; padding: 12px 22px; gap: 14px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 4px; 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; }
.floating-whatsapp {
  position: fixed;
  z-index: 4;
  inset-inline-end: max(16px, env(safe-area-inset-right));
  inset-block-end: max(16px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid #8adaab;
  background: #12633e;
  color: #fff;
  box-shadow: 0 4px 14px #0008;
}
.floating-whatsapp:hover { background: #19754b; }
.floating-whatsapp svg { width: 26px; height: 26px; }
.hero { background: radial-gradient(ellipse at 70% 4%, #332b23 0%, #1b1a17 55%, #181816 100%); border-bottom: 1px solid #4e4334; }
.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(48px, 6.2vw, 96px); }
.hero-content { min-width: 0; padding-block: 20px; }
.region { margin: 0 0 25px; 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.55rem, 4.65vw, 5.15rem); line-height: 1.08; max-width: 620px; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.7vw, 3.5rem); line-height: 1.1; }
.intro { max-width: 440px; margin: 27px 0 31px; 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: 48px; color: #f2d5ae; border-color: #af875b; font-weight: 650; }
figure { margin: 0; }
.hero-figure { min-width: 0; padding: 0; border: 1px solid #756047; border-radius: 6px; 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(47px, 6vw, 94px);
}
.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: 14px; margin-block: 32px 26px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: #332d28; }
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1.25fr)) repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 25px; }
.service-intro {
  grid-column: 1 / -1;
  margin-block: 24px;
  padding: clamp(18px, 3vw, 30px);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.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: 6px; 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: 4px; 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: 93px; max-height: 158px; aspect-ratio: 1.6; object-fit: contain; background: var(--photo); }
.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 input, .series select { min-width: 0; width: 100%; min-height: 48px; padding: 8px 14px; color: var(--text); font: inherit; font-size: 1rem; background: var(--field); border: 1px solid #817368; border-radius: 4px; }
.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: 8px 12px; margin: 0 0 14px; padding-top: 16px; 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; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 27px; color: var(--quiet); }
.pagination .button-outline { background: #3d3630; border-color: #817368; }
.pagination .button-outline:not(:disabled):hover { border-color: var(--gold); background: #51463b; }
.pagination button:disabled { opacity: .5; cursor: default; }
.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: 6px; 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; }
.card:hover { border-color: var(--gold); box-shadow: 0 4px 8px #100c094d, 0 10px 20px #100c0940; }
.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%); }
.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; align-items: center; gap: 4px 10px; padding: 14px 15px; border-top: 1px solid #65594e; }
.model { color: var(--text); font: 600 1.375rem/1.15 var(--font-body); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.card-section { color: var(--quiet); font-size: .9375rem; line-height: 1.35; grid-column: 1; grid-row: 2; }
.card-price { color: var(--gold); font-size: .9375rem; font-weight: 600; line-height: 1.35; grid-column: 1; }
#details .detail-price { color: var(--gold); font-size: 1.125rem; font-weight: 600; }
.empty { padding: 14px 0; color: var(--quiet); }
.contact-section { padding-block: 68px 76px; background: radial-gradient(ellipse at 14% 0%, #272016, var(--ink) 62%); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 16px; margin-top: 25px; }
.contact-panel, .selection { display: grid; align-content: start; justify-items: start; gap: 13px; padding: clamp(18px, 3vw, 37px); border: 1px solid var(--line); }
.contact-panel { background: #22211d; border-top-color: #94734c; border-radius: 6px; }
.selection { background: #292119; border-color: #8a6947; border-radius: 6px; scroll-margin-top: 24px; }
.contact-panel h3, .selection h3 { 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); }
.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; }
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: 8px; box-shadow: 0 20px 80px #0009; }
dialog::backdrop { background: #0b0d0bd9; }
dialog form { float: right; margin-bottom: 8px; }
.close { min-height: 44px; border: 1px solid #75654f; border-radius: 4px; 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-photo { background: var(--stone-backdrop); }
.detail-photo img { display: block; }
.detail-photo.has-cutout { padding: clamp(13px, 3vw, 24px); }
.detail-photo.has-cutout img {
  max-height: min(50vh, 490px);
  background: transparent;
  filter: var(--stone-shadow);
}
dialog p { color: var(--quiet); }
.header-action { justify-self: end; }
.header-row nav a:not(.button) { display: grid; align-items: center; min-height: 44px; border-bottom: 1px solid transparent; }
.header-row nav .header-contact { min-height: 44px; padding: 8px 16px; }
.header-row nav .header-contact:hover { color: var(--action-gold-text); border-color: var(--action-gold-hover); }
.header-search {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 5px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: inherit;
}
.header-search:hover { color: var(--text); border-bottom-color: var(--gold); }
.search-icon {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 13px;
  margin: 0 4px 4px 0;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.search-icon::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
  content: "";
}
.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 {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0 4px 0 2px;
  color: var(--gold);
}
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-row a { text-decoration: underline; text-underline-offset: 4px; }
.filter-toggle, .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); }
  .header-row { display: flex; justify-content: space-between; min-height: 72px; gap: 10px; }
  .header-row nav a[href="#catalog"] { display: none; }
  .header-search span:last-child { display: none; }
  .header-row nav .header-contact {
    padding-inline: 13px;
    border-radius: 6px;
  }
  .header-row { flex-wrap: wrap; padding-block: 8px; }
  .header-action { flex-basis: 100%; }
  .hero-layout { grid-template-columns: 1fr; padding-block: 18px; }
  .hero-content { padding: 0; }
  .hero-figure, .hero .intro, .hero .actions, .hero .region { display: none; }
  h1 { font-size: clamp(1.6rem, 6.4vw, 2.5rem); }
  .catalog { padding-block: 12px 38px; }
  .hero { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .catalog > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .catalog > .wrap > * { grid-column: 1 / -1; }
  .catalog > .wrap > .mobile-catalog-title { display: block; grid-column: 1; font-size: clamp(1.25rem, 5vw, 1.65rem); padding-right: 8px; }
  .catalog > .wrap > .filter-toggle { grid-column: 2; width: auto; padding-inline: 10px; gap: 7px; }
  .catalog .section-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .filter-toggle { display: flex; width: 100%; min-height: 46px; justify-content: space-between; }
  .filter-toggle::after { content: "+"; font-size: 1.2rem; }
  .filter-toggle[aria-expanded="true"]::after { content: "−"; }
  .filter-toggle[aria-expanded="false"] + #catalog-options { display: none; }
  .catalog-summary { margin-block: 10px; padding: 0; border: 0; }
  .catalog-summary > div { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .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 { padding: 8px 10px; }
  .card-section, .full-price, .card-body::after { display: none; }
  .card[data-id^="service-"] .card-section { display: block; }
  .mobile-price { display: inline; }
  .card-body { grid-template-columns: 1fr; }
  .card-price { font-size: .875rem; }
  .contact-section { padding-block: 42px; }
  .contact-layout { grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
}
@media (max-width: 410px) {
  .brand { gap: 8px; font-size: 1.15rem; min-width: 0; }
  .brand small { font-size: .75rem; }
  .brand-mark { width: 20px; height: 28px; flex: 0 0 20px; }
  .header-row nav { gap: 4px; flex-shrink: 0; font-size: .875rem; }
  .header-row { gap: 6px; }
  .header-row nav .header-contact { padding-inline: 9px; font-size: .9375rem; }
  .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 (prefers-reduced-motion: reduce) {
  .category-tile, .card, .button { transition: none; }

}
