:root{--paper:#f8f7f3;--ink:#242923;--accent:#b58045;--line:#d9d8cf}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.55 Arial,"Liberation Sans",sans-serif}
a{color:inherit;text-underline-offset:4px}
button,select{font:inherit}
button,select,a{touch-action:manipulation}
:focus-visible{outline:3px solid #b16f20;outline-offset:3px}
.wrap{width:min(1380px,90%);margin:auto}
header{background:#fbfaf7;border-bottom:1px solid var(--line)}
.bar,.brand,nav,.actions,.foot,.sectionhead{display:flex;align-items:center}
.bar{min-height:86px;gap:2vw;justify-content:space-between;flex-wrap:wrap}
.brand{gap:10px;text-decoration:none;font-size:23px;line-height:1.05;font-weight:750}
.brand img{width:54px}
.brand small{display:block;font-size:11px;font-weight:600;margin-top:4px}
nav{gap:1.55vw}
nav a,.headphone a{font-size:14px;text-decoration:none}
nav a:hover,nav a[aria-current],.textlink:hover{color:#845224}
.headphone a{font-weight:bold;white-space:nowrap}
#menu{display:none}
.hero{isolation:isolate;position:relative;background:#242923;color:white;overflow:hidden}
.heroimage,.hero:after{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 48%;z-index:-2}
.hero:after{content:"";z-index:-1;background:linear-gradient(90deg,rgba(18,23,20,.95) 0%,rgba(22,26,22,.79) 35%,rgba(27,29,24,.23) 78%),linear-gradient(0deg,#171b1766,transparent 30%)}
.hero-inner{padding:62px 0 70px}
.eyeline,.kicker{font-size:11px;letter-spacing:.15em;text-transform:uppercase;font-weight:bold;display:flex;align-items:center;gap:12px}
.eyeline:before,.kicker:before{content:"";height:2px;width:26px;background:#bd915c;flex-shrink:0}
.eyeline{color:#eee3d1}
h1,h2,h3,p{margin:0 0 .65em}
h1,h2,h3{line-height:1.08;letter-spacing:-.045em}
h1{font-size:clamp(40px,5vw,76px);font-weight:600}
.hero h1{margin:23px 0 22px}
.hero p{color:#e4e3da;font-size:18px}
.actions{gap:12px;margin-top:30px;flex-wrap:wrap}
.button,.outline,.textlink,.rowlink{text-decoration:none}
.button,.outline{padding:13px 22px;display:inline-block;border-radius:3px;font-size:15px;font-weight:bold}
.button{background:#e3bb84;color:#23251f}
.button:hover{background:#efcc9a}
.outline{border:1px solid #b1b2a8;color:white;background:#171b1744}
.caption{position:absolute;bottom:18px;right:5%;font-size:12px;color:#fff;text-shadow:0 1px 5px #111}
.block{padding-block:60px 72px}
.sectionhead,.foot{justify-content:space-between;gap:20px}
.sectionhead{align-items:end;margin-bottom:25px}
.kicker{color:#755329}
h2{font-size:clamp(30px,3.3vw,50px);font-weight:600}
.sectionhead h2{margin:12px 0 0}
.textlink{display:inline-block;font-size:14px;font-weight:bold;border-bottom:1px solid #afa794;margin:8px;padding-bottom:3px}
.grid,.gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.zoom{display:block;position:relative;overflow:hidden;background:#d1d0c8}
.zoom img{width:100%;height:100%;display:block;object-fit:cover}
.grid .zoom{aspect-ratio:1.75}
.zoom span{position:absolute;bottom:9px;right:9px;background:#21251fc9;color:white;border-radius:50%;width:27px;text-align:center;font-size:18px}
.stone-name,.rowlink{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line);text-decoration:none;font-weight:600}
.stone-name b{color:#786447}
.warm{background:#efeee8}
.list{display:grid;grid-template-columns:repeat(2,1fr);gap:0 40px}
.pagehead{max-width:870px;margin-bottom:30px}
.pagehead h1{margin:16px 0}
.pagehead p,.reading p,#tables>p{max-width:780px}
.samples{margin:36px 0 70px}
select{padding:9px;max-width:100%;background:white;border:1px solid #9b9e91}
.pricecat{margin:34px 0}
h3{font-size:26px}
.scroll{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:14px;text-align:left}
th,td{padding:11px 12px;border-bottom:1px solid var(--line)}
thead{background:#353c34;color:white}
td{white-space:nowrap;font-variant-numeric:tabular-nums}
.pricecat tbody th{white-space:nowrap}
.pricecat tbody tr:nth-child(even),.terms tbody tr:nth-child(even){background:#efeee9}
.reading{max-width:850px}
.terms{margin-bottom:22px}
.gallery{grid-template-columns:repeat(3,minmax(0,1fr))}
figure{margin:0}
.gallery .zoom,.contact .zoom{aspect-ratio:4/3}
figcaption{margin-top:8px}
.contact{display:grid;grid-template-columns:1fr 1fr;gap:32px}
.contact h2{font-size:26px}
.contact p{margin-bottom:25px}
footer{background:#242b25;color:#f2f1ea}
.foot{padding:36px 0}
.foot p{font-size:14px;color:#d5d7ce;margin:5px 0}
.foot a{text-decoration:none;white-space:nowrap}
dialog{padding:12px;background:#f9f8f2;border:0;max-width:94vw}
dialog::backdrop{background:#101510db}
dialog img{display:block;max-width:86vw;max-height:75vh;object-fit:contain;margin:auto}
dialog p{margin:6px}
.close{position:absolute;right:10px;top:10px;font-size:25px;color:white;background:#252925;border:0;width:40px;cursor:pointer}
@media(max-width:1060px){.headphone{display:none}}
@media(max-width:800px){.bar{padding:14px 0;min-height:67px}.bar nav{width:100%;flex-wrap:wrap;padding:5px 0;gap:10px 18px}.js #menu{display:block;border:1px solid var(--line);padding:6px 12px;background:transparent}.js nav:not(.open){display:none}.hero-inner{padding:52px 0 65px}.hero:after{background:linear-gradient(90deg,#111812e6,#19221c82)}.grid,.gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.block{padding-block:40px}.caption{font-size:10px}.foot{align-items:start;flex-wrap:wrap}.contact{grid-template-columns:1fr}.eyeline{max-width:340px}.brand{font-size:20px}.sectionhead{align-items:start}.textlink{margin:4px 0}.list{grid-template-columns:1fr}}
@media(max-width:500px){.grid,.gallery{gap:18px 12px}.hero h1{font-size:clamp(36px,9vw,45px)}.hero p{font-size:16px}.wide{display:none}.actions{gap:8px}.button,.outline{padding:12px 13px;font-size:14px}.stone-name{font-size:14px}.sectionhead{align-items:end}.sectionhead .textlink{font-size:12px;white-space:nowrap}.scroll{max-width:90vw}.brand img{width:43px}.brand small{font-size:10px}.samples{margin-bottom:40px}}

/* Фирменный знак и контакты в шапке */
.bar{padding-block:8px}
.brand img{width:138px;height:auto;display:block}
.headphone{display:grid;gap:2px}
.headphone a{line-height:1.55}
.button,.outline,.textlink{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;font-size:14px;line-height:1.4;border-radius:4px;box-sizing:border-box}
.button{border:1px solid transparent}
.textlink{border:1px solid var(--line);margin:0;color:var(--ink)}
.gallery .zoom{border-radius:7px}
.work-code{position:absolute;top:10px;left:10px;min-width:40px;padding:3px 6px;border-radius:4px;background:#252b26;color:white;text-align:center;font-size:14px;line-height:1.5}
dialog .work-code{top:20px;left:20px}
.works .pagehead{margin-bottom:10px}
.works .pagehead p{font-size:clamp(19px,2vw,24px);line-height:1.45}
.work-intro{max-width:780px;font-size:18px;margin-bottom:26px}
.work-intro p:last-child{font-size:16px;margin-top:16px}
.pricecat tbody th{white-space:normal;min-width:9em}
@media(max-width:800px){
 .brand img{width:126px}
 .headphone{order:1;margin-left:auto}
 #menu{order:2}
 .bar nav{order:3}
}
@media(max-width:500px){
 .bar{display:grid;grid-template-columns:1fr auto;gap:3px 12px}
 .brand{grid-column:1;grid-row:1/3}
 .brand img{width:min(126px,36vw)}
 .headphone{grid-column:2;grid-row:1;justify-self:end}
 .headphone a{font-size:14px;line-height:1.65}
 #menu{grid-column:2;grid-row:2;justify-self:end;font-size:14px}
 .bar nav{grid-column:1/-1}
 .sectionhead{flex-wrap:wrap}
 .actions .button,.actions .outline{padding-inline:12px}
}
@media(max-width:500px){
 .terms td,.terms th{white-space:normal;padding:9px 8px}
 .kicker{overflow-wrap:anywhere}
}

.headphone .email{font-size:13px;font-weight:normal}
.warehouse-map{width:100%;height:clamp(210px,20vw,290px);display:block;border:0;border-radius:7px;background:var(--line)}
.map-links{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;margin-top:12px;font-size:14px}
.contact>.zoom{align-self:start;width:100%}
